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.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! yc-pro-components v0.0.83 */
1
+ /*! yc-pro-components v0.0.85 */
2
2
  import { unref, isRef, ref, inject, isReactive, watch, computed, shallowRef, provide, onMounted, nextTick, onBeforeUnmount, defineComponent, useAttrs, watchEffect, openBlock, createBlock, mergeProps, createSlots, withCtx, createElementVNode, renderSlot, normalizeStyle, createVNode, createTextVNode, toDisplayString, createElementBlock, normalizeClass, createCommentVNode, reactive, Fragment, renderList, resolveDynamicComponent, normalizeProps, guardReactiveProps, h, withDirectives, isVNode, withKeys, withModifiers, TransitionGroup, toHandlers, getCurrentInstance, resolveComponent, pushScopeId, popScopeId, toRefs, useSlots, onUnmounted, resolveDirective, onBeforeMount, getCurrentScope, onScopeDispose, toRef, mergeModels, useModel, vShow, createStaticVNode, hasInjectionContext, markRaw, effectScope, toRaw } from 'vue';
3
3
  import { dayjs, localeContextKey, ElDialog, ElButton, ElPagination, ElRadioGroup, ElRadio, ElTableColumn, ElDropdown, ElDropdownMenu, ElDropdownItem, ElIcon, ElTooltip, ElPopconfirm, ElLink, ElMessageBox, useFormDisabled, ElDatePicker, ClickOutside, ElTag, ElInput, ElAutocomplete, ElCascader, ElCheckboxGroup, ElCheckbox, ElColorPicker, ElInputNumber, ElRate, ElSelect, ElOption, ElSlider, ElSwitch, ElTimePicker, ElTimeSelect, ElTransfer, ElTreeSelect, ElSelectV2, ElText, ElDivider, ElFormItem, ElOptionGroup, ElRow, ElCol, ElForm, ElCard, ElMessage, ElImage, ElProgress, ElAvatar, ElPopover, ElTable, vLoading, ElDescriptions, ElDescriptionsItem, ElDrawer, TableV2FixedDir, ElAutoResizer, ElTableV2, ElSteps, ElStep, ElBreadcrumb, ElBreadcrumbItem, ElMenuItem, ElSubMenu, ElMenu, ElScrollbar, ElHeader, ElContainer, ElMain, ElBacktop, ElUpload } from 'element-plus';
4
4
 
@@ -16238,6 +16238,72 @@ const hasFieldComponent = (valueType) => Object.keys(FieldComponentMap).includes
16238
16238
  );
16239
16239
  const getFieldComponent = (valueType) => Reflect.get(FieldComponentMap, valueType) || {};
16240
16240
 
16241
+ const FIELD_SELECTOR = [
16242
+ ".el-input",
16243
+ ".el-textarea",
16244
+ ".el-select",
16245
+ ".el-date-editor",
16246
+ ".el-cascader",
16247
+ ".el-autocomplete",
16248
+ ".el-input-number",
16249
+ ".el-tree-select",
16250
+ ".plus-form-item-field"
16251
+ ].join(",");
16252
+ let measureCanvas = null;
16253
+ const measureTextWidth = (text, font) => {
16254
+ if (typeof document === "undefined") return 0;
16255
+ measureCanvas = measureCanvas || document.createElement("canvas");
16256
+ const context = measureCanvas.getContext("2d");
16257
+ if (!context) return 0;
16258
+ context.font = font;
16259
+ return context.measureText(text).width;
16260
+ };
16261
+ const readFont = (style) => `${style.fontStyle} ${style.fontWeight} ${style.fontSize} ${style.fontFamily}`;
16262
+ const availableWidth = (input) => {
16263
+ const style = getComputedStyle(input);
16264
+ const padding = (Number.parseFloat(style.paddingLeft) || 0) + (Number.parseFloat(style.paddingRight) || 0);
16265
+ return input.clientWidth - padding;
16266
+ };
16267
+ const isInputPlaceholderOverflow = (input, measure = measureTextWidth) => {
16268
+ var _a;
16269
+ const text = ((_a = input.placeholder) == null ? void 0 : _a.trim()) || "";
16270
+ if (!text || input.value || input.clientWidth <= 0) return false;
16271
+ return measure(text, readFont(getComputedStyle(input))) > availableWidth(input) + 1;
16272
+ };
16273
+ const hitFromInput = (input, measure) => {
16274
+ if (!isInputPlaceholderOverflow(input, measure)) return null;
16275
+ return { el: input, text: input.placeholder.trim() };
16276
+ };
16277
+ const containsPoint = (el, point) => {
16278
+ const rect = el.getBoundingClientRect();
16279
+ return point.x >= rect.left && point.x <= rect.right && point.y >= rect.top && point.y <= rect.bottom;
16280
+ };
16281
+ const findPlaceholderOverflow = (root, target, point, measure = measureTextWidth) => {
16282
+ var _a;
16283
+ if (!(target instanceof HTMLElement) || !root.contains(target)) return null;
16284
+ const directInput = target.closest("input, textarea");
16285
+ if (directInput instanceof HTMLInputElement || directInput instanceof HTMLTextAreaElement) {
16286
+ if (!root.contains(directInput)) return null;
16287
+ return hitFromInput(directInput, measure);
16288
+ }
16289
+ const field = target.closest(FIELD_SELECTOR);
16290
+ if (!(field instanceof HTMLElement) || !root.contains(field)) return null;
16291
+ const selectPlaceholder = field.querySelector(".el-select__placeholder.is-transparent");
16292
+ if (selectPlaceholder instanceof HTMLElement) {
16293
+ const text = ((_a = selectPlaceholder.textContent) == null ? void 0 : _a.trim()) || "";
16294
+ if (text && selectPlaceholder.scrollWidth > selectPlaceholder.clientWidth + 1) {
16295
+ return { el: selectPlaceholder, text };
16296
+ }
16297
+ return null;
16298
+ }
16299
+ if (!point) return null;
16300
+ const inputs = Array.from(field.querySelectorAll("input, textarea"));
16301
+ const hovered = inputs.find(
16302
+ (input) => (input instanceof HTMLInputElement || input instanceof HTMLTextAreaElement) && input.clientWidth > 0 && containsPoint(input, point)
16303
+ );
16304
+ return hovered ? hitFromInput(hovered, measure) : null;
16305
+ };
16306
+
16241
16307
  const _hoisted_1$r = { class: "el-form-item__error" };
16242
16308
  const _hoisted_2$i = { class: "plus-form-item__label" };
16243
16309
  const _hoisted_3$e = {
@@ -16248,6 +16314,7 @@ const _hoisted_4$b = {
16248
16314
  key: 1,
16249
16315
  class: "plus-form-item-field"
16250
16316
  };
16317
+ const TOOLTIP_SHOW_DELAY = 300;
16251
16318
  var _sfc_main$H = /* @__PURE__ */ defineComponent({
16252
16319
  ...{
16253
16320
  name: "PlusFormItem"
@@ -16271,7 +16338,8 @@ var _sfc_main$H = /* @__PURE__ */ defineComponent({
16271
16338
  optionsMap: { default: void 0 },
16272
16339
  autoDict: { type: [Boolean, Function, Object], default: void 0 },
16273
16340
  index: { default: 0 },
16274
- clearable: { type: Boolean, default: true }
16341
+ clearable: { type: Boolean, default: true },
16342
+ ellipsis: { type: Boolean, default: false }
16275
16343
  },
16276
16344
  emits: ["update:modelValue", "change"],
16277
16345
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -16294,6 +16362,87 @@ var _sfc_main$H = /* @__PURE__ */ defineComponent({
16294
16362
  const customFieldPropsIsReady = ref(false);
16295
16363
  const valueIsReady = ref(false);
16296
16364
  const labelValue = computed(() => getLabel$1(props.label));
16365
+ const labelTextRef = ref();
16366
+ const labelOverflow = ref(false);
16367
+ const labelTooltipContent = ref("");
16368
+ const labelTooltipVisible = ref(false);
16369
+ const placeholderTooltipVisible = ref(false);
16370
+ const placeholderTooltipContent = ref("");
16371
+ const placeholderVirtualRef = ref();
16372
+ let labelTooltipTimer = null;
16373
+ let placeholderTooltipTimer = null;
16374
+ const syncLabelOverflow = () => {
16375
+ const el = labelTextRef.value;
16376
+ if (!el) {
16377
+ labelOverflow.value = false;
16378
+ labelTooltipContent.value = "";
16379
+ return;
16380
+ }
16381
+ labelTooltipContent.value = (el.textContent || "").trim();
16382
+ labelOverflow.value = el.scrollWidth > el.clientWidth + 1;
16383
+ };
16384
+ const showLabelTooltip = () => {
16385
+ if (!props.ellipsis) return;
16386
+ syncLabelOverflow();
16387
+ if (labelTooltipTimer) clearTimeout(labelTooltipTimer);
16388
+ if (!labelOverflow.value || !labelTooltipContent.value) {
16389
+ labelTooltipVisible.value = false;
16390
+ return;
16391
+ }
16392
+ if (labelTooltipVisible.value) return;
16393
+ labelTooltipTimer = setTimeout(() => {
16394
+ labelTooltipVisible.value = true;
16395
+ labelTooltipTimer = null;
16396
+ }, TOOLTIP_SHOW_DELAY);
16397
+ };
16398
+ const hideLabelTooltip = () => {
16399
+ if (labelTooltipTimer) clearTimeout(labelTooltipTimer);
16400
+ labelTooltipTimer = null;
16401
+ labelTooltipVisible.value = false;
16402
+ };
16403
+ const hidePlaceholderTooltip = () => {
16404
+ if (placeholderTooltipTimer) clearTimeout(placeholderTooltipTimer);
16405
+ placeholderTooltipTimer = null;
16406
+ placeholderTooltipVisible.value = false;
16407
+ placeholderTooltipContent.value = "";
16408
+ };
16409
+ const handlePlaceholderHover = (event) => {
16410
+ if (!props.ellipsis) return;
16411
+ const root = event.currentTarget;
16412
+ if (!(root instanceof HTMLElement)) return;
16413
+ const hit = findPlaceholderOverflow(root, event.target, {
16414
+ x: event.clientX,
16415
+ y: event.clientY
16416
+ });
16417
+ if (!hit) {
16418
+ hidePlaceholderTooltip();
16419
+ return;
16420
+ }
16421
+ const sameTarget = placeholderTooltipContent.value === hit.text && placeholderVirtualRef.value === hit.el;
16422
+ if (sameTarget && (placeholderTooltipVisible.value || placeholderTooltipTimer)) return;
16423
+ if (placeholderTooltipTimer) clearTimeout(placeholderTooltipTimer);
16424
+ placeholderTooltipVisible.value = false;
16425
+ placeholderVirtualRef.value = hit.el;
16426
+ placeholderTooltipContent.value = hit.text;
16427
+ placeholderTooltipTimer = setTimeout(() => {
16428
+ placeholderTooltipVisible.value = true;
16429
+ placeholderTooltipTimer = null;
16430
+ }, TOOLTIP_SHOW_DELAY);
16431
+ };
16432
+ watch(labelTextRef, (el, _, onCleanup) => {
16433
+ syncLabelOverflow();
16434
+ if (!el || typeof ResizeObserver === "undefined") return;
16435
+ const observer = new ResizeObserver(() => syncLabelOverflow());
16436
+ observer.observe(el);
16437
+ onCleanup(() => observer.disconnect());
16438
+ });
16439
+ watch(labelValue, () => {
16440
+ nextTick(syncLabelOverflow);
16441
+ });
16442
+ onBeforeUnmount(() => {
16443
+ if (labelTooltipTimer) clearTimeout(labelTooltipTimer);
16444
+ if (placeholderTooltipTimer) clearTimeout(placeholderTooltipTimer);
16445
+ });
16297
16446
  const formFieldRefs = inject(TableFormFieldRefInjectionKey, {});
16298
16447
  const tableRowInfo = inject(TableFormRowInfoInjectionKey, {});
16299
16448
  const params = computed(() => ({
@@ -16457,217 +16606,151 @@ var _sfc_main$H = /* @__PURE__ */ defineComponent({
16457
16606
  ref: formItemInstance,
16458
16607
  label: _ctx.hasLabel ? labelValue.value : "",
16459
16608
  prop: _ctx.prop,
16460
- class: ["plus-form-item", { "plus-form-item--no-label": !_ctx.hasLabel }]
16609
+ class: ["plus-form-item", {
16610
+ "plus-form-item--no-label": !_ctx.hasLabel,
16611
+ "plus-form-item--ellipsis": _ctx.ellipsis
16612
+ }]
16461
16613
  }, customFormItemProps.value, {
16462
16614
  "label-width": _ctx.hasLabel ? (_a = customFormItemProps.value) == null ? void 0 : _a.labelWidth : "0px"
16463
16615
  }), createSlots({
16464
16616
  default: withCtx(() => [
16465
- _ctx.renderField && unref(isFunction)(_ctx.renderField) ? (openBlock(), createElementBlock("div", _hoisted_3$e, [
16466
- valueIsReady.value ? (openBlock(), createBlock(unref(PlusRender), {
16467
- key: 0,
16468
- render: _ctx.renderField,
16469
- params: params.value,
16470
- "callback-value": state.value,
16471
- "custom-field-props": customFieldProps.value,
16472
- "render-type": "form",
16473
- "handle-change": handleChange
16474
- }, null, 8, ["render", "params", "callback-value", "custom-field-props"])) : createCommentVNode("v-if", true)
16475
- ])) : _ctx.$slots[unref(getFieldSlotName)(_ctx.prop)] ? (openBlock(), createElementBlock("div", _hoisted_4$b, [
16476
- renderSlot(_ctx.$slots, unref(getFieldSlotName)(_ctx.prop), mergeProps(params.value, { column: props }))
16477
- ])) : _ctx.valueType === "select" && customFieldProps.value.multiple === true ? (openBlock(), createBlock(unref(ElSelect$1), mergeProps({
16478
- key: 2,
16479
- ref_key: "fieldInstance",
16480
- ref: fieldInstance,
16481
- modelValue: state.value,
16482
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => state.value = $event),
16483
- placeholder: unref(t)("plus.field.pleaseSelect") + labelValue.value,
16484
- class: "plus-form-item-field",
16485
- clearable: _ctx.clearable
16486
- }, customFieldProps.value, { "onUpdate:modelValue": handleChange }), createSlots({
16487
- default: withCtx(() => [
16488
- (openBlock(true), createElementBlock(
16489
- Fragment,
16490
- null,
16491
- renderList(unref(customOptions), (item) => {
16492
- return openBlock(), createElementBlock(
16493
- Fragment,
16494
- {
16495
- key: item.value
16496
- },
16497
- [
16498
- item.options ? (openBlock(), createBlock(unref(ElOptionGroup$1), {
16499
- key: 0,
16500
- label: item.label,
16501
- disabled: item.disabled
16502
- }, {
16503
- default: withCtx(() => [
16504
- (openBlock(true), createElementBlock(
16505
- Fragment,
16506
- null,
16507
- renderList(item.options, (option) => {
16508
- return openBlock(), createBlock(unref(ElOption$1), mergeProps(
16509
- {
16510
- key: option.value,
16511
- label: option.label,
16512
- value: option.value
16513
- },
16514
- unref(isFunction)(option.fieldItemProps) ? option.fieldItemProps(option) : option.fieldItemProps
16515
- ), {
16516
- default: withCtx(() => [
16517
- unref(isFunction)(option.fieldSlot) ? (openBlock(), createBlock(
16518
- resolveDynamicComponent(option.fieldSlot),
16519
- normalizeProps(mergeProps({ key: 0 }, option)),
16520
- null,
16521
- 16
16522
- /* FULL_PROPS */
16523
- )) : unref(isFunction)(_ctx.fieldChildrenSlot) ? (openBlock(), createBlock(
16524
- resolveDynamicComponent(_ctx.fieldChildrenSlot),
16525
- normalizeProps(mergeProps({ key: 1 }, option)),
16526
- null,
16527
- 16
16528
- /* FULL_PROPS */
16529
- )) : (openBlock(), createElementBlock(
16530
- Fragment,
16531
- { key: 2 },
16532
- [
16533
- createTextVNode(
16534
- toDisplayString(option.label),
16535
- 1
16536
- /* TEXT */
16537
- )
16538
- ],
16539
- 64
16540
- /* STABLE_FRAGMENT */
16541
- ))
16542
- ]),
16543
- _: 2
16544
- /* DYNAMIC */
16545
- }, 1040, ["label", "value"]);
16546
- }),
16547
- 128
16548
- /* KEYED_FRAGMENT */
16549
- ))
16550
- ]),
16551
- _: 2
16552
- /* DYNAMIC */
16553
- }, 1032, ["label", "disabled"])) : (openBlock(), createBlock(unref(ElOption$1), mergeProps(
16554
- {
16555
- key: 1,
16556
- label: item.label,
16557
- value: item.value
16558
- },
16559
- unref(isFunction)(item.fieldItemProps) ? item.fieldItemProps(item) : item.fieldItemProps
16560
- ), {
16561
- default: withCtx(() => [
16562
- unref(isFunction)(item.fieldSlot) ? (openBlock(), createBlock(
16563
- resolveDynamicComponent(item.fieldSlot),
16564
- normalizeProps(mergeProps({ key: 0 }, item)),
16565
- null,
16566
- 16
16567
- /* FULL_PROPS */
16568
- )) : unref(isFunction)(_ctx.fieldChildrenSlot) ? (openBlock(), createBlock(
16569
- resolveDynamicComponent(_ctx.fieldChildrenSlot),
16570
- normalizeProps(mergeProps({ key: 1 }, item)),
16571
- null,
16572
- 16
16573
- /* FULL_PROPS */
16574
- )) : (openBlock(), createElementBlock(
16575
- Fragment,
16576
- { key: 2 },
16577
- [
16578
- createTextVNode(
16579
- toDisplayString(item.label),
16580
- 1
16581
- /* TEXT */
16582
- )
16583
- ],
16584
- 64
16585
- /* STABLE_FRAGMENT */
16586
- ))
16587
- ]),
16588
- _: 2
16589
- /* DYNAMIC */
16590
- }, 1040, ["label", "value"]))
16591
- ],
16592
- 64
16593
- /* STABLE_FRAGMENT */
16594
- );
16595
- }),
16596
- 128
16597
- /* KEYED_FRAGMENT */
16598
- ))
16599
- ]),
16600
- _: 2
16601
- /* DYNAMIC */
16602
- }, [
16603
- renderList(_ctx.fieldSlots, (fieldSlot, key) => {
16604
- return {
16605
- name: key,
16606
- fn: withCtx((data) => [
16607
- (openBlock(), createBlock(
16608
- resolveDynamicComponent(fieldSlot),
16609
- normalizeProps(guardReactiveProps(data)),
16610
- null,
16611
- 16
16612
- /* FULL_PROPS */
16613
- ))
16614
- ])
16615
- };
16616
- })
16617
- ]), 1040, ["modelValue", "placeholder", "clearable"])) : unref(hasFieldComponent)(_ctx.valueType) ? (openBlock(), createElementBlock(
16618
- Fragment,
16619
- { key: 3 },
16617
+ createElementVNode(
16618
+ "div",
16619
+ {
16620
+ class: "plus-form-item__control",
16621
+ onMouseover: handlePlaceholderHover,
16622
+ onMouseleave: hidePlaceholderTooltip
16623
+ },
16620
16624
  [
16621
- createCommentVNode(" \u7EDF\u4E00\u5904\u7406 "),
16622
- createCommentVNode(" has-children "),
16623
- unref(getFieldComponent)(_ctx.valueType).children ? (openBlock(), createBlock(resolveDynamicComponent(unref(getFieldComponent)(_ctx.valueType).component), mergeProps({
16624
- key: 0,
16625
+ _ctx.renderField && unref(isFunction)(_ctx.renderField) ? (openBlock(), createElementBlock("div", _hoisted_3$e, [
16626
+ valueIsReady.value ? (openBlock(), createBlock(unref(PlusRender), {
16627
+ key: 0,
16628
+ render: _ctx.renderField,
16629
+ params: params.value,
16630
+ "callback-value": state.value,
16631
+ "custom-field-props": customFieldProps.value,
16632
+ "render-type": "form",
16633
+ "handle-change": handleChange
16634
+ }, null, 8, ["render", "params", "callback-value", "custom-field-props"])) : createCommentVNode("v-if", true)
16635
+ ])) : _ctx.$slots[unref(getFieldSlotName)(_ctx.prop)] ? (openBlock(), createElementBlock("div", _hoisted_4$b, [
16636
+ renderSlot(_ctx.$slots, unref(getFieldSlotName)(_ctx.prop), mergeProps(params.value, { column: props }))
16637
+ ])) : _ctx.valueType === "select" && customFieldProps.value.multiple === true ? (openBlock(), createBlock(unref(ElSelect$1), mergeProps({
16638
+ key: 2,
16625
16639
  ref_key: "fieldInstance",
16626
16640
  ref: fieldInstance,
16627
16641
  modelValue: state.value,
16628
16642
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => state.value = $event),
16643
+ placeholder: unref(t)("plus.field.pleaseSelect") + labelValue.value,
16629
16644
  class: "plus-form-item-field",
16630
16645
  clearable: _ctx.clearable
16631
- }, commonProps.value, { "onUpdate:modelValue": handleChange }), createSlots({
16646
+ }, customFieldProps.value, { "onUpdate:modelValue": handleChange }), createSlots({
16632
16647
  default: withCtx(() => [
16633
16648
  (openBlock(true), createElementBlock(
16634
16649
  Fragment,
16635
16650
  null,
16636
16651
  renderList(unref(customOptions), (item) => {
16637
- return openBlock(), createBlock(
16638
- resolveDynamicComponent(unref(getFieldComponent)(_ctx.valueType).children),
16639
- mergeProps({
16640
- key: item.value
16641
- }, getChildrenProps(item)),
16652
+ return openBlock(), createElementBlock(
16653
+ Fragment,
16642
16654
  {
16643
- default: withCtx(() => [
16644
- unref(isFunction)(item.fieldSlot) ? (openBlock(), createBlock(resolveDynamicComponent(item.fieldSlot), mergeProps({
16645
- key: 0,
16646
- "model-value": state.value,
16647
- column: params.value
16648
- }, item), null, 16, ["model-value", "column"])) : unref(isFunction)(_ctx.fieldChildrenSlot) ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.fieldChildrenSlot), mergeProps({
16649
- key: 1,
16650
- "model-value": state.value,
16651
- column: params.value
16652
- }, item), null, 16, ["model-value", "column"])) : (openBlock(), createElementBlock(
16653
- Fragment,
16654
- { key: 2 },
16655
- [
16656
- createTextVNode(
16657
- toDisplayString(item.label),
16658
- 1
16659
- /* TEXT */
16660
- )
16661
- ],
16662
- 64
16663
- /* STABLE_FRAGMENT */
16664
- ))
16665
- ]),
16666
- _: 2
16667
- /* DYNAMIC */
16655
+ key: item.value
16668
16656
  },
16669
- 1040
16670
- /* FULL_PROPS, DYNAMIC_SLOTS */
16657
+ [
16658
+ item.options ? (openBlock(), createBlock(unref(ElOptionGroup$1), {
16659
+ key: 0,
16660
+ label: item.label,
16661
+ disabled: item.disabled
16662
+ }, {
16663
+ default: withCtx(() => [
16664
+ (openBlock(true), createElementBlock(
16665
+ Fragment,
16666
+ null,
16667
+ renderList(item.options, (option) => {
16668
+ return openBlock(), createBlock(unref(ElOption$1), mergeProps(
16669
+ {
16670
+ key: option.value,
16671
+ label: option.label,
16672
+ value: option.value
16673
+ },
16674
+ unref(isFunction)(option.fieldItemProps) ? option.fieldItemProps(option) : option.fieldItemProps
16675
+ ), {
16676
+ default: withCtx(() => [
16677
+ unref(isFunction)(option.fieldSlot) ? (openBlock(), createBlock(
16678
+ resolveDynamicComponent(option.fieldSlot),
16679
+ normalizeProps(mergeProps({ key: 0 }, option)),
16680
+ null,
16681
+ 16
16682
+ /* FULL_PROPS */
16683
+ )) : unref(isFunction)(_ctx.fieldChildrenSlot) ? (openBlock(), createBlock(
16684
+ resolveDynamicComponent(_ctx.fieldChildrenSlot),
16685
+ normalizeProps(mergeProps({ key: 1 }, option)),
16686
+ null,
16687
+ 16
16688
+ /* FULL_PROPS */
16689
+ )) : (openBlock(), createElementBlock(
16690
+ Fragment,
16691
+ { key: 2 },
16692
+ [
16693
+ createTextVNode(
16694
+ toDisplayString(option.label),
16695
+ 1
16696
+ /* TEXT */
16697
+ )
16698
+ ],
16699
+ 64
16700
+ /* STABLE_FRAGMENT */
16701
+ ))
16702
+ ]),
16703
+ _: 2
16704
+ /* DYNAMIC */
16705
+ }, 1040, ["label", "value"]);
16706
+ }),
16707
+ 128
16708
+ /* KEYED_FRAGMENT */
16709
+ ))
16710
+ ]),
16711
+ _: 2
16712
+ /* DYNAMIC */
16713
+ }, 1032, ["label", "disabled"])) : (openBlock(), createBlock(unref(ElOption$1), mergeProps(
16714
+ {
16715
+ key: 1,
16716
+ label: item.label,
16717
+ value: item.value
16718
+ },
16719
+ unref(isFunction)(item.fieldItemProps) ? item.fieldItemProps(item) : item.fieldItemProps
16720
+ ), {
16721
+ default: withCtx(() => [
16722
+ unref(isFunction)(item.fieldSlot) ? (openBlock(), createBlock(
16723
+ resolveDynamicComponent(item.fieldSlot),
16724
+ normalizeProps(mergeProps({ key: 0 }, item)),
16725
+ null,
16726
+ 16
16727
+ /* FULL_PROPS */
16728
+ )) : unref(isFunction)(_ctx.fieldChildrenSlot) ? (openBlock(), createBlock(
16729
+ resolveDynamicComponent(_ctx.fieldChildrenSlot),
16730
+ normalizeProps(mergeProps({ key: 1 }, item)),
16731
+ null,
16732
+ 16
16733
+ /* FULL_PROPS */
16734
+ )) : (openBlock(), createElementBlock(
16735
+ Fragment,
16736
+ { key: 2 },
16737
+ [
16738
+ createTextVNode(
16739
+ toDisplayString(item.label),
16740
+ 1
16741
+ /* TEXT */
16742
+ )
16743
+ ],
16744
+ 64
16745
+ /* STABLE_FRAGMENT */
16746
+ ))
16747
+ ]),
16748
+ _: 2
16749
+ /* DYNAMIC */
16750
+ }, 1040, ["label", "value"]))
16751
+ ],
16752
+ 64
16753
+ /* STABLE_FRAGMENT */
16671
16754
  );
16672
16755
  }),
16673
16756
  128
@@ -16681,27 +16764,76 @@ var _sfc_main$H = /* @__PURE__ */ defineComponent({
16681
16764
  return {
16682
16765
  name: key,
16683
16766
  fn: withCtx((data) => [
16684
- (openBlock(), createBlock(resolveDynamicComponent(fieldSlot), mergeProps({
16685
- value: state.value,
16686
- column: params.value
16687
- }, data), null, 16, ["value", "column"]))
16767
+ (openBlock(), createBlock(
16768
+ resolveDynamicComponent(fieldSlot),
16769
+ normalizeProps(guardReactiveProps(data)),
16770
+ null,
16771
+ 16
16772
+ /* FULL_PROPS */
16773
+ ))
16688
16774
  ])
16689
16775
  };
16690
16776
  })
16691
- ]), 1040, ["modelValue", "clearable"])) : (openBlock(), createElementBlock(
16777
+ ]), 1040, ["modelValue", "placeholder", "clearable"])) : unref(hasFieldComponent)(_ctx.valueType) ? (openBlock(), createElementBlock(
16692
16778
  Fragment,
16693
- { key: 1 },
16779
+ { key: 3 },
16694
16780
  [
16695
- createCommentVNode(" no-children "),
16696
- (openBlock(), createBlock(resolveDynamicComponent(unref(getFieldComponent)(_ctx.valueType).component), mergeProps({
16781
+ createCommentVNode(" \u7EDF\u4E00\u5904\u7406 "),
16782
+ createCommentVNode(" has-children "),
16783
+ unref(getFieldComponent)(_ctx.valueType).children ? (openBlock(), createBlock(resolveDynamicComponent(unref(getFieldComponent)(_ctx.valueType).component), mergeProps({
16784
+ key: 0,
16697
16785
  ref_key: "fieldInstance",
16698
16786
  ref: fieldInstance,
16699
16787
  modelValue: state.value,
16700
16788
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => state.value = $event),
16701
16789
  class: "plus-form-item-field",
16702
- clearable: _ctx.clearable,
16703
- "field-children-slot": _ctx.fieldChildrenSlot
16790
+ clearable: _ctx.clearable
16704
16791
  }, commonProps.value, { "onUpdate:modelValue": handleChange }), createSlots({
16792
+ default: withCtx(() => [
16793
+ (openBlock(true), createElementBlock(
16794
+ Fragment,
16795
+ null,
16796
+ renderList(unref(customOptions), (item) => {
16797
+ return openBlock(), createBlock(
16798
+ resolveDynamicComponent(unref(getFieldComponent)(_ctx.valueType).children),
16799
+ mergeProps({
16800
+ key: item.value
16801
+ }, getChildrenProps(item)),
16802
+ {
16803
+ default: withCtx(() => [
16804
+ unref(isFunction)(item.fieldSlot) ? (openBlock(), createBlock(resolveDynamicComponent(item.fieldSlot), mergeProps({
16805
+ key: 0,
16806
+ "model-value": state.value,
16807
+ column: params.value
16808
+ }, item), null, 16, ["model-value", "column"])) : unref(isFunction)(_ctx.fieldChildrenSlot) ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.fieldChildrenSlot), mergeProps({
16809
+ key: 1,
16810
+ "model-value": state.value,
16811
+ column: params.value
16812
+ }, item), null, 16, ["model-value", "column"])) : (openBlock(), createElementBlock(
16813
+ Fragment,
16814
+ { key: 2 },
16815
+ [
16816
+ createTextVNode(
16817
+ toDisplayString(item.label),
16818
+ 1
16819
+ /* TEXT */
16820
+ )
16821
+ ],
16822
+ 64
16823
+ /* STABLE_FRAGMENT */
16824
+ ))
16825
+ ]),
16826
+ _: 2
16827
+ /* DYNAMIC */
16828
+ },
16829
+ 1040
16830
+ /* FULL_PROPS, DYNAMIC_SLOTS */
16831
+ );
16832
+ }),
16833
+ 128
16834
+ /* KEYED_FRAGMENT */
16835
+ ))
16836
+ ]),
16705
16837
  _: 2
16706
16838
  /* DYNAMIC */
16707
16839
  }, [
@@ -16710,88 +16842,129 @@ var _sfc_main$H = /* @__PURE__ */ defineComponent({
16710
16842
  name: key,
16711
16843
  fn: withCtx((data) => [
16712
16844
  (openBlock(), createBlock(resolveDynamicComponent(fieldSlot), mergeProps({
16713
- "model-value": state.value,
16845
+ value: state.value,
16714
16846
  column: params.value
16715
- }, data), null, 16, ["model-value", "column"]))
16847
+ }, data), null, 16, ["value", "column"]))
16716
16848
  ])
16717
16849
  };
16718
16850
  })
16719
- ]), 1040, ["modelValue", "clearable", "field-children-slot"]))
16851
+ ]), 1040, ["modelValue", "clearable"])) : (openBlock(), createElementBlock(
16852
+ Fragment,
16853
+ { key: 1 },
16854
+ [
16855
+ createCommentVNode(" no-children "),
16856
+ (openBlock(), createBlock(resolveDynamicComponent(unref(getFieldComponent)(_ctx.valueType).component), mergeProps({
16857
+ ref_key: "fieldInstance",
16858
+ ref: fieldInstance,
16859
+ modelValue: state.value,
16860
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => state.value = $event),
16861
+ class: "plus-form-item-field",
16862
+ clearable: _ctx.clearable,
16863
+ "field-children-slot": _ctx.fieldChildrenSlot
16864
+ }, commonProps.value, { "onUpdate:modelValue": handleChange }), createSlots({
16865
+ _: 2
16866
+ /* DYNAMIC */
16867
+ }, [
16868
+ renderList(_ctx.fieldSlots, (fieldSlot, key) => {
16869
+ return {
16870
+ name: key,
16871
+ fn: withCtx((data) => [
16872
+ (openBlock(), createBlock(resolveDynamicComponent(fieldSlot), mergeProps({
16873
+ "model-value": state.value,
16874
+ column: params.value
16875
+ }, data), null, 16, ["model-value", "column"]))
16876
+ ])
16877
+ };
16878
+ })
16879
+ ]), 1040, ["modelValue", "clearable", "field-children-slot"]))
16880
+ ],
16881
+ 2112
16882
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
16883
+ ))
16720
16884
  ],
16721
- 2112
16722
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
16723
- ))
16885
+ 64
16886
+ /* STABLE_FRAGMENT */
16887
+ )) : _ctx.valueType === "text" ? (openBlock(), createBlock(
16888
+ unref(ElText),
16889
+ mergeProps({
16890
+ key: 4,
16891
+ ref_key: "fieldInstance",
16892
+ ref: fieldInstance,
16893
+ class: "plus-form-item-field"
16894
+ }, customFieldProps.value),
16895
+ {
16896
+ default: withCtx(() => [
16897
+ createTextVNode(
16898
+ toDisplayString(state.value),
16899
+ 1
16900
+ /* TEXT */
16901
+ )
16902
+ ]),
16903
+ _: 1
16904
+ /* STABLE */
16905
+ },
16906
+ 16
16907
+ /* FULL_PROPS */
16908
+ )) : _ctx.valueType === "divider" ? (openBlock(), createBlock(
16909
+ unref(ElDivider),
16910
+ mergeProps({
16911
+ key: 5,
16912
+ ref_key: "fieldInstance",
16913
+ ref: fieldInstance,
16914
+ class: "plus-form-item-field"
16915
+ }, customFieldProps.value),
16916
+ {
16917
+ default: withCtx(() => [
16918
+ createTextVNode(
16919
+ toDisplayString(state.value),
16920
+ 1
16921
+ /* TEXT */
16922
+ )
16923
+ ]),
16924
+ _: 1
16925
+ /* STABLE */
16926
+ },
16927
+ 16
16928
+ /* FULL_PROPS */
16929
+ )) : (openBlock(), createBlock(unref(ElInput$1), mergeProps({
16930
+ key: 6,
16931
+ ref_key: "fieldInstance",
16932
+ ref: fieldInstance,
16933
+ modelValue: state.value,
16934
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => state.value = $event),
16935
+ class: "plus-form-item-field",
16936
+ placeholder: unref(t)("plus.field.pleaseEnter") + labelValue.value,
16937
+ autocomplete: "off",
16938
+ clearable: _ctx.clearable
16939
+ }, customFieldProps.value, { "onUpdate:modelValue": handleChange }), createSlots({
16940
+ _: 2
16941
+ /* DYNAMIC */
16942
+ }, [
16943
+ renderList(_ctx.fieldSlots, (fieldSlot, key) => {
16944
+ return {
16945
+ name: key,
16946
+ fn: withCtx((data) => [
16947
+ (openBlock(), createBlock(resolveDynamicComponent(fieldSlot), mergeProps({
16948
+ "model-value": state.value,
16949
+ column: params.value
16950
+ }, data), null, 16, ["model-value", "column"]))
16951
+ ])
16952
+ };
16953
+ })
16954
+ ]), 1040, ["modelValue", "placeholder", "clearable"])),
16955
+ createVNode(unref(ElTooltip$1), {
16956
+ visible: placeholderTooltipVisible.value,
16957
+ "onUpdate:visible": _cache[5] || (_cache[5] = ($event) => placeholderTooltipVisible.value = $event),
16958
+ content: placeholderTooltipContent.value,
16959
+ placement: "top",
16960
+ "virtual-triggering": "",
16961
+ "virtual-ref": placeholderVirtualRef.value,
16962
+ disabled: !placeholderTooltipContent.value
16963
+ }, null, 8, ["visible", "content", "virtual-ref", "disabled"])
16724
16964
  ],
16725
- 64
16726
- /* STABLE_FRAGMENT */
16727
- )) : _ctx.valueType === "text" ? (openBlock(), createBlock(
16728
- unref(ElText),
16729
- mergeProps({
16730
- key: 4,
16731
- ref_key: "fieldInstance",
16732
- ref: fieldInstance,
16733
- class: "plus-form-item-field"
16734
- }, customFieldProps.value),
16735
- {
16736
- default: withCtx(() => [
16737
- createTextVNode(
16738
- toDisplayString(state.value),
16739
- 1
16740
- /* TEXT */
16741
- )
16742
- ]),
16743
- _: 1
16744
- /* STABLE */
16745
- },
16746
- 16
16747
- /* FULL_PROPS */
16748
- )) : _ctx.valueType === "divider" ? (openBlock(), createBlock(
16749
- unref(ElDivider),
16750
- mergeProps({
16751
- key: 5,
16752
- ref_key: "fieldInstance",
16753
- ref: fieldInstance,
16754
- class: "plus-form-item-field"
16755
- }, customFieldProps.value),
16756
- {
16757
- default: withCtx(() => [
16758
- createTextVNode(
16759
- toDisplayString(state.value),
16760
- 1
16761
- /* TEXT */
16762
- )
16763
- ]),
16764
- _: 1
16765
- /* STABLE */
16766
- },
16767
- 16
16768
- /* FULL_PROPS */
16769
- )) : (openBlock(), createBlock(unref(ElInput$1), mergeProps({
16770
- key: 6,
16771
- ref_key: "fieldInstance",
16772
- ref: fieldInstance,
16773
- modelValue: state.value,
16774
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => state.value = $event),
16775
- class: "plus-form-item-field",
16776
- placeholder: unref(t)("plus.field.pleaseEnter") + labelValue.value,
16777
- autocomplete: "off",
16778
- clearable: _ctx.clearable
16779
- }, customFieldProps.value, { "onUpdate:modelValue": handleChange }), createSlots({
16780
- _: 2
16781
- /* DYNAMIC */
16782
- }, [
16783
- renderList(_ctx.fieldSlots, (fieldSlot, key) => {
16784
- return {
16785
- name: key,
16786
- fn: withCtx((data) => [
16787
- (openBlock(), createBlock(resolveDynamicComponent(fieldSlot), mergeProps({
16788
- "model-value": state.value,
16789
- column: params.value
16790
- }, data), null, 16, ["model-value", "column"]))
16791
- ])
16792
- };
16793
- })
16794
- ]), 1040, ["modelValue", "placeholder", "clearable"]))
16965
+ 32
16966
+ /* NEED_HYDRATION */
16967
+ )
16795
16968
  ]),
16796
16969
  _: 2
16797
16970
  /* DYNAMIC */
@@ -16813,31 +16986,57 @@ var _sfc_main$H = /* @__PURE__ */ defineComponent({
16813
16986
  name: "label",
16814
16987
  fn: withCtx(({ label: currentLabel }) => [
16815
16988
  createElementVNode("span", _hoisted_2$i, [
16816
- _ctx.renderLabel && unref(isFunction)(_ctx.renderLabel) ? (openBlock(), createElementBlock(
16817
- Fragment,
16818
- { key: 0 },
16819
- [
16820
- valueIsReady.value ? (openBlock(), createBlock(unref(PlusRender), {
16821
- key: 0,
16822
- render: _ctx.renderLabel,
16823
- params: params.value,
16824
- "callback-value": currentLabel,
16825
- "custom-field-props": customFieldProps.value
16826
- }, null, 8, ["render", "params", "callback-value", "custom-field-props"])) : createCommentVNode("v-if", true)
16827
- ],
16828
- 64
16829
- /* STABLE_FRAGMENT */
16830
- )) : renderSlot(_ctx.$slots, unref(getLabelSlotName)(_ctx.prop), normalizeProps(mergeProps({ key: 1 }, params.value)), () => [
16831
- createTextVNode(
16832
- toDisplayString(currentLabel),
16833
- 1
16834
- /* TEXT */
16835
- )
16836
- ]),
16989
+ createVNode(unref(ElTooltip$1), {
16990
+ visible: labelTooltipVisible.value,
16991
+ "onUpdate:visible": _cache[0] || (_cache[0] = ($event) => labelTooltipVisible.value = $event),
16992
+ content: labelTooltipContent.value,
16993
+ placement: "top",
16994
+ disabled: !_ctx.ellipsis || !labelOverflow.value || !labelTooltipContent.value
16995
+ }, {
16996
+ default: withCtx(() => [
16997
+ createElementVNode(
16998
+ "span",
16999
+ {
17000
+ ref_key: "labelTextRef",
17001
+ ref: labelTextRef,
17002
+ class: "plus-form-item__label-text",
17003
+ onMouseenter: showLabelTooltip,
17004
+ onMouseleave: hideLabelTooltip
17005
+ },
17006
+ [
17007
+ _ctx.renderLabel && unref(isFunction)(_ctx.renderLabel) ? (openBlock(), createElementBlock(
17008
+ Fragment,
17009
+ { key: 0 },
17010
+ [
17011
+ valueIsReady.value ? (openBlock(), createBlock(unref(PlusRender), {
17012
+ key: 0,
17013
+ render: _ctx.renderLabel,
17014
+ params: params.value,
17015
+ "callback-value": currentLabel,
17016
+ "custom-field-props": customFieldProps.value
17017
+ }, null, 8, ["render", "params", "callback-value", "custom-field-props"])) : createCommentVNode("v-if", true)
17018
+ ],
17019
+ 64
17020
+ /* STABLE_FRAGMENT */
17021
+ )) : renderSlot(_ctx.$slots, unref(getLabelSlotName)(_ctx.prop), normalizeProps(mergeProps({ key: 1 }, params.value)), () => [
17022
+ createTextVNode(
17023
+ toDisplayString(currentLabel),
17024
+ 1
17025
+ /* TEXT */
17026
+ )
17027
+ ])
17028
+ ],
17029
+ 544
17030
+ /* NEED_HYDRATION, NEED_PATCH */
17031
+ )
17032
+ ]),
17033
+ _: 2
17034
+ /* DYNAMIC */
17035
+ }, 1032, ["visible", "content", "disabled"]),
16837
17036
  _ctx.tooltip ? (openBlock(), createBlock(
16838
17037
  unref(ElTooltip$1),
16839
17038
  mergeProps({
16840
- key: 2,
17039
+ key: 0,
16841
17040
  placement: "top"
16842
17041
  }, unref(getTooltip)(_ctx.tooltip)),
16843
17042
  {
@@ -16949,7 +17148,8 @@ var _sfc_main$F = /* @__PURE__ */ defineComponent({
16949
17148
  colProps: { default: () => ({}) },
16950
17149
  collapseDuration: { default: void 0 },
16951
17150
  collapseTransition: { type: Boolean, default: void 0 },
16952
- clearable: { type: Boolean, default: true }
17151
+ clearable: { type: Boolean, default: true },
17152
+ ellipsis: { type: Boolean, default: false }
16953
17153
  },
16954
17154
  emits: ["update:modelValue", "change"],
16955
17155
  setup(__props, { emit: __emit }) {
@@ -16976,6 +17176,13 @@ var _sfc_main$F = /* @__PURE__ */ defineComponent({
16976
17176
  }
16977
17177
  return props.hasLabel;
16978
17178
  };
17179
+ const getEllipsis = (ellipsis) => {
17180
+ const value = unref(ellipsis);
17181
+ if (isBoolean(value)) {
17182
+ return value;
17183
+ }
17184
+ return props.ellipsis;
17185
+ };
16979
17186
  watch(
16980
17187
  () => props.modelValue,
16981
17188
  (val) => {
@@ -17030,6 +17237,7 @@ var _sfc_main$F = /* @__PURE__ */ defineComponent({
17030
17237
  }, item, {
17031
17238
  clearable: _ctx.clearable,
17032
17239
  "has-label": getHasLabel(item.hasLabel),
17240
+ ellipsis: getEllipsis(item.ellipsis),
17033
17241
  onChange: (value) => handleChange(value, item)
17034
17242
  }), createSlots({
17035
17243
  _: 2
@@ -17056,7 +17264,7 @@ var _sfc_main$F = /* @__PURE__ */ defineComponent({
17056
17264
  ]),
17057
17265
  key: "2"
17058
17266
  } : void 0
17059
- ]), 1040, ["model-value", "clearable", "has-label", "onChange"]),
17267
+ ]), 1040, ["model-value", "clearable", "has-label", "ellipsis", "onChange"]),
17060
17268
  createCommentVNode(" el-form-item \u4E0B\u4E00\u884C\u989D\u5916\u7684\u5185\u5BB9 "),
17061
17269
  item.renderExtra || _ctx.$slots[unref(getExtraSlotName)(item.prop)] ? (openBlock(), createElementBlock("div", _hoisted_2$h, [
17062
17270
  item.renderExtra && unref(isFunction)(item.renderExtra) ? (openBlock(), createBlock(
@@ -17112,6 +17320,7 @@ var _sfc_main$E = /* @__PURE__ */ defineComponent({
17112
17320
  hasFooter: { type: Boolean, default: true },
17113
17321
  hasReset: { type: Boolean, default: true },
17114
17322
  hasLabel: { type: Boolean, default: true },
17323
+ ellipsis: { type: Boolean, default: false },
17115
17324
  submitText: { default: "" },
17116
17325
  resetText: { default: "" },
17117
17326
  submitLoading: { type: Boolean, default: false },
@@ -17289,6 +17498,7 @@ var _sfc_main$E = /* @__PURE__ */ defineComponent({
17289
17498
  layout: _ctx.layout,
17290
17499
  columns: filterHide(groupItem.columns),
17291
17500
  "has-label": _ctx.hasLabel,
17501
+ ellipsis: _ctx.ellipsis,
17292
17502
  "collapse-transition": _ctx.collapseTransition,
17293
17503
  "collapse-duration": _ctx.collapseDuration,
17294
17504
  clearable: _ctx.clearable,
@@ -17305,7 +17515,7 @@ var _sfc_main$E = /* @__PURE__ */ defineComponent({
17305
17515
  ])
17306
17516
  };
17307
17517
  })
17308
- ]), 1032, ["modelValue", "row-props", "col-props", "layout", "columns", "has-label", "collapse-transition", "collapse-duration", "clearable"]))
17518
+ ]), 1032, ["modelValue", "row-props", "col-props", "layout", "columns", "has-label", "ellipsis", "collapse-transition", "collapse-duration", "clearable"]))
17309
17519
  ]),
17310
17520
  _: 2
17311
17521
  /* DYNAMIC */
@@ -17329,6 +17539,7 @@ var _sfc_main$E = /* @__PURE__ */ defineComponent({
17329
17539
  layout: _ctx.layout,
17330
17540
  columns: subColumns.value,
17331
17541
  "has-label": _ctx.hasLabel,
17542
+ ellipsis: _ctx.ellipsis,
17332
17543
  "collapse-transition": _ctx.collapseTransition,
17333
17544
  "collapse-duration": _ctx.collapseDuration,
17334
17545
  clearable: _ctx.clearable,
@@ -17345,7 +17556,7 @@ var _sfc_main$E = /* @__PURE__ */ defineComponent({
17345
17556
  ])
17346
17557
  };
17347
17558
  })
17348
- ]), 1032, ["modelValue", "row-props", "col-props", "layout", "columns", "has-label", "collapse-transition", "collapse-duration", "clearable"])
17559
+ ]), 1032, ["modelValue", "row-props", "col-props", "layout", "columns", "has-label", "ellipsis", "collapse-transition", "collapse-duration", "clearable"])
17349
17560
  ],
17350
17561
  64
17351
17562
  /* STABLE_FRAGMENT */
@@ -29309,6 +29520,7 @@ var _sfc_main$u = /* @__PURE__ */ defineComponent({
29309
29520
  inline: { type: Boolean, default: true },
29310
29521
  showNumber: { default: 2 },
29311
29522
  labelPosition: { default: void 0 },
29523
+ ellipsis: { type: Boolean, default: false },
29312
29524
  rowProps: { default: () => ({
29313
29525
  gutter: 20
29314
29526
  }) },
@@ -29413,6 +29625,7 @@ var _sfc_main$u = /* @__PURE__ */ defineComponent({
29413
29625
  "col-props": _ctx.colProps,
29414
29626
  columns: subColumns.value,
29415
29627
  layout: _ctx.layout,
29628
+ ellipsis: _ctx.ellipsis,
29416
29629
  class: "plus-search",
29417
29630
  "has-footer": false,
29418
29631
  onChange: handleChange
@@ -29504,7 +29717,7 @@ var _sfc_main$u = /* @__PURE__ */ defineComponent({
29504
29717
  ])
29505
29718
  };
29506
29719
  })
29507
- ]), 1040, ["modelValue", "inline", "rules", "label-position", "row-props", "col-props", "columns", "layout"]);
29720
+ ]), 1040, ["modelValue", "inline", "rules", "label-position", "row-props", "col-props", "columns", "layout", "ellipsis"]);
29508
29721
  };
29509
29722
  }
29510
29723
  });
@@ -64736,7 +64949,7 @@ function createDictStore(config) {
64736
64949
  });
64737
64950
  }
64738
64951
 
64739
- const version = "0.0.83";
64952
+ const version = "0.0.85";
64740
64953
 
64741
64954
  const install = installer.install;
64742
64955