@ctzy-web-client/plugin-component-vue 1.0.23 → 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.
Files changed (131) hide show
  1. package/es/advance-select/advance-operation.mjs +51 -37
  2. package/es/advance-select/advance-option.mjs +167 -97
  3. package/es/advance-select/advance-option.vue_vue_type_style_index_0_scoped_bc8f5626_lang.mjs +7 -0
  4. package/es/advance-select/advance-select.mjs +368 -310
  5. package/es/advance-select/index.mjs +5 -5
  6. package/es/application-slot/breadcrumb-item.mjs +20 -17
  7. package/es/application-slot/header-tools-item.mjs +20 -17
  8. package/es/breadcrumb-select/breadcrumb-select.mjs +134 -112
  9. package/es/contextmenu/contextmenu-item.mjs +19 -15
  10. package/es/contextmenu/contextmenu.mjs +72 -56
  11. package/es/data-form/data-form-item.mjs +48 -30
  12. package/es/data-form/data-form.mjs +213 -166
  13. package/es/data-form/form-components/bwa-date-picker.mjs +51 -39
  14. package/es/data-form/form-components/bwa-date-time-picker.mjs +56 -44
  15. package/es/data-form/form-components/bwa-input-float.mjs +48 -37
  16. package/es/data-form/form-components/bwa-input-integer.mjs +68 -50
  17. package/es/data-form/form-components/bwa-input.mjs +43 -32
  18. package/es/data-form/form-components/bwa-multi-select.mjs +40 -29
  19. package/es/data-form/form-components/bwa-rich-text-tinymce.mjs +554 -218
  20. package/es/data-form/form-components/bwa-rich-text.mjs +404 -316
  21. package/es/data-form/form-components/bwa-select.mjs +84 -70
  22. package/es/data-form/form-components/bwa-textarea.mjs +38 -27
  23. package/es/data-form/form-components/bwa-upload.mjs +172 -148
  24. package/es/data-form/form-components/bwa-user-multi-select.mjs +35 -24
  25. package/es/data-form/form-components/bwa-user-select.mjs +86 -61
  26. package/es/data-table/data-column-view.mjs +146 -115
  27. package/es/data-table/data-table-card.mjs +48 -40
  28. package/es/data-table/data-table-column.mjs +58 -45
  29. package/es/data-table/data-table.mjs +402 -316
  30. package/es/datatable-settings/datatable-settings.mjs +329 -254
  31. package/es/date-range/date-picker.mjs +130 -116
  32. package/es/date-range/date-range.mjs +215 -161
  33. package/es/drag-list/drag-item.mjs +56 -42
  34. package/es/drag-list/drag-list.mjs +60 -47
  35. package/es/dragable/dragable-item.mjs +23 -18
  36. package/es/dragable/dragable-operation.mjs +32 -24
  37. package/es/dragable/dragable.mjs +32 -23
  38. package/es/filter-panel/conditions/date-range-condition.mjs +50 -40
  39. package/es/filter-panel/conditions/department-condition/department-condition.mjs +99 -72
  40. package/es/filter-panel/conditions/department-condition/department-node.mjs +73 -59
  41. package/es/filter-panel/conditions/input-condition.mjs +90 -76
  42. package/es/filter-panel/conditions/multi-user-condition.mjs +67 -57
  43. package/es/filter-panel/conditions/multiple-menu-condition.mjs +54 -35
  44. package/es/filter-panel/conditions/single-menu-condition.mjs +65 -60
  45. package/es/filter-panel/conditions/single-user-condition.mjs +67 -57
  46. package/es/filter-panel/filter-panel-item.mjs +54 -39
  47. package/es/filter-panel/filter-panel.mjs +153 -135
  48. package/es/layout/layout.mjs +85 -78
  49. package/es/menu/menu-item.mjs +67 -52
  50. package/es/menu/menu.mjs +70 -53
  51. package/es/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.mjs +28 -0
  52. package/es/panel/panel.mjs +53 -40
  53. package/es/pct-filter-panel/pct-compents/pct-Input-condition.mjs +74 -63
  54. package/es/pct-filter-panel/pct-compents/pct-date-range-condition.mjs +76 -67
  55. package/es/pct-filter-panel/pct-compents/pct-multiple-menu-condition.mjs +406 -178
  56. package/es/pct-filter-panel/pct-compents/pct-multiple-menu-condition2.mjs +153 -138
  57. package/es/pct-filter-panel/pct-filter-panel-item.mjs +55 -40
  58. package/es/pct-filter-panel/pct-filter-panel.mjs +247 -227
  59. package/es/progress/progress-item.mjs +81 -61
  60. package/es/progress/progress.mjs +78 -64
  61. package/es/where-filter-panel/where-filter-panel.mjs +15 -12
  62. package/lib/advance-select/advance-operation.js +50 -36
  63. package/lib/advance-select/advance-option.js +166 -96
  64. package/lib/advance-select/advance-option.vue_vue_type_style_index_0_scoped_bc8f5626_lang.js +12 -0
  65. package/lib/advance-select/advance-select.js +366 -308
  66. package/lib/application-slot/breadcrumb-item.js +19 -16
  67. package/lib/application-slot/header-tools-item.js +19 -16
  68. package/lib/breadcrumb-select/breadcrumb-select.js +133 -111
  69. package/lib/contextmenu/contextmenu-item.js +18 -14
  70. package/lib/contextmenu/contextmenu.js +71 -55
  71. package/lib/data-form/data-form-item.js +47 -29
  72. package/lib/data-form/data-form.js +212 -165
  73. package/lib/data-form/form-components/bwa-date-picker.js +50 -38
  74. package/lib/data-form/form-components/bwa-date-time-picker.js +55 -43
  75. package/lib/data-form/form-components/bwa-input-float.js +47 -36
  76. package/lib/data-form/form-components/bwa-input-integer.js +67 -49
  77. package/lib/data-form/form-components/bwa-input.js +42 -31
  78. package/lib/data-form/form-components/bwa-multi-select.js +39 -28
  79. package/lib/data-form/form-components/bwa-rich-text-tinymce.js +553 -217
  80. package/lib/data-form/form-components/bwa-rich-text.js +403 -315
  81. package/lib/data-form/form-components/bwa-select.js +83 -69
  82. package/lib/data-form/form-components/bwa-textarea.js +37 -26
  83. package/lib/data-form/form-components/bwa-upload.js +171 -147
  84. package/lib/data-form/form-components/bwa-user-multi-select.js +34 -23
  85. package/lib/data-form/form-components/bwa-user-select.js +85 -60
  86. package/lib/data-table/data-column-view.js +146 -115
  87. package/lib/data-table/data-table-card.js +48 -40
  88. package/lib/data-table/data-table-column.js +57 -44
  89. package/lib/data-table/data-table.js +401 -315
  90. package/lib/datatable-settings/datatable-settings.js +328 -253
  91. package/lib/date-range/date-picker.js +129 -115
  92. package/lib/date-range/date-range.js +214 -160
  93. package/lib/drag-list/drag-item.js +55 -41
  94. package/lib/drag-list/drag-list.js +59 -46
  95. package/lib/dragable/dragable-item.js +22 -17
  96. package/lib/dragable/dragable-operation.js +31 -23
  97. package/lib/dragable/dragable.js +31 -22
  98. package/lib/filter-panel/conditions/date-range-condition.js +49 -39
  99. package/lib/filter-panel/conditions/department-condition/department-condition.js +98 -71
  100. package/lib/filter-panel/conditions/department-condition/department-node.js +72 -58
  101. package/lib/filter-panel/conditions/input-condition.js +89 -75
  102. package/lib/filter-panel/conditions/multi-user-condition.js +66 -56
  103. package/lib/filter-panel/conditions/multiple-menu-condition.js +53 -34
  104. package/lib/filter-panel/conditions/single-menu-condition.js +64 -59
  105. package/lib/filter-panel/conditions/single-user-condition.js +66 -56
  106. package/lib/filter-panel/filter-panel-item.js +53 -38
  107. package/lib/filter-panel/filter-panel.js +152 -134
  108. package/lib/layout/layout.js +84 -77
  109. package/lib/menu/menu-item.js +66 -51
  110. package/lib/menu/menu.js +69 -52
  111. package/lib/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js +32 -0
  112. package/lib/panel/panel.js +52 -39
  113. package/lib/pct-filter-panel/pct-compents/pct-Input-condition.js +73 -62
  114. package/lib/pct-filter-panel/pct-compents/pct-date-range-condition.js +75 -66
  115. package/lib/pct-filter-panel/pct-compents/pct-multiple-menu-condition.js +405 -177
  116. package/lib/pct-filter-panel/pct-compents/pct-multiple-menu-condition2.js +152 -137
  117. package/lib/pct-filter-panel/pct-filter-panel-item.js +54 -39
  118. package/lib/pct-filter-panel/pct-filter-panel.js +246 -226
  119. package/lib/progress/progress-item.js +80 -60
  120. package/lib/progress/progress.js +77 -63
  121. package/lib/where-filter-panel/where-filter-panel.js +14 -11
  122. package/package.json +2 -1
  123. package/src/advance-select/advance-option.vue +64 -13
  124. package/src/data-form/form-components/bwa-rich-text-tinymce.vue +1 -1
  125. package/src/datatable-settings/datatable-settings.vue +33 -3
  126. package/src/date-range/date-picker.vue +1 -1
  127. package/src/filter-panel/filter-panel.vue +2 -2
  128. package/src/pct-filter-panel/pct-compents/pct-Input-condition.vue +64 -64
  129. package/src/pct-filter-panel/pct-compents/pct-date-range-condition.vue +61 -61
  130. package/src/pct-filter-panel/pct-compents/pct-multiple-menu-condition.vue +302 -178
  131. package/src/pct-filter-panel/pct-filter-panel.vue +4 -4
@@ -1,251 +1,271 @@
1
- import { defineComponent, watch, provide, reactive, resolveComponent, openBlock, createElementBlock, normalizeClass, unref, renderSlot, Fragment, renderList, createVNode, withCtx, createBlock, createCommentVNode, normalizeStyle, toDisplayString, isRef, createElementVNode, withModifiers, createTextVNode } from 'vue';
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 __default__ = defineComponent({
8
- name: "BwaPctFilterPanel"
9
- });
10
- const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
11
- props: {
12
- dataTable: {
13
- type: Object
14
- },
15
- showSearch: {
16
- type: Boolean,
17
- default: false
18
- },
19
- showFieldOptions: {
20
- type: Boolean,
21
- default: true
22
- },
23
- searchAttr: {
24
- type: String,
25
- default: "search"
26
- },
27
- searchPlaceholder: {
28
- type: String,
29
- default: ""
30
- },
31
- searchFields: {
32
- type: Array,
33
- default: () => []
34
- },
35
- showTitle: {
36
- type: Boolean,
37
- default: false
38
- },
39
- searchTitle: {
40
- type: String,
41
- default: "\u6807\u9898\u540D\u79F0"
42
- },
43
- filterPanelLineNum: {
44
- type: Number
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
- const props = __props;
50
- const ns = useNamespace("pctfilterpanel");
51
- const {
52
- dataTable,
53
- filterPanel,
54
- currentFilterColumns,
55
- selectedColumnAttrNames,
56
- closableColumns,
57
- searchParams,
58
- handleFieldSearch,
59
- searchValue,
60
- isChange,
61
- handleReset,
62
- handleSearch
63
- } = useFilterPanel(props, { emit });
64
- console.log(currentFilterColumns);
65
- watch(
66
- filterPanel,
67
- (filterPanel2, _, onCleanup) => {
68
- filterPanel2.existComponent = true;
69
- onCleanup(() => {
70
- filterPanel2.existComponent = false;
71
- });
72
- },
73
- { immediate: true }
74
- );
75
- provide(
76
- filterPanelKey,
77
- reactive({
78
- dataTable,
79
- filterPanel,
80
- currentFilterColumns,
81
- showTitle: props.showTitle,
82
- filterPanelLineNum: props.filterPanelLineNum
83
- })
84
- );
85
- return (_ctx, _cache) => {
86
- const _component_BwaPctMultipleMenuCondition = resolveComponent("BwaPctMultipleMenuCondition");
87
- const _component_BwaPctInputCondition = resolveComponent("BwaPctInputCondition");
88
- const _component_BwaPctDateRangeCondition = resolveComponent("BwaPctDateRangeCondition");
89
- const _component_ElInput = resolveComponent("ElInput");
90
- const _component_ElButton = resolveComponent("ElButton");
91
- const _component_ElCheckbox = resolveComponent("ElCheckbox");
92
- const _component_BwaAdvanceOption = resolveComponent("BwaAdvanceOption");
93
- const _component_BwaAdvanceSelect = resolveComponent("BwaAdvanceSelect");
94
- return openBlock(), createElementBlock("div", {
95
- class: normalizeClass(unref(ns).b())
96
- }, [
97
- renderSlot(_ctx.$slots, "default", {}, () => [
98
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(currentFilterColumns), (column) => {
99
- return renderSlot(_ctx.$slots, `condition-${column.attrName}`, {
100
- key: column.attrName,
101
- attrName: column.attrName
102
- }, () => [
103
- createVNode(PctFilterPanelItem, {
104
- prop: column.fullAttrName
105
- }, {
106
- default: withCtx(({ data }) => {
107
- var _a, _b;
108
- return [
109
- !column.component || column.component === "BwaMultipleMenuCondition" || column.component === "BwaSingleMenuCondition" ? (openBlock(), createBlock(_component_BwaPctMultipleMenuCondition, {
110
- key: 0,
111
- modelValue: data.value,
112
- "onUpdate:modelValue": ($event) => data.value = $event,
113
- column,
114
- multiple: column.component !== "BwaSingleMenuCondition",
115
- showTitle: props.showTitle,
116
- showSearch: (_a = column.componentProps) == null ? void 0 : _a.showSearch,
117
- options: ((_b = column.componentProps) == null ? void 0 : _b.options) || []
118
- }, null, 8, ["modelValue", "onUpdate:modelValue", "column", "multiple", "showTitle", "showSearch", "options"])) : createCommentVNode("v-if", true),
119
- column.component === "BwaInputCondition" ? (openBlock(), createBlock(_component_BwaPctInputCondition, {
120
- key: 1,
121
- modelValue: data.value,
122
- "onUpdate:modelValue": ($event) => data.value = $event,
123
- column,
124
- showTitle: props.showTitle
125
- }, null, 8, ["modelValue", "onUpdate:modelValue", "column", "showTitle"])) : createCommentVNode("v-if", true),
126
- column.component === "BwaDateRangeCondition" ? (openBlock(), createBlock(_component_BwaPctDateRangeCondition, {
127
- key: 2,
128
- modelValue: data.value,
129
- "onUpdate:modelValue": ($event) => data.value = $event,
130
- showTitle: props.showTitle
131
- }, null, 8, ["modelValue", "onUpdate:modelValue", "showTitle"])) : createCommentVNode("v-if", true)
132
- ];
133
- }),
134
- _: 2
135
- }, 1032, ["prop"])
136
- ]);
137
- }), 128))
138
- ]),
139
- __props.showSearch ? (openBlock(), createElementBlock("div", {
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([{ "display": "flex", "align-items": "center", "padding-right": "20px", "box-sizing": "border-box" }, {
142
- "width": props.filterPanelLineNum ? (100 / props.filterPanelLineNum).toFixed(2) + "%" : props.showTitle ? "25%" : "20%"
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 ? (openBlock(), createElementBlock("div", {
146
- key: 0,
147
- class: normalizeClass(unref(ns).e("title")),
148
- style: { "padding-right": "8px" }
149
- }, toDisplayString(__props.searchTitle), 3)) : createCommentVNode("v-if", true),
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] = ($event) => isRef(searchValue) ? searchValue.value = $event : null),
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("search"))
158
- }, null, 8, ["modelValue", "placeholder", "class"])
159
- ], 4)) : createCommentVNode("v-if", true),
160
- __props.showFieldOptions ? (openBlock(), createBlock(PctFilterPanelItem, {
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: { "width": "auto", "padding-right": "16px" }
182
+ style: {"width":"auto","padding-right":"16px"}
163
183
  }, {
164
184
  default: withCtx(() => [
165
- __props.showFieldOptions ? (openBlock(), createBlock(_component_BwaAdvanceSelect, {
166
- key: 0,
167
- modelValue: unref(selectedColumnAttrNames),
168
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(selectedColumnAttrNames) ? selectedColumnAttrNames.value = $event : null),
169
- "show-selectIcon": false,
170
- onSearch: unref(handleFieldSearch),
171
- class: normalizeClass(unref(ns).e("options")),
172
- source: "pct"
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
- default: withCtx(() => [
180
- createElementVNode("div", {
181
- class: normalizeClass(unref(ns).be("filter", "plus"))
182
- }, null, 2),
183
- createElementVNode("span", {
184
- class: normalizeClass(unref(ns).be("filter", "label"))
185
- }, " \u7B5B\u9009 ", 2)
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
- _: 1
188
- }, 8, ["class"])
189
- ]),
190
- default: withCtx(() => [
191
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(closableColumns), (column) => {
192
- return openBlock(), createBlock(_component_BwaAdvanceOption, {
193
- value: column.fullAttrName,
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
- createTextVNode(toDisplayString(column.title), 1)
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, ["modelValue", "class"]),
210
- createElementVNode("span", {
211
- class: normalizeClass(unref(ns).be("filter", "title"))
212
- }, toDisplayString(column.componentTitle), 3)
213
- ]),
214
- _: 2
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
- }, 8, ["class", "onClick"]),
244
- renderSlot(_ctx.$slots, "button")
245
- ], 2);
246
- };
247
- }
248
- });
249
- var PctFilterPanel = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "pct-filter-panel.vue"]]);
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 };