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
@@ -33,11 +33,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
33
33
  const props = __props;
34
34
  const emit = __emit;
35
35
  const customRender = computed(() => {
36
+ var _a, _b;
36
37
  if (typeof props.config.render === "function") {
37
38
  return props.config.render({
38
39
  model: props.modelValue,
39
40
  field: props.config.field,
40
- disabled: props.disabled,
41
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled,
41
42
  onChange: (val) => emit("update:modelValue", val)
42
43
  });
43
44
  }
@@ -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
  };
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import { defineComponent, computed, openBlock, createBlock, unref, mergeProps, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps, resolveDynamicComponent } from "vue";
20
+ import { defineComponent, useSlots, computed, openBlock, createBlock, unref, mergeProps, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps, resolveDynamicComponent } from "vue";
21
21
  import { ElDatePicker } from "element-plus";
22
22
  const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
23
23
  name: "JkyFormItemDatePicker"
@@ -34,19 +34,29 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
34
34
  setup(__props, { emit: __emit }) {
35
35
  const props = __props;
36
36
  const emit = __emit;
37
- const datepickerProps = computed(() => __spreadProps(__spreadValues({
38
- startPlaceholder: "开始日期",
39
- endPlaceholder: "结束日期",
40
- placeholder: "选择日期"
41
- }, props.componentProps), {
42
- modelValue: props.modelValue,
43
- disabled: props.disabled
44
- }));
37
+ const slots = useSlots();
38
+ const datepickerProps = computed(() => {
39
+ var _a, _b;
40
+ return __spreadProps(__spreadValues({
41
+ startPlaceholder: "开始日期",
42
+ endPlaceholder: "结束日期",
43
+ placeholder: "选择日期"
44
+ }, props.componentProps), {
45
+ modelValue: props.modelValue,
46
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
47
+ });
48
+ });
49
+ function getSlotNames() {
50
+ return Object.keys(slots);
51
+ }
52
+ function getComponentSlotNames() {
53
+ return Object.keys(props.componentSlots || {});
54
+ }
45
55
  return (_ctx, _cache) => {
46
56
  return openBlock(), createBlock(unref(ElDatePicker), mergeProps(datepickerProps.value, {
47
57
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
48
58
  }), createSlots({ _: 2 }, [
49
- renderList(Object.keys(_ctx.$slots), (name, index) => {
59
+ renderList(getSlotNames(), (name) => {
50
60
  return {
51
61
  name,
52
62
  fn: withCtx((slotData) => [
@@ -54,7 +64,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
54
64
  ])
55
65
  };
56
66
  }),
57
- renderList(Object.keys(__props.componentSlots || {}), (name) => {
67
+ renderList(getComponentSlotNames(), (name) => {
58
68
  return {
59
69
  name,
60
70
  fn: 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
  };
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import { defineComponent, computed, openBlock, createBlock, unref, normalizeProps, guardReactiveProps, createSlots, withCtx, renderSlot, createElementBlock, Fragment, createTextVNode, toDisplayString, renderList, resolveDynamicComponent } from "vue";
20
+ import { defineComponent, useSlots, computed, openBlock, createBlock, unref, normalizeProps, guardReactiveProps, createSlots, withCtx, renderSlot, createElementBlock, Fragment, createTextVNode, toDisplayString, renderList, resolveDynamicComponent } from "vue";
21
21
  import { ElDivider } from "element-plus";
22
22
  const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
23
23
  name: "JkyFormItemDivider"
@@ -32,7 +32,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
32
32
  },
33
33
  setup(__props) {
34
34
  const props = __props;
35
+ const slots = useSlots();
35
36
  const dividerProps = computed(() => __spreadValues({}, props.componentProps));
37
+ function getSlotNames() {
38
+ return Object.keys(slots);
39
+ }
40
+ function getComponentSlotNames() {
41
+ return Object.keys(props.componentSlots || {});
42
+ }
36
43
  return (_ctx, _cache) => {
37
44
  return openBlock(), createBlock(unref(ElDivider), normalizeProps(guardReactiveProps(dividerProps.value)), createSlots({
38
45
  default: withCtx(() => [
@@ -42,7 +49,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
42
49
  ]),
43
50
  _: 2
44
51
  }, [
45
- renderList(Object.keys(_ctx.$slots), (name, index) => {
52
+ renderList(getSlotNames(), (name) => {
46
53
  return {
47
54
  name,
48
55
  fn: withCtx((slotData) => [
@@ -50,7 +57,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
50
57
  ])
51
58
  };
52
59
  }),
53
- renderList(Object.keys(__props.componentSlots || {}), (name) => {
60
+ renderList(getComponentSlotNames(), (name) => {
54
61
  return {
55
62
  name,
56
63
  fn: 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
  };
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import { defineComponent, computed, openBlock, createBlock, unref, mergeProps, createSlots, withCtx, createVNode, createTextVNode, renderList, renderSlot, normalizeProps, guardReactiveProps, resolveDynamicComponent } from "vue";
20
+ import { defineComponent, useSlots, computed, openBlock, createBlock, unref, mergeProps, createSlots, withCtx, createVNode, createTextVNode, renderList, renderSlot, normalizeProps, guardReactiveProps, resolveDynamicComponent } from "vue";
21
21
  import { ElUpload, ElButton } from "element-plus";
22
22
  const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
23
23
  name: "JkyFormItemFileUpload"
@@ -34,13 +34,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
34
34
  setup(__props, { emit: __emit }) {
35
35
  const props = __props;
36
36
  const emit = __emit;
37
- const uploadProps = computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
38
- action: props.componentProps.action || "#",
39
- fileList: props.componentProps.fileList || [],
40
- listType: props.componentProps.listType || "text",
41
- disabled: props.disabled
42
- }));
37
+ const slots = useSlots();
38
+ const uploadProps = computed(() => {
39
+ var _a, _b;
40
+ return __spreadProps(__spreadValues({}, props.componentProps), {
41
+ action: props.componentProps.action || "#",
42
+ fileList: props.componentProps.fileList || [],
43
+ listType: props.componentProps.listType || "text",
44
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
45
+ });
46
+ });
43
47
  const listType = computed(() => props.componentProps.listType || "text");
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 openBlock(), createBlock(unref(ElUpload), mergeProps(uploadProps.value, {
46
56
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
@@ -57,7 +67,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
57
67
  ]),
58
68
  key: "0"
59
69
  } : void 0,
60
- renderList(Object.keys(_ctx.$slots), (name, index) => {
70
+ renderList(getSlotNames(), (name) => {
61
71
  return {
62
72
  name,
63
73
  fn: withCtx((slotData) => [
@@ -65,7 +75,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
65
75
  ])
66
76
  };
67
77
  }),
68
- renderList(Object.keys(__props.componentSlots || {}), (name) => {
78
+ renderList(getComponentSlotNames(), (name) => {
69
79
  return {
70
80
  name,
71
81
  fn: 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
  };
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import { defineComponent, computed, openBlock, createBlock, unref, mergeProps, createSlots, withCtx, createElementVNode, createVNode, createTextVNode, renderList, renderSlot, normalizeProps, guardReactiveProps, resolveDynamicComponent } from "vue";
20
+ import { defineComponent, useSlots, computed, openBlock, createBlock, unref, mergeProps, createSlots, withCtx, createElementVNode, createVNode, createTextVNode, renderList, renderSlot, normalizeProps, guardReactiveProps, resolveDynamicComponent } from "vue";
21
21
  import { Plus } from "@element-plus/icons-vue";
22
22
  import { ElUpload, ElIcon, ElButton } from "element-plus";
23
23
  const _hoisted_1 = { class: "el-upload__picture-card-wrapper" };
@@ -36,13 +36,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
36
36
  setup(__props, { emit: __emit }) {
37
37
  const props = __props;
38
38
  const emit = __emit;
39
- const uploadProps = computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
40
- action: props.componentProps.action || "#",
41
- fileList: props.componentProps.fileList || [],
42
- listType: props.componentProps.listType || "picture-card",
43
- disabled: props.disabled
44
- }));
39
+ const slots = useSlots();
40
+ const uploadProps = 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 || "picture-card",
46
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
47
+ });
48
+ });
45
49
  const listType = computed(() => props.componentProps.listType || "picture-card");
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 openBlock(), createBlock(unref(ElUpload), mergeProps(uploadProps.value, {
48
58
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
@@ -72,7 +82,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
72
82
  ]),
73
83
  key: "1"
74
84
  } : void 0,
75
- renderList(Object.keys(_ctx.$slots), (name, index) => {
85
+ renderList(getSlotNames(), (name) => {
76
86
  return {
77
87
  name,
78
88
  fn: withCtx((slotData) => [
@@ -80,7 +90,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
80
90
  ])
81
91
  };
82
92
  }),
83
- renderList(Object.keys(__props.componentSlots || {}), (name) => {
93
+ renderList(getComponentSlotNames(), (name) => {
84
94
  return {
85
95
  name,
86
96
  fn: 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
  };
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import { defineComponent, computed, openBlock, createBlock, unref, mergeProps, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps, resolveDynamicComponent } from "vue";
20
+ import { defineComponent, useSlots, computed, openBlock, createBlock, unref, mergeProps, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps, resolveDynamicComponent } from "vue";
21
21
  import { ElInput } from "element-plus";
22
22
  const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
23
23
  name: "JkyFormItemInput"
@@ -34,22 +34,29 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
34
34
  setup(__props, { emit: __emit }) {
35
35
  const props = __props;
36
36
  const emit = __emit;
37
+ const slots = useSlots();
37
38
  const inputProps = computed(() => {
38
- var _a;
39
+ var _a, _b, _c;
39
40
  return __spreadProps(__spreadValues({}, props.componentProps), {
40
41
  modelValue: props.modelValue,
41
42
  placeholder: props.componentProps.placeholder || props.config.placeholder || "请输入",
42
- disabled: props.disabled,
43
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled,
43
44
  prefixIcon: props.config.prefixIcon,
44
45
  suffixIcon: props.config.suffixIcon,
45
- class: ["w-full min-w-25", (_a = props.componentProps) == null ? void 0 : _a.class]
46
+ class: ["w-full min-w-25", (_c = props.componentProps) == null ? void 0 : _c.class]
46
47
  });
47
48
  });
49
+ function getSlotNames() {
50
+ return Object.keys(slots);
51
+ }
52
+ function getComponentSlotNames() {
53
+ return Object.keys(props.componentSlots || {});
54
+ }
48
55
  return (_ctx, _cache) => {
49
56
  return openBlock(), createBlock(unref(ElInput), mergeProps(inputProps.value, {
50
57
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
51
58
  }), createSlots({ _: 2 }, [
52
- renderList(Object.keys(_ctx.$slots), (name, index) => {
59
+ renderList(getSlotNames(), (name) => {
53
60
  return {
54
61
  name,
55
62
  fn: withCtx((slotData) => [
@@ -57,7 +64,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
57
64
  ])
58
65
  };
59
66
  }),
60
- renderList(Object.keys(__props.componentSlots || {}), (name) => {
67
+ renderList(getComponentSlotNames(), (name) => {
61
68
  return {
62
69
  name,
63
70
  fn: 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
  };
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import { defineComponent, computed, openBlock, createBlock, unref, mergeProps, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps, resolveDynamicComponent } from "vue";
20
+ import { defineComponent, useSlots, computed, openBlock, createBlock, unref, mergeProps, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps, resolveDynamicComponent } from "vue";
21
21
  import { ElInputNumber } from "element-plus";
22
22
  const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
23
23
  name: "JkyFormItemInputNumber"
@@ -34,20 +34,30 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
34
34
  setup(__props, { emit: __emit }) {
35
35
  const props = __props;
36
36
  const emit = __emit;
37
+ const slots = useSlots();
37
38
  const numberModelValue = computed(() => {
38
39
  const val = props.modelValue;
39
40
  return val === "" || val === null || val === void 0 ? null : Number(val);
40
41
  });
41
- const inputNumberProps = computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
42
- modelValue: numberModelValue.value,
43
- placeholder: props.componentProps.placeholder || props.config.placeholder || "请输入",
44
- disabled: props.disabled
45
- }));
42
+ const inputNumberProps = computed(() => {
43
+ var _a, _b;
44
+ return __spreadProps(__spreadValues({}, props.componentProps), {
45
+ modelValue: numberModelValue.value,
46
+ placeholder: props.componentProps.placeholder || props.config.placeholder || "请输入",
47
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
48
+ });
49
+ });
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 openBlock(), createBlock(unref(ElInputNumber), mergeProps(inputNumberProps.value, {
48
58
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
49
59
  }), createSlots({ _: 2 }, [
50
- renderList(Object.keys(_ctx.$slots), (name, index) => {
60
+ renderList(getSlotNames(), (name) => {
51
61
  return {
52
62
  name,
53
63
  fn: withCtx((slotData) => [
@@ -55,7 +65,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
55
65
  ])
56
66
  };
57
67
  }),
58
- renderList(Object.keys(__props.componentSlots || {}), (name) => {
68
+ renderList(getComponentSlotNames(), (name) => {
59
69
  return {
60
70
  name,
61
71
  fn: 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
  };
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import { defineComponent, computed, openBlock, createBlock, unref, mergeProps, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps, resolveDynamicComponent } from "vue";
20
+ import { defineComponent, useSlots, computed, openBlock, createBlock, unref, mergeProps, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps, resolveDynamicComponent } from "vue";
21
21
  import { ElInputTag } from "element-plus";
22
22
  const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
23
23
  name: "JkyFormItemInputTag"
@@ -34,15 +34,25 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
34
34
  setup(__props, { emit: __emit }) {
35
35
  const props = __props;
36
36
  const emit = __emit;
37
- const inputTagProps = computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
38
- modelValue: props.modelValue || [],
39
- disabled: props.disabled
40
- }));
37
+ const slots = useSlots();
38
+ const inputTagProps = computed(() => {
39
+ var _a, _b;
40
+ return __spreadProps(__spreadValues({}, props.componentProps), {
41
+ modelValue: props.modelValue || [],
42
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
43
+ });
44
+ });
45
+ function getSlotNames() {
46
+ return Object.keys(slots);
47
+ }
48
+ function getComponentSlotNames() {
49
+ return Object.keys(props.componentSlots || {});
50
+ }
41
51
  return (_ctx, _cache) => {
42
52
  return openBlock(), createBlock(unref(ElInputTag), mergeProps(inputTagProps.value, {
43
53
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
44
54
  }), createSlots({ _: 2 }, [
45
- renderList(Object.keys(_ctx.$slots), (name, index) => {
55
+ renderList(getSlotNames(), (name) => {
46
56
  return {
47
57
  name,
48
58
  fn: withCtx((slotData) => [
@@ -50,7 +60,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
50
60
  ])
51
61
  };
52
62
  }),
53
- renderList(Object.keys(__props.componentSlots || {}), (name) => {
63
+ renderList(getComponentSlotNames(), (name) => {
54
64
  return {
55
65
  name,
56
66
  fn: 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
  };
@@ -37,7 +37,7 @@ var __async = (__this, __arguments, generator) => {
37
37
  step((generator = generator.apply(__this, __arguments)).next());
38
38
  });
39
39
  };
40
- import { defineComponent, computed, ref, onMounted, openBlock, createElementBlock, renderSlot, Fragment, renderList, createBlock, unref, mergeProps, createSlots, withCtx, resolveDynamicComponent, watch } from "vue";
40
+ import { defineComponent, useSlots, computed, ref, onMounted, openBlock, createElementBlock, renderSlot, Fragment, renderList, createBlock, unref, mergeProps, createSlots, withCtx, resolveDynamicComponent, watch } from "vue";
41
41
  import { ElSelect, ElOption } from "element-plus";
42
42
  const _hoisted_1 = { class: "flex gap-2" };
43
43
  const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
@@ -55,6 +55,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
55
55
  setup(__props, { emit: __emit }) {
56
56
  const props = __props;
57
57
  const emit = __emit;
58
+ const slots = useSlots();
58
59
  const config = computed(() => {
59
60
  var _a;
60
61
  return ((_a = props.config) == null ? void 0 : _a.config) || {};
@@ -127,6 +128,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
127
128
  loadOptions(0, void 0);
128
129
  }
129
130
  });
131
+ function getSlotNames() {
132
+ return Object.keys(slots);
133
+ }
134
+ function getComponentSlotNames() {
135
+ return Object.keys(props.componentSlots || {});
136
+ }
130
137
  return (_ctx, _cache) => {
131
138
  return openBlock(), createElementBlock("div", _hoisted_1, [
132
139
  renderSlot(_ctx.$slots, "prefix"),
@@ -137,7 +144,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
137
144
  modelValue: values.value[index],
138
145
  "onUpdate:modelValue": ($event) => values.value[index] = $event,
139
146
  placeholder: ((_b = (_a = config.value) == null ? void 0 : _a.placeholders) == null ? void 0 : _b[index]) || "请选择",
140
- disabled: __props.disabled || index > 0 && values.value[index - 1] === void 0 && values.value[index - 1] !== null,
147
+ disabled: __props.disabled || index > 0 && (values.value[index - 1] === void 0 || values.value[index - 1] === null),
141
148
  filterable: (_d = (_c = config.value) == null ? void 0 : _c.filterable) != null ? _d : false,
142
149
  clearable: (_f = (_e = config.value) == null ? void 0 : _e.clearable) != null ? _f : true,
143
150
  loading: loadingList.value[index],
@@ -157,7 +164,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
157
164
  ]),
158
165
  _: 2
159
166
  }, [
160
- renderList(Object.keys(_ctx.$slots), (name, i) => {
167
+ renderList(getSlotNames(), (name) => {
161
168
  return {
162
169
  name,
163
170
  fn: withCtx((slotData) => [
@@ -165,7 +172,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
165
172
  ])
166
173
  };
167
174
  }),
168
- renderList(Object.keys(__props.componentSlots || {}), (name, i) => {
175
+ renderList(getComponentSlotNames(), (name) => {
169
176
  return {
170
177
  name,
171
178
  fn: 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
  };
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import { defineComponent, computed, openBlock, createBlock, unref, mergeProps, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps, resolveDynamicComponent } from "vue";
20
+ import { defineComponent, useSlots, computed, openBlock, createBlock, unref, mergeProps, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps, resolveDynamicComponent } from "vue";
21
21
  import { ElMention } from "element-plus";
22
22
  const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
23
23
  name: "JkyFormItemMention"
@@ -34,15 +34,25 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
34
34
  setup(__props, { emit: __emit }) {
35
35
  const props = __props;
36
36
  const emit = __emit;
37
- const mentionProps = computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
38
- modelValue: props.modelValue || "",
39
- disabled: props.disabled
40
- }));
37
+ const slots = useSlots();
38
+ const mentionProps = computed(() => {
39
+ var _a, _b;
40
+ return __spreadProps(__spreadValues({}, props.componentProps), {
41
+ modelValue: props.modelValue || "",
42
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
43
+ });
44
+ });
45
+ function getSlotNames() {
46
+ return Object.keys(slots);
47
+ }
48
+ function getComponentSlotNames() {
49
+ return Object.keys(props.componentSlots || {});
50
+ }
41
51
  return (_ctx, _cache) => {
42
52
  return openBlock(), createBlock(unref(ElMention), mergeProps(mentionProps.value, {
43
53
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
44
54
  }), createSlots({ _: 2 }, [
45
- renderList(Object.keys(_ctx.$slots), (name, index) => {
55
+ renderList(getSlotNames(), (name) => {
46
56
  return {
47
57
  name,
48
58
  fn: withCtx((slotData) => [
@@ -50,7 +60,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
50
60
  ])
51
61
  };
52
62
  }),
53
- renderList(Object.keys(__props.componentSlots || {}), (name) => {
63
+ renderList(getComponentSlotNames(), (name) => {
54
64
  return {
55
65
  name,
56
66
  fn: 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
  };