@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
@@ -4,26 +4,8 @@ import { ElButton, ElIcon } from 'element-plus';
4
4
  import { isPlainObject } from '@vunk/core/shared/utils-object';
5
5
  import { useComputedReadonly } from '@vunk/form/composables';
6
6
 
7
- var __defProp = Object.defineProperty;
8
- var __defProps = Object.defineProperties;
9
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
10
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
11
- var __hasOwnProp = Object.prototype.hasOwnProperty;
12
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
13
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
14
- var __spreadValues = (a, b) => {
15
- for (var prop in b || (b = {}))
16
- if (__hasOwnProp.call(b, prop))
17
- __defNormalProp(a, prop, b[prop]);
18
- if (__getOwnPropSymbols)
19
- for (var prop of __getOwnPropSymbols(b)) {
20
- if (__propIsEnum.call(b, prop))
21
- __defNormalProp(a, prop, b[prop]);
22
- }
23
- return a;
24
- };
25
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
26
- const props = __spreadProps(__spreadValues({}, _VkfInputCtx.props), {
7
+ const props = {
8
+ ..._VkfInputCtx.props,
27
9
  type: {
28
10
  type: String,
29
11
  default: "textarea"
@@ -44,18 +26,30 @@ const props = __spreadProps(__spreadValues({}, _VkfInputCtx.props), {
44
26
  type: Boolean,
45
27
  default: void 0
46
28
  },
29
+ /**
30
+ * @deprecated 请使用 referenceUrl
31
+ */
47
32
  uploadUrl: {
48
33
  type: String,
49
34
  default: "https://pan.baidu.com/disk/main#/index?category=all"
50
35
  },
36
+ /**
37
+ * 参考地址
38
+ */
51
39
  referenceUrl: {
52
40
  type: String,
53
41
  default: "https://pan.baidu.com/disk/main#/index?category=all"
54
42
  },
43
+ /**
44
+ * 仅展示参考地址
45
+ */
55
46
  referenceOnly: {
56
47
  type: Boolean,
57
48
  default: false
58
49
  },
50
+ /**
51
+ * @description 参考地址的 label
52
+ */
59
53
  referenceLabel: {
60
54
  type: String,
61
55
  default: "\u53C2\u8003\u5730\u5740"
@@ -64,16 +58,18 @@ const props = __spreadProps(__spreadValues({}, _VkfInputCtx.props), {
64
58
  type: String,
65
59
  default: ""
66
60
  }
67
- });
68
- const emits = __spreadValues({}, _VkfInputCtx.emits);
61
+ };
62
+ const emits = {
63
+ ..._VkfInputCtx.emits
64
+ };
69
65
 
70
66
  /*! Element Plus Icons Vue v2.1.0 */
71
67
 
68
+
72
69
  // unplugin-vue:/plugin-vue/export-helper
73
70
  var export_helper_default = (sfc, props) => {
74
71
  let target = sfc.__vccOpts || sfc;
75
- for (let [key, val] of props)
76
- target[key] = val;
72
+ for (let [key, val] of props) target[key] = val;
77
73
  return target;
78
74
  };
79
75
 
@@ -82,66 +78,45 @@ var right_vue_vue_type_script_lang_default = {
82
78
  name: "Right"
83
79
  };
84
80
  var _hoisted_1221 = {
85
- xmlns: "http://www.w3.org/2000/svg",
86
- viewBox: "0 0 1024 1024"
87
- }, _hoisted_2221 = /* @__PURE__ */ createElementVNode(
88
- "path",
89
- {
81
+ xmlns: "http://www.w3.org/2000/svg",
82
+ viewBox: "0 0 1024 1024"
83
+ },
84
+ _hoisted_2221 = /* @__PURE__ */createElementVNode("path", {
90
85
  fill: "currentColor",
91
86
  d: "M754.752 480H160a32 32 0 1 0 0 64h594.752L521.344 777.344a32 32 0 0 0 45.312 45.312l288-288a32 32 0 0 0 0-45.312l-288-288a32 32 0 1 0-45.312 45.312L754.752 480z"
92
- },
93
- null,
94
- -1
95
- /* HOISTED */
96
- ), _hoisted_3220 = [
97
- _hoisted_2221
98
- ];
87
+ }, null, -1
88
+ /* HOISTED */),
89
+ _hoisted_3220 = [_hoisted_2221];
99
90
  function _sfc_render221(_ctx, _cache, $props, $setup, $data, $options) {
100
91
  return openBlock(), createElementBlock("svg", _hoisted_1221, _hoisted_3220);
101
92
  }
102
- var right_default = /* @__PURE__ */ export_helper_default(right_vue_vue_type_script_lang_default, [["render", _sfc_render221], ["__file", "right.vue"]]);
93
+ var right_default = /* @__PURE__ */export_helper_default(right_vue_vue_type_script_lang_default, [["render", _sfc_render221], ["__file", "right.vue"]]);
103
94
 
104
- var _export_sfc = (sfc, props) => {
105
- const target = sfc.__vccOpts || sfc;
106
- for (const [key, val] of props) {
107
- target[key] = val;
108
- }
109
- return target;
110
- };
111
-
112
- const _sfc_main = defineComponent({
95
+ var script = defineComponent({
113
96
  name: "VkfInputLink",
114
97
  components: {
115
98
  VkfInput
116
99
  },
117
100
  emits,
118
101
  props,
119
- setup(props2, { emit }) {
102
+ setup(props2, {
103
+ emit
104
+ }) {
120
105
  const coreProps = _VkfInputCtx.createBindProps(props2);
121
106
  const coreEmits = _VkfInputCtx.createOnEmits(emit);
122
107
  const readonly = useComputedReadonly(props2);
123
- const createAppendEl = (url) => () => h(
124
- ElButton,
125
- {
126
- onClick: () => window.open(url),
127
- disabled: !url
128
- },
129
- () => h(
130
- ElIcon,
131
- {
132
- class: "vkf-input-link-icon",
133
- size: 16
134
- },
135
- () => h(right_default)
136
- )
137
- );
108
+ const createAppendEl = (url) => () => h(ElButton, {
109
+ onClick: () => window.open(url),
110
+ disabled: !url
111
+ }, () => h(ElIcon, {
112
+ class: "vkf-input-link-icon",
113
+ size: 16
114
+ }, () => h(right_default)));
138
115
  const rules = computed(() => {
139
- const data = [
140
- {
141
- pattern: /^(http|https):\/\/([\w.]+\/?)\S*$/,
142
- message: "\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u94FE\u63A5\u5730\u5740"
143
- }
144
- ];
116
+ const data = [{
117
+ pattern: /^(http|https):\/\/([\w.]+\/?)\S*$/,
118
+ message: "\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u94FE\u63A5\u5730\u5740"
119
+ }];
145
120
  if (Array.isArray(props2.rules)) {
146
121
  data.push(...props2.rules);
147
122
  }
@@ -159,36 +134,40 @@ const _sfc_main = defineComponent({
159
134
  };
160
135
  }
161
136
  });
162
- const _hoisted_1 = { class: "vkf-form-item vkf-input-link" };
163
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
137
+
138
+ const _hoisted_1 = {
139
+ class: "vkf-form-item vkf-input-link"
140
+ };
141
+ function render(_ctx, _cache, $props, $setup, $data, $options) {
164
142
  const _component_VkfInput = resolveComponent("VkfInput");
165
- return openBlock(), createElementBlock("div", _hoisted_1, [
166
- createVNode(_component_VkfInput, {
167
- label: _ctx.referenceLabel,
168
- disabled: true,
169
- modelValue: _ctx.referenceUrl ?? _ctx.uploadUrl,
170
- inputSlots: {
171
- append: _ctx.createAppendEl(_ctx.referenceUrl ?? _ctx.uploadUrl)
172
- }
173
- }, null, 8, ["label", "modelValue", "inputSlots"]),
174
- !_ctx.referenceOnly ? (openBlock(), createBlock(_component_VkfInput, mergeProps({ key: 0 }, _ctx.coreProps, toHandlers(_ctx.coreEmits), {
175
- rules: _ctx.rules,
176
- readonly: _ctx.readonly,
177
- type: _ctx.readonly ? "text" : _ctx.type,
178
- inputSlots: {
179
- append: _ctx.readonly ? _ctx.createAppendEl(_ctx.modelValue) : void 0
180
- }
181
- }), null, 16, ["rules", "readonly", "type", "inputSlots"])) : createCommentVNode("v-if", true)
182
- ]);
143
+ return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(_component_VkfInput, {
144
+ label: _ctx.referenceLabel,
145
+ disabled: true,
146
+ modelValue: _ctx.referenceUrl ?? _ctx.uploadUrl,
147
+ inputSlots: {
148
+ append: _ctx.createAppendEl(_ctx.referenceUrl ?? _ctx.uploadUrl)
149
+ }
150
+ }, null, 8, ["label", "modelValue", "inputSlots"]), !_ctx.referenceOnly ? (openBlock(), createBlock(_component_VkfInput, mergeProps({
151
+ key: 0
152
+ }, _ctx.coreProps, toHandlers(_ctx.coreEmits), {
153
+ rules: _ctx.rules,
154
+ readonly: _ctx.readonly,
155
+ type: _ctx.readonly ? "text" : _ctx.type,
156
+ inputSlots: {
157
+ append: _ctx.readonly ? _ctx.createAppendEl(_ctx.modelValue) : void 0
158
+ }
159
+ }), null, 16, ["rules", "readonly", "type", "inputSlots"])) : createCommentVNode("v-if", true)]);
183
160
  }
184
- var VkfInputLink = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "index.vue"]]);
161
+
162
+ script.render = render;
163
+ script.__file = "input-link/src/index.vue";
185
164
 
186
165
  var types = /*#__PURE__*/Object.freeze({
187
166
  __proto__: null
188
167
  });
189
168
 
190
- VkfInputLink.install = (app) => {
191
- app.component(VkfInputLink.name, VkfInputLink);
169
+ script.install = (app) => {
170
+ app.component(script.name, script);
192
171
  };
193
172
 
194
- export { VkfInputLink, types as __VkfInputLink, VkfInputLink as default };
173
+ export { script as VkfInputLink, types as __VkfInputLink, script as default };
@@ -17,7 +17,7 @@ export declare const props: {
17
17
  };
18
18
  readonly: {
19
19
  type: BooleanConstructor;
20
- default: undefined;
20
+ default: any;
21
21
  };
22
22
  /**
23
23
  * @deprecated 请使用 referenceUrl
@@ -64,27 +64,27 @@ export declare const props: {
64
64
  };
65
65
  inputSlots: {
66
66
  type: import("vue").PropType<import("../../input/src/types").InputSlots>;
67
- default: undefined;
67
+ default: any;
68
68
  };
69
- required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
70
69
  labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
71
70
  prop: {
72
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemProp & {}) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => import("element-plus").FormItemProp & {}) | (() => import("element-plus").FormItemProp))[], unknown, unknown>>;
71
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp))[], unknown, unknown>>;
73
72
  readonly required: false;
74
- readonly validator: ((val: unknown) => boolean) | undefined;
73
+ readonly validator: (val: unknown) => boolean;
75
74
  __epPropKey: true;
76
75
  };
76
+ required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
77
77
  rules: {
78
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>) | ((new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>))[], unknown, unknown>>;
78
+ readonly type: import("vue").PropType<unknown>;
79
79
  readonly required: false;
80
- readonly validator: ((val: unknown) => boolean) | undefined;
80
+ readonly validator: (val: unknown) => boolean;
81
81
  __epPropKey: true;
82
82
  };
83
83
  error: StringConstructor;
84
84
  validateStatus: {
85
85
  readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
86
86
  readonly required: false;
87
- readonly validator: ((val: unknown) => boolean) | undefined;
87
+ readonly validator: (val: unknown) => boolean;
88
88
  __epPropKey: true;
89
89
  };
90
90
  for: StringConstructor;
@@ -96,7 +96,7 @@ export declare const props: {
96
96
  };
97
97
  formItemSlots: {
98
98
  type: import("vue").PropType<import("../../form-item/src/types").FormItemSlots>;
99
- default: undefined;
99
+ default: any;
100
100
  };
101
101
  elRef: {
102
102
  type: import("vue").PropType<any>;
@@ -117,55 +117,61 @@ export declare const props: {
117
117
  size: {
118
118
  readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
119
119
  readonly required: false;
120
- readonly validator: ((val: unknown) => boolean) | undefined;
120
+ readonly validator: (val: unknown) => boolean;
121
121
  __epPropKey: true;
122
122
  };
123
123
  disabled: BooleanConstructor;
124
124
  resize: {
125
125
  readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "horizontal" | "vertical" | "none" | "both", unknown>>;
126
126
  readonly required: false;
127
- readonly validator: ((val: unknown) => boolean) | undefined;
127
+ readonly validator: (val: unknown) => boolean;
128
128
  __epPropKey: true;
129
129
  };
130
- autosize: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").InputAutoSize & {}) | (() => import("element-plus").InputAutoSize) | ((new (...args: any[]) => import("element-plus").InputAutoSize & {}) | (() => import("element-plus").InputAutoSize))[], unknown, unknown, false, boolean>;
130
+ autosize: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => boolean | {
131
+ minRows?: number;
132
+ maxRows?: number;
133
+ }) | (() => import("element-plus").InputAutoSize) | ((new (...args: any[]) => boolean | {
134
+ minRows?: number;
135
+ maxRows?: number;
136
+ }) | (() => import("element-plus").InputAutoSize))[], unknown, unknown, false, boolean>;
131
137
  autocomplete: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "off", boolean>;
132
138
  formatter: {
133
139
  readonly type: import("vue").PropType<Function>;
134
140
  readonly required: false;
135
- readonly validator: ((val: unknown) => boolean) | undefined;
141
+ readonly validator: (val: unknown) => boolean;
136
142
  __epPropKey: true;
137
143
  };
138
144
  parser: {
139
145
  readonly type: import("vue").PropType<Function>;
140
146
  readonly required: false;
141
- readonly validator: ((val: unknown) => boolean) | undefined;
147
+ readonly validator: (val: unknown) => boolean;
142
148
  __epPropKey: true;
143
149
  };
144
150
  form: {
145
151
  readonly type: import("vue").PropType<string>;
146
152
  readonly required: false;
147
- readonly validator: ((val: unknown) => boolean) | undefined;
153
+ readonly validator: (val: unknown) => boolean;
148
154
  __epPropKey: true;
149
155
  };
150
156
  clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
151
157
  showPassword: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
152
158
  showWordLimit: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
153
159
  suffixIcon: {
154
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>>;
160
+ readonly type: import("vue").PropType<unknown>;
155
161
  readonly required: false;
156
- readonly validator: ((val: unknown) => boolean) | undefined;
162
+ readonly validator: (val: unknown) => boolean;
157
163
  __epPropKey: true;
158
164
  };
159
165
  prefixIcon: {
160
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>>;
166
+ readonly type: import("vue").PropType<unknown>;
161
167
  readonly required: false;
162
- readonly validator: ((val: unknown) => boolean) | undefined;
168
+ readonly validator: (val: unknown) => boolean;
163
169
  __epPropKey: true;
164
170
  };
165
171
  containerRole: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
166
172
  tabindex: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, 0, boolean>;
167
173
  validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
168
- inputStyle: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("vue").StyleValue & {}) | (() => import("vue").StyleValue) | ((new (...args: any[]) => import("vue").StyleValue & {}) | (() => import("vue").StyleValue))[], unknown, unknown, () => import("element-plus/es/utils").Mutable<{}>, boolean>;
174
+ inputStyle: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | false | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue) | ((new (...args: any[]) => string | false | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue))[], unknown, unknown, () => import("element-plus/es/utils").Mutable<{}>, boolean>;
169
175
  autofocus: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
170
176
  };
171
177
  export declare const emits: {
@@ -1,66 +1 @@
1
- import { _VkfInputCtx } from '@vunk/form/components/input';
2
-
3
- var __defProp = Object.defineProperty;
4
- var __defProps = Object.defineProperties;
5
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
6
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
9
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
10
- var __spreadValues = (a, b) => {
11
- for (var prop in b || (b = {}))
12
- if (__hasOwnProp.call(b, prop))
13
- __defNormalProp(a, prop, b[prop]);
14
- if (__getOwnPropSymbols)
15
- for (var prop of __getOwnPropSymbols(b)) {
16
- if (__propIsEnum.call(b, prop))
17
- __defNormalProp(a, prop, b[prop]);
18
- }
19
- return a;
20
- };
21
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
22
- const props = __spreadProps(__spreadValues({}, _VkfInputCtx.props), {
23
- type: {
24
- type: String,
25
- default: "textarea"
26
- },
27
- rows: {
28
- type: Number,
29
- default: 4
30
- },
31
- label: {
32
- type: String,
33
- default: "\u56DE\u586B\u5730\u5740"
34
- },
35
- placeholder: {
36
- type: String,
37
- default: "\u4E0A\u4F20\u6587\u4EF6\u540E, \u5C06\u6587\u4EF6\u4E0B\u8F7D\u5730\u5740\u7C98\u8D34\u5230\u6B64\u5904"
38
- },
39
- readonly: {
40
- type: Boolean,
41
- default: void 0
42
- },
43
- uploadUrl: {
44
- type: String,
45
- default: "https://pan.baidu.com/disk/main#/index?category=all"
46
- },
47
- referenceUrl: {
48
- type: String,
49
- default: "https://pan.baidu.com/disk/main#/index?category=all"
50
- },
51
- referenceOnly: {
52
- type: Boolean,
53
- default: false
54
- },
55
- referenceLabel: {
56
- type: String,
57
- default: "\u53C2\u8003\u5730\u5740"
58
- },
59
- modelValue: {
60
- type: String,
61
- default: ""
62
- }
63
- });
64
- const emits = __spreadValues({}, _VkfInputCtx.emits);
65
-
66
- export { emits, props };
1
+ import{_VkfInputCtx as e}from"@vunk/form/components/input";const t={...e.props,type:{type:String,default:"textarea"},rows:{type:Number,default:4},label:{type:String,default:"\u56DE\u586B\u5730\u5740"},placeholder:{type:String,default:"\u4E0A\u4F20\u6587\u4EF6\u540E, \u5C06\u6587\u4EF6\u4E0B\u8F7D\u5730\u5740\u7C98\u8D34\u5230\u6B64\u5904"},readonly:{type:Boolean,default:void 0},uploadUrl:{type:String,default:"https://pan.baidu.com/disk/main#/index?category=all"},referenceUrl:{type:String,default:"https://pan.baidu.com/disk/main#/index?category=all"},referenceOnly:{type:Boolean,default:!1},referenceLabel:{type:String,default:"\u53C2\u8003\u5730\u5740"},modelValue:{type:String,default:""}},u={...e.emits};export{u as emits,t as props};