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
@@ -34,13 +34,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
34
34
  setup(__props, { emit: __emit }) {
35
35
  const props = __props;
36
36
  const emit = __emit;
37
- const textareaProps = computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
38
- modelValue: props.modelValue,
39
- placeholder: props.componentProps.placeholder || props.config.placeholder || "请输入",
40
- disabled: props.disabled,
41
- type: "textarea",
42
- rows: props.componentProps.rows || 4
43
- }));
37
+ const textareaProps = 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
+ type: "textarea",
44
+ rows: props.componentProps.rows || 4
45
+ });
46
+ });
44
47
  return (_ctx, _cache) => {
45
48
  return openBlock(), createBlock(unref(ElInput), mergeProps(textareaProps.value, {
46
49
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
@@ -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 timePickerProps = computed(() => __spreadProps(__spreadValues({
38
- startPlaceholder: "开始时间",
39
- endPlaceholder: "结束时间",
40
- placeholder: "请选择时间"
41
- }, props.componentProps), {
42
- modelValue: props.modelValue,
43
- disabled: props.disabled
44
- }));
37
+ const timePickerProps = 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(ElTimePicker), mergeProps(timePickerProps.value, {
47
50
  "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 timeSelectProps = computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
38
- modelValue: props.modelValue,
39
- disabled: props.disabled
40
- }));
37
+ const timeSelectProps = 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(ElTimeSelect), mergeProps(timeSelectProps.value, {
43
46
  "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 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.131";
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,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
+ }
@@ -137,6 +137,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
137
137
  const loadError = vue.ref(null);
138
138
  const componentProps = vue.ref({});
139
139
  const rulesData = vue.ref(null);
140
+ const isHidden = vue.ref(false);
140
141
  const rules = vue.computed(() => {
141
142
  const r = rulesData.value;
142
143
  if (!r)
@@ -208,6 +209,33 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
208
209
  rulesData.value = typeof configRules !== "function" ? configRules : null;
209
210
  });
210
211
  }
212
+ function loadHidden() {
213
+ return __async(this, null, function* () {
214
+ const configHidden = props.config.hidden;
215
+ if (!configHidden) {
216
+ isHidden.value = false;
217
+ return;
218
+ }
219
+ if (typeof configHidden === "function") {
220
+ loading.value = true;
221
+ try {
222
+ const result = yield configHidden({
223
+ model: props.model,
224
+ field: props.field,
225
+ $form: props.model
226
+ });
227
+ isHidden.value = result || false;
228
+ } catch (error) {
229
+ console.error("Failed to load hidden:", error);
230
+ isHidden.value = false;
231
+ } finally {
232
+ loading.value = false;
233
+ }
234
+ return;
235
+ }
236
+ isHidden.value = configHidden != null ? configHidden : false;
237
+ });
238
+ }
211
239
  function reloadComponentProps() {
212
240
  return __async(this, null, function* () {
213
241
  yield loadComponentProps();
@@ -225,12 +253,14 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
225
253
  () => {
226
254
  loadComponentProps();
227
255
  loadRules();
256
+ loadHidden();
228
257
  },
229
258
  { deep: true }
230
259
  );
231
260
  }
232
261
  loadComponentProps();
233
262
  loadRules();
263
+ loadHidden();
234
264
  setupWatchFields();
235
265
  const modelValue = vue.computed({
236
266
  get: () => props.model[props.field],
@@ -238,16 +268,6 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
238
268
  props.model[props.field] = val;
239
269
  }
240
270
  });
241
- const isHidden = vue.computed(() => {
242
- if (typeof props.config.hidden === "function") {
243
- return props.config.hidden({
244
- model: props.model,
245
- field: props.field,
246
- $form: props.model
247
- });
248
- }
249
- return props.config.hidden || false;
250
- });
251
271
  const formItemProps = vue.computed(() => {
252
272
  const config = props.config;
253
273
  const _a = config, {
@@ -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) => {