@ctzy-web-client/plugin-component-vue 1.0.29 → 1.0.31

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 (30) hide show
  1. package/es/advance-select/advance-option.mjs +2 -3
  2. package/es/components.css +1 -0
  3. package/es/data-form/data-form.mjs +0 -1
  4. package/es/data-form/form-components/bwa-rich-text.mjs +0 -1
  5. package/es/data-table/data-table.mjs +4 -2
  6. package/es/pct-filter-panel/pct-compents/pct-date-range-condition.mjs +1 -1
  7. package/es/pct-filter-panel/pct-compents/pct-multiple-menu-condition.mjs +274 -134
  8. package/es/pct-filter-panel/pct-compents/pct-multiple-menu-condition.vue_vue_type_style_index_0_scoped_ca1affd9_lang.mjs +13 -0
  9. package/es/pct-filter-panel/pct-filter-panel.mjs +0 -1
  10. package/lib/advance-select/advance-option.js +2 -3
  11. package/lib/components.css +1 -0
  12. package/lib/data-form/data-form.js +0 -1
  13. package/lib/data-form/form-components/bwa-rich-text.js +0 -1
  14. package/lib/data-table/data-table.js +4 -2
  15. package/lib/pct-filter-panel/pct-compents/pct-date-range-condition.js +1 -1
  16. package/lib/pct-filter-panel/pct-compents/pct-multiple-menu-condition.js +272 -132
  17. package/lib/pct-filter-panel/pct-compents/pct-multiple-menu-condition.vue_vue_type_style_index_0_scoped_ca1affd9_lang.js +17 -0
  18. package/lib/pct-filter-panel/pct-filter-panel.js +0 -1
  19. package/package.json +1 -1
  20. package/src/advance-select/advance-option.vue +1 -1
  21. package/src/data-form/data-form.vue +1 -1
  22. package/src/data-form/form-components/bwa-rich-text.vue +1 -1
  23. package/src/data-table/data-table.vue +7 -2
  24. package/src/pct-filter-panel/pct-compents/pct-date-range-condition.vue +1 -1
  25. package/src/pct-filter-panel/pct-compents/pct-multiple-menu-condition.vue +139 -25
  26. package/src/pct-filter-panel/pct-filter-panel.vue +1 -1
  27. package/es/plugins.css +0 -1
  28. package/lib/plugins.css +0 -1
  29. /package/es/advance-select/{advance-option.vue_vue_type_style_index_0_scoped_daae7edd_lang.mjs → advance-option.vue_vue_type_style_index_0_scoped_4c0fde1d_lang.mjs} +0 -0
  30. /package/lib/advance-select/{advance-option.vue_vue_type_style_index_0_scoped_daae7edd_lang.js → advance-option.vue_vue_type_style_index_0_scoped_4c0fde1d_lang.js} +0 -0
@@ -151,7 +151,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
151
151
  })
152
152
  );
153
153
  }
154
- console.log(userListResult);
155
154
  } finally {
156
155
  processing.value = false;
157
156
  }
@@ -171,10 +170,13 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
171
170
  dataTable.load();
172
171
  };
173
172
  webBaseClientVue.useEventDispatcher(dataTable, "load-successfully", (res) => {
173
+ var _a2, _b;
174
174
  if (!elTable.value) {
175
175
  return;
176
176
  }
177
- vue.unref(elTable).store.updateSelectionByRowKey();
177
+ if ((_b = (_a2 = vue.unref(elTable)) == null ? void 0 : _a2.store) == null ? void 0 : _b.updateSelectionByRowKey) {
178
+ vue.unref(elTable).store.updateSelectionByRowKey();
179
+ }
178
180
  if (res.code != 0) {
179
181
  ElementPlus.ElMessage.error(res.msg);
180
182
  }
@@ -27,7 +27,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
27
27
  },
28
28
  valueFormat: {
29
29
  type: String,
30
- default: "YYYY-MM-DD"
30
+ default: "YYYY-MM-DD HH:mm:ss"
31
31
  },
32
32
  showTitle: {
33
33
  type: Boolean,
@@ -9,6 +9,7 @@ var webBaseClientVue = require('@ctzy-web-client/web-base-client-vue');
9
9
  var index = require('../../hooks/use-data/index.js');
10
10
  var advanceSelect = require('../../advance-select/advance-select.js');
11
11
  var advanceOption = require('../../advance-select/advance-option.js');
12
+ require('./pct-multiple-menu-condition.vue_vue_type_style_index_0_scoped_ca1affd9_lang.js');
12
13
  var _pluginVue_exportHelper = require('../../_virtual/_plugin-vue_export-helper.js');
13
14
 
14
15
  // Inject __name helper
@@ -20,7 +21,51 @@ if (typeof __name === 'undefined') {
20
21
  });
21
22
  }
22
23
  }
23
- const _hoisted_1 = { key: 0 };
24
+ const _hoisted_1 = {
25
+ key: 0,
26
+ style: { "display": "flex", "align-items": "center", "flex-wrap": "wrap", "gap": "4px" }
27
+ };
28
+ const _hoisted_2 = {
29
+ key: 0,
30
+ style: { "flex": "1", "min-width": "80px", "position": "relative" }
31
+ };
32
+ const _hoisted_3 = {
33
+ key: 0,
34
+ style: { "color": "#999", "cursor": "text" }
35
+ };
36
+ const _hoisted_4 = {
37
+ key: 1,
38
+ style: { "color": "#333" }
39
+ };
40
+ const _hoisted_5 = {
41
+ key: 2,
42
+ class: "cursor-blink"
43
+ };
44
+ const _hoisted_6 = {
45
+ key: 1,
46
+ style: { "display": "flex", "align-items": "center", "justify-content": "space-between", "width": "100%" }
47
+ };
48
+ const _hoisted_7 = {
49
+ key: 1,
50
+ style: { "color": "#333" }
51
+ };
52
+ const _hoisted_8 = {
53
+ key: 2,
54
+ class: "cursor-blink"
55
+ };
56
+ const _hoisted_9 = { style: { "flex": "1", "position": "relative", "cursor": "text" } };
57
+ const _hoisted_10 = {
58
+ key: 1,
59
+ style: { "display": "flex", "align-items": "center", "width": "100%" }
60
+ };
61
+ const _hoisted_11 = {
62
+ key: 1,
63
+ style: { "color": "#333" }
64
+ };
65
+ const _hoisted_12 = {
66
+ key: 2,
67
+ class: "cursor-blink"
68
+ };
24
69
  const __default__ = vue.defineComponent({
25
70
  name: "BwaPctMultipleMenuCondition",
26
71
  __conditionTitle__: "\u591A\u9009\u5217\u8868",
@@ -100,6 +145,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
100
145
  const ns = webBaseClientVue.useNamespace("pctfilterpanel-item");
101
146
  const isShowPopper = vue.ref(false);
102
147
  const isHoverIcon = vue.ref(false);
148
+ const isSearchActive = vue.ref(false);
149
+ const inputRef = vue.ref(null);
103
150
  const attrs = vue.useAttrs();
104
151
  const showTitle = vue.computed(() => attrs.showTitle);
105
152
  const data = vue.ref([]);
@@ -136,7 +183,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
136
183
  var _a2, _b;
137
184
  return ((_b = (_a2 = column.value) == null ? void 0 : _a2.componentProps) == null ? void 0 : _b.showLetterAvatar) || props.showLetterAvatar;
138
185
  });
139
- console.log(showLetterAvatarStatus.value, "\u6253\u5370\u4F20\u503C");
140
186
  const handleClose = (val) => {
141
187
  const currentModelValue = Array.isArray(modelValue.value) ? modelValue.value : [];
142
188
  modelValue.value = currentModelValue.filter(
@@ -151,6 +197,32 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
151
197
  }
152
198
  isShowPopper.value = !isShowPopper.value;
153
199
  };
200
+ const handleContentClick = (event) => {
201
+ var _a2, _b;
202
+ event.stopPropagation();
203
+ isShowPopper.value = true;
204
+ if (props.showSearch && !((_b = (_a2 = column.value) == null ? void 0 : _a2.componentProps) == null ? void 0 : _b.options)) {
205
+ vue.nextTick(() => {
206
+ if (inputRef.value) {
207
+ inputRef.value.focus();
208
+ isSearchActive.value = true;
209
+ }
210
+ });
211
+ }
212
+ };
213
+ const handleInputFocus = () => {
214
+ isSearchActive.value = true;
215
+ isShowPopper.value = true;
216
+ };
217
+ const handleInputBlur = (event) => {
218
+ const target = event.relatedTarget;
219
+ if (target && target.closest(".bwa-advance-select__popper")) {
220
+ return;
221
+ }
222
+ setTimeout(() => {
223
+ isSearchActive.value = false;
224
+ }, 200);
225
+ };
154
226
  const getData = async (query) => {
155
227
  var _a2;
156
228
  loading.value = true;
@@ -184,8 +256,21 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
184
256
  }
185
257
  };
186
258
  const search = vue.ref("");
259
+ let searchTimeout = null;
187
260
  vue.watch(() => search.value, (val) => {
188
261
  handleFieldSearch(val);
262
+ if (searchTimeout) {
263
+ clearTimeout(searchTimeout);
264
+ }
265
+ searchTimeout = setTimeout(() => {
266
+ var _a2, _b;
267
+ if (val && props.showSearch && !((_b = (_a2 = column.value) == null ? void 0 : _a2.componentProps) == null ? void 0 : _b.options)) {
268
+ isShowPopper.value = true;
269
+ if (column.value.componentProps) {
270
+ getData(val);
271
+ }
272
+ }
273
+ }, 500);
189
274
  });
190
275
  const modelValue = vue.computed({
191
276
  get: () => {
@@ -219,7 +304,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
219
304
  showLetterAvatar: showLetterAvatarStatus.value,
220
305
  multiple: __props.multiple,
221
306
  modelValue: modelValue.value,
222
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => modelValue.value = $event),
307
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => modelValue.value = $event),
223
308
  onSearch: handleFieldSearch,
224
309
  class: vue.normalizeClass(vue.unref(ns).e("options")),
225
310
  onVisibleChange: visibleChange,
@@ -233,142 +318,197 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
233
318
  ref_key: "advanceSelectRef",
234
319
  ref: advanceSelectRef
235
320
  }, {
236
- "reference-content": vue.withCtx(({ selected }) => [
237
- __props.multiple ? (vue.openBlock(), vue.createElementBlock("div", {
238
- key: 0,
239
- class: vue.normalizeClass(vue.unref(ns).e("content"))
240
- }, [
241
- selected && selected.length > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
242
- vue.createVNode(vue.unref(ElementPlus.ElTooltip), {
243
- content: selected[0].label,
244
- placement: "top",
245
- effect: "light",
246
- "append-to": ".bwa-application"
321
+ "reference-content": vue.withCtx(({ selected }) => {
322
+ var _a2, _b, _c, _d;
323
+ return [
324
+ vue.createCommentVNode(" \u591A\u9009\u6A21\u5F0F "),
325
+ __props.multiple ? (vue.openBlock(), vue.createElementBlock("div", {
326
+ key: 0,
327
+ class: vue.normalizeClass(vue.unref(ns).e("content")),
328
+ onClick: handleContentClick
329
+ }, [
330
+ selected && selected.length > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
331
+ vue.createVNode(vue.unref(ElementPlus.ElTooltip), {
332
+ content: selected[0].label,
333
+ placement: "top",
334
+ effect: "light",
335
+ "append-to": ".bwa-application"
336
+ }, {
337
+ default: vue.withCtx(() => [
338
+ vue.createVNode(vue.unref(ElementPlus.ElTag), {
339
+ class: vue.normalizeClass(vue.unref(ns).e("tag")),
340
+ closable: "",
341
+ onClose: ($event) => handleClose(selected[0]),
342
+ type: "info"
343
+ }, {
344
+ default: vue.withCtx(() => [
345
+ vue.createTextVNode(vue.toDisplayString(selected[0].label), 1)
346
+ ]),
347
+ _: 2
348
+ }, 1032, ["class", "onClose"])
349
+ ]),
350
+ _: 2
351
+ }, 1032, ["content"]),
352
+ vue.createVNode(vue.unref(ElementPlus.ElTooltip), {
353
+ content: "Bottom center",
354
+ placement: "top",
355
+ effect: "light",
356
+ "append-to": ".bwa-application"
357
+ }, {
358
+ content: vue.withCtx(() => [
359
+ vue.createElementVNode("div", {
360
+ class: vue.normalizeClass(vue.unref(ns).e("tag_box"))
361
+ }, [
362
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(selected, (item, index) => {
363
+ return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
364
+ index !== 0 ? (vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElTag), {
365
+ key: 0,
366
+ class: vue.normalizeClass(vue.unref(ns).e("tag_details")),
367
+ type: "info",
368
+ closable: "",
369
+ onClose: ($event) => handleClose(item)
370
+ }, {
371
+ default: vue.withCtx(() => [
372
+ vue.createTextVNode(vue.toDisplayString(item.label), 1)
373
+ ]),
374
+ _: 2
375
+ }, 1032, ["class", "onClose"])) : vue.createCommentVNode("v-if", true)
376
+ ], 64);
377
+ }), 256))
378
+ ], 2)
379
+ ]),
380
+ default: vue.withCtx(() => [
381
+ selected.length > 1 ? (vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElTag), {
382
+ key: 0,
383
+ class: vue.normalizeClass(vue.unref(ns).e("tag")),
384
+ type: "info"
385
+ }, {
386
+ default: vue.withCtx(() => [
387
+ vue.createTextVNode("+" + vue.toDisplayString(selected.length - 1), 1)
388
+ ]),
389
+ _: 2
390
+ }, 1032, ["class"])) : vue.createCommentVNode("v-if", true)
391
+ ]),
392
+ _: 2
393
+ }, 1024),
394
+ vue.createCommentVNode(" \u641C\u7D22\u8F93\u5165\u533A\u57DF "),
395
+ props.showSearch && !((_a2 = column.value.componentProps) == null ? void 0 : _a2.options) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
396
+ !isSearchActive.value && !search.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3, vue.toDisplayString(searchPlaceholderStr.value || "\u641C\u7D22"), 1)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_4, vue.toDisplayString(search.value), 1)),
397
+ vue.createCommentVNode(" \u95EA\u70C1\u5149\u6807 "),
398
+ isSearchActive.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_5)) : vue.createCommentVNode("v-if", true),
399
+ vue.createCommentVNode(" \u9690\u85CF\u7684\u8F93\u5165\u6846 "),
400
+ props.showSearch && !((_b = column.value.componentProps) == null ? void 0 : _b.options) ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
401
+ key: 3,
402
+ ref_key: "inputRef",
403
+ ref: inputRef,
404
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => search.value = $event),
405
+ type: "text",
406
+ style: { "position": "absolute", "top": "0", "left": "0", "width": "100%", "height": "100%", "opacity": "0", "cursor": "text" },
407
+ onFocus: handleInputFocus,
408
+ onBlur: handleInputBlur,
409
+ onClick: _cache[1] || (_cache[1] = vue.withModifiers(() => {
410
+ }, ["stop"]))
411
+ }, null, 544)), [
412
+ [vue.vModelText, search.value]
413
+ ]) : vue.createCommentVNode("v-if", true)
414
+ ])) : vue.createCommentVNode("v-if", true)
415
+ ])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_6, [
416
+ vue.createElementVNode("div", {
417
+ style: { "flex": "1", "position": "relative", "cursor": "text" },
418
+ onClick: handleContentClick
419
+ }, [
420
+ !isSearchActive.value && !search.value ? (vue.openBlock(), vue.createElementBlock("span", {
421
+ key: 0,
422
+ class: vue.normalizeClass(vue.unref(ns).e("contentBox_placeholder"))
423
+ }, vue.toDisplayString(placeholderStr.value), 3)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_7, vue.toDisplayString(search.value), 1)),
424
+ vue.createCommentVNode(" \u95EA\u70C1\u5149\u6807 "),
425
+ isSearchActive.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_8)) : vue.createCommentVNode("v-if", true),
426
+ vue.createCommentVNode(" \u9690\u85CF\u7684\u8F93\u5165\u6846 "),
427
+ props.showSearch && !((_c = column.value.componentProps) == null ? void 0 : _c.options) ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
428
+ key: 3,
429
+ ref_key: "inputRef",
430
+ ref: inputRef,
431
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => search.value = $event),
432
+ type: "text",
433
+ style: { "position": "absolute", "top": "0", "left": "0", "width": "100%", "height": "100%", "opacity": "0", "cursor": "text" },
434
+ onFocus: handleInputFocus,
435
+ onBlur: handleInputBlur,
436
+ onClick: _cache[3] || (_cache[3] = vue.withModifiers(() => {
437
+ }, ["stop"]))
438
+ }, null, 544)), [
439
+ [vue.vModelText, search.value]
440
+ ]) : vue.createCommentVNode("v-if", true)
441
+ ])
442
+ ])),
443
+ vue.createVNode(vue.unref(ElementPlus.ElIcon), {
444
+ onMouseenter: _cache[4] || (_cache[4] = ($event) => isHoverIcon.value = true),
445
+ onMouseleave: _cache[5] || (_cache[5] = ($event) => isHoverIcon.value = false),
446
+ onClick: vue.withModifiers(handleIconClick, ["stop"]),
447
+ class: vue.normalizeClass(vue.unref(ns).be("option", "selected"))
247
448
  }, {
248
449
  default: vue.withCtx(() => [
249
- vue.createVNode(vue.unref(ElementPlus.ElTag), {
250
- class: vue.normalizeClass(vue.unref(ns).e("tag")),
251
- closable: "",
252
- onClose: ($event) => handleClose(selected[0]),
253
- type: "info"
254
- }, {
255
- default: vue.withCtx(() => [
256
- vue.createTextVNode(vue.toDisplayString(selected[0].label), 1)
257
- ]),
258
- _: 2
259
- }, 1032, ["class", "onClose"])
450
+ isHoverIcon.value && selected.length > 0 ? (vue.openBlock(), vue.createBlock(_component_CircleClose, {
451
+ key: 0,
452
+ class: "delete-icon"
453
+ })) : isShowPopper.value ? (vue.openBlock(), vue.createBlock(vue.unref(icons.ArrowUp), { key: 1 })) : (vue.openBlock(), vue.createBlock(vue.unref(icons.ArrowDown), { key: 2 }))
260
454
  ]),
261
455
  _: 2
262
- }, 1032, ["content"]),
263
- vue.createVNode(vue.unref(ElementPlus.ElTooltip), {
264
- content: "Bottom center",
265
- placement: "top",
266
- effect: "light",
267
- "append-to": ".bwa-application"
268
- }, {
269
- content: vue.withCtx(() => [
270
- vue.createElementVNode("div", {
271
- class: vue.normalizeClass(vue.unref(ns).e("tag_box"))
272
- }, [
273
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(selected, (item, index) => {
274
- return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
275
- index !== 0 ? (vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElTag), {
276
- key: 0,
277
- class: vue.normalizeClass(vue.unref(ns).e("tag_details")),
278
- type: "info",
279
- closable: "",
280
- onClose: ($event) => handleClose(item)
281
- }, {
282
- default: vue.withCtx(() => [
283
- vue.createTextVNode(vue.toDisplayString(item.label), 1)
284
- ]),
285
- _: 2
286
- }, 1032, ["class", "onClose"])) : vue.createCommentVNode("v-if", true)
287
- ], 64);
288
- }), 256))
289
- ], 2)
290
- ]),
291
- default: vue.withCtx(() => [
292
- selected.length > 1 ? (vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElTag), {
293
- key: 0,
294
- class: vue.normalizeClass(vue.unref(ns).e("tag")),
295
- type: "info"
456
+ }, 1032, ["class"])
457
+ ], 2)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
458
+ vue.createCommentVNode(" \u5355\u9009\u6A21\u5F0F "),
459
+ vue.createElementVNode("div", {
460
+ class: vue.normalizeClass(vue.unref(ns).e("content")),
461
+ onClick: handleContentClick
462
+ }, [
463
+ vue.createElementVNode("div", _hoisted_9, [
464
+ vue.createVNode(vue.unref(ElementPlus.ElTooltip), {
465
+ disabled: !selected.label,
466
+ content: selected.label,
467
+ placement: "top",
468
+ effect: "light",
469
+ "append-to": ".bwa-application"
296
470
  }, {
297
471
  default: vue.withCtx(() => [
298
- vue.createTextVNode("+" + vue.toDisplayString(selected.length - 1), 1)
472
+ selected.label ? (vue.openBlock(), vue.createElementBlock("div", {
473
+ key: 0,
474
+ class: vue.normalizeClass([vue.unref(ns).e("contentBox"), vue.unref(ns).e("contentBox_label")])
475
+ }, vue.toDisplayString(selected.label || placeholderStr.value), 3)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_10, [
476
+ !isSearchActive.value && !search.value ? (vue.openBlock(), vue.createElementBlock("span", {
477
+ key: 0,
478
+ class: vue.normalizeClass(vue.unref(ns).e("contentBox_placeholder"))
479
+ }, vue.toDisplayString(placeholderStr.value), 3)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_11, vue.toDisplayString(search.value), 1)),
480
+ vue.createCommentVNode(" \u95EA\u70C1\u5149\u6807 "),
481
+ isSearchActive.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_12)) : vue.createCommentVNode("v-if", true)
482
+ ]))
299
483
  ]),
300
484
  _: 2
301
- }, 1032, ["class"])) : vue.createCommentVNode("v-if", true)
485
+ }, 1032, ["disabled", "content"]),
486
+ vue.createCommentVNode(" \u9690\u85CF\u7684\u8F93\u5165\u6846 "),
487
+ props.showSearch && !((_d = column.value.componentProps) == null ? void 0 : _d.options) ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
488
+ key: 0,
489
+ ref_key: "inputRef",
490
+ ref: inputRef,
491
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => search.value = $event),
492
+ type: "text",
493
+ style: { "position": "absolute", "top": "0", "left": "0", "width": "100%", "height": "100%", "opacity": "0", "cursor": "text" },
494
+ onFocus: handleInputFocus,
495
+ onBlur: handleInputBlur,
496
+ onClick: _cache[7] || (_cache[7] = vue.withModifiers(() => {
497
+ }, ["stop"]))
498
+ }, null, 544)), [
499
+ [vue.vModelText, search.value]
500
+ ]) : vue.createCommentVNode("v-if", true)
302
501
  ]),
303
- _: 2
304
- }, 1024)
305
- ])) : (vue.openBlock(), vue.createElementBlock("div", {
306
- key: 1,
307
- class: vue.normalizeClass(vue.unref(ns).e("contentBox_placeholder"))
308
- }, vue.toDisplayString(placeholderStr.value), 3)),
309
- vue.createVNode(vue.unref(ElementPlus.ElIcon), {
310
- onMouseenter: _cache[0] || (_cache[0] = ($event) => isHoverIcon.value = true),
311
- onMouseleave: _cache[1] || (_cache[1] = ($event) => isHoverIcon.value = false),
312
- onClick: vue.withModifiers(handleIconClick, ["stop"]),
313
- class: vue.normalizeClass(vue.unref(ns).be("option", "selected"))
314
- }, {
315
- default: vue.withCtx(() => [
316
- isHoverIcon.value && selected.length > 0 ? (vue.openBlock(), vue.createBlock(_component_CircleClose, {
317
- key: 0,
318
- class: "delete-icon"
319
- })) : isShowPopper.value ? (vue.openBlock(), vue.createBlock(vue.unref(icons.ArrowUp), { key: 1 })) : (vue.openBlock(), vue.createBlock(vue.unref(icons.ArrowDown), { key: 2 }))
320
- ]),
321
- _: 2
322
- }, 1032, ["class"])
323
- ], 2)) : (vue.openBlock(), vue.createElementBlock("div", {
324
- key: 1,
325
- class: vue.normalizeClass(vue.unref(ns).e("content"))
326
- }, [
327
- vue.createVNode(vue.unref(ElementPlus.ElTooltip), {
328
- disabled: !selected.label,
329
- content: selected.label,
330
- placement: "top",
331
- effect: "light",
332
- "append-to": ".bwa-application"
333
- }, {
334
- default: vue.withCtx(() => [
335
- selected.label ? (vue.openBlock(), vue.createElementBlock("div", {
336
- key: 0,
337
- class: vue.normalizeClass([vue.unref(ns).e("contentBox"), vue.unref(ns).e("contentBox_label")])
338
- }, vue.toDisplayString(selected.label || placeholderStr.value), 3)) : (vue.openBlock(), vue.createElementBlock("div", {
339
- key: 1,
340
- class: vue.normalizeClass([vue.unref(ns).e("contentBox"), vue.unref(ns).e("contentBox_placeholder")])
341
- }, vue.toDisplayString(placeholderStr.value), 3))
342
- ]),
343
- _: 2
344
- }, 1032, ["disabled", "content"]),
345
- vue.createVNode(vue.unref(ElementPlus.ElIcon), {
346
- class: vue.normalizeClass(vue.unref(ns).be("option", "selected"))
347
- }, {
348
- default: vue.withCtx(() => [
349
- isShowPopper.value ? (vue.openBlock(), vue.createBlock(vue.unref(icons.ArrowUp), { key: 0 })) : (vue.openBlock(), vue.createBlock(vue.unref(icons.ArrowDown), { key: 1 }))
350
- ]),
351
- _: 1
352
- }, 8, ["class"])
353
- ], 2))
354
- ]),
355
- contentTop: vue.withCtx(() => {
356
- var _a2;
357
- return [
358
- __props.showSearch && !((_a2 = column.value.componentProps) == null ? void 0 : _a2.options) ? (vue.openBlock(), vue.createElementBlock("div", {
359
- key: 0,
360
- class: vue.normalizeClass(vue.unref(ns).e("contentTop"))
361
- }, [
362
- vue.createVNode(vue.unref(ElementPlus.ElInput), {
363
- modelValue: search.value,
364
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => search.value = $event),
365
- class: vue.normalizeClass(vue.unref(ns).e("select")),
366
- placeholder: searchPlaceholderStr.value,
367
- type: "text",
368
- "prefix-icon": "Search",
369
- clearable: ""
370
- }, null, 8, ["modelValue", "class", "placeholder"])
371
- ], 2)) : vue.createCommentVNode("v-if", true)
502
+ vue.createVNode(vue.unref(ElementPlus.ElIcon), {
503
+ class: vue.normalizeClass(vue.unref(ns).be("option", "selected"))
504
+ }, {
505
+ default: vue.withCtx(() => [
506
+ isShowPopper.value ? (vue.openBlock(), vue.createBlock(vue.unref(icons.ArrowUp), { key: 0 })) : (vue.openBlock(), vue.createBlock(vue.unref(icons.ArrowDown), { key: 1 }))
507
+ ]),
508
+ _: 1
509
+ }, 8, ["class"])
510
+ ], 2)
511
+ ], 2112))
372
512
  ];
373
513
  }),
374
514
  contentBottom: vue.withCtx(() => [
@@ -388,7 +528,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
388
528
  class: vue.normalizeClass(vue.unref(ns).be("filter", "option"))
389
529
  }, null, 8, ["value", "label", "showLetterAvatar", "class"]);
390
530
  }), 128))
391
- ])
531
+ ], true)
392
532
  ]),
393
533
  _: 3
394
534
  }, 8, ["showLetterAvatar", "multiple", "modelValue", "class", "showSelectIcon", "loading", "width"])
@@ -396,6 +536,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
396
536
  };
397
537
  }
398
538
  });
399
- var PctMultipleMenuCondition = /* @__PURE__ */ _pluginVue_exportHelper["default"](_sfc_main, [["__file", "pct-multiple-menu-condition.vue"]]);
539
+ var PctMultipleMenuCondition = /* @__PURE__ */ _pluginVue_exportHelper["default"](_sfc_main, [["__scopeId", "data-v-ca1affd9"], ["__file", "pct-multiple-menu-condition.vue"]]);
400
540
 
401
541
  exports["default"] = PctMultipleMenuCondition;
@@ -0,0 +1,17 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ // Inject __name helper
6
+ if (typeof __name === 'undefined') {
7
+ function __name(obj, name) {
8
+ Object.defineProperty(obj, "name", {
9
+ value: name,
10
+ configurable: true
11
+ });
12
+ }
13
+ }
14
+
15
+ var undefined$1 = undefined;
16
+
17
+ exports["default"] = undefined$1;
@@ -76,7 +76,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
76
76
  handleReset,
77
77
  handleSearch
78
78
  } = useFilterPanel.useFilterPanel(props, { emit });
79
- console.log(currentFilterColumns);
80
79
  vue.watch(
81
80
  filterPanel,
82
81
  (filterPanel2, _, onCleanup) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ctzy-web-client/plugin-component-vue",
3
- "version": "1.0.29",
3
+ "version": "1.0.31",
4
4
  "main": "lib/index.js",
5
5
  "module": "es/index.mjs",
6
6
  "exports": {
@@ -65,7 +65,7 @@ export default {
65
65
  const clickFlag = ref(true)
66
66
  const showLetterAvatarStatus = computed(() => props.showLetterAvatar);
67
67
 
68
- console.log(showLetterAvatarStatus.value,'下一级')
68
+ // console.log(showLetterAvatarStatus.value,'下一级')
69
69
  const contentText = ref()
70
70
 
71
71
  expose({ currentLabel });
@@ -186,7 +186,7 @@ const submit = (data) => {
186
186
  .catch((e) => ElMessage.error(e.message));
187
187
  })
188
188
  .catch((result) => {
189
- console.log(result);
189
+ // console.log(result);
190
190
  });
191
191
  };
192
192
 
@@ -277,7 +277,7 @@ onMounted(() => {
277
277
  ) {
278
278
  evt.preventDefault();
279
279
  [].forEach.call(evt.clipboardData.files, async (file) => {
280
- console.log(file)
280
+ // console.log(file)
281
281
  if (file.type.match(/^image\/(gif|jpe?g|a?png|bmp)/i)) {
282
282
  const filePathResult = await updateImage(file);
283
283
 
@@ -297,7 +297,6 @@ useEventDispatcher(dataTable, 'load-successfully', async (res) => {
297
297
  );
298
298
  }
299
299
 
300
- console.log(userListResult);
301
300
  } finally {
302
301
  processing.value = false;
303
302
  }
@@ -324,7 +323,13 @@ useEventDispatcher(dataTable, 'load-successfully', (res) => {
324
323
  return;
325
324
  }
326
325
 
327
- unref(elTable).store.updateSelectionByRowKey();
326
+ if (unref(elTable)?.store?.updateSelectionByRowKey) {
327
+ unref(elTable).store.updateSelectionByRowKey()
328
+ }
329
+ // else {
330
+ // console.log('方法不存在,当前 store 结构:', unref(elTable)?.store)
331
+ // }
332
+ // unref(elTable).store.updateSelectionByRowKey();
328
333
 
329
334
  if (res.code != 0) {
330
335
  ElMessage.error(res.msg);
@@ -29,7 +29,7 @@ const props = defineProps({
29
29
  },
30
30
  valueFormat: {
31
31
  type: String,
32
- default: 'YYYY-MM-DD',
32
+ default: 'YYYY-MM-DD HH:mm:ss',
33
33
  },
34
34
  showTitle: {
35
35
  type: Boolean,