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
@@ -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, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString, renderSlot, normalizeProps, guardReactiveProps, resolveDynamicComponent } from "vue";
20
+ import { defineComponent, useSlots, computed, openBlock, createBlock, unref, mergeProps, createSlots, withCtx, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString, renderSlot, normalizeProps, guardReactiveProps, resolveDynamicComponent } from "vue";
21
21
  import { ElRadioGroup, ElRadioButton, ElRadio } from "element-plus";
22
22
  const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
23
23
  name: "JkyFormItemRadioGroup"
@@ -34,12 +34,22 @@ 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 radioGroupProps = computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
38
- modelValue: props.modelValue,
39
- disabled: props.disabled
40
- }));
37
+ const slots = useSlots();
38
+ const radioGroupProps = 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
+ });
41
45
  const options = computed(() => props.componentProps.options || props.config.options || []);
42
46
  const isButton = computed(() => props.componentProps.button || false);
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 openBlock(), createBlock(unref(ElRadioGroup), mergeProps(radioGroupProps.value, {
45
55
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
@@ -73,7 +83,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
73
83
  ]),
74
84
  _: 2
75
85
  }, [
76
- renderList(Object.keys(_ctx.$slots), (name, index) => {
86
+ renderList(getSlotNames(), (name) => {
77
87
  return {
78
88
  name,
79
89
  fn: withCtx((slotData) => [
@@ -81,7 +91,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
81
91
  ])
82
92
  };
83
93
  }),
84
- renderList(Object.keys(__props.componentSlots || {}), (name) => {
94
+ renderList(getComponentSlotNames(), (name) => {
85
95
  return {
86
96
  name,
87
97
  fn: withCtx((slotData) => [
@@ -0,0 +1,13 @@
1
+ type __VLS_Props = {
2
+ modelValue?: any;
3
+ config: any;
4
+ componentProps: any;
5
+ componentSlots?: any;
6
+ disabled?: boolean;
7
+ };
8
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
+ "update:modelValue": (value: any) => any;
10
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
11
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
12
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
13
+ export default _default;
@@ -0,0 +1,116 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
+ import { defineComponent, computed, h, openBlock, createElementBlock, createVNode, unref, mergeProps, createBlock, resolveDynamicComponent } from "vue";
21
+ import { ElInputNumber } from "element-plus";
22
+ const _hoisted_1 = { class: "flex items-center gap-2" };
23
+ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
24
+ name: "JkyFormItemRangeInputNumber"
25
+ }), {
26
+ __name: "RangeInputNumberItem",
27
+ props: {
28
+ modelValue: {},
29
+ config: {},
30
+ componentProps: {},
31
+ componentSlots: {},
32
+ disabled: { type: Boolean }
33
+ },
34
+ emits: ["update:modelValue"],
35
+ setup(__props, { emit: __emit }) {
36
+ const props = __props;
37
+ const emit = __emit;
38
+ function parseModelValue() {
39
+ var _a, _b;
40
+ const val = props.modelValue;
41
+ if (val && typeof val === "object") {
42
+ return {
43
+ min: (_a = val.min) != null ? _a : null,
44
+ max: (_b = val.max) != null ? _b : null
45
+ };
46
+ }
47
+ return { min: null, max: null };
48
+ }
49
+ const rangeProps = computed(() => {
50
+ var _a, _b;
51
+ return __spreadProps(__spreadValues({}, props.componentProps), {
52
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
53
+ });
54
+ });
55
+ const separator = computed(() => {
56
+ var _a;
57
+ const separatorProp = (_a = rangeProps.value.separator) != null ? _a : "~";
58
+ if (typeof separatorProp === "function") {
59
+ return separatorProp();
60
+ } else if (typeof separatorProp === "string") {
61
+ return h("span", {}, separatorProp);
62
+ }
63
+ return separatorProp;
64
+ });
65
+ const minInputProps = computed(() => {
66
+ var _a;
67
+ return __spreadProps(__spreadValues({}, rangeProps.value), {
68
+ modelValue: parseModelValue().min,
69
+ placeholder: rangeProps.value.minPlaceholder || "最小值",
70
+ class: ["flex-1", (_a = rangeProps.value) == null ? void 0 : _a.minClass]
71
+ });
72
+ });
73
+ const maxInputProps = computed(() => {
74
+ var _a;
75
+ return __spreadProps(__spreadValues({}, rangeProps.value), {
76
+ modelValue: parseModelValue().max,
77
+ placeholder: rangeProps.value.maxPlaceholder || "最大值",
78
+ class: ["flex-1", (_a = rangeProps.value) == null ? void 0 : _a.maxClass]
79
+ });
80
+ });
81
+ function handleMinChange(value) {
82
+ const current = parseModelValue();
83
+ const minVal = value != null ? value : null;
84
+ const maxVal = current.max;
85
+ if (minVal !== null && maxVal !== null && minVal > maxVal) {
86
+ return;
87
+ }
88
+ emit("update:modelValue", {
89
+ min: minVal,
90
+ max: maxVal
91
+ });
92
+ }
93
+ function handleMaxChange(value) {
94
+ const current = parseModelValue();
95
+ const minVal = current.min;
96
+ const maxVal = value != null ? value : null;
97
+ if (minVal !== null && maxVal !== null && maxVal < minVal) {
98
+ return;
99
+ }
100
+ emit("update:modelValue", {
101
+ min: minVal,
102
+ max: maxVal
103
+ });
104
+ }
105
+ return (_ctx, _cache) => {
106
+ return openBlock(), createElementBlock("div", _hoisted_1, [
107
+ createVNode(unref(ElInputNumber), mergeProps(minInputProps.value, { "onUpdate:modelValue": handleMinChange }), null, 16),
108
+ (openBlock(), createBlock(resolveDynamicComponent(separator.value))),
109
+ createVNode(unref(ElInputNumber), mergeProps(maxInputProps.value, { "onUpdate:modelValue": handleMaxChange }), null, 16)
110
+ ]);
111
+ };
112
+ }
113
+ }));
114
+ export {
115
+ _sfc_main as default
116
+ };
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "./RangeInputNumberItem.vue.js";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -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 { ElRate } from "element-plus";
22
22
  const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
23
23
  name: "JkyFormItemRate"
@@ -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 rateProps = computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
38
- modelValue: props.modelValue,
39
- disabled: props.disabled
40
- }));
37
+ const slots = useSlots();
38
+ const rateProps = 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(ElRate), mergeProps(rateProps.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) => [
@@ -35,9 +35,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
35
35
  setup(__props, { emit: __emit }) {
36
36
  const props = __props;
37
37
  const emit = __emit;
38
- const editorProps = computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
39
- disabled: props.disabled
40
- }));
38
+ const editorProps = computed(() => {
39
+ var _a, _b;
40
+ return __spreadProps(__spreadValues({}, props.componentProps), {
41
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
42
+ });
43
+ });
41
44
  const innerValue = computed({
42
45
  get: () => props.modelValue,
43
46
  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
  };
@@ -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, createElementBlock, Fragment, renderList, renderSlot, normalizeProps, guardReactiveProps, resolveDynamicComponent } from "vue";
20
+ import { defineComponent, useSlots, computed, openBlock, createBlock, unref, mergeProps, createSlots, withCtx, createElementBlock, Fragment, renderList, renderSlot, normalizeProps, guardReactiveProps, resolveDynamicComponent } from "vue";
21
21
  import { ElSelect, ElOption } from "element-plus";
22
22
  const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
23
23
  name: "JkyFormItemSelect"
@@ -34,12 +34,22 @@ 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 selectProps = computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
38
- modelValue: props.modelValue,
39
- placeholder: props.componentProps.placeholder || props.config.placeholder || "请选择",
40
- disabled: props.disabled
41
- }));
37
+ const slots = useSlots();
38
+ const selectProps = computed(() => {
39
+ var _a, _b;
40
+ return __spreadProps(__spreadValues({}, props.componentProps), {
41
+ modelValue: props.modelValue,
42
+ placeholder: props.componentProps.placeholder || props.config.placeholder || "请选择",
43
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
44
+ });
45
+ });
42
46
  const options = computed(() => props.componentProps.options || props.config.options || []);
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 openBlock(), createBlock(unref(ElSelect), mergeProps({ class: "min-w-30" }, selectProps.value, {
45
55
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
@@ -56,7 +66,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
56
66
  ]),
57
67
  _: 2
58
68
  }, [
59
- renderList(Object.keys(_ctx.$slots), (name, index) => {
69
+ renderList(getSlotNames(), (name) => {
60
70
  return {
61
71
  name,
62
72
  fn: withCtx((slotData) => [
@@ -64,7 +74,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
64
74
  ])
65
75
  };
66
76
  }),
67
- renderList(Object.keys(__props.componentSlots || {}), (name) => {
77
+ renderList(getComponentSlotNames(), (name) => {
68
78
  return {
69
79
  name,
70
80
  fn: withCtx((slotData) => [
@@ -8,7 +8,7 @@ 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
12
  refs: {
13
13
  tableRef: ({
14
14
  $: import('vue').ComponentInternalInstance;
@@ -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, ref, computed, watch, nextTick, openBlock, createElementBlock, createElementVNode, Fragment, renderList, createBlock, unref, withCtx, createTextVNode, toDisplayString, createCommentVNode, withDirectives, normalizeStyle, createVNode, mergeProps, createSlots, renderSlot, normalizeProps, guardReactiveProps, resolveDynamicComponent, vShow } from "vue";
40
+ import { defineComponent, useSlots, ref, computed, watch, nextTick, openBlock, createElementBlock, createElementVNode, Fragment, renderList, createBlock, unref, withCtx, createTextVNode, toDisplayString, createCommentVNode, withDirectives, normalizeStyle, createVNode, mergeProps, createSlots, renderSlot, normalizeProps, guardReactiveProps, resolveDynamicComponent, vShow } from "vue";
41
41
  import { ElTag, ElButton } from "element-plus";
42
42
  import { JkyPageTable } from "../../page-table/index.js";
43
43
  const _hoisted_1 = { class: "jky-select-table" };
@@ -57,6 +57,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
57
57
  setup(__props, { emit: __emit }) {
58
58
  const props = __props;
59
59
  const emit = __emit;
60
+ const slots = useSlots();
60
61
  const showTable = ref(false);
61
62
  const selectedData = ref([]);
62
63
  const selectedRows = ref([]);
@@ -225,6 +226,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
225
226
  transform: `translateX(-${width})`
226
227
  };
227
228
  });
229
+ function getSlotNames() {
230
+ return Object.keys(slots);
231
+ }
232
+ function getComponentSlotNames() {
233
+ return Object.keys(props.componentSlots || {});
234
+ }
228
235
  return (_ctx, _cache) => {
229
236
  return openBlock(), createElementBlock("div", _hoisted_1, [
230
237
  createElementVNode("div", _hoisted_2, [
@@ -268,7 +275,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
268
275
  "selected-rows": selectedRows.value,
269
276
  onSelectionChange: handleSelectionChange
270
277
  }), createSlots({ _: 2 }, [
271
- renderList(Object.keys(_ctx.$slots), (name, index) => {
278
+ renderList(getSlotNames(), (name) => {
272
279
  return {
273
280
  name,
274
281
  fn: withCtx((slotData) => [
@@ -276,7 +283,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
276
283
  ])
277
284
  };
278
285
  }),
279
- renderList(Object.keys(__props.componentSlots || {}), (name) => {
286
+ renderList(getComponentSlotNames(), (name) => {
280
287
  return {
281
288
  name,
282
289
  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 { ElSelectV2 } from "element-plus";
22
22
  const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
23
23
  name: "JkyFormItemSelectV2"
@@ -34,17 +34,27 @@ 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 selectV2Props = computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
38
- modelValue: props.modelValue,
39
- placeholder: props.componentProps.placeholder || props.config.placeholder || "请选择",
40
- disabled: props.disabled,
41
- options: props.componentProps.options || []
42
- }));
37
+ const slots = useSlots();
38
+ const selectV2Props = computed(() => {
39
+ var _a, _b;
40
+ return __spreadProps(__spreadValues({}, props.componentProps), {
41
+ modelValue: props.modelValue,
42
+ placeholder: props.componentProps.placeholder || props.config.placeholder || "请选择",
43
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled,
44
+ options: props.componentProps.options || []
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 openBlock(), createBlock(unref(ElSelectV2), mergeProps({ class: "min-w-30" }, selectV2Props.value, {
45
55
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
46
56
  }), createSlots({ _: 2 }, [
47
- renderList(Object.keys(_ctx.$slots), (name, index) => {
57
+ renderList(getSlotNames(), (name) => {
48
58
  return {
49
59
  name,
50
60
  fn: withCtx((slotData) => [
@@ -52,7 +62,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
52
62
  ])
53
63
  };
54
64
  }),
55
- renderList(Object.keys(__props.componentSlots || {}), (name) => {
65
+ renderList(getComponentSlotNames(), (name) => {
56
66
  return {
57
67
  name,
58
68
  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 { ElSlider } from "element-plus";
22
22
  const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
23
23
  name: "JkyFormItemSlider"
@@ -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 sliderProps = computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
38
- modelValue: props.modelValue,
39
- disabled: props.disabled
40
- }));
37
+ const slots = useSlots();
38
+ const sliderProps = 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(ElSlider), mergeProps(sliderProps.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,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 { ElSwitch } from "element-plus";
22
22
  const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
23
23
  name: "JkyFormItemSwitch"
@@ -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 switchProps = computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
38
- modelValue: props.modelValue,
39
- disabled: props.disabled
40
- }));
37
+ const slots = useSlots();
38
+ const switchProps = 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(ElSwitch), mergeProps(switchProps.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,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: "JkyFormItemTextarea"
@@ -34,18 +34,28 @@ 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 textareaProps = computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
38
- modelValue: props.modelValue,
39
- placeholder: props.componentProps.placeholder || props.config.placeholder || "请输入",
40
- disabled: props.disabled,
41
- type: "textarea",
42
- rows: props.componentProps.rows || 4
43
- }));
37
+ const slots = useSlots();
38
+ const textareaProps = computed(() => {
39
+ var _a, _b;
40
+ return __spreadProps(__spreadValues({}, props.componentProps), {
41
+ modelValue: props.modelValue,
42
+ placeholder: props.componentProps.placeholder || props.config.placeholder || "请输入",
43
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled,
44
+ type: "textarea",
45
+ rows: props.componentProps.rows || 4
46
+ });
47
+ });
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(ElInput), mergeProps(textareaProps.value, {
46
56
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
47
57
  }), createSlots({ _: 2 }, [
48
- renderList(Object.keys(_ctx.$slots), (name, index) => {
58
+ renderList(getSlotNames(), (name) => {
49
59
  return {
50
60
  name,
51
61
  fn: withCtx((slotData) => [
@@ -53,7 +63,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
53
63
  ])
54
64
  };
55
65
  }),
56
- renderList(Object.keys(__props.componentSlots || {}), (name) => {
66
+ renderList(getComponentSlotNames(), (name) => {
57
67
  return {
58
68
  name,
59
69
  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
  };