jky-component-lib 0.0.133 → 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 (129) hide show
  1. package/dist/es/amap/style.css +5 -12
  2. package/dist/es/amap/style3.css +12 -5
  3. package/dist/es/form/FormItem.vue.js +60 -54
  4. package/dist/es/form/items/AutocompleteItem.vue.d.ts +1 -1
  5. package/dist/es/form/items/AutocompleteItem.vue.js +10 -3
  6. package/dist/es/form/items/CascaderItem.vue.d.ts +1 -1
  7. package/dist/es/form/items/CascaderItem.vue.js +10 -3
  8. package/dist/es/form/items/CheckboxGroupItem.vue.d.ts +3 -1
  9. package/dist/es/form/items/CheckboxGroupItem.vue.js +10 -3
  10. package/dist/es/form/items/ColorPickerItem.vue.d.ts +1 -1
  11. package/dist/es/form/items/ColorPickerItem.vue.js +10 -3
  12. package/dist/es/form/items/ColorPickerPanelItem.vue.d.ts +1 -1
  13. package/dist/es/form/items/ColorPickerPanelItem.vue.js +10 -3
  14. package/dist/es/form/items/DatePickerItem.vue.d.ts +1 -1
  15. package/dist/es/form/items/DatePickerItem.vue.js +10 -3
  16. package/dist/es/form/items/DividerItem.vue.d.ts +3 -1
  17. package/dist/es/form/items/DividerItem.vue.js +10 -3
  18. package/dist/es/form/items/FileUploadItem.vue.d.ts +1 -1
  19. package/dist/es/form/items/FileUploadItem.vue.js +10 -3
  20. package/dist/es/form/items/ImageUploadItem.vue.d.ts +1 -1
  21. package/dist/es/form/items/ImageUploadItem.vue.js +10 -3
  22. package/dist/es/form/items/InputItem.vue.d.ts +1 -1
  23. package/dist/es/form/items/InputItem.vue.js +11 -4
  24. package/dist/es/form/items/InputNumberItem.vue.d.ts +1 -1
  25. package/dist/es/form/items/InputNumberItem.vue.js +10 -3
  26. package/dist/es/form/items/InputTagItem.vue.d.ts +1 -1
  27. package/dist/es/form/items/InputTagItem.vue.js +10 -3
  28. package/dist/es/form/items/LinkedSelectItem.vue.d.ts +4 -1
  29. package/dist/es/form/items/LinkedSelectItem.vue.js +10 -3
  30. package/dist/es/form/items/MentionItem.vue.d.ts +1 -1
  31. package/dist/es/form/items/MentionItem.vue.js +10 -3
  32. package/dist/es/form/items/RadioGroupItem.vue.d.ts +3 -1
  33. package/dist/es/form/items/RadioGroupItem.vue.js +10 -3
  34. package/dist/es/form/items/RangeInputNumberItem.vue.d.ts +13 -0
  35. package/dist/es/form/items/RangeInputNumberItem.vue.js +116 -0
  36. package/dist/es/form/items/RangeInputNumberItem.vue2.js +4 -0
  37. package/dist/es/form/items/RateItem.vue.d.ts +1 -1
  38. package/dist/es/form/items/RateItem.vue.js +10 -3
  39. package/dist/es/form/items/SelectItem.vue.d.ts +1 -1
  40. package/dist/es/form/items/SelectItem.vue.js +10 -3
  41. package/dist/es/form/items/SelectTableItem.vue.d.ts +1 -1
  42. package/dist/es/form/items/SelectTableItem.vue.js +10 -3
  43. package/dist/es/form/items/SelectV2Item.vue.d.ts +1 -1
  44. package/dist/es/form/items/SelectV2Item.vue.js +10 -3
  45. package/dist/es/form/items/SliderItem.vue.d.ts +1 -1
  46. package/dist/es/form/items/SliderItem.vue.js +10 -3
  47. package/dist/es/form/items/SwitchItem.vue.d.ts +1 -1
  48. package/dist/es/form/items/SwitchItem.vue.js +10 -3
  49. package/dist/es/form/items/TextareaItem.vue.d.ts +1 -1
  50. package/dist/es/form/items/TextareaItem.vue.js +10 -3
  51. package/dist/es/form/items/TimePickerItem.vue.d.ts +1 -1
  52. package/dist/es/form/items/TimePickerItem.vue.js +10 -3
  53. package/dist/es/form/items/TimeSelectItem.vue.d.ts +1 -1
  54. package/dist/es/form/items/TimeSelectItem.vue.js +10 -3
  55. package/dist/es/form/items/TransferItem.vue.d.ts +1 -1
  56. package/dist/es/form/items/TransferItem.vue.js +10 -3
  57. package/dist/es/form/items/TreeSelectItem.vue.d.ts +1 -1
  58. package/dist/es/form/items/TreeSelectItem.vue.js +10 -3
  59. package/dist/es/modal/Footer.vue.d.ts +1 -1
  60. package/dist/es/modal/Footer.vue.js +4 -2
  61. package/dist/es/modal/Modal.vue.js +6 -3
  62. package/dist/es/package.json.js +1 -1
  63. package/dist/es/page-table/PageTable.vue.js +1 -1
  64. package/dist/es/page-table/PageTableColumn.vue.d.ts +1 -0
  65. package/dist/lib/amap/style.css +5 -12
  66. package/dist/lib/amap/style3.css +12 -5
  67. package/dist/lib/form/FormItem.vue.js +9 -3
  68. package/dist/lib/form/items/AutocompleteItem.vue.d.ts +1 -1
  69. package/dist/lib/form/items/AutocompleteItem.vue.js +9 -2
  70. package/dist/lib/form/items/CascaderItem.vue.d.ts +1 -1
  71. package/dist/lib/form/items/CascaderItem.vue.js +9 -2
  72. package/dist/lib/form/items/CheckboxGroupItem.vue.d.ts +3 -1
  73. package/dist/lib/form/items/CheckboxGroupItem.vue.js +9 -2
  74. package/dist/lib/form/items/ColorPickerItem.vue.d.ts +1 -1
  75. package/dist/lib/form/items/ColorPickerItem.vue.js +9 -2
  76. package/dist/lib/form/items/ColorPickerPanelItem.vue.d.ts +1 -1
  77. package/dist/lib/form/items/ColorPickerPanelItem.vue.js +9 -2
  78. package/dist/lib/form/items/DatePickerItem.vue.d.ts +1 -1
  79. package/dist/lib/form/items/DatePickerItem.vue.js +9 -2
  80. package/dist/lib/form/items/DividerItem.vue.d.ts +3 -1
  81. package/dist/lib/form/items/DividerItem.vue.js +9 -2
  82. package/dist/lib/form/items/FileUploadItem.vue.d.ts +1 -1
  83. package/dist/lib/form/items/FileUploadItem.vue.js +9 -2
  84. package/dist/lib/form/items/ImageUploadItem.vue.d.ts +1 -1
  85. package/dist/lib/form/items/ImageUploadItem.vue.js +9 -2
  86. package/dist/lib/form/items/InputItem.vue.d.ts +1 -1
  87. package/dist/lib/form/items/InputItem.vue.js +10 -3
  88. package/dist/lib/form/items/InputNumberItem.vue.d.ts +1 -1
  89. package/dist/lib/form/items/InputNumberItem.vue.js +9 -2
  90. package/dist/lib/form/items/InputTagItem.vue.d.ts +1 -1
  91. package/dist/lib/form/items/InputTagItem.vue.js +9 -2
  92. package/dist/lib/form/items/LinkedSelectItem.vue.d.ts +4 -1
  93. package/dist/lib/form/items/LinkedSelectItem.vue.js +9 -2
  94. package/dist/lib/form/items/MentionItem.vue.d.ts +1 -1
  95. package/dist/lib/form/items/MentionItem.vue.js +9 -2
  96. package/dist/lib/form/items/RadioGroupItem.vue.d.ts +3 -1
  97. package/dist/lib/form/items/RadioGroupItem.vue.js +9 -2
  98. package/dist/lib/form/items/RangeInputNumberItem.vue.d.ts +13 -0
  99. package/dist/lib/form/items/RangeInputNumberItem.vue.js +116 -0
  100. package/dist/lib/form/items/RangeInputNumberItem.vue2.js +4 -0
  101. package/dist/lib/form/items/RateItem.vue.d.ts +1 -1
  102. package/dist/lib/form/items/RateItem.vue.js +9 -2
  103. package/dist/lib/form/items/SelectItem.vue.d.ts +1 -1
  104. package/dist/lib/form/items/SelectItem.vue.js +9 -2
  105. package/dist/lib/form/items/SelectTableItem.vue.d.ts +1 -1
  106. package/dist/lib/form/items/SelectTableItem.vue.js +9 -2
  107. package/dist/lib/form/items/SelectV2Item.vue.d.ts +1 -1
  108. package/dist/lib/form/items/SelectV2Item.vue.js +9 -2
  109. package/dist/lib/form/items/SliderItem.vue.d.ts +1 -1
  110. package/dist/lib/form/items/SliderItem.vue.js +9 -2
  111. package/dist/lib/form/items/SwitchItem.vue.d.ts +1 -1
  112. package/dist/lib/form/items/SwitchItem.vue.js +9 -2
  113. package/dist/lib/form/items/TextareaItem.vue.d.ts +1 -1
  114. package/dist/lib/form/items/TextareaItem.vue.js +9 -2
  115. package/dist/lib/form/items/TimePickerItem.vue.d.ts +1 -1
  116. package/dist/lib/form/items/TimePickerItem.vue.js +9 -2
  117. package/dist/lib/form/items/TimeSelectItem.vue.d.ts +1 -1
  118. package/dist/lib/form/items/TimeSelectItem.vue.js +9 -2
  119. package/dist/lib/form/items/TransferItem.vue.d.ts +1 -1
  120. package/dist/lib/form/items/TransferItem.vue.js +9 -2
  121. package/dist/lib/form/items/TreeSelectItem.vue.d.ts +1 -1
  122. package/dist/lib/form/items/TreeSelectItem.vue.js +9 -2
  123. package/dist/lib/modal/Footer.vue.d.ts +1 -1
  124. package/dist/lib/modal/Footer.vue.js +4 -2
  125. package/dist/lib/modal/Modal.vue.js +6 -3
  126. package/dist/lib/package.json.js +1 -1
  127. package/dist/lib/page-table/PageTable.vue.js +1 -1
  128. package/dist/lib/page-table/PageTableColumn.vue.d.ts +1 -0
  129. package/package.json +3 -6
@@ -36,6 +36,7 @@ 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 inputTagProps = vue.computed(() => {
40
41
  var _a, _b;
41
42
  return __spreadProps(__spreadValues({}, props.componentProps), {
@@ -43,11 +44,17 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
43
44
  disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
44
45
  });
45
46
  });
47
+ function getSlotNames() {
48
+ return Object.keys(slots);
49
+ }
50
+ function getComponentSlotNames() {
51
+ return Object.keys(props.componentSlots || {});
52
+ }
46
53
  return (_ctx, _cache) => {
47
54
  return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElInputTag), vue.mergeProps(inputTagProps.value, {
48
55
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
49
56
  }), vue.createSlots({ _: 2 }, [
50
- vue.renderList(Object.keys(_ctx.$slots), (name, index) => {
57
+ vue.renderList(getSlotNames(), (name) => {
51
58
  return {
52
59
  name,
53
60
  fn: vue.withCtx((slotData) => [
@@ -55,7 +62,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
55
62
  ])
56
63
  };
57
64
  }),
58
- vue.renderList(Object.keys(__props.componentSlots || {}), (name) => {
65
+ vue.renderList(getComponentSlotNames(), (name) => {
59
66
  return {
60
67
  name,
61
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"),
@@ -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
  };
@@ -36,6 +36,7 @@ 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 mentionProps = vue.computed(() => {
40
41
  var _a, _b;
41
42
  return __spreadProps(__spreadValues({}, props.componentProps), {
@@ -43,11 +44,17 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
43
44
  disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
44
45
  });
45
46
  });
47
+ function getSlotNames() {
48
+ return Object.keys(slots);
49
+ }
50
+ function getComponentSlotNames() {
51
+ return Object.keys(props.componentSlots || {});
52
+ }
46
53
  return (_ctx, _cache) => {
47
54
  return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElMention), vue.mergeProps(mentionProps.value, {
48
55
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
49
56
  }), vue.createSlots({ _: 2 }, [
50
- vue.renderList(Object.keys(_ctx.$slots), (name, index) => {
57
+ vue.renderList(getSlotNames(), (name) => {
51
58
  return {
52
59
  name,
53
60
  fn: vue.withCtx((slotData) => [
@@ -55,7 +62,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
55
62
  ])
56
63
  };
57
64
  }),
58
- vue.renderList(Object.keys(__props.componentSlots || {}), (name) => {
65
+ vue.renderList(getComponentSlotNames(), (name) => {
59
66
  return {
60
67
  name,
61
68
  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
  };
@@ -36,6 +36,7 @@ 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 radioGroupProps = vue.computed(() => {
40
41
  var _a, _b;
41
42
  return __spreadProps(__spreadValues({}, props.componentProps), {
@@ -45,6 +46,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
45
46
  });
46
47
  const options = vue.computed(() => props.componentProps.options || props.config.options || []);
47
48
  const isButton = vue.computed(() => props.componentProps.button || false);
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 vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElRadioGroup), vue.mergeProps(radioGroupProps.value, {
50
57
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
@@ -78,7 +85,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
78
85
  ]),
79
86
  _: 2
80
87
  }, [
81
- vue.renderList(Object.keys(_ctx.$slots), (name, index) => {
88
+ vue.renderList(getSlotNames(), (name) => {
82
89
  return {
83
90
  name,
84
91
  fn: vue.withCtx((slotData) => [
@@ -86,7 +93,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
86
93
  ])
87
94
  };
88
95
  }),
89
- vue.renderList(Object.keys(__props.componentSlots || {}), (name) => {
96
+ vue.renderList(getComponentSlotNames(), (name) => {
90
97
  return {
91
98
  name,
92
99
  fn: vue.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
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __defProps = Object.defineProperties;
4
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
5
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
8
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
9
+ var __spreadValues = (a, b) => {
10
+ for (var prop in b || (b = {}))
11
+ if (__hasOwnProp.call(b, prop))
12
+ __defNormalProp(a, prop, b[prop]);
13
+ if (__getOwnPropSymbols)
14
+ for (var prop of __getOwnPropSymbols(b)) {
15
+ if (__propIsEnum.call(b, prop))
16
+ __defNormalProp(a, prop, b[prop]);
17
+ }
18
+ return a;
19
+ };
20
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
21
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
22
+ const vue = require("vue");
23
+ const ElementPlus = require("element-plus");
24
+ const _hoisted_1 = { class: "flex items-center gap-2" };
25
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, {
26
+ name: "JkyFormItemRangeInputNumber"
27
+ }), {
28
+ __name: "RangeInputNumberItem",
29
+ props: {
30
+ modelValue: {},
31
+ config: {},
32
+ componentProps: {},
33
+ componentSlots: {},
34
+ disabled: { type: Boolean }
35
+ },
36
+ emits: ["update:modelValue"],
37
+ setup(__props, { emit: __emit }) {
38
+ const props = __props;
39
+ const emit = __emit;
40
+ function parseModelValue() {
41
+ var _a, _b;
42
+ const val = props.modelValue;
43
+ if (val && typeof val === "object") {
44
+ return {
45
+ min: (_a = val.min) != null ? _a : null,
46
+ max: (_b = val.max) != null ? _b : null
47
+ };
48
+ }
49
+ return { min: null, max: null };
50
+ }
51
+ const rangeProps = vue.computed(() => {
52
+ var _a, _b;
53
+ return __spreadProps(__spreadValues({}, props.componentProps), {
54
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
55
+ });
56
+ });
57
+ const separator = vue.computed(() => {
58
+ var _a;
59
+ const separatorProp = (_a = rangeProps.value.separator) != null ? _a : "~";
60
+ if (typeof separatorProp === "function") {
61
+ return separatorProp();
62
+ } else if (typeof separatorProp === "string") {
63
+ return vue.h("span", {}, separatorProp);
64
+ }
65
+ return separatorProp;
66
+ });
67
+ const minInputProps = vue.computed(() => {
68
+ var _a;
69
+ return __spreadProps(__spreadValues({}, rangeProps.value), {
70
+ modelValue: parseModelValue().min,
71
+ placeholder: rangeProps.value.minPlaceholder || "最小值",
72
+ class: ["flex-1", (_a = rangeProps.value) == null ? void 0 : _a.minClass]
73
+ });
74
+ });
75
+ const maxInputProps = vue.computed(() => {
76
+ var _a;
77
+ return __spreadProps(__spreadValues({}, rangeProps.value), {
78
+ modelValue: parseModelValue().max,
79
+ placeholder: rangeProps.value.maxPlaceholder || "最大值",
80
+ class: ["flex-1", (_a = rangeProps.value) == null ? void 0 : _a.maxClass]
81
+ });
82
+ });
83
+ function handleMinChange(value) {
84
+ const current = parseModelValue();
85
+ const minVal = value != null ? value : null;
86
+ const maxVal = current.max;
87
+ if (minVal !== null && maxVal !== null && minVal > maxVal) {
88
+ return;
89
+ }
90
+ emit("update:modelValue", {
91
+ min: minVal,
92
+ max: maxVal
93
+ });
94
+ }
95
+ function handleMaxChange(value) {
96
+ const current = parseModelValue();
97
+ const minVal = current.min;
98
+ const maxVal = value != null ? value : null;
99
+ if (minVal !== null && maxVal !== null && maxVal < minVal) {
100
+ return;
101
+ }
102
+ emit("update:modelValue", {
103
+ min: minVal,
104
+ max: maxVal
105
+ });
106
+ }
107
+ return (_ctx, _cache) => {
108
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
109
+ vue.createVNode(vue.unref(ElementPlus.ElInputNumber), vue.mergeProps(minInputProps.value, { "onUpdate:modelValue": handleMinChange }), null, 16),
110
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(separator.value))),
111
+ vue.createVNode(vue.unref(ElementPlus.ElInputNumber), vue.mergeProps(maxInputProps.value, { "onUpdate:modelValue": handleMaxChange }), null, 16)
112
+ ]);
113
+ };
114
+ }
115
+ }));
116
+ exports.default = _sfc_main;
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const RangeInputNumberItem_vue_vue_type_script_setup_true_lang = require("./RangeInputNumberItem.vue.js");
4
+ exports.default = RangeInputNumberItem_vue_vue_type_script_setup_true_lang.default;
@@ -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,6 +36,7 @@ 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 rateProps = vue.computed(() => {
40
41
  var _a, _b;
41
42
  return __spreadProps(__spreadValues({}, props.componentProps), {
@@ -43,11 +44,17 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
43
44
  disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
44
45
  });
45
46
  });
47
+ function getSlotNames() {
48
+ return Object.keys(slots);
49
+ }
50
+ function getComponentSlotNames() {
51
+ return Object.keys(props.componentSlots || {});
52
+ }
46
53
  return (_ctx, _cache) => {
47
54
  return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElRate), vue.mergeProps(rateProps.value, {
48
55
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
49
56
  }), vue.createSlots({ _: 2 }, [
50
- vue.renderList(Object.keys(_ctx.$slots), (name, index) => {
57
+ vue.renderList(getSlotNames(), (name) => {
51
58
  return {
52
59
  name,
53
60
  fn: vue.withCtx((slotData) => [
@@ -55,7 +62,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
55
62
  ])
56
63
  };
57
64
  }),
58
- vue.renderList(Object.keys(__props.componentSlots || {}), (name) => {
65
+ vue.renderList(getComponentSlotNames(), (name) => {
59
66
  return {
60
67
  name,
61
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,6 +36,7 @@ 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 selectProps = vue.computed(() => {
40
41
  var _a, _b;
41
42
  return __spreadProps(__spreadValues({}, props.componentProps), {
@@ -45,6 +46,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
45
46
  });
46
47
  });
47
48
  const options = vue.computed(() => props.componentProps.options || props.config.options || []);
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 vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElSelect), vue.mergeProps({ class: "min-w-30" }, selectProps.value, {
50
57
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
@@ -61,7 +68,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
61
68
  ]),
62
69
  _: 2
63
70
  }, [
64
- vue.renderList(Object.keys(_ctx.$slots), (name, index) => {
71
+ vue.renderList(getSlotNames(), (name) => {
65
72
  return {
66
73
  name,
67
74
  fn: vue.withCtx((slotData) => [
@@ -69,7 +76,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
69
76
  ])
70
77
  };
71
78
  }),
72
- vue.renderList(Object.keys(__props.componentSlots || {}), (name) => {
79
+ vue.renderList(getComponentSlotNames(), (name) => {
73
80
  return {
74
81
  name,
75
82
  fn: vue.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;
@@ -59,6 +59,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
59
59
  setup(__props, { emit: __emit }) {
60
60
  const props = __props;
61
61
  const emit = __emit;
62
+ const slots = vue.useSlots();
62
63
  const showTable = vue.ref(false);
63
64
  const selectedData = vue.ref([]);
64
65
  const selectedRows = vue.ref([]);
@@ -227,6 +228,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
227
228
  transform: `translateX(-${width})`
228
229
  };
229
230
  });
231
+ function getSlotNames() {
232
+ return Object.keys(slots);
233
+ }
234
+ function getComponentSlotNames() {
235
+ return Object.keys(props.componentSlots || {});
236
+ }
230
237
  return (_ctx, _cache) => {
231
238
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
232
239
  vue.createElementVNode("div", _hoisted_2, [
@@ -270,7 +277,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
270
277
  "selected-rows": selectedRows.value,
271
278
  onSelectionChange: handleSelectionChange
272
279
  }), vue.createSlots({ _: 2 }, [
273
- vue.renderList(Object.keys(_ctx.$slots), (name, index2) => {
280
+ vue.renderList(getSlotNames(), (name) => {
274
281
  return {
275
282
  name,
276
283
  fn: vue.withCtx((slotData) => [
@@ -278,7 +285,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
278
285
  ])
279
286
  };
280
287
  }),
281
- vue.renderList(Object.keys(__props.componentSlots || {}), (name) => {
288
+ vue.renderList(getComponentSlotNames(), (name) => {
282
289
  return {
283
290
  name,
284
291
  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,6 +36,7 @@ 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 selectV2Props = vue.computed(() => {
40
41
  var _a, _b;
41
42
  return __spreadProps(__spreadValues({}, props.componentProps), {
@@ -45,11 +46,17 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
45
46
  options: props.componentProps.options || []
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 vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElSelectV2), vue.mergeProps({ class: "min-w-30" }, selectV2Props.value, {
50
57
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
51
58
  }), vue.createSlots({ _: 2 }, [
52
- vue.renderList(Object.keys(_ctx.$slots), (name, index) => {
59
+ vue.renderList(getSlotNames(), (name) => {
53
60
  return {
54
61
  name,
55
62
  fn: vue.withCtx((slotData) => [
@@ -57,7 +64,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
57
64
  ])
58
65
  };
59
66
  }),
60
- vue.renderList(Object.keys(__props.componentSlots || {}), (name) => {
67
+ vue.renderList(getComponentSlotNames(), (name) => {
61
68
  return {
62
69
  name,
63
70
  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,6 +36,7 @@ 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 sliderProps = vue.computed(() => {
40
41
  var _a, _b;
41
42
  return __spreadProps(__spreadValues({}, props.componentProps), {
@@ -43,11 +44,17 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
43
44
  disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
44
45
  });
45
46
  });
47
+ function getSlotNames() {
48
+ return Object.keys(slots);
49
+ }
50
+ function getComponentSlotNames() {
51
+ return Object.keys(props.componentSlots || {});
52
+ }
46
53
  return (_ctx, _cache) => {
47
54
  return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElSlider), vue.mergeProps(sliderProps.value, {
48
55
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
49
56
  }), vue.createSlots({ _: 2 }, [
50
- vue.renderList(Object.keys(_ctx.$slots), (name, index) => {
57
+ vue.renderList(getSlotNames(), (name) => {
51
58
  return {
52
59
  name,
53
60
  fn: vue.withCtx((slotData) => [
@@ -55,7 +62,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
55
62
  ])
56
63
  };
57
64
  }),
58
- vue.renderList(Object.keys(__props.componentSlots || {}), (name) => {
65
+ vue.renderList(getComponentSlotNames(), (name) => {
59
66
  return {
60
67
  name,
61
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,6 +36,7 @@ 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 switchProps = vue.computed(() => {
40
41
  var _a, _b;
41
42
  return __spreadProps(__spreadValues({}, props.componentProps), {
@@ -43,11 +44,17 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
43
44
  disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
44
45
  });
45
46
  });
47
+ function getSlotNames() {
48
+ return Object.keys(slots);
49
+ }
50
+ function getComponentSlotNames() {
51
+ return Object.keys(props.componentSlots || {});
52
+ }
46
53
  return (_ctx, _cache) => {
47
54
  return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElSwitch), vue.mergeProps(switchProps.value, {
48
55
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
49
56
  }), vue.createSlots({ _: 2 }, [
50
- vue.renderList(Object.keys(_ctx.$slots), (name, index) => {
57
+ vue.renderList(getSlotNames(), (name) => {
51
58
  return {
52
59
  name,
53
60
  fn: vue.withCtx((slotData) => [
@@ -55,7 +62,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
55
62
  ])
56
63
  };
57
64
  }),
58
- vue.renderList(Object.keys(__props.componentSlots || {}), (name) => {
65
+ vue.renderList(getComponentSlotNames(), (name) => {
59
66
  return {
60
67
  name,
61
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,6 +36,7 @@ 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 textareaProps = vue.computed(() => {
40
41
  var _a, _b;
41
42
  return __spreadProps(__spreadValues({}, props.componentProps), {
@@ -46,11 +47,17 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
46
47
  rows: props.componentProps.rows || 4
47
48
  });
48
49
  });
50
+ function getSlotNames() {
51
+ return Object.keys(slots);
52
+ }
53
+ function getComponentSlotNames() {
54
+ return Object.keys(props.componentSlots || {});
55
+ }
49
56
  return (_ctx, _cache) => {
50
57
  return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElInput), vue.mergeProps(textareaProps.value, {
51
58
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
52
59
  }), vue.createSlots({ _: 2 }, [
53
- vue.renderList(Object.keys(_ctx.$slots), (name, index) => {
60
+ vue.renderList(getSlotNames(), (name) => {
54
61
  return {
55
62
  name,
56
63
  fn: vue.withCtx((slotData) => [
@@ -58,7 +65,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
58
65
  ])
59
66
  };
60
67
  }),
61
- vue.renderList(Object.keys(__props.componentSlots || {}), (name) => {
68
+ vue.renderList(getComponentSlotNames(), (name) => {
62
69
  return {
63
70
  name,
64
71
  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
  };