yc-pro-components 0.0.16 → 0.0.18

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 (67) hide show
  1. package/es/components/dialog/src/index.vue2.mjs +6 -3
  2. package/es/components/dialog-form/index.d.ts +1154 -0
  3. package/es/components/dialog-form/src/index.vue.d.ts +493 -0
  4. package/es/components/dialog-form/src/index.vue2.mjs +7 -4
  5. package/es/components/drawer-form/index.d.ts +3467 -0
  6. package/es/components/drawer-form/src/index.vue.d.ts +1254 -0
  7. package/es/components/drawer-form/src/index.vue2.mjs +7 -4
  8. package/es/components/form/index.d.ts +1669 -0
  9. package/es/components/form/src/index.vue.d.ts +652 -0
  10. package/es/components/form/src/index.vue2.mjs +7 -4
  11. package/es/components/page/index.d.ts +15386 -0
  12. package/es/components/page/src/index.vue.d.ts +5306 -0
  13. package/es/components/popover/src/index.vue2.mjs +6 -3
  14. package/es/components/search/index.d.ts +4514 -0
  15. package/es/components/search/src/index.vue.d.ts +1539 -0
  16. package/es/components/yc-plus-page/src/index.vue.d.ts +12804 -0
  17. package/es/components/yc-status-dialog/src/index.vue.mjs +1 -1
  18. package/es/components/yc-status-dialog/src/index.vue2.mjs +6 -3
  19. package/es/hooks/usePlusFormReset.d.ts +9925 -0
  20. package/es/index.css +1 -1
  21. package/index.css +7 -7
  22. package/index.js +52 -36
  23. package/index.min.css +1 -1
  24. package/index.min.js +7 -7
  25. package/index.min.mjs +7 -7
  26. package/index.mjs +52 -36
  27. package/lib/components/dialog/src/index.vue2.js +6 -3
  28. package/lib/components/dialog-form/index.d.ts +1154 -0
  29. package/lib/components/dialog-form/src/index.vue.d.ts +493 -0
  30. package/lib/components/dialog-form/src/index.vue2.js +7 -4
  31. package/lib/components/drawer-form/index.d.ts +3467 -0
  32. package/lib/components/drawer-form/src/index.vue.d.ts +1254 -0
  33. package/lib/components/drawer-form/src/index.vue2.js +7 -4
  34. package/lib/components/form/index.d.ts +1669 -0
  35. package/lib/components/form/src/index.vue.d.ts +652 -0
  36. package/lib/components/form/src/index.vue2.js +7 -4
  37. package/lib/components/page/index.d.ts +15386 -0
  38. package/lib/components/page/src/index.vue.d.ts +5306 -0
  39. package/lib/components/popover/src/index.vue2.js +6 -3
  40. package/lib/components/search/index.d.ts +4514 -0
  41. package/lib/components/search/src/index.vue.d.ts +1539 -0
  42. package/lib/components/yc-plus-page/src/index.vue.d.ts +12804 -0
  43. package/lib/components/yc-status-dialog/src/index.vue.js +1 -1
  44. package/lib/components/yc-status-dialog/src/index.vue2.js +6 -3
  45. package/lib/hooks/usePlusFormReset.d.ts +9925 -0
  46. package/lib/index.css +1 -1
  47. package/locale/en.js +1 -1
  48. package/locale/en.min.js +1 -1
  49. package/locale/en.min.mjs +1 -1
  50. package/locale/en.mjs +1 -1
  51. package/locale/ja.js +1 -1
  52. package/locale/ja.min.js +1 -1
  53. package/locale/ja.min.mjs +1 -1
  54. package/locale/ja.mjs +1 -1
  55. package/locale/ko.js +1 -1
  56. package/locale/ko.min.js +1 -1
  57. package/locale/ko.min.mjs +1 -1
  58. package/locale/ko.mjs +1 -1
  59. package/locale/zh-cn.js +1 -1
  60. package/locale/zh-cn.min.js +1 -1
  61. package/locale/zh-cn.min.mjs +1 -1
  62. package/locale/zh-cn.mjs +1 -1
  63. package/locale/zh-tw.js +1 -1
  64. package/locale/zh-tw.min.js +1 -1
  65. package/locale/zh-tw.min.mjs +1 -1
  66. package/locale/zh-tw.mjs +1 -1
  67. package/package.json +3 -3
package/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! yc-pro-components v0.0.16 */
1
+ /*! yc-pro-components v0.0.18 */
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
 
@@ -20,10 +20,8 @@ var freeSelf = typeof self == 'object' && self && self.Object === Object && self
20
20
  /** Used as a reference to the global object. */
21
21
  var root = freeGlobal || freeSelf || Function('return this')();
22
22
 
23
- var root$1 = root;
24
-
25
23
  /** Built-in value references. */
26
- var Symbol$1 = root$1.Symbol;
24
+ var Symbol$1 = root.Symbol;
27
25
 
28
26
  /** Used for built-in method references. */
29
27
  var objectProto$f = Object.prototype;
@@ -418,7 +416,7 @@ function isFunction$1(value) {
418
416
  }
419
417
 
420
418
  /** Used to detect overreaching core-js shims. */
421
- var coreJsData = root$1['__core-js_shared__'];
419
+ var coreJsData = root['__core-js_shared__'];
422
420
 
423
421
  /** Used to detect methods masquerading as native. */
424
422
  var maskSrcKey = (function() {
@@ -529,7 +527,7 @@ function getNative(object, key) {
529
527
  }
530
528
 
531
529
  /* Built-in method references that are verified to be native. */
532
- var WeakMap$1 = getNative(root$1, 'WeakMap');
530
+ var WeakMap$1 = getNative(root, 'WeakMap');
533
531
 
534
532
  /** Built-in value references. */
535
533
  var objectCreate = Object.create;
@@ -1130,7 +1128,7 @@ var freeModule$2 = freeExports$2 && typeof module == 'object' && module && !modu
1130
1128
  var moduleExports$2 = freeModule$2 && freeModule$2.exports === freeExports$2;
1131
1129
 
1132
1130
  /** Built-in value references. */
1133
- var Buffer$1 = moduleExports$2 ? root$1.Buffer : undefined;
1131
+ var Buffer$1 = moduleExports$2 ? root.Buffer : undefined;
1134
1132
 
1135
1133
  /* Built-in method references for those with the same name as other `lodash` methods. */
1136
1134
  var nativeIsBuffer = Buffer$1 ? Buffer$1.isBuffer : undefined;
@@ -1749,7 +1747,7 @@ ListCache.prototype.has = listCacheHas;
1749
1747
  ListCache.prototype.set = listCacheSet;
1750
1748
 
1751
1749
  /* Built-in method references that are verified to be native. */
1752
- var Map$1 = getNative(root$1, 'Map');
1750
+ var Map$1 = getNative(root, 'Map');
1753
1751
 
1754
1752
  /**
1755
1753
  * Removes all key-value entries from the map.
@@ -2324,7 +2322,7 @@ var freeModule = freeExports && typeof module == 'object' && module && !module.n
2324
2322
  var moduleExports = freeModule && freeModule.exports === freeExports;
2325
2323
 
2326
2324
  /** Built-in value references. */
2327
- var Buffer = moduleExports ? root$1.Buffer : undefined,
2325
+ var Buffer = moduleExports ? root.Buffer : undefined,
2328
2326
  allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;
2329
2327
 
2330
2328
  /**
@@ -2501,13 +2499,13 @@ function getAllKeysIn(object) {
2501
2499
  }
2502
2500
 
2503
2501
  /* Built-in method references that are verified to be native. */
2504
- var DataView$1 = getNative(root$1, 'DataView');
2502
+ var DataView$1 = getNative(root, 'DataView');
2505
2503
 
2506
2504
  /* Built-in method references that are verified to be native. */
2507
- var Promise$1 = getNative(root$1, 'Promise');
2505
+ var Promise$1 = getNative(root, 'Promise');
2508
2506
 
2509
2507
  /* Built-in method references that are verified to be native. */
2510
- var Set$1 = getNative(root$1, 'Set');
2508
+ var Set$1 = getNative(root, 'Set');
2511
2509
 
2512
2510
  /** `Object#toString` result references. */
2513
2511
  var mapTag$4 = '[object Map]',
@@ -2586,7 +2584,7 @@ function initCloneArray(array) {
2586
2584
  }
2587
2585
 
2588
2586
  /** Built-in value references. */
2589
- var Uint8Array$1 = root$1.Uint8Array;
2587
+ var Uint8Array$1 = root.Uint8Array;
2590
2588
 
2591
2589
  /**
2592
2590
  * Creates a clone of `arrayBuffer`.
@@ -3873,7 +3871,7 @@ var baseEach = createBaseEach(baseForOwn);
3873
3871
  * // => Logs the number of milliseconds it took for the deferred invocation.
3874
3872
  */
3875
3873
  var now = function() {
3876
- return root$1.Date.now();
3874
+ return root.Date.now();
3877
3875
  };
3878
3876
 
3879
3877
  /** Error message constants. */
@@ -8626,12 +8624,15 @@ var _sfc_main$K = /* @__PURE__ */ defineComponent({
8626
8624
  isSubmitting.value = false;
8627
8625
  }, 300);
8628
8626
  };
8629
- const handleConfirm = debounce(doConfirm, 300, {
8627
+ const debouncedConfirm = debounce(doConfirm, 300, {
8630
8628
  leading: true,
8631
8629
  // 立即执行第一次
8632
8630
  trailing: false
8633
8631
  // 不执行最后一次
8634
8632
  });
8633
+ const handleConfirm = () => {
8634
+ debouncedConfirm();
8635
+ };
8635
8636
  const handleCancel = () => {
8636
8637
  emit("update:modelValue", false);
8637
8638
  emit("cancel");
@@ -8689,7 +8690,7 @@ var _sfc_main$K = /* @__PURE__ */ defineComponent({
8689
8690
  createVNode(unref(ElButton), {
8690
8691
  type: "primary",
8691
8692
  loading: computedLoading.value,
8692
- onClick: unref(handleConfirm)
8693
+ onClick: handleConfirm
8693
8694
  }, {
8694
8695
  default: withCtx(() => [
8695
8696
  createTextVNode(
@@ -8700,7 +8701,7 @@ var _sfc_main$K = /* @__PURE__ */ defineComponent({
8700
8701
  ]),
8701
8702
  _: 1
8702
8703
  /* STABLE */
8703
- }, 8, ["loading", "onClick"])
8704
+ }, 8, ["loading"])
8704
8705
  ])
8705
8706
  ],
8706
8707
  4
@@ -16818,12 +16819,15 @@ var _sfc_main$A = /* @__PURE__ */ defineComponent({
16818
16819
  }
16819
16820
  return false;
16820
16821
  };
16821
- const handleSubmit = debounce(doSubmit, 300, {
16822
+ const debouncedSubmit = debounce(doSubmit, 300, {
16822
16823
  leading: true,
16823
16824
  // 立即执行第一次
16824
16825
  trailing: false
16825
16826
  // 不执行最后一次
16826
16827
  });
16828
+ const handleSubmit = () => {
16829
+ debouncedSubmit();
16830
+ };
16827
16831
  const handleReset = () => {
16828
16832
  clearValidate();
16829
16833
  values.value = { ...props.defaultValues };
@@ -16972,7 +16976,7 @@ var _sfc_main$A = /* @__PURE__ */ defineComponent({
16972
16976
  style: normalizeStyle(style.value)
16973
16977
  },
16974
16978
  [
16975
- renderSlot(_ctx.$slots, "footer", normalizeProps(guardReactiveProps({ handleReset, handleSubmit: unref(handleSubmit) })), () => [
16979
+ renderSlot(_ctx.$slots, "footer", normalizeProps(guardReactiveProps({ handleReset, handleSubmit })), () => [
16976
16980
  _ctx.hasReset ? (openBlock(), createBlock(unref(ElButton), {
16977
16981
  key: 0,
16978
16982
  onClick: handleReset
@@ -16991,7 +16995,7 @@ var _sfc_main$A = /* @__PURE__ */ defineComponent({
16991
16995
  createVNode(unref(ElButton), {
16992
16996
  type: "primary",
16993
16997
  loading: computedLoading.value,
16994
- onClick: unref(handleSubmit)
16998
+ onClick: handleSubmit
16995
16999
  }, {
16996
17000
  default: withCtx(() => [
16997
17001
  createCommentVNode(" \u63D0\u4EA4 "),
@@ -17003,7 +17007,7 @@ var _sfc_main$A = /* @__PURE__ */ defineComponent({
17003
17007
  ]),
17004
17008
  _: 1
17005
17009
  /* STABLE */
17006
- }, 8, ["loading", "onClick"])
17010
+ }, 8, ["loading"])
17007
17011
  ])
17008
17012
  ],
17009
17013
  4
@@ -18114,12 +18118,15 @@ var _sfc_main$v = /* @__PURE__ */ defineComponent({
18114
18118
  subVisible.value = false;
18115
18119
  emit("confirm");
18116
18120
  };
18117
- const handleConfirmPopover = debounce(doConfirm, 300, {
18121
+ const debouncedConfirm = debounce(doConfirm, 300, {
18118
18122
  leading: true,
18119
18123
  // 立即执行第一次
18120
18124
  trailing: false
18121
18125
  // 不执行最后一次
18122
18126
  });
18127
+ const handleConfirmPopover = () => {
18128
+ debouncedConfirm();
18129
+ };
18123
18130
  return (_ctx, _cache) => {
18124
18131
  return openBlock(), createBlock(unref(ElPopover), mergeProps({
18125
18132
  visible: subVisible.value,
@@ -18152,7 +18159,7 @@ var _sfc_main$v = /* @__PURE__ */ defineComponent({
18152
18159
  size: "small",
18153
18160
  type: "primary",
18154
18161
  loading: computedLoading.value,
18155
- onClick: unref(handleConfirmPopover)
18162
+ onClick: handleConfirmPopover
18156
18163
  }, {
18157
18164
  default: withCtx(() => [
18158
18165
  createTextVNode(
@@ -18163,7 +18170,7 @@ var _sfc_main$v = /* @__PURE__ */ defineComponent({
18163
18170
  ]),
18164
18171
  _: 1
18165
18172
  /* STABLE */
18166
- }, 8, ["loading", "onClick"])
18173
+ }, 8, ["loading"])
18167
18174
  ])) : createCommentVNode("v-if", true)
18168
18175
  ]),
18169
18176
  _: 3
@@ -19623,12 +19630,15 @@ var _sfc_main$q = /* @__PURE__ */ defineComponent({
19623
19630
  }, 300);
19624
19631
  }
19625
19632
  };
19626
- const handleConfirm = debounce(doConfirm, 300, {
19633
+ const debouncedConfirm = debounce(doConfirm, 300, {
19627
19634
  leading: true,
19628
19635
  // 立即执行第一次
19629
19636
  trailing: false
19630
19637
  // 不执行最后一次
19631
19638
  });
19639
+ const handleConfirm = () => {
19640
+ debouncedConfirm();
19641
+ };
19632
19642
  const handleCancel = () => {
19633
19643
  subVisible.value = false;
19634
19644
  emit("update:visible", subVisible.value);
@@ -19655,7 +19665,7 @@ var _sfc_main$q = /* @__PURE__ */ defineComponent({
19655
19665
  }, _ctx.dialog, {
19656
19666
  onClose: handleClose,
19657
19667
  onCancel: handleCancel,
19658
- onConfirm: unref(handleConfirm)
19668
+ onConfirm: handleConfirm
19659
19669
  }), createSlots({
19660
19670
  default: withCtx(() => [
19661
19671
  createVNode(unref(PlusForm), mergeProps({
@@ -19706,11 +19716,11 @@ var _sfc_main$q = /* @__PURE__ */ defineComponent({
19706
19716
  _ctx.$slots["dialog-footer"] ? {
19707
19717
  name: "footer",
19708
19718
  fn: withCtx(() => [
19709
- renderSlot(_ctx.$slots, "dialog-footer", normalizeProps(guardReactiveProps({ handleConfirm: unref(handleConfirm), handleCancel })))
19719
+ renderSlot(_ctx.$slots, "dialog-footer", normalizeProps(guardReactiveProps({ handleConfirm, handleCancel })))
19710
19720
  ]),
19711
19721
  key: "1"
19712
19722
  } : void 0
19713
- ]), 1040, ["modelValue", "title", "confirm-loading", "onConfirm"]);
19723
+ ]), 1040, ["modelValue", "title", "confirm-loading"]);
19714
19724
  };
19715
19725
  }
19716
19726
  });
@@ -19792,12 +19802,15 @@ var _sfc_main$p = /* @__PURE__ */ defineComponent({
19792
19802
  emit("confirmError", errors);
19793
19803
  }
19794
19804
  };
19795
- const handleConfirm = debounce(doConfirm, 300, {
19805
+ const debouncedConfirm = debounce(doConfirm, 300, {
19796
19806
  leading: true,
19797
19807
  // 立即执行第一次
19798
19808
  trailing: false
19799
19809
  // 不执行最后一次
19800
19810
  });
19811
+ const handleConfirm = () => {
19812
+ debouncedConfirm();
19813
+ };
19801
19814
  const handleClose = () => {
19802
19815
  handleCancel();
19803
19816
  emit("update:visible", subVisible.value);
@@ -19871,7 +19884,7 @@ var _sfc_main$p = /* @__PURE__ */ defineComponent({
19871
19884
  name: "footer",
19872
19885
  fn: withCtx(() => [
19873
19886
  createElementVNode("div", _hoisted_1$d, [
19874
- renderSlot(_ctx.$slots, "drawer-footer", normalizeProps(guardReactiveProps({ handleConfirm: unref(handleConfirm), handleCancel })), () => [
19887
+ renderSlot(_ctx.$slots, "drawer-footer", normalizeProps(guardReactiveProps({ handleConfirm, handleCancel })), () => [
19875
19888
  createVNode(unref(ElButton), { onClick: handleCancel }, {
19876
19889
  default: withCtx(() => [
19877
19890
  createTextVNode(
@@ -19886,7 +19899,7 @@ var _sfc_main$p = /* @__PURE__ */ defineComponent({
19886
19899
  createVNode(unref(ElButton), {
19887
19900
  type: "primary",
19888
19901
  loading: computedLoading.value,
19889
- onClick: unref(handleConfirm)
19902
+ onClick: handleConfirm
19890
19903
  }, {
19891
19904
  default: withCtx(() => [
19892
19905
  createTextVNode(
@@ -19897,7 +19910,7 @@ var _sfc_main$p = /* @__PURE__ */ defineComponent({
19897
19910
  ]),
19898
19911
  _: 1
19899
19912
  /* STABLE */
19900
- }, 8, ["loading", "onClick"])
19913
+ }, 8, ["loading"])
19901
19914
  ])
19902
19915
  ])
19903
19916
  ]),
@@ -58041,12 +58054,15 @@ var _sfc_main$6 = /* @__PURE__ */ defineComponent({
58041
58054
  emit("confirm");
58042
58055
  dialogVisible.value = false;
58043
58056
  };
58044
- const handleConfirm = debounce(doConfirm, 300, {
58057
+ const debouncedConfirm = debounce(doConfirm, 300, {
58045
58058
  leading: true,
58046
58059
  // 立即执行第一次
58047
58060
  trailing: false
58048
58061
  // 不执行最后一次
58049
58062
  });
58063
+ const handleConfirm = () => {
58064
+ debouncedConfirm();
58065
+ };
58050
58066
  const handleCancel = () => {
58051
58067
  emit("cancel");
58052
58068
  dialogVisible.value = false;
@@ -58106,7 +58122,7 @@ var _sfc_main$6 = /* @__PURE__ */ defineComponent({
58106
58122
  createVNode(unref(ElButton), {
58107
58123
  type: currentStatusConfig.value.confirmButtonType,
58108
58124
  loading: isSubmitting.value,
58109
- onClick: unref(handleConfirm)
58125
+ onClick: handleConfirm
58110
58126
  }, {
58111
58127
  default: withCtx(() => [
58112
58128
  createTextVNode(
@@ -58117,7 +58133,7 @@ var _sfc_main$6 = /* @__PURE__ */ defineComponent({
58117
58133
  ]),
58118
58134
  _: 1
58119
58135
  /* STABLE */
58120
- }, 8, ["type", "loading", "onClick"])
58136
+ }, 8, ["type", "loading"])
58121
58137
  ], true)
58122
58138
  ])
58123
58139
  ]),
@@ -58141,7 +58157,7 @@ var _sfc_main$6 = /* @__PURE__ */ defineComponent({
58141
58157
  }
58142
58158
  });
58143
58159
 
58144
- var YcStatusDialog = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-a1851fcd"], ["__file", "index.vue"]]);
58160
+ var YcStatusDialog = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-7a078f73"], ["__file", "index.vue"]]);
58145
58161
 
58146
58162
  var _sfc_main$5 = /* @__PURE__ */ defineComponent({
58147
58163
  ...{
@@ -47,12 +47,15 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
47
47
  isSubmitting.value = false;
48
48
  }, 300);
49
49
  };
50
- const handleConfirm = lodashEs.debounce(doConfirm, 300, {
50
+ const debouncedConfirm = lodashEs.debounce(doConfirm, 300, {
51
51
  leading: true,
52
52
  // 立即执行第一次
53
53
  trailing: false
54
54
  // 不执行最后一次
55
55
  });
56
+ const handleConfirm = () => {
57
+ debouncedConfirm();
58
+ };
56
59
  const handleCancel = () => {
57
60
  emit("update:modelValue", false);
58
61
  emit("cancel");
@@ -110,7 +113,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
110
113
  vue.createVNode(vue.unref(elementPlus.ElButton), {
111
114
  type: "primary",
112
115
  loading: computedLoading.value,
113
- onClick: vue.unref(handleConfirm)
116
+ onClick: handleConfirm
114
117
  }, {
115
118
  default: vue.withCtx(() => [
116
119
  vue.createTextVNode(
@@ -121,7 +124,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
121
124
  ]),
122
125
  _: 1
123
126
  /* STABLE */
124
- }, 8, ["loading", "onClick"])
127
+ }, 8, ["loading"])
125
128
  ])
126
129
  ],
127
130
  4