@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
|
@@ -1,251 +1,271 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { watch, provide, reactive, resolveComponent, openBlock, createElementBlock, normalizeClass, unref, renderSlot, Fragment, renderList, createVNode, withCtx, createBlock, createCommentVNode, normalizeStyle, toDisplayString, isRef, createElementVNode, withModifiers, createTextVNode } from 'vue';
|
|
2
2
|
import { useNamespace, filterPanelKey } from '@ctzy-web-client/web-base-client-vue';
|
|
3
3
|
import { useFilterPanel } from './use-filter-panel.mjs';
|
|
4
4
|
import PctFilterPanelItem from './pct-filter-panel-item.mjs';
|
|
5
5
|
import _export_sfc from '../_virtual/_plugin-vue_export-helper.mjs';
|
|
6
6
|
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
emits: ["reset", "filter"],
|
|
7
|
+
const _sfc_main = {
|
|
8
|
+
__name: 'pct-filter-panel',
|
|
9
|
+
props: {
|
|
10
|
+
dataTable: {
|
|
11
|
+
type: Object,
|
|
12
|
+
},
|
|
13
|
+
showSearch: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
default: false,
|
|
16
|
+
},
|
|
17
|
+
showFieldOptions: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: true,
|
|
20
|
+
},
|
|
21
|
+
searchAttr: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: 'search',
|
|
24
|
+
},
|
|
25
|
+
searchPlaceholder: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: '',
|
|
28
|
+
},
|
|
29
|
+
searchFields: {
|
|
30
|
+
type: Array,
|
|
31
|
+
default: () => [],
|
|
32
|
+
},
|
|
33
|
+
showTitle: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
default: false,
|
|
36
|
+
},
|
|
37
|
+
searchTitle: {
|
|
38
|
+
type: String,
|
|
39
|
+
default: '标题名称',
|
|
40
|
+
},
|
|
41
|
+
filterPanelLineNum: {
|
|
42
|
+
type: Number
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
emits: ['reset', 'filter'],
|
|
48
46
|
setup(__props, { emit }) {
|
|
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
|
-
|
|
47
|
+
|
|
48
|
+
const props = __props;
|
|
49
|
+
|
|
50
|
+
defineOptions({
|
|
51
|
+
name: 'BwaPctFilterPanel',
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
const ns = useNamespace('pctfilterpanel');
|
|
59
|
+
|
|
60
|
+
const {
|
|
61
|
+
dataTable,
|
|
62
|
+
filterPanel,
|
|
63
|
+
currentFilterColumns,
|
|
64
|
+
selectedColumnAttrNames,
|
|
65
|
+
closableColumns,
|
|
66
|
+
searchParams,
|
|
67
|
+
handleFieldSearch,
|
|
68
|
+
searchValue,
|
|
69
|
+
isChange,
|
|
70
|
+
handleReset,
|
|
71
|
+
handleSearch
|
|
72
|
+
} = useFilterPanel(props, { emit });
|
|
73
|
+
console.log(currentFilterColumns);
|
|
74
|
+
watch(
|
|
75
|
+
filterPanel,
|
|
76
|
+
(filterPanel, _, onCleanup) => {
|
|
77
|
+
filterPanel.existComponent = true;
|
|
78
|
+
|
|
79
|
+
onCleanup(() => {
|
|
80
|
+
filterPanel.existComponent = false;
|
|
81
|
+
});
|
|
82
|
+
},
|
|
83
|
+
{ immediate: true }
|
|
84
|
+
);
|
|
85
|
+
|
|
86
|
+
provide(
|
|
87
|
+
filterPanelKey,
|
|
88
|
+
reactive({
|
|
89
|
+
dataTable,
|
|
90
|
+
filterPanel,
|
|
91
|
+
currentFilterColumns,
|
|
92
|
+
showTitle: props.showTitle,
|
|
93
|
+
filterPanelLineNum: props.filterPanelLineNum
|
|
94
|
+
})
|
|
95
|
+
);
|
|
96
|
+
|
|
97
|
+
return (_ctx, _cache) => {
|
|
98
|
+
const _component_BwaPctMultipleMenuCondition = resolveComponent("BwaPctMultipleMenuCondition");
|
|
99
|
+
const _component_BwaPctInputCondition = resolveComponent("BwaPctInputCondition");
|
|
100
|
+
const _component_BwaPctDateRangeCondition = resolveComponent("BwaPctDateRangeCondition");
|
|
101
|
+
const _component_ElInput = resolveComponent("ElInput");
|
|
102
|
+
const _component_ElButton = resolveComponent("ElButton");
|
|
103
|
+
const _component_ElCheckbox = resolveComponent("ElCheckbox");
|
|
104
|
+
const _component_BwaAdvanceOption = resolveComponent("BwaAdvanceOption");
|
|
105
|
+
const _component_BwaAdvanceSelect = resolveComponent("BwaAdvanceSelect");
|
|
106
|
+
|
|
107
|
+
return (openBlock(), createElementBlock("div", {
|
|
108
|
+
class: normalizeClass(unref(ns).b())
|
|
109
|
+
}, [
|
|
110
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
111
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(currentFilterColumns), (column) => {
|
|
112
|
+
return renderSlot(_ctx.$slots, `condition-${column.attrName}`, {
|
|
113
|
+
key: column.attrName,
|
|
114
|
+
attrName: column.attrName
|
|
115
|
+
}, () => [
|
|
116
|
+
createVNode(PctFilterPanelItem, {
|
|
117
|
+
prop: column.fullAttrName
|
|
118
|
+
}, {
|
|
119
|
+
default: withCtx(({ data }) => [
|
|
120
|
+
(!column.component || column.component === 'BwaMultipleMenuCondition'|| column.component === 'BwaSingleMenuCondition')
|
|
121
|
+
? (openBlock(), createBlock(_component_BwaPctMultipleMenuCondition, {
|
|
122
|
+
key: 0,
|
|
123
|
+
modelValue: data.value,
|
|
124
|
+
"onUpdate:modelValue": $event => ((data.value) = $event),
|
|
125
|
+
column: column,
|
|
126
|
+
multiple: column.component !== 'BwaSingleMenuCondition',
|
|
127
|
+
showTitle: props.showTitle,
|
|
128
|
+
showSearch: column.componentProps?.showSearch,
|
|
129
|
+
options: column.componentProps?.options || []
|
|
130
|
+
}, null, 8 /* PROPS */, ["modelValue", "onUpdate:modelValue", "column", "multiple", "showTitle", "showSearch", "options"]))
|
|
131
|
+
: createCommentVNode("v-if", true),
|
|
132
|
+
(column.component === 'BwaInputCondition')
|
|
133
|
+
? (openBlock(), createBlock(_component_BwaPctInputCondition, {
|
|
134
|
+
key: 1,
|
|
135
|
+
modelValue: data.value,
|
|
136
|
+
"onUpdate:modelValue": $event => ((data.value) = $event),
|
|
137
|
+
column: column,
|
|
138
|
+
showTitle: props.showTitle
|
|
139
|
+
}, null, 8 /* PROPS */, ["modelValue", "onUpdate:modelValue", "column", "showTitle"]))
|
|
140
|
+
: createCommentVNode("v-if", true),
|
|
141
|
+
(column.component === 'BwaDateRangeCondition')
|
|
142
|
+
? (openBlock(), createBlock(_component_BwaPctDateRangeCondition, {
|
|
143
|
+
key: 2,
|
|
144
|
+
modelValue: data.value,
|
|
145
|
+
"onUpdate:modelValue": $event => ((data.value) = $event),
|
|
146
|
+
showTitle: props.showTitle
|
|
147
|
+
}, null, 8 /* PROPS */, ["modelValue", "onUpdate:modelValue", "showTitle"]))
|
|
148
|
+
: createCommentVNode("v-if", true)
|
|
149
|
+
]),
|
|
150
|
+
_: 2 /* DYNAMIC */
|
|
151
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["prop"])
|
|
152
|
+
])
|
|
153
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
154
|
+
]),
|
|
155
|
+
(__props.showSearch)
|
|
156
|
+
? (openBlock(), createElementBlock("div", {
|
|
140
157
|
key: 0,
|
|
141
|
-
style: normalizeStyle([{
|
|
142
|
-
|
|
143
|
-
|
|
158
|
+
style: normalizeStyle([{"display":"flex","align-items":"center","padding-right":"20px","box-sizing":"border-box"}, {
|
|
159
|
+
'width': props.filterPanelLineNum ? (100 / props.filterPanelLineNum).toFixed(2) + '%' : props.showTitle ? '25%' : '20%',
|
|
160
|
+
}])
|
|
144
161
|
}, [
|
|
145
|
-
__props.showTitle
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
162
|
+
(__props.showTitle)
|
|
163
|
+
? (openBlock(), createElementBlock("div", {
|
|
164
|
+
key: 0,
|
|
165
|
+
class: normalizeClass(unref(ns).e('title')),
|
|
166
|
+
style: {"padding-right":"8px"}
|
|
167
|
+
}, toDisplayString(__props.searchTitle), 3 /* TEXT, CLASS */))
|
|
168
|
+
: createCommentVNode("v-if", true),
|
|
150
169
|
createVNode(_component_ElInput, {
|
|
151
170
|
"prefix-icon": "Search",
|
|
152
|
-
size: "small",
|
|
153
171
|
clearable: "",
|
|
154
172
|
modelValue: unref(searchValue),
|
|
155
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] =
|
|
173
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (isRef(searchValue) ? (searchValue).value = $event : null)),
|
|
156
174
|
placeholder: __props.searchPlaceholder,
|
|
157
|
-
class: normalizeClass(unref(ns).e(
|
|
158
|
-
}, null, 8
|
|
159
|
-
], 4
|
|
160
|
-
|
|
175
|
+
class: normalizeClass(unref(ns).e('search'))
|
|
176
|
+
}, null, 8 /* PROPS */, ["modelValue", "placeholder", "class"])
|
|
177
|
+
], 4 /* STYLE */))
|
|
178
|
+
: createCommentVNode("v-if", true),
|
|
179
|
+
(__props.showFieldOptions)
|
|
180
|
+
? (openBlock(), createBlock(PctFilterPanelItem, {
|
|
161
181
|
key: 1,
|
|
162
|
-
style: {
|
|
182
|
+
style: {"width":"auto","padding-right":"16px"}
|
|
163
183
|
}, {
|
|
164
184
|
default: withCtx(() => [
|
|
165
|
-
__props.showFieldOptions
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
"reference-content": withCtx(() => [
|
|
175
|
-
createVNode(_component_ElButton, {
|
|
176
|
-
size: "small",
|
|
177
|
-
class: normalizeClass(unref(ns).e("filterBut"))
|
|
185
|
+
(__props.showFieldOptions)
|
|
186
|
+
? (openBlock(), createBlock(_component_BwaAdvanceSelect, {
|
|
187
|
+
key: 0,
|
|
188
|
+
modelValue: unref(selectedColumnAttrNames),
|
|
189
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => (isRef(selectedColumnAttrNames) ? (selectedColumnAttrNames).value = $event : null)),
|
|
190
|
+
"show-selectIcon": false,
|
|
191
|
+
onSearch: unref(handleFieldSearch),
|
|
192
|
+
class: normalizeClass(unref(ns).e('options')),
|
|
193
|
+
source: "pct"
|
|
178
194
|
}, {
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
class: normalizeClass(unref(ns).
|
|
182
|
-
},
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
195
|
+
"reference-content": withCtx(() => [
|
|
196
|
+
createVNode(_component_ElButton, {
|
|
197
|
+
class: normalizeClass(unref(ns).e('filterBut'))
|
|
198
|
+
}, {
|
|
199
|
+
default: withCtx(() => [
|
|
200
|
+
createElementVNode("div", {
|
|
201
|
+
class: normalizeClass(unref(ns).be('filter', 'plus'))
|
|
202
|
+
}, null, 2 /* CLASS */),
|
|
203
|
+
createElementVNode("span", {
|
|
204
|
+
class: normalizeClass(unref(ns).be('filter', 'label'))
|
|
205
|
+
}, " 筛选 ", 2 /* CLASS */)
|
|
206
|
+
]),
|
|
207
|
+
_: 1 /* STABLE */
|
|
208
|
+
}, 8 /* PROPS */, ["class"])
|
|
186
209
|
]),
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
label: column.title,
|
|
195
|
-
key: column.fullAttrName,
|
|
196
|
-
class: normalizeClass(unref(ns).be("filter", "option"))
|
|
197
|
-
}, {
|
|
198
|
-
default: withCtx(() => [
|
|
199
|
-
createVNode(_component_ElCheckbox, {
|
|
200
|
-
onClick: _cache[1] || (_cache[1] = withModifiers(() => {
|
|
201
|
-
}, ["prevent"])),
|
|
202
|
-
modelValue: unref(selectedColumnAttrNames).includes(column.fullAttrName),
|
|
203
|
-
class: normalizeClass(unref(ns).be("filter", "checkbox"))
|
|
210
|
+
default: withCtx(() => [
|
|
211
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(closableColumns), (column) => {
|
|
212
|
+
return (openBlock(), createBlock(_component_BwaAdvanceOption, {
|
|
213
|
+
value: column.fullAttrName,
|
|
214
|
+
label: column.title,
|
|
215
|
+
key: column.fullAttrName,
|
|
216
|
+
class: normalizeClass(unref(ns).be('filter', 'option'))
|
|
204
217
|
}, {
|
|
205
218
|
default: withCtx(() => [
|
|
206
|
-
|
|
219
|
+
createVNode(_component_ElCheckbox, {
|
|
220
|
+
onClick: _cache[1] || (_cache[1] = withModifiers(() => {}, ["prevent"])),
|
|
221
|
+
modelValue: unref(selectedColumnAttrNames).includes(column.fullAttrName),
|
|
222
|
+
class: normalizeClass(unref(ns).be('filter', 'checkbox'))
|
|
223
|
+
}, {
|
|
224
|
+
default: withCtx(() => [
|
|
225
|
+
createTextVNode(toDisplayString(column.title), 1 /* TEXT */)
|
|
226
|
+
]),
|
|
227
|
+
_: 2 /* DYNAMIC */
|
|
228
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["modelValue", "class"]),
|
|
229
|
+
createElementVNode("span", {
|
|
230
|
+
class: normalizeClass(unref(ns).be('filter', 'title'))
|
|
231
|
+
}, toDisplayString(column.componentTitle), 3 /* TEXT, CLASS */)
|
|
207
232
|
]),
|
|
208
|
-
_: 2
|
|
209
|
-
}, 1032, ["
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
}, 1032, ["value", "label", "class"]);
|
|
216
|
-
}), 128))
|
|
217
|
-
]),
|
|
218
|
-
_: 1
|
|
219
|
-
}, 8, ["modelValue", "onSearch", "class"])) : createCommentVNode("v-if", true)
|
|
220
|
-
]),
|
|
221
|
-
_: 1
|
|
222
|
-
})) : createCommentVNode("v-if", true),
|
|
223
|
-
createVNode(_component_ElButton, {
|
|
224
|
-
size: "small",
|
|
225
|
-
type: "primary",
|
|
226
|
-
class: normalizeClass(unref(ns).e("reset")),
|
|
227
|
-
onClick: unref(handleSearch)
|
|
228
|
-
}, {
|
|
229
|
-
default: withCtx(() => [
|
|
230
|
-
createTextVNode(" \u67E5\u8BE2 ")
|
|
231
|
-
]),
|
|
232
|
-
_: 1
|
|
233
|
-
}, 8, ["class", "onClick"]),
|
|
234
|
-
createVNode(_component_ElButton, {
|
|
235
|
-
size: "small",
|
|
236
|
-
class: normalizeClass(unref(ns).e("reset")),
|
|
237
|
-
onClick: unref(handleReset)
|
|
238
|
-
}, {
|
|
239
|
-
default: withCtx(() => [
|
|
240
|
-
createTextVNode(" \u91CD\u7F6E ")
|
|
233
|
+
_: 2 /* DYNAMIC */
|
|
234
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["value", "label", "class"]))
|
|
235
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
236
|
+
]),
|
|
237
|
+
_: 1 /* STABLE */
|
|
238
|
+
}, 8 /* PROPS */, ["modelValue", "onSearch", "class"]))
|
|
239
|
+
: createCommentVNode("v-if", true)
|
|
241
240
|
]),
|
|
242
|
-
_: 1
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
241
|
+
_: 1 /* STABLE */
|
|
242
|
+
}))
|
|
243
|
+
: createCommentVNode("v-if", true),
|
|
244
|
+
createVNode(_component_ElButton, {
|
|
245
|
+
type: "primary",
|
|
246
|
+
class: normalizeClass(unref(ns).e('reset')),
|
|
247
|
+
onClick: unref(handleSearch)
|
|
248
|
+
}, {
|
|
249
|
+
default: withCtx(() => [
|
|
250
|
+
createTextVNode(" 查询 ")
|
|
251
|
+
]),
|
|
252
|
+
_: 1 /* STABLE */
|
|
253
|
+
}, 8 /* PROPS */, ["class", "onClick"]),
|
|
254
|
+
createVNode(_component_ElButton, {
|
|
255
|
+
class: normalizeClass(unref(ns).e('reset')),
|
|
256
|
+
onClick: unref(handleReset)
|
|
257
|
+
}, {
|
|
258
|
+
default: withCtx(() => [
|
|
259
|
+
createTextVNode(" 重置 ")
|
|
260
|
+
]),
|
|
261
|
+
_: 1 /* STABLE */
|
|
262
|
+
}, 8 /* PROPS */, ["class", "onClick"]),
|
|
263
|
+
renderSlot(_ctx.$slots, "button")
|
|
264
|
+
], 2 /* CLASS */))
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
};
|
|
269
|
+
var PctFilterPanel = /*#__PURE__*/_export_sfc(_sfc_main, [['__file',"pct-filter-panel.vue"]]);
|
|
250
270
|
|
|
251
271
|
export { PctFilterPanel as default };
|