yc-pro-components 0.0.83 → 0.0.85

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 (91) hide show
  1. package/es/components/dialog-form/index.d.ts +4 -1
  2. package/es/components/dialog-form/src/index.vue.d.ts +4 -1
  3. package/es/components/display-item/index.d.ts +12 -3
  4. package/es/components/display-item/src/index.vue.d.ts +12 -3
  5. package/es/components/drawer-form/index.d.ts +4 -1
  6. package/es/components/drawer-form/src/index.vue.d.ts +4 -1
  7. package/es/components/form/index.d.ts +27 -2
  8. package/es/components/form/src/form-content.vue.d.ts +17 -2
  9. package/es/components/form/src/form-content.vue2.mjs +11 -2
  10. package/es/components/form/src/index.vue.d.ts +11 -2
  11. package/es/components/form/src/index.vue2.mjs +5 -2
  12. package/es/components/form/src/type.d.ts +5 -0
  13. package/es/components/form-item/index.d.ts +24 -1
  14. package/es/components/form-item/src/index.vue.d.ts +28 -5
  15. package/es/components/form-item/src/index.vue2.mjs +437 -303
  16. package/es/components/form-item/src/overflow-tooltip.d.ts +16 -0
  17. package/es/components/form-item/src/overflow-tooltip.mjs +67 -0
  18. package/es/components/page/index.d.ts +208 -25
  19. package/es/components/page/src/index.vue.d.ts +72 -9
  20. package/es/components/search/index.d.ts +95 -10
  21. package/es/components/search/src/index.vue.d.ts +31 -4
  22. package/es/components/search/src/index.vue2.mjs +3 -1
  23. package/es/components/search/src/type.d.ts +5 -0
  24. package/es/components/table/src/table-column.vue.d.ts +12 -3
  25. package/es/components/yc-plus-page/src/index.vue.d.ts +140 -17
  26. package/es/hooks/usePlusFormReset.d.ts +24 -6
  27. package/es/index.css +10 -10
  28. package/es/types/form.d.ts +5 -0
  29. package/es/version.d.ts +1 -1
  30. package/es/version.mjs +1 -1
  31. package/es/yc-components/version.d.ts +1 -1
  32. package/index.css +1 -1
  33. package/index.js +522 -309
  34. package/index.min.js +12 -12
  35. package/index.min.mjs +12 -12
  36. package/index.mjs +522 -309
  37. package/lib/components/dialog-form/index.d.ts +4 -1
  38. package/lib/components/dialog-form/src/index.vue.d.ts +4 -1
  39. package/lib/components/display-item/index.d.ts +12 -3
  40. package/lib/components/display-item/src/index.vue.d.ts +12 -3
  41. package/lib/components/drawer-form/index.d.ts +4 -1
  42. package/lib/components/drawer-form/src/index.vue.d.ts +4 -1
  43. package/lib/components/form/index.d.ts +27 -2
  44. package/lib/components/form/src/form-content.vue.d.ts +17 -2
  45. package/lib/components/form/src/form-content.vue2.js +11 -2
  46. package/lib/components/form/src/index.vue.d.ts +11 -2
  47. package/lib/components/form/src/index.vue2.js +5 -2
  48. package/lib/components/form/src/type.d.ts +5 -0
  49. package/lib/components/form-item/index.d.ts +24 -1
  50. package/lib/components/form-item/src/index.vue.d.ts +28 -5
  51. package/lib/components/form-item/src/index.vue2.js +436 -302
  52. package/lib/components/form-item/src/overflow-tooltip.d.ts +16 -0
  53. package/lib/components/form-item/src/overflow-tooltip.js +71 -0
  54. package/lib/components/page/index.d.ts +208 -25
  55. package/lib/components/page/src/index.vue.d.ts +72 -9
  56. package/lib/components/search/index.d.ts +95 -10
  57. package/lib/components/search/src/index.vue.d.ts +31 -4
  58. package/lib/components/search/src/index.vue2.js +3 -1
  59. package/lib/components/search/src/type.d.ts +5 -0
  60. package/lib/components/table/src/table-column.vue.d.ts +12 -3
  61. package/lib/components/yc-plus-page/src/index.vue.d.ts +140 -17
  62. package/lib/hooks/usePlusFormReset.d.ts +24 -6
  63. package/lib/index.css +9 -9
  64. package/lib/types/form.d.ts +5 -0
  65. package/lib/version.d.ts +1 -1
  66. package/lib/version.js +1 -1
  67. package/lib/yc-components/version.d.ts +1 -1
  68. package/locale/en.js +1 -1
  69. package/locale/en.min.js +1 -1
  70. package/locale/en.min.mjs +1 -1
  71. package/locale/en.mjs +1 -1
  72. package/locale/ja.js +1 -1
  73. package/locale/ja.min.js +1 -1
  74. package/locale/ja.min.mjs +1 -1
  75. package/locale/ja.mjs +1 -1
  76. package/locale/ko.js +1 -1
  77. package/locale/ko.min.js +1 -1
  78. package/locale/ko.min.mjs +1 -1
  79. package/locale/ko.mjs +1 -1
  80. package/locale/zh-cn.js +1 -1
  81. package/locale/zh-cn.min.js +1 -1
  82. package/locale/zh-cn.min.mjs +1 -1
  83. package/locale/zh-cn.mjs +1 -1
  84. package/locale/zh-tw.js +1 -1
  85. package/locale/zh-tw.min.js +1 -1
  86. package/locale/zh-tw.min.mjs +1 -1
  87. package/locale/zh-tw.mjs +1 -1
  88. package/package.json +1 -1
  89. package/theme-chalk/index.css +1 -1
  90. package/theme-chalk/plus-form-item.css +1 -1
  91. package/theme-chalk/src/form-item.scss +77 -0
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! yc-pro-components v0.0.83 */
1
+ /*! yc-pro-components v0.0.85 */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue'), require('element-plus')) :
4
4
  typeof define === 'function' && define.amd ? define(['exports', 'vue', 'element-plus'], factory) :
@@ -16241,6 +16241,72 @@
16241
16241
  );
16242
16242
  const getFieldComponent = (valueType) => Reflect.get(FieldComponentMap, valueType) || {};
16243
16243
 
16244
+ const FIELD_SELECTOR = [
16245
+ ".el-input",
16246
+ ".el-textarea",
16247
+ ".el-select",
16248
+ ".el-date-editor",
16249
+ ".el-cascader",
16250
+ ".el-autocomplete",
16251
+ ".el-input-number",
16252
+ ".el-tree-select",
16253
+ ".plus-form-item-field"
16254
+ ].join(",");
16255
+ let measureCanvas = null;
16256
+ const measureTextWidth = (text, font) => {
16257
+ if (typeof document === "undefined") return 0;
16258
+ measureCanvas = measureCanvas || document.createElement("canvas");
16259
+ const context = measureCanvas.getContext("2d");
16260
+ if (!context) return 0;
16261
+ context.font = font;
16262
+ return context.measureText(text).width;
16263
+ };
16264
+ const readFont = (style) => `${style.fontStyle} ${style.fontWeight} ${style.fontSize} ${style.fontFamily}`;
16265
+ const availableWidth = (input) => {
16266
+ const style = getComputedStyle(input);
16267
+ const padding = (Number.parseFloat(style.paddingLeft) || 0) + (Number.parseFloat(style.paddingRight) || 0);
16268
+ return input.clientWidth - padding;
16269
+ };
16270
+ const isInputPlaceholderOverflow = (input, measure = measureTextWidth) => {
16271
+ var _a;
16272
+ const text = ((_a = input.placeholder) == null ? void 0 : _a.trim()) || "";
16273
+ if (!text || input.value || input.clientWidth <= 0) return false;
16274
+ return measure(text, readFont(getComputedStyle(input))) > availableWidth(input) + 1;
16275
+ };
16276
+ const hitFromInput = (input, measure) => {
16277
+ if (!isInputPlaceholderOverflow(input, measure)) return null;
16278
+ return { el: input, text: input.placeholder.trim() };
16279
+ };
16280
+ const containsPoint = (el, point) => {
16281
+ const rect = el.getBoundingClientRect();
16282
+ return point.x >= rect.left && point.x <= rect.right && point.y >= rect.top && point.y <= rect.bottom;
16283
+ };
16284
+ const findPlaceholderOverflow = (root, target, point, measure = measureTextWidth) => {
16285
+ var _a;
16286
+ if (!(target instanceof HTMLElement) || !root.contains(target)) return null;
16287
+ const directInput = target.closest("input, textarea");
16288
+ if (directInput instanceof HTMLInputElement || directInput instanceof HTMLTextAreaElement) {
16289
+ if (!root.contains(directInput)) return null;
16290
+ return hitFromInput(directInput, measure);
16291
+ }
16292
+ const field = target.closest(FIELD_SELECTOR);
16293
+ if (!(field instanceof HTMLElement) || !root.contains(field)) return null;
16294
+ const selectPlaceholder = field.querySelector(".el-select__placeholder.is-transparent");
16295
+ if (selectPlaceholder instanceof HTMLElement) {
16296
+ const text = ((_a = selectPlaceholder.textContent) == null ? void 0 : _a.trim()) || "";
16297
+ if (text && selectPlaceholder.scrollWidth > selectPlaceholder.clientWidth + 1) {
16298
+ return { el: selectPlaceholder, text };
16299
+ }
16300
+ return null;
16301
+ }
16302
+ if (!point) return null;
16303
+ const inputs = Array.from(field.querySelectorAll("input, textarea"));
16304
+ const hovered = inputs.find(
16305
+ (input) => (input instanceof HTMLInputElement || input instanceof HTMLTextAreaElement) && input.clientWidth > 0 && containsPoint(input, point)
16306
+ );
16307
+ return hovered ? hitFromInput(hovered, measure) : null;
16308
+ };
16309
+
16244
16310
  const _hoisted_1$r = { class: "el-form-item__error" };
16245
16311
  const _hoisted_2$i = { class: "plus-form-item__label" };
16246
16312
  const _hoisted_3$e = {
@@ -16251,6 +16317,7 @@
16251
16317
  key: 1,
16252
16318
  class: "plus-form-item-field"
16253
16319
  };
16320
+ const TOOLTIP_SHOW_DELAY = 300;
16254
16321
  var _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
16255
16322
  ...{
16256
16323
  name: "PlusFormItem"
@@ -16274,7 +16341,8 @@
16274
16341
  optionsMap: { default: void 0 },
16275
16342
  autoDict: { type: [Boolean, Function, Object], default: void 0 },
16276
16343
  index: { default: 0 },
16277
- clearable: { type: Boolean, default: true }
16344
+ clearable: { type: Boolean, default: true },
16345
+ ellipsis: { type: Boolean, default: false }
16278
16346
  },
16279
16347
  emits: ["update:modelValue", "change"],
16280
16348
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -16297,6 +16365,87 @@
16297
16365
  const customFieldPropsIsReady = vue.ref(false);
16298
16366
  const valueIsReady = vue.ref(false);
16299
16367
  const labelValue = vue.computed(() => getLabel$1(props.label));
16368
+ const labelTextRef = vue.ref();
16369
+ const labelOverflow = vue.ref(false);
16370
+ const labelTooltipContent = vue.ref("");
16371
+ const labelTooltipVisible = vue.ref(false);
16372
+ const placeholderTooltipVisible = vue.ref(false);
16373
+ const placeholderTooltipContent = vue.ref("");
16374
+ const placeholderVirtualRef = vue.ref();
16375
+ let labelTooltipTimer = null;
16376
+ let placeholderTooltipTimer = null;
16377
+ const syncLabelOverflow = () => {
16378
+ const el = labelTextRef.value;
16379
+ if (!el) {
16380
+ labelOverflow.value = false;
16381
+ labelTooltipContent.value = "";
16382
+ return;
16383
+ }
16384
+ labelTooltipContent.value = (el.textContent || "").trim();
16385
+ labelOverflow.value = el.scrollWidth > el.clientWidth + 1;
16386
+ };
16387
+ const showLabelTooltip = () => {
16388
+ if (!props.ellipsis) return;
16389
+ syncLabelOverflow();
16390
+ if (labelTooltipTimer) clearTimeout(labelTooltipTimer);
16391
+ if (!labelOverflow.value || !labelTooltipContent.value) {
16392
+ labelTooltipVisible.value = false;
16393
+ return;
16394
+ }
16395
+ if (labelTooltipVisible.value) return;
16396
+ labelTooltipTimer = setTimeout(() => {
16397
+ labelTooltipVisible.value = true;
16398
+ labelTooltipTimer = null;
16399
+ }, TOOLTIP_SHOW_DELAY);
16400
+ };
16401
+ const hideLabelTooltip = () => {
16402
+ if (labelTooltipTimer) clearTimeout(labelTooltipTimer);
16403
+ labelTooltipTimer = null;
16404
+ labelTooltipVisible.value = false;
16405
+ };
16406
+ const hidePlaceholderTooltip = () => {
16407
+ if (placeholderTooltipTimer) clearTimeout(placeholderTooltipTimer);
16408
+ placeholderTooltipTimer = null;
16409
+ placeholderTooltipVisible.value = false;
16410
+ placeholderTooltipContent.value = "";
16411
+ };
16412
+ const handlePlaceholderHover = (event) => {
16413
+ if (!props.ellipsis) return;
16414
+ const root = event.currentTarget;
16415
+ if (!(root instanceof HTMLElement)) return;
16416
+ const hit = findPlaceholderOverflow(root, event.target, {
16417
+ x: event.clientX,
16418
+ y: event.clientY
16419
+ });
16420
+ if (!hit) {
16421
+ hidePlaceholderTooltip();
16422
+ return;
16423
+ }
16424
+ const sameTarget = placeholderTooltipContent.value === hit.text && placeholderVirtualRef.value === hit.el;
16425
+ if (sameTarget && (placeholderTooltipVisible.value || placeholderTooltipTimer)) return;
16426
+ if (placeholderTooltipTimer) clearTimeout(placeholderTooltipTimer);
16427
+ placeholderTooltipVisible.value = false;
16428
+ placeholderVirtualRef.value = hit.el;
16429
+ placeholderTooltipContent.value = hit.text;
16430
+ placeholderTooltipTimer = setTimeout(() => {
16431
+ placeholderTooltipVisible.value = true;
16432
+ placeholderTooltipTimer = null;
16433
+ }, TOOLTIP_SHOW_DELAY);
16434
+ };
16435
+ vue.watch(labelTextRef, (el, _, onCleanup) => {
16436
+ syncLabelOverflow();
16437
+ if (!el || typeof ResizeObserver === "undefined") return;
16438
+ const observer = new ResizeObserver(() => syncLabelOverflow());
16439
+ observer.observe(el);
16440
+ onCleanup(() => observer.disconnect());
16441
+ });
16442
+ vue.watch(labelValue, () => {
16443
+ vue.nextTick(syncLabelOverflow);
16444
+ });
16445
+ vue.onBeforeUnmount(() => {
16446
+ if (labelTooltipTimer) clearTimeout(labelTooltipTimer);
16447
+ if (placeholderTooltipTimer) clearTimeout(placeholderTooltipTimer);
16448
+ });
16300
16449
  const formFieldRefs = vue.inject(TableFormFieldRefInjectionKey, {});
16301
16450
  const tableRowInfo = vue.inject(TableFormRowInfoInjectionKey, {});
16302
16451
  const params = vue.computed(() => ({
@@ -16460,217 +16609,151 @@
16460
16609
  ref: formItemInstance,
16461
16610
  label: _ctx.hasLabel ? labelValue.value : "",
16462
16611
  prop: _ctx.prop,
16463
- class: ["plus-form-item", { "plus-form-item--no-label": !_ctx.hasLabel }]
16612
+ class: ["plus-form-item", {
16613
+ "plus-form-item--no-label": !_ctx.hasLabel,
16614
+ "plus-form-item--ellipsis": _ctx.ellipsis
16615
+ }]
16464
16616
  }, customFormItemProps.value, {
16465
16617
  "label-width": _ctx.hasLabel ? (_a = customFormItemProps.value) == null ? void 0 : _a.labelWidth : "0px"
16466
16618
  }), vue.createSlots({
16467
16619
  default: vue.withCtx(() => [
16468
- _ctx.renderField && vue.unref(isFunction)(_ctx.renderField) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$e, [
16469
- valueIsReady.value ? (vue.openBlock(), vue.createBlock(vue.unref(PlusRender), {
16470
- key: 0,
16471
- render: _ctx.renderField,
16472
- params: params.value,
16473
- "callback-value": state.value,
16474
- "custom-field-props": customFieldProps.value,
16475
- "render-type": "form",
16476
- "handle-change": handleChange
16477
- }, null, 8, ["render", "params", "callback-value", "custom-field-props"])) : vue.createCommentVNode("v-if", true)
16478
- ])) : _ctx.$slots[vue.unref(getFieldSlotName)(_ctx.prop)] ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$b, [
16479
- vue.renderSlot(_ctx.$slots, vue.unref(getFieldSlotName)(_ctx.prop), vue.mergeProps(params.value, { column: props }))
16480
- ])) : _ctx.valueType === "select" && customFieldProps.value.multiple === true ? (vue.openBlock(), vue.createBlock(vue.unref(ElSelect), vue.mergeProps({
16481
- key: 2,
16482
- ref_key: "fieldInstance",
16483
- ref: fieldInstance,
16484
- modelValue: state.value,
16485
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => state.value = $event),
16486
- placeholder: vue.unref(t)("plus.field.pleaseSelect") + labelValue.value,
16487
- class: "plus-form-item-field",
16488
- clearable: _ctx.clearable
16489
- }, customFieldProps.value, { "onUpdate:modelValue": handleChange }), vue.createSlots({
16490
- default: vue.withCtx(() => [
16491
- (vue.openBlock(true), vue.createElementBlock(
16492
- vue.Fragment,
16493
- null,
16494
- vue.renderList(vue.unref(customOptions), (item) => {
16495
- return vue.openBlock(), vue.createElementBlock(
16496
- vue.Fragment,
16497
- {
16498
- key: item.value
16499
- },
16500
- [
16501
- item.options ? (vue.openBlock(), vue.createBlock(vue.unref(ElOptionGroup), {
16502
- key: 0,
16503
- label: item.label,
16504
- disabled: item.disabled
16505
- }, {
16506
- default: vue.withCtx(() => [
16507
- (vue.openBlock(true), vue.createElementBlock(
16508
- vue.Fragment,
16509
- null,
16510
- vue.renderList(item.options, (option) => {
16511
- return vue.openBlock(), vue.createBlock(vue.unref(ElOption), vue.mergeProps(
16512
- {
16513
- key: option.value,
16514
- label: option.label,
16515
- value: option.value
16516
- },
16517
- vue.unref(isFunction)(option.fieldItemProps) ? option.fieldItemProps(option) : option.fieldItemProps
16518
- ), {
16519
- default: vue.withCtx(() => [
16520
- vue.unref(isFunction)(option.fieldSlot) ? (vue.openBlock(), vue.createBlock(
16521
- vue.resolveDynamicComponent(option.fieldSlot),
16522
- vue.normalizeProps(vue.mergeProps({ key: 0 }, option)),
16523
- null,
16524
- 16
16525
- /* FULL_PROPS */
16526
- )) : vue.unref(isFunction)(_ctx.fieldChildrenSlot) ? (vue.openBlock(), vue.createBlock(
16527
- vue.resolveDynamicComponent(_ctx.fieldChildrenSlot),
16528
- vue.normalizeProps(vue.mergeProps({ key: 1 }, option)),
16529
- null,
16530
- 16
16531
- /* FULL_PROPS */
16532
- )) : (vue.openBlock(), vue.createElementBlock(
16533
- vue.Fragment,
16534
- { key: 2 },
16535
- [
16536
- vue.createTextVNode(
16537
- vue.toDisplayString(option.label),
16538
- 1
16539
- /* TEXT */
16540
- )
16541
- ],
16542
- 64
16543
- /* STABLE_FRAGMENT */
16544
- ))
16545
- ]),
16546
- _: 2
16547
- /* DYNAMIC */
16548
- }, 1040, ["label", "value"]);
16549
- }),
16550
- 128
16551
- /* KEYED_FRAGMENT */
16552
- ))
16553
- ]),
16554
- _: 2
16555
- /* DYNAMIC */
16556
- }, 1032, ["label", "disabled"])) : (vue.openBlock(), vue.createBlock(vue.unref(ElOption), vue.mergeProps(
16557
- {
16558
- key: 1,
16559
- label: item.label,
16560
- value: item.value
16561
- },
16562
- vue.unref(isFunction)(item.fieldItemProps) ? item.fieldItemProps(item) : item.fieldItemProps
16563
- ), {
16564
- default: vue.withCtx(() => [
16565
- vue.unref(isFunction)(item.fieldSlot) ? (vue.openBlock(), vue.createBlock(
16566
- vue.resolveDynamicComponent(item.fieldSlot),
16567
- vue.normalizeProps(vue.mergeProps({ key: 0 }, item)),
16568
- null,
16569
- 16
16570
- /* FULL_PROPS */
16571
- )) : vue.unref(isFunction)(_ctx.fieldChildrenSlot) ? (vue.openBlock(), vue.createBlock(
16572
- vue.resolveDynamicComponent(_ctx.fieldChildrenSlot),
16573
- vue.normalizeProps(vue.mergeProps({ key: 1 }, item)),
16574
- null,
16575
- 16
16576
- /* FULL_PROPS */
16577
- )) : (vue.openBlock(), vue.createElementBlock(
16578
- vue.Fragment,
16579
- { key: 2 },
16580
- [
16581
- vue.createTextVNode(
16582
- vue.toDisplayString(item.label),
16583
- 1
16584
- /* TEXT */
16585
- )
16586
- ],
16587
- 64
16588
- /* STABLE_FRAGMENT */
16589
- ))
16590
- ]),
16591
- _: 2
16592
- /* DYNAMIC */
16593
- }, 1040, ["label", "value"]))
16594
- ],
16595
- 64
16596
- /* STABLE_FRAGMENT */
16597
- );
16598
- }),
16599
- 128
16600
- /* KEYED_FRAGMENT */
16601
- ))
16602
- ]),
16603
- _: 2
16604
- /* DYNAMIC */
16605
- }, [
16606
- vue.renderList(_ctx.fieldSlots, (fieldSlot, key) => {
16607
- return {
16608
- name: key,
16609
- fn: vue.withCtx((data) => [
16610
- (vue.openBlock(), vue.createBlock(
16611
- vue.resolveDynamicComponent(fieldSlot),
16612
- vue.normalizeProps(vue.guardReactiveProps(data)),
16613
- null,
16614
- 16
16615
- /* FULL_PROPS */
16616
- ))
16617
- ])
16618
- };
16619
- })
16620
- ]), 1040, ["modelValue", "placeholder", "clearable"])) : vue.unref(hasFieldComponent)(_ctx.valueType) ? (vue.openBlock(), vue.createElementBlock(
16621
- vue.Fragment,
16622
- { key: 3 },
16620
+ vue.createElementVNode(
16621
+ "div",
16622
+ {
16623
+ class: "plus-form-item__control",
16624
+ onMouseover: handlePlaceholderHover,
16625
+ onMouseleave: hidePlaceholderTooltip
16626
+ },
16623
16627
  [
16624
- vue.createCommentVNode(" \u7EDF\u4E00\u5904\u7406 "),
16625
- vue.createCommentVNode(" has-children "),
16626
- vue.unref(getFieldComponent)(_ctx.valueType).children ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(getFieldComponent)(_ctx.valueType).component), vue.mergeProps({
16627
- key: 0,
16628
+ _ctx.renderField && vue.unref(isFunction)(_ctx.renderField) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$e, [
16629
+ valueIsReady.value ? (vue.openBlock(), vue.createBlock(vue.unref(PlusRender), {
16630
+ key: 0,
16631
+ render: _ctx.renderField,
16632
+ params: params.value,
16633
+ "callback-value": state.value,
16634
+ "custom-field-props": customFieldProps.value,
16635
+ "render-type": "form",
16636
+ "handle-change": handleChange
16637
+ }, null, 8, ["render", "params", "callback-value", "custom-field-props"])) : vue.createCommentVNode("v-if", true)
16638
+ ])) : _ctx.$slots[vue.unref(getFieldSlotName)(_ctx.prop)] ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$b, [
16639
+ vue.renderSlot(_ctx.$slots, vue.unref(getFieldSlotName)(_ctx.prop), vue.mergeProps(params.value, { column: props }))
16640
+ ])) : _ctx.valueType === "select" && customFieldProps.value.multiple === true ? (vue.openBlock(), vue.createBlock(vue.unref(ElSelect), vue.mergeProps({
16641
+ key: 2,
16628
16642
  ref_key: "fieldInstance",
16629
16643
  ref: fieldInstance,
16630
16644
  modelValue: state.value,
16631
16645
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => state.value = $event),
16646
+ placeholder: vue.unref(t)("plus.field.pleaseSelect") + labelValue.value,
16632
16647
  class: "plus-form-item-field",
16633
16648
  clearable: _ctx.clearable
16634
- }, commonProps.value, { "onUpdate:modelValue": handleChange }), vue.createSlots({
16649
+ }, customFieldProps.value, { "onUpdate:modelValue": handleChange }), vue.createSlots({
16635
16650
  default: vue.withCtx(() => [
16636
16651
  (vue.openBlock(true), vue.createElementBlock(
16637
16652
  vue.Fragment,
16638
16653
  null,
16639
16654
  vue.renderList(vue.unref(customOptions), (item) => {
16640
- return vue.openBlock(), vue.createBlock(
16641
- vue.resolveDynamicComponent(vue.unref(getFieldComponent)(_ctx.valueType).children),
16642
- vue.mergeProps({
16643
- key: item.value
16644
- }, getChildrenProps(item)),
16655
+ return vue.openBlock(), vue.createElementBlock(
16656
+ vue.Fragment,
16645
16657
  {
16646
- default: vue.withCtx(() => [
16647
- vue.unref(isFunction)(item.fieldSlot) ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(item.fieldSlot), vue.mergeProps({
16648
- key: 0,
16649
- "model-value": state.value,
16650
- column: params.value
16651
- }, item), null, 16, ["model-value", "column"])) : vue.unref(isFunction)(_ctx.fieldChildrenSlot) ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.fieldChildrenSlot), vue.mergeProps({
16652
- key: 1,
16653
- "model-value": state.value,
16654
- column: params.value
16655
- }, item), null, 16, ["model-value", "column"])) : (vue.openBlock(), vue.createElementBlock(
16656
- vue.Fragment,
16657
- { key: 2 },
16658
- [
16659
- vue.createTextVNode(
16660
- vue.toDisplayString(item.label),
16661
- 1
16662
- /* TEXT */
16663
- )
16664
- ],
16665
- 64
16666
- /* STABLE_FRAGMENT */
16667
- ))
16668
- ]),
16669
- _: 2
16670
- /* DYNAMIC */
16658
+ key: item.value
16671
16659
  },
16672
- 1040
16673
- /* FULL_PROPS, DYNAMIC_SLOTS */
16660
+ [
16661
+ item.options ? (vue.openBlock(), vue.createBlock(vue.unref(ElOptionGroup), {
16662
+ key: 0,
16663
+ label: item.label,
16664
+ disabled: item.disabled
16665
+ }, {
16666
+ default: vue.withCtx(() => [
16667
+ (vue.openBlock(true), vue.createElementBlock(
16668
+ vue.Fragment,
16669
+ null,
16670
+ vue.renderList(item.options, (option) => {
16671
+ return vue.openBlock(), vue.createBlock(vue.unref(ElOption), vue.mergeProps(
16672
+ {
16673
+ key: option.value,
16674
+ label: option.label,
16675
+ value: option.value
16676
+ },
16677
+ vue.unref(isFunction)(option.fieldItemProps) ? option.fieldItemProps(option) : option.fieldItemProps
16678
+ ), {
16679
+ default: vue.withCtx(() => [
16680
+ vue.unref(isFunction)(option.fieldSlot) ? (vue.openBlock(), vue.createBlock(
16681
+ vue.resolveDynamicComponent(option.fieldSlot),
16682
+ vue.normalizeProps(vue.mergeProps({ key: 0 }, option)),
16683
+ null,
16684
+ 16
16685
+ /* FULL_PROPS */
16686
+ )) : vue.unref(isFunction)(_ctx.fieldChildrenSlot) ? (vue.openBlock(), vue.createBlock(
16687
+ vue.resolveDynamicComponent(_ctx.fieldChildrenSlot),
16688
+ vue.normalizeProps(vue.mergeProps({ key: 1 }, option)),
16689
+ null,
16690
+ 16
16691
+ /* FULL_PROPS */
16692
+ )) : (vue.openBlock(), vue.createElementBlock(
16693
+ vue.Fragment,
16694
+ { key: 2 },
16695
+ [
16696
+ vue.createTextVNode(
16697
+ vue.toDisplayString(option.label),
16698
+ 1
16699
+ /* TEXT */
16700
+ )
16701
+ ],
16702
+ 64
16703
+ /* STABLE_FRAGMENT */
16704
+ ))
16705
+ ]),
16706
+ _: 2
16707
+ /* DYNAMIC */
16708
+ }, 1040, ["label", "value"]);
16709
+ }),
16710
+ 128
16711
+ /* KEYED_FRAGMENT */
16712
+ ))
16713
+ ]),
16714
+ _: 2
16715
+ /* DYNAMIC */
16716
+ }, 1032, ["label", "disabled"])) : (vue.openBlock(), vue.createBlock(vue.unref(ElOption), vue.mergeProps(
16717
+ {
16718
+ key: 1,
16719
+ label: item.label,
16720
+ value: item.value
16721
+ },
16722
+ vue.unref(isFunction)(item.fieldItemProps) ? item.fieldItemProps(item) : item.fieldItemProps
16723
+ ), {
16724
+ default: vue.withCtx(() => [
16725
+ vue.unref(isFunction)(item.fieldSlot) ? (vue.openBlock(), vue.createBlock(
16726
+ vue.resolveDynamicComponent(item.fieldSlot),
16727
+ vue.normalizeProps(vue.mergeProps({ key: 0 }, item)),
16728
+ null,
16729
+ 16
16730
+ /* FULL_PROPS */
16731
+ )) : vue.unref(isFunction)(_ctx.fieldChildrenSlot) ? (vue.openBlock(), vue.createBlock(
16732
+ vue.resolveDynamicComponent(_ctx.fieldChildrenSlot),
16733
+ vue.normalizeProps(vue.mergeProps({ key: 1 }, item)),
16734
+ null,
16735
+ 16
16736
+ /* FULL_PROPS */
16737
+ )) : (vue.openBlock(), vue.createElementBlock(
16738
+ vue.Fragment,
16739
+ { key: 2 },
16740
+ [
16741
+ vue.createTextVNode(
16742
+ vue.toDisplayString(item.label),
16743
+ 1
16744
+ /* TEXT */
16745
+ )
16746
+ ],
16747
+ 64
16748
+ /* STABLE_FRAGMENT */
16749
+ ))
16750
+ ]),
16751
+ _: 2
16752
+ /* DYNAMIC */
16753
+ }, 1040, ["label", "value"]))
16754
+ ],
16755
+ 64
16756
+ /* STABLE_FRAGMENT */
16674
16757
  );
16675
16758
  }),
16676
16759
  128
@@ -16684,27 +16767,76 @@
16684
16767
  return {
16685
16768
  name: key,
16686
16769
  fn: vue.withCtx((data) => [
16687
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(fieldSlot), vue.mergeProps({
16688
- value: state.value,
16689
- column: params.value
16690
- }, data), null, 16, ["value", "column"]))
16770
+ (vue.openBlock(), vue.createBlock(
16771
+ vue.resolveDynamicComponent(fieldSlot),
16772
+ vue.normalizeProps(vue.guardReactiveProps(data)),
16773
+ null,
16774
+ 16
16775
+ /* FULL_PROPS */
16776
+ ))
16691
16777
  ])
16692
16778
  };
16693
16779
  })
16694
- ]), 1040, ["modelValue", "clearable"])) : (vue.openBlock(), vue.createElementBlock(
16780
+ ]), 1040, ["modelValue", "placeholder", "clearable"])) : vue.unref(hasFieldComponent)(_ctx.valueType) ? (vue.openBlock(), vue.createElementBlock(
16695
16781
  vue.Fragment,
16696
- { key: 1 },
16782
+ { key: 3 },
16697
16783
  [
16698
- vue.createCommentVNode(" no-children "),
16699
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(getFieldComponent)(_ctx.valueType).component), vue.mergeProps({
16784
+ vue.createCommentVNode(" \u7EDF\u4E00\u5904\u7406 "),
16785
+ vue.createCommentVNode(" has-children "),
16786
+ vue.unref(getFieldComponent)(_ctx.valueType).children ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(getFieldComponent)(_ctx.valueType).component), vue.mergeProps({
16787
+ key: 0,
16700
16788
  ref_key: "fieldInstance",
16701
16789
  ref: fieldInstance,
16702
16790
  modelValue: state.value,
16703
16791
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => state.value = $event),
16704
16792
  class: "plus-form-item-field",
16705
- clearable: _ctx.clearable,
16706
- "field-children-slot": _ctx.fieldChildrenSlot
16793
+ clearable: _ctx.clearable
16707
16794
  }, commonProps.value, { "onUpdate:modelValue": handleChange }), vue.createSlots({
16795
+ default: vue.withCtx(() => [
16796
+ (vue.openBlock(true), vue.createElementBlock(
16797
+ vue.Fragment,
16798
+ null,
16799
+ vue.renderList(vue.unref(customOptions), (item) => {
16800
+ return vue.openBlock(), vue.createBlock(
16801
+ vue.resolveDynamicComponent(vue.unref(getFieldComponent)(_ctx.valueType).children),
16802
+ vue.mergeProps({
16803
+ key: item.value
16804
+ }, getChildrenProps(item)),
16805
+ {
16806
+ default: vue.withCtx(() => [
16807
+ vue.unref(isFunction)(item.fieldSlot) ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(item.fieldSlot), vue.mergeProps({
16808
+ key: 0,
16809
+ "model-value": state.value,
16810
+ column: params.value
16811
+ }, item), null, 16, ["model-value", "column"])) : vue.unref(isFunction)(_ctx.fieldChildrenSlot) ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.fieldChildrenSlot), vue.mergeProps({
16812
+ key: 1,
16813
+ "model-value": state.value,
16814
+ column: params.value
16815
+ }, item), null, 16, ["model-value", "column"])) : (vue.openBlock(), vue.createElementBlock(
16816
+ vue.Fragment,
16817
+ { key: 2 },
16818
+ [
16819
+ vue.createTextVNode(
16820
+ vue.toDisplayString(item.label),
16821
+ 1
16822
+ /* TEXT */
16823
+ )
16824
+ ],
16825
+ 64
16826
+ /* STABLE_FRAGMENT */
16827
+ ))
16828
+ ]),
16829
+ _: 2
16830
+ /* DYNAMIC */
16831
+ },
16832
+ 1040
16833
+ /* FULL_PROPS, DYNAMIC_SLOTS */
16834
+ );
16835
+ }),
16836
+ 128
16837
+ /* KEYED_FRAGMENT */
16838
+ ))
16839
+ ]),
16708
16840
  _: 2
16709
16841
  /* DYNAMIC */
16710
16842
  }, [
@@ -16713,88 +16845,129 @@
16713
16845
  name: key,
16714
16846
  fn: vue.withCtx((data) => [
16715
16847
  (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(fieldSlot), vue.mergeProps({
16716
- "model-value": state.value,
16848
+ value: state.value,
16717
16849
  column: params.value
16718
- }, data), null, 16, ["model-value", "column"]))
16850
+ }, data), null, 16, ["value", "column"]))
16719
16851
  ])
16720
16852
  };
16721
16853
  })
16722
- ]), 1040, ["modelValue", "clearable", "field-children-slot"]))
16854
+ ]), 1040, ["modelValue", "clearable"])) : (vue.openBlock(), vue.createElementBlock(
16855
+ vue.Fragment,
16856
+ { key: 1 },
16857
+ [
16858
+ vue.createCommentVNode(" no-children "),
16859
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(getFieldComponent)(_ctx.valueType).component), vue.mergeProps({
16860
+ ref_key: "fieldInstance",
16861
+ ref: fieldInstance,
16862
+ modelValue: state.value,
16863
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => state.value = $event),
16864
+ class: "plus-form-item-field",
16865
+ clearable: _ctx.clearable,
16866
+ "field-children-slot": _ctx.fieldChildrenSlot
16867
+ }, commonProps.value, { "onUpdate:modelValue": handleChange }), vue.createSlots({
16868
+ _: 2
16869
+ /* DYNAMIC */
16870
+ }, [
16871
+ vue.renderList(_ctx.fieldSlots, (fieldSlot, key) => {
16872
+ return {
16873
+ name: key,
16874
+ fn: vue.withCtx((data) => [
16875
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(fieldSlot), vue.mergeProps({
16876
+ "model-value": state.value,
16877
+ column: params.value
16878
+ }, data), null, 16, ["model-value", "column"]))
16879
+ ])
16880
+ };
16881
+ })
16882
+ ]), 1040, ["modelValue", "clearable", "field-children-slot"]))
16883
+ ],
16884
+ 2112
16885
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
16886
+ ))
16723
16887
  ],
16724
- 2112
16725
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
16726
- ))
16888
+ 64
16889
+ /* STABLE_FRAGMENT */
16890
+ )) : _ctx.valueType === "text" ? (vue.openBlock(), vue.createBlock(
16891
+ vue.unref(elementPlus.ElText),
16892
+ vue.mergeProps({
16893
+ key: 4,
16894
+ ref_key: "fieldInstance",
16895
+ ref: fieldInstance,
16896
+ class: "plus-form-item-field"
16897
+ }, customFieldProps.value),
16898
+ {
16899
+ default: vue.withCtx(() => [
16900
+ vue.createTextVNode(
16901
+ vue.toDisplayString(state.value),
16902
+ 1
16903
+ /* TEXT */
16904
+ )
16905
+ ]),
16906
+ _: 1
16907
+ /* STABLE */
16908
+ },
16909
+ 16
16910
+ /* FULL_PROPS */
16911
+ )) : _ctx.valueType === "divider" ? (vue.openBlock(), vue.createBlock(
16912
+ vue.unref(elementPlus.ElDivider),
16913
+ vue.mergeProps({
16914
+ key: 5,
16915
+ ref_key: "fieldInstance",
16916
+ ref: fieldInstance,
16917
+ class: "plus-form-item-field"
16918
+ }, customFieldProps.value),
16919
+ {
16920
+ default: vue.withCtx(() => [
16921
+ vue.createTextVNode(
16922
+ vue.toDisplayString(state.value),
16923
+ 1
16924
+ /* TEXT */
16925
+ )
16926
+ ]),
16927
+ _: 1
16928
+ /* STABLE */
16929
+ },
16930
+ 16
16931
+ /* FULL_PROPS */
16932
+ )) : (vue.openBlock(), vue.createBlock(vue.unref(ElInput), vue.mergeProps({
16933
+ key: 6,
16934
+ ref_key: "fieldInstance",
16935
+ ref: fieldInstance,
16936
+ modelValue: state.value,
16937
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => state.value = $event),
16938
+ class: "plus-form-item-field",
16939
+ placeholder: vue.unref(t)("plus.field.pleaseEnter") + labelValue.value,
16940
+ autocomplete: "off",
16941
+ clearable: _ctx.clearable
16942
+ }, customFieldProps.value, { "onUpdate:modelValue": handleChange }), vue.createSlots({
16943
+ _: 2
16944
+ /* DYNAMIC */
16945
+ }, [
16946
+ vue.renderList(_ctx.fieldSlots, (fieldSlot, key) => {
16947
+ return {
16948
+ name: key,
16949
+ fn: vue.withCtx((data) => [
16950
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(fieldSlot), vue.mergeProps({
16951
+ "model-value": state.value,
16952
+ column: params.value
16953
+ }, data), null, 16, ["model-value", "column"]))
16954
+ ])
16955
+ };
16956
+ })
16957
+ ]), 1040, ["modelValue", "placeholder", "clearable"])),
16958
+ vue.createVNode(vue.unref(ElTooltip), {
16959
+ visible: placeholderTooltipVisible.value,
16960
+ "onUpdate:visible": _cache[5] || (_cache[5] = ($event) => placeholderTooltipVisible.value = $event),
16961
+ content: placeholderTooltipContent.value,
16962
+ placement: "top",
16963
+ "virtual-triggering": "",
16964
+ "virtual-ref": placeholderVirtualRef.value,
16965
+ disabled: !placeholderTooltipContent.value
16966
+ }, null, 8, ["visible", "content", "virtual-ref", "disabled"])
16727
16967
  ],
16728
- 64
16729
- /* STABLE_FRAGMENT */
16730
- )) : _ctx.valueType === "text" ? (vue.openBlock(), vue.createBlock(
16731
- vue.unref(elementPlus.ElText),
16732
- vue.mergeProps({
16733
- key: 4,
16734
- ref_key: "fieldInstance",
16735
- ref: fieldInstance,
16736
- class: "plus-form-item-field"
16737
- }, customFieldProps.value),
16738
- {
16739
- default: vue.withCtx(() => [
16740
- vue.createTextVNode(
16741
- vue.toDisplayString(state.value),
16742
- 1
16743
- /* TEXT */
16744
- )
16745
- ]),
16746
- _: 1
16747
- /* STABLE */
16748
- },
16749
- 16
16750
- /* FULL_PROPS */
16751
- )) : _ctx.valueType === "divider" ? (vue.openBlock(), vue.createBlock(
16752
- vue.unref(elementPlus.ElDivider),
16753
- vue.mergeProps({
16754
- key: 5,
16755
- ref_key: "fieldInstance",
16756
- ref: fieldInstance,
16757
- class: "plus-form-item-field"
16758
- }, customFieldProps.value),
16759
- {
16760
- default: vue.withCtx(() => [
16761
- vue.createTextVNode(
16762
- vue.toDisplayString(state.value),
16763
- 1
16764
- /* TEXT */
16765
- )
16766
- ]),
16767
- _: 1
16768
- /* STABLE */
16769
- },
16770
- 16
16771
- /* FULL_PROPS */
16772
- )) : (vue.openBlock(), vue.createBlock(vue.unref(ElInput), vue.mergeProps({
16773
- key: 6,
16774
- ref_key: "fieldInstance",
16775
- ref: fieldInstance,
16776
- modelValue: state.value,
16777
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => state.value = $event),
16778
- class: "plus-form-item-field",
16779
- placeholder: vue.unref(t)("plus.field.pleaseEnter") + labelValue.value,
16780
- autocomplete: "off",
16781
- clearable: _ctx.clearable
16782
- }, customFieldProps.value, { "onUpdate:modelValue": handleChange }), vue.createSlots({
16783
- _: 2
16784
- /* DYNAMIC */
16785
- }, [
16786
- vue.renderList(_ctx.fieldSlots, (fieldSlot, key) => {
16787
- return {
16788
- name: key,
16789
- fn: vue.withCtx((data) => [
16790
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(fieldSlot), vue.mergeProps({
16791
- "model-value": state.value,
16792
- column: params.value
16793
- }, data), null, 16, ["model-value", "column"]))
16794
- ])
16795
- };
16796
- })
16797
- ]), 1040, ["modelValue", "placeholder", "clearable"]))
16968
+ 32
16969
+ /* NEED_HYDRATION */
16970
+ )
16798
16971
  ]),
16799
16972
  _: 2
16800
16973
  /* DYNAMIC */
@@ -16816,31 +16989,57 @@
16816
16989
  name: "label",
16817
16990
  fn: vue.withCtx(({ label: currentLabel }) => [
16818
16991
  vue.createElementVNode("span", _hoisted_2$i, [
16819
- _ctx.renderLabel && vue.unref(isFunction)(_ctx.renderLabel) ? (vue.openBlock(), vue.createElementBlock(
16820
- vue.Fragment,
16821
- { key: 0 },
16822
- [
16823
- valueIsReady.value ? (vue.openBlock(), vue.createBlock(vue.unref(PlusRender), {
16824
- key: 0,
16825
- render: _ctx.renderLabel,
16826
- params: params.value,
16827
- "callback-value": currentLabel,
16828
- "custom-field-props": customFieldProps.value
16829
- }, null, 8, ["render", "params", "callback-value", "custom-field-props"])) : vue.createCommentVNode("v-if", true)
16830
- ],
16831
- 64
16832
- /* STABLE_FRAGMENT */
16833
- )) : vue.renderSlot(_ctx.$slots, vue.unref(getLabelSlotName)(_ctx.prop), vue.normalizeProps(vue.mergeProps({ key: 1 }, params.value)), () => [
16834
- vue.createTextVNode(
16835
- vue.toDisplayString(currentLabel),
16836
- 1
16837
- /* TEXT */
16838
- )
16839
- ]),
16992
+ vue.createVNode(vue.unref(ElTooltip), {
16993
+ visible: labelTooltipVisible.value,
16994
+ "onUpdate:visible": _cache[0] || (_cache[0] = ($event) => labelTooltipVisible.value = $event),
16995
+ content: labelTooltipContent.value,
16996
+ placement: "top",
16997
+ disabled: !_ctx.ellipsis || !labelOverflow.value || !labelTooltipContent.value
16998
+ }, {
16999
+ default: vue.withCtx(() => [
17000
+ vue.createElementVNode(
17001
+ "span",
17002
+ {
17003
+ ref_key: "labelTextRef",
17004
+ ref: labelTextRef,
17005
+ class: "plus-form-item__label-text",
17006
+ onMouseenter: showLabelTooltip,
17007
+ onMouseleave: hideLabelTooltip
17008
+ },
17009
+ [
17010
+ _ctx.renderLabel && vue.unref(isFunction)(_ctx.renderLabel) ? (vue.openBlock(), vue.createElementBlock(
17011
+ vue.Fragment,
17012
+ { key: 0 },
17013
+ [
17014
+ valueIsReady.value ? (vue.openBlock(), vue.createBlock(vue.unref(PlusRender), {
17015
+ key: 0,
17016
+ render: _ctx.renderLabel,
17017
+ params: params.value,
17018
+ "callback-value": currentLabel,
17019
+ "custom-field-props": customFieldProps.value
17020
+ }, null, 8, ["render", "params", "callback-value", "custom-field-props"])) : vue.createCommentVNode("v-if", true)
17021
+ ],
17022
+ 64
17023
+ /* STABLE_FRAGMENT */
17024
+ )) : vue.renderSlot(_ctx.$slots, vue.unref(getLabelSlotName)(_ctx.prop), vue.normalizeProps(vue.mergeProps({ key: 1 }, params.value)), () => [
17025
+ vue.createTextVNode(
17026
+ vue.toDisplayString(currentLabel),
17027
+ 1
17028
+ /* TEXT */
17029
+ )
17030
+ ])
17031
+ ],
17032
+ 544
17033
+ /* NEED_HYDRATION, NEED_PATCH */
17034
+ )
17035
+ ]),
17036
+ _: 2
17037
+ /* DYNAMIC */
17038
+ }, 1032, ["visible", "content", "disabled"]),
16840
17039
  _ctx.tooltip ? (vue.openBlock(), vue.createBlock(
16841
17040
  vue.unref(ElTooltip),
16842
17041
  vue.mergeProps({
16843
- key: 2,
17042
+ key: 0,
16844
17043
  placement: "top"
16845
17044
  }, vue.unref(getTooltip)(_ctx.tooltip)),
16846
17045
  {
@@ -16952,7 +17151,8 @@
16952
17151
  colProps: { default: () => ({}) },
16953
17152
  collapseDuration: { default: void 0 },
16954
17153
  collapseTransition: { type: Boolean, default: void 0 },
16955
- clearable: { type: Boolean, default: true }
17154
+ clearable: { type: Boolean, default: true },
17155
+ ellipsis: { type: Boolean, default: false }
16956
17156
  },
16957
17157
  emits: ["update:modelValue", "change"],
16958
17158
  setup(__props, { emit: __emit }) {
@@ -16979,6 +17179,13 @@
16979
17179
  }
16980
17180
  return props.hasLabel;
16981
17181
  };
17182
+ const getEllipsis = (ellipsis) => {
17183
+ const value = vue.unref(ellipsis);
17184
+ if (isBoolean(value)) {
17185
+ return value;
17186
+ }
17187
+ return props.ellipsis;
17188
+ };
16982
17189
  vue.watch(
16983
17190
  () => props.modelValue,
16984
17191
  (val) => {
@@ -17033,6 +17240,7 @@
17033
17240
  }, item, {
17034
17241
  clearable: _ctx.clearable,
17035
17242
  "has-label": getHasLabel(item.hasLabel),
17243
+ ellipsis: getEllipsis(item.ellipsis),
17036
17244
  onChange: (value) => handleChange(value, item)
17037
17245
  }), vue.createSlots({
17038
17246
  _: 2
@@ -17059,7 +17267,7 @@
17059
17267
  ]),
17060
17268
  key: "2"
17061
17269
  } : void 0
17062
- ]), 1040, ["model-value", "clearable", "has-label", "onChange"]),
17270
+ ]), 1040, ["model-value", "clearable", "has-label", "ellipsis", "onChange"]),
17063
17271
  vue.createCommentVNode(" el-form-item \u4E0B\u4E00\u884C\u989D\u5916\u7684\u5185\u5BB9 "),
17064
17272
  item.renderExtra || _ctx.$slots[vue.unref(getExtraSlotName)(item.prop)] ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$h, [
17065
17273
  item.renderExtra && vue.unref(isFunction)(item.renderExtra) ? (vue.openBlock(), vue.createBlock(
@@ -17115,6 +17323,7 @@
17115
17323
  hasFooter: { type: Boolean, default: true },
17116
17324
  hasReset: { type: Boolean, default: true },
17117
17325
  hasLabel: { type: Boolean, default: true },
17326
+ ellipsis: { type: Boolean, default: false },
17118
17327
  submitText: { default: "" },
17119
17328
  resetText: { default: "" },
17120
17329
  submitLoading: { type: Boolean, default: false },
@@ -17292,6 +17501,7 @@
17292
17501
  layout: _ctx.layout,
17293
17502
  columns: filterHide(groupItem.columns),
17294
17503
  "has-label": _ctx.hasLabel,
17504
+ ellipsis: _ctx.ellipsis,
17295
17505
  "collapse-transition": _ctx.collapseTransition,
17296
17506
  "collapse-duration": _ctx.collapseDuration,
17297
17507
  clearable: _ctx.clearable,
@@ -17308,7 +17518,7 @@
17308
17518
  ])
17309
17519
  };
17310
17520
  })
17311
- ]), 1032, ["modelValue", "row-props", "col-props", "layout", "columns", "has-label", "collapse-transition", "collapse-duration", "clearable"]))
17521
+ ]), 1032, ["modelValue", "row-props", "col-props", "layout", "columns", "has-label", "ellipsis", "collapse-transition", "collapse-duration", "clearable"]))
17312
17522
  ]),
17313
17523
  _: 2
17314
17524
  /* DYNAMIC */
@@ -17332,6 +17542,7 @@
17332
17542
  layout: _ctx.layout,
17333
17543
  columns: subColumns.value,
17334
17544
  "has-label": _ctx.hasLabel,
17545
+ ellipsis: _ctx.ellipsis,
17335
17546
  "collapse-transition": _ctx.collapseTransition,
17336
17547
  "collapse-duration": _ctx.collapseDuration,
17337
17548
  clearable: _ctx.clearable,
@@ -17348,7 +17559,7 @@
17348
17559
  ])
17349
17560
  };
17350
17561
  })
17351
- ]), 1032, ["modelValue", "row-props", "col-props", "layout", "columns", "has-label", "collapse-transition", "collapse-duration", "clearable"])
17562
+ ]), 1032, ["modelValue", "row-props", "col-props", "layout", "columns", "has-label", "ellipsis", "collapse-transition", "collapse-duration", "clearable"])
17352
17563
  ],
17353
17564
  64
17354
17565
  /* STABLE_FRAGMENT */
@@ -29312,6 +29523,7 @@
29312
29523
  inline: { type: Boolean, default: true },
29313
29524
  showNumber: { default: 2 },
29314
29525
  labelPosition: { default: void 0 },
29526
+ ellipsis: { type: Boolean, default: false },
29315
29527
  rowProps: { default: () => ({
29316
29528
  gutter: 20
29317
29529
  }) },
@@ -29416,6 +29628,7 @@
29416
29628
  "col-props": _ctx.colProps,
29417
29629
  columns: subColumns.value,
29418
29630
  layout: _ctx.layout,
29631
+ ellipsis: _ctx.ellipsis,
29419
29632
  class: "plus-search",
29420
29633
  "has-footer": false,
29421
29634
  onChange: handleChange
@@ -29507,7 +29720,7 @@
29507
29720
  ])
29508
29721
  };
29509
29722
  })
29510
- ]), 1040, ["modelValue", "inline", "rules", "label-position", "row-props", "col-props", "columns", "layout"]);
29723
+ ]), 1040, ["modelValue", "inline", "rules", "label-position", "row-props", "col-props", "columns", "layout", "ellipsis"]);
29511
29724
  };
29512
29725
  }
29513
29726
  });
@@ -64739,7 +64952,7 @@
64739
64952
  });
64740
64953
  }
64741
64954
 
64742
- const version = "0.0.83";
64955
+ const version = "0.0.85";
64743
64956
 
64744
64957
  const install = installer.install;
64745
64958