ele-admin-plus 1.1.6-beta.5 → 1.1.6-beta.6

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 (297) hide show
  1. package/es/ele-alert/index.d.ts +6 -6
  2. package/es/ele-alert/props.d.ts +1 -1
  3. package/{lib/ele-app/types/element.d.ts → es/ele-app/el.d.ts} +101 -4
  4. package/es/ele-app/index.d.ts +0 -1
  5. package/es/ele-app/plus.d.ts +75 -0
  6. package/es/ele-app/style/common/index.js +1 -1
  7. package/es/ele-app/style/message/index.js +2 -2
  8. package/es/ele-app/style/overwrite/autocomplete/index.js +1 -1
  9. package/es/ele-app/style/overwrite/backtop/index.js +1 -1
  10. package/es/ele-app/style/overwrite/cascader/index.js +1 -1
  11. package/es/ele-app/style/overwrite/checkbox/index.js +1 -1
  12. package/es/ele-app/style/overwrite/color-picker/index.js +1 -1
  13. package/es/ele-app/style/overwrite/date-picker/index.js +1 -1
  14. package/es/ele-app/style/overwrite/descriptions/index.js +1 -1
  15. package/es/ele-app/style/overwrite/image-viewer/index.js +1 -1
  16. package/es/ele-app/style/overwrite/index.js +17 -17
  17. package/es/ele-app/style/overwrite/message-box/index.js +2 -2
  18. package/es/ele-app/style/overwrite/notification/index.js +2 -2
  19. package/es/ele-app/style/overwrite/popper/index.js +1 -1
  20. package/es/ele-app/style/overwrite/radio/index.js +1 -1
  21. package/es/ele-app/style/overwrite/select/index.js +1 -1
  22. package/es/ele-app/style/overwrite/table-filter/index.js +1 -1
  23. package/es/ele-app/style/overwrite/tag/index.js +1 -1
  24. package/es/ele-app/style/overwrite/tree/index.js +1 -1
  25. package/es/ele-app/style/overwrite/tree-select/index.js +1 -1
  26. package/es/ele-app/style/scrollbar/index.js +1 -1
  27. package/es/ele-app/{types/core.d.ts → types.d.ts} +10 -4
  28. package/es/ele-avatar-group/index.d.ts +2 -2
  29. package/es/ele-avatar-group/types.d.ts +21 -0
  30. package/{lib/ele-bar-code/types/index.d.ts → es/ele-bar-code/types.d.ts} +2 -0
  31. package/es/ele-basic-select/index.d.ts +8 -7
  32. package/{lib/ele-basic-select/types/index.d.ts → es/ele-basic-select/types.d.ts} +11 -8
  33. package/es/ele-breadcrumb/index.d.ts +1 -1
  34. package/es/ele-breadcrumb/types.d.ts +21 -0
  35. package/es/ele-check-card/components/card-item.d.ts +1 -1
  36. package/es/ele-check-card/index.d.ts +4 -4
  37. package/es/ele-check-card/props.d.ts +1 -1
  38. package/es/ele-check-card/types.d.ts +37 -0
  39. package/es/ele-config-provider/index.d.ts +2 -2
  40. package/es/ele-config-provider/props.d.ts +1 -1
  41. package/es/ele-config-provider/types.d.ts +124 -0
  42. package/es/ele-copyable/index.d.ts +5 -7
  43. package/es/ele-copyable/props.d.ts +1 -1
  44. package/{lib/ele-copyable/types/index.d.ts → es/ele-copyable/types.d.ts} +4 -2
  45. package/es/ele-cropper/index.d.ts +0 -2
  46. package/es/ele-cropper/types.d.ts +98 -0
  47. package/es/ele-cropper-modal/index.d.ts +2 -2
  48. package/es/ele-cropper-modal/props.d.ts +1 -1
  49. package/es/ele-data-table/index.d.ts +5 -2
  50. package/{lib/ele-data-table/types/index.d.ts → es/ele-data-table/types.d.ts} +111 -74
  51. package/es/ele-data-table/util.d.ts +2 -1
  52. package/es/ele-drawer/index.d.ts +3 -3
  53. package/es/ele-dropdown/index.d.ts +1 -1
  54. package/es/ele-dropdown/types.d.ts +20 -0
  55. package/es/ele-edit-tag/index.d.ts +3 -3
  56. package/{lib/ele-edit-tag/types/index.d.ts → es/ele-edit-tag/types.d.ts} +1 -0
  57. package/es/ele-ellipsis/index.d.ts +3 -3
  58. package/es/ele-ellipsis/props.d.ts +1 -1
  59. package/es/ele-ellipsis/types.d.ts +9 -0
  60. package/es/ele-file-list/components/file-grid-item.d.ts +1 -1
  61. package/es/ele-file-list/components/file-grid.d.ts +1 -1
  62. package/es/ele-file-list/components/file-table-item.d.ts +1 -1
  63. package/es/ele-file-list/components/file-table.d.ts +1 -1
  64. package/es/ele-file-list/index.d.ts +2 -2
  65. package/es/ele-file-list/props.d.ts +1 -1
  66. package/es/ele-file-list/types.d.ts +105 -0
  67. package/es/ele-icon-select/components/icon-grid.d.ts +1 -1
  68. package/es/ele-icon-select/index.d.ts +5 -5
  69. package/es/ele-icon-select/props.d.ts +1 -1
  70. package/es/ele-icon-select/types.d.ts +16 -0
  71. package/es/ele-loading/{types/index.d.ts → types.d.ts} +6 -4
  72. package/es/ele-map-picker/components/map-view.d.ts +14 -12
  73. package/es/ele-map-picker/index.d.ts +6 -6
  74. package/es/ele-map-picker/props.d.ts +2 -1
  75. package/es/ele-map-picker/types.d.ts +93 -0
  76. package/es/ele-menus/index.d.ts +1 -1
  77. package/es/ele-menus/types.d.ts +96 -0
  78. package/es/ele-modal/index.d.ts +8 -10
  79. package/{lib/ele-modal/types/index.d.ts → es/ele-modal/types.d.ts} +22 -7
  80. package/es/ele-popconfirm/index.d.ts +10 -9
  81. package/es/ele-popconfirm/props.d.ts +1 -1
  82. package/es/ele-popover/index.d.ts +1 -1
  83. package/es/ele-popover/props.d.ts +19 -19
  84. package/es/ele-printer/types.d.ts +48 -0
  85. package/es/ele-pro-layout/components/pro-sidebar.d.ts +1 -1
  86. package/es/ele-pro-layout/components/pro-sidebox.d.ts +1 -1
  87. package/es/ele-pro-layout/components/pro-tabs.d.ts +1 -1
  88. package/es/ele-pro-layout/components/tab-dropdown.d.ts +1 -1
  89. package/es/ele-pro-layout/index.d.ts +15 -11
  90. package/es/ele-pro-layout/props.d.ts +1 -1
  91. package/es/ele-pro-layout/types.d.ts +253 -0
  92. package/es/ele-pro-table/index.d.ts +8 -9
  93. package/es/ele-pro-table/props.d.ts +4 -4
  94. package/es/ele-pro-table/types.d.ts +277 -0
  95. package/es/ele-pro-table/util.d.ts +1 -1
  96. package/es/ele-qr-code/index.d.ts +1 -1
  97. package/es/ele-qr-code/types.d.ts +41 -0
  98. package/es/ele-qr-code-svg/index.d.ts +1 -1
  99. package/es/ele-segmented/index.d.ts +2 -2
  100. package/es/ele-segmented/types.d.ts +28 -0
  101. package/es/ele-steps/{types/index.d.ts → types.d.ts} +5 -3
  102. package/es/ele-table-select/index.d.ts +12 -12
  103. package/es/ele-table-select/props.d.ts +1 -1
  104. package/es/ele-tabs/components/tab-title.d.ts +1 -1
  105. package/es/ele-tabs/index.d.ts +8 -7
  106. package/es/ele-tabs/props.d.ts +2 -1
  107. package/es/ele-tabs/types.d.ts +64 -0
  108. package/es/ele-text/index.d.ts +4 -4
  109. package/es/ele-text/props.d.ts +1 -1
  110. package/es/ele-text/types.d.ts +35 -0
  111. package/es/ele-tooltip/index.d.ts +1 -1
  112. package/es/ele-tooltip/props.d.ts +7 -7
  113. package/es/ele-tour/index.d.ts +1 -1
  114. package/es/ele-tour/types.d.ts +42 -0
  115. package/es/ele-tour/util.d.ts +1 -1
  116. package/es/ele-tree-select/index.d.ts +4 -3
  117. package/es/ele-tree-select/props.d.ts +1 -1
  118. package/es/ele-tree-select/{types/index.d.ts → types.d.ts} +5 -1
  119. package/es/ele-upload-list/components/list-item.d.ts +1 -1
  120. package/es/ele-upload-list/index.d.ts +4 -4
  121. package/es/ele-upload-list/props.d.ts +1 -1
  122. package/es/ele-upload-list/types.d.ts +45 -0
  123. package/es/ele-virtual-table/components/body-cell.d.ts +1 -1
  124. package/es/ele-virtual-table/components/body-row.d.ts +1 -1
  125. package/es/ele-virtual-table/components/cell-filter.d.ts +1 -1
  126. package/es/ele-virtual-table/index.d.ts +10 -9
  127. package/es/ele-virtual-table/types.d.ts +195 -0
  128. package/es/ele-watermark/index.d.ts +1 -1
  129. package/es/ele-watermark/types.d.ts +39 -0
  130. package/lib/ele-alert/index.d.ts +6 -6
  131. package/lib/ele-alert/props.d.ts +1 -1
  132. package/{es/ele-app/types/element.d.ts → lib/ele-app/el.d.ts} +101 -4
  133. package/lib/ele-app/index.d.ts +0 -1
  134. package/lib/ele-app/plus.d.ts +75 -0
  135. package/lib/ele-app/style/message/index.cjs +1 -1
  136. package/lib/ele-app/style/overwrite/message-box/index.cjs +1 -1
  137. package/lib/ele-app/style/overwrite/notification/index.cjs +1 -1
  138. package/lib/ele-app/{types/core.d.ts → types.d.ts} +10 -4
  139. package/lib/ele-avatar-group/index.d.ts +2 -2
  140. package/lib/ele-avatar-group/types.d.ts +21 -0
  141. package/{es/ele-bar-code/types/index.d.ts → lib/ele-bar-code/types.d.ts} +2 -0
  142. package/lib/ele-basic-select/index.d.ts +8 -7
  143. package/{es/ele-basic-select/types/index.d.ts → lib/ele-basic-select/types.d.ts} +11 -8
  144. package/lib/ele-breadcrumb/index.d.ts +1 -1
  145. package/lib/ele-breadcrumb/types.d.ts +21 -0
  146. package/lib/ele-check-card/components/card-item.d.ts +1 -1
  147. package/lib/ele-check-card/index.d.ts +4 -4
  148. package/lib/ele-check-card/props.d.ts +1 -1
  149. package/lib/ele-check-card/types.d.ts +37 -0
  150. package/lib/ele-config-provider/index.d.ts +2 -2
  151. package/lib/ele-config-provider/props.d.ts +1 -1
  152. package/lib/ele-config-provider/types.d.ts +124 -0
  153. package/lib/ele-copyable/index.d.ts +5 -7
  154. package/lib/ele-copyable/props.d.ts +1 -1
  155. package/{es/ele-copyable/types/index.d.ts → lib/ele-copyable/types.d.ts} +4 -2
  156. package/lib/ele-cropper/index.d.ts +0 -2
  157. package/lib/ele-cropper/types.d.ts +98 -0
  158. package/lib/ele-cropper-modal/index.d.ts +2 -2
  159. package/lib/ele-cropper-modal/props.d.ts +1 -1
  160. package/lib/ele-data-table/index.d.ts +5 -2
  161. package/{es/ele-data-table/types/index.d.ts → lib/ele-data-table/types.d.ts} +111 -74
  162. package/lib/ele-data-table/util.d.ts +2 -1
  163. package/lib/ele-drawer/index.d.ts +3 -3
  164. package/lib/ele-dropdown/index.d.ts +1 -1
  165. package/lib/ele-dropdown/types.d.ts +20 -0
  166. package/lib/ele-edit-tag/index.d.ts +3 -3
  167. package/{es/ele-edit-tag/types/index.d.ts → lib/ele-edit-tag/types.d.ts} +1 -0
  168. package/lib/ele-ellipsis/index.d.ts +3 -3
  169. package/lib/ele-ellipsis/props.d.ts +1 -1
  170. package/lib/ele-ellipsis/types.d.ts +9 -0
  171. package/lib/ele-file-list/components/file-grid-item.d.ts +1 -1
  172. package/lib/ele-file-list/components/file-grid.d.ts +1 -1
  173. package/lib/ele-file-list/components/file-table-item.d.ts +1 -1
  174. package/lib/ele-file-list/components/file-table.d.ts +1 -1
  175. package/lib/ele-file-list/index.d.ts +2 -2
  176. package/lib/ele-file-list/props.d.ts +1 -1
  177. package/lib/ele-file-list/types.d.ts +105 -0
  178. package/lib/ele-icon-select/components/icon-grid.d.ts +1 -1
  179. package/lib/ele-icon-select/index.d.ts +5 -5
  180. package/lib/ele-icon-select/props.d.ts +1 -1
  181. package/lib/ele-icon-select/types.d.ts +16 -0
  182. package/lib/ele-loading/{types/index.d.ts → types.d.ts} +6 -4
  183. package/lib/ele-map-picker/components/map-view.d.ts +14 -12
  184. package/lib/ele-map-picker/index.d.ts +6 -6
  185. package/lib/ele-map-picker/props.d.ts +2 -1
  186. package/lib/ele-map-picker/types.d.ts +93 -0
  187. package/lib/ele-menus/index.d.ts +1 -1
  188. package/lib/ele-menus/types.d.ts +96 -0
  189. package/lib/ele-modal/index.d.ts +8 -10
  190. package/{es/ele-modal/types/index.d.ts → lib/ele-modal/types.d.ts} +22 -7
  191. package/lib/ele-popconfirm/index.d.ts +10 -9
  192. package/lib/ele-popconfirm/props.d.ts +1 -1
  193. package/lib/ele-popover/index.d.ts +1 -1
  194. package/lib/ele-popover/props.d.ts +19 -19
  195. package/lib/ele-printer/types.d.ts +48 -0
  196. package/lib/ele-pro-layout/components/pro-sidebar.d.ts +1 -1
  197. package/lib/ele-pro-layout/components/pro-sidebox.d.ts +1 -1
  198. package/lib/ele-pro-layout/components/pro-tabs.d.ts +1 -1
  199. package/lib/ele-pro-layout/components/tab-dropdown.d.ts +1 -1
  200. package/lib/ele-pro-layout/index.d.ts +15 -11
  201. package/lib/ele-pro-layout/props.d.ts +1 -1
  202. package/lib/ele-pro-layout/types.d.ts +253 -0
  203. package/lib/ele-pro-table/index.d.ts +8 -9
  204. package/lib/ele-pro-table/props.d.ts +4 -4
  205. package/lib/ele-pro-table/types.d.ts +277 -0
  206. package/lib/ele-pro-table/util.d.ts +1 -1
  207. package/lib/ele-qr-code/index.d.ts +1 -1
  208. package/lib/ele-qr-code/types.d.ts +41 -0
  209. package/lib/ele-qr-code-svg/index.d.ts +1 -1
  210. package/lib/ele-segmented/index.d.ts +2 -2
  211. package/lib/ele-segmented/types.d.ts +28 -0
  212. package/lib/ele-steps/{types/index.d.ts → types.d.ts} +5 -3
  213. package/lib/ele-table-select/index.d.ts +12 -12
  214. package/lib/ele-table-select/props.d.ts +1 -1
  215. package/lib/ele-tabs/components/tab-title.d.ts +1 -1
  216. package/lib/ele-tabs/index.d.ts +8 -7
  217. package/lib/ele-tabs/props.d.ts +2 -1
  218. package/lib/ele-tabs/types.d.ts +64 -0
  219. package/lib/ele-text/index.d.ts +4 -4
  220. package/lib/ele-text/props.d.ts +1 -1
  221. package/lib/ele-text/types.d.ts +35 -0
  222. package/lib/ele-tooltip/index.d.ts +1 -1
  223. package/lib/ele-tooltip/props.d.ts +7 -7
  224. package/lib/ele-tour/index.d.ts +1 -1
  225. package/lib/ele-tour/types.d.ts +42 -0
  226. package/lib/ele-tour/util.d.ts +1 -1
  227. package/lib/ele-tree-select/index.d.ts +4 -3
  228. package/lib/ele-tree-select/props.d.ts +1 -1
  229. package/lib/ele-tree-select/{types/index.d.ts → types.d.ts} +5 -1
  230. package/lib/ele-upload-list/components/list-item.d.ts +1 -1
  231. package/lib/ele-upload-list/index.d.ts +4 -4
  232. package/lib/ele-upload-list/props.d.ts +1 -1
  233. package/lib/ele-upload-list/types.d.ts +45 -0
  234. package/lib/ele-virtual-table/components/body-cell.d.ts +1 -1
  235. package/lib/ele-virtual-table/components/body-row.d.ts +1 -1
  236. package/lib/ele-virtual-table/components/cell-filter.d.ts +1 -1
  237. package/lib/ele-virtual-table/index.d.ts +10 -9
  238. package/lib/ele-virtual-table/types.d.ts +195 -0
  239. package/lib/ele-watermark/index.d.ts +1 -1
  240. package/lib/ele-watermark/types.d.ts +39 -0
  241. package/package.json +86 -6
  242. package/es/ele-app/types/components.d.ts +0 -51
  243. package/es/ele-app/types/index.d.ts +0 -3
  244. package/es/ele-avatar-group/types/index.d.ts +0 -20
  245. package/es/ele-breadcrumb/types/index.d.ts +0 -19
  246. package/es/ele-check-card/types/index.d.ts +0 -32
  247. package/es/ele-config-provider/types/index.d.ts +0 -102
  248. package/es/ele-cropper/types/index.d.ts +0 -77
  249. package/es/ele-dropdown/types/index.d.ts +0 -18
  250. package/es/ele-ellipsis/types/index.d.ts +0 -8
  251. package/es/ele-file-list/types/index.d.ts +0 -95
  252. package/es/ele-icon-select/types/index.d.ts +0 -16
  253. package/es/ele-map-picker/types/index.d.ts +0 -88
  254. package/es/ele-menus/types/index.d.ts +0 -78
  255. package/es/ele-printer/types/index.d.ts +0 -44
  256. package/es/ele-pro-layout/types/index.d.ts +0 -226
  257. package/es/ele-pro-table/types/index.d.ts +0 -219
  258. package/es/ele-qr-code/types/index.d.ts +0 -38
  259. package/es/ele-segmented/types/index.d.ts +0 -25
  260. package/es/ele-tabs/types/index.d.ts +0 -50
  261. package/es/ele-text/types/index.d.ts +0 -13
  262. package/es/ele-tour/types/index.d.ts +0 -38
  263. package/es/ele-upload-list/types/index.d.ts +0 -42
  264. package/es/ele-virtual-table/types/index.d.ts +0 -161
  265. package/es/ele-watermark/types/index.d.ts +0 -36
  266. package/lib/ele-app/types/components.d.ts +0 -51
  267. package/lib/ele-app/types/index.d.ts +0 -3
  268. package/lib/ele-avatar-group/types/index.d.ts +0 -20
  269. package/lib/ele-breadcrumb/types/index.d.ts +0 -19
  270. package/lib/ele-check-card/types/index.d.ts +0 -32
  271. package/lib/ele-config-provider/types/index.d.ts +0 -102
  272. package/lib/ele-cropper/types/index.d.ts +0 -77
  273. package/lib/ele-dropdown/types/index.d.ts +0 -18
  274. package/lib/ele-ellipsis/types/index.d.ts +0 -8
  275. package/lib/ele-file-list/types/index.d.ts +0 -95
  276. package/lib/ele-icon-select/types/index.d.ts +0 -16
  277. package/lib/ele-map-picker/types/index.d.ts +0 -88
  278. package/lib/ele-menus/types/index.d.ts +0 -78
  279. package/lib/ele-printer/types/index.d.ts +0 -44
  280. package/lib/ele-pro-layout/types/index.d.ts +0 -226
  281. package/lib/ele-pro-table/types/index.d.ts +0 -219
  282. package/lib/ele-qr-code/types/index.d.ts +0 -38
  283. package/lib/ele-segmented/types/index.d.ts +0 -25
  284. package/lib/ele-tabs/types/index.d.ts +0 -50
  285. package/lib/ele-text/types/index.d.ts +0 -13
  286. package/lib/ele-tour/types/index.d.ts +0 -38
  287. package/lib/ele-upload-list/types/index.d.ts +0 -42
  288. package/lib/ele-virtual-table/types/index.d.ts +0 -161
  289. package/lib/ele-watermark/types/index.d.ts +0 -36
  290. /package/es/ele-dashboard/{types/index.d.ts → types.d.ts} +0 -0
  291. /package/es/ele-dot/{types/index.d.ts → types.d.ts} +0 -0
  292. /package/es/ele-pagination/{types/index.d.ts → types.d.ts} +0 -0
  293. /package/es/ele-toolbar/{types/index.d.ts → types.d.ts} +0 -0
  294. /package/lib/ele-dashboard/{types/index.d.ts → types.d.ts} +0 -0
  295. /package/lib/ele-dot/{types/index.d.ts → types.d.ts} +0 -0
  296. /package/lib/ele-pagination/{types/index.d.ts → types.d.ts} +0 -0
  297. /package/lib/ele-toolbar/{types/index.d.ts → types.d.ts} +0 -0
@@ -0,0 +1,277 @@
1
+ import type {
2
+ EleDataTableInstance,
3
+ EleVirtualTableInstance,
4
+ ElePaginationProps
5
+ } from '../ele-app/plus';
6
+ import type {
7
+ DataItem,
8
+ Column,
9
+ Columns,
10
+ Sorter,
11
+ Filter,
12
+ TableColumn,
13
+ TableSize,
14
+ ResolveFunction
15
+ } from '../ele-data-table/types';
16
+ export type {
17
+ DataItem,
18
+ Column,
19
+ Columns,
20
+ Sorter,
21
+ Filter,
22
+ TableColumn,
23
+ TableSize,
24
+ ResolveFunction
25
+ };
26
+
27
+ /**
28
+ * 搜索参数
29
+ */
30
+ export type Where = Record<keyof any, any>;
31
+
32
+ /**
33
+ * 排序参数
34
+ */
35
+ export type Orders = Record<string, OrderValue>;
36
+
37
+ /**
38
+ * 筛选参数
39
+ */
40
+ export type Filters = Record<string, any>;
41
+
42
+ /**
43
+ * 数据源方法参数
44
+ */
45
+ export interface DatasourceParams {
46
+ /** 页码 */
47
+ page?: number;
48
+ /** 每页显示数量 */
49
+ limit?: number;
50
+ /** 搜索参数 */
51
+ where: Where;
52
+ /** 排序参数 */
53
+ orders: Orders;
54
+ /** 筛选参数 */
55
+ filters: Filters;
56
+ /** 排序方式 */
57
+ sorter: Sorter;
58
+ /** 筛选条件 */
59
+ filter: Filter;
60
+ /** 树表懒加载父级数据 */
61
+ parent?: DataItem;
62
+ }
63
+
64
+ /**
65
+ * 数据源方法返回结果
66
+ */
67
+ export type DatasourceResult = DataItem[] | Record<string, any> | undefined;
68
+
69
+ /**
70
+ * 数据源方法
71
+ * @param params 参数
72
+ */
73
+ export type DatasourceFunction = (
74
+ params: DatasourceParams
75
+ ) => Promise<DatasourceResult>;
76
+
77
+ /**
78
+ * 数据源
79
+ */
80
+ export type Datasource = DataItem[] | DatasourceFunction;
81
+
82
+ /**
83
+ * 刷新方法参数
84
+ */
85
+ export interface ReloadParams {
86
+ /** 页码 */
87
+ page?: number;
88
+ /** 每页数量 */
89
+ limit?: number;
90
+ /** 搜索参数 */
91
+ where?: Where;
92
+ /** 排序方式 */
93
+ sorter?: Sorter;
94
+ /** 筛选条件 */
95
+ filter?: Filter;
96
+ }
97
+
98
+ /**
99
+ * 刷新方法
100
+ * @param option 刷新参数
101
+ * @param parent 树表格父级数据
102
+ * @param resolve 树表格懒加载方法
103
+ */
104
+ export type ReloadFunction = (
105
+ option?: ReloadParams,
106
+ parent?: DataItem,
107
+ resolve?: ResolveFunction
108
+ ) => void;
109
+
110
+ /**
111
+ * 排序的值
112
+ */
113
+ export type OrderValue = string | number | boolean | null | undefined;
114
+
115
+ /**
116
+ * 请求参数设置
117
+ */
118
+ export interface RequestOption {
119
+ /** 排序字段参数名称 */
120
+ sortName?: string;
121
+ /** 排序方式参数名称 */
122
+ orderName?: string;
123
+ /** 升序的排序值 */
124
+ ascValue?: OrderValue;
125
+ /** 降序的排序值 */
126
+ descValue?: OrderValue;
127
+ }
128
+
129
+ /**
130
+ * 响应参数设置
131
+ */
132
+ export interface ResponseOption {
133
+ /** 数据列表字段名称 */
134
+ dataName?: string;
135
+ /** 数据总数字段名称 */
136
+ countName?: string;
137
+ }
138
+
139
+ /**
140
+ * 响应数据解析
141
+ */
142
+ export type ParseData = (data: unknown) => DatasourceResult;
143
+
144
+ /**
145
+ * 排序方式封装
146
+ */
147
+ export interface OrderItem {
148
+ /** 排序字段名 */
149
+ field: string;
150
+ /** 是否是降序 */
151
+ descend: boolean;
152
+ /** 自定义排序方法 */
153
+ sortMethod?: (a: DataItem, b: DataItem) => number;
154
+ }
155
+
156
+ /**
157
+ * 渲染完成事件参数
158
+ */
159
+ export interface DoneParams<T> {
160
+ /** 当前页数据 */
161
+ data: T[];
162
+ /** 当前页码 */
163
+ page?: number;
164
+ /** 总数量 */
165
+ total?: number;
166
+ /** 数据源原始数据 */
167
+ response?: any;
168
+ }
169
+
170
+ /**
171
+ * 渲染完成事件
172
+ */
173
+ export type DoneFunction<T> = (
174
+ /** 返回结果 */
175
+ result: DoneParams<T>,
176
+ /** 树形表格时父级数据 */
177
+ parent?: T
178
+ ) => void;
179
+
180
+ /**
181
+ * 分页组件属性
182
+ */
183
+ export interface TablePagination extends ElePaginationProps {
184
+ /** 是否自动修正页码 */
185
+ autoAmend?: boolean;
186
+ }
187
+
188
+ /**
189
+ * 内置工具按钮
190
+ */
191
+ export type TableTool = 'reload' | 'size' | 'columns' | 'maximized' | string;
192
+
193
+ /**
194
+ * 列配置
195
+ */
196
+ export interface ColItem {
197
+ /** 列配置标识 */
198
+ uid: string;
199
+ /** 标题 */
200
+ label?: string;
201
+ /** 是否选中 */
202
+ checked?: boolean;
203
+ /** 是否固定 */
204
+ fixed?: boolean | string;
205
+ /** 子级数据 */
206
+ children?: ColItem[];
207
+ }
208
+
209
+ /**
210
+ * 请求回调参数
211
+ */
212
+ export type FetchCallback = (options: DatasourceParams) => void;
213
+
214
+ /**
215
+ * 前端分页排序方法返回结果
216
+ */
217
+ export interface ReloadDataResult {
218
+ /** 当前数据 */
219
+ data: DataItem[];
220
+ /** 当前页码 */
221
+ page: number;
222
+ /** 总数量 */
223
+ total: number;
224
+ }
225
+
226
+ /**
227
+ * 请求结果
228
+ */
229
+ export interface ResponseResult {
230
+ /** 当前数据 */
231
+ data?: DataItem[];
232
+ /** 总数量 */
233
+ total?: number;
234
+ }
235
+
236
+ /**
237
+ * 复合属性类型
238
+ */
239
+ export type ProProps<T extends Record<keyof any, any>> = boolean | T;
240
+
241
+ /**
242
+ * 表格状态
243
+ */
244
+ export interface TableState {
245
+ /** 当前排序参数 */
246
+ sorter: Sorter;
247
+ /** 当前筛选参数 */
248
+ filter: Filter;
249
+ /** 当前搜索参数 */
250
+ where: Where;
251
+ }
252
+
253
+ /**
254
+ * 表格组件实例
255
+ */
256
+ export type TableViewInstance =
257
+ | EleDataTableInstance
258
+ | EleVirtualTableInstance
259
+ | null;
260
+
261
+ /**
262
+ * 国际化
263
+ */
264
+ export interface TableLocale {
265
+ refresh: string;
266
+ sizes: string;
267
+ columns: string;
268
+ maximized: string;
269
+ sizeLarge: string;
270
+ sizeDefault: string;
271
+ sizeSmall: string;
272
+ columnTitle: string;
273
+ columnReset: string;
274
+ columnUntitled: string;
275
+ columnFixedLeft: string;
276
+ columnFixedRight: string;
277
+ }
@@ -1,4 +1,4 @@
1
- import type { ElePaginationProps } from '../ele-app/types';
1
+ import type { ElePaginationProps } from '../ele-app/plus';
2
2
  import type { DataItem, Column, Columns, Sorter, Filter, TableSize, TreeProps } from '../ele-data-table/types';
3
3
  import type { Orders, Filters, OrderItem, RequestOption, ResponseOption, TablePagination, DatasourceResult, ResponseResult, ReloadDataResult, ColItem, ProProps } from './types';
4
4
  /**
@@ -58,8 +58,8 @@ declare const _default: import("vue").DefineComponent<{
58
58
  }>> & {
59
59
  onDone?: (() => any) | undefined;
60
60
  }, {
61
- size: number;
62
61
  margin: number;
62
+ size: number;
63
63
  level: import("./types").Level;
64
64
  bgColor: string;
65
65
  fgColor: string;
@@ -0,0 +1,41 @@
1
+ /**
2
+ * 容错等级
3
+ */
4
+ export type Level = 'L' | 'M' | 'Q' | 'H';
5
+
6
+ /**
7
+ * 自定义图片参数
8
+ */
9
+ export interface ImageSettings {
10
+ /** 地址 */
11
+ src?: string;
12
+ /** 高度 */
13
+ height?: number;
14
+ /** 宽度 */
15
+ width?: number;
16
+ /** x坐标 */
17
+ x?: number;
18
+ /** y坐标 */
19
+ y?: number;
20
+ /** 是否擦除图片区域二维码 */
21
+ excavate?: boolean;
22
+ }
23
+
24
+ /**
25
+ * 二维码数据
26
+ */
27
+ export type Modules = boolean[][];
28
+
29
+ /**
30
+ * 擦除区域
31
+ */
32
+ export interface Excavation {
33
+ /** x坐标 */
34
+ x: number;
35
+ /** y坐标 */
36
+ y: number;
37
+ /** 宽度 */
38
+ w: number;
39
+ /** 高度 */
40
+ h: number;
41
+ }
@@ -61,8 +61,8 @@ declare const _default: import("vue").DefineComponent<{
61
61
  }>> & {
62
62
  onDone?: (() => any) | undefined;
63
63
  }, {
64
- size: number;
65
64
  margin: number;
65
+ size: number;
66
66
  level: import("../ele-qr-code/types").Level;
67
67
  bgColor: string;
68
68
  fgColor: string;
@@ -1,4 +1,4 @@
1
- import type { ElTabsInstance } from '../ele-app/types';
1
+ import type { ElTabsInstance } from '../ele-app/el';
2
2
  declare const _default: import("vue").DefineComponent<{
3
3
  modelValue: (StringConstructor | NumberConstructor)[];
4
4
  block: BooleanConstructor;
@@ -12,7 +12,7 @@ declare const _default: import("vue").DefineComponent<{
12
12
  tabRef: import("vue").Ref<ElTabsInstance>;
13
13
  onUpdateModelValue: (value: string | number) => void;
14
14
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
- 'update:modelValue': (_value: string | number) => boolean; /** 选中改变事件 */
15
+ 'update:modelValue': (_value: string | number) => boolean;
16
16
  change: (_active: string | number) => boolean;
17
17
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
18
18
  modelValue: (StringConstructor | NumberConstructor)[];
@@ -0,0 +1,28 @@
1
+ import type { Component } from 'vue';
2
+ import type { StyleValue } from '../ele-app/types';
3
+ import type { ElIconProps } from '../ele-app/el';
4
+
5
+ /**
6
+ * 尺寸
7
+ */
8
+ export type SegmentedSize = 'large' | 'default' | 'small';
9
+
10
+ /**
11
+ * 数据
12
+ */
13
+ export interface SegmentedItem extends Record<keyof any, any> {
14
+ /** 标题 */
15
+ label?: string;
16
+ /** 值 */
17
+ value: string | number;
18
+ /** 图标 */
19
+ icon?: string | Component;
20
+ /** 是否禁用 */
21
+ disabled?: boolean;
22
+ /** 自定义样式 */
23
+ style?: StyleValue;
24
+ /** 自定义图标属性 */
25
+ iconProps?: ElIconProps;
26
+ /** 自定义图标样式 */
27
+ iconStyle?: StyleValue;
28
+ }
@@ -1,11 +1,13 @@
1
- import type { ElStepProps } from '../../ele-app/types';
1
+ import type { ElStepProps } from '../ele-app/el';
2
+
2
3
  /**
3
4
  * 步骤条数据
4
5
  */
5
6
  export interface StepItem extends ElStepProps {
6
- /** 循环的 key */
7
- key?: string | number | symbol;
7
+ /** 循环的 key */
8
+ key?: string | number | symbol;
8
9
  }
10
+
9
11
  /**
10
12
  * 步骤条类型
11
13
  */
@@ -1,4 +1,4 @@
1
- import type { EleBasicSelectInstance, EleProTableInstance } from '../ele-app/types';
1
+ import type { EleBasicSelectInstance, EleProTableInstance } from '../ele-app/plus';
2
2
  import type { SingleValue, SelectValue, SelectedItem } from '../ele-basic-select/types';
3
3
  import type { DoneParams } from '../ele-pro-table/types';
4
4
  import type { DataKey, DataItem, Column } from '../ele-data-table/types';
@@ -23,15 +23,15 @@ declare const _default: import("vue").DefineComponent<{
23
23
  initValue: import("vue").PropType<DataItem | DataItem[]>;
24
24
  cacheData: import("vue").PropType<DataItem[]>;
25
25
  tableProps: {
26
- type: import("vue").PropType<import("../ele-app/types").EleProTableProps>;
26
+ type: import("vue").PropType<import("../ele-app/plus").EleProTableProps>;
27
27
  required: boolean;
28
28
  };
29
29
  maxTagCount: NumberConstructor;
30
- maxTagTextLength: NumberConstructor;
30
+ maxTagTextLength: NumberConstructor; /** 下拉框是否显示 */
31
31
  tagType: {
32
32
  type: import("vue").PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, "" | "success" | "warning" | "info" | "danger", unknown> | undefined>;
33
- default: string; /** 选中的标签 */
34
- }; /** 选中的标签 */
33
+ default: string;
34
+ };
35
35
  automaticDropdown: BooleanConstructor;
36
36
  filterable: BooleanConstructor;
37
37
  teleported: {
@@ -40,7 +40,7 @@ declare const _default: import("vue").DefineComponent<{
40
40
  };
41
41
  persistent: {
42
42
  type: BooleanConstructor;
43
- default: boolean;
43
+ default: boolean; /** 表格单选选中值 */
44
44
  };
45
45
  placement: {
46
46
  type: import("vue").PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, import("element-plus").Placement, unknown> | undefined>;
@@ -93,7 +93,7 @@ declare const _default: import("vue").DefineComponent<{
93
93
  removeTag: (_value: SingleValue) => boolean;
94
94
  clear: () => boolean;
95
95
  focus: (_e: FocusEvent) => boolean;
96
- blur: (_e: FocusEvent) => boolean; /** 从缓存数据中获取值对应的数据 */
96
+ blur: (_e: FocusEvent) => boolean;
97
97
  select: (_item: DataItem | DataItem[]) => boolean;
98
98
  filterChange: (_value: string) => boolean;
99
99
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -117,15 +117,15 @@ declare const _default: import("vue").DefineComponent<{
117
117
  initValue: import("vue").PropType<DataItem | DataItem[]>;
118
118
  cacheData: import("vue").PropType<DataItem[]>;
119
119
  tableProps: {
120
- type: import("vue").PropType<import("../ele-app/types").EleProTableProps>;
120
+ type: import("vue").PropType<import("../ele-app/plus").EleProTableProps>;
121
121
  required: boolean;
122
122
  };
123
123
  maxTagCount: NumberConstructor;
124
- maxTagTextLength: NumberConstructor;
124
+ maxTagTextLength: NumberConstructor; /** 下拉框是否显示 */
125
125
  tagType: {
126
126
  type: import("vue").PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, "" | "success" | "warning" | "info" | "danger", unknown> | undefined>;
127
- default: string; /** 选中的标签 */
128
- }; /** 选中的标签 */
127
+ default: string;
128
+ };
129
129
  automaticDropdown: BooleanConstructor;
130
130
  filterable: BooleanConstructor;
131
131
  teleported: {
@@ -134,7 +134,7 @@ declare const _default: import("vue").DefineComponent<{
134
134
  };
135
135
  persistent: {
136
136
  type: BooleanConstructor;
137
- default: boolean;
137
+ default: boolean; /** 表格单选选中值 */
138
138
  };
139
139
  placement: {
140
140
  type: import("vue").PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, import("element-plus").Placement, unknown> | undefined>;
@@ -1,5 +1,5 @@
1
1
  import type { PropType, ExtractPropTypes } from 'vue';
2
- import type { EleProTableProps } from '../ele-app/types';
2
+ import type { EleProTableProps } from '../ele-app/plus';
3
3
  import type { DataItem } from '../ele-data-table/types';
4
4
  import type { SelectValue, SingleValue } from '../ele-basic-select/types';
5
5
  /**
@@ -1,6 +1,6 @@
1
1
  import type { PropType } from 'vue';
2
2
  import type { DropdownItem } from '../../ele-dropdown/types';
3
- import type { EleDropdownProps, EleDropdownInstance } from '../../ele-app/types';
3
+ import type { EleDropdownProps, EleDropdownInstance } from '../../ele-app/plus';
4
4
  import type { TabPaneItem, TabEventOption } from '../types';
5
5
  declare const _default: import("vue").DefineComponent<{
6
6
  /** 当前选中页签 */
@@ -1,7 +1,8 @@
1
1
  import type { Ref } from 'vue';
2
2
  import type { TabPaneName, TabsPaneContext } from 'element-plus';
3
3
  import { omit } from '../utils/core';
4
- import type { ElTabsProps, ElTabsInstance, EleDropdownInstance } from '../ele-app/types';
4
+ import type { ElTabsProps, ElTabsInstance } from '../ele-app/el';
5
+ import type { EleDropdownInstance } from '../ele-app/plus';
5
6
  import type { DropdownItem } from '../ele-dropdown/types';
6
7
  import type { TabPaneItem, TabEventOption } from './types';
7
8
  import type { TabTitleInstance } from './props';
@@ -13,7 +14,7 @@ declare const _default: import("vue").DefineComponent<{
13
14
  size: import("vue").PropType<import("./types").TabSize>;
14
15
  type: import("vue").PropType<import("./types").TabType>;
15
16
  center: BooleanConstructor;
16
- contextMenu: import("vue").PropType<boolean | import("../ele-app/types").EleDropdownProps>;
17
+ contextMenu: import("vue").PropType<boolean | import("../ele-app/plus").EleDropdownProps>;
17
18
  contextMenus: import("vue").PropType<import("./types").ContextMenus>;
18
19
  sortable: BooleanConstructor;
19
20
  mousewheel: BooleanConstructor;
@@ -29,8 +30,8 @@ declare const _default: import("vue").DefineComponent<{
29
30
  modelValue: {
30
31
  readonly type: import("vue").PropType<import("element-plus/es/utils/index").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
31
32
  readonly required: false;
32
- readonly validator: ((val: unknown) => boolean) | undefined; /** 当前数据 */
33
- __epPropKey: true;
33
+ readonly validator: ((val: unknown) => boolean) | undefined;
34
+ __epPropKey: true; /** 当前数据 */
34
35
  };
35
36
  editable: BooleanConstructor;
36
37
  tabPosition: import("element-plus/es/utils/index").EpPropFinalized<StringConstructor, "top" | "bottom" | "right" | "left", unknown, "top", boolean>;
@@ -97,7 +98,7 @@ declare const _default: import("vue").DefineComponent<{
97
98
  size: import("vue").PropType<import("./types").TabSize>;
98
99
  type: import("vue").PropType<import("./types").TabType>;
99
100
  center: BooleanConstructor;
100
- contextMenu: import("vue").PropType<boolean | import("../ele-app/types").EleDropdownProps>;
101
+ contextMenu: import("vue").PropType<boolean | import("../ele-app/plus").EleDropdownProps>;
101
102
  contextMenus: import("vue").PropType<import("./types").ContextMenus>;
102
103
  sortable: BooleanConstructor;
103
104
  mousewheel: BooleanConstructor;
@@ -113,8 +114,8 @@ declare const _default: import("vue").DefineComponent<{
113
114
  modelValue: {
114
115
  readonly type: import("vue").PropType<import("element-plus/es/utils/index").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
115
116
  readonly required: false;
116
- readonly validator: ((val: unknown) => boolean) | undefined; /** 当前数据 */
117
- __epPropKey: true;
117
+ readonly validator: ((val: unknown) => boolean) | undefined;
118
+ __epPropKey: true; /** 当前数据 */
118
119
  };
119
120
  editable: BooleanConstructor;
120
121
  tabPosition: import("element-plus/es/utils/index").EpPropFinalized<StringConstructor, "top" | "bottom" | "right" | "left", unknown, "top", boolean>;
@@ -1,6 +1,6 @@
1
1
  import type { PropType, ExtractPropTypes } from 'vue';
2
2
  import { tabsProps as elTabsProps } from 'element-plus';
3
- import type { EleDropdownProps, EleDropdownInstance } from '../ele-app/types';
3
+ import type { EleDropdownProps, EleDropdownInstance } from '../ele-app/plus';
4
4
  import type TabTitle from "./components/tab-title";
5
5
  import type { TabPaneItem, TabSize, TabType, TabEventOption, ContextMenus } from './types';
6
6
  /**
@@ -32,6 +32,7 @@ export declare const tabsProps: {
32
32
  readonly type: PropType<import("element-plus/es/utils/index").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
33
33
  readonly required: false;
34
34
  readonly validator: ((val: unknown) => boolean) | undefined;
35
+ /** 是否支持右键菜单 */
35
36
  __epPropKey: true;
36
37
  };
37
38
  closable: BooleanConstructor;
@@ -0,0 +1,64 @@
1
+ import type SortableJs from 'sortablejs';
2
+ import type { ElTabPaneProps } from '../ele-app/el';
3
+ import type { DropdownItem } from '../ele-dropdown/types';
4
+
5
+ /**
6
+ * 页签数据
7
+ */
8
+ export interface TabPaneItem extends ElTabPaneProps {
9
+ /** 插槽名称 */
10
+ slot?: string;
11
+ /** 元数据 */
12
+ meta?: any;
13
+ }
14
+
15
+ /**
16
+ * 尺寸
17
+ */
18
+ export type TabSize = 'large' | 'default' | 'small';
19
+
20
+ /**
21
+ * 风格类型
22
+ */
23
+ export type TabType =
24
+ | 'default'
25
+ | 'card'
26
+ | 'border-card'
27
+ | 'plain'
28
+ | 'simple'
29
+ | 'indicator'
30
+ | 'button';
31
+
32
+ /**
33
+ * 页签事件参数
34
+ */
35
+ export interface TabEventOption {
36
+ /** 页签标识 */
37
+ name?: string | number;
38
+ /** 页签数据 */
39
+ item?: TabPaneItem;
40
+ /** 当前选中的页签标识 */
41
+ active?: string | number;
42
+ /** 事件标识 */
43
+ command?: string;
44
+ }
45
+
46
+ /**
47
+ * 获取右键菜单方法
48
+ */
49
+ export type ContextMenusFunc = (item?: TabPaneItem) => DropdownItem[];
50
+
51
+ /**
52
+ * 右键菜单属性
53
+ */
54
+ export type ContextMenus = DropdownItem[] | ContextMenusFunc;
55
+
56
+ /**
57
+ * 页签实例数据
58
+ */
59
+ export interface TabCurrent {
60
+ /** 拖拽排序实例 */
61
+ sortIns?: SortableJs | null;
62
+ /** 鼠标滚轮事件节流 */
63
+ isScroll?: boolean;
64
+ }
@@ -10,7 +10,7 @@ declare const _default: import("vue").DefineComponent<{
10
10
  strong: BooleanConstructor;
11
11
  italic: BooleanConstructor;
12
12
  icon: import("vue").PropType<import("./types").TextIcon>;
13
- iconProps: import("vue").PropType<import("../ele-app/types").ElIconProps>;
13
+ iconProps: import("vue").PropType<import("../ele-app/el").ElIconProps>;
14
14
  iconStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
15
15
  }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
16
16
  tag: {
@@ -24,13 +24,13 @@ declare const _default: import("vue").DefineComponent<{
24
24
  strong: BooleanConstructor;
25
25
  italic: BooleanConstructor;
26
26
  icon: import("vue").PropType<import("./types").TextIcon>;
27
- iconProps: import("vue").PropType<import("../ele-app/types").ElIconProps>;
27
+ iconProps: import("vue").PropType<import("../ele-app/el").ElIconProps>;
28
28
  iconStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
29
29
  }>>, {
30
30
  tag: string;
31
31
  underline: boolean;
32
- italic: boolean;
33
- strong: boolean;
34
32
  deleted: boolean;
33
+ strong: boolean;
34
+ italic: boolean;
35
35
  }, {}>;
36
36
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import type { PropType, ExtractPropTypes } from 'vue';
2
- import type { ElIconProps } from '../ele-app/types';
2
+ import type { ElIconProps } from '../ele-app/el';
3
3
  import type { TextType, TextSize, TextIcon } from './types';
4
4
  /**
5
5
  * 属性