xkit-ui 2.0.0-alpha.0

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 (309) hide show
  1. package/lib/assets/icon-add-circle-fill.vue.d.ts +3 -0
  2. package/lib/assets/icon-add-circle-fill.vue.d.ts.map +1 -0
  3. package/lib/assets/icon-close-line.vue.d.ts +3 -0
  4. package/lib/assets/icon-close-line.vue.d.ts.map +1 -0
  5. package/lib/assets/icon-drag.vue.d.ts +3 -0
  6. package/lib/assets/icon-drag.vue.d.ts.map +1 -0
  7. package/lib/assets/icon-minus-circle.vue.d.ts +3 -0
  8. package/lib/assets/icon-minus-circle.vue.d.ts.map +1 -0
  9. package/lib/components/_public/form-item-cols.vue.d.ts +17 -0
  10. package/lib/components/_public/form-item-cols.vue.d.ts.map +1 -0
  11. package/lib/components/button/type.d.ts +85 -0
  12. package/lib/components/button/type.d.ts.map +1 -0
  13. package/lib/components/cascader/index.vue.d.ts +66 -0
  14. package/lib/components/cascader/index.vue.d.ts.map +1 -0
  15. package/lib/components/cascader/type.d.ts +125 -0
  16. package/lib/components/cascader/type.d.ts.map +1 -0
  17. package/lib/components/checkbox/index.vue.d.ts +30 -0
  18. package/lib/components/checkbox/index.vue.d.ts.map +1 -0
  19. package/lib/components/checkbox/type.d.ts +36 -0
  20. package/lib/components/checkbox/type.d.ts.map +1 -0
  21. package/lib/components/checkboxes/index.vue.d.ts +42 -0
  22. package/lib/components/checkboxes/index.vue.d.ts.map +1 -0
  23. package/lib/components/checkboxes/type.d.ts +56 -0
  24. package/lib/components/checkboxes/type.d.ts.map +1 -0
  25. package/lib/components/component/index.d.ts +7 -0
  26. package/lib/components/component/index.d.ts.map +1 -0
  27. package/lib/components/condition-builder/condition-node.vue.d.ts +32 -0
  28. package/lib/components/condition-builder/condition-node.vue.d.ts.map +1 -0
  29. package/lib/components/condition-builder/group-bracket.vue.d.ts +19 -0
  30. package/lib/components/condition-builder/group-bracket.vue.d.ts.map +1 -0
  31. package/lib/components/condition-builder/group-indent.vue.d.ts +19 -0
  32. package/lib/components/condition-builder/group-indent.vue.d.ts.map +1 -0
  33. package/lib/components/condition-builder/index.vue.d.ts +160 -0
  34. package/lib/components/condition-builder/index.vue.d.ts.map +1 -0
  35. package/lib/components/condition-builder/type.d.ts +88 -0
  36. package/lib/components/condition-builder/type.d.ts.map +1 -0
  37. package/lib/components/crud/action-type.d.ts +80 -0
  38. package/lib/components/crud/action-type.d.ts.map +1 -0
  39. package/lib/components/crud/index.vue.d.ts +78 -0
  40. package/lib/components/crud/index.vue.d.ts.map +1 -0
  41. package/lib/components/crud/multi-action.vue.d.ts +8 -0
  42. package/lib/components/crud/multi-action.vue.d.ts.map +1 -0
  43. package/lib/components/crud/single-action.vue.d.ts +7 -0
  44. package/lib/components/crud/single-action.vue.d.ts.map +1 -0
  45. package/lib/components/crud/type.d.ts +171 -0
  46. package/lib/components/crud/type.d.ts.map +1 -0
  47. package/lib/components/crud-form/index.vue.d.ts +22 -0
  48. package/lib/components/crud-form/index.vue.d.ts.map +1 -0
  49. package/lib/components/crud-form/type.d.ts +65 -0
  50. package/lib/components/crud-form/type.d.ts.map +1 -0
  51. package/lib/components/date-picker/index.vue.d.ts +35 -0
  52. package/lib/components/date-picker/index.vue.d.ts.map +1 -0
  53. package/lib/components/date-picker/type.d.ts +139 -0
  54. package/lib/components/date-picker/type.d.ts.map +1 -0
  55. package/lib/components/date-range-picker/index.vue.d.ts +15 -0
  56. package/lib/components/date-range-picker/index.vue.d.ts.map +1 -0
  57. package/lib/components/date-range-picker/type.d.ts +137 -0
  58. package/lib/components/date-range-picker/type.d.ts.map +1 -0
  59. package/lib/components/date-range-picker-v2/index.vue.d.ts +22 -0
  60. package/lib/components/date-range-picker-v2/index.vue.d.ts.map +1 -0
  61. package/lib/components/date-range-picker-v2/type.d.ts +37 -0
  62. package/lib/components/date-range-picker-v2/type.d.ts.map +1 -0
  63. package/lib/components/description/index.vue.d.ts +28 -0
  64. package/lib/components/description/index.vue.d.ts.map +1 -0
  65. package/lib/components/description/type.d.ts +120 -0
  66. package/lib/components/description/type.d.ts.map +1 -0
  67. package/lib/components/dialog/type.d.ts +100 -0
  68. package/lib/components/dialog/type.d.ts.map +1 -0
  69. package/lib/components/dropdown/type.d.ts +62 -0
  70. package/lib/components/dropdown/type.d.ts.map +1 -0
  71. package/lib/components/ellipsis/index.vue.d.ts +34 -0
  72. package/lib/components/ellipsis/index.vue.d.ts.map +1 -0
  73. package/lib/components/ellipsis/type.d.ts +26 -0
  74. package/lib/components/ellipsis/type.d.ts.map +1 -0
  75. package/lib/components/event-menu/index.vue.d.ts +25 -0
  76. package/lib/components/event-menu/index.vue.d.ts.map +1 -0
  77. package/lib/components/form/form-item.type.d.ts +304 -0
  78. package/lib/components/form/form-item.type.d.ts.map +1 -0
  79. package/lib/components/form/form-item.vue.d.ts +50 -0
  80. package/lib/components/form/form-item.vue.d.ts.map +1 -0
  81. package/lib/components/form/form-layout-renderer.vue.d.ts +71 -0
  82. package/lib/components/form/form-layout-renderer.vue.d.ts.map +1 -0
  83. package/lib/components/form/index.vue.d.ts +220 -0
  84. package/lib/components/form/index.vue.d.ts.map +1 -0
  85. package/lib/components/form/query-form.d.ts +4 -0
  86. package/lib/components/form/query-form.d.ts.map +1 -0
  87. package/lib/components/form/type.d.ts +312 -0
  88. package/lib/components/form/type.d.ts.map +1 -0
  89. package/lib/components/group/group-item.vue.d.ts +9 -0
  90. package/lib/components/group/group-item.vue.d.ts.map +1 -0
  91. package/lib/components/group/index.vue.d.ts +24 -0
  92. package/lib/components/group/index.vue.d.ts.map +1 -0
  93. package/lib/components/group/type.d.ts +119 -0
  94. package/lib/components/group/type.d.ts.map +1 -0
  95. package/lib/components/icon-select/__tests__/icon-sources.test.d.ts +2 -0
  96. package/lib/components/icon-select/__tests__/icon-sources.test.d.ts.map +1 -0
  97. package/lib/components/icon-select/icon-parser.vue.d.ts +41 -0
  98. package/lib/components/icon-select/icon-parser.vue.d.ts.map +1 -0
  99. package/lib/components/icon-select/icon-sources.d.ts +22 -0
  100. package/lib/components/icon-select/icon-sources.d.ts.map +1 -0
  101. package/lib/components/icon-select/index.vue.d.ts +15 -0
  102. package/lib/components/icon-select/index.vue.d.ts.map +1 -0
  103. package/lib/components/icon-select/type.d.ts +24 -0
  104. package/lib/components/icon-select/type.d.ts.map +1 -0
  105. package/lib/components/index.d.ts +107 -0
  106. package/lib/components/index.d.ts.map +1 -0
  107. package/lib/components/input/index.vue.d.ts +20 -0
  108. package/lib/components/input/index.vue.d.ts.map +1 -0
  109. package/lib/components/input/type.d.ts +121 -0
  110. package/lib/components/input/type.d.ts.map +1 -0
  111. package/lib/components/input-array/__tests__/layout.test.d.ts +2 -0
  112. package/lib/components/input-array/__tests__/layout.test.d.ts.map +1 -0
  113. package/lib/components/input-array/index.vue.d.ts +28 -0
  114. package/lib/components/input-array/index.vue.d.ts.map +1 -0
  115. package/lib/components/input-array/layout.d.ts +11 -0
  116. package/lib/components/input-array/layout.d.ts.map +1 -0
  117. package/lib/components/input-array/type.d.ts +89 -0
  118. package/lib/components/input-array/type.d.ts.map +1 -0
  119. package/lib/components/input-collapse/index.vue.d.ts +7 -0
  120. package/lib/components/input-collapse/index.vue.d.ts.map +1 -0
  121. package/lib/components/input-collapse/type.d.ts +50 -0
  122. package/lib/components/input-collapse/type.d.ts.map +1 -0
  123. package/lib/components/input-linked/index.vue.d.ts +13 -0
  124. package/lib/components/input-linked/index.vue.d.ts.map +1 -0
  125. package/lib/components/input-linked/type.d.ts +32 -0
  126. package/lib/components/input-linked/type.d.ts.map +1 -0
  127. package/lib/components/input-number/index.vue.d.ts +29 -0
  128. package/lib/components/input-number/index.vue.d.ts.map +1 -0
  129. package/lib/components/input-number/type.d.ts +57 -0
  130. package/lib/components/input-number/type.d.ts.map +1 -0
  131. package/lib/components/input-number-range/index.vue.d.ts +28 -0
  132. package/lib/components/input-number-range/index.vue.d.ts.map +1 -0
  133. package/lib/components/input-number-range/type.d.ts +49 -0
  134. package/lib/components/input-number-range/type.d.ts.map +1 -0
  135. package/lib/components/input-table/index.vue.d.ts +25 -0
  136. package/lib/components/input-table/index.vue.d.ts.map +1 -0
  137. package/lib/components/input-table/type.d.ts +37 -0
  138. package/lib/components/input-table/type.d.ts.map +1 -0
  139. package/lib/components/input-upload/index.vue.d.ts +11 -0
  140. package/lib/components/input-upload/index.vue.d.ts.map +1 -0
  141. package/lib/components/input-upload/type.d.ts +59 -0
  142. package/lib/components/input-upload/type.d.ts.map +1 -0
  143. package/lib/components/json/index.vue.d.ts +10 -0
  144. package/lib/components/json/index.vue.d.ts.map +1 -0
  145. package/lib/components/link/index.vue.d.ts +21 -0
  146. package/lib/components/link/index.vue.d.ts.map +1 -0
  147. package/lib/components/link/type.d.ts +28 -0
  148. package/lib/components/link/type.d.ts.map +1 -0
  149. package/lib/components/radios/index.vue.d.ts +42 -0
  150. package/lib/components/radios/index.vue.d.ts.map +1 -0
  151. package/lib/components/radios/type.d.ts +36 -0
  152. package/lib/components/radios/type.d.ts.map +1 -0
  153. package/lib/components/search-bar/index.vue.d.ts +37 -0
  154. package/lib/components/search-bar/index.vue.d.ts.map +1 -0
  155. package/lib/components/select/index.vue.d.ts +48 -0
  156. package/lib/components/select/index.vue.d.ts.map +1 -0
  157. package/lib/components/select/type.d.ts +222 -0
  158. package/lib/components/select/type.d.ts.map +1 -0
  159. package/lib/components/static/options-viewer.vue.d.ts +16 -0
  160. package/lib/components/static/options-viewer.vue.d.ts.map +1 -0
  161. package/lib/components/static/rich-text-viewer.vue.d.ts +8 -0
  162. package/lib/components/static/rich-text-viewer.vue.d.ts.map +1 -0
  163. package/lib/components/static/textarea-viewer.vue.d.ts +6 -0
  164. package/lib/components/static/textarea-viewer.vue.d.ts.map +1 -0
  165. package/lib/components/switch/index.vue.d.ts +38 -0
  166. package/lib/components/switch/index.vue.d.ts.map +1 -0
  167. package/lib/components/switch/type.d.ts +72 -0
  168. package/lib/components/switch/type.d.ts.map +1 -0
  169. package/lib/components/table/index.vue.d.ts +1317 -0
  170. package/lib/components/table/index.vue.d.ts.map +1 -0
  171. package/lib/components/table/table-column.vue.d.ts +44 -0
  172. package/lib/components/table/table-column.vue.d.ts.map +1 -0
  173. package/lib/components/table/type.d.ts +306 -0
  174. package/lib/components/table/type.d.ts.map +1 -0
  175. package/lib/components/table-select/const.d.ts +14 -0
  176. package/lib/components/table-select/const.d.ts.map +1 -0
  177. package/lib/components/table-select/index.vue.d.ts +22471 -0
  178. package/lib/components/table-select/index.vue.d.ts.map +1 -0
  179. package/lib/components/table-select/table-selector-main.vue.d.ts +4795 -0
  180. package/lib/components/table-select/table-selector-main.vue.d.ts.map +1 -0
  181. package/lib/components/table-select/type.d.ts +71 -0
  182. package/lib/components/table-select/type.d.ts.map +1 -0
  183. package/lib/components/tabs/index.vue.d.ts +6 -0
  184. package/lib/components/tabs/index.vue.d.ts.map +1 -0
  185. package/lib/components/tabs/type.d.ts +23 -0
  186. package/lib/components/tabs/type.d.ts.map +1 -0
  187. package/lib/components/text/index.vue.d.ts +7 -0
  188. package/lib/components/text/index.vue.d.ts.map +1 -0
  189. package/lib/components/text/type.d.ts +7 -0
  190. package/lib/components/text/type.d.ts.map +1 -0
  191. package/lib/components/textarea/type.d.ts +79 -0
  192. package/lib/components/textarea/type.d.ts.map +1 -0
  193. package/lib/components/toolbar/index.vue.d.ts +15 -0
  194. package/lib/components/toolbar/index.vue.d.ts.map +1 -0
  195. package/lib/components/transitions/TransitionHeight.vue.d.ts +30 -0
  196. package/lib/components/transitions/TransitionHeight.vue.d.ts.map +1 -0
  197. package/lib/components/tree/index.vue.d.ts +17 -0
  198. package/lib/components/tree/index.vue.d.ts.map +1 -0
  199. package/lib/components/tree/tree-node.vue.d.ts +8 -0
  200. package/lib/components/tree/tree-node.vue.d.ts.map +1 -0
  201. package/lib/components/tree/tree-state.d.ts +35 -0
  202. package/lib/components/tree/tree-state.d.ts.map +1 -0
  203. package/lib/components/tree/type.d.ts +50 -0
  204. package/lib/components/tree/type.d.ts.map +1 -0
  205. package/lib/components/tree-select/index.vue.d.ts +94 -0
  206. package/lib/components/tree-select/index.vue.d.ts.map +1 -0
  207. package/lib/components/tree-select/type.d.ts +156 -0
  208. package/lib/components/tree-select/type.d.ts.map +1 -0
  209. package/lib/components/tree-select-crud/index.vue.d.ts +3102 -0
  210. package/lib/components/tree-select-crud/index.vue.d.ts.map +1 -0
  211. package/lib/components/tree-select-crud/type.d.ts +88 -0
  212. package/lib/components/tree-select-crud/type.d.ts.map +1 -0
  213. package/lib/components/upload/index.vue.d.ts +54 -0
  214. package/lib/components/upload/index.vue.d.ts.map +1 -0
  215. package/lib/composables/__tests__/use-option-static.test.d.ts +2 -0
  216. package/lib/composables/__tests__/use-option-static.test.d.ts.map +1 -0
  217. package/lib/composables/index.d.ts +3 -0
  218. package/lib/composables/index.d.ts.map +1 -0
  219. package/lib/composables/use-action.d.ts +21 -0
  220. package/lib/composables/use-action.d.ts.map +1 -0
  221. package/lib/composables/use-component.d.ts +74 -0
  222. package/lib/composables/use-component.d.ts.map +1 -0
  223. package/lib/composables/use-config.d.ts +76 -0
  224. package/lib/composables/use-config.d.ts.map +1 -0
  225. package/lib/composables/use-draggable.d.ts +22 -0
  226. package/lib/composables/use-draggable.d.ts.map +1 -0
  227. package/lib/composables/use-input-array.d.ts +45 -0
  228. package/lib/composables/use-input-array.d.ts.map +1 -0
  229. package/lib/composables/use-label.d.ts +2 -0
  230. package/lib/composables/use-label.d.ts.map +1 -0
  231. package/lib/composables/use-loading.d.ts +6 -0
  232. package/lib/composables/use-loading.d.ts.map +1 -0
  233. package/lib/composables/use-option-static.d.ts +51 -0
  234. package/lib/composables/use-option-static.d.ts.map +1 -0
  235. package/lib/composables/use-options.d.ts +66 -0
  236. package/lib/composables/use-options.d.ts.map +1 -0
  237. package/lib/composables/use-paging.d.ts +134 -0
  238. package/lib/composables/use-paging.d.ts.map +1 -0
  239. package/lib/composables/use-scaffold.d.ts +54 -0
  240. package/lib/composables/use-scaffold.d.ts.map +1 -0
  241. package/lib/composables/use-toggle.d.ts +11 -0
  242. package/lib/composables/use-toggle.d.ts.map +1 -0
  243. package/lib/composables/use-tree-static-path.d.ts +45 -0
  244. package/lib/composables/use-tree-static-path.d.ts.map +1 -0
  245. package/lib/composables/use-visible.d.ts +11 -0
  246. package/lib/composables/use-visible.d.ts.map +1 -0
  247. package/lib/config/layout.d.ts +9 -0
  248. package/lib/config/layout.d.ts.map +1 -0
  249. package/lib/constants/injection.d.ts +11 -0
  250. package/lib/constants/injection.d.ts.map +1 -0
  251. package/lib/directives/highlight.d.ts +7 -0
  252. package/lib/directives/highlight.d.ts.map +1 -0
  253. package/lib/directives/index.d.ts +2 -0
  254. package/lib/directives/index.d.ts.map +1 -0
  255. package/lib/favicon.ico +0 -0
  256. package/lib/index.d.ts +59 -0
  257. package/lib/index.d.ts.map +1 -0
  258. package/lib/ri/icons.json +8728 -0
  259. package/lib/ri/metadata.json +2938 -0
  260. package/lib/types/api.d.ts +8 -0
  261. package/lib/types/api.d.ts.map +1 -0
  262. package/lib/types/base.d.ts +306 -0
  263. package/lib/types/base.d.ts.map +1 -0
  264. package/lib/types/form.d.ts +82 -0
  265. package/lib/types/form.d.ts.map +1 -0
  266. package/lib/types/index.d.ts +6 -0
  267. package/lib/types/index.d.ts.map +1 -0
  268. package/lib/types/option.d.ts +115 -0
  269. package/lib/types/option.d.ts.map +1 -0
  270. package/lib/types/pagination.d.ts +35 -0
  271. package/lib/types/pagination.d.ts.map +1 -0
  272. package/lib/types/table.d.ts +34 -0
  273. package/lib/types/table.d.ts.map +1 -0
  274. package/lib/types/util.d.ts +6 -0
  275. package/lib/types/util.d.ts.map +1 -0
  276. package/lib/utils/__tests__/condition.test.d.ts +2 -0
  277. package/lib/utils/__tests__/condition.test.d.ts.map +1 -0
  278. package/lib/utils/__tests__/editor-container.test.d.ts +2 -0
  279. package/lib/utils/__tests__/editor-container.test.d.ts.map +1 -0
  280. package/lib/utils/__tests__/form.test.d.ts +2 -0
  281. package/lib/utils/__tests__/form.test.d.ts.map +1 -0
  282. package/lib/utils/__tests__/tree.test.d.ts +2 -0
  283. package/lib/utils/__tests__/tree.test.d.ts.map +1 -0
  284. package/lib/utils/common.d.ts +13 -0
  285. package/lib/utils/common.d.ts.map +1 -0
  286. package/lib/utils/computed-state-manager.d.ts +3 -0
  287. package/lib/utils/computed-state-manager.d.ts.map +1 -0
  288. package/lib/utils/condition.d.ts +4 -0
  289. package/lib/utils/condition.d.ts.map +1 -0
  290. package/lib/utils/editor-container.d.ts +25 -0
  291. package/lib/utils/editor-container.d.ts.map +1 -0
  292. package/lib/utils/form-item.d.ts +23 -0
  293. package/lib/utils/form-item.d.ts.map +1 -0
  294. package/lib/utils/form.d.ts +75 -0
  295. package/lib/utils/form.d.ts.map +1 -0
  296. package/lib/utils/id.d.ts +24 -0
  297. package/lib/utils/id.d.ts.map +1 -0
  298. package/lib/utils/options.d.ts +14 -0
  299. package/lib/utils/options.d.ts.map +1 -0
  300. package/lib/utils/reactive.d.ts +13 -0
  301. package/lib/utils/reactive.d.ts.map +1 -0
  302. package/lib/utils/style.d.ts +5 -0
  303. package/lib/utils/style.d.ts.map +1 -0
  304. package/lib/utils/tree.d.ts +51 -0
  305. package/lib/utils/tree.d.ts.map +1 -0
  306. package/lib/xkit-ui.css +2 -0
  307. package/lib/xkit-ui.js +7478 -0
  308. package/lib/xkit-ui.umd.cjs +3 -0
  309. package/package.json +66 -0
@@ -0,0 +1,100 @@
1
+ import { Component } from 'vue';
2
+ export interface ElDialogSchema {
3
+ /**
4
+ * 对话框标题
5
+ */
6
+ title?: string;
7
+ /**
8
+ * 对话框的宽度,默认值为 50%
9
+ */
10
+ width?: string;
11
+ /**
12
+ * 是否为全屏,默认false
13
+ */
14
+ fullscreen?: boolean;
15
+ /**
16
+ * dialog CSS 中的 margin-top 值,默认为 15vh
17
+ */
18
+ top?: string;
19
+ /**
20
+ * 是否需要遮罩层
21
+ */
22
+ modal?: boolean;
23
+ /**
24
+ * 遮罩的自定义类名
25
+ */
26
+ modalClass?: string;
27
+ /**
28
+ * `[v2.9.3]`header 部分的自定义 class 名
29
+ */
30
+ headerClass?: string;
31
+ /**
32
+ * body 部分的自定义 class 名
33
+ */
34
+ bodyClass?: string;
35
+ /**
36
+ * footer 部分的自定义 class 名
37
+ */
38
+ footerClass?: string;
39
+ /**
40
+ * Dialog 自身是否插入至 body 元素上。 嵌套的 Dialog 必须指定该属性并赋值为 true
41
+ */
42
+ appendToBody?: boolean;
43
+ /**
44
+ * Dialog 挂载到哪个 DOM 元素 将覆盖 append-to-body
45
+ */
46
+ appendTo?: string | HTMLElement;
47
+ /**
48
+ * 是否在 Dialog 出现时将 body 滚动锁定。默认`true`
49
+ */
50
+ lockScroll?: boolean;
51
+ /**
52
+ * dialog 打开的延时时间,单位毫秒
53
+ */
54
+ openDelay?: number;
55
+ /**
56
+ * dialog 关闭的延时时间,单位毫秒
57
+ */
58
+ closeDelay?: number;
59
+ /**
60
+ * 是否可以通过点击 modal 关闭 Dialog。默认`true`
61
+ */
62
+ closeOnClickModal?: boolean;
63
+ /**
64
+ * 是否可以通过按下 ESC 关闭 Dialog,默认`true`
65
+ */
66
+ closeOnPressEscape?: boolean;
67
+ /**
68
+ * 是否显示关闭按钮,默认`true`
69
+ */
70
+ showClose?: boolean;
71
+ /**
72
+ * 为 Dialog 启用可拖拽功能,默认`false`
73
+ */
74
+ draggable?: boolean;
75
+ /**
76
+ * 拖动范围可以超出可视区,默认`false`
77
+ */
78
+ overflow?: boolean;
79
+ /**
80
+ * 是否让 Dialog 的 header 和 footer 部分居中排列,默认`false`
81
+ */
82
+ center?: boolean;
83
+ /**
84
+ * 是否水平垂直对齐对话框,默认`false`
85
+ */
86
+ alignCenter?: boolean;
87
+ /**
88
+ * 当关闭 Dialog 时,销毁其中的元素,默认`false`
89
+ */
90
+ destroyOnClose?: boolean;
91
+ /**
92
+ * 自定义关闭图标,默认 Close
93
+ */
94
+ closeIcon?: string | Component;
95
+ /**
96
+ * 和原生的 CSS 的 z-index 相同,改变 z 轴的顺序
97
+ */
98
+ zIndex?: number;
99
+ }
100
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/components/dialog/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAEpC,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IACf;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,WAAW,CAAA;IAE/B;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB"}
@@ -0,0 +1,62 @@
1
+ import { Component } from 'vue';
2
+ export interface ElDropdownSchema {
3
+ /**
4
+ * 菜单最大高度
5
+ */
6
+ maxHeight?: number | string;
7
+ /**
8
+ * 下拉触发元素呈现为按钮组
9
+ */
10
+ splitButton?: boolean;
11
+ disabled?: boolean;
12
+ /**
13
+ * 菜单弹出位置
14
+ */
15
+ placement?: 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end';
16
+ /**
17
+ * 触发下拉的行为
18
+ */
19
+ trigger?: 'hover' | 'click' | 'contextmenu';
20
+ /**
21
+ * 是否在点击菜单项后隐藏菜单,默认`true`
22
+ */
23
+ hideOnClick?: boolean;
24
+ /**
25
+ * 展开下拉菜单的延时,仅在 trigger 为 hover 时有效,默认150
26
+ */
27
+ showTimeout?: number;
28
+ /**
29
+ * 收起下拉菜单的延时(仅在 trigger 为 hover 时有效),默认150
30
+ */
31
+ hideTimeout?: number;
32
+ /**
33
+ * 是否将下拉列表插入至 body 元素,默认true
34
+ */
35
+ teleported?: boolean;
36
+ }
37
+ export interface ElDropdownItemSchema {
38
+ /**
39
+ * 派发到command回调函数的指令参数
40
+ */
41
+ command?: string | number | object;
42
+ /**
43
+ * 是否禁用
44
+ */
45
+ _disabled?: boolean;
46
+ /**
47
+ * 是否显示分隔符,默认`false`
48
+ */
49
+ divided?: boolean;
50
+ /**
51
+ * 自定义图标
52
+ */
53
+ icon?: string | Component;
54
+ }
55
+ export interface XDropdownSchema extends ElDropdownSchema {
56
+ /**
57
+ * 下拉菜单
58
+ */
59
+ type: 'dropdown';
60
+ attrs?: ElDropdownSchema;
61
+ }
62
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAEpC,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAE3B;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IAErB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,GAAG,WAAW,GAAG,SAAS,GAAG,QAAQ,GAAG,cAAc,GAAG,YAAY,CAAA;IAEtF;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,aAAa,CAAA;IAE3C;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IAErB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAA;IAElC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC1B;AACD,MAAM,WAAW,eAAgB,SAAQ,gBAAgB;IACvD;;OAEG;IACH,IAAI,EAAE,UAAU,CAAA;IAEhB,KAAK,CAAC,EAAE,gBAAgB,CAAA;CACzB"}
@@ -0,0 +1,34 @@
1
+ import { XEllipsisBase } from './type';
2
+ export interface XEllipsisProps extends XEllipsisBase {
3
+ modelValue?: string;
4
+ }
5
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<XEllipsisProps>, {
6
+ lines: number;
7
+ popWidth: number;
8
+ canViewFullText: boolean;
9
+ popComponent: string;
10
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<XEllipsisProps>, {
11
+ lines: number;
12
+ popWidth: number;
13
+ canViewFullText: boolean;
14
+ popComponent: string;
15
+ }>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
16
+ export default _default;
17
+ type __VLS_WithDefaults<P, D> = {
18
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
19
+ default: D[K];
20
+ }> : P[K];
21
+ };
22
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
23
+ type __VLS_TypePropsToOption<T> = {
24
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
25
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
26
+ } : {
27
+ type: import('vue').PropType<T[K]>;
28
+ required: true;
29
+ };
30
+ };
31
+ type __VLS_PrettifyLocal<T> = {
32
+ [K in keyof T]: T[K];
33
+ } & {};
34
+ //# sourceMappingURL=index.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ellipsis/index.vue"],"names":[],"mappings":"AA2CA;AAkGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAA;AAE3C,MAAM,WAAW,cAAe,SAAQ,aAAa;IACnD,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;;;;;;;;;;;;AAqND,wBAQG;AAEH,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC9B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GAC5C,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AACF,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC;AACF,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { StyleValue } from 'vue';
2
+ export interface XEllipsisBase {
3
+ /**
4
+ * 超过多少行显示省略号
5
+ */
6
+ lines?: number;
7
+ /**
8
+ * 是否显示完整文本
9
+ */
10
+ canViewFullText?: boolean;
11
+ /**
12
+ * popover 宽度
13
+ */
14
+ popWidth?: number;
15
+ trigger?: 'hover' | 'click' | 'click-button';
16
+ popComponent?: 'default' | 'dialog';
17
+ style?: StyleValue;
18
+ [prop: string]: any;
19
+ }
20
+ export interface XEllipsisSchema extends XEllipsisBase {
21
+ /**
22
+ * 省略显示
23
+ */
24
+ type: 'x-ellipsis';
25
+ }
26
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/components/ellipsis/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAErC,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,cAAc,CAAA;IAE5C,YAAY,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAA;IAEnC,KAAK,CAAC,EAAE,UAAU,CAAA;IAElB,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CAAA;CACpB;AAED,MAAM,WAAW,eAAgB,SAAQ,aAAa;IACpD;;OAEG;IACH,IAAI,EAAE,YAAY,CAAA;CACnB"}
@@ -0,0 +1,25 @@
1
+ export interface Option {
2
+ label: string;
3
+ value: string;
4
+ disabled?: boolean;
5
+ }
6
+ export interface Position {
7
+ x: number;
8
+ y: number;
9
+ }
10
+ export interface XEventMenuProps {
11
+ options: Option[];
12
+ modelValue: boolean;
13
+ position: Position;
14
+ }
15
+ declare const _default: import('vue').DefineComponent<XEventMenuProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
+ "update:modelValue": (...args: any[]) => void;
17
+ change: (...args: any[]) => void;
18
+ }, string, import('vue').PublicProps, Readonly<XEventMenuProps> & Readonly<{
19
+ "onUpdate:modelValue"?: (...args: any[]) => any;
20
+ onChange?: (...args: any[]) => any;
21
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
22
+ menuRef: HTMLDivElement;
23
+ }, any>;
24
+ export default _default;
25
+ //# sourceMappingURL=index.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/event-menu/index.vue"],"names":[],"mappings":"AAgBA;AA0GA,MAAM,WAAW,MAAM;IACrB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,MAAM,WAAW,QAAQ;IACvB,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;CACV;AAED,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,UAAU,EAAE,OAAO,CAAA;IACnB,QAAQ,EAAE,QAAQ,CAAA;CACnB;;;;;;;;;;AA6GD,wBASG"}
@@ -0,0 +1,304 @@
1
+ import { FormItemRule } from 'element-plus';
2
+ import { ExtraProps, ConditionValue, XFormItemLayoutCfg } from '../../types/base';
3
+ import { Component, CSSProperties, MaybeRefOrGetter, VNode } from 'vue';
4
+ import { ElDescriptionItemSchema } from '../description/type';
5
+ export interface ElFormItemSchema {
6
+ /**
7
+ * 标签位置
8
+ */
9
+ labelPosition?: 'left' | 'right' | 'top';
10
+ /**
11
+ * 标签宽度
12
+ */
13
+ labelWidth?: string | number;
14
+ /**
15
+ * 是否为必填项,如不设置,则会根据校验规则确认
16
+ */
17
+ required?: boolean;
18
+ /**
19
+ * 表单域验证错误时的提示信息。设置该值会导致表单验证状态变为 error,并显示该错误信息。
20
+ */
21
+ error?: string;
22
+ /**
23
+ * 是否显示校验错误信息,默认`true`
24
+ */
25
+ showMessage?: boolean;
26
+ /**
27
+ * 是否在行内显示校验信息,默认`''`
28
+ */
29
+ inlineMessage?: string | boolean;
30
+ /**
31
+ * 表单项控制的尺寸
32
+ */
33
+ size?: '' | 'large' | 'default' | 'small';
34
+ /**
35
+ * formitem 校验的状态
36
+ */
37
+ validateStatus?: '' | 'error' | 'validating' | 'success';
38
+ }
39
+ export interface ElColBase {
40
+ /**
41
+ * 布局中col的span属性
42
+ */
43
+ span?: number;
44
+ /**
45
+ * 栅格左侧的间隔格数,默认`0`
46
+ */
47
+ offset?: number;
48
+ /**
49
+ * 栅格向右移动格数。默认`0`
50
+ */
51
+ push?: number;
52
+ /**
53
+ * 栅格向左移动格数。默认`0`
54
+ */
55
+ pull?: number;
56
+ /**
57
+ * 【非element-plus属性】栅格向右移动格数。最终转换成`margin-right: calc(offsetRight / 24 * 100)%`
58
+ */
59
+ offsetRight?: number;
60
+ }
61
+ export interface ElColSchema extends ElColBase {
62
+ /**
63
+ * <768px 响应式栅格数或者栅格属性对象
64
+ */
65
+ xs?: number | ElColBase;
66
+ /**
67
+ * ≥768px 响应式栅格数或者栅格属性对象
68
+ */
69
+ sm?: number | ElColBase;
70
+ /**
71
+ * ≥992px 响应式栅格数或者栅格属性对象
72
+ */
73
+ md?: number | ElColBase;
74
+ /**
75
+ * ≥1200px 响应式栅格数或者栅格属性对象
76
+ */
77
+ lg?: number | ElColBase;
78
+ /**
79
+ * ≥1920px 响应式栅格数或者栅格属性对象
80
+ */
81
+ xl?: number | ElColBase;
82
+ }
83
+ /**
84
+ * 表单项插槽渲染函数:兼容单 `VNode` 与 `VNode[]`(与 Vue `Slot` 常见返回形态一致);
85
+ * 支持无参 `() => h(...)` 与 `(scope, context) => ...`。
86
+ */
87
+ export type BaseSlot = (scope?: any, context?: any) => VNode | VNode[];
88
+ /**
89
+ * 不变的属性
90
+ */
91
+ export interface XFormItemConst extends ElFormItemSchema, ElColSchema {
92
+ /**
93
+ * 属性名
94
+ */
95
+ name?: string;
96
+ /**
97
+ * 静态模式属性名,如字典类组件,如果用后端翻译的值,请用staticName指定
98
+ * @example
99
+ * ```javascript
100
+ * {
101
+ * name: 'gender',
102
+ * staticName: 'genderDesc', // 静态模式,渲染用的字段
103
+ * }
104
+ * ```
105
+ */
106
+ staticName?: string;
107
+ /**
108
+ * 组件名
109
+ */
110
+ type?: string;
111
+ /**
112
+ * 占位符,提示
113
+ */
114
+ placeholder?: string;
115
+ /**
116
+ * 样式对象
117
+ */
118
+ style?: CSSProperties;
119
+ /**
120
+ * 自定义FormItem的插槽名称
121
+ */
122
+ customRenderer?: string;
123
+ /**
124
+ * 表单label提示(小问号提示)
125
+ */
126
+ labelRemark?: string | {
127
+ [prop: string]: any;
128
+ };
129
+ /**
130
+ * label提示图标
131
+ */
132
+ labelRemarkIcon?: Component;
133
+ /**
134
+ * 自定义label的插槽名
135
+ */
136
+ customLabelRenderer?: string;
137
+ /**
138
+ * 配置多个字段的v-model
139
+ */
140
+ sync?: SyncItem[];
141
+ /**
142
+ * 监听事件配置
143
+ */
144
+ on?: {
145
+ [event: string]: (...args: any[]) => void;
146
+ };
147
+ /**
148
+ * 单位
149
+ */
150
+ /**
151
+ * 指定如何静态渲染,不指定则使用默认规则。
152
+ * 1. `slot` 表示整项静态改由表单模板插槽渲染,推荐配置 `slots.static`(与组件侧 `#static` 命名一致)
153
+ * 2. `custom` 表示自定义组件,同时请配置`staticComponent`
154
+ * 3. `text` 渲染为文本
155
+ * 4. `textarea` 渲染为换行文本
156
+ * 5. `rich-text` 渲染为富文本
157
+ */
158
+ staticType?: 'text' | 'textarea' | 'rich-text' | 'custom' | 'slot';
159
+ /**
160
+ * 自定义静态组件
161
+ */
162
+ staticComponent?: string | Component;
163
+ /**
164
+ * 静态插槽(历史字段)
165
+ * @deprecated 请改用 `slots.static`(与组件内 `#static` 一致)。保留该字段仅用于兼容旧配置。
166
+ */
167
+ staticSlot?: string | BaseSlot;
168
+ /**
169
+ * 非静态(编辑态)主插槽(历史字段)
170
+ * @deprecated 请改用 `slots.default` 传给具体输入组件。保留该字段仅用于兼容旧配置。
171
+ */
172
+ slot?: string | BaseSlot;
173
+ /**
174
+ * 传递给表单项对应组件的插槽:`static` 用于静态展示覆盖,`default` 用于编辑态主插槽(若组件需要)。
175
+ */
176
+ slots?: Record<string, BaseSlot | string>;
177
+ }
178
+ /**
179
+ * 表单项基础属性-含有待解析属性
180
+ */
181
+ export interface XFormItemBase<T = any, Context = any> extends XFormItemConst {
182
+ /**
183
+ * 标签名
184
+ */
185
+ label?: string | false;
186
+ /**
187
+ * 校验规则
188
+ */
189
+ rules?: FormItemRule | FormItemRule[];
190
+ /**
191
+ * 默认值
192
+ */
193
+ defaultValue?: any;
194
+ /**
195
+ * 是否显示,返回布尔值,或者返回可以转换成`true/false`的值;如果没有,则默认显示
196
+ */
197
+ visible?: ConditionValue<T, Context>;
198
+ /**
199
+ * 是否禁用,返回布尔值,或者返回可以转换成`true/false`的值
200
+ */
201
+ disabled?: ConditionValue<T, Context>;
202
+ /**
203
+ * 直接传递属性给具体组件,支持对象和返回对象的函数。使用场景:1)组件属性与表单项属性冲突;2)动态更新组件属性
204
+ * @deprecated 请使用attrs,attrs具有更好的语义
205
+ */
206
+ el?: ExtraProps;
207
+ /**
208
+ * 直接传递属性给具体组件,支持对象和返回对象的函数。使用场景:1)组件属性与表单项属性冲突;2)动态更新组件属性
209
+ * @example
210
+ * ```ts
211
+ * [
212
+ * {
213
+ * type: 'input',
214
+ * attrs: { type:'textarea' }, // [对象]: 将属性直接传递给input组件,避免了属性冲突
215
+ * },
216
+ * {
217
+ * type: "input",
218
+ * attrs: (row) => row.valueType === 'text' ? { type:'textarea'} : {} // [函数]: 根据row的值动态更新属性
219
+ * }
220
+ * ]
221
+ * ```
222
+ */
223
+ attrs?: any | ((row: T, context: Context) => any);
224
+ /**
225
+ * 是否静态模式
226
+ */
227
+ static?: ConditionValue<T, Context> | MaybeRefOrGetter<boolean>;
228
+ /**
229
+ * 详情配置,对应`el-description-item`,对表单无效
230
+ */
231
+ detailCfg?: ElDescriptionItemSchema;
232
+ /**
233
+ * 多布局协议下的表单项布局配置。各布局类型互相隔离。
234
+ */
235
+ layoutCfg?: XFormItemLayoutCfg;
236
+ /**
237
+ * 翻译字段
238
+ */
239
+ strName?: string;
240
+ /**
241
+ * 详情自定义渲染器(插槽名)
242
+ */
243
+ customDetailRenderer?: string;
244
+ /**
245
+ * 【数据处理管道】表单->表单项组件
246
+ */
247
+ pipeIn?: (value: any, row: T, context: Context) => any;
248
+ /**
249
+ * 【数据处理管道】表单项组件->表单
250
+ */
251
+ pipeOut?: (value: any, row: T, context: Context) => any;
252
+ }
253
+ /**
254
+ * 表单项基础属性-已解析
255
+ */
256
+ export interface XParsedFormItemBase extends XFormItemConst {
257
+ /**
258
+ * 标签名
259
+ */
260
+ label?: string;
261
+ /**
262
+ * 校验规则
263
+ */
264
+ rules?: FormItemRule | FormItemRule[];
265
+ disabled?: boolean;
266
+ /**
267
+ * 是否不显示标签,label为false时,不显示标签
268
+ */
269
+ noLabel?: boolean;
270
+ /**
271
+ * 加载options的loading
272
+ */
273
+ optionsLoading?: boolean;
274
+ }
275
+ /**
276
+ * 同步字段项
277
+ */
278
+ export interface SyncItem {
279
+ /**
280
+ * 表单里字段名
281
+ */
282
+ name: string;
283
+ /**
284
+ * 表单项组件内部字段名
285
+ */
286
+ syncName: string;
287
+ /**
288
+ * 默认值
289
+ */
290
+ defaultValue?: any;
291
+ /**
292
+ * 校验规则
293
+ */
294
+ rules?: FormItemRule | FormItemRule[];
295
+ /**
296
+ * 【数据处理管道】表单->表单项组件
297
+ */
298
+ pipeIn?: (value: any, row: any, context: any) => any;
299
+ /**
300
+ * 【数据处理管道】表单项组件->表单
301
+ */
302
+ pipeOut?: (value: any, row: any, context: any) => any;
303
+ }
304
+ //# sourceMappingURL=form-item.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-item.type.d.ts","sourceRoot":"","sources":["../../../src/components/form/form-item.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AACtF,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,KAAK,CAAA;AAC5E,OAAO,KAAK,EAAE,uBAAuB,EA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G;AACH,MAAM,WAAW,mBAAoB,SAAQ,cAAc;IACzD;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,KAAK,CAAC,EAAE,YAAY,GAAG,YAAY,EAAE,CAAA;IAErC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB;AACD;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,YAAY,CAAC,EAAE,GAAG,CAAA;IAElB;;OAEG;IACH,KAAK,CAAC,EAAE,YAAY,GAAG,YAAY,EAAE,CAAA;IACrC;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,KAAK,GAAG,CAAA;IACpD;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,KAAK,GAAG,CAAA;CACtD"}
@@ -0,0 +1,50 @@
1
+ import { XFormBase, XFormItem } from './type';
2
+ export interface FormItemProps {
3
+ item: XFormItem;
4
+ formProps: XFormBase;
5
+ rowData?: Record<string, any>;
6
+ static?: boolean;
7
+ /**
8
+ * 用于input-table
9
+ */
10
+ noLabel?: boolean;
11
+ /**
12
+ * 嵌套表单项的prop前缀
13
+ */
14
+ propPrefix?: string;
15
+ /**
16
+ * Editor-only schema path for container components.
17
+ */
18
+ editorPath?: Array<string | number>;
19
+ /**
20
+ * Runtime-only table layout composition hook. Used when x-input-table
21
+ * contributes rows directly to the host form table.
22
+ */
23
+ tableMerged?: boolean;
24
+ }
25
+ declare function __VLS_template(): {
26
+ attrs: Partial<{}>;
27
+ slots: Partial<Record<string, (_: {
28
+ item: XFormItem;
29
+ value: any;
30
+ row: Record<string, any>;
31
+ }) => any>> & Partial<Record<string, (_: {
32
+ label: {
33
+ label: string;
34
+ };
35
+ }) => any>>;
36
+ refs: {};
37
+ rootEl: any;
38
+ };
39
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
40
+ declare const __VLS_component: import('vue').DefineComponent<FormItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<FormItemProps> & Readonly<{}>, {
41
+ static: boolean;
42
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
43
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
44
+ export default _default;
45
+ type __VLS_WithTemplateSlots<T, S> = T & {
46
+ new (): {
47
+ $slots: S;
48
+ };
49
+ };
50
+ //# sourceMappingURL=form-item.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-item.vue.d.ts","sourceRoot":"","sources":["../../../src/components/form/form-item.vue"],"names":[],"mappings":"AAwCA;AAucA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAOlD,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,SAAS,CAAA;IACf,SAAS,EAAE,SAAS,CAAA;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC7B,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAA;IACnC;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAkVD,iBAAS,cAAc;WA4KT,OAAO,IAA6B;;;;;UAZqC,GAAG;;;;UACrB,GAAG;;;EAgBvE;AAuBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;YA7iBV,OAAO;6EAojBhB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}