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
@@ -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))
@@ -36,13 +36,16 @@ 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 textareaProps = vue.computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
40
- modelValue: props.modelValue,
41
- placeholder: props.componentProps.placeholder || props.config.placeholder || "请输入",
42
- disabled: props.disabled,
43
- type: "textarea",
44
- rows: props.componentProps.rows || 4
45
- }));
39
+ const textareaProps = 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
+ type: "textarea",
46
+ rows: props.componentProps.rows || 4
47
+ });
48
+ });
46
49
  return (_ctx, _cache) => {
47
50
  return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElInput), vue.mergeProps(textareaProps.value, {
48
51
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
@@ -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 timePickerProps = vue.computed(() => __spreadProps(__spreadValues({
40
- startPlaceholder: "开始时间",
41
- endPlaceholder: "结束时间",
42
- placeholder: "请选择时间"
43
- }, props.componentProps), {
44
- modelValue: props.modelValue,
45
- disabled: props.disabled
46
- }));
39
+ const timePickerProps = 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.ElTimePicker), vue.mergeProps(timePickerProps.value, {
49
52
  "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 timeSelectProps = vue.computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
40
- modelValue: props.modelValue,
41
- disabled: props.disabled
42
- }));
39
+ const timeSelectProps = 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.ElTimeSelect), vue.mergeProps(timeSelectProps.value, {
45
48
  "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 transferProps = vue.computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
40
- modelValue: props.modelValue || [],
41
- disabled: props.disabled,
42
- data: props.componentProps.data || []
43
- }));
39
+ const transferProps = 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
+ data: props.componentProps.data || []
45
+ });
46
+ });
44
47
  return (_ctx, _cache) => {
45
48
  return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElTransfer), vue.mergeProps(transferProps.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 treeSelectProps = 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 treeSelectProps = 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.ElTreeSelect), vue.mergeProps(treeSelectProps.value, {
46
49
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const version = "0.0.131";
3
+ const version = "0.0.133";
4
4
  exports.version = version;
@@ -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
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jky-component-lib",
3
3
  "type": "module",
4
- "version": "0.0.131",
4
+ "version": "0.0.133",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },