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,65 @@
1
+ import { MaybeRefOrGetter } from 'vue';
2
+ import { XDescriptionProps } from '../description/type';
3
+ import { XFormBase, XFormSubmitContext } from '../form/type';
4
+ export interface XCrudFormPropsBase<T = any> extends Omit<XFormBase<T>, 'formType'> {
5
+ /**
6
+ * 表单类型,取值 'add' | 'edit' | 'detail'
7
+ */
8
+ formType?: MaybeRefOrGetter<string>;
9
+ /**
10
+ * 初始化参数
11
+ */
12
+ initParams?: {
13
+ [key: string]: any;
14
+ };
15
+ /**
16
+ * [钩子函数]-查询一条数据
17
+ * @param row
18
+ */
19
+ findOne?: (row: T) => Promise<any>;
20
+ /**
21
+ * [钩子函数]-新增
22
+ * @param row
23
+ * @param context
24
+ */
25
+ add?: (row: T, context: XFormSubmitContext) => Promise<any> | void;
26
+ /**
27
+ * [钩子函数]-提交编辑结果
28
+ * @param row
29
+ * @param context
30
+ */
31
+ edit?: (row: T, context: XFormSubmitContext) => Promise<any> | void;
32
+ /**
33
+ *[钩子函数]-删除
34
+ * @param row
35
+ * @param context
36
+ */
37
+ delete?: (row: T, context: XFormSubmitContext) => Promise<any> | void;
38
+ /**
39
+ * 详情XDescription的配置
40
+ */
41
+ detailCfg?: Omit<XDescriptionProps, 'body' | 'values'>;
42
+ /**
43
+ * 父节点名称字段
44
+ */
45
+ parentNameField?: string;
46
+ /**
47
+ * 父节点id字段
48
+ */
49
+ parentIdField?: string;
50
+ /**
51
+ * id字段
52
+ */
53
+ idField?: keyof T;
54
+ /**
55
+ * name字段
56
+ */
57
+ nameField?: keyof T;
58
+ }
59
+ export interface XCrudFormSchema<T = any> extends XCrudFormPropsBase<T> {
60
+ /**
61
+ * 增删改查-表单组件
62
+ */
63
+ type: 'x-crud-form';
64
+ }
65
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/components/crud-form/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAC5D,OAAO,KAAK,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AAGjE,MAAM,WAAW,kBAAkB,CAAC,CAAC,GAAG,GAAG,CAAE,SAAQ,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC;IACjF;;OAEG;IACH,QAAQ,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;IACnC;;OAEG;IACH,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAA;IACnC;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;IAClC;;;;OAIG;IACH,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,kBAAkB,KAAK,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAA;IAClE;;;;OAIG;IACH,IAAI,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,kBAAkB,KAAK,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAA;IACnE;;;;OAIG;IACH,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,kBAAkB,KAAK,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAA;IAErE;;OAEG;IACH,SAAS,CAAC,EAAE,IAAI,CAAC,iBAAiB,EAAE,MAAM,GAAG,QAAQ,CAAC,CAAA;IAEtD;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,CAAA;IAEjB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,CAAA;CACpB;AAED,MAAM,WAAW,eAAe,CAAC,CAAC,GAAG,GAAG,CAAE,SAAQ,kBAAkB,CAAC,CAAC,CAAC;IACrE;;OAEG;IACH,IAAI,EAAE,aAAa,CAAA;CACpB"}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * 与 Element Plus `el-date-picker` 的 modelValue 联合类型对齐(其数组分支为 `string[]`,不含 `Date[]`)。
3
+ */
4
+ type DateModelType = string | number | Date;
5
+ export type XDatePickerModelValue = DateModelType | string[] | [DateModelType, DateModelType] | null | undefined;
6
+ /** 仅声明与 Element 分离的项,其余经 attrs 透传(与 x-input 一致)。 */
7
+ export interface XDatePickerProps {
8
+ modelValue?: XDatePickerModelValue;
9
+ static?: boolean;
10
+ }
11
+ declare function __VLS_template(): {
12
+ attrs: Partial<{}>;
13
+ slots: {
14
+ static?(_: {
15
+ value: XDatePickerModelValue;
16
+ displayValue: string;
17
+ }): any;
18
+ };
19
+ refs: {};
20
+ rootEl: any;
21
+ };
22
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
23
+ declare const __VLS_component: import('vue').DefineComponent<XDatePickerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
24
+ "update:modelValue": (...args: any[]) => void;
25
+ }, string, import('vue').PublicProps, Readonly<XDatePickerProps> & Readonly<{
26
+ "onUpdate:modelValue"?: (...args: any[]) => any;
27
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
28
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
29
+ export default _default;
30
+ type __VLS_WithTemplateSlots<T, S> = T & {
31
+ new (): {
32
+ $slots: S;
33
+ };
34
+ };
35
+ //# sourceMappingURL=index.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/date-picker/index.vue"],"names":[],"mappings":"AAoBA;AAoJA;;GAEG;AACH,KAAK,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAAA;AAE3C,MAAM,MAAM,qBAAqB,GAC7B,aAAa,GACb,MAAM,EAAE,GACR,CAAC,aAAa,EAAE,aAAa,CAAC,GAC9B,IAAI,GACJ,SAAS,CAAA;AAEb,oDAAoD;AACpD,MAAM,WAAW,gBAAgB;IAC/B,UAAU,CAAC,EAAE,qBAAqB,CAAA;IAClC,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB;AA4ED,iBAAS,cAAc;WAqFT,OAAO,IAA6B;;;;;YAVtB,GAAG;;;;EAe9B;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;iFAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,139 @@
1
+ import { Placement, PopoverProps } from 'element-plus';
2
+ import { Component } from 'vue';
3
+ export interface ElDatePickerSchema {
4
+ /**
5
+ * 只读
6
+ */
7
+ readonly?: boolean;
8
+ /**
9
+ * 禁用
10
+ */
11
+ /**
12
+ * 输入框尺寸
13
+ */
14
+ size?: '' | 'large' | 'default' | 'small';
15
+ /**
16
+ * 文本框可输入
17
+ */
18
+ editable?: boolean;
19
+ /**
20
+ * 是否显示清除按钮
21
+ */
22
+ clearable?: boolean;
23
+ /**
24
+ * 非范围选择时的占位内容
25
+ */
26
+ placeholder?: string;
27
+ /**
28
+ * 范围选择时开始日期的占位内容
29
+ */
30
+ startPlaceholder?: string;
31
+ /**
32
+ * 范围选择时结束日期的占位内容
33
+ */
34
+ endPlaceholder?: string;
35
+ /**
36
+ * 显示类型,默认date
37
+ */
38
+ _type?: 'year' | 'years' | 'month' | 'months' | 'date' | 'dates' | 'datetime' | 'week' | 'datetimerange' | 'daterange' | 'monthrange' | 'yearrange';
39
+ /**
40
+ * 显示在输入框中的格式,默认 YYYY-MM-DD
41
+ */
42
+ format?: string;
43
+ /**
44
+ * DatePicker 下拉框的类名
45
+ */
46
+ popperClass?: string;
47
+ /**
48
+ * 自定义 popper 选项,这里有点问题(element-plus官方文档PopperOptions,但是没有这个类型)
49
+ */
50
+ popperOptions?: Partial<PopoverProps>;
51
+ /**
52
+ * 范围选择器分隔符,默认“-”
53
+ */
54
+ rangeSeparator?: string;
55
+ /**
56
+ * 选择器打开时默认显示的时间
57
+ */
58
+ _defaultValue?: Date | [Date, Date];
59
+ defaultTime?: Date | [Date, Date];
60
+ /**
61
+ * 绑定值的格式,不指定则为Date
62
+ */
63
+ valueFormat?: string;
64
+ /**
65
+ * 在范围选择器里取消两个日期面板之间的联动,默认false
66
+ */
67
+ unlinkPanels?: boolean;
68
+ /**
69
+ * 自定义前缀图标 如果 type的值是TimeLikeType,那么就是 Clock,不然就是 Calendar
70
+ */
71
+ prefixIcon?: string | Component;
72
+ /**
73
+ * 自定义清除图标,默认CircleClose
74
+ */
75
+ clearIcon?: string | Component;
76
+ /**
77
+ * 是否触发表单验证,默认true
78
+ */
79
+ validateEvent?: boolean;
80
+ /**
81
+ * 定义禁用日期
82
+ * @param time
83
+ * @returns
84
+ * @example
85
+ * ```ts
86
+ * {
87
+ * disabledDate: (time:Date) => dayjs(time).isBefore(dayjs(),'date'), // 禁用今天之前的日期
88
+ * disabledDate: (time: Date) => dayjs(time).isAfter(dayjs(), 'month'), // 禁用本月之后的日期
89
+ * }
90
+ * ```
91
+ */
92
+ disabledDate?: (time: Date) => boolean;
93
+ /**
94
+ * 设置快捷选项,需要传入数组对象
95
+ */
96
+ shortcuts?: Array<{
97
+ text: string;
98
+ value: Date | Function;
99
+ }>;
100
+ /**
101
+ * 设置自定义类名
102
+ */
103
+ cellClassName?: (data: Date) => string;
104
+ /**
105
+ * 是否将 date-picker 的下拉列表插入至 body 元素,默认true
106
+ */
107
+ teleported?: boolean;
108
+ /**
109
+ * 组件的空值配置。默认值是 ['', null, undefined]。 如果认为空字符串不是一个空值,可以设置成 [undefined, null]。
110
+ * https://element-plus.org/zh-CN/component/config-provider.html#%E7%A9%BA%E5%80%BC%E9%85%8D%E7%BD%AE
111
+ */
112
+ emptyValues?: Array<any>;
113
+ /**
114
+ * 设置 value-on-clear 以设置清空选项的值。 组件默认值是 undefined。 在日期组件中是 null。 如果想设置成 undefined,请使用 () => undefined。
115
+ */
116
+ valueOnClear?: string | number | boolean | Function | null;
117
+ /**
118
+ * Tooltip 可用的 positions
119
+ */
120
+ fallbackPlacement?: Placement[];
121
+ /**
122
+ * 下拉框出现的位置
123
+ */
124
+ placement?: Placement;
125
+ }
126
+ /**
127
+ * x-date-picker 与 schema 共用:Element DatePicker 配置。
128
+ * 说明:`static` 由 form-item 基础类型统一定义,避免与 `static(row, context)` 可调用签名冲突。
129
+ */
130
+ export interface XDatePickerBase extends ElDatePickerSchema {
131
+ }
132
+ export interface XDatePickerSchema<T = any, Context = any> extends XDatePickerBase {
133
+ /**
134
+ * 日期选择器(解析为 x-date-picker,以支持静态模式)
135
+ */
136
+ type: 'date-picker' | 'x-date-picker';
137
+ attrs?: ElDatePickerSchema | ((row: T, context: Context) => ElDatePickerSchema);
138
+ }
139
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/components/date-picker/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAEpC,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IAGH;;OAEG;IACH,IAAI,CAAC,EAAE,EAAE,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,CAAA;IAEzC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;IAEzB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IAEvB;;OAEG;IACH,KAAK,CAAC,EAAE,MAA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AY,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,IAAI,CAAA;IAE1D;;OAEG;IACH,iBAAiB,CAAC,EAAE,SAAS,EAAE,CAAA;IAE/B;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAA;CACtB;AACD;;;GAGG;AACH,MAAM,WAAW,eAAgB,SAAQ,kBAAkB;CAC1D;AAED,MAAM,WAAW,iBAAiB,CAAC,CAAC,GAAG,GAAG,EAAE,OAAO,GAAG,GAAG,CAAE,SAAQ,eAAe;IAChF;;OAEG;IACH,IAAI,EAAE,aAAa,GAAG,eAAe,CAAA;IAErC,KAAK,CAAC,EAAE,kBAAkB,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,OAAO,KAAK,kBAAkB,CAAC,CAAA;CAChF"}
@@ -0,0 +1,15 @@
1
+ import { XDateRangePickerBase } from './type';
2
+ export type XDateRangePickerProps = XDateRangePickerBase;
3
+ declare const _default: import('vue').DefineComponent<XDateRangePickerBase, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
4
+ "update:modelValue": (...args: any[]) => void;
5
+ "update:startDate": (...args: any[]) => void;
6
+ "update:endDate": (...args: any[]) => void;
7
+ }, string, import('vue').PublicProps, Readonly<XDateRangePickerBase> & Readonly<{
8
+ "onUpdate:modelValue"?: (...args: any[]) => any;
9
+ "onUpdate:startDate"?: (...args: any[]) => any;
10
+ "onUpdate:endDate"?: (...args: any[]) => any;
11
+ }>, {
12
+ format: string;
13
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
14
+ export default _default;
15
+ //# sourceMappingURL=index.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/date-range-picker/index.vue"],"names":[],"mappings":"AAsBA;AAsEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAA;AAElD,MAAM,MAAM,qBAAqB,GAAG,oBAAoB,CAAA;;;;;;;;;;;;AAsIxD,wBAQG"}
@@ -0,0 +1,137 @@
1
+ import { Placement, PopoverProps } from 'element-plus';
2
+ import { Component, StyleValue } from 'vue';
3
+ export interface ElDateRangePickerSchema {
4
+ /**
5
+ * 只读
6
+ */
7
+ readonly?: boolean;
8
+ /**
9
+ * 输入框尺寸
10
+ */
11
+ size?: '' | 'large' | 'default' | 'small';
12
+ /**
13
+ * 文本框可输入
14
+ */
15
+ editable?: boolean;
16
+ /**
17
+ * 范围选择时开始日期的占位内容
18
+ */
19
+ startPlaceholder?: string;
20
+ /**
21
+ * 范围选择时结束日期的占位内容
22
+ */
23
+ endPlaceholder?: string;
24
+ /**
25
+ * 显示类型,默认date
26
+ */
27
+ _type?: 'year' | 'years' | 'month' | 'months' | 'date' | 'dates' | 'datetime' | 'week' | 'datetimerange' | 'daterange' | 'monthrange' | 'yearrange';
28
+ /**
29
+ * DatePicker 下拉框的类名
30
+ */
31
+ popperClass?: string;
32
+ /**
33
+ * 自定义 popper 选项,这里有点问题(element-plus官方文档PopperOptions,但是没有这个类型)
34
+ */
35
+ popperOptions?: Partial<PopoverProps>;
36
+ /**
37
+ * 范围选择器分隔符,默认“-”
38
+ */
39
+ rangeSeperator?: 'string';
40
+ /**
41
+ * 选择器打开时默认显示的时间
42
+ */
43
+ _defaultValue?: [Date, Date];
44
+ defaultTime?: [Date, Date];
45
+ /**
46
+ * 绑定值的格式,不指定则为Date
47
+ */
48
+ valueFormat?: string;
49
+ /**
50
+ * 在范围选择器里取消两个日期面板之间的联动,默认false
51
+ */
52
+ unlinkPanels?: boolean;
53
+ /**
54
+ * 自定义前缀图标 如果 type的值是TimeLikeType,那么就是 Clock,不然就是 Calendar
55
+ */
56
+ prefixIcon?: string | Component;
57
+ /**
58
+ * 自定义清除图标,默认CircleClose
59
+ */
60
+ clearIcon?: string | Component;
61
+ /**
62
+ * 是否触发表单验证,默认true
63
+ */
64
+ validateEvent?: boolean;
65
+ /**
66
+ * 定义禁用日期
67
+ * @param time
68
+ * @returns
69
+ * @example
70
+ * ```ts
71
+ * {
72
+ * disabledDate: (time:Date) => dayjs(time).isBefore(dayjs(),'date'), // 禁用今天之前的日期
73
+ * disabledDate: (time: Date) => dayjs(time).isAfter(dayjs(), 'month'), // 禁用本月之后的日期
74
+ * }
75
+ * ```
76
+ */
77
+ disabledDate?: (time: Date) => boolean;
78
+ /**
79
+ * 设置快捷选项,需要传入数组对象
80
+ */
81
+ shortcuts?: Array<{
82
+ text: string;
83
+ value: Date | Function;
84
+ }>;
85
+ /**
86
+ * 设置自定义类名
87
+ */
88
+ cellClassName?: (data: Date) => string;
89
+ /**
90
+ * 是否将 date-picker 的下拉列表插入至 body 元素,默认true
91
+ */
92
+ teleported?: boolean;
93
+ /**
94
+ * 组件的空值配置。默认值是 ['', null, undefined]。 如果认为空字符串不是一个空值,可以设置成 [undefined, null]。
95
+ * https://element-plus.org/zh-CN/component/config-provider.html#%E7%A9%BA%E5%80%BC%E9%85%8D%E7%BD%AE
96
+ */
97
+ emptyValues?: Array<any>;
98
+ /**
99
+ * 设置 value-on-clear 以设置清空选项的值。 组件默认值是 undefined。 在日期组件中是 null。 如果想设置成 undefined,请使用 () => undefined。
100
+ */
101
+ valueOnClear?: string | number | boolean | Function | null;
102
+ /**
103
+ * Tooltip 可用的 positions
104
+ */
105
+ fallbackPlacement?: Placement[];
106
+ /**
107
+ * 下拉框出现的位置
108
+ */
109
+ placement?: Placement;
110
+ }
111
+ export interface XDateRangePickerBase {
112
+ /**
113
+ * 开始日期
114
+ */
115
+ startDate?: string;
116
+ /**
117
+ * 结束日期
118
+ */
119
+ endDate?: string;
120
+ style?: StyleValue;
121
+ /**
122
+ * 是否为静态
123
+ */
124
+ static?: boolean;
125
+ /**
126
+ * 显示在输入框中的格式,默认 YYYY-MM-DD
127
+ */
128
+ format?: string;
129
+ }
130
+ export interface XDateRangePickerSchema<T = any, Context = any> extends XDateRangePickerBase, ElDateRangePickerSchema {
131
+ /**
132
+ * 日期范围选择器
133
+ */
134
+ type: 'x-date-range-picker';
135
+ attrs?: ElDateRangePickerSchema | ((row: T, context: Context) => ElDateRangePickerSchema);
136
+ }
137
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/components/date-range-picker/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAEhD,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,IAAI,CAAC,EAAE,EAAE,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,CAAA;IAEzC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;IAEzB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IAEvB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,MAAM,GAAG,eAAe,GAAG,WAAW,GAAG,YAAY,GAAG,WAAW,CAAA;IAEnJ;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAA;IAErC;;OAEG;IACH,cAAc,CAAC,EAAE,QAAQ,CAAA;IACzB;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;IAE5B,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;IAE1B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;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ACnH;;OAEG;IACH,IAAI,EAAE,qBAAqB,CAAA;IAE3B,KAAK,CAAC,EAAE,uBAAuB,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,OAAO,KAAK,uBAAuB,CAAC,CAAA;CAC1F"}
@@ -0,0 +1,22 @@
1
+ import { XDateRangePickerV2Base } from './type';
2
+ import { RulesMapper } from '../form/type';
3
+ export interface XDateRangePickerV2Props extends XDateRangePickerV2Base {
4
+ _rules?: RulesMapper;
5
+ static?: boolean;
6
+ format?: string;
7
+ }
8
+ declare const _default: import('vue').DefineComponent<XDateRangePickerV2Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
+ "update:startDate": (...args: any[]) => void;
10
+ "update:endDate": (...args: any[]) => void;
11
+ }, string, import('vue').PublicProps, Readonly<XDateRangePickerV2Props> & Readonly<{
12
+ "onUpdate:startDate"?: (...args: any[]) => any;
13
+ "onUpdate:endDate"?: (...args: any[]) => any;
14
+ }>, {
15
+ format: string;
16
+ valueFormat: string;
17
+ rangeSeperator: string;
18
+ startPlaceholder: string;
19
+ endPlaceholder: string;
20
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
21
+ export default _default;
22
+ //# sourceMappingURL=index.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/date-range-picker-v2/index.vue"],"names":[],"mappings":"AA+BA;AAkGA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,QAAQ,CAAA;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAE/C,MAAM,WAAW,uBAAwB,SAAQ,sBAAsB;IACrE,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;;;;;;;;YADU,MAAM;;;;;;AAkQjB,wBAQG"}
@@ -0,0 +1,37 @@
1
+ import { StyleValue } from 'vue';
2
+ export interface XDateRangePickerV2Base {
3
+ /**
4
+ * 开始日期
5
+ */
6
+ startDate?: string | Date;
7
+ /**
8
+ * 结束日期
9
+ */
10
+ endDate?: string | Date;
11
+ style?: StyleValue;
12
+ /**
13
+ * 范围选择时开始日期的占位内容
14
+ */
15
+ startPlaceholder?: string;
16
+ /**
17
+ * 范围选择时结束日期的占位内容
18
+ */
19
+ endPlaceholder?: string;
20
+ /**
21
+ * 范围选择器分隔符,默认“-”
22
+ */
23
+ rangeSeperator?: string;
24
+ valueFormat?: string;
25
+ /**
26
+ * 是否为静态
27
+ */
28
+ static?: boolean;
29
+ format?: string;
30
+ }
31
+ export interface XDateRangePickerV2Schema<T = any, Context = any> extends XDateRangePickerV2Base {
32
+ /**
33
+ * 日期范围选择器
34
+ */
35
+ type: 'x-date-range-picker-v2';
36
+ }
37
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/components/date-range-picker-v2/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAErC,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAEvB,KAAK,CAAC,EAAE,UAAU,CAAA;IAElB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;IAEzB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IAEvB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IAEvB,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,wBAAwB,CAAC,CAAC,GAAG,GAAG,EAAE,OAAO,GAAG,GAAG,CAAE,SAAQ,sBAAsB;IAC9F;;OAEG;IACH,IAAI,EAAE,wBAAwB,CAAA;CAC/B"}
@@ -0,0 +1,28 @@
1
+ import { XDescriptionBase } from './type';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: Partial<Record<string, (_: {
5
+ item: import('./type').XDescriptionItemProps;
6
+ value: any;
7
+ row: {
8
+ [key: string]: any;
9
+ };
10
+ }) => any>>;
11
+ refs: {};
12
+ rootEl: any;
13
+ };
14
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
+ declare const __VLS_component: import('vue').DefineComponent<XDescriptionBase, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<XDescriptionBase> & Readonly<{}>, {
16
+ values: {
17
+ [key: string]: any;
18
+ };
19
+ body: import('./type').XDescriptionItemProps[];
20
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
21
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
22
+ export default _default;
23
+ type __VLS_WithTemplateSlots<T, S> = T & {
24
+ new (): {
25
+ $slots: S;
26
+ };
27
+ };
28
+ //# sourceMappingURL=index.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/description/index.vue"],"names":[],"mappings":"AAYA;AAmFA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAA;AAqD9C,iBAAS,cAAc;WA0ET,OAAO,IAA6B;;;;;;;UAXqC,GAAG;;;EAgBzF;AAmBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;6EAOnB,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"}
@@ -0,0 +1,120 @@
1
+ import { ISelectable, ISelectWithAll, IVisible } from '../../types';
2
+ export interface ElDescriptionSchema {
3
+ /**
4
+ * 是否带有边框
5
+ */
6
+ border?: boolean;
7
+ /**
8
+ * 一行 Descriptions Item 的数量
9
+ */
10
+ column?: number;
11
+ /**
12
+ * 排列的方向
13
+ */
14
+ direction?: 'vertical' | 'horizontal';
15
+ /**
16
+ * 列表的尺寸
17
+ */
18
+ size?: '' | 'large' | 'default' | 'small';
19
+ /**
20
+ * 标题文本,显示在左上方
21
+ */
22
+ title?: string;
23
+ /**
24
+ * 操作区文本,显示在右上方
25
+ */
26
+ extra?: string;
27
+ /**
28
+ * 标签宽度
29
+ */
30
+ labelWidth?: string | number;
31
+ }
32
+ export interface ElDescriptionItemSchema {
33
+ /**
34
+ * 列的数量
35
+ */
36
+ span?: number;
37
+ /**
38
+ * `(v2.8.1)`单元格应该跨越的行数,默认1
39
+ */
40
+ rowspan?: number;
41
+ /**
42
+ * 列的宽度,不同行相同列的宽度按最大值设定(如无 border ,宽度包含标签与内容)
43
+ */
44
+ width?: number | string;
45
+ /**
46
+ * 列的最小宽度,与 width 的区别是 width 是固定的,min-width 会把剩余宽度按比例分配给设置了 min-width 的列(如无 border,宽度包含标签与内容)
47
+ */
48
+ minWidth?: number | string;
49
+ /**
50
+ * 标签宽度
51
+ */
52
+ labelWidth?: number | string;
53
+ /**
54
+ * 列的内容对齐方式(如无 border,对标签和内容均生效)
55
+ */
56
+ align?: 'left' | 'center' | 'right';
57
+ /**
58
+ * 列的标签对齐方式,若不设置该项,则使用内容的对齐方式(如无 border,请使用 align 参数)
59
+ */
60
+ labelAlign?: 'left' | 'center' | 'right';
61
+ /**
62
+ * 列的内容自定义类名
63
+ */
64
+ className?: string;
65
+ /**
66
+ * 列的标签自定义类名
67
+ */
68
+ labelClassName?: string;
69
+ }
70
+ export interface XDescriptionItemBase {
71
+ /**
72
+ * 对象的属性名(字段名)
73
+ */
74
+ name?: string;
75
+ /**
76
+ * 一个对象中,某属性的中文名
77
+ */
78
+ label?: string | false;
79
+ /**
80
+ * 别名字段,一般用于指定字典字段的翻译字段
81
+ * @example
82
+ * ```
83
+ * {
84
+ * name: 'status', // 状态,它的值是code
85
+ * strName: 'statusDesc' // 状态的翻译字段
86
+ * }
87
+ * ```
88
+ */
89
+ strName?: string;
90
+ /**
91
+ * 用于自定义渲染的插槽名称
92
+ */
93
+ customRenderer?: string;
94
+ }
95
+ export interface XDescriptionItemProps extends IVisible, XDescriptionItemBase, ISelectable, ISelectWithAll, ElDescriptionItemSchema {
96
+ }
97
+ export interface XDescriptionBase {
98
+ /**
99
+ * 每一列的标签宽度
100
+ */
101
+ labelWidth?: number | string;
102
+ /**
103
+ * 标签的对齐方式
104
+ */
105
+ labelAlign?: 'left' | 'center' | 'right';
106
+ /**
107
+ * 配置项
108
+ */
109
+ body: XDescriptionItemProps[];
110
+ /**
111
+ * 值对象
112
+ */
113
+ values?: {
114
+ [key: string]: any;
115
+ };
116
+ formType?: string;
117
+ }
118
+ export interface XDescriptionProps extends XDescriptionBase, ElDescriptionSchema {
119
+ }
120
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/components/description/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAU,WAAW,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAE5E,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;OAEG;IACH,SAAS,CAAC,EAAE,UAAU,GAAG,YAAY,CAAA;IAErC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