提交 10e15a4c 编写于 作者: KK's avatar KK

update 卡片视图排序

上级 f5e1fb97
......@@ -85,6 +85,8 @@ ${css.getCssStyle()}
&-searchform {
display: flex;
width: 60px;
justify-content: flex-end;
align-items: center;
}
}
}
......
......@@ -60,17 +60,17 @@
public setSort(field: any) {
if (this.sort.desc == field) {
this.sort.desc = "";
this.viewState.next({ tag: 'mdctrl', action: 'load', data: {} });
this.viewState.next({ tag: 'dataview', action: 'load', data: {} });
return
}
if (this.sort.asc == field) {
this.sort.asc = "";
this.sort.desc = field;
this.viewState.next({ tag: 'mdctrl', action: 'load', data: { sort: field + ",desc" } });
this.viewState.next({ tag: 'dataview', action: 'load', data: { sort: field + ",desc" } });
} else {
this.sort.asc = field;
this.sort.desc = "";
this.viewState.next({ tag: 'mdctrl', action: 'load', data: { sort: field + ",asc" } });
this.viewState.next({ tag: 'dataview', action: 'load', data: { sort: field + ",asc" } });
}
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册