yc-pro-components 0.0.17 → 0.0.19

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 (175) hide show
  1. package/es/components/check-card/index.d.ts +23 -23
  2. package/es/components/check-card/src/index.vue.d.ts +2 -2
  3. package/es/components/check-card-group/index.d.ts +24 -24
  4. package/es/components/check-card-group/src/index.vue.d.ts +2 -2
  5. package/es/components/date-picker/index.d.ts +10 -10
  6. package/es/components/date-picker/src/index.vue.d.ts +2 -2
  7. package/es/components/dialog/index.d.ts +26 -26
  8. package/es/components/dialog/src/index.vue.d.ts +2 -2
  9. package/es/components/dialog/src/index.vue2.mjs +6 -3
  10. package/es/components/dialog-form/index.d.ts +1154 -0
  11. package/es/components/dialog-form/src/index.vue.d.ts +493 -0
  12. package/es/components/dialog-form/src/index.vue2.mjs +7 -4
  13. package/es/components/display-item/index.d.ts +12 -12
  14. package/es/components/display-item/src/index.vue.d.ts +12 -12
  15. package/es/components/display-item/src/index.vue2.mjs +18 -5
  16. package/es/components/drawer-form/index.d.ts +3467 -0
  17. package/es/components/drawer-form/src/index.vue.d.ts +1254 -0
  18. package/es/components/drawer-form/src/index.vue2.mjs +7 -4
  19. package/es/components/form/index.d.ts +1665 -1
  20. package/es/components/form/src/form-content.vue.d.ts +14 -12
  21. package/es/components/form/src/index.vue.d.ts +652 -0
  22. package/es/components/form/src/index.vue2.mjs +7 -4
  23. package/es/components/form-item/index.d.ts +36 -36
  24. package/es/components/form-item/src/index.vue.d.ts +8 -8
  25. package/es/components/header/index.d.ts +7 -7
  26. package/es/components/header/src/index.vue.d.ts +1 -1
  27. package/es/components/input-tag/index.d.ts +15 -15
  28. package/es/components/input-tag/src/index.vue.d.ts +7 -7
  29. package/es/components/layout/index.d.ts +30 -30
  30. package/es/components/layout/src/index.vue.d.ts +10 -10
  31. package/es/components/page/index.d.ts +15450 -0
  32. package/es/components/page/src/index.vue.d.ts +5301 -0
  33. package/es/components/page/src/index.vue2.mjs +4 -2
  34. package/es/components/pagination/index.d.ts +42 -42
  35. package/es/components/pagination/src/index.vue.d.ts +3 -3
  36. package/es/components/popover/src/index.vue2.mjs +6 -3
  37. package/es/components/radio/index.d.ts +10 -10
  38. package/es/components/radio/src/index.vue.d.ts +2 -2
  39. package/es/components/render/index.d.ts +6 -6
  40. package/es/components/render/src/index.vue.d.ts +2 -2
  41. package/es/components/search/index.d.ts +4514 -0
  42. package/es/components/search/src/index.vue.d.ts +1539 -0
  43. package/es/components/sidebar/index.d.ts +15 -15
  44. package/es/components/sidebar/src/index.vue.d.ts +5 -5
  45. package/es/components/steps-form/index.d.ts +23 -23
  46. package/es/components/steps-form/src/index.vue.d.ts +2 -2
  47. package/es/components/table/index.d.ts +19 -0
  48. package/es/components/table/src/index.vue.d.ts +3 -0
  49. package/es/components/table/src/index.vue2.mjs +4 -2
  50. package/es/components/table/src/table-column.vue.d.ts +12 -12
  51. package/es/components/table/src/type.d.ts +9 -0
  52. package/es/components/utils/index.d.ts +2 -2
  53. package/es/components/yc-count-to/index.d.ts +1 -1
  54. package/es/components/yc-count-to/src/normal/index.d.ts +1 -1
  55. package/es/components/yc-download-dialog/index.d.ts +19 -19
  56. package/es/components/yc-download-dialog/src/index.vue.d.ts +1 -1
  57. package/es/components/yc-form-container-header/index.d.ts +12 -12
  58. package/es/components/yc-more-actions/index.d.ts +6 -6
  59. package/es/components/yc-more-actions/src/index.vue.d.ts +1 -1
  60. package/es/components/yc-plus-page/src/index.vue.d.ts +12864 -0
  61. package/es/components/yc-segmented/index.d.ts +2 -2
  62. package/es/components/yc-segmented/src/index.d.ts +2 -2
  63. package/es/components/yc-select-v2/src/index.vue.d.ts +2 -2
  64. package/es/components/yc-status-dialog/src/index.vue.mjs +1 -1
  65. package/es/components/yc-status-dialog/src/index.vue2.mjs +6 -3
  66. package/es/components/yc-svg-icon/src/index.vue.d.ts +1 -1
  67. package/es/components/yc-tabs-with-filter/index.d.ts +16 -16
  68. package/es/constants/form.d.ts +5 -0
  69. package/es/constants/form.mjs +2 -1
  70. package/es/constants/index.mjs +1 -1
  71. package/es/hooks/usePlusFormReset.d.ts +9833 -5
  72. package/es/index.css +1 -1
  73. package/es/index.mjs +1 -1
  74. package/es/types/plus.d.ts +29 -0
  75. package/index.css +7 -7
  76. package/index.js +66 -29
  77. package/index.min.css +1 -1
  78. package/index.min.js +7 -7
  79. package/index.min.mjs +7 -7
  80. package/index.mjs +66 -30
  81. package/lib/components/check-card/index.d.ts +23 -23
  82. package/lib/components/check-card/src/index.vue.d.ts +2 -2
  83. package/lib/components/check-card-group/index.d.ts +24 -24
  84. package/lib/components/check-card-group/src/index.vue.d.ts +2 -2
  85. package/lib/components/date-picker/index.d.ts +10 -10
  86. package/lib/components/date-picker/src/index.vue.d.ts +2 -2
  87. package/lib/components/dialog/index.d.ts +26 -26
  88. package/lib/components/dialog/src/index.vue.d.ts +2 -2
  89. package/lib/components/dialog/src/index.vue2.js +6 -3
  90. package/lib/components/dialog-form/index.d.ts +1154 -0
  91. package/lib/components/dialog-form/src/index.vue.d.ts +493 -0
  92. package/lib/components/dialog-form/src/index.vue2.js +7 -4
  93. package/lib/components/display-item/index.d.ts +12 -12
  94. package/lib/components/display-item/src/index.vue.d.ts +12 -12
  95. package/lib/components/display-item/src/index.vue2.js +16 -3
  96. package/lib/components/drawer-form/index.d.ts +3467 -0
  97. package/lib/components/drawer-form/src/index.vue.d.ts +1254 -0
  98. package/lib/components/drawer-form/src/index.vue2.js +7 -4
  99. package/lib/components/form/index.d.ts +1665 -1
  100. package/lib/components/form/src/form-content.vue.d.ts +14 -12
  101. package/lib/components/form/src/index.vue.d.ts +652 -0
  102. package/lib/components/form/src/index.vue2.js +7 -4
  103. package/lib/components/form-item/index.d.ts +36 -36
  104. package/lib/components/form-item/src/index.vue.d.ts +8 -8
  105. package/lib/components/header/index.d.ts +7 -7
  106. package/lib/components/header/src/index.vue.d.ts +1 -1
  107. package/lib/components/input-tag/index.d.ts +15 -15
  108. package/lib/components/input-tag/src/index.vue.d.ts +7 -7
  109. package/lib/components/layout/index.d.ts +30 -30
  110. package/lib/components/layout/src/index.vue.d.ts +10 -10
  111. package/lib/components/page/index.d.ts +15450 -0
  112. package/lib/components/page/src/index.vue.d.ts +5301 -0
  113. package/lib/components/page/src/index.vue2.js +4 -2
  114. package/lib/components/pagination/index.d.ts +42 -42
  115. package/lib/components/pagination/src/index.vue.d.ts +3 -3
  116. package/lib/components/popover/src/index.vue2.js +6 -3
  117. package/lib/components/radio/index.d.ts +10 -10
  118. package/lib/components/radio/src/index.vue.d.ts +2 -2
  119. package/lib/components/render/index.d.ts +6 -6
  120. package/lib/components/render/src/index.vue.d.ts +2 -2
  121. package/lib/components/search/index.d.ts +4514 -0
  122. package/lib/components/search/src/index.vue.d.ts +1539 -0
  123. package/lib/components/sidebar/index.d.ts +15 -15
  124. package/lib/components/sidebar/src/index.vue.d.ts +5 -5
  125. package/lib/components/steps-form/index.d.ts +23 -23
  126. package/lib/components/steps-form/src/index.vue.d.ts +2 -2
  127. package/lib/components/table/index.d.ts +19 -0
  128. package/lib/components/table/src/index.vue.d.ts +3 -0
  129. package/lib/components/table/src/index.vue2.js +3 -1
  130. package/lib/components/table/src/table-column.vue.d.ts +12 -12
  131. package/lib/components/table/src/type.d.ts +9 -0
  132. package/lib/components/utils/index.d.ts +2 -2
  133. package/lib/components/yc-count-to/index.d.ts +1 -1
  134. package/lib/components/yc-count-to/src/normal/index.d.ts +1 -1
  135. package/lib/components/yc-download-dialog/index.d.ts +19 -19
  136. package/lib/components/yc-download-dialog/src/index.vue.d.ts +1 -1
  137. package/lib/components/yc-form-container-header/index.d.ts +12 -12
  138. package/lib/components/yc-more-actions/index.d.ts +6 -6
  139. package/lib/components/yc-more-actions/src/index.vue.d.ts +1 -1
  140. package/lib/components/yc-plus-page/src/index.vue.d.ts +12864 -0
  141. package/lib/components/yc-segmented/index.d.ts +2 -2
  142. package/lib/components/yc-segmented/src/index.d.ts +2 -2
  143. package/lib/components/yc-select-v2/src/index.vue.d.ts +2 -2
  144. package/lib/components/yc-status-dialog/src/index.vue.js +1 -1
  145. package/lib/components/yc-status-dialog/src/index.vue2.js +6 -3
  146. package/lib/components/yc-svg-icon/src/index.vue.d.ts +1 -1
  147. package/lib/components/yc-tabs-with-filter/index.d.ts +16 -16
  148. package/lib/constants/form.d.ts +5 -0
  149. package/lib/constants/form.js +2 -0
  150. package/lib/constants/index.js +1 -0
  151. package/lib/hooks/usePlusFormReset.d.ts +9833 -5
  152. package/lib/index.css +1 -1
  153. package/lib/index.js +1 -0
  154. package/lib/types/plus.d.ts +29 -0
  155. package/locale/en.js +1 -1
  156. package/locale/en.min.js +1 -1
  157. package/locale/en.min.mjs +1 -1
  158. package/locale/en.mjs +1 -1
  159. package/locale/ja.js +1 -1
  160. package/locale/ja.min.js +1 -1
  161. package/locale/ja.min.mjs +1 -1
  162. package/locale/ja.mjs +1 -1
  163. package/locale/ko.js +1 -1
  164. package/locale/ko.min.js +1 -1
  165. package/locale/ko.min.mjs +1 -1
  166. package/locale/ko.mjs +1 -1
  167. package/locale/zh-cn.js +1 -1
  168. package/locale/zh-cn.min.js +1 -1
  169. package/locale/zh-cn.min.mjs +1 -1
  170. package/locale/zh-cn.mjs +1 -1
  171. package/locale/zh-tw.js +1 -1
  172. package/locale/zh-tw.min.js +1 -1
  173. package/locale/zh-tw.min.mjs +1 -1
  174. package/locale/zh-tw.mjs +1 -1
  175. package/package.json +3 -3
package/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! yc-pro-components v0.0.17 */
1
+ /*! yc-pro-components v0.0.19 */
2
2
  import { unref, isRef, ref, inject, isReactive, watch, computed, shallowRef, provide, onMounted, nextTick, onBeforeUnmount, defineComponent, watchEffect, openBlock, createBlock, mergeProps, createSlots, withCtx, createElementVNode, renderSlot, normalizeStyle, createVNode, createTextVNode, toDisplayString, createElementBlock, normalizeClass, createCommentVNode, reactive, useAttrs, Fragment, renderList, resolveDynamicComponent, normalizeProps, guardReactiveProps, h, withDirectives, isVNode, withKeys, withModifiers, TransitionGroup, toHandlers, getCurrentInstance, resolveComponent, toRefs, useSlots, onUnmounted, resolveDirective, pushScopeId, popScopeId, onBeforeMount, getCurrentScope, onScopeDispose, toRef, mergeModels, useModel, vShow } 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, ElSteps, ElStep, ElBreadcrumb, ElBreadcrumbItem, ElMenuItem, ElSubMenu, ElMenu, ElScrollbar, ElHeader, ElContainer, ElMain, ElBacktop } from 'element-plus';
4
4
 
@@ -4776,6 +4776,7 @@ const DefaultPageInfo = {
4776
4776
  const TableFormRefInjectionKey = Symbol("tableFormRefInjectionKey");
4777
4777
  const TableFormFieldRefInjectionKey = Symbol("tableFormFieldRefInjectionKey");
4778
4778
  const TableFormRowInfoInjectionKey = Symbol("tableFormRowInfoInjectionKey");
4779
+ const TableColumnsEmptyTextInjectionKey = Symbol("tableColumnsEmptyTextInjectionKey");
4779
4780
  const DatePickerValueIsArrayList = ["datetimerange", "daterange", "monthrange"];
4780
4781
  const ValueIsNumberList = ["rate", "input-number", "slider"];
4781
4782
  const ValueIsBooleanList = ["switch"];
@@ -8624,12 +8625,15 @@ var _sfc_main$K = /* @__PURE__ */ defineComponent({
8624
8625
  isSubmitting.value = false;
8625
8626
  }, 300);
8626
8627
  };
8627
- const handleConfirm = debounce(doConfirm, 300, {
8628
+ const debouncedConfirm = debounce(doConfirm, 300, {
8628
8629
  leading: true,
8629
8630
  // 立即执行第一次
8630
8631
  trailing: false
8631
8632
  // 不执行最后一次
8632
8633
  });
8634
+ const handleConfirm = () => {
8635
+ debouncedConfirm();
8636
+ };
8633
8637
  const handleCancel = () => {
8634
8638
  emit("update:modelValue", false);
8635
8639
  emit("cancel");
@@ -8687,7 +8691,7 @@ var _sfc_main$K = /* @__PURE__ */ defineComponent({
8687
8691
  createVNode(unref(ElButton), {
8688
8692
  type: "primary",
8689
8693
  loading: computedLoading.value,
8690
- onClick: unref(handleConfirm)
8694
+ onClick: handleConfirm
8691
8695
  }, {
8692
8696
  default: withCtx(() => [
8693
8697
  createTextVNode(
@@ -8698,7 +8702,7 @@ var _sfc_main$K = /* @__PURE__ */ defineComponent({
8698
8702
  ]),
8699
8703
  _: 1
8700
8704
  /* STABLE */
8701
- }, 8, ["loading", "onClick"])
8705
+ }, 8, ["loading"])
8702
8706
  ])
8703
8707
  ],
8704
8708
  4
@@ -16816,12 +16820,15 @@ var _sfc_main$A = /* @__PURE__ */ defineComponent({
16816
16820
  }
16817
16821
  return false;
16818
16822
  };
16819
- const handleSubmit = debounce(doSubmit, 300, {
16823
+ const debouncedSubmit = debounce(doSubmit, 300, {
16820
16824
  leading: true,
16821
16825
  // 立即执行第一次
16822
16826
  trailing: false
16823
16827
  // 不执行最后一次
16824
16828
  });
16829
+ const handleSubmit = () => {
16830
+ debouncedSubmit();
16831
+ };
16825
16832
  const handleReset = () => {
16826
16833
  clearValidate();
16827
16834
  values.value = { ...props.defaultValues };
@@ -16970,7 +16977,7 @@ var _sfc_main$A = /* @__PURE__ */ defineComponent({
16970
16977
  style: normalizeStyle(style.value)
16971
16978
  },
16972
16979
  [
16973
- renderSlot(_ctx.$slots, "footer", normalizeProps(guardReactiveProps({ handleReset, handleSubmit: unref(handleSubmit) })), () => [
16980
+ renderSlot(_ctx.$slots, "footer", normalizeProps(guardReactiveProps({ handleReset, handleSubmit })), () => [
16974
16981
  _ctx.hasReset ? (openBlock(), createBlock(unref(ElButton), {
16975
16982
  key: 0,
16976
16983
  onClick: handleReset
@@ -16989,7 +16996,7 @@ var _sfc_main$A = /* @__PURE__ */ defineComponent({
16989
16996
  createVNode(unref(ElButton), {
16990
16997
  type: "primary",
16991
16998
  loading: computedLoading.value,
16992
- onClick: unref(handleSubmit)
16999
+ onClick: handleSubmit
16993
17000
  }, {
16994
17001
  default: withCtx(() => [
16995
17002
  createCommentVNode(" \u63D0\u4EA4 "),
@@ -17001,7 +17008,7 @@ var _sfc_main$A = /* @__PURE__ */ defineComponent({
17001
17008
  ]),
17002
17009
  _: 1
17003
17010
  /* STABLE */
17004
- }, 8, ["loading", "onClick"])
17011
+ }, 8, ["loading"])
17005
17012
  ])
17006
17013
  ],
17007
17014
  4
@@ -17154,16 +17161,18 @@ var _sfc_main$z = /* @__PURE__ */ defineComponent({
17154
17161
  const value = props.column.valueType === "link" ? props.column.linkText || displayValue.value : displayValue.value;
17155
17162
  if (!selectValueTypeList.includes(props.column.valueType) && !isEdit.value) {
17156
17163
  if (props.column.formatter && isFunction(props.column.formatter)) {
17157
- return props.column.formatter(value, renderParams.value);
17164
+ const formattedValue = props.column.formatter(value, renderParams.value);
17165
+ return handleEmptyValue(formattedValue);
17158
17166
  }
17159
17167
  if (displayComponent.value.format && isFunction(displayComponent.value.format)) {
17160
- return displayComponent.value.format(
17168
+ const formattedValue = displayComponent.value.format(
17161
17169
  value,
17162
17170
  customFieldProps.value.format || customFieldProps.value.valueFormat
17163
17171
  );
17172
+ return handleEmptyValue(formattedValue);
17164
17173
  }
17165
17174
  }
17166
- return value;
17175
+ return handleEmptyValue(value);
17167
17176
  });
17168
17177
  const modelValues = computed({
17169
17178
  get() {
@@ -17195,6 +17204,17 @@ var _sfc_main$z = /* @__PURE__ */ defineComponent({
17195
17204
  column: { ...props.rest.column, ...props.column }
17196
17205
  }));
17197
17206
  provide(TableFormRowInfoInjectionKey, tableRowInfo);
17207
+ const injectedColumnsEmptyText = inject(TableColumnsEmptyTextInjectionKey, computed(() => "-"));
17208
+ const handleEmptyValue = (value) => {
17209
+ var _a;
17210
+ if (value === null || value === void 0 || value === "") {
17211
+ if (props.column.emptyText !== void 0) {
17212
+ return props.column.emptyText;
17213
+ }
17214
+ return (_a = injectedColumnsEmptyText.value) != null ? _a : "-";
17215
+ }
17216
+ return value;
17217
+ };
17198
17218
  const imageUrl = computed(() => {
17199
17219
  const option = formatterValue.value;
17200
17220
  if (option && isString(option)) {
@@ -18112,12 +18132,15 @@ var _sfc_main$v = /* @__PURE__ */ defineComponent({
18112
18132
  subVisible.value = false;
18113
18133
  emit("confirm");
18114
18134
  };
18115
- const handleConfirmPopover = debounce(doConfirm, 300, {
18135
+ const debouncedConfirm = debounce(doConfirm, 300, {
18116
18136
  leading: true,
18117
18137
  // 立即执行第一次
18118
18138
  trailing: false
18119
18139
  // 不执行最后一次
18120
18140
  });
18141
+ const handleConfirmPopover = () => {
18142
+ debouncedConfirm();
18143
+ };
18121
18144
  return (_ctx, _cache) => {
18122
18145
  return openBlock(), createBlock(unref(ElPopover), mergeProps({
18123
18146
  visible: subVisible.value,
@@ -18150,7 +18173,7 @@ var _sfc_main$v = /* @__PURE__ */ defineComponent({
18150
18173
  size: "small",
18151
18174
  type: "primary",
18152
18175
  loading: computedLoading.value,
18153
- onClick: unref(handleConfirmPopover)
18176
+ onClick: handleConfirmPopover
18154
18177
  }, {
18155
18178
  default: withCtx(() => [
18156
18179
  createTextVNode(
@@ -18161,7 +18184,7 @@ var _sfc_main$v = /* @__PURE__ */ defineComponent({
18161
18184
  ]),
18162
18185
  _: 1
18163
18186
  /* STABLE */
18164
- }, 8, ["loading", "onClick"])
18187
+ }, 8, ["loading"])
18165
18188
  ])) : createCommentVNode("v-if", true)
18166
18189
  ]),
18167
18190
  _: 3
@@ -18696,7 +18719,8 @@ var _sfc_main$t = /* @__PURE__ */ defineComponent({
18696
18719
  indexContentStyle: { type: [Object, Function], default: () => ({}) },
18697
18720
  editable: { type: [Boolean, String], default: false },
18698
18721
  adaptive: { type: [Boolean, Object], default: false },
18699
- filterTableHeaderOverflowLabelLength: {}
18722
+ filterTableHeaderOverflowLabelLength: {},
18723
+ columnsEmptyText: { default: "-" }
18700
18724
  },
18701
18725
  emits: ["paginationChange", "clickAction", "clickActionConfirmCancel", "dragSortEnd", "formChange", "refresh", "edited", "cell-click", "cell-dblclick", "filterTableHeader", "radioChange"],
18702
18726
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -18728,6 +18752,7 @@ var _sfc_main$t = /* @__PURE__ */ defineComponent({
18728
18752
  provide(TableFormRefInjectionKey, formRefs);
18729
18753
  const formFieldRefs = shallowRef({});
18730
18754
  provide(TableFormFieldRefInjectionKey, formFieldRefs);
18755
+ provide(TableColumnsEmptyTextInjectionKey, computed(() => props.columnsEmptyText));
18731
18756
  watch(
18732
18757
  () => props.columns,
18733
18758
  (val) => {
@@ -19621,12 +19646,15 @@ var _sfc_main$q = /* @__PURE__ */ defineComponent({
19621
19646
  }, 300);
19622
19647
  }
19623
19648
  };
19624
- const handleConfirm = debounce(doConfirm, 300, {
19649
+ const debouncedConfirm = debounce(doConfirm, 300, {
19625
19650
  leading: true,
19626
19651
  // 立即执行第一次
19627
19652
  trailing: false
19628
19653
  // 不执行最后一次
19629
19654
  });
19655
+ const handleConfirm = () => {
19656
+ debouncedConfirm();
19657
+ };
19630
19658
  const handleCancel = () => {
19631
19659
  subVisible.value = false;
19632
19660
  emit("update:visible", subVisible.value);
@@ -19653,7 +19681,7 @@ var _sfc_main$q = /* @__PURE__ */ defineComponent({
19653
19681
  }, _ctx.dialog, {
19654
19682
  onClose: handleClose,
19655
19683
  onCancel: handleCancel,
19656
- onConfirm: unref(handleConfirm)
19684
+ onConfirm: handleConfirm
19657
19685
  }), createSlots({
19658
19686
  default: withCtx(() => [
19659
19687
  createVNode(unref(PlusForm), mergeProps({
@@ -19704,11 +19732,11 @@ var _sfc_main$q = /* @__PURE__ */ defineComponent({
19704
19732
  _ctx.$slots["dialog-footer"] ? {
19705
19733
  name: "footer",
19706
19734
  fn: withCtx(() => [
19707
- renderSlot(_ctx.$slots, "dialog-footer", normalizeProps(guardReactiveProps({ handleConfirm: unref(handleConfirm), handleCancel })))
19735
+ renderSlot(_ctx.$slots, "dialog-footer", normalizeProps(guardReactiveProps({ handleConfirm, handleCancel })))
19708
19736
  ]),
19709
19737
  key: "1"
19710
19738
  } : void 0
19711
- ]), 1040, ["modelValue", "title", "confirm-loading", "onConfirm"]);
19739
+ ]), 1040, ["modelValue", "title", "confirm-loading"]);
19712
19740
  };
19713
19741
  }
19714
19742
  });
@@ -19790,12 +19818,15 @@ var _sfc_main$p = /* @__PURE__ */ defineComponent({
19790
19818
  emit("confirmError", errors);
19791
19819
  }
19792
19820
  };
19793
- const handleConfirm = debounce(doConfirm, 300, {
19821
+ const debouncedConfirm = debounce(doConfirm, 300, {
19794
19822
  leading: true,
19795
19823
  // 立即执行第一次
19796
19824
  trailing: false
19797
19825
  // 不执行最后一次
19798
19826
  });
19827
+ const handleConfirm = () => {
19828
+ debouncedConfirm();
19829
+ };
19799
19830
  const handleClose = () => {
19800
19831
  handleCancel();
19801
19832
  emit("update:visible", subVisible.value);
@@ -19869,7 +19900,7 @@ var _sfc_main$p = /* @__PURE__ */ defineComponent({
19869
19900
  name: "footer",
19870
19901
  fn: withCtx(() => [
19871
19902
  createElementVNode("div", _hoisted_1$d, [
19872
- renderSlot(_ctx.$slots, "drawer-footer", normalizeProps(guardReactiveProps({ handleConfirm: unref(handleConfirm), handleCancel })), () => [
19903
+ renderSlot(_ctx.$slots, "drawer-footer", normalizeProps(guardReactiveProps({ handleConfirm, handleCancel })), () => [
19873
19904
  createVNode(unref(ElButton), { onClick: handleCancel }, {
19874
19905
  default: withCtx(() => [
19875
19906
  createTextVNode(
@@ -19884,7 +19915,7 @@ var _sfc_main$p = /* @__PURE__ */ defineComponent({
19884
19915
  createVNode(unref(ElButton), {
19885
19916
  type: "primary",
19886
19917
  loading: computedLoading.value,
19887
- onClick: unref(handleConfirm)
19918
+ onClick: handleConfirm
19888
19919
  }, {
19889
19920
  default: withCtx(() => [
19890
19921
  createTextVNode(
@@ -19895,7 +19926,7 @@ var _sfc_main$p = /* @__PURE__ */ defineComponent({
19895
19926
  ]),
19896
19927
  _: 1
19897
19928
  /* STABLE */
19898
- }, 8, ["loading", "onClick"])
19929
+ }, 8, ["loading"])
19899
19930
  ])
19900
19931
  ])
19901
19932
  ]),
@@ -19936,7 +19967,8 @@ var _sfc_main$o = /* @__PURE__ */ defineComponent({
19936
19967
  page: "page",
19937
19968
  pageSize: "pageSize"
19938
19969
  }) },
19939
- searchSlot: { type: Boolean, default: false }
19970
+ searchSlot: { type: Boolean, default: false },
19971
+ columnsEmptyText: { default: "-" }
19940
19972
  },
19941
19973
  emits: ["search", "reset", "paginationChange", "requestError", "requestComplete"],
19942
19974
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -20125,6 +20157,7 @@ var _sfc_main$o = /* @__PURE__ */ defineComponent({
20125
20157
  "table-data": unref(tableData),
20126
20158
  "loading-status": unref(loadingStatus),
20127
20159
  columns: _ctx.columns,
20160
+ "columns-empty-text": _ctx.columnsEmptyText,
20128
20161
  pagination: _ctx.pagination === false ? void 0 : {
20129
20162
  ..._ctx.pagination,
20130
20163
  total: unref(total),
@@ -20180,7 +20213,7 @@ var _sfc_main$o = /* @__PURE__ */ defineComponent({
20180
20213
  ])
20181
20214
  };
20182
20215
  })
20183
- ]), 1040, ["table-data", "loading-status", "columns", "pagination"])
20216
+ ]), 1040, ["table-data", "loading-status", "columns", "columns-empty-text", "pagination"])
20184
20217
  ]),
20185
20218
  _: 3
20186
20219
  /* FORWARDED */
@@ -58039,12 +58072,15 @@ var _sfc_main$6 = /* @__PURE__ */ defineComponent({
58039
58072
  emit("confirm");
58040
58073
  dialogVisible.value = false;
58041
58074
  };
58042
- const handleConfirm = debounce(doConfirm, 300, {
58075
+ const debouncedConfirm = debounce(doConfirm, 300, {
58043
58076
  leading: true,
58044
58077
  // 立即执行第一次
58045
58078
  trailing: false
58046
58079
  // 不执行最后一次
58047
58080
  });
58081
+ const handleConfirm = () => {
58082
+ debouncedConfirm();
58083
+ };
58048
58084
  const handleCancel = () => {
58049
58085
  emit("cancel");
58050
58086
  dialogVisible.value = false;
@@ -58104,7 +58140,7 @@ var _sfc_main$6 = /* @__PURE__ */ defineComponent({
58104
58140
  createVNode(unref(ElButton), {
58105
58141
  type: currentStatusConfig.value.confirmButtonType,
58106
58142
  loading: isSubmitting.value,
58107
- onClick: unref(handleConfirm)
58143
+ onClick: handleConfirm
58108
58144
  }, {
58109
58145
  default: withCtx(() => [
58110
58146
  createTextVNode(
@@ -58115,7 +58151,7 @@ var _sfc_main$6 = /* @__PURE__ */ defineComponent({
58115
58151
  ]),
58116
58152
  _: 1
58117
58153
  /* STABLE */
58118
- }, 8, ["type", "loading", "onClick"])
58154
+ }, 8, ["type", "loading"])
58119
58155
  ], true)
58120
58156
  ])
58121
58157
  ]),
@@ -58139,7 +58175,7 @@ var _sfc_main$6 = /* @__PURE__ */ defineComponent({
58139
58175
  }
58140
58176
  });
58141
58177
 
58142
- var YcStatusDialog = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-a1851fcd"], ["__file", "index.vue"]]);
58178
+ var YcStatusDialog = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-7a078f73"], ["__file", "index.vue"]]);
58143
58179
 
58144
58180
  var _sfc_main$5 = /* @__PURE__ */ defineComponent({
58145
58181
  ...{
@@ -59819,4 +59855,4 @@ const version = "0.0.13";
59819
59855
 
59820
59856
  const install = installer.install;
59821
59857
 
59822
- export { DEFAULT_CDN_CONFIG, DEFAULT_YC_CONFIG, DatePickerValueIsArrayList, DefaultPageInfo, DefaultPageSizeList, DictStoreInjectionKey, PlusBreadcrumb, PlusCheckCard, PlusCheckCardGroup, PlusDatePicker, PlusDescriptions, PlusDialog, PlusDialogForm, PlusDisplayItem, PlusDrawerForm, PlusForm, PlusFormItem, PlusHeader, PlusInputTag, PlusLayout, PlusPage, PlusPagination, PlusPopover, PlusRadio, PlusSearch, PlusSidebar, PlusSidebarItem, PlusStepsForm, PlusTable, YcAnimateSelector as ReAnimateSelector, YcAuth as ReAuth, YcCard as ReCard, YcCol as ReCol, YcConfigProvider as ReConfigProvider, ReDialog, YcDownloadDialog as ReDownloadDialog, ReDrawer, ReFormContainerHeader, YcLineTree as ReLineTree, ReMoreActions, YcCountTo as ReNormalCountTo, YcPerms as RePerms, RePlusPage, RePlusTree, YcSegmented as ReSegmented, YcSelectV2 as ReSelectV2, YcStatusDialog as ReStatusDialog, YcSvgIcon as ReSvgIcon, YcTabsWithFilter as ReTabsWithFilter, YcText as ReText, YcReboundCountTo as ReboundCountTo, SIZE_MAP, STATUS_CONFIG_MAP, TableFormFieldRefInjectionKey, TableFormRefInjectionKey, TableFormRowInfoInjectionKey, ValueIsArrayList, ValueIsBooleanList, ValueIsNumberList, YC_CONFIG_KEY, YcAnimateSelector, YcAnimateSelectorWithInstall, YcAuth, YcAuthWithInstall, YcCard, YcCardWithInstall, YcCol, YcConfigProvider, YcCountTo, YcDialog, YcDownloadDialog, YcDownloadDialogWithInstall, YcDrawer, YcFlicker, YcFormContainerHeader, YcLineTree, YcLineTreeWithInstall, YcMoreActions, YcPerms, YcPermsWithInstall, YcPlusPage, YcPlusTree, YcReboundCountTo, YcReboundCountToWithInstall, YcSegmented, YcSegmentedWithInstall, YcSelectV2, YcStatusDialog, YcSvgIcon, YcTabsWithFilter, YcTabsWithFilterWithInstall, YcText, YcTextWithInstall, addDrawer, animates, closeAllDrawer, closeDrawer, installer as default, drawerStore, findNodeById, findNodeByPath, findNodePosition, insertAsChild, insertAsSibling, insertNodeAtPosition, install, providePlusProConfig, removeNode, reorderNodeChildren, reorderSiblingNodes, selectValueTypeList, updateDrawer, useDialogFormConfig, useDictInjection, useDrawerFormConfig, useGetOptions, useLocale, usePlusFormReset, usePlusProConfig, useRenderFlicker, useRenderFlicker as useRenderReFlicker, useSelectWithMapping, useSelectWithPagination, useSortableDrag$1 as useSortableDrag, useTable, useYcAuth, useYcCdn, useYcCdnUrl, useYcComponentConfig, useYcConfig, useYcPerms, useYcShowPageSearch, useYcTranslate, version };
59858
+ export { DEFAULT_CDN_CONFIG, DEFAULT_YC_CONFIG, DatePickerValueIsArrayList, DefaultPageInfo, DefaultPageSizeList, DictStoreInjectionKey, PlusBreadcrumb, PlusCheckCard, PlusCheckCardGroup, PlusDatePicker, PlusDescriptions, PlusDialog, PlusDialogForm, PlusDisplayItem, PlusDrawerForm, PlusForm, PlusFormItem, PlusHeader, PlusInputTag, PlusLayout, PlusPage, PlusPagination, PlusPopover, PlusRadio, PlusSearch, PlusSidebar, PlusSidebarItem, PlusStepsForm, PlusTable, YcAnimateSelector as ReAnimateSelector, YcAuth as ReAuth, YcCard as ReCard, YcCol as ReCol, YcConfigProvider as ReConfigProvider, ReDialog, YcDownloadDialog as ReDownloadDialog, ReDrawer, ReFormContainerHeader, YcLineTree as ReLineTree, ReMoreActions, YcCountTo as ReNormalCountTo, YcPerms as RePerms, RePlusPage, RePlusTree, YcSegmented as ReSegmented, YcSelectV2 as ReSelectV2, YcStatusDialog as ReStatusDialog, YcSvgIcon as ReSvgIcon, YcTabsWithFilter as ReTabsWithFilter, YcText as ReText, YcReboundCountTo as ReboundCountTo, SIZE_MAP, STATUS_CONFIG_MAP, TableColumnsEmptyTextInjectionKey, TableFormFieldRefInjectionKey, TableFormRefInjectionKey, TableFormRowInfoInjectionKey, ValueIsArrayList, ValueIsBooleanList, ValueIsNumberList, YC_CONFIG_KEY, YcAnimateSelector, YcAnimateSelectorWithInstall, YcAuth, YcAuthWithInstall, YcCard, YcCardWithInstall, YcCol, YcConfigProvider, YcCountTo, YcDialog, YcDownloadDialog, YcDownloadDialogWithInstall, YcDrawer, YcFlicker, YcFormContainerHeader, YcLineTree, YcLineTreeWithInstall, YcMoreActions, YcPerms, YcPermsWithInstall, YcPlusPage, YcPlusTree, YcReboundCountTo, YcReboundCountToWithInstall, YcSegmented, YcSegmentedWithInstall, YcSelectV2, YcStatusDialog, YcSvgIcon, YcTabsWithFilter, YcTabsWithFilterWithInstall, YcText, YcTextWithInstall, addDrawer, animates, closeAllDrawer, closeDrawer, installer as default, drawerStore, findNodeById, findNodeByPath, findNodePosition, insertAsChild, insertAsSibling, insertNodeAtPosition, install, providePlusProConfig, removeNode, reorderNodeChildren, reorderSiblingNodes, selectValueTypeList, updateDrawer, useDialogFormConfig, useDictInjection, useDrawerFormConfig, useGetOptions, useLocale, usePlusFormReset, usePlusProConfig, useRenderFlicker, useRenderFlicker as useRenderReFlicker, useSelectWithMapping, useSelectWithPagination, useSortableDrag$1 as useSortableDrag, useTable, useYcAuth, useYcCdn, useYcCdnUrl, useYcComponentConfig, useYcConfig, useYcPerms, useYcShowPageSearch, useYcTranslate, version };
@@ -8,6 +8,10 @@ export declare const PlusCheckCard: {
8
8
  type: PropType<"" | "default" | "small" | "large">;
9
9
  default: string;
10
10
  };
11
+ modelValue: {
12
+ type: PropType<boolean>;
13
+ default: boolean;
14
+ };
11
15
  title: {
12
16
  type: PropType<string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes)>;
13
17
  default: undefined;
@@ -24,10 +28,6 @@ export declare const PlusCheckCard: {
24
28
  type: PropType<(data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes>;
25
29
  default: undefined;
26
30
  };
27
- modelValue: {
28
- type: PropType<boolean>;
29
- default: boolean;
30
- };
31
31
  description: {
32
32
  type: PropType<string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes)>;
33
33
  default: undefined;
@@ -37,8 +37,8 @@ export declare const PlusCheckCard: {
37
37
  default: () => {};
38
38
  };
39
39
  }>> & {
40
- onChange?: ((checked: boolean) => any) | undefined;
41
40
  "onUpdate:modelValue"?: ((checked: boolean) => any) | undefined;
41
+ onChange?: ((checked: boolean) => any) | undefined;
42
42
  onExtra?: (() => any) | undefined;
43
43
  }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
44
44
  "update:modelValue": (checked: boolean) => void;
@@ -49,6 +49,10 @@ export declare const PlusCheckCard: {
49
49
  type: PropType<"" | "default" | "small" | "large">;
50
50
  default: string;
51
51
  };
52
+ modelValue: {
53
+ type: PropType<boolean>;
54
+ default: boolean;
55
+ };
52
56
  title: {
53
57
  type: PropType<string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes)>;
54
58
  default: undefined;
@@ -65,10 +69,6 @@ export declare const PlusCheckCard: {
65
69
  type: PropType<(data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes>;
66
70
  default: undefined;
67
71
  };
68
- modelValue: {
69
- type: PropType<boolean>;
70
- default: boolean;
71
- };
72
72
  description: {
73
73
  type: PropType<string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes)>;
74
74
  default: undefined;
@@ -78,16 +78,16 @@ export declare const PlusCheckCard: {
78
78
  default: () => {};
79
79
  };
80
80
  }>> & {
81
- onChange?: ((checked: boolean) => any) | undefined;
82
81
  "onUpdate:modelValue"?: ((checked: boolean) => any) | undefined;
82
+ onChange?: ((checked: boolean) => any) | undefined;
83
83
  onExtra?: (() => any) | undefined;
84
84
  }, {
85
85
  size: "" | "default" | "small" | "large";
86
+ modelValue: boolean;
86
87
  title: string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes);
87
88
  avatar: string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes);
88
89
  disabled: boolean;
89
90
  extra: (data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes;
90
- modelValue: boolean;
91
91
  description: string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes);
92
92
  avatarProps: RecordType;
93
93
  }, true, {}, {}, {
@@ -102,6 +102,10 @@ export declare const PlusCheckCard: {
102
102
  type: PropType<"" | "default" | "small" | "large">;
103
103
  default: string;
104
104
  };
105
+ modelValue: {
106
+ type: PropType<boolean>;
107
+ default: boolean;
108
+ };
105
109
  title: {
106
110
  type: PropType<string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes)>;
107
111
  default: undefined;
@@ -118,10 +122,6 @@ export declare const PlusCheckCard: {
118
122
  type: PropType<(data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes>;
119
123
  default: undefined;
120
124
  };
121
- modelValue: {
122
- type: PropType<boolean>;
123
- default: boolean;
124
- };
125
125
  description: {
126
126
  type: PropType<string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes)>;
127
127
  default: undefined;
@@ -131,16 +131,16 @@ export declare const PlusCheckCard: {
131
131
  default: () => {};
132
132
  };
133
133
  }>> & {
134
- onChange?: ((checked: boolean) => any) | undefined;
135
134
  "onUpdate:modelValue"?: ((checked: boolean) => any) | undefined;
135
+ onChange?: ((checked: boolean) => any) | undefined;
136
136
  onExtra?: (() => any) | undefined;
137
137
  }, {}, {}, {}, {}, {
138
138
  size: "" | "default" | "small" | "large";
139
+ modelValue: boolean;
139
140
  title: string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes);
140
141
  avatar: string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes);
141
142
  disabled: boolean;
142
143
  extra: (data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes;
143
- modelValue: boolean;
144
144
  description: string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes);
145
145
  avatarProps: RecordType;
146
146
  }>;
@@ -152,6 +152,10 @@ export declare const PlusCheckCard: {
152
152
  type: PropType<"" | "default" | "small" | "large">;
153
153
  default: string;
154
154
  };
155
+ modelValue: {
156
+ type: PropType<boolean>;
157
+ default: boolean;
158
+ };
155
159
  title: {
156
160
  type: PropType<string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes)>;
157
161
  default: undefined;
@@ -168,10 +172,6 @@ export declare const PlusCheckCard: {
168
172
  type: PropType<(data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes>;
169
173
  default: undefined;
170
174
  };
171
- modelValue: {
172
- type: PropType<boolean>;
173
- default: boolean;
174
- };
175
175
  description: {
176
176
  type: PropType<string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes)>;
177
177
  default: undefined;
@@ -181,8 +181,8 @@ export declare const PlusCheckCard: {
181
181
  default: () => {};
182
182
  };
183
183
  }>> & {
184
- onChange?: ((checked: boolean) => any) | undefined;
185
184
  "onUpdate:modelValue"?: ((checked: boolean) => any) | undefined;
185
+ onChange?: ((checked: boolean) => any) | undefined;
186
186
  onExtra?: (() => any) | undefined;
187
187
  }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
188
188
  "update:modelValue": (checked: boolean) => void;
@@ -190,11 +190,11 @@ export declare const PlusCheckCard: {
190
190
  extra: () => void;
191
191
  }, string, {
192
192
  size: "" | "default" | "small" | "large";
193
+ modelValue: boolean;
193
194
  title: string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes);
194
195
  avatar: string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes);
195
196
  disabled: boolean;
196
197
  extra: (data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes;
197
- modelValue: boolean;
198
198
  description: string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes);
199
199
  avatarProps: RecordType;
200
200
  }, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
@@ -43,16 +43,16 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
43
43
  extra: undefined;
44
44
  disabled: boolean;
45
45
  }>>> & {
46
- onChange?: ((checked: boolean) => any) | undefined;
47
46
  "onUpdate:modelValue"?: ((checked: boolean) => any) | undefined;
47
+ onChange?: ((checked: boolean) => any) | undefined;
48
48
  onExtra?: (() => any) | undefined;
49
49
  }, {
50
50
  size: "" | "default" | "small" | "large";
51
+ modelValue: boolean;
51
52
  title: string | ((data: Pick<PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes);
52
53
  avatar: string | ((data: Pick<PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes);
53
54
  disabled: boolean;
54
55
  extra: (data: Pick<PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes;
55
- modelValue: boolean;
56
56
  description: string | ((data: Pick<PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes);
57
57
  avatarProps: RecordType;
58
58
  }, {}>, {