jky-component-lib 0.0.132 → 0.0.138

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 (143) hide show
  1. package/dist/es/amap/style.css +6 -2
  2. package/dist/es/amap/style2.css +2 -13
  3. package/dist/es/amap/style3.css +12 -5
  4. package/dist/es/form/FormItem.vue.js +60 -54
  5. package/dist/es/form/FormItemWrapper.vue.js +13 -15
  6. package/dist/es/form/items/AddInputItem.vue.js +6 -3
  7. package/dist/es/form/items/AutocompleteItem.vue.d.ts +1 -1
  8. package/dist/es/form/items/AutocompleteItem.vue.js +18 -8
  9. package/dist/es/form/items/CascaderItem.vue.d.ts +1 -1
  10. package/dist/es/form/items/CascaderItem.vue.js +18 -8
  11. package/dist/es/form/items/CheckboxGroupItem.vue.d.ts +3 -1
  12. package/dist/es/form/items/CheckboxGroupItem.vue.js +17 -7
  13. package/dist/es/form/items/CodeMirrorEditorItem.vue.js +6 -3
  14. package/dist/es/form/items/ColorPickerItem.vue.d.ts +1 -1
  15. package/dist/es/form/items/ColorPickerItem.vue.js +17 -7
  16. package/dist/es/form/items/ColorPickerPanelItem.vue.d.ts +1 -1
  17. package/dist/es/form/items/ColorPickerPanelItem.vue.js +17 -7
  18. package/dist/es/form/items/CustomItem.vue.js +2 -1
  19. package/dist/es/form/items/DatePickerItem.vue.d.ts +1 -1
  20. package/dist/es/form/items/DatePickerItem.vue.js +21 -11
  21. package/dist/es/form/items/DividerItem.vue.d.ts +3 -1
  22. package/dist/es/form/items/DividerItem.vue.js +10 -3
  23. package/dist/es/form/items/FileUploadItem.vue.d.ts +1 -1
  24. package/dist/es/form/items/FileUploadItem.vue.js +19 -9
  25. package/dist/es/form/items/ImageUploadItem.vue.d.ts +1 -1
  26. package/dist/es/form/items/ImageUploadItem.vue.js +19 -9
  27. package/dist/es/form/items/InputItem.vue.d.ts +1 -1
  28. package/dist/es/form/items/InputItem.vue.js +13 -6
  29. package/dist/es/form/items/InputNumberItem.vue.d.ts +1 -1
  30. package/dist/es/form/items/InputNumberItem.vue.js +18 -8
  31. package/dist/es/form/items/InputTagItem.vue.d.ts +1 -1
  32. package/dist/es/form/items/InputTagItem.vue.js +17 -7
  33. package/dist/es/form/items/LinkedSelectItem.vue.d.ts +4 -1
  34. package/dist/es/form/items/LinkedSelectItem.vue.js +11 -4
  35. package/dist/es/form/items/MentionItem.vue.d.ts +1 -1
  36. package/dist/es/form/items/MentionItem.vue.js +17 -7
  37. package/dist/es/form/items/RadioGroupItem.vue.d.ts +3 -1
  38. package/dist/es/form/items/RadioGroupItem.vue.js +17 -7
  39. package/dist/es/form/items/RangeInputNumberItem.vue.d.ts +13 -0
  40. package/dist/es/form/items/RangeInputNumberItem.vue.js +116 -0
  41. package/dist/es/form/items/RangeInputNumberItem.vue2.js +4 -0
  42. package/dist/es/form/items/RateItem.vue.d.ts +1 -1
  43. package/dist/es/form/items/RateItem.vue.js +17 -7
  44. package/dist/es/form/items/RichEditorItem.vue.js +6 -3
  45. package/dist/es/form/items/SelectItem.vue.d.ts +1 -1
  46. package/dist/es/form/items/SelectItem.vue.js +18 -8
  47. package/dist/es/form/items/SelectTableItem.vue.d.ts +1 -1
  48. package/dist/es/form/items/SelectTableItem.vue.js +10 -3
  49. package/dist/es/form/items/SelectV2Item.vue.d.ts +1 -1
  50. package/dist/es/form/items/SelectV2Item.vue.js +19 -9
  51. package/dist/es/form/items/SliderItem.vue.d.ts +1 -1
  52. package/dist/es/form/items/SliderItem.vue.js +17 -7
  53. package/dist/es/form/items/SwitchItem.vue.d.ts +1 -1
  54. package/dist/es/form/items/SwitchItem.vue.js +17 -7
  55. package/dist/es/form/items/TextareaItem.vue.d.ts +1 -1
  56. package/dist/es/form/items/TextareaItem.vue.js +20 -10
  57. package/dist/es/form/items/TimePickerItem.vue.d.ts +1 -1
  58. package/dist/es/form/items/TimePickerItem.vue.js +21 -11
  59. package/dist/es/form/items/TimeSelectItem.vue.d.ts +1 -1
  60. package/dist/es/form/items/TimeSelectItem.vue.js +17 -7
  61. package/dist/es/form/items/TransferItem.vue.d.ts +1 -1
  62. package/dist/es/form/items/TransferItem.vue.js +18 -8
  63. package/dist/es/form/items/TreeSelectItem.vue.d.ts +1 -1
  64. package/dist/es/form/items/TreeSelectItem.vue.js +18 -8
  65. package/dist/es/modal/Footer.vue.d.ts +1 -1
  66. package/dist/es/modal/Footer.vue.js +4 -2
  67. package/dist/es/modal/Modal.vue.js +6 -3
  68. package/dist/es/package.json.js +1 -1
  69. package/dist/es/page-table/PageTable.vue.js +1 -1
  70. package/dist/es/page-table/PageTableColumn.vue.d.ts +1 -0
  71. package/dist/es/style.css +8 -0
  72. package/dist/lib/amap/style.css +6 -2
  73. package/dist/lib/amap/style2.css +2 -13
  74. package/dist/lib/amap/style3.css +12 -5
  75. package/dist/lib/form/FormItem.vue.js +9 -3
  76. package/dist/lib/form/FormItemWrapper.vue.js +11 -13
  77. package/dist/lib/form/items/AddInputItem.vue.js +6 -3
  78. package/dist/lib/form/items/AutocompleteItem.vue.d.ts +1 -1
  79. package/dist/lib/form/items/AutocompleteItem.vue.js +17 -7
  80. package/dist/lib/form/items/CascaderItem.vue.d.ts +1 -1
  81. package/dist/lib/form/items/CascaderItem.vue.js +17 -7
  82. package/dist/lib/form/items/CheckboxGroupItem.vue.d.ts +3 -1
  83. package/dist/lib/form/items/CheckboxGroupItem.vue.js +16 -6
  84. package/dist/lib/form/items/CodeMirrorEditorItem.vue.js +6 -3
  85. package/dist/lib/form/items/ColorPickerItem.vue.d.ts +1 -1
  86. package/dist/lib/form/items/ColorPickerItem.vue.js +16 -6
  87. package/dist/lib/form/items/ColorPickerPanelItem.vue.d.ts +1 -1
  88. package/dist/lib/form/items/ColorPickerPanelItem.vue.js +16 -6
  89. package/dist/lib/form/items/CustomItem.vue.js +2 -1
  90. package/dist/lib/form/items/DatePickerItem.vue.d.ts +1 -1
  91. package/dist/lib/form/items/DatePickerItem.vue.js +20 -10
  92. package/dist/lib/form/items/DividerItem.vue.d.ts +3 -1
  93. package/dist/lib/form/items/DividerItem.vue.js +9 -2
  94. package/dist/lib/form/items/FileUploadItem.vue.d.ts +1 -1
  95. package/dist/lib/form/items/FileUploadItem.vue.js +18 -8
  96. package/dist/lib/form/items/ImageUploadItem.vue.d.ts +1 -1
  97. package/dist/lib/form/items/ImageUploadItem.vue.js +18 -8
  98. package/dist/lib/form/items/InputItem.vue.d.ts +1 -1
  99. package/dist/lib/form/items/InputItem.vue.js +12 -5
  100. package/dist/lib/form/items/InputNumberItem.vue.d.ts +1 -1
  101. package/dist/lib/form/items/InputNumberItem.vue.js +17 -7
  102. package/dist/lib/form/items/InputTagItem.vue.d.ts +1 -1
  103. package/dist/lib/form/items/InputTagItem.vue.js +16 -6
  104. package/dist/lib/form/items/LinkedSelectItem.vue.d.ts +4 -1
  105. package/dist/lib/form/items/LinkedSelectItem.vue.js +10 -3
  106. package/dist/lib/form/items/MentionItem.vue.d.ts +1 -1
  107. package/dist/lib/form/items/MentionItem.vue.js +16 -6
  108. package/dist/lib/form/items/RadioGroupItem.vue.d.ts +3 -1
  109. package/dist/lib/form/items/RadioGroupItem.vue.js +16 -6
  110. package/dist/lib/form/items/RangeInputNumberItem.vue.d.ts +13 -0
  111. package/dist/lib/form/items/RangeInputNumberItem.vue.js +116 -0
  112. package/dist/lib/form/items/RangeInputNumberItem.vue2.js +4 -0
  113. package/dist/lib/form/items/RateItem.vue.d.ts +1 -1
  114. package/dist/lib/form/items/RateItem.vue.js +16 -6
  115. package/dist/lib/form/items/RichEditorItem.vue.js +6 -3
  116. package/dist/lib/form/items/SelectItem.vue.d.ts +1 -1
  117. package/dist/lib/form/items/SelectItem.vue.js +17 -7
  118. package/dist/lib/form/items/SelectTableItem.vue.d.ts +1 -1
  119. package/dist/lib/form/items/SelectTableItem.vue.js +9 -2
  120. package/dist/lib/form/items/SelectV2Item.vue.d.ts +1 -1
  121. package/dist/lib/form/items/SelectV2Item.vue.js +18 -8
  122. package/dist/lib/form/items/SliderItem.vue.d.ts +1 -1
  123. package/dist/lib/form/items/SliderItem.vue.js +16 -6
  124. package/dist/lib/form/items/SwitchItem.vue.d.ts +1 -1
  125. package/dist/lib/form/items/SwitchItem.vue.js +16 -6
  126. package/dist/lib/form/items/TextareaItem.vue.d.ts +1 -1
  127. package/dist/lib/form/items/TextareaItem.vue.js +19 -9
  128. package/dist/lib/form/items/TimePickerItem.vue.d.ts +1 -1
  129. package/dist/lib/form/items/TimePickerItem.vue.js +20 -10
  130. package/dist/lib/form/items/TimeSelectItem.vue.d.ts +1 -1
  131. package/dist/lib/form/items/TimeSelectItem.vue.js +16 -6
  132. package/dist/lib/form/items/TransferItem.vue.d.ts +1 -1
  133. package/dist/lib/form/items/TransferItem.vue.js +17 -7
  134. package/dist/lib/form/items/TreeSelectItem.vue.d.ts +1 -1
  135. package/dist/lib/form/items/TreeSelectItem.vue.js +17 -7
  136. package/dist/lib/modal/Footer.vue.d.ts +1 -1
  137. package/dist/lib/modal/Footer.vue.js +4 -2
  138. package/dist/lib/modal/Modal.vue.js +6 -3
  139. package/dist/lib/package.json.js +1 -1
  140. package/dist/lib/page-table/PageTable.vue.js +1 -1
  141. package/dist/lib/page-table/PageTableColumn.vue.d.ts +1 -0
  142. package/dist/lib/style.css +8 -0
  143. package/package.json +3 -6
@@ -36,11 +36,21 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
36
36
  setup(__props, { emit: __emit }) {
37
37
  const props = __props;
38
38
  const emit = __emit;
39
- const checkboxGroupProps = vue.computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
40
- modelValue: Array.isArray(props.modelValue) ? props.modelValue : [],
41
- disabled: props.disabled
42
- }));
39
+ const slots = vue.useSlots();
40
+ const checkboxGroupProps = vue.computed(() => {
41
+ var _a, _b;
42
+ return __spreadProps(__spreadValues({}, props.componentProps), {
43
+ modelValue: Array.isArray(props.modelValue) ? props.modelValue : [],
44
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
45
+ });
46
+ });
43
47
  const options = vue.computed(() => props.componentProps.options || props.config.options || []);
48
+ function getSlotNames() {
49
+ return Object.keys(slots);
50
+ }
51
+ function getComponentSlotNames() {
52
+ return Object.keys(props.componentSlots || {});
53
+ }
44
54
  return (_ctx, _cache) => {
45
55
  return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElCheckboxGroup), vue.mergeProps(checkboxGroupProps.value, {
46
56
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
@@ -61,7 +71,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
61
71
  ]),
62
72
  _: 2
63
73
  }, [
64
- vue.renderList(Object.keys(_ctx.$slots), (name, index) => {
74
+ vue.renderList(getSlotNames(), (name) => {
65
75
  return {
66
76
  name,
67
77
  fn: vue.withCtx((slotData) => [
@@ -69,7 +79,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
69
79
  ])
70
80
  };
71
81
  }),
72
- vue.renderList(Object.keys(__props.componentSlots || {}), (name) => {
82
+ vue.renderList(getComponentSlotNames(), (name) => {
73
83
  return {
74
84
  name,
75
85
  fn: vue.withCtx((slotData) => [
@@ -37,9 +37,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
37
37
  setup(__props, { emit: __emit }) {
38
38
  const props = __props;
39
39
  const emit = __emit;
40
- const editorProps = vue.computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
41
- disabled: props.disabled
42
- }));
40
+ const editorProps = vue.computed(() => {
41
+ var _a, _b;
42
+ return __spreadProps(__spreadValues({}, props.componentProps), {
43
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
44
+ });
45
+ });
43
46
  const innerValue = vue.computed({
44
47
  get: () => props.modelValue,
45
48
  set: (val) => emit("update:modelValue", val)
@@ -7,7 +7,7 @@ type __VLS_Props = {
7
7
  };
8
8
  declare function __VLS_template(): {
9
9
  attrs: Partial<{}>;
10
- slots: any;
10
+ slots: Partial<Record<string, (_: any) => any>>;
11
11
  refs: {};
12
12
  rootEl: any;
13
13
  };
@@ -36,15 +36,25 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
36
36
  setup(__props, { emit: __emit }) {
37
37
  const props = __props;
38
38
  const emit = __emit;
39
- const colorPickerProps = vue.computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
40
- modelValue: props.modelValue,
41
- disabled: props.disabled
42
- }));
39
+ const slots = vue.useSlots();
40
+ const colorPickerProps = vue.computed(() => {
41
+ var _a, _b;
42
+ return __spreadProps(__spreadValues({}, props.componentProps), {
43
+ modelValue: props.modelValue,
44
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
45
+ });
46
+ });
47
+ function getSlotNames() {
48
+ return Object.keys(slots);
49
+ }
50
+ function getComponentSlotNames() {
51
+ return Object.keys(props.componentSlots || {});
52
+ }
43
53
  return (_ctx, _cache) => {
44
54
  return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElColorPicker), vue.mergeProps(colorPickerProps.value, {
45
55
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
46
56
  }), vue.createSlots({ _: 2 }, [
47
- vue.renderList(Object.keys(_ctx.$slots), (name, index) => {
57
+ vue.renderList(getSlotNames(), (name) => {
48
58
  return {
49
59
  name,
50
60
  fn: vue.withCtx((slotData) => [
@@ -52,7 +62,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
52
62
  ])
53
63
  };
54
64
  }),
55
- vue.renderList(Object.keys(__props.componentSlots || {}), (name) => {
65
+ vue.renderList(getComponentSlotNames(), (name) => {
56
66
  return {
57
67
  name,
58
68
  fn: vue.withCtx((slotData) => [
@@ -7,7 +7,7 @@ type __VLS_Props = {
7
7
  };
8
8
  declare function __VLS_template(): {
9
9
  attrs: Partial<{}>;
10
- slots: any;
10
+ slots: Partial<Record<string, (_: any) => any>>;
11
11
  refs: {};
12
12
  rootEl: any;
13
13
  };
@@ -36,15 +36,25 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
36
36
  setup(__props, { emit: __emit }) {
37
37
  const props = __props;
38
38
  const emit = __emit;
39
- const colorPickerPanelProps = vue.computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
40
- modelValue: props.modelValue,
41
- disabled: props.disabled
42
- }));
39
+ const slots = vue.useSlots();
40
+ const colorPickerPanelProps = vue.computed(() => {
41
+ var _a, _b;
42
+ return __spreadProps(__spreadValues({}, props.componentProps), {
43
+ modelValue: props.modelValue,
44
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
45
+ });
46
+ });
47
+ function getSlotNames() {
48
+ return Object.keys(slots);
49
+ }
50
+ function getComponentSlotNames() {
51
+ return Object.keys(props.componentSlots || {});
52
+ }
43
53
  return (_ctx, _cache) => {
44
54
  return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElColorPickerPanel), vue.mergeProps(colorPickerPanelProps.value, {
45
55
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
46
56
  }), vue.createSlots({ _: 2 }, [
47
- vue.renderList(Object.keys(_ctx.$slots), (name, index) => {
57
+ vue.renderList(getSlotNames(), (name) => {
48
58
  return {
49
59
  name,
50
60
  fn: vue.withCtx((slotData) => [
@@ -52,7 +62,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
52
62
  ])
53
63
  };
54
64
  }),
55
- vue.renderList(Object.keys(__props.componentSlots || {}), (name) => {
65
+ vue.renderList(getComponentSlotNames(), (name) => {
56
66
  return {
57
67
  name,
58
68
  fn: vue.withCtx((slotData) => [
@@ -35,11 +35,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
35
35
  const props = __props;
36
36
  const emit = __emit;
37
37
  const customRender = vue.computed(() => {
38
+ var _a, _b;
38
39
  if (typeof props.config.render === "function") {
39
40
  return props.config.render({
40
41
  model: props.modelValue,
41
42
  field: props.config.field,
42
- disabled: props.disabled,
43
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled,
43
44
  onChange: (val) => emit("update:modelValue", val)
44
45
  });
45
46
  }
@@ -7,7 +7,7 @@ type __VLS_Props = {
7
7
  };
8
8
  declare function __VLS_template(): {
9
9
  attrs: Partial<{}>;
10
- slots: any;
10
+ slots: Partial<Record<string, (_: any) => any>>;
11
11
  refs: {};
12
12
  rootEl: any;
13
13
  };
@@ -36,19 +36,29 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
36
36
  setup(__props, { emit: __emit }) {
37
37
  const props = __props;
38
38
  const emit = __emit;
39
- const datepickerProps = vue.computed(() => __spreadProps(__spreadValues({
40
- startPlaceholder: "开始日期",
41
- endPlaceholder: "结束日期",
42
- placeholder: "选择日期"
43
- }, props.componentProps), {
44
- modelValue: props.modelValue,
45
- disabled: props.disabled
46
- }));
39
+ const slots = vue.useSlots();
40
+ const datepickerProps = vue.computed(() => {
41
+ var _a, _b;
42
+ return __spreadProps(__spreadValues({
43
+ startPlaceholder: "开始日期",
44
+ endPlaceholder: "结束日期",
45
+ placeholder: "选择日期"
46
+ }, props.componentProps), {
47
+ modelValue: props.modelValue,
48
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
49
+ });
50
+ });
51
+ function getSlotNames() {
52
+ return Object.keys(slots);
53
+ }
54
+ function getComponentSlotNames() {
55
+ return Object.keys(props.componentSlots || {});
56
+ }
47
57
  return (_ctx, _cache) => {
48
58
  return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElDatePicker), vue.mergeProps(datepickerProps.value, {
49
59
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
50
60
  }), vue.createSlots({ _: 2 }, [
51
- vue.renderList(Object.keys(_ctx.$slots), (name, index) => {
61
+ vue.renderList(getSlotNames(), (name) => {
52
62
  return {
53
63
  name,
54
64
  fn: vue.withCtx((slotData) => [
@@ -56,7 +66,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
56
66
  ])
57
67
  };
58
68
  }),
59
- vue.renderList(Object.keys(__props.componentSlots || {}), (name) => {
69
+ vue.renderList(getComponentSlotNames(), (name) => {
60
70
  return {
61
71
  name,
62
72
  fn: vue.withCtx((slotData) => [
@@ -7,7 +7,9 @@ type __VLS_Props = {
7
7
  };
8
8
  declare function __VLS_template(): {
9
9
  attrs: Partial<{}>;
10
- slots: any;
10
+ slots: Partial<Record<string, (_: any) => any>> & {
11
+ default?(_: {}): any;
12
+ };
11
13
  refs: {};
12
14
  rootEl: any;
13
15
  };
@@ -34,7 +34,14 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
34
34
  },
35
35
  setup(__props) {
36
36
  const props = __props;
37
+ const slots = vue.useSlots();
37
38
  const dividerProps = vue.computed(() => __spreadValues({}, props.componentProps));
39
+ function getSlotNames() {
40
+ return Object.keys(slots);
41
+ }
42
+ function getComponentSlotNames() {
43
+ return Object.keys(props.componentSlots || {});
44
+ }
38
45
  return (_ctx, _cache) => {
39
46
  return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElDivider), vue.normalizeProps(vue.guardReactiveProps(dividerProps.value)), vue.createSlots({
40
47
  default: vue.withCtx(() => [
@@ -44,7 +51,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
44
51
  ]),
45
52
  _: 2
46
53
  }, [
47
- vue.renderList(Object.keys(_ctx.$slots), (name, index) => {
54
+ vue.renderList(getSlotNames(), (name) => {
48
55
  return {
49
56
  name,
50
57
  fn: vue.withCtx((slotData) => [
@@ -52,7 +59,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
52
59
  ])
53
60
  };
54
61
  }),
55
- vue.renderList(Object.keys(__props.componentSlots || {}), (name) => {
62
+ vue.renderList(getComponentSlotNames(), (name) => {
56
63
  return {
57
64
  name,
58
65
  fn: vue.withCtx((slotData) => [
@@ -7,7 +7,7 @@ type __VLS_Props = {
7
7
  };
8
8
  declare function __VLS_template(): {
9
9
  attrs: Partial<{}>;
10
- slots: any;
10
+ slots: Partial<Record<string, (_: any) => any>>;
11
11
  refs: {};
12
12
  rootEl: any;
13
13
  };
@@ -36,13 +36,23 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
36
36
  setup(__props, { emit: __emit }) {
37
37
  const props = __props;
38
38
  const emit = __emit;
39
- const uploadProps = vue.computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
40
- action: props.componentProps.action || "#",
41
- fileList: props.componentProps.fileList || [],
42
- listType: props.componentProps.listType || "text",
43
- disabled: props.disabled
44
- }));
39
+ const slots = vue.useSlots();
40
+ const uploadProps = vue.computed(() => {
41
+ var _a, _b;
42
+ return __spreadProps(__spreadValues({}, props.componentProps), {
43
+ action: props.componentProps.action || "#",
44
+ fileList: props.componentProps.fileList || [],
45
+ listType: props.componentProps.listType || "text",
46
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
47
+ });
48
+ });
45
49
  const listType = vue.computed(() => props.componentProps.listType || "text");
50
+ function getSlotNames() {
51
+ return Object.keys(slots);
52
+ }
53
+ function getComponentSlotNames() {
54
+ return Object.keys(props.componentSlots || {});
55
+ }
46
56
  return (_ctx, _cache) => {
47
57
  return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElUpload), vue.mergeProps(uploadProps.value, {
48
58
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
@@ -59,7 +69,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
59
69
  ]),
60
70
  key: "0"
61
71
  } : void 0,
62
- vue.renderList(Object.keys(_ctx.$slots), (name, index) => {
72
+ vue.renderList(getSlotNames(), (name) => {
63
73
  return {
64
74
  name,
65
75
  fn: vue.withCtx((slotData) => [
@@ -67,7 +77,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
67
77
  ])
68
78
  };
69
79
  }),
70
- vue.renderList(Object.keys(__props.componentSlots || {}), (name) => {
80
+ vue.renderList(getComponentSlotNames(), (name) => {
71
81
  return {
72
82
  name,
73
83
  fn: vue.withCtx((slotData) => [
@@ -7,7 +7,7 @@ type __VLS_Props = {
7
7
  };
8
8
  declare function __VLS_template(): {
9
9
  attrs: Partial<{}>;
10
- slots: any;
10
+ slots: Partial<Record<string, (_: any) => any>>;
11
11
  refs: {};
12
12
  rootEl: any;
13
13
  };
@@ -38,13 +38,23 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
38
38
  setup(__props, { emit: __emit }) {
39
39
  const props = __props;
40
40
  const emit = __emit;
41
- const uploadProps = vue.computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
42
- action: props.componentProps.action || "#",
43
- fileList: props.componentProps.fileList || [],
44
- listType: props.componentProps.listType || "picture-card",
45
- disabled: props.disabled
46
- }));
41
+ const slots = vue.useSlots();
42
+ const uploadProps = vue.computed(() => {
43
+ var _a, _b;
44
+ return __spreadProps(__spreadValues({}, props.componentProps), {
45
+ action: props.componentProps.action || "#",
46
+ fileList: props.componentProps.fileList || [],
47
+ listType: props.componentProps.listType || "picture-card",
48
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
49
+ });
50
+ });
47
51
  const listType = vue.computed(() => props.componentProps.listType || "picture-card");
52
+ function getSlotNames() {
53
+ return Object.keys(slots);
54
+ }
55
+ function getComponentSlotNames() {
56
+ return Object.keys(props.componentSlots || {});
57
+ }
48
58
  return (_ctx, _cache) => {
49
59
  return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElUpload), vue.mergeProps(uploadProps.value, {
50
60
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
@@ -74,7 +84,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
74
84
  ]),
75
85
  key: "1"
76
86
  } : void 0,
77
- vue.renderList(Object.keys(_ctx.$slots), (name, index) => {
87
+ vue.renderList(getSlotNames(), (name) => {
78
88
  return {
79
89
  name,
80
90
  fn: vue.withCtx((slotData) => [
@@ -82,7 +92,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
82
92
  ])
83
93
  };
84
94
  }),
85
- vue.renderList(Object.keys(__props.componentSlots || {}), (name) => {
95
+ vue.renderList(getComponentSlotNames(), (name) => {
86
96
  return {
87
97
  name,
88
98
  fn: vue.withCtx((slotData) => [
@@ -7,7 +7,7 @@ type __VLS_Props = {
7
7
  };
8
8
  declare function __VLS_template(): {
9
9
  attrs: Partial<{}>;
10
- slots: any;
10
+ slots: Partial<Record<string, (_: any) => any>>;
11
11
  refs: {};
12
12
  rootEl: any;
13
13
  };
@@ -36,22 +36,29 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
36
36
  setup(__props, { emit: __emit }) {
37
37
  const props = __props;
38
38
  const emit = __emit;
39
+ const slots = vue.useSlots();
39
40
  const inputProps = vue.computed(() => {
40
- var _a;
41
+ var _a, _b, _c;
41
42
  return __spreadProps(__spreadValues({}, props.componentProps), {
42
43
  modelValue: props.modelValue,
43
44
  placeholder: props.componentProps.placeholder || props.config.placeholder || "请输入",
44
- disabled: props.disabled,
45
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled,
45
46
  prefixIcon: props.config.prefixIcon,
46
47
  suffixIcon: props.config.suffixIcon,
47
- class: ["w-full min-w-25", (_a = props.componentProps) == null ? void 0 : _a.class]
48
+ class: ["w-full min-w-25", (_c = props.componentProps) == null ? void 0 : _c.class]
48
49
  });
49
50
  });
51
+ function getSlotNames() {
52
+ return Object.keys(slots);
53
+ }
54
+ function getComponentSlotNames() {
55
+ return Object.keys(props.componentSlots || {});
56
+ }
50
57
  return (_ctx, _cache) => {
51
58
  return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElInput), vue.mergeProps(inputProps.value, {
52
59
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
53
60
  }), vue.createSlots({ _: 2 }, [
54
- vue.renderList(Object.keys(_ctx.$slots), (name, index) => {
61
+ vue.renderList(getSlotNames(), (name) => {
55
62
  return {
56
63
  name,
57
64
  fn: vue.withCtx((slotData) => [
@@ -59,7 +66,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
59
66
  ])
60
67
  };
61
68
  }),
62
- vue.renderList(Object.keys(__props.componentSlots || {}), (name) => {
69
+ vue.renderList(getComponentSlotNames(), (name) => {
63
70
  return {
64
71
  name,
65
72
  fn: vue.withCtx((slotData) => [
@@ -7,7 +7,7 @@ type __VLS_Props = {
7
7
  };
8
8
  declare function __VLS_template(): {
9
9
  attrs: Partial<{}>;
10
- slots: any;
10
+ slots: Partial<Record<string, (_: any) => any>>;
11
11
  refs: {};
12
12
  rootEl: any;
13
13
  };
@@ -36,20 +36,30 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
36
36
  setup(__props, { emit: __emit }) {
37
37
  const props = __props;
38
38
  const emit = __emit;
39
+ const slots = vue.useSlots();
39
40
  const numberModelValue = vue.computed(() => {
40
41
  const val = props.modelValue;
41
42
  return val === "" || val === null || val === void 0 ? null : Number(val);
42
43
  });
43
- const inputNumberProps = vue.computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
44
- modelValue: numberModelValue.value,
45
- placeholder: props.componentProps.placeholder || props.config.placeholder || "请输入",
46
- disabled: props.disabled
47
- }));
44
+ const inputNumberProps = vue.computed(() => {
45
+ var _a, _b;
46
+ return __spreadProps(__spreadValues({}, props.componentProps), {
47
+ modelValue: numberModelValue.value,
48
+ placeholder: props.componentProps.placeholder || props.config.placeholder || "请输入",
49
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
50
+ });
51
+ });
52
+ function getSlotNames() {
53
+ return Object.keys(slots);
54
+ }
55
+ function getComponentSlotNames() {
56
+ return Object.keys(props.componentSlots || {});
57
+ }
48
58
  return (_ctx, _cache) => {
49
59
  return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElInputNumber), vue.mergeProps(inputNumberProps.value, {
50
60
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
51
61
  }), vue.createSlots({ _: 2 }, [
52
- vue.renderList(Object.keys(_ctx.$slots), (name, index) => {
62
+ vue.renderList(getSlotNames(), (name) => {
53
63
  return {
54
64
  name,
55
65
  fn: vue.withCtx((slotData) => [
@@ -57,7 +67,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
57
67
  ])
58
68
  };
59
69
  }),
60
- vue.renderList(Object.keys(__props.componentSlots || {}), (name) => {
70
+ vue.renderList(getComponentSlotNames(), (name) => {
61
71
  return {
62
72
  name,
63
73
  fn: vue.withCtx((slotData) => [
@@ -7,7 +7,7 @@ type __VLS_Props = {
7
7
  };
8
8
  declare function __VLS_template(): {
9
9
  attrs: Partial<{}>;
10
- slots: any;
10
+ slots: Partial<Record<string, (_: any) => any>>;
11
11
  refs: {};
12
12
  rootEl: any;
13
13
  };
@@ -36,15 +36,25 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
36
36
  setup(__props, { emit: __emit }) {
37
37
  const props = __props;
38
38
  const emit = __emit;
39
- const inputTagProps = vue.computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
40
- modelValue: props.modelValue || [],
41
- disabled: props.disabled
42
- }));
39
+ const slots = vue.useSlots();
40
+ const inputTagProps = vue.computed(() => {
41
+ var _a, _b;
42
+ return __spreadProps(__spreadValues({}, props.componentProps), {
43
+ modelValue: props.modelValue || [],
44
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
45
+ });
46
+ });
47
+ function getSlotNames() {
48
+ return Object.keys(slots);
49
+ }
50
+ function getComponentSlotNames() {
51
+ return Object.keys(props.componentSlots || {});
52
+ }
43
53
  return (_ctx, _cache) => {
44
54
  return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElInputTag), vue.mergeProps(inputTagProps.value, {
45
55
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
46
56
  }), vue.createSlots({ _: 2 }, [
47
- vue.renderList(Object.keys(_ctx.$slots), (name, index) => {
57
+ vue.renderList(getSlotNames(), (name) => {
48
58
  return {
49
59
  name,
50
60
  fn: vue.withCtx((slotData) => [
@@ -52,7 +62,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
52
62
  ])
53
63
  };
54
64
  }),
55
- vue.renderList(Object.keys(__props.componentSlots || {}), (name) => {
65
+ vue.renderList(getComponentSlotNames(), (name) => {
56
66
  return {
57
67
  name,
58
68
  fn: vue.withCtx((slotData) => [
@@ -8,7 +8,10 @@ type __VLS_Props = {
8
8
  };
9
9
  declare function __VLS_template(): {
10
10
  attrs: Partial<{}>;
11
- slots: any;
11
+ slots: Partial<Record<string, (_: any) => any>> & {
12
+ prefix?(_: {}): any;
13
+ suffix?(_: {}): any;
14
+ };
12
15
  refs: {};
13
16
  rootEl: HTMLDivElement;
14
17
  };
@@ -57,6 +57,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
57
57
  setup(__props, { emit: __emit }) {
58
58
  const props = __props;
59
59
  const emit = __emit;
60
+ const slots = vue.useSlots();
60
61
  const config = vue.computed(() => {
61
62
  var _a;
62
63
  return ((_a = props.config) == null ? void 0 : _a.config) || {};
@@ -129,6 +130,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
129
130
  loadOptions(0, void 0);
130
131
  }
131
132
  });
133
+ function getSlotNames() {
134
+ return Object.keys(slots);
135
+ }
136
+ function getComponentSlotNames() {
137
+ return Object.keys(props.componentSlots || {});
138
+ }
132
139
  return (_ctx, _cache) => {
133
140
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
134
141
  vue.renderSlot(_ctx.$slots, "prefix"),
@@ -139,7 +146,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
139
146
  modelValue: values.value[index],
140
147
  "onUpdate:modelValue": ($event) => values.value[index] = $event,
141
148
  placeholder: ((_b = (_a = config.value) == null ? void 0 : _a.placeholders) == null ? void 0 : _b[index]) || "请选择",
142
- disabled: __props.disabled || index > 0 && values.value[index - 1] === void 0 && values.value[index - 1] !== null,
149
+ disabled: __props.disabled || index > 0 && (values.value[index - 1] === void 0 || values.value[index - 1] === null),
143
150
  filterable: (_d = (_c = config.value) == null ? void 0 : _c.filterable) != null ? _d : false,
144
151
  clearable: (_f = (_e = config.value) == null ? void 0 : _e.clearable) != null ? _f : true,
145
152
  loading: loadingList.value[index],
@@ -159,7 +166,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
159
166
  ]),
160
167
  _: 2
161
168
  }, [
162
- vue.renderList(Object.keys(_ctx.$slots), (name, i) => {
169
+ vue.renderList(getSlotNames(), (name) => {
163
170
  return {
164
171
  name,
165
172
  fn: vue.withCtx((slotData) => [
@@ -167,7 +174,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
167
174
  ])
168
175
  };
169
176
  }),
170
- vue.renderList(Object.keys(__props.componentSlots || {}), (name, i) => {
177
+ vue.renderList(getComponentSlotNames(), (name) => {
171
178
  return {
172
179
  name,
173
180
  fn: vue.withCtx((slotData) => [
@@ -7,7 +7,7 @@ type __VLS_Props = {
7
7
  };
8
8
  declare function __VLS_template(): {
9
9
  attrs: Partial<{}>;
10
- slots: any;
10
+ slots: Partial<Record<string, (_: any) => any>>;
11
11
  refs: {};
12
12
  rootEl: any;
13
13
  };