jky-component-lib 0.0.132 → 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 (67) hide show
  1. package/dist/es/amap/style.css +13 -2
  2. package/dist/es/amap/style2.css +2 -13
  3. package/dist/es/form/FormItemWrapper.vue.js +13 -15
  4. package/dist/es/form/items/AddInputItem.vue.js +6 -3
  5. package/dist/es/form/items/AutocompleteItem.vue.js +8 -5
  6. package/dist/es/form/items/CascaderItem.vue.js +8 -5
  7. package/dist/es/form/items/CheckboxGroupItem.vue.js +7 -4
  8. package/dist/es/form/items/CodeMirrorEditorItem.vue.js +6 -3
  9. package/dist/es/form/items/ColorPickerItem.vue.js +7 -4
  10. package/dist/es/form/items/ColorPickerPanelItem.vue.js +7 -4
  11. package/dist/es/form/items/CustomItem.vue.js +2 -1
  12. package/dist/es/form/items/DatePickerItem.vue.js +11 -8
  13. package/dist/es/form/items/FileUploadItem.vue.js +9 -6
  14. package/dist/es/form/items/ImageUploadItem.vue.js +9 -6
  15. package/dist/es/form/items/InputItem.vue.js +5 -5
  16. package/dist/es/form/items/InputNumberItem.vue.js +8 -5
  17. package/dist/es/form/items/InputTagItem.vue.js +7 -4
  18. package/dist/es/form/items/LinkedSelectItem.vue.js +1 -1
  19. package/dist/es/form/items/MentionItem.vue.js +7 -4
  20. package/dist/es/form/items/RadioGroupItem.vue.js +7 -4
  21. package/dist/es/form/items/RateItem.vue.js +7 -4
  22. package/dist/es/form/items/RichEditorItem.vue.js +6 -3
  23. package/dist/es/form/items/SelectItem.vue.js +8 -5
  24. package/dist/es/form/items/SelectV2Item.vue.js +9 -6
  25. package/dist/es/form/items/SliderItem.vue.js +7 -4
  26. package/dist/es/form/items/SwitchItem.vue.js +7 -4
  27. package/dist/es/form/items/TextareaItem.vue.js +10 -7
  28. package/dist/es/form/items/TimePickerItem.vue.js +11 -8
  29. package/dist/es/form/items/TimeSelectItem.vue.js +7 -4
  30. package/dist/es/form/items/TransferItem.vue.js +8 -5
  31. package/dist/es/form/items/TreeSelectItem.vue.js +8 -5
  32. package/dist/es/package.json.js +1 -1
  33. package/dist/es/style.css +8 -0
  34. package/dist/lib/amap/style.css +13 -2
  35. package/dist/lib/amap/style2.css +2 -13
  36. package/dist/lib/form/FormItemWrapper.vue.js +11 -13
  37. package/dist/lib/form/items/AddInputItem.vue.js +6 -3
  38. package/dist/lib/form/items/AutocompleteItem.vue.js +8 -5
  39. package/dist/lib/form/items/CascaderItem.vue.js +8 -5
  40. package/dist/lib/form/items/CheckboxGroupItem.vue.js +7 -4
  41. package/dist/lib/form/items/CodeMirrorEditorItem.vue.js +6 -3
  42. package/dist/lib/form/items/ColorPickerItem.vue.js +7 -4
  43. package/dist/lib/form/items/ColorPickerPanelItem.vue.js +7 -4
  44. package/dist/lib/form/items/CustomItem.vue.js +2 -1
  45. package/dist/lib/form/items/DatePickerItem.vue.js +11 -8
  46. package/dist/lib/form/items/FileUploadItem.vue.js +9 -6
  47. package/dist/lib/form/items/ImageUploadItem.vue.js +9 -6
  48. package/dist/lib/form/items/InputItem.vue.js +4 -4
  49. package/dist/lib/form/items/InputNumberItem.vue.js +8 -5
  50. package/dist/lib/form/items/InputTagItem.vue.js +7 -4
  51. package/dist/lib/form/items/LinkedSelectItem.vue.js +1 -1
  52. package/dist/lib/form/items/MentionItem.vue.js +7 -4
  53. package/dist/lib/form/items/RadioGroupItem.vue.js +7 -4
  54. package/dist/lib/form/items/RateItem.vue.js +7 -4
  55. package/dist/lib/form/items/RichEditorItem.vue.js +6 -3
  56. package/dist/lib/form/items/SelectItem.vue.js +8 -5
  57. package/dist/lib/form/items/SelectV2Item.vue.js +9 -6
  58. package/dist/lib/form/items/SliderItem.vue.js +7 -4
  59. package/dist/lib/form/items/SwitchItem.vue.js +7 -4
  60. package/dist/lib/form/items/TextareaItem.vue.js +10 -7
  61. package/dist/lib/form/items/TimePickerItem.vue.js +11 -8
  62. package/dist/lib/form/items/TimeSelectItem.vue.js +7 -4
  63. package/dist/lib/form/items/TransferItem.vue.js +8 -5
  64. package/dist/lib/form/items/TreeSelectItem.vue.js +8 -5
  65. package/dist/lib/package.json.js +1 -1
  66. package/dist/lib/style.css +8 -0
  67. package/package.json +1 -1
@@ -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 transferProps = computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
38
- modelValue: props.modelValue || [],
39
- disabled: props.disabled,
40
- data: props.componentProps.data || []
41
- }));
37
+ const transferProps = 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
+ data: props.componentProps.data || []
43
+ });
44
+ });
42
45
  return (_ctx, _cache) => {
43
46
  return openBlock(), createBlock(unref(ElTransfer), mergeProps(transferProps.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 treeSelectProps = computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
38
- modelValue: props.modelValue,
39
- placeholder: props.componentProps.placeholder || props.config.placeholder || "请选择",
40
- disabled: props.disabled
41
- }));
37
+ const treeSelectProps = 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(ElTreeSelect), mergeProps(treeSelectProps.value, {
44
47
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
@@ -1,4 +1,4 @@
1
- const version = "0.0.132";
1
+ const version = "0.0.133";
2
2
  export {
3
3
  version
4
4
  };
package/dist/es/style.css CHANGED
@@ -1715,6 +1715,10 @@
1715
1715
  display: table;
1716
1716
  }
1717
1717
 
1718
+ .h-0 {
1719
+ height: calc(var(--spacing) * 0);
1720
+ }
1721
+
1718
1722
  .h-1\.5 {
1719
1723
  height: calc(var(--spacing) * 1.5);
1720
1724
  }
@@ -1783,6 +1787,10 @@
1783
1787
  min-height: 100%;
1784
1788
  }
1785
1789
 
1790
+ .w-0 {
1791
+ width: calc(var(--spacing) * 0);
1792
+ }
1793
+
1786
1794
  .w-4 {
1787
1795
  width: calc(var(--spacing) * 4);
1788
1796
  }
@@ -1,3 +1,14 @@
1
+ /* AMap 高德地图组件样式 */
2
+ .jky-amap-container {
3
+ /* 地图容器样式 */
4
+ position: relative;
5
+ overflow: hidden;
1
6
 
2
- /* 轨迹回放组件不需要额外样式 */
3
- /* 所有样式通过 TailwindCSS 工具类或外部组件控制 */
7
+ /* 隐藏高德地图的 logo 和版权信息(注意:商业使用请遵守高德地图条款) */
8
+ .amap-logo {
9
+ display: none !important;
10
+ }
11
+ .amap-copyright {
12
+ display: none !important;
13
+ }
14
+ }
@@ -1,14 +1,3 @@
1
- /* AMap 高德地图组件样式 */
2
- .jky-amap-container {
3
- /* 地图容器样式 */
4
- position: relative;
5
- overflow: hidden;
6
1
 
7
- /* 隐藏高德地图的 logo 和版权信息(注意:商业使用请遵守高德地图条款) */
8
- .amap-logo {
9
- display: none !important;
10
- }
11
- .amap-copyright {
12
- display: none !important;
13
- }
14
- }
2
+ /* 轨迹回放组件不需要额外样式 */
3
+ /* 所有样式通过 TailwindCSS 工具类或外部组件控制 */
@@ -23,10 +23,14 @@ const vue = require("vue");
23
23
  const iconsVue = require("@element-plus/icons-vue");
24
24
  const ElementPlus = require("element-plus");
25
25
  const _hoisted_1 = {
26
+ key: 0,
27
+ class: "w-0 h-0 jky-form-item-wrapper__loading"
28
+ };
29
+ const _hoisted_2 = {
26
30
  key: 1,
27
31
  class: "jky-form-item-wrapper__error"
28
32
  };
29
- const _hoisted_2 = { class: "flex items-center gap-2 text-red-500 py-1" };
33
+ const _hoisted_3 = { class: "flex items-center gap-2 text-red-500 py-1" };
30
34
  const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, {
31
35
  name: "JkyFormItemWrapper"
32
36
  }), {
@@ -45,22 +49,16 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
45
49
  emit("retry");
46
50
  }
47
51
  return (_ctx, _cache) => {
48
- return showLoading.value ? (vue.openBlock(), vue.createBlock(vue.unref(iconsVue.Loading), {
49
- key: 0,
50
- class: "jky-form-item-wrapper__loading"
51
- }, {
52
- default: vue.withCtx(() => [
53
- vue.renderSlot(_ctx.$slots, "loading", {}, () => [
54
- _cache[0] || (_cache[0] = vue.createElementVNode("div", { class: "skeleton-box w-full h-9 rounded bg-gray-200 animate-pulse" }, null, -1))
55
- ])
56
- ]),
57
- _: 3
58
- })) : showError.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
52
+ return showLoading.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
53
+ vue.renderSlot(_ctx.$slots, "loading", {}, () => [
54
+ _cache[0] || (_cache[0] = vue.createElementVNode("div", { class: "skeleton-box w-full h-9 rounded bg-gray-200 animate-pulse" }, null, -1))
55
+ ])
56
+ ])) : showError.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
59
57
  vue.renderSlot(_ctx.$slots, "error", {
60
58
  error: __props.error,
61
59
  retry: handleRetry
62
60
  }, () => [
63
- vue.createElementVNode("div", _hoisted_2, [
61
+ vue.createElementVNode("div", _hoisted_3, [
64
62
  vue.createVNode(vue.unref(ElementPlus.ElIcon), { size: 14 }, {
65
63
  default: vue.withCtx(() => [
66
64
  vue.createVNode(vue.unref(iconsVue.WarningFilled))
@@ -37,9 +37,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
37
37
  setup(__props, { emit: __emit }) {
38
38
  const props = __props;
39
39
  const emit = __emit;
40
- const addInputProps = vue.computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
41
- disabled: props.disabled
42
- }));
40
+ const addInputProps = vue.computed(() => {
41
+ var _a, _b;
42
+ return __spreadProps(__spreadValues({}, props.componentProps), {
43
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
44
+ });
45
+ });
43
46
  const innerValue = vue.computed({
44
47
  get: () => props.modelValue || [],
45
48
  set: (val) => emit("update:modelValue", val)
@@ -36,11 +36,14 @@ 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 autocompleteProps = vue.computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
40
- modelValue: props.modelValue,
41
- placeholder: props.componentProps.placeholder || props.config.placeholder || "请输入",
42
- disabled: props.disabled
43
- }));
39
+ const autocompleteProps = vue.computed(() => {
40
+ var _a, _b;
41
+ return __spreadProps(__spreadValues({}, props.componentProps), {
42
+ modelValue: props.modelValue,
43
+ placeholder: props.componentProps.placeholder || props.config.placeholder || "请输入",
44
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
45
+ });
46
+ });
44
47
  return (_ctx, _cache) => {
45
48
  return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElAutocomplete), vue.mergeProps(autocompleteProps.value, {
46
49
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
@@ -36,11 +36,14 @@ 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 cascaderProps = vue.computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
40
- modelValue: props.modelValue,
41
- placeholder: props.componentProps.placeholder || props.config.placeholder || "请选择",
42
- disabled: props.disabled
43
- }));
39
+ const cascaderProps = vue.computed(() => {
40
+ var _a, _b;
41
+ return __spreadProps(__spreadValues({}, props.componentProps), {
42
+ modelValue: props.modelValue,
43
+ placeholder: props.componentProps.placeholder || props.config.placeholder || "请选择",
44
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
45
+ });
46
+ });
44
47
  return (_ctx, _cache) => {
45
48
  return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElCascader), vue.mergeProps(cascaderProps.value, {
46
49
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
@@ -36,10 +36,13 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
36
36
  setup(__props, { emit: __emit }) {
37
37
  const props = __props;
38
38
  const emit = __emit;
39
- const checkboxGroupProps = vue.computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
40
- modelValue: Array.isArray(props.modelValue) ? props.modelValue : [],
41
- disabled: props.disabled
42
- }));
39
+ const checkboxGroupProps = vue.computed(() => {
40
+ var _a, _b;
41
+ return __spreadProps(__spreadValues({}, props.componentProps), {
42
+ modelValue: Array.isArray(props.modelValue) ? props.modelValue : [],
43
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
44
+ });
45
+ });
43
46
  const options = vue.computed(() => props.componentProps.options || props.config.options || []);
44
47
  return (_ctx, _cache) => {
45
48
  return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElCheckboxGroup), vue.mergeProps(checkboxGroupProps.value, {
@@ -37,9 +37,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
37
37
  setup(__props, { emit: __emit }) {
38
38
  const props = __props;
39
39
  const emit = __emit;
40
- const editorProps = vue.computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
41
- disabled: props.disabled
42
- }));
40
+ const editorProps = vue.computed(() => {
41
+ var _a, _b;
42
+ return __spreadProps(__spreadValues({}, props.componentProps), {
43
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
44
+ });
45
+ });
43
46
  const innerValue = vue.computed({
44
47
  get: () => props.modelValue,
45
48
  set: (val) => emit("update:modelValue", val)
@@ -36,10 +36,13 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
36
36
  setup(__props, { emit: __emit }) {
37
37
  const props = __props;
38
38
  const emit = __emit;
39
- const colorPickerProps = vue.computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
40
- modelValue: props.modelValue,
41
- disabled: props.disabled
42
- }));
39
+ const colorPickerProps = vue.computed(() => {
40
+ var _a, _b;
41
+ return __spreadProps(__spreadValues({}, props.componentProps), {
42
+ modelValue: props.modelValue,
43
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
44
+ });
45
+ });
43
46
  return (_ctx, _cache) => {
44
47
  return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElColorPicker), vue.mergeProps(colorPickerProps.value, {
45
48
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
@@ -36,10 +36,13 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
36
36
  setup(__props, { emit: __emit }) {
37
37
  const props = __props;
38
38
  const emit = __emit;
39
- const colorPickerPanelProps = vue.computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
40
- modelValue: props.modelValue,
41
- disabled: props.disabled
42
- }));
39
+ const colorPickerPanelProps = vue.computed(() => {
40
+ var _a, _b;
41
+ return __spreadProps(__spreadValues({}, props.componentProps), {
42
+ modelValue: props.modelValue,
43
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
44
+ });
45
+ });
43
46
  return (_ctx, _cache) => {
44
47
  return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElColorPickerPanel), vue.mergeProps(colorPickerPanelProps.value, {
45
48
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
@@ -35,11 +35,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
35
35
  const props = __props;
36
36
  const emit = __emit;
37
37
  const customRender = vue.computed(() => {
38
+ var _a, _b;
38
39
  if (typeof props.config.render === "function") {
39
40
  return props.config.render({
40
41
  model: props.modelValue,
41
42
  field: props.config.field,
42
- disabled: props.disabled,
43
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled,
43
44
  onChange: (val) => emit("update:modelValue", val)
44
45
  });
45
46
  }
@@ -36,14 +36,17 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
36
36
  setup(__props, { emit: __emit }) {
37
37
  const props = __props;
38
38
  const emit = __emit;
39
- const datepickerProps = vue.computed(() => __spreadProps(__spreadValues({
40
- startPlaceholder: "开始日期",
41
- endPlaceholder: "结束日期",
42
- placeholder: "选择日期"
43
- }, props.componentProps), {
44
- modelValue: props.modelValue,
45
- disabled: props.disabled
46
- }));
39
+ const datepickerProps = vue.computed(() => {
40
+ var _a, _b;
41
+ return __spreadProps(__spreadValues({
42
+ startPlaceholder: "开始日期",
43
+ endPlaceholder: "结束日期",
44
+ placeholder: "选择日期"
45
+ }, props.componentProps), {
46
+ modelValue: props.modelValue,
47
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
48
+ });
49
+ });
47
50
  return (_ctx, _cache) => {
48
51
  return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElDatePicker), vue.mergeProps(datepickerProps.value, {
49
52
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
@@ -36,12 +36,15 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
36
36
  setup(__props, { emit: __emit }) {
37
37
  const props = __props;
38
38
  const emit = __emit;
39
- const uploadProps = vue.computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
40
- action: props.componentProps.action || "#",
41
- fileList: props.componentProps.fileList || [],
42
- listType: props.componentProps.listType || "text",
43
- disabled: props.disabled
44
- }));
39
+ const uploadProps = vue.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 || "text",
45
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
46
+ });
47
+ });
45
48
  const listType = vue.computed(() => props.componentProps.listType || "text");
46
49
  return (_ctx, _cache) => {
47
50
  return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElUpload), vue.mergeProps(uploadProps.value, {
@@ -38,12 +38,15 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
38
38
  setup(__props, { emit: __emit }) {
39
39
  const props = __props;
40
40
  const emit = __emit;
41
- const uploadProps = vue.computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
42
- action: props.componentProps.action || "#",
43
- fileList: props.componentProps.fileList || [],
44
- listType: props.componentProps.listType || "picture-card",
45
- disabled: props.disabled
46
- }));
41
+ const uploadProps = vue.computed(() => {
42
+ var _a, _b;
43
+ return __spreadProps(__spreadValues({}, props.componentProps), {
44
+ action: props.componentProps.action || "#",
45
+ fileList: props.componentProps.fileList || [],
46
+ listType: props.componentProps.listType || "picture-card",
47
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
48
+ });
49
+ });
47
50
  const listType = vue.computed(() => props.componentProps.listType || "picture-card");
48
51
  return (_ctx, _cache) => {
49
52
  return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElUpload), vue.mergeProps(uploadProps.value, {
@@ -37,14 +37,14 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
37
37
  const props = __props;
38
38
  const emit = __emit;
39
39
  const inputProps = vue.computed(() => {
40
- var _a;
40
+ var _a, _b, _c;
41
41
  return __spreadProps(__spreadValues({}, props.componentProps), {
42
42
  modelValue: props.modelValue,
43
43
  placeholder: props.componentProps.placeholder || props.config.placeholder || "请输入",
44
- disabled: props.disabled,
44
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled,
45
45
  prefixIcon: props.config.prefixIcon,
46
46
  suffixIcon: props.config.suffixIcon,
47
- class: ["w-full min-w-25", (_a = props.componentProps) == null ? void 0 : _a.class]
47
+ class: ["w-full min-w-25", (_c = props.componentProps) == null ? void 0 : _c.class]
48
48
  });
49
49
  });
50
50
  return (_ctx, _cache) => {
@@ -55,7 +55,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
55
55
  return {
56
56
  name,
57
57
  fn: vue.withCtx((slotData) => [
58
- vue.renderSlot(_ctx.$slots, name, vue.normalizeProps(vue.guardReactiveProps(slotData || {})))
58
+ vue.renderSlot(_ctx.$slots, name, vue.mergeProps(slotData || {}, { key: index }))
59
59
  ])
60
60
  };
61
61
  }),
@@ -40,11 +40,14 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
40
40
  const val = props.modelValue;
41
41
  return val === "" || val === null || val === void 0 ? null : Number(val);
42
42
  });
43
- const inputNumberProps = vue.computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
44
- modelValue: numberModelValue.value,
45
- placeholder: props.componentProps.placeholder || props.config.placeholder || "请输入",
46
- disabled: props.disabled
47
- }));
43
+ const inputNumberProps = vue.computed(() => {
44
+ var _a, _b;
45
+ return __spreadProps(__spreadValues({}, props.componentProps), {
46
+ modelValue: numberModelValue.value,
47
+ placeholder: props.componentProps.placeholder || props.config.placeholder || "请输入",
48
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
49
+ });
50
+ });
48
51
  return (_ctx, _cache) => {
49
52
  return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElInputNumber), vue.mergeProps(inputNumberProps.value, {
50
53
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
@@ -36,10 +36,13 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
36
36
  setup(__props, { emit: __emit }) {
37
37
  const props = __props;
38
38
  const emit = __emit;
39
- const inputTagProps = vue.computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
40
- modelValue: props.modelValue || [],
41
- disabled: props.disabled
42
- }));
39
+ const inputTagProps = vue.computed(() => {
40
+ var _a, _b;
41
+ return __spreadProps(__spreadValues({}, props.componentProps), {
42
+ modelValue: props.modelValue || [],
43
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
44
+ });
45
+ });
43
46
  return (_ctx, _cache) => {
44
47
  return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElInputTag), vue.mergeProps(inputTagProps.value, {
45
48
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
@@ -139,7 +139,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
139
139
  modelValue: values.value[index],
140
140
  "onUpdate:modelValue": ($event) => values.value[index] = $event,
141
141
  placeholder: ((_b = (_a = config.value) == null ? void 0 : _a.placeholders) == null ? void 0 : _b[index]) || "请选择",
142
- disabled: __props.disabled || index > 0 && values.value[index - 1] === void 0 && values.value[index - 1] !== null,
142
+ disabled: __props.disabled || index > 0 && (values.value[index - 1] === void 0 || values.value[index - 1] === null),
143
143
  filterable: (_d = (_c = config.value) == null ? void 0 : _c.filterable) != null ? _d : false,
144
144
  clearable: (_f = (_e = config.value) == null ? void 0 : _e.clearable) != null ? _f : true,
145
145
  loading: loadingList.value[index],
@@ -36,10 +36,13 @@ 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 mentionProps = vue.computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
40
- modelValue: props.modelValue || "",
41
- disabled: props.disabled
42
- }));
39
+ const mentionProps = vue.computed(() => {
40
+ var _a, _b;
41
+ return __spreadProps(__spreadValues({}, props.componentProps), {
42
+ modelValue: props.modelValue || "",
43
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
44
+ });
45
+ });
43
46
  return (_ctx, _cache) => {
44
47
  return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElMention), vue.mergeProps(mentionProps.value, {
45
48
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
@@ -36,10 +36,13 @@ 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 radioGroupProps = vue.computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
40
- modelValue: props.modelValue,
41
- disabled: props.disabled
42
- }));
39
+ const radioGroupProps = vue.computed(() => {
40
+ var _a, _b;
41
+ return __spreadProps(__spreadValues({}, props.componentProps), {
42
+ modelValue: props.modelValue,
43
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
44
+ });
45
+ });
43
46
  const options = vue.computed(() => props.componentProps.options || props.config.options || []);
44
47
  const isButton = vue.computed(() => props.componentProps.button || false);
45
48
  return (_ctx, _cache) => {
@@ -36,10 +36,13 @@ 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 rateProps = vue.computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
40
- modelValue: props.modelValue,
41
- disabled: props.disabled
42
- }));
39
+ const rateProps = vue.computed(() => {
40
+ var _a, _b;
41
+ return __spreadProps(__spreadValues({}, props.componentProps), {
42
+ modelValue: props.modelValue,
43
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
44
+ });
45
+ });
43
46
  return (_ctx, _cache) => {
44
47
  return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElRate), vue.mergeProps(rateProps.value, {
45
48
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
@@ -37,9 +37,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
37
37
  setup(__props, { emit: __emit }) {
38
38
  const props = __props;
39
39
  const emit = __emit;
40
- const editorProps = vue.computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
41
- disabled: props.disabled
42
- }));
40
+ const editorProps = vue.computed(() => {
41
+ var _a, _b;
42
+ return __spreadProps(__spreadValues({}, props.componentProps), {
43
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
44
+ });
45
+ });
43
46
  const innerValue = vue.computed({
44
47
  get: () => props.modelValue,
45
48
  set: (val) => emit("update:modelValue", val)
@@ -36,11 +36,14 @@ 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 selectProps = vue.computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
40
- modelValue: props.modelValue,
41
- placeholder: props.componentProps.placeholder || props.config.placeholder || "请选择",
42
- disabled: props.disabled
43
- }));
39
+ const selectProps = vue.computed(() => {
40
+ var _a, _b;
41
+ return __spreadProps(__spreadValues({}, props.componentProps), {
42
+ modelValue: props.modelValue,
43
+ placeholder: props.componentProps.placeholder || props.config.placeholder || "请选择",
44
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
45
+ });
46
+ });
44
47
  const options = vue.computed(() => props.componentProps.options || props.config.options || []);
45
48
  return (_ctx, _cache) => {
46
49
  return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElSelect), vue.mergeProps({ class: "min-w-30" }, selectProps.value, {
@@ -36,12 +36,15 @@ 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 selectV2Props = vue.computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
40
- modelValue: props.modelValue,
41
- placeholder: props.componentProps.placeholder || props.config.placeholder || "请选择",
42
- disabled: props.disabled,
43
- options: props.componentProps.options || []
44
- }));
39
+ const selectV2Props = vue.computed(() => {
40
+ var _a, _b;
41
+ return __spreadProps(__spreadValues({}, props.componentProps), {
42
+ modelValue: props.modelValue,
43
+ placeholder: props.componentProps.placeholder || props.config.placeholder || "请选择",
44
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled,
45
+ options: props.componentProps.options || []
46
+ });
47
+ });
45
48
  return (_ctx, _cache) => {
46
49
  return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElSelectV2), vue.mergeProps({ class: "min-w-30" }, selectV2Props.value, {
47
50
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
@@ -36,10 +36,13 @@ 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 sliderProps = vue.computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
40
- modelValue: props.modelValue,
41
- disabled: props.disabled
42
- }));
39
+ const sliderProps = vue.computed(() => {
40
+ var _a, _b;
41
+ return __spreadProps(__spreadValues({}, props.componentProps), {
42
+ modelValue: props.modelValue,
43
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
44
+ });
45
+ });
43
46
  return (_ctx, _cache) => {
44
47
  return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElSlider), vue.mergeProps(sliderProps.value, {
45
48
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
@@ -36,10 +36,13 @@ 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 switchProps = vue.computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
40
- modelValue: props.modelValue,
41
- disabled: props.disabled
42
- }));
39
+ const switchProps = vue.computed(() => {
40
+ var _a, _b;
41
+ return __spreadProps(__spreadValues({}, props.componentProps), {
42
+ modelValue: props.modelValue,
43
+ disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
44
+ });
45
+ });
43
46
  return (_ctx, _cache) => {
44
47
  return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElSwitch), vue.mergeProps(switchProps.value, {
45
48
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))