@vunk/form 1.1.65 → 1.1.67

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 (282) hide show
  1. package/component.d.ts +1 -1
  2. package/components/button/index.css +1 -0
  3. package/components/button/index.d.ts +1 -1
  4. package/components/button/index.js +43 -57
  5. package/components/button/src/ctx.d.ts +13 -13
  6. package/components/button/src/ctx.js +1 -39
  7. package/components/button/src/index.css +1 -0
  8. package/components/button/src/index.vue.d.ts +37 -73
  9. package/components/button/src/types.d.ts +1 -1
  10. package/components/cascader/index.css +1 -0
  11. package/components/cascader/index.d.ts +1 -1
  12. package/components/cascader/index.js +34 -49
  13. package/components/cascader/src/ctx.d.ts +15 -15
  14. package/components/cascader/src/ctx.js +1 -38
  15. package/components/cascader/src/index.css +1 -0
  16. package/components/cascader/src/index.vue.d.ts +45 -70
  17. package/components/cascader/src/use.d.ts +1 -1
  18. package/components/cascader/src/use.js +1 -28
  19. package/components/checkbox/index.css +1 -0
  20. package/components/checkbox/index.d.ts +1 -1
  21. package/components/checkbox/index.js +48 -53
  22. package/components/checkbox/src/ctx.d.ts +14 -14
  23. package/components/checkbox/src/ctx.js +1 -46
  24. package/components/checkbox/src/index.css +1 -0
  25. package/components/checkbox/src/index.vue.d.ts +43 -63
  26. package/components/color-picker/index.css +1 -0
  27. package/components/color-picker/index.d.ts +1 -1
  28. package/components/color-picker/index.js +38 -42
  29. package/components/color-picker/src/ctx.d.ts +15 -13
  30. package/components/color-picker/src/ctx.js +1 -23
  31. package/components/color-picker/src/index.css +1 -0
  32. package/components/color-picker/src/index.vue.d.ts +36 -65
  33. package/components/date-picker/index.css +1 -0
  34. package/components/date-picker/index.d.ts +1 -1
  35. package/components/date-picker/index.js +42 -55
  36. package/components/date-picker/src/ctx.d.ts +41 -34
  37. package/components/date-picker/src/ctx.js +1 -31
  38. package/components/date-picker/src/index.css +1 -0
  39. package/components/date-picker/src/index.vue.d.ts +122 -133
  40. package/components/date-picker/src/types.d.ts +9 -9
  41. package/components/date-picker/src/types.js +1 -11
  42. package/components/esri-input-geojson/index.css +8 -6
  43. package/components/esri-input-geojson/index.d.ts +1 -1
  44. package/components/esri-input-geojson/index.js +417 -535
  45. package/components/esri-input-geojson/src/append.vue.d.ts +7 -7
  46. package/components/esri-input-geojson/src/const.d.ts +1 -1
  47. package/components/esri-input-geojson/src/const.js +1 -33
  48. package/components/esri-input-geojson/src/ctx.d.ts +44 -35
  49. package/components/esri-input-geojson/src/ctx.js +1 -128
  50. package/components/esri-input-geojson/src/default-view.vue.d.ts +9 -9
  51. package/components/esri-input-geojson/src/index.css +1 -0
  52. package/components/esri-input-geojson/src/index.vue.d.ts +142 -119
  53. package/components/esri-input-geojson/src/types.d.ts +1 -0
  54. package/components/esri-input-geojson/src/viewer.vue.d.ts +23 -22
  55. package/components/form/index.css +1 -0
  56. package/components/form/index.d.ts +1 -1
  57. package/components/form/index.js +57 -87
  58. package/components/form/src/ctx.d.ts +176 -204
  59. package/components/form/src/ctx.js +1 -61
  60. package/components/form/src/index.css +1 -0
  61. package/components/form/src/index.vue.d.ts +515 -601
  62. package/components/form/src/types.d.ts +3 -3
  63. package/components/form/src/utils.d.ts +1 -1
  64. package/components/form/src/utils.js +1 -55
  65. package/components/form-item/index.css +1 -0
  66. package/components/form-item/index.d.ts +1 -1
  67. package/components/form-item/index.js +22 -50
  68. package/components/form-item/src/ctx.d.ts +9 -9
  69. package/components/form-item/src/ctx.js +1 -53
  70. package/components/form-item/src/index.css +1 -0
  71. package/components/form-item/src/index.vue.d.ts +26 -26
  72. package/components/form-item/src/types.d.ts +1 -1
  73. package/components/form-item-renderer/index.css +1 -0
  74. package/components/form-item-renderer/index.d.ts +1 -1
  75. package/components/form-item-renderer/index.js +10 -18
  76. package/components/form-item-renderer/src/ctx.d.ts +3 -3
  77. package/components/form-item-renderer/src/ctx.js +1 -16
  78. package/components/form-item-renderer/src/index.css +1 -0
  79. package/components/form-item-renderer/src/index.vue.d.ts +9 -9
  80. package/components/form-item-renderer/src/symbols.js +1 -3
  81. package/components/form-item-renderer-template/index.css +1 -0
  82. package/components/form-item-renderer-template/index.d.ts +1 -1
  83. package/components/form-item-renderer-template/index.js +6 -13
  84. package/components/form-item-renderer-template/src/ctx.js +1 -9
  85. package/components/form-item-renderer-template/src/index.css +1 -0
  86. package/components/form-item-renderer-template/src/index.vue.d.ts +2 -2
  87. package/components/geoinput/index.css +1 -0
  88. package/components/geoinput/index.d.ts +1 -1
  89. package/components/geoinput/index.js +45 -43
  90. package/components/geoinput/src/ctx.d.ts +42 -28
  91. package/components/geoinput/src/ctx.js +1 -39
  92. package/components/geoinput/src/index.css +1 -0
  93. package/components/geoinput/src/index.vue.d.ts +111 -223
  94. package/components/geoinput/src/types.d.ts +3 -3
  95. package/components/geoinput-read/index.css +1 -0
  96. package/components/geoinput-read/index.d.ts +1 -1
  97. package/components/geoinput-read/index.js +120 -160
  98. package/components/geoinput-read/src/append.vue.d.ts +4 -4
  99. package/components/geoinput-read/src/core.vue.d.ts +130 -104
  100. package/components/geoinput-read/src/ctx.d.ts +42 -30
  101. package/components/geoinput-read/src/ctx.js +1 -66
  102. package/components/geoinput-read/src/index.css +1 -0
  103. package/components/geoinput-read/src/index.vue.d.ts +108 -151
  104. package/components/geoinput-read/src/types.d.ts +1 -1
  105. package/components/geoinput-update/index.css +9 -7
  106. package/components/geoinput-update/index.d.ts +1 -1
  107. package/components/geoinput-update/index.js +335 -366
  108. package/components/geoinput-update/src/append.vue.d.ts +5 -5
  109. package/components/geoinput-update/src/ctx.d.ts +38 -28
  110. package/components/geoinput-update/src/ctx.js +1 -85
  111. package/components/geoinput-update/src/index.css +1 -0
  112. package/components/geoinput-update/src/index.vue.d.ts +120 -98
  113. package/components/geoinput-update/src/types.d.ts +2 -2
  114. package/components/input/index.css +1 -0
  115. package/components/input/index.d.ts +1 -1
  116. package/components/input/index.js +43 -60
  117. package/components/input/src/ctx.d.ts +31 -25
  118. package/components/input/src/ctx.js +1 -46
  119. package/components/input/src/index.css +1 -0
  120. package/components/input/src/index.vue.d.ts +94 -110
  121. package/components/input/src/types.d.ts +2 -2
  122. package/components/input-link/index.css +1 -0
  123. package/components/input-link/index.d.ts +1 -1
  124. package/components/input-link/index.js +71 -92
  125. package/components/input-link/src/ctx.d.ts +26 -20
  126. package/components/input-link/src/ctx.js +1 -66
  127. package/components/input-link/src/index.css +1 -0
  128. package/components/input-link/src/index.vue.d.ts +72 -116
  129. package/components/input-number/index.css +1 -0
  130. package/components/input-number/index.d.ts +1 -1
  131. package/components/input-number/index.js +37 -45
  132. package/components/input-number/src/ctx.d.ts +15 -15
  133. package/components/input-number/src/ctx.js +1 -38
  134. package/components/input-number/src/index.css +1 -0
  135. package/components/input-number/src/index.vue.d.ts +42 -65
  136. package/components/input-number/src/types.d.ts +1 -1
  137. package/components/radio/index.css +1 -0
  138. package/components/radio/index.d.ts +1 -1
  139. package/components/radio/index.js +45 -50
  140. package/components/radio/src/ctx.d.ts +11 -11
  141. package/components/radio/src/ctx.js +1 -39
  142. package/components/radio/src/index.css +1 -0
  143. package/components/radio/src/index.vue.d.ts +41 -60
  144. package/components/radio/src/types.d.ts +1 -1
  145. package/components/select/index.css +1 -0
  146. package/components/select/index.d.ts +1 -1
  147. package/components/select/index.js +59 -64
  148. package/components/select/src/ctx.d.ts +39 -41
  149. package/components/select/src/ctx.js +1 -40
  150. package/components/select/src/index.css +1 -0
  151. package/components/select/src/index.vue.d.ts +130 -162
  152. package/components/select/src/types.d.ts +2 -2
  153. package/components/slider/index.css +1 -0
  154. package/components/slider/index.d.ts +1 -1
  155. package/components/slider/index.js +33 -50
  156. package/components/slider/src/ctx.d.ts +18 -18
  157. package/components/slider/src/ctx.js +1 -29
  158. package/components/slider/src/index.css +1 -0
  159. package/components/slider/src/index.vue.d.ts +62 -81
  160. package/components/switch/index.css +1 -0
  161. package/components/switch/index.d.ts +1 -1
  162. package/components/switch/index.js +33 -50
  163. package/components/switch/src/ctx.d.ts +22 -22
  164. package/components/switch/src/ctx.js +1 -31
  165. package/components/switch/src/index.css +1 -0
  166. package/components/switch/src/index.vue.d.ts +65 -83
  167. package/components/switch/src/types.d.ts +1 -1
  168. package/components/templates-default/index.css +1 -0
  169. package/components/templates-default/index.d.ts +1 -1
  170. package/components/templates-default/index.js +243 -172
  171. package/components/templates-default/src/ctx.d.ts +1 -1
  172. package/components/templates-default/src/ctx.js +1 -18
  173. package/components/templates-default/src/index.css +1 -0
  174. package/components/templates-default/src/index.vue.d.ts +9 -9
  175. package/components/templates-default/src/types.d.ts +16 -16
  176. package/components/templates-element-plus/index.css +1 -0
  177. package/components/templates-element-plus/index.d.ts +1 -1
  178. package/components/templates-element-plus/index.js +66 -36
  179. package/components/templates-element-plus/src/ctx.js +1 -9
  180. package/components/templates-element-plus/src/index.css +1 -0
  181. package/components/templates-element-plus/src/index.vue.d.ts +7 -7
  182. package/components/templates-element-plus/src/types.d.ts +1 -1
  183. package/components/templates-esri/index.css +1 -0
  184. package/components/templates-esri/index.d.ts +1 -1
  185. package/components/templates-esri/index.js +25 -24
  186. package/components/templates-esri/src/ctx.d.ts +1 -1
  187. package/components/templates-esri/src/ctx.js +1 -11
  188. package/components/templates-esri/src/index.css +1 -0
  189. package/components/templates-esri/src/index.vue.d.ts +6 -6
  190. package/components/templates-esri/src/types.d.ts +1 -1
  191. package/components/templates-layout/index.css +1 -0
  192. package/components/templates-layout/index.d.ts +1 -1
  193. package/components/templates-layout/index.js +96 -63
  194. package/components/templates-layout/src/ctx.js +1 -9
  195. package/components/templates-layout/src/index.css +1 -0
  196. package/components/templates-layout/src/index.vue.d.ts +7 -7
  197. package/components/templates-layout/src/types.d.ts +3 -3
  198. package/components/templates-mapbox/index.css +1 -0
  199. package/components/templates-mapbox/index.d.ts +1 -1
  200. package/components/templates-mapbox/index.js +25 -24
  201. package/components/templates-mapbox/src/ctx.d.ts +1 -1
  202. package/components/templates-mapbox/src/ctx.js +1 -11
  203. package/components/templates-mapbox/src/index.css +1 -0
  204. package/components/templates-mapbox/src/index.vue.d.ts +6 -6
  205. package/components/templates-mapbox/src/types.d.ts +1 -1
  206. package/components/upload/index.css +11 -9
  207. package/components/upload/index.d.ts +1 -1
  208. package/components/upload/index.js +283 -296
  209. package/components/upload/src/ctx.d.ts +32 -22
  210. package/components/upload/src/ctx.js +1 -45
  211. package/components/upload/src/file.vue.d.ts +28 -19
  212. package/components/upload/src/index.css +1 -0
  213. package/components/upload/src/index.vue.d.ts +63 -62
  214. package/components/upload-plus/index.css +1 -0
  215. package/components/upload-plus/index.d.ts +1 -1
  216. package/components/upload-plus/index.js +911 -9539
  217. package/components/upload-plus/src/api.d.ts +3 -3
  218. package/components/upload-plus/src/api.js +21 -18114
  219. package/components/upload-plus/src/const.js +1 -12
  220. package/components/upload-plus/src/ctx.d.ts +13 -13
  221. package/components/upload-plus/src/ctx.js +1 -58
  222. package/components/upload-plus/src/index.css +1 -0
  223. package/components/upload-plus/src/index.vue.d.ts +31 -48
  224. package/components/upload-plus/src/types.d.ts +1 -1
  225. package/components/van-cascader/index.css +1 -0
  226. package/components/van-cascader/index.d.ts +1 -1
  227. package/components/van-cascader/index.js +47 -55
  228. package/components/van-cascader/src/ctx.d.ts +13 -13
  229. package/components/van-cascader/src/ctx.js +1 -22
  230. package/components/van-cascader/src/index.css +1 -0
  231. package/components/van-cascader/src/index.vue.d.ts +40 -57
  232. package/components/var-datetime-picker/index.css +1 -0
  233. package/components/var-datetime-picker/index.d.ts +1 -1
  234. package/components/var-datetime-picker/index.js +137 -168
  235. package/components/var-datetime-picker/src/const.js +1 -91
  236. package/components/var-datetime-picker/src/ctx.d.ts +10 -10
  237. package/components/var-datetime-picker/src/ctx.js +1 -43
  238. package/components/var-datetime-picker/src/index.css +1 -0
  239. package/components/var-datetime-picker/src/index.vue.d.ts +26 -42
  240. package/components/var-datetime-picker/src/types.d.ts +1 -1
  241. package/components/vditor/index.css +1 -0
  242. package/components/vditor/index.d.ts +1 -1
  243. package/components/vditor/index.js +22 -17
  244. package/components/vditor/src/ctx.js +1 -15
  245. package/components/vditor/src/index.css +1 -0
  246. package/components/vditor/src/index.vue.d.ts +4 -3
  247. package/components/vditor/src/types.d.ts +1 -1
  248. package/composables/index.css +1 -0
  249. package/composables/index.js +1 -104
  250. package/composables/useForm.d.ts +2 -2
  251. package/composables/useSourceManager.d.ts +1 -1
  252. package/index.css +127 -20
  253. package/index.esm.js +1 -44
  254. package/package.json +1 -1
  255. package/shared/const/index.css +1 -0
  256. package/shared/const/index.d.ts +1 -1
  257. package/shared/const/index.js +1 -56
  258. package/shared/element-plus/ctx.d.ts +28 -26
  259. package/shared/element-plus/index.css +1 -0
  260. package/shared/element-plus/index.js +1 -220
  261. package/shared/element-plus/instances.d.ts +45 -38
  262. package/shared/form/index.css +1 -0
  263. package/shared/form/index.js +1 -30
  264. package/shared/helper/index.css +1 -0
  265. package/shared/helper/index.js +1 -9
  266. package/shared/index.css +1 -0
  267. package/shared/index.js +1 -56
  268. package/shared/infer-prop/index.css +1 -0
  269. package/shared/infer-prop/index.d.ts +1 -1
  270. package/shared/infer-prop/index.js +1 -34
  271. package/shared/progress-it/index.css +1 -0
  272. package/shared/progress-it/index.d.ts +4 -4
  273. package/shared/progress-it/index.js +1 -57
  274. package/shared/rules/index.css +1 -0
  275. package/shared/rules/index.js +1 -32
  276. package/shared/types/form/index.css +1 -0
  277. package/shared/types/index.css +1 -0
  278. package/shared/types/source/index.css +1 -0
  279. package/shared/types/source/index.d.ts +2 -2
  280. package/shared/types/source-manager/index.css +1 -0
  281. package/shared/upload/index.css +1 -0
  282. package/shared/upload/index.js +1 -767
@@ -1,220 +1 @@
1
- import { useTooltipContentProps, tagProps, timePickerDefaultProps, inputProps, inputEmits, formProps, formEmits, formItemProps, switchProps, switchEmits, inputNumberProps, inputNumberEmits, radioGroupProps, radioGroupEmits, checkboxGroupProps, checkboxGroupEmits, uploadProps, colorPickerProps, colorPickerEmits, buttonProps, buttonEmits, cascaderProps, cascaderEmits, sliderProps, sliderEmits } from 'element-plus';
2
- import { bindPropsFactory, onEmitsFactory } from '@vunk/core/shared/utils-vue';
3
- import { openBlock, createElementBlock, createElementVNode } from 'vue';
4
-
5
- /*! Element Plus Icons Vue v2.1.0 */
6
-
7
- // unplugin-vue:/plugin-vue/export-helper
8
- var export_helper_default = (sfc, props) => {
9
- let target = sfc.__vccOpts || sfc;
10
- for (let [key, val] of props)
11
- target[key] = val;
12
- return target;
13
- };
14
-
15
- // unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/arrow-down.vue?vue&type=script&lang.ts
16
- var arrow_down_vue_vue_type_script_lang_default = {
17
- name: "ArrowDown"
18
- };
19
- var _hoisted_16 = {
20
- xmlns: "http://www.w3.org/2000/svg",
21
- viewBox: "0 0 1024 1024"
22
- }, _hoisted_26 = /* @__PURE__ */ createElementVNode(
23
- "path",
24
- {
25
- fill: "currentColor",
26
- d: "M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"
27
- },
28
- null,
29
- -1
30
- /* HOISTED */
31
- ), _hoisted_36 = [
32
- _hoisted_26
33
- ];
34
- function _sfc_render6(_ctx, _cache, $props, $setup, $data, $options) {
35
- return openBlock(), createElementBlock("svg", _hoisted_16, _hoisted_36);
36
- }
37
- var arrow_down_default = /* @__PURE__ */ export_helper_default(arrow_down_vue_vue_type_script_lang_default, [["render", _sfc_render6], ["__file", "arrow-down.vue"]]);
38
-
39
- // unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/circle-close.vue?vue&type=script&lang.ts
40
- var circle_close_vue_vue_type_script_lang_default = {
41
- name: "CircleClose"
42
- };
43
- var _hoisted_151 = {
44
- xmlns: "http://www.w3.org/2000/svg",
45
- viewBox: "0 0 1024 1024"
46
- }, _hoisted_251 = /* @__PURE__ */ createElementVNode(
47
- "path",
48
- {
49
- fill: "currentColor",
50
- d: "m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248L466.752 512z"
51
- },
52
- null,
53
- -1
54
- /* HOISTED */
55
- ), _hoisted_350 = /* @__PURE__ */ createElementVNode(
56
- "path",
57
- {
58
- fill: "currentColor",
59
- d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"
60
- },
61
- null,
62
- -1
63
- /* HOISTED */
64
- ), _hoisted_416 = [
65
- _hoisted_251,
66
- _hoisted_350
67
- ];
68
- function _sfc_render51(_ctx, _cache, $props, $setup, $data, $options) {
69
- return openBlock(), createElementBlock("svg", _hoisted_151, _hoisted_416);
70
- }
71
- var circle_close_default = /* @__PURE__ */ export_helper_default(circle_close_vue_vue_type_script_lang_default, [["render", _sfc_render51], ["__file", "circle-close.vue"]]);
72
-
73
- var __defProp = Object.defineProperty;
74
- var __defProps = Object.defineProperties;
75
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
76
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
77
- var __hasOwnProp = Object.prototype.hasOwnProperty;
78
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
79
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
80
- var __spreadValues = (a, b) => {
81
- for (var prop in b || (b = {}))
82
- if (__hasOwnProp.call(b, prop))
83
- __defNormalProp(a, prop, b[prop]);
84
- if (__getOwnPropSymbols)
85
- for (var prop of __getOwnPropSymbols(b)) {
86
- if (__propIsEnum.call(b, prop))
87
- __defNormalProp(a, prop, b[prop]);
88
- }
89
- return a;
90
- };
91
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
92
- const datePickerProps = __spreadProps(__spreadValues({}, timePickerDefaultProps), {
93
- type: {
94
- type: String,
95
- default: "date"
96
- }
97
- });
98
- const datePickerEmits = {
99
- "update:modelValue": null,
100
- "change": null,
101
- "focus": null,
102
- "blur": null,
103
- "calendar-change": null,
104
- "panel-change": null,
105
- "visible-change": null,
106
- "keydown": null
107
- };
108
- const selectProps = {
109
- name: String,
110
- id: String,
111
- modelValue: {
112
- type: [Array, String, Number, Boolean, Object],
113
- default: void 0
114
- },
115
- autocomplete: {
116
- type: String,
117
- default: "off"
118
- },
119
- automaticDropdown: Boolean,
120
- size: {
121
- type: String
122
- },
123
- effect: {
124
- type: String,
125
- default: "light"
126
- },
127
- disabled: Boolean,
128
- clearable: Boolean,
129
- filterable: Boolean,
130
- allowCreate: Boolean,
131
- loading: Boolean,
132
- popperClass: {
133
- type: String,
134
- default: ""
135
- },
136
- remote: Boolean,
137
- loadingText: String,
138
- noMatchText: String,
139
- noDataText: String,
140
- remoteMethod: Function,
141
- filterMethod: Function,
142
- multiple: Boolean,
143
- multipleLimit: {
144
- type: Number,
145
- default: 0
146
- },
147
- placeholder: {
148
- type: String
149
- },
150
- defaultFirstOption: Boolean,
151
- reserveKeyword: {
152
- type: Boolean,
153
- default: true
154
- },
155
- valueKey: {
156
- type: String,
157
- default: "value"
158
- },
159
- collapseTags: Boolean,
160
- collapseTagsTooltip: {
161
- type: Boolean,
162
- default: false
163
- },
164
- teleported: useTooltipContentProps.teleported,
165
- persistent: {
166
- type: Boolean,
167
- default: true
168
- },
169
- clearIcon: {
170
- type: [String, Object],
171
- default: circle_close_default
172
- },
173
- fitInputWidth: {
174
- type: Boolean,
175
- default: false
176
- },
177
- suffixIcon: {
178
- type: [String, Object],
179
- default: arrow_down_default
180
- },
181
- tagType: __spreadProps(__spreadValues({}, tagProps.type), { default: "info" })
182
- };
183
- const selectEmits = {
184
- "update:modelValue": null,
185
- "change": null,
186
- "remove-tag": null,
187
- "clear": null,
188
- "visible-change": null,
189
- "focus": null,
190
- "blur": null
191
- };
192
-
193
- const createInputBindProps = bindPropsFactory(inputProps);
194
- const createInputOnEmits = onEmitsFactory(inputEmits);
195
- const createFormBindProps = bindPropsFactory(formProps);
196
- const createFormOnEmits = onEmitsFactory(formEmits);
197
- const createFormItemBindProps = bindPropsFactory(formItemProps);
198
- const createSwitchBindProps = bindPropsFactory(switchProps);
199
- const createSwitchOnEmits = onEmitsFactory(switchEmits);
200
- const createSelectBindProps = bindPropsFactory(selectProps);
201
- const createSelectOnEmits = onEmitsFactory(selectEmits);
202
- const createDatePickerBindProps = bindPropsFactory(datePickerProps);
203
- const createDatePickerOnEmits = onEmitsFactory(datePickerEmits);
204
- const createInputNumberBindProps = bindPropsFactory(inputNumberProps);
205
- const createInputNumberOnEmits = onEmitsFactory(inputNumberEmits);
206
- const createRadioGroupBindProps = bindPropsFactory(radioGroupProps);
207
- const createRadioGroupOnEmits = onEmitsFactory(radioGroupEmits);
208
- const createCheckboxGroupBindProps = bindPropsFactory(checkboxGroupProps);
209
- const createCheckboxGroupOnEmits = onEmitsFactory(checkboxGroupEmits);
210
- const createUploadBindProps = bindPropsFactory(uploadProps);
211
- const createColorPickerBindProps = bindPropsFactory(colorPickerProps);
212
- const createColorPickerOnEmits = onEmitsFactory(colorPickerEmits);
213
- const createButtonBindProps = bindPropsFactory(buttonProps);
214
- const createButtonOnEmits = onEmitsFactory(buttonEmits);
215
- const createCascaderBindProps = bindPropsFactory(cascaderProps);
216
- const createCascaderOnEmits = onEmitsFactory(cascaderEmits);
217
- const createSliderBindProps = bindPropsFactory(sliderProps);
218
- const createSliderOnEmits = onEmitsFactory(sliderEmits);
219
-
220
- export { createButtonBindProps, createButtonOnEmits, createCascaderBindProps, createCascaderOnEmits, createCheckboxGroupBindProps, createCheckboxGroupOnEmits, createColorPickerBindProps, createColorPickerOnEmits, createDatePickerBindProps, createDatePickerOnEmits, createFormBindProps, createFormItemBindProps, createFormOnEmits, createInputBindProps, createInputNumberBindProps, createInputNumberOnEmits, createInputOnEmits, createRadioGroupBindProps, createRadioGroupOnEmits, createSelectBindProps, createSelectOnEmits, createSliderBindProps, createSliderOnEmits, createSwitchBindProps, createSwitchOnEmits, createUploadBindProps, datePickerEmits, datePickerProps, selectEmits, selectProps };
1
+ import{timePickerDefaultProps as P,useTooltipContentProps as g,tagProps as h,inputProps as B,inputEmits as v,formProps as y,formEmits as E,formItemProps as w,switchProps as b,switchEmits as S,inputNumberProps as k,inputNumberEmits as O,radioGroupProps as x,radioGroupEmits as C,checkboxGroupProps as I,checkboxGroupEmits as F,uploadProps as G,colorPickerProps as T,colorPickerEmits as $,buttonProps as N,buttonEmits as D,cascaderProps as L,cascaderEmits as z,sliderProps as M,sliderEmits as V}from"element-plus";import{bindPropsFactory as e,onEmitsFactory as t}from"@vunk/core/shared/utils-vue";import{openBlock as s,createElementBlock as i,createElementVNode as c}from"vue";/*! Element Plus Icons Vue v2.1.0 */var p=(o,n)=>{let r=o.__vccOpts||o;for(let[l,a]of n)r[l]=a;return r},j={name:"ArrowDown"},A={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},K=c("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"},null,-1),R=[K];function U(o,n,r,l,a,_){return s(),i("svg",A,R)}var W=p(j,[["render",U],["__file","arrow-down.vue"]]),q={name:"CircleClose"},H={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},J=c("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248L466.752 512z"},null,-1),Q=c("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),X=[J,Q];function Y(o,n,r,l,a,_){return s(),i("svg",H,X)}var Z=p(q,[["render",Y],["__file","circle-close.vue"]]);const u={...P,type:{type:String,default:"date"}},d={"update:modelValue":null,change:null,focus:null,blur:null,"calendar-change":null,"panel-change":null,"visible-change":null,keydown:null},m={name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:{type:String},effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},teleported:g.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:[String,Object],default:Z},fitInputWidth:{type:Boolean,default:!1},suffixIcon:{type:[String,Object],default:W},tagType:{...h.type,default:"info"}},f={"update:modelValue":null,change:null,"remove-tag":null,clear:null,"visible-change":null,focus:null,blur:null},ee=e(B),te=t(v),oe=e(y),re=t(E),ne=e(w),le=e(b),ae=t(S),ce=e(m),se=t(f),ie=e(u),pe=t(d),ue=e(k),de=t(O),me=e(x),fe=t(C),_e=e(I),Pe=t(F),ge=e(G),he=e(T),Be=t($),ve=e(N),ye=t(D),Ee=e(L),we=t(z),be=e(M),Se=t(V);export{ve as createButtonBindProps,ye as createButtonOnEmits,Ee as createCascaderBindProps,we as createCascaderOnEmits,_e as createCheckboxGroupBindProps,Pe as createCheckboxGroupOnEmits,he as createColorPickerBindProps,Be as createColorPickerOnEmits,ie as createDatePickerBindProps,pe as createDatePickerOnEmits,oe as createFormBindProps,ne as createFormItemBindProps,re as createFormOnEmits,ee as createInputBindProps,ue as createInputNumberBindProps,de as createInputNumberOnEmits,te as createInputOnEmits,me as createRadioGroupBindProps,fe as createRadioGroupOnEmits,ce as createSelectBindProps,se as createSelectOnEmits,be as createSliderBindProps,Se as createSliderOnEmits,le as createSwitchBindProps,ae as createSwitchOnEmits,ge as createUploadBindProps,d as datePickerEmits,u as datePickerProps,f as selectEmits,m as selectProps};
@@ -7,97 +7,104 @@ export declare const datePickerProps: {
7
7
  disabledDate: {
8
8
  readonly type: PropType<Function>;
9
9
  readonly required: false;
10
- readonly validator: ((val: unknown) => boolean) | undefined;
10
+ readonly validator: (val: unknown) => boolean;
11
11
  __epPropKey: true;
12
12
  };
13
13
  cellClassName: {
14
14
  readonly type: PropType<Function>;
15
15
  readonly required: false;
16
- readonly validator: ((val: unknown) => boolean) | undefined;
16
+ readonly validator: (val: unknown) => boolean;
17
17
  __epPropKey: true;
18
18
  };
19
19
  shortcuts: import("element-plus/es/utils").EpPropFinalized<ArrayConstructor, unknown, unknown, () => never[], boolean>;
20
- arrowControl: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
20
+ arrowControl: BooleanConstructor;
21
21
  label: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
22
- tabindex: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown, 0, boolean>;
22
+ tabindex: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, 0, boolean>;
23
23
  validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
24
24
  unlinkPanels: BooleanConstructor;
25
25
  disabledHours: {
26
26
  readonly type: PropType<import("element-plus/es/components/time-picker/src/props/shared").GetDisabledHours>;
27
27
  readonly required: false;
28
- readonly validator: ((val: unknown) => boolean) | undefined;
28
+ readonly validator: (val: unknown) => boolean;
29
29
  __epPropKey: true;
30
30
  };
31
31
  disabledMinutes: {
32
32
  readonly type: PropType<import("element-plus/es/components/time-picker/src/props/shared").GetDisabledMinutes>;
33
33
  readonly required: false;
34
- readonly validator: ((val: unknown) => boolean) | undefined;
34
+ readonly validator: (val: unknown) => boolean;
35
35
  __epPropKey: true;
36
36
  };
37
37
  disabledSeconds: {
38
38
  readonly type: PropType<import("element-plus/es/components/time-picker/src/props/shared").GetDisabledSeconds>;
39
39
  readonly required: false;
40
- readonly validator: ((val: unknown) => boolean) | undefined;
40
+ readonly validator: (val: unknown) => boolean;
41
41
  __epPropKey: true;
42
42
  };
43
43
  id: {
44
- readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").SingleOrRange<string> & {}) | (() => import("element-plus").SingleOrRange<string>) | ((new (...args: any[]) => import("element-plus").SingleOrRange<string> & {}) | (() => import("element-plus").SingleOrRange<string>))[], unknown, unknown>>;
44
+ readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | [string, string]) | (() => import("element-plus").SingleOrRange<string>) | ((new (...args: any[]) => string | [string, string]) | (() => import("element-plus").SingleOrRange<string>))[], unknown, unknown>>;
45
45
  readonly required: false;
46
- readonly validator: ((val: unknown) => boolean) | undefined;
46
+ readonly validator: (val: unknown) => boolean;
47
47
  __epPropKey: true;
48
48
  };
49
- name: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").SingleOrRange<string> & {}) | (() => import("element-plus").SingleOrRange<string>) | ((new (...args: any[]) => import("element-plus").SingleOrRange<string> & {}) | (() => import("element-plus").SingleOrRange<string>))[], unknown, unknown, "", boolean>;
49
+ name: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | [string, string]) | (() => import("element-plus").SingleOrRange<string>) | ((new (...args: any[]) => string | [string, string]) | (() => import("element-plus").SingleOrRange<string>))[], unknown, unknown, "", boolean>;
50
50
  popperClass: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
51
51
  format: StringConstructor;
52
52
  valueFormat: StringConstructor;
53
+ dateFormat: StringConstructor;
54
+ timeFormat: StringConstructor;
53
55
  clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
54
- clearIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, boolean>;
56
+ clearIcon: {
57
+ readonly type: PropType<unknown>;
58
+ readonly required: false;
59
+ readonly validator: (val: unknown) => boolean;
60
+ __epPropKey: true;
61
+ };
55
62
  editable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
56
63
  prefixIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, "", boolean>;
57
64
  size: {
58
65
  readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
59
66
  readonly required: false;
60
- readonly validator: ((val: unknown) => boolean) | undefined;
67
+ readonly validator: (val: unknown) => boolean;
61
68
  __epPropKey: true;
62
69
  };
63
- readonly: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
64
- disabled: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
70
+ readonly: BooleanConstructor;
71
+ disabled: BooleanConstructor;
65
72
  placeholder: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
66
73
  popperOptions: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("element-plus").Options>) | (() => Partial<import("element-plus").Options>) | ((new (...args: any[]) => Partial<import("element-plus").Options>) | (() => Partial<import("element-plus").Options>))[], unknown, unknown, () => {}, boolean>;
67
- modelValue: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").ModelValueType & {}) | (() => import("element-plus").ModelValueType) | ((new (...args: any[]) => import("element-plus").ModelValueType & {}) | (() => import("element-plus").ModelValueType))[], unknown, unknown, "", boolean>;
74
+ modelValue: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | number | Date | [import("element-plus").DateModelType, import("element-plus").DateModelType]) | (() => import("element-plus").ModelValueType) | ((new (...args: any[]) => string | number | Date | [import("element-plus").DateModelType, import("element-plus").DateModelType]) | (() => import("element-plus").ModelValueType))[], unknown, unknown, "", boolean>;
68
75
  rangeSeparator: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "-", boolean>;
69
76
  startPlaceholder: StringConstructor;
70
77
  endPlaceholder: StringConstructor;
71
78
  defaultValue: {
72
79
  readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus").SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus").SingleOrRange<Date>))[], unknown, unknown>>;
73
80
  readonly required: false;
74
- readonly validator: ((val: unknown) => boolean) | undefined;
81
+ readonly validator: (val: unknown) => boolean;
75
82
  __epPropKey: true;
76
83
  };
77
84
  defaultTime: {
78
85
  readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus").SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus").SingleOrRange<Date>))[], unknown, unknown>>;
79
86
  readonly required: false;
80
- readonly validator: ((val: unknown) => boolean) | undefined;
87
+ readonly validator: (val: unknown) => boolean;
81
88
  __epPropKey: true;
82
89
  };
83
- isRange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
90
+ isRange: BooleanConstructor;
84
91
  };
85
92
  export declare const datePickerEmits: {
86
- 'update:modelValue': null;
87
- change: null;
88
- focus: null;
89
- blur: null;
90
- 'calendar-change': null;
91
- 'panel-change': null;
92
- 'visible-change': null;
93
- keydown: null;
93
+ 'update:modelValue': any;
94
+ change: any;
95
+ focus: any;
96
+ blur: any;
97
+ 'calendar-change': any;
98
+ 'panel-change': any;
99
+ 'visible-change': any;
100
+ keydown: any;
94
101
  };
95
102
  export declare const selectProps: {
96
103
  name: StringConstructor;
97
104
  id: StringConstructor;
98
105
  modelValue: {
99
106
  type: (StringConstructor | BooleanConstructor | NumberConstructor | ObjectConstructor | ArrayConstructor)[];
100
- default: undefined;
107
+ default: any;
101
108
  };
102
109
  autocomplete: {
103
110
  type: StringConstructor;
@@ -154,7 +161,7 @@ export declare const selectProps: {
154
161
  default: boolean;
155
162
  };
156
163
  clearIcon: {
157
- type: PropType<string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>;
164
+ type: PropType<string | Component>;
158
165
  default: import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
159
166
  };
160
167
  fitInputWidth: {
@@ -162,23 +169,23 @@ export declare const selectProps: {
162
169
  default: boolean;
163
170
  };
164
171
  suffixIcon: {
165
- type: PropType<string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>;
172
+ type: PropType<string | Component>;
166
173
  default: import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
167
174
  };
168
175
  tagType: {
169
176
  default: string;
170
- type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "success" | "warning" | "info" | "danger", unknown>>;
177
+ type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "success" | "warning" | "info" | "primary" | "danger", unknown>>;
171
178
  required: false;
172
- validator: ((val: unknown) => boolean) | undefined;
179
+ validator: (val: unknown) => boolean;
173
180
  __epPropKey: true;
174
181
  };
175
182
  };
176
183
  export declare const selectEmits: {
177
- 'update:modelValue': null;
178
- change: null;
179
- 'remove-tag': null;
180
- clear: null;
181
- 'visible-change': null;
182
- focus: null;
183
- blur: null;
184
+ 'update:modelValue': any;
185
+ change: any;
186
+ 'remove-tag': any;
187
+ clear: any;
188
+ 'visible-change': any;
189
+ focus: any;
190
+ blur: any;
184
191
  };
@@ -0,0 +1 @@
1
+
@@ -1,30 +1 @@
1
- import { ElMessage } from 'element-plus';
2
-
3
- const validateCatch = (err, init = {}) => {
4
- let msg = "";
5
- msg += init.prefix || "";
6
- for (const key in err) {
7
- err[key].forEach((v) => {
8
- msg += v.message + ";";
9
- });
10
- }
11
- msg += init.suffix || "";
12
- ElMessage({
13
- type: "warning",
14
- message: msg
15
- });
16
- };
17
- const genTemplateIfFunc = (templateIfRaw) => {
18
- if (typeof templateIfRaw === "boolean") {
19
- const flag = templateIfRaw;
20
- return () => flag;
21
- } else if (typeof templateIfRaw === "string") {
22
- const templateIf = new Function("data", templateIfRaw);
23
- return templateIf;
24
- } else if (typeof templateIfRaw === "function") {
25
- return templateIfRaw;
26
- }
27
- return () => true;
28
- };
29
-
30
- export { genTemplateIfFunc, validateCatch };
1
+ import{ElMessage as r}from"element-plus";const f=(e,n={})=>{let o="";o+=n.prefix||"";for(const t in e)e[t].forEach(s=>{o+=s.message+";"});o+=n.suffix||"",r({type:"warning",message:o})},c=e=>{if(typeof e=="boolean"){const n=e;return()=>n}else{if(typeof e=="string")return new Function("data",e);if(typeof e=="function")return e}return()=>!0};export{c as genTemplateIfFunc,f as validateCatch};
@@ -0,0 +1 @@
1
+
@@ -1,9 +1 @@
1
- const createDefaultSlots = (o) => {
2
- return {
3
- default: Array.isArray(o) ? o : [
4
- o
5
- ]
6
- };
7
- };
8
-
9
- export { createDefaultSlots };
1
+ const t=r=>({default:Array.isArray(r)?r:[r]});export{t as createDefaultSlots};
@@ -0,0 +1 @@
1
+
package/shared/index.js CHANGED
@@ -1,56 +1 @@
1
- const CORE_FORM_TEMPLATE_OPTIONS = [
2
- {
3
- value: "VkfInput",
4
- label: "\u8F93\u5165\u6846"
5
- },
6
- {
7
- value: "VkfSelect",
8
- label: "\u4E0B\u62C9\u6846"
9
- },
10
- {
11
- value: "VkfCheckbox",
12
- label: "\u591A\u9009\u6846"
13
- },
14
- {
15
- value: "VkfRadio",
16
- label: "\u5355\u9009\u6846"
17
- },
18
- {
19
- value: "VkfDatePicker",
20
- label: "\u65E5\u671F\u9009\u62E9\u5668"
21
- },
22
- {
23
- value: "VkfInputNumber",
24
- label: "\u6570\u5B57\u8F93\u5165\u6846"
25
- },
26
- {
27
- value: "VkfSwitch",
28
- label: "\u5F00\u5173"
29
- },
30
- {
31
- value: "VkfSlider",
32
- label: "\u6ED1\u5757"
33
- },
34
- {
35
- value: "VkfInputLink",
36
- label: "\u94FE\u63A5\u8F93\u5165\u6846"
37
- },
38
- {
39
- value: "VkfEsriInputGeojson",
40
- label: "\u5730\u4FE1\u8F93\u5165\u6846"
41
- },
42
- {
43
- value: "VkfCascader",
44
- label: "\u7EA7\u8054\u9009\u62E9\u5668"
45
- },
46
- {
47
- value: "VkfUpload",
48
- label: "\u4E0A\u4F20"
49
- }
50
- ];
51
- const CORE_FORM_TEMPLATE_REFLECT = CORE_FORM_TEMPLATE_OPTIONS.reduce((acc, cur) => {
52
- acc[cur.value] = cur;
53
- return acc;
54
- }, {});
55
-
56
- export { CORE_FORM_TEMPLATE_OPTIONS, CORE_FORM_TEMPLATE_REFLECT };
1
+ const e=[{value:"VkfInput",label:"\u8F93\u5165\u6846"},{value:"VkfSelect",label:"\u4E0B\u62C9\u6846"},{value:"VkfCheckbox",label:"\u591A\u9009\u6846"},{value:"VkfRadio",label:"\u5355\u9009\u6846"},{value:"VkfDatePicker",label:"\u65E5\u671F\u9009\u62E9\u5668"},{value:"VkfInputNumber",label:"\u6570\u5B57\u8F93\u5165\u6846"},{value:"VkfSwitch",label:"\u5F00\u5173"},{value:"VkfSlider",label:"\u6ED1\u5757"},{value:"VkfInputLink",label:"\u94FE\u63A5\u8F93\u5165\u6846"},{value:"VkfEsriInputGeojson",label:"\u5730\u4FE1\u8F93\u5165\u6846"},{value:"VkfCascader",label:"\u7EA7\u8054\u9009\u62E9\u5668"},{value:"VkfUpload",label:"\u4E0A\u4F20"}],a=e.reduce((u,l)=>(u[l.value]=l,u),{});export{e as CORE_FORM_TEMPLATE_OPTIONS,a as CORE_FORM_TEMPLATE_REFLECT};
@@ -0,0 +1 @@
1
+
@@ -4,7 +4,7 @@ export interface PropInfo {
4
4
  type: string;
5
5
  precision?: number;
6
6
  }
7
- export declare type InferPropInfo = (item: __VkfTemplatesDefault.CoreSource) => Partial<PropInfo>;
7
+ export type InferPropInfo = (item: __VkfTemplatesDefault.CoreSource) => Partial<PropInfo>;
8
8
  export declare const propInfoAction: {
9
9
  VkfSelect: InferPropInfo;
10
10
  VkfRadio: InferPropInfo;
@@ -1,34 +1 @@
1
- const inferString = (item) => ({
2
- prop: item.prop,
3
- type: "String"
4
- });
5
- const inferBoolean = (item) => ({
6
- prop: item.prop,
7
- type: "Boolean"
8
- });
9
- const inferNumber = (item) => {
10
- const info = {
11
- prop: item.prop,
12
- type: "Number"
13
- };
14
- if (item.precision) {
15
- info.precision = item.precision;
16
- }
17
- return info;
18
- };
19
- const inferDate = (item) => ({
20
- prop: item.prop,
21
- type: "Date"
22
- });
23
- const propInfoAction = {
24
- VkfSelect: inferString,
25
- VkfRadio: inferString,
26
- VkfCheckbox: inferString,
27
- VkfColorPicker: inferString,
28
- VkfInputNumber: inferNumber,
29
- VkfSwitch: inferBoolean,
30
- VkfUpload: inferString,
31
- VkfDatePicker: inferDate
32
- };
33
-
34
- export { propInfoAction };
1
+ const p=o=>({prop:o.prop,type:"String"}),e=o=>({prop:o.prop,type:"Boolean"}),n=o=>{const r={prop:o.prop,type:"Number"};return o.precision&&(r.precision=o.precision),r},t=o=>({prop:o.prop,type:"Date"}),i={VkfSelect:p,VkfRadio:p,VkfCheckbox:p,VkfColorPicker:p,VkfInputNumber:n,VkfSwitch:e,VkfUpload:p,VkfDatePicker:t};export{i as propInfoAction};
@@ -0,0 +1 @@
1
+
@@ -2,10 +2,10 @@
2
2
  * ref: https://github1s.com/Envov/progress-it/blob/master/src/index.ts#L1-L61
3
3
  *
4
4
  */
5
- export declare type Effect = (percent: number, state: boolean | 'fail') => void;
6
- export declare type Setter = (newState: boolean | 'fail') => Setter;
7
- declare type progress = (effect: Effect, option?: Partial<IProgressPotions>) => (initState: boolean) => (newState: boolean | 'fail') => Setter;
8
- declare type IProgressPotions = {
5
+ export type Effect = (percent: number, state: boolean | 'fail') => void;
6
+ export type Setter = (newState: boolean | 'fail') => Setter;
7
+ type progress = (effect: Effect, option?: Partial<IProgressPotions>) => (initState: boolean) => (newState: boolean | 'fail') => Setter;
8
+ type IProgressPotions = {
9
9
  percent: number;
10
10
  interval: number;
11
11
  speed: number;
@@ -1,57 +1 @@
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
- const ifElse = (fn1, fn2, fn3) => (x) => fn1(x) ? fn2(x) : fn3(x);
21
- const progress = (effect, option) => (state) => {
22
- const $data = __spreadProps(__spreadValues({
23
- interval: 100,
24
- speed: 0.01
25
- }, option), {
26
- percent: 0,
27
- timeLine: 0,
28
- timer: void 0
29
- });
30
- const $stateInitFlow = ($data2) => ifElse(
31
- (state2) => Boolean(state2),
32
- (state2) => effect(1, state2),
33
- (state2) => setInterval(() => {
34
- $data2.timeLine++;
35
- $data2.percent = state2 ? 1 : (-1 / ($data2.speed * $data2.timeLine + 1) + 1) * 1;
36
- effect($data2.percent, state2);
37
- }, $data2.interval)
38
- );
39
- $data.timer = $stateInitFlow($data)(state);
40
- const setter = (newState) => {
41
- if (typeof newState !== "boolean") {
42
- $data.timer && clearInterval($data.timer);
43
- $data.percent = 1;
44
- effect($data.percent, "fail");
45
- return setter;
46
- }
47
- if (newState) {
48
- $data.timer && clearInterval($data.timer);
49
- $data.percent = 1;
50
- effect($data.percent, newState);
51
- }
52
- return setter;
53
- };
54
- return setter;
55
- };
56
-
57
- export { progress as default };
1
+ const p=(t,i,o)=>e=>t(e)?i(e):o(e),c=(t,i)=>o=>{const e={interval:100,speed:.01,...i,percent:0,timeLine:0,timer:void 0},s=r=>p(n=>!!n,n=>t(1,n),n=>setInterval(()=>{r.timeLine++,r.percent=n?1:(-1/(r.speed*r.timeLine+1)+1)*1,t(r.percent,n)},r.interval));e.timer=s(e)(o);const l=r=>typeof r!="boolean"?(e.timer&&clearInterval(e.timer),e.percent=1,t(e.percent,"fail"),l):(r&&(e.timer&&clearInterval(e.timer),e.percent=1,t(e.percent,r)),l);return l};export{c as default};
@@ -0,0 +1 @@
1
+