@ctzy-web-client/plugin-component-vue 1.0.22 → 1.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/advance-select/advance-operation.mjs +51 -37
- package/es/advance-select/advance-option.mjs +167 -97
- package/es/advance-select/advance-option.vue_vue_type_style_index_0_scoped_bc8f5626_lang.mjs +7 -0
- package/es/advance-select/advance-select.mjs +368 -310
- package/es/advance-select/index.mjs +5 -5
- package/es/application-slot/breadcrumb-item.mjs +20 -17
- package/es/application-slot/header-tools-item.mjs +20 -17
- package/es/breadcrumb-select/breadcrumb-select.mjs +134 -112
- package/es/contextmenu/contextmenu-item.mjs +19 -15
- package/es/contextmenu/contextmenu.mjs +72 -56
- package/es/data-form/data-form-item.mjs +48 -30
- package/es/data-form/data-form.mjs +213 -166
- package/es/data-form/form-components/bwa-date-picker.mjs +51 -39
- package/es/data-form/form-components/bwa-date-time-picker.mjs +56 -44
- package/es/data-form/form-components/bwa-input-float.mjs +48 -37
- package/es/data-form/form-components/bwa-input-integer.mjs +68 -50
- package/es/data-form/form-components/bwa-input.mjs +43 -32
- package/es/data-form/form-components/bwa-multi-select.mjs +40 -29
- package/es/data-form/form-components/bwa-rich-text-tinymce.mjs +554 -218
- package/es/data-form/form-components/bwa-rich-text.mjs +404 -316
- package/es/data-form/form-components/bwa-select.mjs +84 -70
- package/es/data-form/form-components/bwa-textarea.mjs +38 -27
- package/es/data-form/form-components/bwa-upload.mjs +172 -148
- package/es/data-form/form-components/bwa-user-multi-select.mjs +35 -24
- package/es/data-form/form-components/bwa-user-select.mjs +86 -61
- package/es/data-table/data-column-view.mjs +146 -115
- package/es/data-table/data-table-card.mjs +48 -40
- package/es/data-table/data-table-column.mjs +58 -45
- package/es/data-table/data-table.mjs +402 -316
- package/es/datatable-settings/datatable-settings.mjs +329 -254
- package/es/date-range/date-picker.mjs +130 -116
- package/es/date-range/date-range.mjs +215 -168
- package/es/drag-list/drag-item.mjs +56 -42
- package/es/drag-list/drag-list.mjs +60 -47
- package/es/dragable/dragable-item.mjs +23 -18
- package/es/dragable/dragable-operation.mjs +32 -24
- package/es/dragable/dragable.mjs +32 -23
- package/es/filter-panel/conditions/date-range-condition.mjs +50 -40
- package/es/filter-panel/conditions/department-condition/department-condition.mjs +99 -72
- package/es/filter-panel/conditions/department-condition/department-node.mjs +73 -59
- package/es/filter-panel/conditions/input-condition.mjs +90 -76
- package/es/filter-panel/conditions/multi-user-condition.mjs +67 -57
- package/es/filter-panel/conditions/multiple-menu-condition.mjs +54 -35
- package/es/filter-panel/conditions/single-menu-condition.mjs +65 -60
- package/es/filter-panel/conditions/single-user-condition.mjs +67 -57
- package/es/filter-panel/filter-panel-item.mjs +54 -39
- package/es/filter-panel/filter-panel.mjs +153 -135
- package/es/layout/layout.mjs +85 -78
- package/es/menu/menu-item.mjs +67 -52
- package/es/menu/menu.mjs +70 -53
- package/es/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.mjs +28 -0
- package/es/panel/panel.mjs +53 -40
- package/es/pct-filter-panel/pct-compents/pct-Input-condition.mjs +74 -63
- package/es/pct-filter-panel/pct-compents/pct-date-range-condition.mjs +76 -67
- package/es/pct-filter-panel/pct-compents/pct-multiple-menu-condition.mjs +406 -178
- package/es/pct-filter-panel/pct-compents/pct-multiple-menu-condition2.mjs +153 -138
- package/es/pct-filter-panel/pct-filter-panel-item.mjs +55 -40
- package/es/pct-filter-panel/pct-filter-panel.mjs +247 -227
- package/es/progress/progress-item.mjs +81 -61
- package/es/progress/progress.mjs +78 -64
- package/es/where-filter-panel/where-filter-panel.mjs +15 -12
- package/lib/advance-select/advance-operation.js +50 -36
- package/lib/advance-select/advance-option.js +166 -96
- package/lib/advance-select/advance-option.vue_vue_type_style_index_0_scoped_bc8f5626_lang.js +12 -0
- package/lib/advance-select/advance-select.js +366 -308
- package/lib/application-slot/breadcrumb-item.js +19 -16
- package/lib/application-slot/header-tools-item.js +19 -16
- package/lib/breadcrumb-select/breadcrumb-select.js +133 -111
- package/lib/contextmenu/contextmenu-item.js +18 -14
- package/lib/contextmenu/contextmenu.js +71 -55
- package/lib/data-form/data-form-item.js +47 -29
- package/lib/data-form/data-form.js +212 -165
- package/lib/data-form/form-components/bwa-date-picker.js +50 -38
- package/lib/data-form/form-components/bwa-date-time-picker.js +55 -43
- package/lib/data-form/form-components/bwa-input-float.js +47 -36
- package/lib/data-form/form-components/bwa-input-integer.js +67 -49
- package/lib/data-form/form-components/bwa-input.js +42 -31
- package/lib/data-form/form-components/bwa-multi-select.js +39 -28
- package/lib/data-form/form-components/bwa-rich-text-tinymce.js +553 -217
- package/lib/data-form/form-components/bwa-rich-text.js +403 -315
- package/lib/data-form/form-components/bwa-select.js +83 -69
- package/lib/data-form/form-components/bwa-textarea.js +37 -26
- package/lib/data-form/form-components/bwa-upload.js +171 -147
- package/lib/data-form/form-components/bwa-user-multi-select.js +34 -23
- package/lib/data-form/form-components/bwa-user-select.js +85 -60
- package/lib/data-table/data-column-view.js +146 -115
- package/lib/data-table/data-table-card.js +48 -40
- package/lib/data-table/data-table-column.js +57 -44
- package/lib/data-table/data-table.js +401 -315
- package/lib/datatable-settings/datatable-settings.js +328 -253
- package/lib/date-range/date-picker.js +129 -115
- package/lib/date-range/date-range.js +213 -170
- package/lib/drag-list/drag-item.js +55 -41
- package/lib/drag-list/drag-list.js +59 -46
- package/lib/dragable/dragable-item.js +22 -17
- package/lib/dragable/dragable-operation.js +31 -23
- package/lib/dragable/dragable.js +31 -22
- package/lib/filter-panel/conditions/date-range-condition.js +49 -39
- package/lib/filter-panel/conditions/department-condition/department-condition.js +98 -71
- package/lib/filter-panel/conditions/department-condition/department-node.js +72 -58
- package/lib/filter-panel/conditions/input-condition.js +89 -75
- package/lib/filter-panel/conditions/multi-user-condition.js +66 -56
- package/lib/filter-panel/conditions/multiple-menu-condition.js +53 -34
- package/lib/filter-panel/conditions/single-menu-condition.js +64 -59
- package/lib/filter-panel/conditions/single-user-condition.js +66 -56
- package/lib/filter-panel/filter-panel-item.js +53 -38
- package/lib/filter-panel/filter-panel.js +152 -134
- package/lib/layout/layout.js +84 -77
- package/lib/menu/menu-item.js +66 -51
- package/lib/menu/menu.js +69 -52
- package/lib/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js +32 -0
- package/lib/panel/panel.js +52 -39
- package/lib/pct-filter-panel/pct-compents/pct-Input-condition.js +73 -62
- package/lib/pct-filter-panel/pct-compents/pct-date-range-condition.js +75 -66
- package/lib/pct-filter-panel/pct-compents/pct-multiple-menu-condition.js +405 -177
- package/lib/pct-filter-panel/pct-compents/pct-multiple-menu-condition2.js +152 -137
- package/lib/pct-filter-panel/pct-filter-panel-item.js +54 -39
- package/lib/pct-filter-panel/pct-filter-panel.js +246 -226
- package/lib/progress/progress-item.js +80 -60
- package/lib/progress/progress.js +77 -63
- package/lib/where-filter-panel/where-filter-panel.js +14 -11
- package/package.json +2 -1
- package/src/advance-select/advance-option.vue +64 -13
- package/src/data-form/form-components/bwa-rich-text-tinymce.vue +1 -1
- package/src/datatable-settings/datatable-settings.vue +33 -3
- package/src/date-range/date-picker.vue +1 -1
- package/src/date-range/date-range.vue +3 -3
- package/src/filter-panel/filter-panel.vue +2 -2
- package/src/pct-filter-panel/pct-compents/pct-Input-condition.vue +64 -64
- package/src/pct-filter-panel/pct-compents/pct-date-range-condition.vue +61 -61
- package/src/pct-filter-panel/pct-compents/pct-multiple-menu-condition.vue +302 -178
- package/src/pct-filter-panel/pct-filter-panel.vue +4 -4
|
@@ -10,168 +10,255 @@ var rxjs = require('rxjs');
|
|
|
10
10
|
var db = require('../utils/db.js');
|
|
11
11
|
var _pluginVue_exportHelper = require('../_virtual/_plugin-vue_export-helper.js');
|
|
12
12
|
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
props: {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
13
|
+
const _sfc_main = {
|
|
14
|
+
__name: 'datatable-settings',
|
|
15
|
+
props: {
|
|
16
|
+
dataTable: {
|
|
17
|
+
type: Object,
|
|
18
|
+
required: true,
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
emits: [
|
|
22
|
+
'reset-columns',
|
|
23
|
+
'sort-change',
|
|
24
|
+
'close',
|
|
25
|
+
'visible-change',
|
|
26
|
+
'column-visible-change'
|
|
27
|
+
],
|
|
28
|
+
setup(__props, { emit }) {
|
|
29
|
+
|
|
30
|
+
const props = __props;
|
|
31
|
+
|
|
32
|
+
defineOptions({ name: 'BwaDataTableSetting' });
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
const attrs = vue.useAttrs();
|
|
39
|
+
|
|
40
|
+
const ns = webBaseClientVue.useNamespace('datatable-settings');
|
|
41
|
+
|
|
42
|
+
const value = vue.ref(false);
|
|
43
|
+
|
|
44
|
+
const handleClose = () => {
|
|
45
|
+
value.value = false;
|
|
46
|
+
emit('close');
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
const handleColumnVisibleChange = (column, visible) => {
|
|
50
|
+
const tableColumns = [...displaySearchedColumns.value,...hiddenSearchedColumns.value ];
|
|
51
|
+
emit('column-visible-change', tableColumns);
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
// 监听value变化,emit visible-change事件
|
|
55
|
+
vue.watch(value, (newValue) => {
|
|
56
|
+
emit('visible-change', newValue);
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
const appName = webBaseClientVue.useValue('AppName');
|
|
60
|
+
const userService = webBaseClientVue.useService('UserService');
|
|
61
|
+
|
|
62
|
+
const userID = vue.computed(() => vue.unref(userService)?.userInfo?.id || '');
|
|
63
|
+
|
|
64
|
+
const isShowResetColumn = vue.computed(
|
|
65
|
+
() => !props.dataTable.isDefaultColumnSort()
|
|
66
|
+
);
|
|
67
|
+
|
|
68
|
+
const key = vue.computed(
|
|
69
|
+
() => `${vue.unref(appName)}_${props.dataTable.name}_settings`
|
|
70
|
+
);
|
|
71
|
+
|
|
72
|
+
const search = vue.ref('');
|
|
73
|
+
|
|
74
|
+
const columns = vue.computed(() =>
|
|
75
|
+
props.dataTable
|
|
76
|
+
.getColumns()
|
|
77
|
+
.filter((column) => column.settings.visible)
|
|
78
|
+
.filter((column) => column.settings.visible)
|
|
79
|
+
);
|
|
80
|
+
|
|
81
|
+
const initColumns = async () => {
|
|
82
|
+
let persistentColumnInfos = [];
|
|
83
|
+
|
|
84
|
+
const result = await db.dataModelDB.tableHeaderSettings
|
|
85
|
+
.where('[app+tableName+userID]')
|
|
86
|
+
.equals([vue.unref(appName), props.dataTable.name, vue.unref(userID)])
|
|
87
|
+
.toArray();
|
|
88
|
+
|
|
89
|
+
if (result.length) {
|
|
90
|
+
persistentColumnInfos = result[0]?.columnInfo ?? [];
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
if (persistentColumnInfos.some((item) => typeof item === 'string')) {
|
|
94
|
+
persistentColumnInfos = persistentColumnInfos.map((columnInfo) => {
|
|
95
|
+
return typeof columnInfo === 'object'
|
|
96
|
+
? columnInfo
|
|
97
|
+
: { name: columnInfo, visible: true };
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
const _dataTable = props.dataTable;
|
|
102
|
+
let dataTableColumns = _dataTable
|
|
103
|
+
.getColumns()
|
|
104
|
+
.slice()
|
|
105
|
+
.filter((item) => item.settings.visible);
|
|
106
|
+
|
|
107
|
+
persistentColumnInfos = persistentColumnInfos.filter(
|
|
108
|
+
(item) =>
|
|
109
|
+
dataTableColumns.findIndex((column) => column.name === item.name) !== -1
|
|
110
|
+
);
|
|
111
|
+
|
|
112
|
+
if (!persistentColumnInfos) {
|
|
113
|
+
return dataTableColumns;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
let sortedColumns = persistentColumnInfos
|
|
117
|
+
.map((columnInfo) =>
|
|
118
|
+
dataTableColumns.find((column) => column.name === columnInfo.name)
|
|
119
|
+
)
|
|
120
|
+
.filter(Boolean);
|
|
121
|
+
|
|
122
|
+
dataTableColumns = sortedColumns.concat(
|
|
123
|
+
dataTableColumns.filter(
|
|
124
|
+
(column) => !sortedColumns.find((col) => column.name === col.name)
|
|
125
|
+
)
|
|
126
|
+
);
|
|
127
|
+
|
|
128
|
+
for (const column of dataTableColumns) {
|
|
129
|
+
const persistentItem = persistentColumnInfos.find(
|
|
130
|
+
(item) => item.name === column.name
|
|
131
|
+
);
|
|
132
|
+
column.visible = persistentItem?.visible ?? column.visible;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
props.dataTable.setDisplayColumns(
|
|
136
|
+
dataTableColumns.filter((column) => column.visible)
|
|
137
|
+
);
|
|
138
|
+
|
|
139
|
+
return dataTableColumns;
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
const resetColumns = () => {
|
|
143
|
+
const _dataTable = props.dataTable;
|
|
144
|
+
|
|
145
|
+
_dataTable.resetColumnSort();
|
|
146
|
+
emit('reset-columns');
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
const allSearchedColumns = vue.computed(() => {
|
|
150
|
+
const _search = vue.unref(search);
|
|
151
|
+
return vue.unref(columns).filter((column) => column.title.indexOf(_search) > -1);
|
|
152
|
+
});
|
|
153
|
+
|
|
154
|
+
const hiddenSearchedColumns = vue.computed(() =>
|
|
155
|
+
vue.unref(allSearchedColumns).filter((item) => !item.visible)
|
|
156
|
+
);
|
|
157
|
+
|
|
158
|
+
const displaySearchedColumns = vue.computed(() => {
|
|
159
|
+
const _search = vue.unref(search);
|
|
160
|
+
return props.dataTable
|
|
161
|
+
.getDisplayColumns()
|
|
162
|
+
.filter((column) => column.settings.visible)
|
|
163
|
+
.filter((column) => column.title.indexOf(_search) > -1);
|
|
164
|
+
});
|
|
165
|
+
|
|
166
|
+
const handleSortChange = (sort) => {
|
|
167
|
+
const _columns = vue.unref(columns);
|
|
168
|
+
const displayColumns = sort
|
|
169
|
+
.map(
|
|
170
|
+
(attrName) =>
|
|
171
|
+
_columns.find((column) => column.attrName === attrName) ?? null
|
|
172
|
+
)
|
|
173
|
+
.filter(Boolean);
|
|
174
|
+
|
|
175
|
+
props.dataTable.setDisplayColumns(displayColumns);
|
|
176
|
+
const tableColumns = [...displaySearchedColumns.value,...hiddenSearchedColumns.value ];
|
|
177
|
+
emit('column-visible-change', tableColumns);
|
|
178
|
+
emit('sort-change', sort, displayColumns);
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
const scope = vue.getCurrentScope();
|
|
182
|
+
|
|
183
|
+
const handleInitCompleted = async () => {
|
|
184
|
+
const dataTableColumns = await initColumns();
|
|
185
|
+
|
|
186
|
+
const subscription = props.dataTable
|
|
187
|
+
.getDisplayColumnsSubject()
|
|
188
|
+
.pipe(
|
|
189
|
+
rxjs.map((displayColumns) => {
|
|
190
|
+
const hiddenColumns = dataTableColumns.filter(
|
|
191
|
+
(column) =>
|
|
192
|
+
!displayColumns.find(
|
|
193
|
+
(displayColumn) => displayColumn.attrName === column.attrName
|
|
194
|
+
)
|
|
195
|
+
);
|
|
196
|
+
|
|
197
|
+
return [...displayColumns, ...hiddenColumns].map((column) => ({
|
|
198
|
+
name: column.name,
|
|
199
|
+
visible: column.visible,
|
|
200
|
+
}));
|
|
201
|
+
})
|
|
202
|
+
)
|
|
203
|
+
.subscribe({
|
|
204
|
+
next: (columnInfo) => {
|
|
205
|
+
db.dataModelDB.tableHeaderSettings.put({
|
|
206
|
+
app: vue.unref(appName),
|
|
207
|
+
tableName: props.dataTable.name,
|
|
208
|
+
userID: vue.unref(userID),
|
|
209
|
+
columnInfo: columnInfo,
|
|
210
|
+
});
|
|
211
|
+
},
|
|
212
|
+
});
|
|
213
|
+
|
|
214
|
+
scope.run(() => {
|
|
215
|
+
vue.onScopeDispose(() => {
|
|
216
|
+
subscription.unsubscribe();
|
|
217
|
+
});
|
|
218
|
+
});
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
if (!props.dataTable.inited) {
|
|
222
|
+
webBaseClientVue.useEventDispatcher(props.dataTable, 'init-completed', handleInitCompleted);
|
|
223
|
+
} else {
|
|
224
|
+
handleInitCompleted();
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
return (_ctx, _cache) => {
|
|
228
|
+
const _component_RefreshRight = vue.resolveComponent("RefreshRight");
|
|
229
|
+
const _component_Close = vue.resolveComponent("Close");
|
|
230
|
+
|
|
231
|
+
return (vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElTooltip), vue.mergeProps({
|
|
232
|
+
visible: value.value,
|
|
233
|
+
"onUpdate:visible": _cache[1] || (_cache[1] = $event => ((value).value = $event))
|
|
234
|
+
}, vue.unref(attrs), {
|
|
235
|
+
effect: "light",
|
|
236
|
+
"show-arrow": false,
|
|
237
|
+
trigger: "click",
|
|
238
|
+
"popper-class": vue.unref(ns).b(),
|
|
239
|
+
"gpu-acceleration": false,
|
|
240
|
+
placement: "bottom",
|
|
241
|
+
"append-to": ".bwa-application"
|
|
242
|
+
}), {
|
|
243
|
+
content: vue.withCtx(() => [
|
|
244
|
+
vue.createElementVNode("div", {
|
|
245
|
+
class: vue.normalizeClass(vue.unref(ns).e('content'))
|
|
246
|
+
}, [
|
|
247
|
+
vue.createElementVNode("div", {
|
|
248
|
+
class: vue.normalizeClass(vue.unref(ns).e('header'))
|
|
249
|
+
}, [
|
|
250
|
+
vue.createTextVNode(" 表头设置 "),
|
|
251
|
+
vue.createElementVNode("span", {
|
|
252
|
+
class: vue.normalizeClass(vue.unref(ns).e('tools'))
|
|
160
253
|
}, [
|
|
161
|
-
vue.
|
|
162
|
-
|
|
163
|
-
}, [
|
|
164
|
-
vue.createTextVNode(" \u8868\u5934\u8BBE\u7F6E "),
|
|
165
|
-
vue.createElementVNode("span", {
|
|
166
|
-
class: vue.normalizeClass(vue.unref(ns).e("tools"))
|
|
167
|
-
}, [
|
|
168
|
-
vue.unref(isShowResetColumn) ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
254
|
+
(vue.unref(isShowResetColumn))
|
|
255
|
+
? (vue.openBlock(), vue.createElementBlock("span", {
|
|
169
256
|
key: 0,
|
|
170
|
-
class: vue.normalizeClass([vue.unref(ns).e(
|
|
257
|
+
class: vue.normalizeClass([vue.unref(ns).e('tools-item'), vue.unref(ns).e('refresh')]),
|
|
171
258
|
onClick: resetColumns
|
|
172
259
|
}, [
|
|
173
260
|
vue.createVNode(vue.unref(ElementPlus.ElTooltip), {
|
|
174
|
-
content: "
|
|
261
|
+
content: "恢复默认",
|
|
175
262
|
"append-to": ".bwa-application"
|
|
176
263
|
}, {
|
|
177
264
|
default: vue.withCtx(() => [
|
|
@@ -179,53 +266,48 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
179
266
|
default: vue.withCtx(() => [
|
|
180
267
|
vue.createVNode(_component_RefreshRight)
|
|
181
268
|
]),
|
|
182
|
-
_: 1
|
|
269
|
+
_: 1 /* STABLE */
|
|
183
270
|
})
|
|
184
271
|
]),
|
|
185
|
-
_: 1
|
|
272
|
+
_: 1 /* STABLE */
|
|
186
273
|
})
|
|
187
|
-
], 2
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
274
|
+
], 2 /* CLASS */))
|
|
275
|
+
: vue.createCommentVNode("v-if", true),
|
|
276
|
+
vue.createElementVNode("span", {
|
|
277
|
+
class: vue.normalizeClass([vue.unref(ns).e('tools-item'), vue.unref(ns).e('close')]),
|
|
278
|
+
onClick: handleClose
|
|
279
|
+
}, [
|
|
280
|
+
vue.createVNode(vue.unref(ElementPlus.ElTooltip), {
|
|
281
|
+
content: "关闭",
|
|
282
|
+
"append-to": ".bwa-application"
|
|
283
|
+
}, {
|
|
284
|
+
default: vue.withCtx(() => [
|
|
285
|
+
vue.createVNode(vue.unref(ElementPlus.ElIcon), null, {
|
|
196
286
|
default: vue.withCtx(() => [
|
|
197
|
-
vue.createVNode(
|
|
198
|
-
default: vue.withCtx(() => [
|
|
199
|
-
vue.createVNode(_component_Close)
|
|
200
|
-
]),
|
|
201
|
-
_: 1
|
|
202
|
-
})
|
|
287
|
+
vue.createVNode(_component_Close)
|
|
203
288
|
]),
|
|
204
|
-
_: 1
|
|
289
|
+
_: 1 /* STABLE */
|
|
205
290
|
})
|
|
206
|
-
],
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
:clearable
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
vue.
|
|
220
|
-
class: vue.normalizeClass(vue.unref(ns).e("main"))
|
|
221
|
-
}, [
|
|
222
|
-
vue.unref(displaySearchedColumns).length ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
291
|
+
]),
|
|
292
|
+
_: 1 /* STABLE */
|
|
293
|
+
})
|
|
294
|
+
], 2 /* CLASS */)
|
|
295
|
+
], 2 /* CLASS */)
|
|
296
|
+
], 2 /* CLASS */),
|
|
297
|
+
vue.createCommentVNode(" <div :class=\"ns.e('search')\">\r\n <ElInput\r\n v-model=\"search\"\r\n :clearable=\"true\"\r\n prefix-icon=\"Search\"\r\n placeholder=\"请输入关键词搜索\"\r\n />\r\n </div> "),
|
|
298
|
+
vue.createVNode(vue.unref(ElementPlus.ElScrollbar), { "max-height": "500px" }, {
|
|
299
|
+
default: vue.withCtx(() => [
|
|
300
|
+
vue.createElementVNode("div", {
|
|
301
|
+
class: vue.normalizeClass(vue.unref(ns).e('main'))
|
|
302
|
+
}, [
|
|
303
|
+
(vue.unref(displaySearchedColumns).length)
|
|
304
|
+
? (vue.openBlock(), vue.createElementBlock("div", {
|
|
223
305
|
key: 0,
|
|
224
|
-
class: vue.normalizeClass(vue.unref(ns).b(
|
|
306
|
+
class: vue.normalizeClass(vue.unref(ns).b('section'))
|
|
225
307
|
}, [
|
|
226
308
|
vue.createElementVNode("div", {
|
|
227
|
-
class: vue.normalizeClass(vue.unref(ns).be(
|
|
228
|
-
}, "
|
|
309
|
+
class: vue.normalizeClass(vue.unref(ns).be('section', 'header'))
|
|
310
|
+
}, "显示字段", 2 /* CLASS */),
|
|
229
311
|
vue.createVNode(vue.unref(index.BwaDraglist), {
|
|
230
312
|
data: vue.unref(displaySearchedColumns),
|
|
231
313
|
labelAttr: "title",
|
|
@@ -234,80 +316,73 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
234
316
|
}, {
|
|
235
317
|
default: vue.withCtx(({ item }) => [
|
|
236
318
|
vue.createElementVNode("div", {
|
|
237
|
-
class: vue.normalizeClass(vue.unref(ns).be(
|
|
319
|
+
class: vue.normalizeClass(vue.unref(ns).be('section', 'content'))
|
|
238
320
|
}, [
|
|
239
321
|
vue.createElementVNode("div", {
|
|
240
|
-
class: vue.normalizeClass(vue.unref(ns).e(
|
|
322
|
+
class: vue.normalizeClass(vue.unref(ns).e('field-item'))
|
|
241
323
|
}, [
|
|
242
|
-
vue.createElementVNode("span", null, vue.toDisplayString(item.title), 1),
|
|
324
|
+
vue.createElementVNode("span", null, vue.toDisplayString(item.title), 1 /* TEXT */),
|
|
243
325
|
vue.createVNode(vue.unref(ElementPlus.ElSwitch), {
|
|
244
326
|
modelValue: item.visible,
|
|
245
|
-
"onUpdate:modelValue":
|
|
246
|
-
size: "small",
|
|
327
|
+
"onUpdate:modelValue": $event => ((item.visible) = $event),
|
|
247
328
|
disabled: item.settings.disabled,
|
|
248
|
-
onMousedown: _cache[
|
|
249
|
-
|
|
250
|
-
}, null, 8
|
|
251
|
-
], 2)
|
|
252
|
-
], 2)
|
|
329
|
+
onMousedown: _cache[0] || (_cache[0] = vue.withModifiers(() => {}, ["stop"])),
|
|
330
|
+
onChange: (val) => handleColumnVisibleChange(item, val)
|
|
331
|
+
}, null, 8 /* PROPS */, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])
|
|
332
|
+
], 2 /* CLASS */)
|
|
333
|
+
], 2 /* CLASS */)
|
|
253
334
|
]),
|
|
254
|
-
_: 1
|
|
255
|
-
}, 8
|
|
256
|
-
vue.createCommentVNode(
|
|
257
|
-
|
|
258
|
-
:
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
</div> `)
|
|
262
|
-
], 2)) : vue.createCommentVNode("v-if", true),
|
|
263
|
-
vue.unref(hiddenSearchedColumns).length ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
335
|
+
_: 1 /* STABLE */
|
|
336
|
+
}, 8 /* PROPS */, ["data"]),
|
|
337
|
+
vue.createCommentVNode(" <div\r\n v-show=\"!displaySearchedColumns.length\"\r\n :class=\"ns.be('section', 'empty')\"\r\n >\r\n 暂无字段\r\n </div> ")
|
|
338
|
+
], 2 /* CLASS */))
|
|
339
|
+
: vue.createCommentVNode("v-if", true),
|
|
340
|
+
(vue.unref(hiddenSearchedColumns).length)
|
|
341
|
+
? (vue.openBlock(), vue.createElementBlock("div", {
|
|
264
342
|
key: 1,
|
|
265
|
-
class: vue.normalizeClass(vue.unref(ns).b(
|
|
343
|
+
class: vue.normalizeClass(vue.unref(ns).b('section'))
|
|
266
344
|
}, [
|
|
267
345
|
vue.createElementVNode("div", {
|
|
268
|
-
class: vue.normalizeClass(vue.unref(ns).be(
|
|
269
|
-
}, "
|
|
346
|
+
class: vue.normalizeClass(vue.unref(ns).be('section', 'header'))
|
|
347
|
+
}, "未显示字段", 2 /* CLASS */),
|
|
270
348
|
vue.createElementVNode("div", {
|
|
271
|
-
class: vue.normalizeClass(vue.unref(ns).be(
|
|
349
|
+
class: vue.normalizeClass(vue.unref(ns).be('section', 'content'))
|
|
272
350
|
}, [
|
|
273
351
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(hiddenSearchedColumns), (column) => {
|
|
274
|
-
return vue.openBlock(), vue.createElementBlock("div", {
|
|
352
|
+
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
275
353
|
key: column.attrName,
|
|
276
|
-
class: vue.normalizeClass(vue.unref(ns).e(
|
|
354
|
+
class: vue.normalizeClass(vue.unref(ns).e('field-item'))
|
|
277
355
|
}, [
|
|
278
|
-
vue.createElementVNode("span", null, vue.toDisplayString(column.title), 1),
|
|
356
|
+
vue.createElementVNode("span", null, vue.toDisplayString(column.title), 1 /* TEXT */),
|
|
279
357
|
vue.createVNode(vue.unref(ElementPlus.ElSwitch), {
|
|
280
358
|
modelValue: column.visible,
|
|
281
|
-
"onUpdate:modelValue":
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
}, null, 8
|
|
285
|
-
], 2)
|
|
286
|
-
}), 128))
|
|
287
|
-
], 2),
|
|
288
|
-
vue.createCommentVNode(
|
|
289
|
-
|
|
290
|
-
:
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
}
|
|
310
|
-
});
|
|
311
|
-
var DataTableSettings = /* @__PURE__ */ _pluginVue_exportHelper["default"](_sfc_main, [["__file", "datatable-settings.vue"]]);
|
|
359
|
+
"onUpdate:modelValue": $event => ((column.visible) = $event),
|
|
360
|
+
disabled: column.settings.disabled,
|
|
361
|
+
onChange: (val) => handleColumnVisibleChange(column, val)
|
|
362
|
+
}, null, 8 /* PROPS */, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])
|
|
363
|
+
], 2 /* CLASS */))
|
|
364
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
365
|
+
], 2 /* CLASS */),
|
|
366
|
+
vue.createCommentVNode(" <div\r\n v-show=\"!hiddenSearchedColumns.length\"\r\n :class=\"ns.be('section', 'empty')\"\r\n >\r\n 暂无字段\r\n </div> ")
|
|
367
|
+
], 2 /* CLASS */))
|
|
368
|
+
: vue.createCommentVNode("v-if", true)
|
|
369
|
+
], 2 /* CLASS */)
|
|
370
|
+
]),
|
|
371
|
+
_: 1 /* STABLE */
|
|
372
|
+
})
|
|
373
|
+
], 2 /* CLASS */)
|
|
374
|
+
]),
|
|
375
|
+
default: vue.withCtx(() => [
|
|
376
|
+
vue.createElementVNode("span", null, [
|
|
377
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
378
|
+
])
|
|
379
|
+
]),
|
|
380
|
+
_: 3 /* FORWARDED */
|
|
381
|
+
}, 16 /* FULL_PROPS */, ["visible", "popper-class"]))
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
};
|
|
386
|
+
var DataTableSettings = /*#__PURE__*/_pluginVue_exportHelper["default"](_sfc_main, [['__file',"datatable-settings.vue"]]);
|
|
312
387
|
|
|
313
388
|
exports["default"] = DataTableSettings;
|