yc-pro-components 0.0.83 → 0.0.84

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 (125) hide show
  1. package/es/components/check-card/index.d.ts +38 -38
  2. package/es/components/check-card/src/index.vue.d.ts +2 -2
  3. package/es/components/check-card-group/index.d.ts +19 -19
  4. package/es/components/check-card-group/src/index.vue.d.ts +1 -1
  5. package/es/components/date-picker/index.d.ts +10 -10
  6. package/es/components/date-picker/src/index.vue.d.ts +10 -10
  7. package/es/components/dialog-form/index.d.ts +7 -7
  8. package/es/components/dialog-form/src/index.vue.d.ts +7 -7
  9. package/es/components/display-item/index.d.ts +41 -41
  10. package/es/components/display-item/src/index.vue.d.ts +22 -22
  11. package/es/components/drawer-form/index.d.ts +32 -32
  12. package/es/components/drawer-form/src/index.vue.d.ts +10 -10
  13. package/es/components/form/index.d.ts +14 -14
  14. package/es/components/form/src/form-content.vue.d.ts +20 -20
  15. package/es/components/form/src/index.vue.d.ts +14 -14
  16. package/es/components/form-item/index.d.ts +38 -38
  17. package/es/components/form-item/src/index.vue.d.ts +24 -16
  18. package/es/components/form-item/src/index.vue2.mjs +429 -301
  19. package/es/components/form-item/src/overflow-tooltip.d.ts +16 -0
  20. package/es/components/form-item/src/overflow-tooltip.mjs +67 -0
  21. package/es/components/header/index.d.ts +19 -19
  22. package/es/components/header/src/index.vue.d.ts +1 -1
  23. package/es/components/input-tag/index.d.ts +9 -9
  24. package/es/components/input-tag/src/index.vue.d.ts +1 -1
  25. package/es/components/page/index.d.ts +112 -112
  26. package/es/components/page/src/index.vue.d.ts +42 -42
  27. package/es/components/radio/index.d.ts +23 -23
  28. package/es/components/radio/src/index.vue.d.ts +23 -23
  29. package/es/components/render/index.d.ts +6 -6
  30. package/es/components/render/src/index.vue.d.ts +2 -2
  31. package/es/components/search/index.d.ts +49 -49
  32. package/es/components/search/src/index.vue.d.ts +21 -21
  33. package/es/components/table/src/table-column.vue.d.ts +37 -37
  34. package/es/components/yc-count-to/index.d.ts +1 -1
  35. package/es/components/yc-count-to/src/normal/index.d.ts +1 -1
  36. package/es/components/yc-dialog/index.d.ts +24 -24
  37. package/es/components/yc-more-actions/index.d.ts +46 -46
  38. package/es/components/yc-more-actions/src/index.vue.d.ts +3 -3
  39. package/es/components/yc-plus-page/src/index.vue.d.ts +77 -77
  40. package/es/components/yc-select-v2/src/index.vue.d.ts +2 -2
  41. package/es/components/yc-status-dialog/src/index.vue.d.ts +1 -1
  42. package/es/components/yc-svg-icon/src/index.vue.d.ts +1 -1
  43. package/es/components/yc-text/src/index.vue.d.ts +2 -2
  44. package/es/hooks/usePlusFormReset.d.ts +102 -102
  45. package/es/index.css +9 -9
  46. package/es/version.d.ts +1 -1
  47. package/es/version.mjs +1 -1
  48. package/es/yc-components/version.d.ts +1 -1
  49. package/index.css +1 -1
  50. package/index.js +495 -302
  51. package/index.min.js +12 -12
  52. package/index.min.mjs +12 -12
  53. package/index.mjs +495 -302
  54. package/lib/components/check-card/index.d.ts +38 -38
  55. package/lib/components/check-card/src/index.vue.d.ts +2 -2
  56. package/lib/components/check-card-group/index.d.ts +19 -19
  57. package/lib/components/check-card-group/src/index.vue.d.ts +1 -1
  58. package/lib/components/date-picker/index.d.ts +10 -10
  59. package/lib/components/date-picker/src/index.vue.d.ts +10 -10
  60. package/lib/components/dialog-form/index.d.ts +7 -7
  61. package/lib/components/dialog-form/src/index.vue.d.ts +7 -7
  62. package/lib/components/display-item/index.d.ts +41 -41
  63. package/lib/components/display-item/src/index.vue.d.ts +22 -22
  64. package/lib/components/drawer-form/index.d.ts +32 -32
  65. package/lib/components/drawer-form/src/index.vue.d.ts +10 -10
  66. package/lib/components/form/index.d.ts +14 -14
  67. package/lib/components/form/src/form-content.vue.d.ts +20 -20
  68. package/lib/components/form/src/index.vue.d.ts +14 -14
  69. package/lib/components/form-item/index.d.ts +38 -38
  70. package/lib/components/form-item/src/index.vue.d.ts +24 -16
  71. package/lib/components/form-item/src/index.vue2.js +428 -300
  72. package/lib/components/form-item/src/overflow-tooltip.d.ts +16 -0
  73. package/lib/components/form-item/src/overflow-tooltip.js +71 -0
  74. package/lib/components/header/index.d.ts +19 -19
  75. package/lib/components/header/src/index.vue.d.ts +1 -1
  76. package/lib/components/input-tag/index.d.ts +9 -9
  77. package/lib/components/input-tag/src/index.vue.d.ts +1 -1
  78. package/lib/components/page/index.d.ts +112 -112
  79. package/lib/components/page/src/index.vue.d.ts +42 -42
  80. package/lib/components/radio/index.d.ts +23 -23
  81. package/lib/components/radio/src/index.vue.d.ts +23 -23
  82. package/lib/components/render/index.d.ts +6 -6
  83. package/lib/components/render/src/index.vue.d.ts +2 -2
  84. package/lib/components/search/index.d.ts +49 -49
  85. package/lib/components/search/src/index.vue.d.ts +21 -21
  86. package/lib/components/table/src/table-column.vue.d.ts +37 -37
  87. package/lib/components/yc-count-to/index.d.ts +1 -1
  88. package/lib/components/yc-count-to/src/normal/index.d.ts +1 -1
  89. package/lib/components/yc-dialog/index.d.ts +24 -24
  90. package/lib/components/yc-more-actions/index.d.ts +46 -46
  91. package/lib/components/yc-more-actions/src/index.vue.d.ts +3 -3
  92. package/lib/components/yc-plus-page/src/index.vue.d.ts +77 -77
  93. package/lib/components/yc-select-v2/src/index.vue.d.ts +2 -2
  94. package/lib/components/yc-status-dialog/src/index.vue.d.ts +1 -1
  95. package/lib/components/yc-svg-icon/src/index.vue.d.ts +1 -1
  96. package/lib/components/yc-text/src/index.vue.d.ts +2 -2
  97. package/lib/hooks/usePlusFormReset.d.ts +102 -102
  98. package/lib/index.css +10 -10
  99. package/lib/version.d.ts +1 -1
  100. package/lib/version.js +1 -1
  101. package/lib/yc-components/version.d.ts +1 -1
  102. package/locale/en.js +1 -1
  103. package/locale/en.min.js +1 -1
  104. package/locale/en.min.mjs +1 -1
  105. package/locale/en.mjs +1 -1
  106. package/locale/ja.js +1 -1
  107. package/locale/ja.min.js +1 -1
  108. package/locale/ja.min.mjs +1 -1
  109. package/locale/ja.mjs +1 -1
  110. package/locale/ko.js +1 -1
  111. package/locale/ko.min.js +1 -1
  112. package/locale/ko.min.mjs +1 -1
  113. package/locale/ko.mjs +1 -1
  114. package/locale/zh-cn.js +1 -1
  115. package/locale/zh-cn.min.js +1 -1
  116. package/locale/zh-cn.min.mjs +1 -1
  117. package/locale/zh-cn.mjs +1 -1
  118. package/locale/zh-tw.js +1 -1
  119. package/locale/zh-tw.min.js +1 -1
  120. package/locale/zh-tw.min.mjs +1 -1
  121. package/locale/zh-tw.mjs +1 -1
  122. package/package.json +1 -1
  123. package/theme-chalk/index.css +1 -1
  124. package/theme-chalk/plus-form-item.css +1 -1
  125. package/theme-chalk/src/form-item.scss +56 -0
package/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! yc-pro-components v0.0.83 */
1
+ /*! yc-pro-components v0.0.84 */
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"
@@ -16294,6 +16361,85 @@ var _sfc_main$H = /* @__PURE__ */ defineComponent({
16294
16361
  const customFieldPropsIsReady = ref(false);
16295
16362
  const valueIsReady = ref(false);
16296
16363
  const labelValue = computed(() => getLabel$1(props.label));
16364
+ const labelTextRef = ref();
16365
+ const labelOverflow = ref(false);
16366
+ const labelTooltipContent = ref("");
16367
+ const labelTooltipVisible = ref(false);
16368
+ const placeholderTooltipVisible = ref(false);
16369
+ const placeholderTooltipContent = ref("");
16370
+ const placeholderVirtualRef = ref();
16371
+ let labelTooltipTimer = null;
16372
+ let placeholderTooltipTimer = null;
16373
+ const syncLabelOverflow = () => {
16374
+ const el = labelTextRef.value;
16375
+ if (!el) {
16376
+ labelOverflow.value = false;
16377
+ labelTooltipContent.value = "";
16378
+ return;
16379
+ }
16380
+ labelTooltipContent.value = (el.textContent || "").trim();
16381
+ labelOverflow.value = el.scrollWidth > el.clientWidth + 1;
16382
+ };
16383
+ const showLabelTooltip = () => {
16384
+ syncLabelOverflow();
16385
+ if (labelTooltipTimer) clearTimeout(labelTooltipTimer);
16386
+ if (!labelOverflow.value || !labelTooltipContent.value) {
16387
+ labelTooltipVisible.value = false;
16388
+ return;
16389
+ }
16390
+ if (labelTooltipVisible.value) return;
16391
+ labelTooltipTimer = setTimeout(() => {
16392
+ labelTooltipVisible.value = true;
16393
+ labelTooltipTimer = null;
16394
+ }, TOOLTIP_SHOW_DELAY);
16395
+ };
16396
+ const hideLabelTooltip = () => {
16397
+ if (labelTooltipTimer) clearTimeout(labelTooltipTimer);
16398
+ labelTooltipTimer = null;
16399
+ labelTooltipVisible.value = false;
16400
+ };
16401
+ const hidePlaceholderTooltip = () => {
16402
+ if (placeholderTooltipTimer) clearTimeout(placeholderTooltipTimer);
16403
+ placeholderTooltipTimer = null;
16404
+ placeholderTooltipVisible.value = false;
16405
+ placeholderTooltipContent.value = "";
16406
+ };
16407
+ const handlePlaceholderHover = (event) => {
16408
+ const root = event.currentTarget;
16409
+ if (!(root instanceof HTMLElement)) return;
16410
+ const hit = findPlaceholderOverflow(root, event.target, {
16411
+ x: event.clientX,
16412
+ y: event.clientY
16413
+ });
16414
+ if (!hit) {
16415
+ hidePlaceholderTooltip();
16416
+ return;
16417
+ }
16418
+ const sameTarget = placeholderTooltipContent.value === hit.text && placeholderVirtualRef.value === hit.el;
16419
+ if (sameTarget && (placeholderTooltipVisible.value || placeholderTooltipTimer)) return;
16420
+ if (placeholderTooltipTimer) clearTimeout(placeholderTooltipTimer);
16421
+ placeholderTooltipVisible.value = false;
16422
+ placeholderVirtualRef.value = hit.el;
16423
+ placeholderTooltipContent.value = hit.text;
16424
+ placeholderTooltipTimer = setTimeout(() => {
16425
+ placeholderTooltipVisible.value = true;
16426
+ placeholderTooltipTimer = null;
16427
+ }, TOOLTIP_SHOW_DELAY);
16428
+ };
16429
+ watch(labelTextRef, (el, _, onCleanup) => {
16430
+ syncLabelOverflow();
16431
+ if (!el || typeof ResizeObserver === "undefined") return;
16432
+ const observer = new ResizeObserver(() => syncLabelOverflow());
16433
+ observer.observe(el);
16434
+ onCleanup(() => observer.disconnect());
16435
+ });
16436
+ watch(labelValue, () => {
16437
+ nextTick(syncLabelOverflow);
16438
+ });
16439
+ onBeforeUnmount(() => {
16440
+ if (labelTooltipTimer) clearTimeout(labelTooltipTimer);
16441
+ if (placeholderTooltipTimer) clearTimeout(placeholderTooltipTimer);
16442
+ });
16297
16443
  const formFieldRefs = inject(TableFormFieldRefInjectionKey, {});
16298
16444
  const tableRowInfo = inject(TableFormRowInfoInjectionKey, {});
16299
16445
  const params = computed(() => ({
@@ -16462,212 +16608,143 @@ var _sfc_main$H = /* @__PURE__ */ defineComponent({
16462
16608
  "label-width": _ctx.hasLabel ? (_a = customFormItemProps.value) == null ? void 0 : _a.labelWidth : "0px"
16463
16609
  }), createSlots({
16464
16610
  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 },
16611
+ createElementVNode(
16612
+ "div",
16613
+ {
16614
+ class: "plus-form-item__control",
16615
+ onMouseover: handlePlaceholderHover,
16616
+ onMouseleave: hidePlaceholderTooltip
16617
+ },
16620
16618
  [
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,
16619
+ _ctx.renderField && unref(isFunction)(_ctx.renderField) ? (openBlock(), createElementBlock("div", _hoisted_3$e, [
16620
+ valueIsReady.value ? (openBlock(), createBlock(unref(PlusRender), {
16621
+ key: 0,
16622
+ render: _ctx.renderField,
16623
+ params: params.value,
16624
+ "callback-value": state.value,
16625
+ "custom-field-props": customFieldProps.value,
16626
+ "render-type": "form",
16627
+ "handle-change": handleChange
16628
+ }, null, 8, ["render", "params", "callback-value", "custom-field-props"])) : createCommentVNode("v-if", true)
16629
+ ])) : _ctx.$slots[unref(getFieldSlotName)(_ctx.prop)] ? (openBlock(), createElementBlock("div", _hoisted_4$b, [
16630
+ renderSlot(_ctx.$slots, unref(getFieldSlotName)(_ctx.prop), mergeProps(params.value, { column: props }))
16631
+ ])) : _ctx.valueType === "select" && customFieldProps.value.multiple === true ? (openBlock(), createBlock(unref(ElSelect$1), mergeProps({
16632
+ key: 2,
16625
16633
  ref_key: "fieldInstance",
16626
16634
  ref: fieldInstance,
16627
16635
  modelValue: state.value,
16628
16636
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => state.value = $event),
16637
+ placeholder: unref(t)("plus.field.pleaseSelect") + labelValue.value,
16629
16638
  class: "plus-form-item-field",
16630
16639
  clearable: _ctx.clearable
16631
- }, commonProps.value, { "onUpdate:modelValue": handleChange }), createSlots({
16640
+ }, customFieldProps.value, { "onUpdate:modelValue": handleChange }), createSlots({
16632
16641
  default: withCtx(() => [
16633
16642
  (openBlock(true), createElementBlock(
16634
16643
  Fragment,
16635
16644
  null,
16636
16645
  renderList(unref(customOptions), (item) => {
16637
- return openBlock(), createBlock(
16638
- resolveDynamicComponent(unref(getFieldComponent)(_ctx.valueType).children),
16639
- mergeProps({
16640
- key: item.value
16641
- }, getChildrenProps(item)),
16646
+ return openBlock(), createElementBlock(
16647
+ Fragment,
16642
16648
  {
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 */
16649
+ key: item.value
16668
16650
  },
16669
- 1040
16670
- /* FULL_PROPS, DYNAMIC_SLOTS */
16651
+ [
16652
+ item.options ? (openBlock(), createBlock(unref(ElOptionGroup$1), {
16653
+ key: 0,
16654
+ label: item.label,
16655
+ disabled: item.disabled
16656
+ }, {
16657
+ default: withCtx(() => [
16658
+ (openBlock(true), createElementBlock(
16659
+ Fragment,
16660
+ null,
16661
+ renderList(item.options, (option) => {
16662
+ return openBlock(), createBlock(unref(ElOption$1), mergeProps(
16663
+ {
16664
+ key: option.value,
16665
+ label: option.label,
16666
+ value: option.value
16667
+ },
16668
+ unref(isFunction)(option.fieldItemProps) ? option.fieldItemProps(option) : option.fieldItemProps
16669
+ ), {
16670
+ default: withCtx(() => [
16671
+ unref(isFunction)(option.fieldSlot) ? (openBlock(), createBlock(
16672
+ resolveDynamicComponent(option.fieldSlot),
16673
+ normalizeProps(mergeProps({ key: 0 }, option)),
16674
+ null,
16675
+ 16
16676
+ /* FULL_PROPS */
16677
+ )) : unref(isFunction)(_ctx.fieldChildrenSlot) ? (openBlock(), createBlock(
16678
+ resolveDynamicComponent(_ctx.fieldChildrenSlot),
16679
+ normalizeProps(mergeProps({ key: 1 }, option)),
16680
+ null,
16681
+ 16
16682
+ /* FULL_PROPS */
16683
+ )) : (openBlock(), createElementBlock(
16684
+ Fragment,
16685
+ { key: 2 },
16686
+ [
16687
+ createTextVNode(
16688
+ toDisplayString(option.label),
16689
+ 1
16690
+ /* TEXT */
16691
+ )
16692
+ ],
16693
+ 64
16694
+ /* STABLE_FRAGMENT */
16695
+ ))
16696
+ ]),
16697
+ _: 2
16698
+ /* DYNAMIC */
16699
+ }, 1040, ["label", "value"]);
16700
+ }),
16701
+ 128
16702
+ /* KEYED_FRAGMENT */
16703
+ ))
16704
+ ]),
16705
+ _: 2
16706
+ /* DYNAMIC */
16707
+ }, 1032, ["label", "disabled"])) : (openBlock(), createBlock(unref(ElOption$1), mergeProps(
16708
+ {
16709
+ key: 1,
16710
+ label: item.label,
16711
+ value: item.value
16712
+ },
16713
+ unref(isFunction)(item.fieldItemProps) ? item.fieldItemProps(item) : item.fieldItemProps
16714
+ ), {
16715
+ default: withCtx(() => [
16716
+ unref(isFunction)(item.fieldSlot) ? (openBlock(), createBlock(
16717
+ resolveDynamicComponent(item.fieldSlot),
16718
+ normalizeProps(mergeProps({ key: 0 }, item)),
16719
+ null,
16720
+ 16
16721
+ /* FULL_PROPS */
16722
+ )) : unref(isFunction)(_ctx.fieldChildrenSlot) ? (openBlock(), createBlock(
16723
+ resolveDynamicComponent(_ctx.fieldChildrenSlot),
16724
+ normalizeProps(mergeProps({ key: 1 }, item)),
16725
+ null,
16726
+ 16
16727
+ /* FULL_PROPS */
16728
+ )) : (openBlock(), createElementBlock(
16729
+ Fragment,
16730
+ { key: 2 },
16731
+ [
16732
+ createTextVNode(
16733
+ toDisplayString(item.label),
16734
+ 1
16735
+ /* TEXT */
16736
+ )
16737
+ ],
16738
+ 64
16739
+ /* STABLE_FRAGMENT */
16740
+ ))
16741
+ ]),
16742
+ _: 2
16743
+ /* DYNAMIC */
16744
+ }, 1040, ["label", "value"]))
16745
+ ],
16746
+ 64
16747
+ /* STABLE_FRAGMENT */
16671
16748
  );
16672
16749
  }),
16673
16750
  128
@@ -16681,27 +16758,76 @@ var _sfc_main$H = /* @__PURE__ */ defineComponent({
16681
16758
  return {
16682
16759
  name: key,
16683
16760
  fn: withCtx((data) => [
16684
- (openBlock(), createBlock(resolveDynamicComponent(fieldSlot), mergeProps({
16685
- value: state.value,
16686
- column: params.value
16687
- }, data), null, 16, ["value", "column"]))
16761
+ (openBlock(), createBlock(
16762
+ resolveDynamicComponent(fieldSlot),
16763
+ normalizeProps(guardReactiveProps(data)),
16764
+ null,
16765
+ 16
16766
+ /* FULL_PROPS */
16767
+ ))
16688
16768
  ])
16689
16769
  };
16690
16770
  })
16691
- ]), 1040, ["modelValue", "clearable"])) : (openBlock(), createElementBlock(
16771
+ ]), 1040, ["modelValue", "placeholder", "clearable"])) : unref(hasFieldComponent)(_ctx.valueType) ? (openBlock(), createElementBlock(
16692
16772
  Fragment,
16693
- { key: 1 },
16773
+ { key: 3 },
16694
16774
  [
16695
- createCommentVNode(" no-children "),
16696
- (openBlock(), createBlock(resolveDynamicComponent(unref(getFieldComponent)(_ctx.valueType).component), mergeProps({
16775
+ createCommentVNode(" \u7EDF\u4E00\u5904\u7406 "),
16776
+ createCommentVNode(" has-children "),
16777
+ unref(getFieldComponent)(_ctx.valueType).children ? (openBlock(), createBlock(resolveDynamicComponent(unref(getFieldComponent)(_ctx.valueType).component), mergeProps({
16778
+ key: 0,
16697
16779
  ref_key: "fieldInstance",
16698
16780
  ref: fieldInstance,
16699
16781
  modelValue: state.value,
16700
16782
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => state.value = $event),
16701
16783
  class: "plus-form-item-field",
16702
- clearable: _ctx.clearable,
16703
- "field-children-slot": _ctx.fieldChildrenSlot
16784
+ clearable: _ctx.clearable
16704
16785
  }, commonProps.value, { "onUpdate:modelValue": handleChange }), createSlots({
16786
+ default: withCtx(() => [
16787
+ (openBlock(true), createElementBlock(
16788
+ Fragment,
16789
+ null,
16790
+ renderList(unref(customOptions), (item) => {
16791
+ return openBlock(), createBlock(
16792
+ resolveDynamicComponent(unref(getFieldComponent)(_ctx.valueType).children),
16793
+ mergeProps({
16794
+ key: item.value
16795
+ }, getChildrenProps(item)),
16796
+ {
16797
+ default: withCtx(() => [
16798
+ unref(isFunction)(item.fieldSlot) ? (openBlock(), createBlock(resolveDynamicComponent(item.fieldSlot), mergeProps({
16799
+ key: 0,
16800
+ "model-value": state.value,
16801
+ column: params.value
16802
+ }, item), null, 16, ["model-value", "column"])) : unref(isFunction)(_ctx.fieldChildrenSlot) ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.fieldChildrenSlot), mergeProps({
16803
+ key: 1,
16804
+ "model-value": state.value,
16805
+ column: params.value
16806
+ }, item), null, 16, ["model-value", "column"])) : (openBlock(), createElementBlock(
16807
+ Fragment,
16808
+ { key: 2 },
16809
+ [
16810
+ createTextVNode(
16811
+ toDisplayString(item.label),
16812
+ 1
16813
+ /* TEXT */
16814
+ )
16815
+ ],
16816
+ 64
16817
+ /* STABLE_FRAGMENT */
16818
+ ))
16819
+ ]),
16820
+ _: 2
16821
+ /* DYNAMIC */
16822
+ },
16823
+ 1040
16824
+ /* FULL_PROPS, DYNAMIC_SLOTS */
16825
+ );
16826
+ }),
16827
+ 128
16828
+ /* KEYED_FRAGMENT */
16829
+ ))
16830
+ ]),
16705
16831
  _: 2
16706
16832
  /* DYNAMIC */
16707
16833
  }, [
@@ -16710,88 +16836,129 @@ var _sfc_main$H = /* @__PURE__ */ defineComponent({
16710
16836
  name: key,
16711
16837
  fn: withCtx((data) => [
16712
16838
  (openBlock(), createBlock(resolveDynamicComponent(fieldSlot), mergeProps({
16713
- "model-value": state.value,
16839
+ value: state.value,
16714
16840
  column: params.value
16715
- }, data), null, 16, ["model-value", "column"]))
16841
+ }, data), null, 16, ["value", "column"]))
16716
16842
  ])
16717
16843
  };
16718
16844
  })
16719
- ]), 1040, ["modelValue", "clearable", "field-children-slot"]))
16845
+ ]), 1040, ["modelValue", "clearable"])) : (openBlock(), createElementBlock(
16846
+ Fragment,
16847
+ { key: 1 },
16848
+ [
16849
+ createCommentVNode(" no-children "),
16850
+ (openBlock(), createBlock(resolveDynamicComponent(unref(getFieldComponent)(_ctx.valueType).component), mergeProps({
16851
+ ref_key: "fieldInstance",
16852
+ ref: fieldInstance,
16853
+ modelValue: state.value,
16854
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => state.value = $event),
16855
+ class: "plus-form-item-field",
16856
+ clearable: _ctx.clearable,
16857
+ "field-children-slot": _ctx.fieldChildrenSlot
16858
+ }, commonProps.value, { "onUpdate:modelValue": handleChange }), createSlots({
16859
+ _: 2
16860
+ /* DYNAMIC */
16861
+ }, [
16862
+ renderList(_ctx.fieldSlots, (fieldSlot, key) => {
16863
+ return {
16864
+ name: key,
16865
+ fn: withCtx((data) => [
16866
+ (openBlock(), createBlock(resolveDynamicComponent(fieldSlot), mergeProps({
16867
+ "model-value": state.value,
16868
+ column: params.value
16869
+ }, data), null, 16, ["model-value", "column"]))
16870
+ ])
16871
+ };
16872
+ })
16873
+ ]), 1040, ["modelValue", "clearable", "field-children-slot"]))
16874
+ ],
16875
+ 2112
16876
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
16877
+ ))
16720
16878
  ],
16721
- 2112
16722
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
16723
- ))
16879
+ 64
16880
+ /* STABLE_FRAGMENT */
16881
+ )) : _ctx.valueType === "text" ? (openBlock(), createBlock(
16882
+ unref(ElText),
16883
+ mergeProps({
16884
+ key: 4,
16885
+ ref_key: "fieldInstance",
16886
+ ref: fieldInstance,
16887
+ class: "plus-form-item-field"
16888
+ }, customFieldProps.value),
16889
+ {
16890
+ default: withCtx(() => [
16891
+ createTextVNode(
16892
+ toDisplayString(state.value),
16893
+ 1
16894
+ /* TEXT */
16895
+ )
16896
+ ]),
16897
+ _: 1
16898
+ /* STABLE */
16899
+ },
16900
+ 16
16901
+ /* FULL_PROPS */
16902
+ )) : _ctx.valueType === "divider" ? (openBlock(), createBlock(
16903
+ unref(ElDivider),
16904
+ mergeProps({
16905
+ key: 5,
16906
+ ref_key: "fieldInstance",
16907
+ ref: fieldInstance,
16908
+ class: "plus-form-item-field"
16909
+ }, customFieldProps.value),
16910
+ {
16911
+ default: withCtx(() => [
16912
+ createTextVNode(
16913
+ toDisplayString(state.value),
16914
+ 1
16915
+ /* TEXT */
16916
+ )
16917
+ ]),
16918
+ _: 1
16919
+ /* STABLE */
16920
+ },
16921
+ 16
16922
+ /* FULL_PROPS */
16923
+ )) : (openBlock(), createBlock(unref(ElInput$1), mergeProps({
16924
+ key: 6,
16925
+ ref_key: "fieldInstance",
16926
+ ref: fieldInstance,
16927
+ modelValue: state.value,
16928
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => state.value = $event),
16929
+ class: "plus-form-item-field",
16930
+ placeholder: unref(t)("plus.field.pleaseEnter") + labelValue.value,
16931
+ autocomplete: "off",
16932
+ clearable: _ctx.clearable
16933
+ }, customFieldProps.value, { "onUpdate:modelValue": handleChange }), createSlots({
16934
+ _: 2
16935
+ /* DYNAMIC */
16936
+ }, [
16937
+ renderList(_ctx.fieldSlots, (fieldSlot, key) => {
16938
+ return {
16939
+ name: key,
16940
+ fn: withCtx((data) => [
16941
+ (openBlock(), createBlock(resolveDynamicComponent(fieldSlot), mergeProps({
16942
+ "model-value": state.value,
16943
+ column: params.value
16944
+ }, data), null, 16, ["model-value", "column"]))
16945
+ ])
16946
+ };
16947
+ })
16948
+ ]), 1040, ["modelValue", "placeholder", "clearable"])),
16949
+ createVNode(unref(ElTooltip$1), {
16950
+ visible: placeholderTooltipVisible.value,
16951
+ "onUpdate:visible": _cache[5] || (_cache[5] = ($event) => placeholderTooltipVisible.value = $event),
16952
+ content: placeholderTooltipContent.value,
16953
+ placement: "top",
16954
+ "virtual-triggering": "",
16955
+ "virtual-ref": placeholderVirtualRef.value,
16956
+ disabled: !placeholderTooltipContent.value
16957
+ }, null, 8, ["visible", "content", "virtual-ref", "disabled"])
16724
16958
  ],
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"]))
16959
+ 32
16960
+ /* NEED_HYDRATION */
16961
+ )
16795
16962
  ]),
16796
16963
  _: 2
16797
16964
  /* DYNAMIC */
@@ -16813,31 +16980,57 @@ var _sfc_main$H = /* @__PURE__ */ defineComponent({
16813
16980
  name: "label",
16814
16981
  fn: withCtx(({ label: currentLabel }) => [
16815
16982
  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
- ]),
16983
+ createVNode(unref(ElTooltip$1), {
16984
+ visible: labelTooltipVisible.value,
16985
+ "onUpdate:visible": _cache[0] || (_cache[0] = ($event) => labelTooltipVisible.value = $event),
16986
+ content: labelTooltipContent.value,
16987
+ placement: "top",
16988
+ disabled: !labelOverflow.value || !labelTooltipContent.value
16989
+ }, {
16990
+ default: withCtx(() => [
16991
+ createElementVNode(
16992
+ "span",
16993
+ {
16994
+ ref_key: "labelTextRef",
16995
+ ref: labelTextRef,
16996
+ class: "plus-form-item__label-text",
16997
+ onMouseenter: showLabelTooltip,
16998
+ onMouseleave: hideLabelTooltip
16999
+ },
17000
+ [
17001
+ _ctx.renderLabel && unref(isFunction)(_ctx.renderLabel) ? (openBlock(), createElementBlock(
17002
+ Fragment,
17003
+ { key: 0 },
17004
+ [
17005
+ valueIsReady.value ? (openBlock(), createBlock(unref(PlusRender), {
17006
+ key: 0,
17007
+ render: _ctx.renderLabel,
17008
+ params: params.value,
17009
+ "callback-value": currentLabel,
17010
+ "custom-field-props": customFieldProps.value
17011
+ }, null, 8, ["render", "params", "callback-value", "custom-field-props"])) : createCommentVNode("v-if", true)
17012
+ ],
17013
+ 64
17014
+ /* STABLE_FRAGMENT */
17015
+ )) : renderSlot(_ctx.$slots, unref(getLabelSlotName)(_ctx.prop), normalizeProps(mergeProps({ key: 1 }, params.value)), () => [
17016
+ createTextVNode(
17017
+ toDisplayString(currentLabel),
17018
+ 1
17019
+ /* TEXT */
17020
+ )
17021
+ ])
17022
+ ],
17023
+ 544
17024
+ /* NEED_HYDRATION, NEED_PATCH */
17025
+ )
17026
+ ]),
17027
+ _: 2
17028
+ /* DYNAMIC */
17029
+ }, 1032, ["visible", "content", "disabled"]),
16837
17030
  _ctx.tooltip ? (openBlock(), createBlock(
16838
17031
  unref(ElTooltip$1),
16839
17032
  mergeProps({
16840
- key: 2,
17033
+ key: 0,
16841
17034
  placement: "top"
16842
17035
  }, unref(getTooltip)(_ctx.tooltip)),
16843
17036
  {
@@ -64736,7 +64929,7 @@ function createDictStore(config) {
64736
64929
  });
64737
64930
  }
64738
64931
 
64739
- const version = "0.0.83";
64932
+ const version = "0.0.84";
64740
64933
 
64741
64934
  const install = installer.install;
64742
64935