jky-component-lib 0.0.129 → 0.0.131

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 (246) hide show
  1. package/dist/es/amap/style.css +12 -5
  2. package/dist/es/amap/style2.css +6 -2
  3. package/dist/es/amap/style3.css +2 -13
  4. package/dist/es/components.js +3 -3
  5. package/dist/es/form/Form.vue.d.ts +5 -5
  6. package/dist/es/form/Form.vue.js +0 -1
  7. package/dist/es/form/FormItem.vue.d.ts +24 -1
  8. package/dist/es/form/FormItem.vue.js +214 -306
  9. package/dist/es/form/{FormItem.vue3.js → FormItem.vue2.js} +0 -1
  10. package/dist/es/form/{LinkedSelect.vue.d.ts → FormItemWrapper.vue.d.ts} +15 -18
  11. package/dist/es/form/FormItemWrapper.vue.js +88 -0
  12. package/dist/es/form/FormItemWrapper.vue3.js +5 -0
  13. package/dist/es/form/index.d.ts +2 -2
  14. package/dist/es/form/index.js +5 -5
  15. package/dist/es/form/items/AMapPickerItem.vue.d.ts +19 -0
  16. package/dist/es/form/items/AMapPickerItem.vue.js +104 -0
  17. package/dist/es/form/items/AMapPickerItem.vue2.js +4 -0
  18. package/dist/es/form/items/AddInputItem.vue.d.ts +13 -0
  19. package/dist/es/form/items/AddInputItem.vue.js +55 -0
  20. package/dist/es/form/items/AddInputItem.vue2.js +4 -0
  21. package/dist/es/form/items/AutocompleteItem.vue.d.ts +26 -0
  22. package/dist/es/form/items/AutocompleteItem.vue.js +68 -0
  23. package/dist/es/form/items/AutocompleteItem.vue2.js +4 -0
  24. package/dist/es/form/items/CascaderItem.vue.d.ts +26 -0
  25. package/dist/es/form/items/CascaderItem.vue.js +68 -0
  26. package/dist/es/form/items/CascaderItem.vue2.js +4 -0
  27. package/dist/es/form/items/CheckboxGroupItem.vue.d.ts +26 -0
  28. package/dist/es/form/items/CheckboxGroupItem.vue.js +84 -0
  29. package/dist/es/form/items/CheckboxGroupItem.vue2.js +4 -0
  30. package/dist/es/form/items/CodeMirrorEditorItem.vue.d.ts +13 -0
  31. package/dist/es/form/items/CodeMirrorEditorItem.vue.js +55 -0
  32. package/dist/es/form/items/CodeMirrorEditorItem.vue2.js +4 -0
  33. package/dist/es/form/items/ColorPickerItem.vue.d.ts +26 -0
  34. package/dist/es/form/items/ColorPickerItem.vue.js +67 -0
  35. package/dist/es/form/items/ColorPickerItem.vue2.js +4 -0
  36. package/dist/es/form/items/ColorPickerPanelItem.vue.d.ts +26 -0
  37. package/dist/es/form/items/ColorPickerPanelItem.vue.js +67 -0
  38. package/dist/es/form/items/ColorPickerPanelItem.vue2.js +4 -0
  39. package/dist/es/form/items/CustomItem.vue.d.ts +12 -0
  40. package/dist/es/form/items/CustomItem.vue.js +53 -0
  41. package/dist/es/form/items/CustomItem.vue2.js +4 -0
  42. package/dist/es/form/items/DatePickerItem.vue.d.ts +26 -0
  43. package/dist/es/form/items/DatePickerItem.vue.js +71 -0
  44. package/dist/es/form/items/DatePickerItem.vue2.js +4 -0
  45. package/dist/es/form/items/DividerItem.vue.d.ts +22 -0
  46. package/dist/es/form/items/DividerItem.vue.js +67 -0
  47. package/dist/es/form/items/DividerItem.vue2.js +4 -0
  48. package/dist/es/form/items/FileUploadItem.vue.d.ts +26 -0
  49. package/dist/es/form/items/FileUploadItem.vue.js +82 -0
  50. package/dist/es/form/items/FileUploadItem.vue2.js +4 -0
  51. package/dist/es/form/items/ImageUploadItem.vue.d.ts +26 -0
  52. package/dist/es/form/items/ImageUploadItem.vue.js +97 -0
  53. package/dist/es/form/items/ImageUploadItem.vue2.js +4 -0
  54. package/dist/es/form/items/InputItem.vue.d.ts +26 -0
  55. package/dist/es/form/items/InputItem.vue.js +74 -0
  56. package/dist/es/form/items/InputItem.vue2.js +4 -0
  57. package/dist/es/form/items/InputNumberItem.vue.d.ts +26 -0
  58. package/dist/es/form/items/InputNumberItem.vue.js +72 -0
  59. package/dist/es/form/items/InputNumberItem.vue2.js +4 -0
  60. package/dist/es/form/items/InputTagItem.vue.d.ts +26 -0
  61. package/dist/es/form/items/InputTagItem.vue.js +67 -0
  62. package/dist/es/form/items/InputTagItem.vue2.js +4 -0
  63. package/dist/es/form/items/LinkedSelectItem.vue.d.ts +29 -0
  64. package/dist/es/form/{LinkedSelect.vue.js → items/LinkedSelectItem.vue.js} +51 -27
  65. package/dist/es/form/items/LinkedSelectItem.vue2.js +4 -0
  66. package/dist/es/form/items/MentionItem.vue.d.ts +26 -0
  67. package/dist/es/form/items/MentionItem.vue.js +67 -0
  68. package/dist/es/form/items/MentionItem.vue2.js +4 -0
  69. package/dist/es/form/items/RadioGroupItem.vue.d.ts +26 -0
  70. package/dist/es/form/items/RadioGroupItem.vue.js +98 -0
  71. package/dist/es/form/items/RadioGroupItem.vue2.js +4 -0
  72. package/dist/es/form/items/RateItem.vue.d.ts +26 -0
  73. package/dist/es/form/items/RateItem.vue.js +67 -0
  74. package/dist/es/form/items/RateItem.vue2.js +4 -0
  75. package/dist/es/form/items/RichEditorItem.vue.d.ts +13 -0
  76. package/dist/es/form/items/RichEditorItem.vue.js +55 -0
  77. package/dist/es/form/items/RichEditorItem.vue2.js +4 -0
  78. package/dist/es/form/items/SelectItem.vue.d.ts +26 -0
  79. package/dist/es/form/items/SelectItem.vue.js +81 -0
  80. package/dist/es/form/items/SelectItem.vue2.js +4 -0
  81. package/dist/es/form/items/SelectTableItem.vue.d.ts +5995 -0
  82. package/dist/es/form/items/SelectTableItem.vue.js +297 -0
  83. package/dist/es/form/items/SelectTableItem.vue2.js +4 -0
  84. package/dist/es/form/items/SelectV2Item.vue.d.ts +26 -0
  85. package/dist/es/form/items/SelectV2Item.vue.js +69 -0
  86. package/dist/es/form/items/SelectV2Item.vue2.js +4 -0
  87. package/dist/es/form/items/SliderItem.vue.d.ts +26 -0
  88. package/dist/es/form/items/SliderItem.vue.js +67 -0
  89. package/dist/es/form/items/SliderItem.vue2.js +4 -0
  90. package/dist/es/form/items/SwitchItem.vue.d.ts +26 -0
  91. package/dist/es/form/items/SwitchItem.vue.js +67 -0
  92. package/dist/es/form/items/SwitchItem.vue2.js +4 -0
  93. package/dist/es/form/items/TextareaItem.vue.d.ts +26 -0
  94. package/dist/es/form/items/TextareaItem.vue.js +70 -0
  95. package/dist/es/form/items/TextareaItem.vue2.js +4 -0
  96. package/dist/es/form/items/TimePickerItem.vue.d.ts +26 -0
  97. package/dist/es/form/items/TimePickerItem.vue.js +71 -0
  98. package/dist/es/form/items/TimePickerItem.vue2.js +4 -0
  99. package/dist/es/form/items/TimeSelectItem.vue.d.ts +26 -0
  100. package/dist/es/form/items/TimeSelectItem.vue.js +67 -0
  101. package/dist/es/form/items/TimeSelectItem.vue2.js +4 -0
  102. package/dist/es/form/items/TransferItem.vue.d.ts +26 -0
  103. package/dist/es/form/items/TransferItem.vue.js +68 -0
  104. package/dist/es/form/items/TransferItem.vue2.js +4 -0
  105. package/dist/es/form/items/TreeSelectItem.vue.d.ts +26 -0
  106. package/dist/es/form/items/TreeSelectItem.vue.js +68 -0
  107. package/dist/es/form/items/TreeSelectItem.vue2.js +4 -0
  108. package/dist/es/form/style.css +24 -0
  109. package/dist/es/index.js +2 -2
  110. package/dist/es/package.json.js +1 -1
  111. package/dist/es/page-header/PageHeader.vue.d.ts +2 -0
  112. package/dist/es/page-header/PageHeader.vue.js +32 -25
  113. package/dist/es/page-header/PopoverMenu.vue.d.ts +1 -1
  114. package/dist/es/page-table/PageTable.vue.d.ts +17 -17
  115. package/dist/es/page-table/PageTable.vue.js +2 -1
  116. package/dist/es/page-table/Toolbar.vue.js +2 -2
  117. package/dist/es/page-table-v2/PageTableV2.vue.d.ts +8 -8
  118. package/dist/es/style.css +15 -0
  119. package/dist/es/styles.css +1 -1
  120. package/dist/lib/amap/style.css +12 -5
  121. package/dist/lib/amap/style2.css +6 -2
  122. package/dist/lib/amap/style3.css +2 -13
  123. package/dist/lib/components.js +2 -2
  124. package/dist/lib/form/Form.vue.d.ts +5 -5
  125. package/dist/lib/form/Form.vue.js +0 -1
  126. package/dist/lib/form/FormItem.vue.d.ts +24 -1
  127. package/dist/lib/form/FormItem.vue.js +211 -303
  128. package/dist/lib/form/{FormItem.vue3.js → FormItem.vue2.js} +0 -1
  129. package/dist/lib/form/{LinkedSelect.vue.d.ts → FormItemWrapper.vue.d.ts} +15 -18
  130. package/dist/lib/form/FormItemWrapper.vue.js +88 -0
  131. package/dist/lib/form/FormItemWrapper.vue3.js +5 -0
  132. package/dist/lib/form/index.d.ts +2 -2
  133. package/dist/lib/form/index.js +3 -3
  134. package/dist/lib/form/items/AMapPickerItem.vue.d.ts +19 -0
  135. package/dist/lib/form/items/AMapPickerItem.vue.js +104 -0
  136. package/dist/lib/form/items/AMapPickerItem.vue2.js +4 -0
  137. package/dist/lib/form/items/AddInputItem.vue.d.ts +13 -0
  138. package/dist/lib/form/items/AddInputItem.vue.js +55 -0
  139. package/dist/lib/form/items/AddInputItem.vue2.js +4 -0
  140. package/dist/lib/form/items/AutocompleteItem.vue.d.ts +26 -0
  141. package/dist/lib/form/items/AutocompleteItem.vue.js +68 -0
  142. package/dist/lib/form/items/AutocompleteItem.vue2.js +4 -0
  143. package/dist/lib/form/items/CascaderItem.vue.d.ts +26 -0
  144. package/dist/lib/form/items/CascaderItem.vue.js +68 -0
  145. package/dist/lib/form/items/CascaderItem.vue2.js +4 -0
  146. package/dist/lib/form/items/CheckboxGroupItem.vue.d.ts +26 -0
  147. package/dist/lib/form/items/CheckboxGroupItem.vue.js +84 -0
  148. package/dist/lib/form/items/CheckboxGroupItem.vue2.js +4 -0
  149. package/dist/lib/form/items/CodeMirrorEditorItem.vue.d.ts +13 -0
  150. package/dist/lib/form/items/CodeMirrorEditorItem.vue.js +55 -0
  151. package/dist/lib/form/items/CodeMirrorEditorItem.vue2.js +4 -0
  152. package/dist/lib/form/items/ColorPickerItem.vue.d.ts +26 -0
  153. package/dist/lib/form/items/ColorPickerItem.vue.js +67 -0
  154. package/dist/lib/form/items/ColorPickerItem.vue2.js +4 -0
  155. package/dist/lib/form/items/ColorPickerPanelItem.vue.d.ts +26 -0
  156. package/dist/lib/form/items/ColorPickerPanelItem.vue.js +67 -0
  157. package/dist/lib/form/items/ColorPickerPanelItem.vue2.js +4 -0
  158. package/dist/lib/form/items/CustomItem.vue.d.ts +12 -0
  159. package/dist/lib/form/items/CustomItem.vue.js +53 -0
  160. package/dist/lib/form/items/CustomItem.vue2.js +4 -0
  161. package/dist/lib/form/items/DatePickerItem.vue.d.ts +26 -0
  162. package/dist/lib/form/items/DatePickerItem.vue.js +71 -0
  163. package/dist/lib/form/items/DatePickerItem.vue2.js +4 -0
  164. package/dist/lib/form/items/DividerItem.vue.d.ts +22 -0
  165. package/dist/lib/form/items/DividerItem.vue.js +67 -0
  166. package/dist/lib/form/items/DividerItem.vue2.js +4 -0
  167. package/dist/lib/form/items/FileUploadItem.vue.d.ts +26 -0
  168. package/dist/lib/form/items/FileUploadItem.vue.js +82 -0
  169. package/dist/lib/form/items/FileUploadItem.vue2.js +4 -0
  170. package/dist/lib/form/items/ImageUploadItem.vue.d.ts +26 -0
  171. package/dist/lib/form/items/ImageUploadItem.vue.js +97 -0
  172. package/dist/lib/form/items/ImageUploadItem.vue2.js +4 -0
  173. package/dist/lib/form/items/InputItem.vue.d.ts +26 -0
  174. package/dist/lib/form/items/InputItem.vue.js +74 -0
  175. package/dist/lib/form/items/InputItem.vue2.js +4 -0
  176. package/dist/lib/form/items/InputNumberItem.vue.d.ts +26 -0
  177. package/dist/lib/form/items/InputNumberItem.vue.js +72 -0
  178. package/dist/lib/form/items/InputNumberItem.vue2.js +4 -0
  179. package/dist/lib/form/items/InputTagItem.vue.d.ts +26 -0
  180. package/dist/lib/form/items/InputTagItem.vue.js +67 -0
  181. package/dist/lib/form/items/InputTagItem.vue2.js +4 -0
  182. package/dist/lib/form/items/LinkedSelectItem.vue.d.ts +29 -0
  183. package/dist/lib/form/{LinkedSelect.vue.js → items/LinkedSelectItem.vue.js} +50 -26
  184. package/dist/lib/form/items/LinkedSelectItem.vue2.js +4 -0
  185. package/dist/lib/form/items/MentionItem.vue.d.ts +26 -0
  186. package/dist/lib/form/items/MentionItem.vue.js +67 -0
  187. package/dist/lib/form/items/MentionItem.vue2.js +4 -0
  188. package/dist/lib/form/items/RadioGroupItem.vue.d.ts +26 -0
  189. package/dist/lib/form/items/RadioGroupItem.vue.js +98 -0
  190. package/dist/lib/form/items/RadioGroupItem.vue2.js +4 -0
  191. package/dist/lib/form/items/RateItem.vue.d.ts +26 -0
  192. package/dist/lib/form/items/RateItem.vue.js +67 -0
  193. package/dist/lib/form/items/RateItem.vue2.js +4 -0
  194. package/dist/lib/form/items/RichEditorItem.vue.d.ts +13 -0
  195. package/dist/lib/form/items/RichEditorItem.vue.js +55 -0
  196. package/dist/lib/form/items/RichEditorItem.vue2.js +4 -0
  197. package/dist/lib/form/items/SelectItem.vue.d.ts +26 -0
  198. package/dist/lib/form/items/SelectItem.vue.js +81 -0
  199. package/dist/lib/form/items/SelectItem.vue2.js +4 -0
  200. package/dist/lib/form/items/SelectTableItem.vue.d.ts +5995 -0
  201. package/dist/lib/form/{SelectTable.vue.js → items/SelectTableItem.vue.js} +125 -54
  202. package/dist/lib/form/items/SelectTableItem.vue2.js +4 -0
  203. package/dist/lib/form/items/SelectV2Item.vue.d.ts +26 -0
  204. package/dist/lib/form/items/SelectV2Item.vue.js +69 -0
  205. package/dist/lib/form/items/SelectV2Item.vue2.js +4 -0
  206. package/dist/lib/form/items/SliderItem.vue.d.ts +26 -0
  207. package/dist/lib/form/items/SliderItem.vue.js +67 -0
  208. package/dist/lib/form/items/SliderItem.vue2.js +4 -0
  209. package/dist/lib/form/items/SwitchItem.vue.d.ts +26 -0
  210. package/dist/lib/form/items/SwitchItem.vue.js +67 -0
  211. package/dist/lib/form/items/SwitchItem.vue2.js +4 -0
  212. package/dist/lib/form/items/TextareaItem.vue.d.ts +26 -0
  213. package/dist/lib/form/items/TextareaItem.vue.js +70 -0
  214. package/dist/lib/form/items/TextareaItem.vue2.js +4 -0
  215. package/dist/lib/form/items/TimePickerItem.vue.d.ts +26 -0
  216. package/dist/lib/form/items/TimePickerItem.vue.js +71 -0
  217. package/dist/lib/form/items/TimePickerItem.vue2.js +4 -0
  218. package/dist/lib/form/items/TimeSelectItem.vue.d.ts +26 -0
  219. package/dist/lib/form/items/TimeSelectItem.vue.js +67 -0
  220. package/dist/lib/form/items/TimeSelectItem.vue2.js +4 -0
  221. package/dist/lib/form/items/TransferItem.vue.d.ts +26 -0
  222. package/dist/lib/form/items/TransferItem.vue.js +68 -0
  223. package/dist/lib/form/items/TransferItem.vue2.js +4 -0
  224. package/dist/lib/form/items/TreeSelectItem.vue.d.ts +26 -0
  225. package/dist/lib/form/items/TreeSelectItem.vue.js +68 -0
  226. package/dist/lib/form/items/TreeSelectItem.vue2.js +4 -0
  227. package/dist/lib/form/style.css +24 -0
  228. package/dist/lib/index.js +1 -1
  229. package/dist/lib/package.json.js +1 -1
  230. package/dist/lib/page-header/PageHeader.vue.d.ts +2 -0
  231. package/dist/lib/page-header/PageHeader.vue.js +32 -25
  232. package/dist/lib/page-header/PopoverMenu.vue.d.ts +1 -1
  233. package/dist/lib/page-table/PageTable.vue.d.ts +17 -17
  234. package/dist/lib/page-table/PageTable.vue.js +2 -1
  235. package/dist/lib/page-table/Toolbar.vue.js +2 -2
  236. package/dist/lib/page-table-v2/PageTableV2.vue.d.ts +8 -8
  237. package/dist/lib/style.css +15 -0
  238. package/dist/lib/styles.css +1 -1
  239. package/package.json +1 -1
  240. package/dist/es/form/LinkedSelect.vue2.js +0 -4
  241. package/dist/es/form/SelectTable.vue.d.ts +0 -38
  242. package/dist/es/form/SelectTable.vue.js +0 -226
  243. package/dist/es/form/SelectTable.vue3.js +0 -5
  244. package/dist/lib/form/LinkedSelect.vue2.js +0 -4
  245. package/dist/lib/form/SelectTable.vue.d.ts +0 -38
  246. package/dist/lib/form/SelectTable.vue3.js +0 -5
@@ -0,0 +1,82 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
+ import { defineComponent, computed, openBlock, createBlock, unref, mergeProps, createSlots, withCtx, createVNode, createTextVNode, renderList, renderSlot, normalizeProps, guardReactiveProps, resolveDynamicComponent } from "vue";
21
+ import { ElUpload, ElButton } from "element-plus";
22
+ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
23
+ name: "JkyFormItemFileUpload"
24
+ }), {
25
+ __name: "FileUploadItem",
26
+ props: {
27
+ modelValue: {},
28
+ config: {},
29
+ componentProps: {},
30
+ componentSlots: {},
31
+ disabled: { type: Boolean }
32
+ },
33
+ emits: ["update:modelValue"],
34
+ setup(__props, { emit: __emit }) {
35
+ const props = __props;
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
+ }));
43
+ const listType = computed(() => props.componentProps.listType || "text");
44
+ return (_ctx, _cache) => {
45
+ return openBlock(), createBlock(unref(ElUpload), mergeProps(uploadProps.value, {
46
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
47
+ }), createSlots({ _: 2 }, [
48
+ listType.value === "text" ? {
49
+ name: "default",
50
+ fn: withCtx(() => [
51
+ createVNode(unref(ElButton), { type: "primary" }, {
52
+ default: withCtx(() => [..._cache[1] || (_cache[1] = [
53
+ createTextVNode(" 点击上传 ", -1)
54
+ ])]),
55
+ _: 1
56
+ })
57
+ ]),
58
+ key: "0"
59
+ } : void 0,
60
+ renderList(Object.keys(_ctx.$slots), (name, index) => {
61
+ return {
62
+ name,
63
+ fn: withCtx((slotData) => [
64
+ renderSlot(_ctx.$slots, name, normalizeProps(guardReactiveProps(slotData || {})))
65
+ ])
66
+ };
67
+ }),
68
+ renderList(Object.keys(__props.componentSlots || {}), (name) => {
69
+ return {
70
+ name,
71
+ fn: withCtx((slotData) => [
72
+ (openBlock(), createBlock(resolveDynamicComponent(__props.componentSlots[name]), normalizeProps(guardReactiveProps(slotData || {})), null, 16))
73
+ ])
74
+ };
75
+ })
76
+ ]), 1040);
77
+ };
78
+ }
79
+ }));
80
+ export {
81
+ _sfc_main as default
82
+ };
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "./FileUploadItem.vue.js";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -0,0 +1,26 @@
1
+ type __VLS_Props = {
2
+ modelValue?: any;
3
+ config: any;
4
+ componentProps: any;
5
+ componentSlots?: any;
6
+ disabled?: boolean;
7
+ };
8
+ declare function __VLS_template(): {
9
+ attrs: Partial<{}>;
10
+ slots: any;
11
+ refs: {};
12
+ rootEl: any;
13
+ };
14
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
+ "update:modelValue": (value: any) => any;
17
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
18
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
19
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
20
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
21
+ export default _default;
22
+ type __VLS_WithTemplateSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -0,0 +1,97 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
+ import { defineComponent, computed, openBlock, createBlock, unref, mergeProps, createSlots, withCtx, createElementVNode, createVNode, createTextVNode, renderList, renderSlot, normalizeProps, guardReactiveProps, resolveDynamicComponent } from "vue";
21
+ import { Plus } from "@element-plus/icons-vue";
22
+ import { ElUpload, ElIcon, ElButton } from "element-plus";
23
+ const _hoisted_1 = { class: "el-upload__picture-card-wrapper" };
24
+ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
25
+ name: "JkyFormItemImageUpload"
26
+ }), {
27
+ __name: "ImageUploadItem",
28
+ props: {
29
+ modelValue: {},
30
+ config: {},
31
+ componentProps: {},
32
+ componentSlots: {},
33
+ disabled: { type: Boolean }
34
+ },
35
+ emits: ["update:modelValue"],
36
+ setup(__props, { emit: __emit }) {
37
+ const props = __props;
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
+ }));
45
+ const listType = computed(() => props.componentProps.listType || "picture-card");
46
+ return (_ctx, _cache) => {
47
+ return openBlock(), createBlock(unref(ElUpload), mergeProps(uploadProps.value, {
48
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
49
+ }), createSlots({ _: 2 }, [
50
+ listType.value === "picture-card" ? {
51
+ name: "default",
52
+ fn: withCtx(() => [
53
+ createElementVNode("div", _hoisted_1, [
54
+ createVNode(unref(ElIcon), { size: 24 }, {
55
+ default: withCtx(() => [
56
+ createVNode(unref(Plus))
57
+ ]),
58
+ _: 1
59
+ })
60
+ ])
61
+ ]),
62
+ key: "0"
63
+ } : listType.value === "picture" ? {
64
+ name: "default",
65
+ fn: withCtx(() => [
66
+ createVNode(unref(ElButton), { type: "primary" }, {
67
+ default: withCtx(() => [..._cache[1] || (_cache[1] = [
68
+ createTextVNode(" 点击上传 ", -1)
69
+ ])]),
70
+ _: 1
71
+ })
72
+ ]),
73
+ key: "1"
74
+ } : void 0,
75
+ renderList(Object.keys(_ctx.$slots), (name, index) => {
76
+ return {
77
+ name,
78
+ fn: withCtx((slotData) => [
79
+ renderSlot(_ctx.$slots, name, normalizeProps(guardReactiveProps(slotData || {})))
80
+ ])
81
+ };
82
+ }),
83
+ renderList(Object.keys(__props.componentSlots || {}), (name) => {
84
+ return {
85
+ name,
86
+ fn: withCtx((slotData) => [
87
+ (openBlock(), createBlock(resolveDynamicComponent(__props.componentSlots[name]), normalizeProps(guardReactiveProps(slotData || {})), null, 16))
88
+ ])
89
+ };
90
+ })
91
+ ]), 1040);
92
+ };
93
+ }
94
+ }));
95
+ export {
96
+ _sfc_main as default
97
+ };
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "./ImageUploadItem.vue.js";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -0,0 +1,26 @@
1
+ type __VLS_Props = {
2
+ modelValue?: any;
3
+ config: any;
4
+ componentProps: any;
5
+ componentSlots?: any;
6
+ disabled?: boolean;
7
+ };
8
+ declare function __VLS_template(): {
9
+ attrs: Partial<{}>;
10
+ slots: any;
11
+ refs: {};
12
+ rootEl: any;
13
+ };
14
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
+ "update:modelValue": (value: any) => any;
17
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
18
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
19
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
20
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
21
+ export default _default;
22
+ type __VLS_WithTemplateSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -0,0 +1,74 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
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";
21
+ import { ElInput } from "element-plus";
22
+ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
23
+ name: "JkyFormItemInput"
24
+ }), {
25
+ __name: "InputItem",
26
+ props: {
27
+ modelValue: {},
28
+ config: {},
29
+ componentProps: {},
30
+ componentSlots: {},
31
+ disabled: { type: Boolean }
32
+ },
33
+ emits: ["update:modelValue"],
34
+ setup(__props, { emit: __emit }) {
35
+ const props = __props;
36
+ const emit = __emit;
37
+ const inputProps = computed(() => {
38
+ var _a;
39
+ return __spreadProps(__spreadValues({}, props.componentProps), {
40
+ modelValue: props.modelValue,
41
+ placeholder: props.componentProps.placeholder || props.config.placeholder || "请输入",
42
+ disabled: props.disabled,
43
+ prefixIcon: props.config.prefixIcon,
44
+ suffixIcon: props.config.suffixIcon,
45
+ class: ["w-full min-w-25", (_a = props.componentProps) == null ? void 0 : _a.class]
46
+ });
47
+ });
48
+ return (_ctx, _cache) => {
49
+ return openBlock(), createBlock(unref(ElInput), mergeProps(inputProps.value, {
50
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
51
+ }), createSlots({ _: 2 }, [
52
+ renderList(Object.keys(_ctx.$slots), (name, index) => {
53
+ return {
54
+ name,
55
+ fn: withCtx((slotData) => [
56
+ renderSlot(_ctx.$slots, name, normalizeProps(guardReactiveProps(slotData || {})))
57
+ ])
58
+ };
59
+ }),
60
+ renderList(Object.keys(__props.componentSlots || {}), (name) => {
61
+ return {
62
+ name,
63
+ fn: withCtx((slotData) => [
64
+ (openBlock(), createBlock(resolveDynamicComponent(__props.componentSlots[name]), normalizeProps(guardReactiveProps(slotData || {})), null, 16))
65
+ ])
66
+ };
67
+ })
68
+ ]), 1040);
69
+ };
70
+ }
71
+ }));
72
+ export {
73
+ _sfc_main as default
74
+ };
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "./InputItem.vue.js";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -0,0 +1,26 @@
1
+ type __VLS_Props = {
2
+ modelValue?: any;
3
+ config: any;
4
+ componentProps: any;
5
+ componentSlots?: any;
6
+ disabled?: boolean;
7
+ };
8
+ declare function __VLS_template(): {
9
+ attrs: Partial<{}>;
10
+ slots: any;
11
+ refs: {};
12
+ rootEl: any;
13
+ };
14
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
+ "update:modelValue": (value: any) => any;
17
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
18
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
19
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
20
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
21
+ export default _default;
22
+ type __VLS_WithTemplateSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -0,0 +1,72 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
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";
21
+ import { ElInputNumber } from "element-plus";
22
+ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
23
+ name: "JkyFormItemInputNumber"
24
+ }), {
25
+ __name: "InputNumberItem",
26
+ props: {
27
+ modelValue: {},
28
+ config: {},
29
+ componentProps: {},
30
+ componentSlots: {},
31
+ disabled: { type: Boolean }
32
+ },
33
+ emits: ["update:modelValue"],
34
+ setup(__props, { emit: __emit }) {
35
+ const props = __props;
36
+ const emit = __emit;
37
+ const numberModelValue = computed(() => {
38
+ const val = props.modelValue;
39
+ return val === "" || val === null || val === void 0 ? null : Number(val);
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
+ }));
46
+ return (_ctx, _cache) => {
47
+ return openBlock(), createBlock(unref(ElInputNumber), mergeProps(inputNumberProps.value, {
48
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
49
+ }), createSlots({ _: 2 }, [
50
+ renderList(Object.keys(_ctx.$slots), (name, index) => {
51
+ return {
52
+ name,
53
+ fn: withCtx((slotData) => [
54
+ renderSlot(_ctx.$slots, name, normalizeProps(guardReactiveProps(slotData || {})))
55
+ ])
56
+ };
57
+ }),
58
+ renderList(Object.keys(__props.componentSlots || {}), (name) => {
59
+ return {
60
+ name,
61
+ fn: withCtx((slotData) => [
62
+ (openBlock(), createBlock(resolveDynamicComponent(__props.componentSlots[name]), normalizeProps(guardReactiveProps(slotData || {})), null, 16))
63
+ ])
64
+ };
65
+ })
66
+ ]), 1040);
67
+ };
68
+ }
69
+ }));
70
+ export {
71
+ _sfc_main as default
72
+ };
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "./InputNumberItem.vue.js";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -0,0 +1,26 @@
1
+ type __VLS_Props = {
2
+ modelValue?: any;
3
+ config: any;
4
+ componentProps: any;
5
+ componentSlots?: any;
6
+ disabled?: boolean;
7
+ };
8
+ declare function __VLS_template(): {
9
+ attrs: Partial<{}>;
10
+ slots: any;
11
+ refs: {};
12
+ rootEl: any;
13
+ };
14
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
+ "update:modelValue": (value: any) => any;
17
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
18
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
19
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
20
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
21
+ export default _default;
22
+ type __VLS_WithTemplateSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -0,0 +1,67 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
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";
21
+ import { ElInputTag } from "element-plus";
22
+ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
23
+ name: "JkyFormItemInputTag"
24
+ }), {
25
+ __name: "InputTagItem",
26
+ props: {
27
+ modelValue: {},
28
+ config: {},
29
+ componentProps: {},
30
+ componentSlots: {},
31
+ disabled: { type: Boolean }
32
+ },
33
+ emits: ["update:modelValue"],
34
+ setup(__props, { emit: __emit }) {
35
+ const props = __props;
36
+ const emit = __emit;
37
+ const inputTagProps = computed(() => __spreadProps(__spreadValues({}, props.componentProps), {
38
+ modelValue: props.modelValue || [],
39
+ disabled: props.disabled
40
+ }));
41
+ return (_ctx, _cache) => {
42
+ return openBlock(), createBlock(unref(ElInputTag), mergeProps(inputTagProps.value, {
43
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
44
+ }), createSlots({ _: 2 }, [
45
+ renderList(Object.keys(_ctx.$slots), (name, index) => {
46
+ return {
47
+ name,
48
+ fn: withCtx((slotData) => [
49
+ renderSlot(_ctx.$slots, name, normalizeProps(guardReactiveProps(slotData || {})))
50
+ ])
51
+ };
52
+ }),
53
+ renderList(Object.keys(__props.componentSlots || {}), (name) => {
54
+ return {
55
+ name,
56
+ fn: withCtx((slotData) => [
57
+ (openBlock(), createBlock(resolveDynamicComponent(__props.componentSlots[name]), normalizeProps(guardReactiveProps(slotData || {})), null, 16))
58
+ ])
59
+ };
60
+ })
61
+ ]), 1040);
62
+ };
63
+ }
64
+ }));
65
+ export {
66
+ _sfc_main as default
67
+ };
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "./InputTagItem.vue.js";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -0,0 +1,29 @@
1
+ import { FormItemConfig } from '../types';
2
+ type __VLS_Props = {
3
+ modelValue?: any[];
4
+ config: FormItemConfig;
5
+ componentProps?: any;
6
+ componentSlots?: any;
7
+ disabled?: boolean;
8
+ };
9
+ declare function __VLS_template(): {
10
+ attrs: Partial<{}>;
11
+ slots: any;
12
+ refs: {};
13
+ rootEl: HTMLDivElement;
14
+ };
15
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
17
+ "update:modelValue": (value: any[]) => any;
18
+ change: (value: any[]) => any;
19
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
20
+ "onUpdate:modelValue"?: ((value: any[]) => any) | undefined;
21
+ onChange?: ((value: any[]) => any) | undefined;
22
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
23
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
24
+ export default _default;
25
+ type __VLS_WithTemplateSlots<T, S> = T & {
26
+ new (): {
27
+ $slots: S;
28
+ };
29
+ };