jky-component-lib 0.0.131 → 0.0.133

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 (69) hide show
  1. package/dist/es/amap/style2.css +2 -6
  2. package/dist/es/amap/style3.css +6 -2
  3. package/dist/es/form/FormItem.vue.js +30 -10
  4. package/dist/es/form/FormItemWrapper.vue.js +13 -15
  5. package/dist/es/form/items/AddInputItem.vue.js +6 -3
  6. package/dist/es/form/items/AutocompleteItem.vue.js +8 -5
  7. package/dist/es/form/items/CascaderItem.vue.js +8 -5
  8. package/dist/es/form/items/CheckboxGroupItem.vue.js +7 -4
  9. package/dist/es/form/items/CodeMirrorEditorItem.vue.js +6 -3
  10. package/dist/es/form/items/ColorPickerItem.vue.js +7 -4
  11. package/dist/es/form/items/ColorPickerPanelItem.vue.js +7 -4
  12. package/dist/es/form/items/CustomItem.vue.js +2 -1
  13. package/dist/es/form/items/DatePickerItem.vue.js +11 -8
  14. package/dist/es/form/items/FileUploadItem.vue.js +9 -6
  15. package/dist/es/form/items/ImageUploadItem.vue.js +9 -6
  16. package/dist/es/form/items/InputItem.vue.js +5 -5
  17. package/dist/es/form/items/InputNumberItem.vue.js +8 -5
  18. package/dist/es/form/items/InputTagItem.vue.js +7 -4
  19. package/dist/es/form/items/LinkedSelectItem.vue.js +1 -1
  20. package/dist/es/form/items/MentionItem.vue.js +7 -4
  21. package/dist/es/form/items/RadioGroupItem.vue.js +7 -4
  22. package/dist/es/form/items/RateItem.vue.js +7 -4
  23. package/dist/es/form/items/RichEditorItem.vue.js +6 -3
  24. package/dist/es/form/items/SelectItem.vue.js +8 -5
  25. package/dist/es/form/items/SelectV2Item.vue.js +9 -6
  26. package/dist/es/form/items/SliderItem.vue.js +7 -4
  27. package/dist/es/form/items/SwitchItem.vue.js +7 -4
  28. package/dist/es/form/items/TextareaItem.vue.js +10 -7
  29. package/dist/es/form/items/TimePickerItem.vue.js +11 -8
  30. package/dist/es/form/items/TimeSelectItem.vue.js +7 -4
  31. package/dist/es/form/items/TransferItem.vue.js +8 -5
  32. package/dist/es/form/items/TreeSelectItem.vue.js +8 -5
  33. package/dist/es/package.json.js +1 -1
  34. package/dist/es/style.css +8 -0
  35. package/dist/lib/amap/style2.css +2 -6
  36. package/dist/lib/amap/style3.css +6 -2
  37. package/dist/lib/form/FormItem.vue.js +30 -10
  38. package/dist/lib/form/FormItemWrapper.vue.js +11 -13
  39. package/dist/lib/form/items/AddInputItem.vue.js +6 -3
  40. package/dist/lib/form/items/AutocompleteItem.vue.js +8 -5
  41. package/dist/lib/form/items/CascaderItem.vue.js +8 -5
  42. package/dist/lib/form/items/CheckboxGroupItem.vue.js +7 -4
  43. package/dist/lib/form/items/CodeMirrorEditorItem.vue.js +6 -3
  44. package/dist/lib/form/items/ColorPickerItem.vue.js +7 -4
  45. package/dist/lib/form/items/ColorPickerPanelItem.vue.js +7 -4
  46. package/dist/lib/form/items/CustomItem.vue.js +2 -1
  47. package/dist/lib/form/items/DatePickerItem.vue.js +11 -8
  48. package/dist/lib/form/items/FileUploadItem.vue.js +9 -6
  49. package/dist/lib/form/items/ImageUploadItem.vue.js +9 -6
  50. package/dist/lib/form/items/InputItem.vue.js +4 -4
  51. package/dist/lib/form/items/InputNumberItem.vue.js +8 -5
  52. package/dist/lib/form/items/InputTagItem.vue.js +7 -4
  53. package/dist/lib/form/items/LinkedSelectItem.vue.js +1 -1
  54. package/dist/lib/form/items/MentionItem.vue.js +7 -4
  55. package/dist/lib/form/items/RadioGroupItem.vue.js +7 -4
  56. package/dist/lib/form/items/RateItem.vue.js +7 -4
  57. package/dist/lib/form/items/RichEditorItem.vue.js +6 -3
  58. package/dist/lib/form/items/SelectItem.vue.js +8 -5
  59. package/dist/lib/form/items/SelectV2Item.vue.js +9 -6
  60. package/dist/lib/form/items/SliderItem.vue.js +7 -4
  61. package/dist/lib/form/items/SwitchItem.vue.js +7 -4
  62. package/dist/lib/form/items/TextareaItem.vue.js +10 -7
  63. package/dist/lib/form/items/TimePickerItem.vue.js +11 -8
  64. package/dist/lib/form/items/TimeSelectItem.vue.js +7 -4
  65. package/dist/lib/form/items/TransferItem.vue.js +8 -5
  66. package/dist/lib/form/items/TreeSelectItem.vue.js +8 -5
  67. package/dist/lib/package.json.js +1 -1
  68. package/dist/lib/style.css +8 -0
  69. package/package.json +1 -1
@@ -1,7 +1,3 @@
1
1
 
2
- /* JkyAMarker 组件样式 - 参考高德官方示例 */
3
- .amap-icon img,
4
- .amap-marker-content img {
5
- width: 25px;
6
- height: 34px;
7
- }
2
+ /* 轨迹回放组件不需要额外样式 */
3
+ /* 所有样式通过 TailwindCSS 工具类或外部组件控制 */
@@ -1,3 +1,7 @@
1
1
 
2
- /* 轨迹回放组件不需要额外样式 */
3
- /* 所有样式通过 TailwindCSS 工具类或外部组件控制 */
2
+ /* JkyAMarker 组件样式 - 参考高德官方示例 */
3
+ .amap-icon img,
4
+ .amap-marker-content img {
5
+ width: 25px;
6
+ height: 34px;
7
+ }
@@ -135,6 +135,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
135
135
  const loadError = ref(null);
136
136
  const componentProps = ref({});
137
137
  const rulesData = ref(null);
138
+ const isHidden = ref(false);
138
139
  const rules = computed(() => {
139
140
  const r = rulesData.value;
140
141
  if (!r)
@@ -206,6 +207,33 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
206
207
  rulesData.value = typeof configRules !== "function" ? configRules : null;
207
208
  });
208
209
  }
210
+ function loadHidden() {
211
+ return __async(this, null, function* () {
212
+ const configHidden = props.config.hidden;
213
+ if (!configHidden) {
214
+ isHidden.value = false;
215
+ return;
216
+ }
217
+ if (typeof configHidden === "function") {
218
+ loading.value = true;
219
+ try {
220
+ const result = yield configHidden({
221
+ model: props.model,
222
+ field: props.field,
223
+ $form: props.model
224
+ });
225
+ isHidden.value = result || false;
226
+ } catch (error) {
227
+ console.error("Failed to load hidden:", error);
228
+ isHidden.value = false;
229
+ } finally {
230
+ loading.value = false;
231
+ }
232
+ return;
233
+ }
234
+ isHidden.value = configHidden != null ? configHidden : false;
235
+ });
236
+ }
209
237
  function reloadComponentProps() {
210
238
  return __async(this, null, function* () {
211
239
  yield loadComponentProps();
@@ -223,12 +251,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
223
251
  () => {
224
252
  loadComponentProps();
225
253
  loadRules();
254
+ loadHidden();
226
255
  },
227
256
  { deep: true }
228
257
  );
229
258
  }
230
259
  loadComponentProps();
231
260
  loadRules();
261
+ loadHidden();
232
262
  setupWatchFields();
233
263
  const modelValue = computed({
234
264
  get: () => props.model[props.field],
@@ -236,16 +266,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
236
266
  props.model[props.field] = val;
237
267
  }
238
268
  });
239
- const isHidden = computed(() => {
240
- if (typeof props.config.hidden === "function") {
241
- return props.config.hidden({
242
- model: props.model,
243
- field: props.field,
244
- $form: props.model
245
- });
246
- }
247
- return props.config.hidden || false;
248
- });
249
269
  const formItemProps = computed(() => {
250
270
  const config = props.config;
251
271
  const _a = config, {
@@ -17,14 +17,18 @@ 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, withCtx, renderSlot, createElementVNode, createElementBlock, createVNode, createTextVNode } from "vue";
21
- import { Loading, WarningFilled } from "@element-plus/icons-vue";
20
+ import { defineComponent, computed, openBlock, createElementBlock, renderSlot, createElementVNode, createVNode, unref, withCtx, createTextVNode } from "vue";
21
+ import { WarningFilled } from "@element-plus/icons-vue";
22
22
  import { ElIcon, ElButton } from "element-plus";
23
23
  const _hoisted_1 = {
24
+ key: 0,
25
+ class: "w-0 h-0 jky-form-item-wrapper__loading"
26
+ };
27
+ const _hoisted_2 = {
24
28
  key: 1,
25
29
  class: "jky-form-item-wrapper__error"
26
30
  };
27
- const _hoisted_2 = { class: "flex items-center gap-2 text-red-500 py-1" };
31
+ const _hoisted_3 = { class: "flex items-center gap-2 text-red-500 py-1" };
28
32
  const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
29
33
  name: "JkyFormItemWrapper"
30
34
  }), {
@@ -43,22 +47,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
43
47
  emit("retry");
44
48
  }
45
49
  return (_ctx, _cache) => {
46
- return showLoading.value ? (openBlock(), createBlock(unref(Loading), {
47
- key: 0,
48
- class: "jky-form-item-wrapper__loading"
49
- }, {
50
- default: withCtx(() => [
51
- renderSlot(_ctx.$slots, "loading", {}, () => [
52
- _cache[0] || (_cache[0] = createElementVNode("div", { class: "skeleton-box w-full h-9 rounded bg-gray-200 animate-pulse" }, null, -1))
53
- ])
54
- ]),
55
- _: 3
56
- })) : showError.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
50
+ return showLoading.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
51
+ renderSlot(_ctx.$slots, "loading", {}, () => [
52
+ _cache[0] || (_cache[0] = createElementVNode("div", { class: "skeleton-box w-full h-9 rounded bg-gray-200 animate-pulse" }, null, -1))
53
+ ])
54
+ ])) : showError.value ? (openBlock(), createElementBlock("div", _hoisted_2, [
57
55
  renderSlot(_ctx.$slots, "error", {
58
56
  error: __props.error,
59
57
  retry: handleRetry
60
58
  }, () => [
61
- createElementVNode("div", _hoisted_2, [
59
+ createElementVNode("div", _hoisted_3, [
62
60
  createVNode(unref(ElIcon), { size: 14 }, {
63
61
  default: withCtx(() => [
64
62
  createVNode(unref(WarningFilled))
@@ -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 addInputProps = computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
39
- disabled: props.disabled
40
- }));
38
+ const addInputProps = 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)
@@ -34,11 +34,14 @@ 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 autocompleteProps = computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
38
- modelValue: props.modelValue,
39
- placeholder: props.componentProps.placeholder || props.config.placeholder || "请输入",
40
- disabled: props.disabled
41
- }));
37
+ const autocompleteProps = computed(() => {
38
+ var _a, _b;
39
+ return __spreadProps(__spreadValues({}, props.componentProps), {
40
+ modelValue: props.modelValue,
41
+ placeholder: props.componentProps.placeholder || props.config.placeholder || "请输入",
42
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
43
+ });
44
+ });
42
45
  return (_ctx, _cache) => {
43
46
  return openBlock(), createBlock(unref(ElAutocomplete), mergeProps(autocompleteProps.value, {
44
47
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
@@ -34,11 +34,14 @@ 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 cascaderProps = computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
38
- modelValue: props.modelValue,
39
- placeholder: props.componentProps.placeholder || props.config.placeholder || "请选择",
40
- disabled: props.disabled
41
- }));
37
+ const cascaderProps = computed(() => {
38
+ var _a, _b;
39
+ return __spreadProps(__spreadValues({}, props.componentProps), {
40
+ modelValue: props.modelValue,
41
+ placeholder: props.componentProps.placeholder || props.config.placeholder || "请选择",
42
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
43
+ });
44
+ });
42
45
  return (_ctx, _cache) => {
43
46
  return openBlock(), createBlock(unref(ElCascader), mergeProps(cascaderProps.value, {
44
47
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
@@ -34,10 +34,13 @@ 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 checkboxGroupProps = computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
38
- modelValue: Array.isArray(props.modelValue) ? props.modelValue : [],
39
- disabled: props.disabled
40
- }));
37
+ const checkboxGroupProps = computed(() => {
38
+ var _a, _b;
39
+ return __spreadProps(__spreadValues({}, props.componentProps), {
40
+ modelValue: Array.isArray(props.modelValue) ? props.modelValue : [],
41
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
42
+ });
43
+ });
41
44
  const options = computed(() => props.componentProps.options || props.config.options || []);
42
45
  return (_ctx, _cache) => {
43
46
  return openBlock(), createBlock(unref(ElCheckboxGroup), mergeProps(checkboxGroupProps.value, {
@@ -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)
@@ -34,10 +34,13 @@ 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 colorPickerProps = computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
38
- modelValue: props.modelValue,
39
- disabled: props.disabled
40
- }));
37
+ const colorPickerProps = computed(() => {
38
+ var _a, _b;
39
+ return __spreadProps(__spreadValues({}, props.componentProps), {
40
+ modelValue: props.modelValue,
41
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
42
+ });
43
+ });
41
44
  return (_ctx, _cache) => {
42
45
  return openBlock(), createBlock(unref(ElColorPicker), mergeProps(colorPickerProps.value, {
43
46
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
@@ -34,10 +34,13 @@ 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 colorPickerPanelProps = computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
38
- modelValue: props.modelValue,
39
- disabled: props.disabled
40
- }));
37
+ const colorPickerPanelProps = computed(() => {
38
+ var _a, _b;
39
+ return __spreadProps(__spreadValues({}, props.componentProps), {
40
+ modelValue: props.modelValue,
41
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
42
+ });
43
+ });
41
44
  return (_ctx, _cache) => {
42
45
  return openBlock(), createBlock(unref(ElColorPickerPanel), mergeProps(colorPickerPanelProps.value, {
43
46
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
@@ -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
  }
@@ -34,14 +34,17 @@ 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 datepickerProps = computed(() => {
38
+ var _a, _b;
39
+ return __spreadProps(__spreadValues({
40
+ startPlaceholder: "开始日期",
41
+ endPlaceholder: "结束日期",
42
+ placeholder: "选择日期"
43
+ }, props.componentProps), {
44
+ modelValue: props.modelValue,
45
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
46
+ });
47
+ });
45
48
  return (_ctx, _cache) => {
46
49
  return openBlock(), createBlock(unref(ElDatePicker), mergeProps(datepickerProps.value, {
47
50
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
@@ -34,12 +34,15 @@ 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 uploadProps = computed(() => {
38
+ var _a, _b;
39
+ return __spreadProps(__spreadValues({}, props.componentProps), {
40
+ action: props.componentProps.action || "#",
41
+ fileList: props.componentProps.fileList || [],
42
+ listType: props.componentProps.listType || "text",
43
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
44
+ });
45
+ });
43
46
  const listType = computed(() => props.componentProps.listType || "text");
44
47
  return (_ctx, _cache) => {
45
48
  return openBlock(), createBlock(unref(ElUpload), mergeProps(uploadProps.value, {
@@ -36,12 +36,15 @@ 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 uploadProps = computed(() => {
40
+ var _a, _b;
41
+ return __spreadProps(__spreadValues({}, props.componentProps), {
42
+ action: props.componentProps.action || "#",
43
+ fileList: props.componentProps.fileList || [],
44
+ listType: props.componentProps.listType || "picture-card",
45
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
46
+ });
47
+ });
45
48
  const listType = computed(() => props.componentProps.listType || "picture-card");
46
49
  return (_ctx, _cache) => {
47
50
  return openBlock(), createBlock(unref(ElUpload), mergeProps(uploadProps.value, {
@@ -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, computed, openBlock, createBlock, unref, mergeProps, createSlots, renderList, withCtx, renderSlot, resolveDynamicComponent, normalizeProps, guardReactiveProps } from "vue";
21
21
  import { ElInput } from "element-plus";
22
22
  const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
23
23
  name: "JkyFormItemInput"
@@ -35,14 +35,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
35
35
  const props = __props;
36
36
  const emit = __emit;
37
37
  const inputProps = computed(() => {
38
- var _a;
38
+ var _a, _b, _c;
39
39
  return __spreadProps(__spreadValues({}, props.componentProps), {
40
40
  modelValue: props.modelValue,
41
41
  placeholder: props.componentProps.placeholder || props.config.placeholder || "请输入",
42
- disabled: props.disabled,
42
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled,
43
43
  prefixIcon: props.config.prefixIcon,
44
44
  suffixIcon: props.config.suffixIcon,
45
- class: ["w-full min-w-25", (_a = props.componentProps) == null ? void 0 : _a.class]
45
+ class: ["w-full min-w-25", (_c = props.componentProps) == null ? void 0 : _c.class]
46
46
  });
47
47
  });
48
48
  return (_ctx, _cache) => {
@@ -53,7 +53,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
53
53
  return {
54
54
  name,
55
55
  fn: withCtx((slotData) => [
56
- renderSlot(_ctx.$slots, name, normalizeProps(guardReactiveProps(slotData || {})))
56
+ renderSlot(_ctx.$slots, name, mergeProps(slotData || {}, { key: index }))
57
57
  ])
58
58
  };
59
59
  }),
@@ -38,11 +38,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
38
38
  const val = props.modelValue;
39
39
  return val === "" || val === null || val === void 0 ? null : Number(val);
40
40
  });
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
- }));
41
+ const inputNumberProps = computed(() => {
42
+ var _a, _b;
43
+ return __spreadProps(__spreadValues({}, props.componentProps), {
44
+ modelValue: numberModelValue.value,
45
+ placeholder: props.componentProps.placeholder || props.config.placeholder || "请输入",
46
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
47
+ });
48
+ });
46
49
  return (_ctx, _cache) => {
47
50
  return openBlock(), createBlock(unref(ElInputNumber), mergeProps(inputNumberProps.value, {
48
51
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
@@ -34,10 +34,13 @@ 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 inputTagProps = computed(() => {
38
+ var _a, _b;
39
+ return __spreadProps(__spreadValues({}, props.componentProps), {
40
+ modelValue: props.modelValue || [],
41
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
42
+ });
43
+ });
41
44
  return (_ctx, _cache) => {
42
45
  return openBlock(), createBlock(unref(ElInputTag), mergeProps(inputTagProps.value, {
43
46
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
@@ -137,7 +137,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
137
137
  modelValue: values.value[index],
138
138
  "onUpdate:modelValue": ($event) => values.value[index] = $event,
139
139
  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,
140
+ disabled: __props.disabled || index > 0 && (values.value[index - 1] === void 0 || values.value[index - 1] === null),
141
141
  filterable: (_d = (_c = config.value) == null ? void 0 : _c.filterable) != null ? _d : false,
142
142
  clearable: (_f = (_e = config.value) == null ? void 0 : _e.clearable) != null ? _f : true,
143
143
  loading: loadingList.value[index],
@@ -34,10 +34,13 @@ 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 mentionProps = computed(() => {
38
+ var _a, _b;
39
+ return __spreadProps(__spreadValues({}, props.componentProps), {
40
+ modelValue: props.modelValue || "",
41
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
42
+ });
43
+ });
41
44
  return (_ctx, _cache) => {
42
45
  return openBlock(), createBlock(unref(ElMention), mergeProps(mentionProps.value, {
43
46
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
@@ -34,10 +34,13 @@ 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 radioGroupProps = computed(() => {
38
+ var _a, _b;
39
+ return __spreadProps(__spreadValues({}, props.componentProps), {
40
+ modelValue: props.modelValue,
41
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
42
+ });
43
+ });
41
44
  const options = computed(() => props.componentProps.options || props.config.options || []);
42
45
  const isButton = computed(() => props.componentProps.button || false);
43
46
  return (_ctx, _cache) => {
@@ -34,10 +34,13 @@ 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 rateProps = computed(() => {
38
+ var _a, _b;
39
+ return __spreadProps(__spreadValues({}, props.componentProps), {
40
+ modelValue: props.modelValue,
41
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
42
+ });
43
+ });
41
44
  return (_ctx, _cache) => {
42
45
  return openBlock(), createBlock(unref(ElRate), mergeProps(rateProps.value, {
43
46
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
@@ -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)
@@ -34,11 +34,14 @@ 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 selectProps = computed(() => {
38
+ var _a, _b;
39
+ return __spreadProps(__spreadValues({}, props.componentProps), {
40
+ modelValue: props.modelValue,
41
+ placeholder: props.componentProps.placeholder || props.config.placeholder || "请选择",
42
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
43
+ });
44
+ });
42
45
  const options = computed(() => props.componentProps.options || props.config.options || []);
43
46
  return (_ctx, _cache) => {
44
47
  return openBlock(), createBlock(unref(ElSelect), mergeProps({ class: "min-w-30" }, selectProps.value, {
@@ -34,12 +34,15 @@ 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 selectV2Props = computed(() => {
38
+ var _a, _b;
39
+ return __spreadProps(__spreadValues({}, props.componentProps), {
40
+ modelValue: props.modelValue,
41
+ placeholder: props.componentProps.placeholder || props.config.placeholder || "请选择",
42
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled,
43
+ options: props.componentProps.options || []
44
+ });
45
+ });
43
46
  return (_ctx, _cache) => {
44
47
  return openBlock(), createBlock(unref(ElSelectV2), mergeProps({ class: "min-w-30" }, selectV2Props.value, {
45
48
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
@@ -34,10 +34,13 @@ 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 sliderProps = computed(() => {
38
+ var _a, _b;
39
+ return __spreadProps(__spreadValues({}, props.componentProps), {
40
+ modelValue: props.modelValue,
41
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
42
+ });
43
+ });
41
44
  return (_ctx, _cache) => {
42
45
  return openBlock(), createBlock(unref(ElSlider), mergeProps(sliderProps.value, {
43
46
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
@@ -34,10 +34,13 @@ 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 switchProps = computed(() => {
38
+ var _a, _b;
39
+ return __spreadProps(__spreadValues({}, props.componentProps), {
40
+ modelValue: props.modelValue,
41
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
42
+ });
43
+ });
41
44
  return (_ctx, _cache) => {
42
45
  return openBlock(), createBlock(unref(ElSwitch), mergeProps(switchProps.value, {
43
46
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))