fix: toolbar检查search_form而非data_filter导致filter按钮不显示
This commit is contained in:
parent
231fde3807
commit
1e33a70627
@ -232,8 +232,8 @@ bricks.DataViewer = class extends bricks.VBox {
|
|||||||
edit_names.push(t.name);
|
edit_names.push(t.name);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
/* data_filter: add search tool to toolbar */
|
/* search_form: add search tool to toolbar */
|
||||||
if (this.opts.data_filter){
|
if (this.opts.search_form || this.opts.data_filter){
|
||||||
tbdesc.tools.push({
|
tbdesc.tools.push({
|
||||||
name:'filter',
|
name:'filter',
|
||||||
label: this.opts.filter_label || '搜索',
|
label: this.opts.filter_label || '搜索',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user