@ctzy-web-client/plugin-component-vue 1.0.26 → 1.0.27
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/_virtual/_plugin-vue_export-helper.mjs +11 -0
- package/es/advance-select/advance-operation.mjs +48 -51
- package/es/advance-select/advance-option.mjs +128 -163
- package/es/advance-select/advance-option.vue_vue_type_style_index_0_scoped_bc8f5626_lang.mjs +11 -5
- package/es/advance-select/advance-select.mjs +323 -370
- package/es/advance-select/events-helpers.mjs +9 -0
- package/es/advance-select/index.mjs +9 -0
- package/es/advance-select/use-advance-option.mjs +9 -0
- package/es/advance-select/use-advance-select.mjs +9 -0
- package/es/application-slot/application-slot.mjs +9 -0
- package/es/application-slot/breadcrumb-item.mjs +26 -20
- package/es/application-slot/header-tools-item.mjs +26 -20
- package/es/application-slot/index.mjs +9 -0
- package/es/breadcrumb-select/breadcrumb-select.mjs +123 -137
- package/es/breadcrumb-select/index.mjs +9 -0
- package/es/components.mjs +9 -0
- package/es/contextmenu/contextmenu-item.mjs +24 -19
- package/es/contextmenu/contextmenu.mjs +68 -73
- package/es/contextmenu/index.mjs +9 -0
- package/es/contextmenu/use-contextmenu.mjs +10 -1
- package/es/data-form/data-form-item.mjs +41 -49
- package/es/data-form/data-form.mjs +176 -213
- package/es/data-form/dynamic-component.mjs +9 -0
- package/es/data-form/form-components/Blots/AtBlot.mjs +9 -0
- package/es/data-form/form-components/bwa-date-picker.mjs +50 -51
- package/es/data-form/form-components/bwa-date-time-picker.mjs +55 -56
- package/es/data-form/form-components/bwa-input-float.mjs +48 -48
- package/es/data-form/form-components/bwa-input-integer.mjs +61 -68
- package/es/data-form/form-components/bwa-input.mjs +43 -43
- package/es/data-form/form-components/bwa-multi-select.mjs +40 -40
- package/es/data-form/form-components/bwa-rich-text-tinymce.mjs +230 -555
- package/es/data-form/form-components/bwa-rich-text.mjs +326 -404
- package/es/data-form/form-components/bwa-select.mjs +81 -84
- package/es/data-form/form-components/bwa-textarea.mjs +38 -38
- package/es/data-form/form-components/bwa-upload.mjs +160 -173
- package/es/data-form/form-components/bwa-user-multi-select.mjs +35 -35
- package/es/data-form/form-components/bwa-user-select.mjs +72 -86
- package/es/data-form/index.mjs +9 -0
- package/es/data-table/data-column-view.mjs +124 -146
- package/es/data-table/data-table-card.mjs +49 -48
- package/es/data-table/data-table-column.mjs +55 -58
- package/es/data-table/data-table.mjs +328 -404
- package/es/data-table/dynamic-component.mjs +9 -0
- package/es/data-table/index.mjs +9 -0
- package/es/data-table/use-datatable-drag.mjs +9 -0
- package/es/datatable-settings/datatable-settings.mjs +286 -328
- package/es/datatable-settings/index.mjs +9 -0
- package/es/date-range/date-picker.mjs +125 -131
- package/es/date-range/date-range.mjs +173 -216
- package/es/date-range/index.mjs +9 -0
- package/es/drag-list/constants.mjs +10 -0
- package/es/drag-list/drag-item.mjs +51 -56
- package/es/drag-list/drag-list.mjs +58 -60
- package/es/drag-list/index.mjs +9 -0
- package/es/drag-list/use-drag-list.mjs +10 -1
- package/es/dragable/constants.mjs +10 -0
- package/es/dragable/dragable-item.mjs +27 -23
- package/es/dragable/dragable-operation.mjs +33 -32
- package/es/dragable/dragable.mjs +33 -32
- package/es/dragable/index.mjs +9 -0
- package/es/dragable/use-dragable.mjs +9 -0
- package/es/filter-panel/conditions/condition.mjs +9 -0
- package/es/filter-panel/conditions/date-range-condition.mjs +51 -50
- package/es/filter-panel/conditions/department-condition/department-condition.mjs +82 -99
- package/es/filter-panel/conditions/department-condition/department-node.mjs +69 -73
- package/es/filter-panel/conditions/index.mjs +9 -0
- package/es/filter-panel/conditions/input-condition.mjs +88 -91
- package/es/filter-panel/conditions/multi-user-condition.mjs +66 -67
- package/es/filter-panel/conditions/multiple-menu-condition.mjs +44 -54
- package/es/filter-panel/conditions/single-menu-condition.mjs +71 -65
- package/es/filter-panel/conditions/single-user-condition.mjs +66 -67
- package/es/filter-panel/filter-panel-item.mjs +51 -55
- package/es/filter-panel/filter-panel.mjs +147 -156
- package/es/filter-panel/index.mjs +9 -0
- package/es/filter-panel/use-filter-panel-item.mjs +9 -0
- package/es/filter-panel/use-filter-panel.mjs +9 -0
- package/es/hooks/use-data/index.mjs +9 -0
- package/es/index.mjs +9 -0
- package/es/layout/index.mjs +9 -0
- package/es/layout/layout.mjs +87 -85
- package/es/make-installer.mjs +9 -0
- package/es/math/Rectangle.mjs +10 -0
- package/es/menu/index.mjs +9 -0
- package/es/menu/menu-item.mjs +65 -70
- package/es/menu/menu.mjs +64 -70
- package/es/node_modules/.pnpm/{@vueuse_core@9.6.0_vue@3.2.41 → @vueuse_core@9.13.0_vue@3.5.29_typescript@4.9.5_}/node_modules/@vueuse/core/index.mjs +680 -454
- package/es/node_modules/.pnpm/{@vueuse_shared@9.6.0_vue@3.2.41 → @vueuse_shared@9.13.0_vue@3.5.29_typescript@4.9.5_}/node_modules/@vueuse/shared/index.mjs +108 -46
- package/es/panel/index.mjs +9 -0
- package/es/panel/panel.mjs +49 -53
- package/es/panel-tabs/index.mjs +9 -0
- package/es/panel-tabs/panel-tabs.mjs +9 -0
- package/es/pct-filter-panel/index.mjs +9 -0
- package/es/pct-filter-panel/pct-compents/index.mjs +9 -0
- package/es/pct-filter-panel/pct-compents/pct-Input-condition.mjs +73 -75
- package/es/pct-filter-panel/pct-compents/pct-date-range-condition.mjs +77 -77
- package/es/pct-filter-panel/pct-compents/pct-multiple-menu-condition.mjs +345 -374
- package/es/pct-filter-panel/pct-compents/pct-multiple-menu-condition2.mjs +149 -154
- package/es/pct-filter-panel/pct-filter-panel-item.mjs +52 -56
- package/es/pct-filter-panel/pct-filter-panel.mjs +235 -248
- package/es/pct-filter-panel/use-filter-panel-item.mjs +9 -0
- package/es/pct-filter-panel/use-filter-panel.mjs +9 -0
- package/es/plugins.mjs +9 -0
- package/es/progress/index.mjs +9 -0
- package/es/progress/progress-item.mjs +71 -81
- package/es/progress/progress.mjs +74 -78
- package/es/progress/use-progress.mjs +9 -0
- package/es/utils/db.mjs +9 -0
- package/es/utils.css +1 -0
- package/es/utils.mjs +9 -0
- package/es/where-filter-panel/index.mjs +9 -1
- package/es/where-filter-panel/use-where-filter-panel.mjs +9 -0
- package/es/where-filter-panel/where-filter-panel.mjs +21 -15
- package/lib/_virtual/_plugin-vue_export-helper.js +11 -0
- package/lib/advance-select/advance-operation.js +47 -50
- package/lib/advance-select/advance-option.js +127 -162
- package/lib/advance-select/advance-option.vue_vue_type_style_index_0_scoped_bc8f5626_lang.js +11 -6
- package/lib/advance-select/advance-select.js +322 -369
- package/lib/advance-select/events-helpers.js +9 -0
- package/lib/advance-select/index.js +9 -0
- package/lib/advance-select/use-advance-option.js +9 -0
- package/lib/advance-select/use-advance-select.js +9 -0
- package/lib/application-slot/application-slot.js +9 -0
- package/lib/application-slot/breadcrumb-item.js +25 -19
- package/lib/application-slot/header-tools-item.js +25 -19
- package/lib/application-slot/index.js +9 -0
- package/lib/breadcrumb-select/breadcrumb-select.js +122 -136
- package/lib/breadcrumb-select/index.js +9 -0
- package/lib/components.js +9 -0
- package/lib/contextmenu/contextmenu-item.js +23 -18
- package/lib/contextmenu/contextmenu.js +67 -72
- package/lib/contextmenu/index.js +9 -0
- package/lib/contextmenu/use-contextmenu.js +10 -1
- package/lib/data-form/data-form-item.js +40 -48
- package/lib/data-form/data-form.js +175 -212
- package/lib/data-form/dynamic-component.js +9 -0
- package/lib/data-form/form-components/Blots/AtBlot.js +9 -0
- package/lib/data-form/form-components/bwa-date-picker.js +49 -50
- package/lib/data-form/form-components/bwa-date-time-picker.js +54 -55
- package/lib/data-form/form-components/bwa-input-float.js +47 -47
- package/lib/data-form/form-components/bwa-input-integer.js +60 -67
- package/lib/data-form/form-components/bwa-input.js +42 -42
- package/lib/data-form/form-components/bwa-multi-select.js +39 -39
- package/lib/data-form/form-components/bwa-rich-text-tinymce.js +229 -554
- package/lib/data-form/form-components/bwa-rich-text.js +325 -403
- package/lib/data-form/form-components/bwa-select.js +80 -83
- package/lib/data-form/form-components/bwa-textarea.js +37 -37
- package/lib/data-form/form-components/bwa-upload.js +159 -172
- package/lib/data-form/form-components/bwa-user-multi-select.js +34 -34
- package/lib/data-form/form-components/bwa-user-select.js +71 -85
- package/lib/data-form/index.js +9 -0
- package/lib/data-table/data-column-view.js +124 -146
- package/lib/data-table/data-table-card.js +49 -48
- package/lib/data-table/data-table-column.js +54 -57
- package/lib/data-table/data-table.js +327 -403
- package/lib/data-table/dynamic-component.js +9 -0
- package/lib/data-table/index.js +9 -0
- package/lib/data-table/use-datatable-drag.js +9 -0
- package/lib/datatable-settings/datatable-settings.js +285 -327
- package/lib/datatable-settings/index.js +9 -0
- package/lib/date-range/date-picker.js +124 -130
- package/lib/date-range/date-range.js +172 -215
- package/lib/date-range/index.js +9 -0
- package/lib/drag-list/constants.js +10 -0
- package/lib/drag-list/drag-item.js +50 -55
- package/lib/drag-list/drag-list.js +57 -59
- package/lib/drag-list/index.js +9 -0
- package/lib/drag-list/use-drag-list.js +10 -1
- package/lib/dragable/constants.js +10 -0
- package/lib/dragable/dragable-item.js +26 -22
- package/lib/dragable/dragable-operation.js +32 -31
- package/lib/dragable/dragable.js +32 -31
- package/lib/dragable/index.js +9 -0
- package/lib/dragable/use-dragable.js +9 -0
- package/lib/filter-panel/conditions/condition.js +9 -0
- package/lib/filter-panel/conditions/date-range-condition.js +50 -49
- package/lib/filter-panel/conditions/department-condition/department-condition.js +81 -98
- package/lib/filter-panel/conditions/department-condition/department-node.js +68 -72
- package/lib/filter-panel/conditions/index.js +9 -0
- package/lib/filter-panel/conditions/input-condition.js +87 -90
- package/lib/filter-panel/conditions/multi-user-condition.js +65 -66
- package/lib/filter-panel/conditions/multiple-menu-condition.js +43 -53
- package/lib/filter-panel/conditions/single-menu-condition.js +70 -64
- package/lib/filter-panel/conditions/single-user-condition.js +65 -66
- package/lib/filter-panel/filter-panel-item.js +50 -54
- package/lib/filter-panel/filter-panel.js +146 -155
- package/lib/filter-panel/index.js +9 -0
- package/lib/filter-panel/use-filter-panel-item.js +9 -0
- package/lib/filter-panel/use-filter-panel.js +9 -0
- package/lib/hooks/use-data/index.js +9 -0
- package/lib/index.js +9 -0
- package/lib/layout/index.js +9 -0
- package/lib/layout/layout.js +86 -84
- package/lib/make-installer.js +9 -0
- package/lib/math/Rectangle.js +10 -0
- package/lib/menu/index.js +9 -0
- package/lib/menu/menu-item.js +64 -69
- package/lib/menu/menu.js +63 -69
- package/lib/node_modules/.pnpm/{@vueuse_core@9.6.0_vue@3.2.41 → @vueuse_core@9.13.0_vue@3.5.29_typescript@4.9.5_}/node_modules/@vueuse/core/index.js +685 -451
- package/lib/node_modules/.pnpm/{@vueuse_shared@9.6.0_vue@3.2.41 → @vueuse_shared@9.13.0_vue@3.5.29_typescript@4.9.5_}/node_modules/@vueuse/shared/index.js +109 -44
- package/lib/panel/index.js +9 -0
- package/lib/panel/panel.js +48 -52
- package/lib/panel-tabs/index.js +9 -0
- package/lib/panel-tabs/panel-tabs.js +9 -0
- package/lib/pct-filter-panel/index.js +9 -0
- package/lib/pct-filter-panel/pct-compents/index.js +9 -0
- package/lib/pct-filter-panel/pct-compents/pct-Input-condition.js +72 -74
- package/lib/pct-filter-panel/pct-compents/pct-date-range-condition.js +76 -76
- package/lib/pct-filter-panel/pct-compents/pct-multiple-menu-condition.js +344 -373
- package/lib/pct-filter-panel/pct-compents/pct-multiple-menu-condition2.js +148 -153
- package/lib/pct-filter-panel/pct-filter-panel-item.js +51 -55
- package/lib/pct-filter-panel/pct-filter-panel.js +234 -247
- package/lib/pct-filter-panel/use-filter-panel-item.js +9 -0
- package/lib/pct-filter-panel/use-filter-panel.js +9 -0
- package/lib/plugins.js +9 -0
- package/lib/progress/index.js +9 -0
- package/lib/progress/progress-item.js +70 -80
- package/lib/progress/progress.js +73 -77
- package/lib/progress/use-progress.js +9 -0
- package/lib/utils/db.js +9 -0
- package/lib/utils.css +1 -0
- package/lib/utils.js +9 -0
- package/lib/where-filter-panel/index.js +9 -0
- package/lib/where-filter-panel/use-where-filter-panel.js +9 -0
- package/lib/where-filter-panel/where-filter-panel.js +20 -14
- package/package.json +1 -1
- package/style/index.css +1 -1
- package/es/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.mjs +0 -28
- package/lib/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js +0 -32
|
@@ -4,6 +4,16 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var vueDemi = require('vue-demi');
|
|
6
6
|
|
|
7
|
+
// Inject __name helper
|
|
8
|
+
if (typeof __name === 'undefined') {
|
|
9
|
+
function __name(obj, name) {
|
|
10
|
+
Object.defineProperty(obj, "name", {
|
|
11
|
+
value: name,
|
|
12
|
+
configurable: true
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
7
17
|
var __defProp$9 = Object.defineProperty;
|
|
8
18
|
var __defProps$6 = Object.defineProperties;
|
|
9
19
|
var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
|
|
@@ -67,7 +77,9 @@ function resolveUnref(r) {
|
|
|
67
77
|
|
|
68
78
|
function createFilterWrapper(filter, fn) {
|
|
69
79
|
function wrapper(...args) {
|
|
70
|
-
|
|
80
|
+
return new Promise((resolve, reject) => {
|
|
81
|
+
Promise.resolve(filter(() => fn.apply(this, args), { fn, thisArg: this, args })).then(resolve).catch(reject);
|
|
82
|
+
});
|
|
71
83
|
}
|
|
72
84
|
return wrapper;
|
|
73
85
|
}
|
|
@@ -77,48 +89,64 @@ const bypassFilter = (invoke) => {
|
|
|
77
89
|
function debounceFilter(ms, options = {}) {
|
|
78
90
|
let timer;
|
|
79
91
|
let maxTimer;
|
|
92
|
+
let lastRejector = noop;
|
|
93
|
+
const _clearTimeout = (timer2) => {
|
|
94
|
+
clearTimeout(timer2);
|
|
95
|
+
lastRejector();
|
|
96
|
+
lastRejector = noop;
|
|
97
|
+
};
|
|
80
98
|
const filter = (invoke) => {
|
|
81
99
|
const duration = resolveUnref(ms);
|
|
82
100
|
const maxDuration = resolveUnref(options.maxWait);
|
|
83
101
|
if (timer)
|
|
84
|
-
|
|
102
|
+
_clearTimeout(timer);
|
|
85
103
|
if (duration <= 0 || maxDuration !== void 0 && maxDuration <= 0) {
|
|
86
104
|
if (maxTimer) {
|
|
87
|
-
|
|
105
|
+
_clearTimeout(maxTimer);
|
|
88
106
|
maxTimer = null;
|
|
89
107
|
}
|
|
90
|
-
return invoke();
|
|
108
|
+
return Promise.resolve(invoke());
|
|
91
109
|
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
110
|
+
return new Promise((resolve, reject) => {
|
|
111
|
+
lastRejector = options.rejectOnCancel ? reject : resolve;
|
|
112
|
+
if (maxDuration && !maxTimer) {
|
|
113
|
+
maxTimer = setTimeout(() => {
|
|
114
|
+
if (timer)
|
|
115
|
+
_clearTimeout(timer);
|
|
116
|
+
maxTimer = null;
|
|
117
|
+
resolve(invoke());
|
|
118
|
+
}, maxDuration);
|
|
119
|
+
}
|
|
120
|
+
timer = setTimeout(() => {
|
|
121
|
+
if (maxTimer)
|
|
122
|
+
_clearTimeout(maxTimer);
|
|
96
123
|
maxTimer = null;
|
|
97
|
-
invoke();
|
|
98
|
-
},
|
|
99
|
-
}
|
|
100
|
-
timer = setTimeout(() => {
|
|
101
|
-
if (maxTimer)
|
|
102
|
-
clearTimeout(maxTimer);
|
|
103
|
-
maxTimer = null;
|
|
104
|
-
invoke();
|
|
105
|
-
}, duration);
|
|
124
|
+
resolve(invoke());
|
|
125
|
+
}, duration);
|
|
126
|
+
});
|
|
106
127
|
};
|
|
107
128
|
return filter;
|
|
108
129
|
}
|
|
109
|
-
function throttleFilter(ms, trailing = true, leading = true) {
|
|
130
|
+
function throttleFilter(ms, trailing = true, leading = true, rejectOnCancel = false) {
|
|
110
131
|
let lastExec = 0;
|
|
111
132
|
let timer;
|
|
112
133
|
let isLeading = true;
|
|
134
|
+
let lastRejector = noop;
|
|
135
|
+
let lastValue;
|
|
113
136
|
const clear = () => {
|
|
114
137
|
if (timer) {
|
|
115
138
|
clearTimeout(timer);
|
|
116
139
|
timer = void 0;
|
|
140
|
+
lastRejector();
|
|
141
|
+
lastRejector = noop;
|
|
117
142
|
}
|
|
118
143
|
};
|
|
119
|
-
const filter = (
|
|
144
|
+
const filter = (_invoke) => {
|
|
120
145
|
const duration = resolveUnref(ms);
|
|
121
146
|
const elapsed = Date.now() - lastExec;
|
|
147
|
+
const invoke = () => {
|
|
148
|
+
return lastValue = _invoke();
|
|
149
|
+
};
|
|
122
150
|
clear();
|
|
123
151
|
if (duration <= 0) {
|
|
124
152
|
lastExec = Date.now();
|
|
@@ -128,16 +156,20 @@ function throttleFilter(ms, trailing = true, leading = true) {
|
|
|
128
156
|
lastExec = Date.now();
|
|
129
157
|
invoke();
|
|
130
158
|
} else if (trailing) {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
159
|
+
lastValue = new Promise((resolve, reject) => {
|
|
160
|
+
lastRejector = rejectOnCancel ? reject : resolve;
|
|
161
|
+
timer = setTimeout(() => {
|
|
162
|
+
lastExec = Date.now();
|
|
163
|
+
isLeading = true;
|
|
164
|
+
resolve(invoke());
|
|
165
|
+
clear();
|
|
166
|
+
}, Math.max(0, duration - elapsed));
|
|
167
|
+
});
|
|
137
168
|
}
|
|
138
169
|
if (!leading && !timer)
|
|
139
170
|
timer = setTimeout(() => isLeading = true, duration);
|
|
140
171
|
isLeading = false;
|
|
172
|
+
return lastValue;
|
|
141
173
|
};
|
|
142
174
|
return filter;
|
|
143
175
|
}
|
|
@@ -153,7 +185,7 @@ function pausableFilter(extendFilter = bypassFilter) {
|
|
|
153
185
|
if (isActive.value)
|
|
154
186
|
extendFilter(...args);
|
|
155
187
|
};
|
|
156
|
-
return { isActive, pause, resume, eventFilter };
|
|
188
|
+
return { isActive: vueDemi.readonly(isActive), pause, resume, eventFilter };
|
|
157
189
|
}
|
|
158
190
|
|
|
159
191
|
function __onlyVue3(name = "this function") {
|
|
@@ -161,6 +193,11 @@ function __onlyVue3(name = "this function") {
|
|
|
161
193
|
return;
|
|
162
194
|
throw new Error(`[VueUse] ${name} is only works on Vue 3.`);
|
|
163
195
|
}
|
|
196
|
+
function __onlyVue27Plus(name = "this function") {
|
|
197
|
+
if (vueDemi.isVue3 || vueDemi.version.startsWith("2.7."))
|
|
198
|
+
return;
|
|
199
|
+
throw new Error(`[VueUse] ${name} is only works on Vue 2.7 or above.`);
|
|
200
|
+
}
|
|
164
201
|
const directiveHooks = {
|
|
165
202
|
mounted: vueDemi.isVue3 ? "mounted" : "inserted",
|
|
166
203
|
updated: vueDemi.isVue3 ? "updated" : "componentUpdated",
|
|
@@ -254,6 +291,14 @@ function computedWithControl(source, fn) {
|
|
|
254
291
|
return result;
|
|
255
292
|
}
|
|
256
293
|
|
|
294
|
+
function tryOnScopeDispose(fn) {
|
|
295
|
+
if (vueDemi.getCurrentScope()) {
|
|
296
|
+
vueDemi.onScopeDispose(fn);
|
|
297
|
+
return true;
|
|
298
|
+
}
|
|
299
|
+
return false;
|
|
300
|
+
}
|
|
301
|
+
|
|
257
302
|
function createEventHook() {
|
|
258
303
|
const fns = [];
|
|
259
304
|
const off = (fn) => {
|
|
@@ -263,8 +308,10 @@ function createEventHook() {
|
|
|
263
308
|
};
|
|
264
309
|
const on = (fn) => {
|
|
265
310
|
fns.push(fn);
|
|
311
|
+
const offFn = () => off(fn);
|
|
312
|
+
tryOnScopeDispose(offFn);
|
|
266
313
|
return {
|
|
267
|
-
off:
|
|
314
|
+
off: offFn
|
|
268
315
|
};
|
|
269
316
|
};
|
|
270
317
|
const trigger = (param) => {
|
|
@@ -293,20 +340,14 @@ function createGlobalState(stateFactory) {
|
|
|
293
340
|
function createInjectionState(composable) {
|
|
294
341
|
const key = Symbol("InjectionState");
|
|
295
342
|
const useProvidingState = (...args) => {
|
|
296
|
-
|
|
343
|
+
const state = composable(...args);
|
|
344
|
+
vueDemi.provide(key, state);
|
|
345
|
+
return state;
|
|
297
346
|
};
|
|
298
347
|
const useInjectedState = () => vueDemi.inject(key);
|
|
299
348
|
return [useProvidingState, useInjectedState];
|
|
300
349
|
}
|
|
301
350
|
|
|
302
|
-
function tryOnScopeDispose(fn) {
|
|
303
|
-
if (vueDemi.getCurrentScope()) {
|
|
304
|
-
vueDemi.onScopeDispose(fn);
|
|
305
|
-
return true;
|
|
306
|
-
}
|
|
307
|
-
return false;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
351
|
function createSharedComposable(composable) {
|
|
311
352
|
let subscribers = 0;
|
|
312
353
|
let state;
|
|
@@ -331,7 +372,7 @@ function createSharedComposable(composable) {
|
|
|
331
372
|
}
|
|
332
373
|
|
|
333
374
|
function extendRef(ref, extend, { enumerable = false, unwrap = true } = {}) {
|
|
334
|
-
|
|
375
|
+
__onlyVue27Plus();
|
|
335
376
|
for (const [key, value] of Object.entries(extend)) {
|
|
336
377
|
if (key === "value")
|
|
337
378
|
continue;
|
|
@@ -525,8 +566,8 @@ function refDefault(source, defaultValue) {
|
|
|
525
566
|
});
|
|
526
567
|
}
|
|
527
568
|
|
|
528
|
-
function useThrottleFn(fn, ms = 200, trailing = false, leading = true) {
|
|
529
|
-
return createFilterWrapper(throttleFilter(ms, trailing, leading), fn);
|
|
569
|
+
function useThrottleFn(fn, ms = 200, trailing = false, leading = true, rejectOnCancel = false) {
|
|
570
|
+
return createFilterWrapper(throttleFilter(ms, trailing, leading, rejectOnCancel), fn);
|
|
530
571
|
}
|
|
531
572
|
|
|
532
573
|
function refThrottled(value, delay = 200, trailing = true, leading = true) {
|
|
@@ -838,6 +879,18 @@ function useArrayFindIndex(list, fn) {
|
|
|
838
879
|
return vueDemi.computed(() => resolveUnref(list).findIndex((element, index, array) => fn(resolveUnref(element), index, array)));
|
|
839
880
|
}
|
|
840
881
|
|
|
882
|
+
function findLast(arr, cb) {
|
|
883
|
+
let index = arr.length;
|
|
884
|
+
while (index-- > 0) {
|
|
885
|
+
if (cb(arr[index], index, arr))
|
|
886
|
+
return arr[index];
|
|
887
|
+
}
|
|
888
|
+
return void 0;
|
|
889
|
+
}
|
|
890
|
+
function useArrayFindLast(list, fn) {
|
|
891
|
+
return vueDemi.computed(() => resolveUnref(!Array.prototype.findLast ? findLast(resolveUnref(list), (element, index, array) => fn(resolveUnref(element), index, array)) : resolveUnref(list).findLast((element, index, array) => fn(resolveUnref(element), index, array))));
|
|
892
|
+
}
|
|
893
|
+
|
|
841
894
|
function useArrayJoin(list, separator) {
|
|
842
895
|
return vueDemi.computed(() => resolveUnref(list).map((i) => resolveUnref(i)).join(resolveUnref(separator)));
|
|
843
896
|
}
|
|
@@ -858,6 +911,10 @@ function useArraySome(list, fn) {
|
|
|
858
911
|
return vueDemi.computed(() => resolveUnref(list).some((element, index, array) => fn(resolveUnref(element), index, array)));
|
|
859
912
|
}
|
|
860
913
|
|
|
914
|
+
function useArrayUnique(list) {
|
|
915
|
+
return vueDemi.computed(() => [...new Set(resolveUnref(list).map((element) => resolveUnref(element)))]);
|
|
916
|
+
}
|
|
917
|
+
|
|
861
918
|
function useCounter(initialValue = 0, options = {}) {
|
|
862
919
|
const count = vueDemi.ref(initialValue);
|
|
863
920
|
const {
|
|
@@ -962,17 +1019,18 @@ function useIntervalFn(cb, interval = 1e3, options = {}) {
|
|
|
962
1019
|
clean();
|
|
963
1020
|
}
|
|
964
1021
|
function resume() {
|
|
965
|
-
|
|
1022
|
+
const intervalValue = resolveUnref(interval);
|
|
1023
|
+
if (intervalValue <= 0)
|
|
966
1024
|
return;
|
|
967
1025
|
isActive.value = true;
|
|
968
1026
|
if (immediateCallback)
|
|
969
1027
|
cb();
|
|
970
1028
|
clean();
|
|
971
|
-
timer = setInterval(cb,
|
|
1029
|
+
timer = setInterval(cb, intervalValue);
|
|
972
1030
|
}
|
|
973
1031
|
if (immediate && isClient)
|
|
974
1032
|
resume();
|
|
975
|
-
if (vueDemi.isRef(interval)) {
|
|
1033
|
+
if (vueDemi.isRef(interval) || isFunction(interval)) {
|
|
976
1034
|
const stopWatch = vueDemi.watch(interval, () => {
|
|
977
1035
|
if (isActive.value && isClient)
|
|
978
1036
|
resume();
|
|
@@ -1011,13 +1069,17 @@ function useInterval(interval = 1e3, options = {}) {
|
|
|
1011
1069
|
} = options;
|
|
1012
1070
|
const counter = vueDemi.ref(0);
|
|
1013
1071
|
const update = () => counter.value += 1;
|
|
1072
|
+
const reset = () => {
|
|
1073
|
+
counter.value = 0;
|
|
1074
|
+
};
|
|
1014
1075
|
const controls = useIntervalFn(callback ? () => {
|
|
1015
1076
|
update();
|
|
1016
1077
|
callback(counter.value);
|
|
1017
1078
|
} : update, interval, { immediate });
|
|
1018
1079
|
if (exposeControls) {
|
|
1019
1080
|
return __spreadValues$6({
|
|
1020
|
-
counter
|
|
1081
|
+
counter,
|
|
1082
|
+
reset
|
|
1021
1083
|
}, controls);
|
|
1022
1084
|
} else {
|
|
1023
1085
|
return counter;
|
|
@@ -1063,7 +1125,7 @@ function useTimeoutFn(cb, interval, options = {}) {
|
|
|
1063
1125
|
}
|
|
1064
1126
|
tryOnScopeDispose(stop);
|
|
1065
1127
|
return {
|
|
1066
|
-
isPending,
|
|
1128
|
+
isPending: vueDemi.readonly(isPending),
|
|
1067
1129
|
start,
|
|
1068
1130
|
stop
|
|
1069
1131
|
};
|
|
@@ -1518,6 +1580,7 @@ function whenever(source, cb, options) {
|
|
|
1518
1580
|
}, options);
|
|
1519
1581
|
}
|
|
1520
1582
|
|
|
1583
|
+
exports.__onlyVue27Plus = __onlyVue27Plus;
|
|
1521
1584
|
exports.__onlyVue3 = __onlyVue3;
|
|
1522
1585
|
exports.assert = assert;
|
|
1523
1586
|
exports.autoResetRef = refAutoReset;
|
|
@@ -1598,10 +1661,12 @@ exports.useArrayEvery = useArrayEvery;
|
|
|
1598
1661
|
exports.useArrayFilter = useArrayFilter;
|
|
1599
1662
|
exports.useArrayFind = useArrayFind;
|
|
1600
1663
|
exports.useArrayFindIndex = useArrayFindIndex;
|
|
1664
|
+
exports.useArrayFindLast = useArrayFindLast;
|
|
1601
1665
|
exports.useArrayJoin = useArrayJoin;
|
|
1602
1666
|
exports.useArrayMap = useArrayMap;
|
|
1603
1667
|
exports.useArrayReduce = useArrayReduce;
|
|
1604
1668
|
exports.useArraySome = useArraySome;
|
|
1669
|
+
exports.useArrayUnique = useArrayUnique;
|
|
1605
1670
|
exports.useCounter = useCounter;
|
|
1606
1671
|
exports.useDateFormat = useDateFormat;
|
|
1607
1672
|
exports.useDebounce = refDebounced;
|
package/lib/panel/index.js
CHANGED
|
@@ -5,6 +5,15 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var install = require('element-plus/es/utils/vue/install');
|
|
6
6
|
var panel = require('./panel.js');
|
|
7
7
|
|
|
8
|
+
// Inject __name helper
|
|
9
|
+
if (typeof __name === 'undefined') {
|
|
10
|
+
function __name(obj, name) {
|
|
11
|
+
Object.defineProperty(obj, "name", {
|
|
12
|
+
value: name,
|
|
13
|
+
configurable: true
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
}
|
|
8
17
|
const BwaPanel = install.withInstall(panel["default"]);
|
|
9
18
|
|
|
10
19
|
exports.BwaPanel = BwaPanel;
|
package/lib/panel/panel.js
CHANGED
|
@@ -6,67 +6,63 @@ var vue = require('vue');
|
|
|
6
6
|
var webBaseClientVue = require('@ctzy-web-client/web-base-client-vue');
|
|
7
7
|
var _pluginVue_exportHelper = require('../_virtual/_plugin-vue_export-helper.js');
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
9
|
+
// Inject __name helper
|
|
10
|
+
if (typeof __name === 'undefined') {
|
|
11
|
+
function __name(obj, name) {
|
|
12
|
+
Object.defineProperty(obj, "name", {
|
|
13
|
+
value: name,
|
|
14
|
+
configurable: true
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
const __default__ = vue.defineComponent({
|
|
19
|
+
name: "BwaPanel"
|
|
20
|
+
});
|
|
21
|
+
const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
22
|
+
props: {
|
|
23
|
+
name: {
|
|
24
|
+
type: String
|
|
25
|
+
},
|
|
26
|
+
label: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: ""
|
|
29
|
+
}
|
|
30
|
+
},
|
|
20
31
|
setup(__props) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
const slots = vue.useSlots();
|
|
31
|
-
|
|
32
|
-
return (_ctx, _cache) => {
|
|
33
|
-
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
34
|
-
class: vue.normalizeClass(vue.unref(ns).b())
|
|
35
|
-
}, [
|
|
36
|
-
(vue.unref(slots).header)
|
|
37
|
-
? (vue.openBlock(), vue.createElementBlock("div", {
|
|
32
|
+
;
|
|
33
|
+
const ns = webBaseClientVue.useNamespace("panel");
|
|
34
|
+
const slots = vue.useSlots();
|
|
35
|
+
return (_ctx, _cache) => {
|
|
36
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
37
|
+
class: vue.normalizeClass(vue.unref(ns).b())
|
|
38
|
+
}, [
|
|
39
|
+
vue.unref(slots).header ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
38
40
|
key: 0,
|
|
39
|
-
class: vue.normalizeClass(vue.unref(ns).e(
|
|
41
|
+
class: vue.normalizeClass(vue.unref(ns).e("header"))
|
|
40
42
|
}, [
|
|
41
43
|
vue.renderSlot(_ctx.$slots, "header")
|
|
42
|
-
], 2
|
|
43
|
-
|
|
44
|
-
(vue.unref(slots).tools)
|
|
45
|
-
? (vue.openBlock(), vue.createElementBlock("div", {
|
|
44
|
+
], 2)) : vue.createCommentVNode("v-if", true),
|
|
45
|
+
vue.unref(slots).tools ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
46
46
|
key: 1,
|
|
47
|
-
class: vue.normalizeClass(vue.unref(ns).e(
|
|
47
|
+
class: vue.normalizeClass(vue.unref(ns).e("tools"))
|
|
48
48
|
}, [
|
|
49
49
|
vue.renderSlot(_ctx.$slots, "tools")
|
|
50
|
-
], 2
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
(vue.unref(slots).footer)
|
|
58
|
-
? (vue.openBlock(), vue.createElementBlock("div", {
|
|
50
|
+
], 2)) : vue.createCommentVNode("v-if", true),
|
|
51
|
+
vue.createElementVNode("div", {
|
|
52
|
+
class: vue.normalizeClass(vue.unref(ns).e("body"))
|
|
53
|
+
}, [
|
|
54
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
55
|
+
], 2),
|
|
56
|
+
vue.unref(slots).footer ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
59
57
|
key: 2,
|
|
60
|
-
class: vue.normalizeClass(vue.unref(ns).e(
|
|
58
|
+
class: vue.normalizeClass(vue.unref(ns).e("footer"))
|
|
61
59
|
}, [
|
|
62
60
|
vue.renderSlot(_ctx.$slots, "footer")
|
|
63
|
-
], 2
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
};
|
|
70
|
-
var Panel = /*#__PURE__*/_pluginVue_exportHelper["default"](_sfc_main, [['__file',"panel.vue"]]);
|
|
61
|
+
], 2)) : vue.createCommentVNode("v-if", true)
|
|
62
|
+
], 2);
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
var Panel = /* @__PURE__ */ _pluginVue_exportHelper["default"](_sfc_main, [["__file", "panel.vue"]]);
|
|
71
67
|
|
|
72
68
|
exports["default"] = Panel;
|
package/lib/panel-tabs/index.js
CHANGED
|
@@ -5,6 +5,15 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var install = require('element-plus/es/utils/vue/install');
|
|
6
6
|
var panelTabs = require('./panel-tabs.js');
|
|
7
7
|
|
|
8
|
+
// Inject __name helper
|
|
9
|
+
if (typeof __name === 'undefined') {
|
|
10
|
+
function __name(obj, name) {
|
|
11
|
+
Object.defineProperty(obj, "name", {
|
|
12
|
+
value: name,
|
|
13
|
+
configurable: true
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
}
|
|
8
17
|
const BwaPanelTab = install.withInstall(panelTabs["default"]);
|
|
9
18
|
|
|
10
19
|
exports.BwaPanelTab = BwaPanelTab;
|
|
@@ -6,6 +6,15 @@ var ElementPlus = require('element-plus');
|
|
|
6
6
|
var vue = require('vue');
|
|
7
7
|
var webBaseClientVue = require('@ctzy-web-client/web-base-client-vue');
|
|
8
8
|
|
|
9
|
+
// Inject __name helper
|
|
10
|
+
if (typeof __name === 'undefined') {
|
|
11
|
+
function __name(obj, name) {
|
|
12
|
+
Object.defineProperty(obj, "name", {
|
|
13
|
+
value: name,
|
|
14
|
+
configurable: true
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
}
|
|
9
18
|
var PanelTab = vue.defineComponent({
|
|
10
19
|
name: "BwaPanelTabs",
|
|
11
20
|
props: {
|
|
@@ -6,6 +6,15 @@ var install = require('element-plus/es/utils/vue/install');
|
|
|
6
6
|
var pctFilterPanel = require('./pct-filter-panel.js');
|
|
7
7
|
var pctFilterPanelItem = require('./pct-filter-panel-item.js');
|
|
8
8
|
|
|
9
|
+
// Inject __name helper
|
|
10
|
+
if (typeof __name === 'undefined') {
|
|
11
|
+
function __name(obj, name) {
|
|
12
|
+
Object.defineProperty(obj, "name", {
|
|
13
|
+
value: name,
|
|
14
|
+
configurable: true
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
}
|
|
9
18
|
const BwaPctFilterPanel = install.withInstall(pctFilterPanel["default"], {
|
|
10
19
|
PctFilterPanelItem: pctFilterPanelItem["default"]
|
|
11
20
|
});
|
|
@@ -7,6 +7,15 @@ var pctMultipleMenuCondition = require('./pct-multiple-menu-condition.js');
|
|
|
7
7
|
var pctInputCondition = require('./pct-Input-condition.js');
|
|
8
8
|
var pctDateRangeCondition = require('./pct-date-range-condition.js');
|
|
9
9
|
|
|
10
|
+
// Inject __name helper
|
|
11
|
+
if (typeof __name === 'undefined') {
|
|
12
|
+
function __name(obj, name) {
|
|
13
|
+
Object.defineProperty(obj, "name", {
|
|
14
|
+
value: name,
|
|
15
|
+
configurable: true
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
}
|
|
10
19
|
const BwaPctInputCondition = install.withInstall(pctInputCondition["default"], {});
|
|
11
20
|
const BwaPctMultipleMenuCondition = install.withInstall(pctMultipleMenuCondition["default"], {});
|
|
12
21
|
const BwaPctDateRangeCondition = install.withInstall(pctDateRangeCondition["default"], {});
|
|
@@ -7,80 +7,78 @@ var webBaseClientVue = require('@ctzy-web-client/web-base-client-vue');
|
|
|
7
7
|
var index = require('../../hooks/use-data/index.js');
|
|
8
8
|
var _pluginVue_exportHelper = require('../../_virtual/_plugin-vue_export-helper.js');
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
type: String,
|
|
19
|
-
default: '请输入',
|
|
20
|
-
},
|
|
21
|
-
prefixIcon: {
|
|
22
|
-
type: String,
|
|
23
|
-
default: 'Search',
|
|
24
|
-
},
|
|
25
|
-
showIcon: {
|
|
26
|
-
type: Boolean,
|
|
27
|
-
default: false,
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
emits: ['update:modelValue'],
|
|
31
|
-
setup(__props, { emit }) {
|
|
32
|
-
|
|
33
|
-
const props = __props;
|
|
34
|
-
|
|
35
|
-
const ns = webBaseClientVue.useNamespace('pct-input');
|
|
36
|
-
|
|
37
|
-
defineOptions({
|
|
38
|
-
name: 'BwaPctInputCondition',
|
|
39
|
-
__conditionTitle__: '输入框',
|
|
40
|
-
__conditionDefault__: () => [],
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
const filterPanelItem = vue.inject(webBaseClientVue.filterPanelItemKey, null);
|
|
46
|
-
const column = vue.computed(() => filterPanelItem?.column ?? null);
|
|
47
|
-
|
|
48
|
-
const placeholderStr = vue.computed(() => showTitle.value ? props.placeholder : column.value.title);
|
|
49
|
-
|
|
50
|
-
const attrs = vue.useAttrs();
|
|
51
|
-
const showTitle = vue.computed(() => attrs.showTitle);
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
const modelValue = vue.computed({
|
|
55
|
-
get: () => props.modelValue,
|
|
56
|
-
set: (v) => emit('update:modelValue', v),
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
return (_ctx, _cache) => {
|
|
60
|
-
const _component_el_input = vue.resolveComponent("el-input");
|
|
61
|
-
|
|
62
|
-
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
63
|
-
class: vue.normalizeClass(vue.unref(ns).e('inputCon'))
|
|
64
|
-
}, [
|
|
65
|
-
(vue.unref(showTitle))
|
|
66
|
-
? (vue.openBlock(), vue.createElementBlock("span", {
|
|
67
|
-
key: 0,
|
|
68
|
-
class: vue.normalizeClass(vue.unref(ns).e('title'))
|
|
69
|
-
}, vue.toDisplayString(vue.unref(column).title), 3 /* TEXT, CLASS */))
|
|
70
|
-
: vue.createCommentVNode("v-if", true),
|
|
71
|
-
vue.createVNode(_component_el_input, {
|
|
72
|
-
"prefix-icon": __props.showIcon ? __props.prefixIcon : '',
|
|
73
|
-
clearable: "",
|
|
74
|
-
class: vue.normalizeClass(vue.unref(ns).e('search')),
|
|
75
|
-
placeholder: vue.unref(placeholderStr),
|
|
76
|
-
modelValue: vue.unref(modelValue),
|
|
77
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (vue.isRef(modelValue) ? (modelValue).value = $event : null))
|
|
78
|
-
}, null, 8 /* PROPS */, ["prefix-icon", "class", "placeholder", "modelValue"])
|
|
79
|
-
], 2 /* CLASS */))
|
|
10
|
+
// Inject __name helper
|
|
11
|
+
if (typeof __name === 'undefined') {
|
|
12
|
+
function __name(obj, name) {
|
|
13
|
+
Object.defineProperty(obj, "name", {
|
|
14
|
+
value: name,
|
|
15
|
+
configurable: true
|
|
16
|
+
});
|
|
17
|
+
}
|
|
80
18
|
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
19
|
+
const __default__ = vue.defineComponent({
|
|
20
|
+
name: "BwaPctInputCondition",
|
|
21
|
+
__conditionTitle__: "\u8F93\u5165\u6846",
|
|
22
|
+
__conditionDefault__: () => []
|
|
23
|
+
});
|
|
24
|
+
const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
25
|
+
props: {
|
|
26
|
+
...index.dataProps,
|
|
27
|
+
modelValue: {
|
|
28
|
+
type: null
|
|
29
|
+
},
|
|
30
|
+
placeholder: {
|
|
31
|
+
type: String,
|
|
32
|
+
default: "\u8BF7\u8F93\u5165"
|
|
33
|
+
},
|
|
34
|
+
prefixIcon: {
|
|
35
|
+
type: String,
|
|
36
|
+
default: "Search"
|
|
37
|
+
},
|
|
38
|
+
showIcon: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: false
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
emits: ["update:modelValue"],
|
|
44
|
+
setup(__props, { emit: __emit }) {
|
|
45
|
+
const ns = webBaseClientVue.useNamespace("pct-input");
|
|
46
|
+
const emit = __emit;
|
|
47
|
+
;
|
|
48
|
+
const props = __props;
|
|
49
|
+
const filterPanelItem = vue.inject(webBaseClientVue.filterPanelItemKey, null);
|
|
50
|
+
const column = vue.computed(() => {
|
|
51
|
+
var _a;
|
|
52
|
+
return (_a = filterPanelItem == null ? void 0 : filterPanelItem.column) != null ? _a : null;
|
|
53
|
+
});
|
|
54
|
+
const placeholderStr = vue.computed(() => showTitle.value ? props.placeholder : column.value.title);
|
|
55
|
+
const attrs = vue.useAttrs();
|
|
56
|
+
const showTitle = vue.computed(() => attrs.showTitle);
|
|
57
|
+
const modelValue = vue.computed({
|
|
58
|
+
get: () => props.modelValue,
|
|
59
|
+
set: (v) => emit("update:modelValue", v)
|
|
60
|
+
});
|
|
61
|
+
return (_ctx, _cache) => {
|
|
62
|
+
const _component_el_input = vue.resolveComponent("el-input");
|
|
63
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
64
|
+
class: vue.normalizeClass(vue.unref(ns).e("inputCon"))
|
|
65
|
+
}, [
|
|
66
|
+
showTitle.value ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
67
|
+
key: 0,
|
|
68
|
+
class: vue.normalizeClass(vue.unref(ns).e("title"))
|
|
69
|
+
}, vue.toDisplayString(column.value.title), 3)) : vue.createCommentVNode("v-if", true),
|
|
70
|
+
vue.createVNode(_component_el_input, {
|
|
71
|
+
"prefix-icon": __props.showIcon ? __props.prefixIcon : "",
|
|
72
|
+
clearable: "",
|
|
73
|
+
class: vue.normalizeClass(vue.unref(ns).e("search")),
|
|
74
|
+
placeholder: placeholderStr.value,
|
|
75
|
+
modelValue: modelValue.value,
|
|
76
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event)
|
|
77
|
+
}, null, 8, ["prefix-icon", "class", "placeholder", "modelValue"])
|
|
78
|
+
], 2);
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
var PctInputCondition = /* @__PURE__ */ _pluginVue_exportHelper["default"](_sfc_main, [["__file", "pct-Input-condition.vue"]]);
|
|
85
83
|
|
|
86
84
|
exports["default"] = PctInputCondition;
|