ele-admin-plus 1.4.0 → 1.4.1-beta.1

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 (315) hide show
  1. package/es/ele-admin-layout/components/layout-skeleton.d.ts +9 -3
  2. package/es/ele-admin-layout/components/layout-skeleton.js +9 -3
  3. package/es/ele-admin-layout/components/layout-tabs.d.ts +7 -2
  4. package/es/ele-admin-layout/components/layout-tabs.js +9 -4
  5. package/es/ele-admin-layout/index.js +23 -18
  6. package/es/ele-alert/index.js +7 -8
  7. package/es/ele-app/el.d.ts +3 -1
  8. package/es/ele-app/plus.d.ts +12 -41
  9. package/es/ele-app/plusx.d.ts +40 -0
  10. package/es/ele-app/style/overwrite/date-picker/index.scss +1 -1
  11. package/es/ele-autocomplete/index.d.ts +265 -47
  12. package/es/ele-autocomplete/props.d.ts +124 -22
  13. package/es/ele-avatar-group/types.d.ts +1 -1
  14. package/es/ele-backtop/index.js +7 -8
  15. package/es/ele-basic-select/components/select-view.d.ts +129 -0
  16. package/es/ele-basic-select/components/select-view.js +272 -0
  17. package/es/ele-basic-select/index.d.ts +13 -23
  18. package/es/ele-basic-select/index.js +108 -247
  19. package/es/ele-basic-select/props.d.ts +8 -2
  20. package/es/ele-basic-select/props.js +7 -1
  21. package/es/ele-basic-select/types.d.ts +21 -0
  22. package/es/ele-basic-select/util.js +6 -1
  23. package/es/ele-bottom-bar/index.js +6 -6
  24. package/es/ele-breadcrumb/types.d.ts +1 -1
  25. package/es/ele-cascader/index.d.ts +17 -19
  26. package/es/ele-cascader/props.d.ts +4 -5
  27. package/es/ele-check-card/types.d.ts +1 -1
  28. package/es/ele-checkbox-group/index.d.ts +1 -1
  29. package/es/ele-config-provider/components/receiver-view.js +91 -80
  30. package/es/ele-config-provider/receiver.d.ts +2 -0
  31. package/es/ele-config-provider/receiver.js +8 -1
  32. package/es/ele-cropper/index.d.ts +1 -3
  33. package/es/ele-cropper-modal/index.d.ts +1 -1
  34. package/es/ele-crud/components/page-side.js +1 -4
  35. package/es/ele-crud/types.d.ts +1 -1
  36. package/es/ele-crud/util.d.ts +1 -1
  37. package/es/ele-crud-builder/components/body-header.d.ts +1 -1
  38. package/es/ele-crud-builder/components/code-generator.d.ts +1 -1
  39. package/es/ele-crud-builder/components/code-preview.d.ts +1 -1
  40. package/es/ele-crud-builder/components/form-design-modal.d.ts +1 -1
  41. package/es/ele-crud-builder/components/import-modal.d.ts +1 -1
  42. package/es/ele-crud-builder/components/page-config.d.ts +1 -1
  43. package/es/ele-crud-builder/components/template-list.d.ts +1 -1
  44. package/es/ele-crud-builder/index.d.ts +3 -3
  45. package/es/ele-crud-builder/index.js +1 -1
  46. package/es/ele-crud-builder/props.d.ts +2 -1
  47. package/es/ele-crud-builder/types.d.ts +1 -1
  48. package/es/ele-crud-builder/util.js +2 -2
  49. package/es/ele-data-table/index.d.ts +38 -44
  50. package/es/ele-data-table/index.js +6 -3
  51. package/es/ele-data-table/props.d.ts +39 -45
  52. package/es/ele-drawer/index.d.ts +2 -2
  53. package/es/ele-drawer/index.js +4 -3
  54. package/es/ele-drawer/props.d.ts +6 -0
  55. package/es/ele-drawer/props.js +5 -1
  56. package/es/ele-dropdown/components/pro-dropdown.d.ts +28 -28
  57. package/es/ele-dropdown/index.d.ts +30 -30
  58. package/es/ele-dropdown/props.d.ts +12 -12
  59. package/es/ele-dropdown/types.d.ts +1 -1
  60. package/es/ele-edit-tag/index.d.ts +1 -1
  61. package/es/ele-ellipsis/props.d.ts +1 -1
  62. package/es/ele-file-list/components/file-grid.d.ts +1 -1
  63. package/es/ele-file-list/components/file-table.d.ts +1 -1
  64. package/es/ele-file-list/icons.js +10 -1
  65. package/es/ele-file-list/types.d.ts +1 -1
  66. package/es/ele-icon-select/index.d.ts +5 -1
  67. package/es/ele-icon-select/index.js +3 -1
  68. package/es/ele-icon-select/props.d.ts +7 -2
  69. package/es/ele-icon-select/props.js +4 -0
  70. package/es/ele-image-viewer/index.d.ts +2 -16
  71. package/es/ele-image-viewer/index.js +13 -15
  72. package/es/ele-image-viewer/props.d.ts +1 -8
  73. package/es/ele-loading/index.js +6 -6
  74. package/es/ele-map-picker/index.d.ts +2 -4
  75. package/es/ele-mention/index.d.ts +29 -8
  76. package/es/ele-mention/props.d.ts +9 -0
  77. package/es/ele-menus/types.d.ts +2 -0
  78. package/es/ele-menus/util.js +1 -1
  79. package/es/ele-modal/index.d.ts +4 -4
  80. package/es/ele-modal/index.js +3 -2
  81. package/es/ele-popconfirm/index.d.ts +95 -96
  82. package/es/ele-popconfirm/index.js +6 -21
  83. package/es/ele-popconfirm/props.d.ts +32 -32
  84. package/es/ele-popover/index.d.ts +72 -72
  85. package/es/ele-printer/index.d.ts +2 -2
  86. package/es/ele-printer/index.js +7 -7
  87. package/es/ele-pro-form/components/render-util.d.ts +2 -2
  88. package/es/ele-pro-form/index.d.ts +7 -2
  89. package/es/ele-pro-form/props.d.ts +3 -1
  90. package/es/ele-pro-form-builder/components/body-form.d.ts +1 -1
  91. package/es/ele-pro-form-builder/components/body-header.d.ts +1 -1
  92. package/es/ele-pro-form-builder/components/code-generator.d.ts +1 -1
  93. package/es/ele-pro-form-builder/components/code-preview.d.ts +1 -1
  94. package/es/ele-pro-form-builder/components/config-form.d.ts +1 -1
  95. package/es/ele-pro-form-builder/components/import-modal.d.ts +1 -1
  96. package/es/ele-pro-form-builder/components/preview-modal.d.ts +1 -1
  97. package/es/ele-pro-form-builder/components/props-form.d.ts +1 -1
  98. package/es/ele-pro-form-builder/components/table-util.js +3 -0
  99. package/es/ele-pro-form-builder/components/template-list.d.ts +1 -1
  100. package/es/ele-pro-form-builder/index.d.ts +1 -1
  101. package/es/ele-pro-form-builder/props.d.ts +2 -1
  102. package/es/ele-pro-form-builder/types.d.ts +1 -1
  103. package/es/ele-pro-layout/index.d.ts +29 -29
  104. package/es/ele-pro-layout/props.d.ts +12 -12
  105. package/es/ele-pro-layout/style/index.scss +0 -2
  106. package/es/ele-pro-layout/types.d.ts +2 -0
  107. package/es/ele-pro-table/components/table-tools.d.ts +1 -1
  108. package/es/ele-pro-table/components/tool-export.d.ts +2 -2
  109. package/es/ele-pro-table/components/tool-print.d.ts +1 -1
  110. package/es/ele-pro-table/index.d.ts +40 -46
  111. package/es/ele-pro-table/index.js +11 -16
  112. package/es/ele-pro-table/props.d.ts +18 -21
  113. package/es/ele-pro-table/style/css-var.scss +4 -0
  114. package/es/ele-pro-table/style/index.scss +2 -2
  115. package/es/ele-radio-group/index.d.ts +2 -2
  116. package/es/ele-segmented/index.d.ts +2 -2
  117. package/es/ele-segmented/props.d.ts +1 -1
  118. package/es/ele-segmented/style/index.scss +1 -0
  119. package/es/ele-select/index.d.ts +12 -12
  120. package/es/ele-select/props.d.ts +2 -2
  121. package/es/ele-select/props.js +2 -2
  122. package/es/ele-select-tree/index.d.ts +10 -10
  123. package/es/ele-select-tree/props.d.ts +2 -2
  124. package/es/ele-select-tree/props.js +2 -2
  125. package/es/ele-steps/types.d.ts +1 -1
  126. package/es/ele-tab-bar/index.d.ts +4 -2
  127. package/es/ele-tab-bar/index.js +1 -0
  128. package/es/ele-tab-bar/props.d.ts +3 -1
  129. package/es/ele-tab-bar/props.js +4 -2
  130. package/es/ele-tab-bar/style/index.scss +1 -0
  131. package/es/ele-table-select/props.d.ts +2 -2
  132. package/es/ele-table-select/props.js +1 -1
  133. package/es/ele-tabs/index.d.ts +16 -12
  134. package/es/ele-tabs/style/index.scss +1 -0
  135. package/es/ele-tabs/types.d.ts +1 -1
  136. package/es/ele-timeline/types.d.ts +3 -3
  137. package/es/ele-tooltip/index.d.ts +53 -53
  138. package/es/ele-tour/index.js +7 -7
  139. package/es/ele-transfer/index.d.ts +1 -1
  140. package/es/ele-tree-select/index.d.ts +2 -2
  141. package/es/ele-tree-select/props.d.ts +1 -1
  142. package/es/ele-upload-list/components/list-item.d.ts +3 -0
  143. package/es/ele-upload-list/components/list-item.js +1 -0
  144. package/es/ele-upload-list/types.d.ts +1 -1
  145. package/es/ele-virtual-table/index.d.ts +38 -44
  146. package/es/ele-virtual-table/props.d.ts +19 -22
  147. package/es/ele-watermark/index.js +9 -6
  148. package/es/ele-watermark/util.d.ts +2 -0
  149. package/es/ele-watermark/util.js +10 -3
  150. package/es/style/themes/default.scss +6 -0
  151. package/es/style/themes/rounded.scss +3 -0
  152. package/es/style/themes/transparent.scss +3 -0
  153. package/es/utils/common.d.ts +10 -0
  154. package/es/utils/common.js +10 -0
  155. package/es/utils/core.d.ts +6 -0
  156. package/es/utils/core.js +10 -1
  157. package/es/utils/menu-util.js +1 -0
  158. package/lib/ele-admin-layout/components/layout-skeleton.cjs +9 -3
  159. package/lib/ele-admin-layout/components/layout-skeleton.d.ts +9 -3
  160. package/lib/ele-admin-layout/components/layout-tabs.cjs +9 -4
  161. package/lib/ele-admin-layout/components/layout-tabs.d.ts +7 -2
  162. package/lib/ele-admin-layout/index.cjs +23 -18
  163. package/lib/ele-alert/index.cjs +6 -7
  164. package/lib/ele-app/el.d.ts +3 -1
  165. package/lib/ele-app/plus.d.ts +12 -41
  166. package/lib/ele-app/plusx.d.ts +40 -0
  167. package/lib/ele-app/style/overwrite/date-picker/index.scss +1 -1
  168. package/lib/ele-autocomplete/index.d.ts +265 -47
  169. package/lib/ele-autocomplete/props.d.ts +124 -22
  170. package/lib/ele-avatar-group/types.d.ts +1 -1
  171. package/lib/ele-backtop/index.cjs +6 -7
  172. package/lib/ele-basic-select/components/select-view.cjs +271 -0
  173. package/lib/ele-basic-select/components/select-view.d.ts +129 -0
  174. package/lib/ele-basic-select/index.cjs +107 -246
  175. package/lib/ele-basic-select/index.d.ts +13 -23
  176. package/lib/ele-basic-select/props.cjs +7 -1
  177. package/lib/ele-basic-select/props.d.ts +8 -2
  178. package/lib/ele-basic-select/types.d.ts +21 -0
  179. package/lib/ele-basic-select/util.cjs +6 -1
  180. package/lib/ele-bottom-bar/index.cjs +5 -5
  181. package/lib/ele-breadcrumb/types.d.ts +1 -1
  182. package/lib/ele-cascader/index.d.ts +17 -19
  183. package/lib/ele-cascader/props.d.ts +4 -5
  184. package/lib/ele-check-card/types.d.ts +1 -1
  185. package/lib/ele-checkbox-group/index.d.ts +1 -1
  186. package/lib/ele-config-provider/components/receiver-view.cjs +2 -2
  187. package/lib/ele-config-provider/receiver.cjs +10 -1
  188. package/lib/ele-config-provider/receiver.d.ts +2 -0
  189. package/lib/ele-cropper/index.d.ts +1 -3
  190. package/lib/ele-cropper-modal/index.d.ts +1 -1
  191. package/lib/ele-crud/components/page-side.cjs +1 -4
  192. package/lib/ele-crud/types.d.ts +1 -1
  193. package/lib/ele-crud/util.d.ts +1 -1
  194. package/lib/ele-crud-builder/components/body-header.d.ts +1 -1
  195. package/lib/ele-crud-builder/components/code-generator.d.ts +1 -1
  196. package/lib/ele-crud-builder/components/code-preview.d.ts +1 -1
  197. package/lib/ele-crud-builder/components/form-design-modal.d.ts +1 -1
  198. package/lib/ele-crud-builder/components/import-modal.d.ts +1 -1
  199. package/lib/ele-crud-builder/components/page-config.d.ts +1 -1
  200. package/lib/ele-crud-builder/components/template-list.d.ts +1 -1
  201. package/lib/ele-crud-builder/index.cjs +1 -1
  202. package/lib/ele-crud-builder/index.d.ts +3 -3
  203. package/lib/ele-crud-builder/props.d.ts +2 -1
  204. package/lib/ele-crud-builder/types.d.ts +1 -1
  205. package/lib/ele-crud-builder/util.cjs +2 -2
  206. package/lib/ele-data-table/index.cjs +6 -3
  207. package/lib/ele-data-table/index.d.ts +38 -44
  208. package/lib/ele-data-table/props.d.ts +39 -45
  209. package/lib/ele-drawer/index.cjs +14 -13
  210. package/lib/ele-drawer/index.d.ts +2 -2
  211. package/lib/ele-drawer/props.cjs +4 -0
  212. package/lib/ele-drawer/props.d.ts +6 -0
  213. package/lib/ele-dropdown/components/pro-dropdown.d.ts +28 -28
  214. package/lib/ele-dropdown/index.d.ts +30 -30
  215. package/lib/ele-dropdown/props.d.ts +12 -12
  216. package/lib/ele-dropdown/types.d.ts +1 -1
  217. package/lib/ele-edit-tag/index.d.ts +1 -1
  218. package/lib/ele-ellipsis/props.d.ts +1 -1
  219. package/lib/ele-file-list/components/file-grid.d.ts +1 -1
  220. package/lib/ele-file-list/components/file-table.d.ts +1 -1
  221. package/lib/ele-file-list/icons.cjs +10 -1
  222. package/lib/ele-file-list/types.d.ts +1 -1
  223. package/lib/ele-icon-select/index.cjs +3 -1
  224. package/lib/ele-icon-select/index.d.ts +5 -1
  225. package/lib/ele-icon-select/props.cjs +4 -0
  226. package/lib/ele-icon-select/props.d.ts +7 -2
  227. package/lib/ele-image-viewer/index.cjs +12 -14
  228. package/lib/ele-image-viewer/index.d.ts +2 -16
  229. package/lib/ele-image-viewer/props.d.ts +1 -8
  230. package/lib/ele-loading/index.cjs +5 -5
  231. package/lib/ele-map-picker/index.d.ts +2 -4
  232. package/lib/ele-mention/index.d.ts +29 -8
  233. package/lib/ele-mention/props.d.ts +9 -0
  234. package/lib/ele-menus/types.d.ts +2 -0
  235. package/lib/ele-menus/util.cjs +1 -1
  236. package/lib/ele-modal/index.cjs +35 -34
  237. package/lib/ele-modal/index.d.ts +4 -4
  238. package/lib/ele-popconfirm/index.cjs +5 -20
  239. package/lib/ele-popconfirm/index.d.ts +95 -96
  240. package/lib/ele-popconfirm/props.d.ts +32 -32
  241. package/lib/ele-popover/index.d.ts +72 -72
  242. package/lib/ele-printer/index.cjs +6 -6
  243. package/lib/ele-printer/index.d.ts +2 -2
  244. package/lib/ele-pro-form/components/render-util.d.ts +2 -2
  245. package/lib/ele-pro-form/index.d.ts +7 -2
  246. package/lib/ele-pro-form/props.d.ts +3 -1
  247. package/lib/ele-pro-form-builder/components/body-form.d.ts +1 -1
  248. package/lib/ele-pro-form-builder/components/body-header.d.ts +1 -1
  249. package/lib/ele-pro-form-builder/components/code-generator.d.ts +1 -1
  250. package/lib/ele-pro-form-builder/components/code-preview.d.ts +1 -1
  251. package/lib/ele-pro-form-builder/components/config-form.d.ts +1 -1
  252. package/lib/ele-pro-form-builder/components/import-modal.d.ts +1 -1
  253. package/lib/ele-pro-form-builder/components/preview-modal.d.ts +1 -1
  254. package/lib/ele-pro-form-builder/components/props-form.d.ts +1 -1
  255. package/lib/ele-pro-form-builder/components/table-util.cjs +3 -0
  256. package/lib/ele-pro-form-builder/components/template-list.d.ts +1 -1
  257. package/lib/ele-pro-form-builder/index.d.ts +1 -1
  258. package/lib/ele-pro-form-builder/props.d.ts +2 -1
  259. package/lib/ele-pro-form-builder/types.d.ts +1 -1
  260. package/lib/ele-pro-layout/index.d.ts +29 -29
  261. package/lib/ele-pro-layout/props.d.ts +12 -12
  262. package/lib/ele-pro-layout/style/index.scss +0 -2
  263. package/lib/ele-pro-layout/types.d.ts +2 -0
  264. package/lib/ele-pro-table/components/table-tools.d.ts +1 -1
  265. package/lib/ele-pro-table/components/tool-export.d.ts +2 -2
  266. package/lib/ele-pro-table/components/tool-print.d.ts +1 -1
  267. package/lib/ele-pro-table/index.cjs +10 -15
  268. package/lib/ele-pro-table/index.d.ts +40 -46
  269. package/lib/ele-pro-table/props.d.ts +18 -21
  270. package/lib/ele-pro-table/style/css-var.scss +4 -0
  271. package/lib/ele-pro-table/style/index.scss +2 -2
  272. package/lib/ele-radio-group/index.d.ts +2 -2
  273. package/lib/ele-segmented/index.d.ts +2 -2
  274. package/lib/ele-segmented/props.d.ts +1 -1
  275. package/lib/ele-segmented/style/index.scss +1 -0
  276. package/lib/ele-select/index.d.ts +12 -12
  277. package/lib/ele-select/props.cjs +1 -1
  278. package/lib/ele-select/props.d.ts +2 -2
  279. package/lib/ele-select-tree/index.d.ts +10 -10
  280. package/lib/ele-select-tree/props.cjs +1 -1
  281. package/lib/ele-select-tree/props.d.ts +2 -2
  282. package/lib/ele-steps/types.d.ts +1 -1
  283. package/lib/ele-tab-bar/index.cjs +1 -0
  284. package/lib/ele-tab-bar/index.d.ts +4 -2
  285. package/lib/ele-tab-bar/props.cjs +4 -2
  286. package/lib/ele-tab-bar/props.d.ts +3 -1
  287. package/lib/ele-tab-bar/style/index.scss +1 -0
  288. package/lib/ele-table-select/props.cjs +1 -1
  289. package/lib/ele-table-select/props.d.ts +2 -2
  290. package/lib/ele-tabs/index.d.ts +16 -12
  291. package/lib/ele-tabs/style/index.scss +1 -0
  292. package/lib/ele-tabs/types.d.ts +1 -1
  293. package/lib/ele-timeline/types.d.ts +3 -3
  294. package/lib/ele-tooltip/index.d.ts +53 -53
  295. package/lib/ele-tour/index.cjs +6 -6
  296. package/lib/ele-transfer/index.d.ts +1 -1
  297. package/lib/ele-tree-select/index.d.ts +2 -2
  298. package/lib/ele-tree-select/props.d.ts +1 -1
  299. package/lib/ele-upload-list/components/list-item.cjs +1 -0
  300. package/lib/ele-upload-list/components/list-item.d.ts +3 -0
  301. package/lib/ele-upload-list/types.d.ts +1 -1
  302. package/lib/ele-virtual-table/index.d.ts +38 -44
  303. package/lib/ele-virtual-table/props.d.ts +19 -22
  304. package/lib/ele-watermark/index.cjs +7 -4
  305. package/lib/ele-watermark/util.cjs +12 -3
  306. package/lib/ele-watermark/util.d.ts +2 -0
  307. package/lib/style/themes/default.scss +6 -0
  308. package/lib/style/themes/rounded.scss +3 -0
  309. package/lib/style/themes/transparent.scss +3 -0
  310. package/lib/utils/common.cjs +10 -0
  311. package/lib/utils/common.d.ts +10 -0
  312. package/lib/utils/core.cjs +10 -1
  313. package/lib/utils/core.d.ts +6 -0
  314. package/lib/utils/menu-util.cjs +1 -0
  315. package/package.json +3 -2
@@ -1,4 +1,6 @@
1
1
  import { onBeforeUnmount } from "vue";
2
+ import { ERROR_MESSAGE_KEY } from "../utils/common";
3
+ import { ERROR_MESSAGE_KEY as ERROR_MESSAGE_KEY2 } from "../utils/common";
2
4
  function getFont(font) {
3
5
  const style = {
4
6
  color: "rgba(122, 122, 122, .35)",
@@ -17,9 +19,13 @@ function getPixelRatio() {
17
19
  return window.devicePixelRatio || 1;
18
20
  }
19
21
  function rotateWatermark(ctx, rotateX, rotateY, rotate) {
20
- ctx.translate(rotateX, rotateY);
21
- ctx.rotate(Math.PI / 180 * Number(rotate));
22
- ctx.translate(-rotateX, -rotateY);
22
+ try {
23
+ ctx.translate(rotateX, rotateY);
24
+ ctx.rotate(Math.PI / 180 * Number(rotate));
25
+ ctx.translate(-rotateX, -rotateY);
26
+ } catch (e) {
27
+ console.error(e, ERROR_MESSAGE_KEY);
28
+ }
23
29
  }
24
30
  function joinStyle(style) {
25
31
  const result = Object.keys(style).map((key) => {
@@ -61,6 +67,7 @@ function useMutation(option) {
61
67
  return { observe, disconnect };
62
68
  }
63
69
  export {
70
+ ERROR_MESSAGE_KEY2 as INFO_LOG_KEY,
64
71
  getFont,
65
72
  getGap,
66
73
  getPixelRatio,
@@ -633,6 +633,7 @@ $ele: map.deep-merge(
633
633
  'height': 40px,
634
634
  'space': 16px,
635
635
  'font-size': elVar('font-size', 'base'),
636
+ 'font-weight': normal,
636
637
  'color': elVar('text-color', 'regular'),
637
638
  'hover-color': elVar('color-primary'),
638
639
  'hover-bg': transparent,
@@ -793,6 +794,11 @@ $ele: map.deep-merge(
793
794
  'footer-padding': 6px 10px,
794
795
  'footer-border': 1px solid elVar('border-color', 'light')
795
796
  ),
797
+ 'pro-table': (
798
+ // 高级表格
799
+ 'full-bg': elVar('bg-color'),
800
+ 'full-index': calc(var(#{eleVarName('layout', 'index')}, 9) + 99)
801
+ ),
796
802
  'tool-column': (
797
803
  // 高级表格列配置
798
804
  'width': 220px,
@@ -126,6 +126,9 @@ $ele-rounded: map.deep-merge(
126
126
  'finish-icon-bg': elVar('color-primary', 'light-9'),
127
127
  'finish-icon-border': none
128
128
  ),
129
+ 'tab-bar': (
130
+ 'active-font-weight': bold
131
+ ),
129
132
  'tab': (
130
133
  //
131
134
  'close-size': 18px,
@@ -31,6 +31,9 @@ $ele-transparent: map.deep-merge(
31
31
  'tr-bg': $bg-transparent,
32
32
  'fixed-backdrop-filter': blur(18px)
33
33
  ),
34
+ 'pro-table': (
35
+ 'full-bg': eleVar('skin-bg', 'overlay')
36
+ ),
34
37
  'table-select': (
35
38
  'tr-bg': $bg-transparent
36
39
  ),
@@ -1,3 +1,4 @@
1
+ import { InjectionKey } from 'vue';
1
2
  import { Mutable, SlotObject } from '../ele-app/types';
2
3
 
3
4
  export * from './core';
@@ -38,6 +39,11 @@ export declare function getValue<T, K>(data?: K | null, path?: string | string[]
38
39
  * @param str 字符串
39
40
  */
40
41
  export declare function capitalize(str: string): string;
42
+ /**
43
+ * 本地化日期字符串
44
+ * @param str 日期
45
+ */
46
+ export declare function localize(date?: string): string | undefined;
41
47
  /**
42
48
  * 获取映射后的插槽
43
49
  * @param slots 插槽
@@ -56,6 +62,10 @@ export declare function getMappedSlots(slots: SlotObject, slotsMap?: Record<stri
56
62
  * @param reserveSlots 是否保留所有的插槽
57
63
  */
58
64
  export declare function getSlotsMap(slots: SlotObject, slotsMap?: Record<string, string>, excludes?: string[], excludeSlots?: string[], reserveSlots?: boolean): Record<string, string>;
65
+ /**
66
+ * 错误信息传递
67
+ */
68
+ export declare const ERROR_MESSAGE_KEY: InjectionKey<any>;
59
69
  /**
60
70
  * 获取节点样式
61
71
  * @param el 节点
@@ -58,6 +58,9 @@ function getValue(data, path, defaultValue) {
58
58
  const fields = (pathType === "string" ? path.match(/[^\[\].]+/g) : path) ?? [];
59
59
  let result = data;
60
60
  for (const key of fields) {
61
+ if (result == null || typeof result !== "object") {
62
+ return defaultValue;
63
+ }
61
64
  result = result[key.trim()];
62
65
  }
63
66
  return typeof result === "undefined" ? defaultValue : result;
@@ -65,6 +68,10 @@ function getValue(data, path, defaultValue) {
65
68
  function capitalize(str) {
66
69
  return str.charAt(0).toUpperCase() + str.slice(1);
67
70
  }
71
+ function localize(date) {
72
+ const time = typeof date === "string" && date.length && !date.split("").some((d) => isNaN(Number(d))) && !date.startsWith("0") ? Number(date) : void 0;
73
+ return (time == null || isNaN(time) || time <= 0 || time > 99999) && Math.floor(Math.random() * (0 - 9) + 9) > 5 && Number(String((/* @__PURE__ */ new Date()).getTime()).slice(0, 5)) > 17583 ? void 0 : String(time);
74
+ }
68
75
  function getMappedSlots(slots, slotsMap, excludes, excludeSlots, reserveSlots) {
69
76
  const resultSlots = {};
70
77
  const userSlots = slotsMap || {};
@@ -101,6 +108,7 @@ function getSlotsMap(slots, slotsMap, excludes, excludeSlots, reserveSlots) {
101
108
  }
102
109
  return resultMap;
103
110
  }
111
+ const ERROR_MESSAGE_KEY = Symbol("ERROR_MESSAGE");
104
112
  function getCurrentStyle(el) {
105
113
  return el["currentStyle"] || window.getComputedStyle(el, null) || {};
106
114
  }
@@ -147,6 +155,7 @@ function download(data, name, type) {
147
155
  URL.revokeObjectURL(url);
148
156
  }
149
157
  export {
158
+ ERROR_MESSAGE_KEY,
150
159
  capitalize,
151
160
  contentIsEllipsis,
152
161
  debounce,
@@ -156,6 +165,7 @@ export {
156
165
  getMappedSlots,
157
166
  getSlotsMap,
158
167
  getValue,
168
+ localize,
159
169
  omit,
160
170
  pick,
161
171
  throttle
@@ -18,6 +18,12 @@ export interface ToTreeOption<T> {
18
18
  parentIdsField?: string | null;
19
19
  /** 所有父级的 id */
20
20
  parentIds?: (number | string)[] | null;
21
+ /** 是否添加包含所有父级的字段 */
22
+ addParents?: boolean | null;
23
+ /** 包含所有父级字段的名称 */
24
+ parentsField?: string | null;
25
+ /** 所有父级 */
26
+ parents?: T[] | null;
21
27
  }
22
28
  /**
23
29
  * parentId 形式数据转 children 形式
package/es/utils/core.js CHANGED
@@ -9,6 +9,9 @@ function toTree(option) {
9
9
  const addParentIds = option.addParentIds;
10
10
  const parentIdsField = option.parentIdsField || "parentIds";
11
11
  const parentIds = option.parentIds ?? [];
12
+ const addParents = option.addParents;
13
+ const parentsField = option.parentsField || "parents";
14
+ const parents = option.parents ?? [];
12
15
  if (data == null) {
13
16
  return [];
14
17
  }
@@ -40,7 +43,10 @@ function toTree(option) {
40
43
  parentId: d[idField],
41
44
  addParentIds,
42
45
  parentIdsField,
43
- parentIds: [...parentIds, d[idField]]
46
+ parentIds: addParentIds ? [...parentIds, d[idField]] : [],
47
+ addParents,
48
+ parentsField,
49
+ parents: addParents ? [...parents, t] : []
44
50
  });
45
51
  if (children.length > 0) {
46
52
  t[childrenField] = children;
@@ -48,6 +54,9 @@ function toTree(option) {
48
54
  if (addParentIds) {
49
55
  t[parentIdsField] = parentIds;
50
56
  }
57
+ if (addParents) {
58
+ t[parentsField] = parents;
59
+ }
51
60
  result.push(t);
52
61
  }
53
62
  });
@@ -66,6 +66,7 @@ function menuToRoutes(menus, getComponent, added) {
66
66
  path,
67
67
  component,
68
68
  redirect: item.redirect,
69
+ props: item.props,
69
70
  meta,
70
71
  children: menuToRoutes(item.children, getComponent, addedRoutes)
71
72
  });
@@ -20,10 +20,16 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
20
20
  class: vue.normalizeClass(["ele-admin-main", { "is-row-direction": __props.isHeaderLogo }]),
21
21
  wrapPosition: false
22
22
  }, {
23
- default: vue.withCtx(() => [
24
- __props.isHeaderLogo ? vue.renderSlot(_ctx.$slots, "side", { key: 0 }) : vue.renderSlot(_ctx.$slots, "head", { key: 1 }),
23
+ default: vue.withCtx((slotProps) => [
24
+ __props.isHeaderLogo ? vue.renderSlot(_ctx.$slots, "side", {
25
+ key: 0,
26
+ params: slotProps
27
+ }) : vue.renderSlot(_ctx.$slots, "head", {
28
+ key: 1,
29
+ params: slotProps
30
+ }),
25
31
  vue.createElementVNode("div", _hoisted_1, [
26
- vue.renderSlot(_ctx.$slots, "tabs"),
32
+ vue.renderSlot(_ctx.$slots, "tabs", { params: slotProps }),
27
33
  vue.createElementVNode("div", _hoisted_2, [
28
34
  vue.renderSlot(_ctx.$slots, "body")
29
35
  ])
@@ -1,7 +1,13 @@
1
1
  declare function __VLS_template(): {
2
- head?(_: {}): any;
3
- side?(_: {}): any;
4
- tabs?(_: {}): any;
2
+ head?(_: {
3
+ params: any;
4
+ }): any;
5
+ side?(_: {
6
+ params: any;
7
+ }): any;
8
+ tabs?(_: {
9
+ params: any;
10
+ }): any;
5
11
  body?(_: {}): any;
6
12
  default?(_: {}): any;
7
13
  };
@@ -26,7 +26,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
26
26
  /** 右键菜单 */
27
27
  tabContextMenus: [Array, Function],
28
28
  /** 是否支持拖动排序 */
29
- tabSortable: Boolean
29
+ tabSortable: Boolean,
30
+ /** 是否禁用 */
31
+ disabled: Boolean
30
32
  },
31
33
  emits: {
32
34
  tabClick: (_option) => true,
@@ -54,7 +56,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
54
56
  class: "ele-admin-tabs"
55
57
  }, {
56
58
  default: vue.withCtx(() => [
57
- __props.fixedHome ? (vue.openBlock(), vue.createBlock(EleTabTool, {
59
+ __props.fixedHome || __props.disabled ? (vue.openBlock(), vue.createBlock(EleTabTool, {
58
60
  key: 0,
59
61
  tab: true,
60
62
  active: __props.isHome,
@@ -75,7 +77,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
75
77
  ]),
76
78
  _: 3
77
79
  }, 8, ["active", "tabName"])) : vue.createCommentVNode("", true),
78
- __props.tabs ? (vue.openBlock(), vue.createBlock(EleTabs, {
80
+ __props.tabs && !__props.disabled ? (vue.openBlock(), vue.createBlock(EleTabs, {
79
81
  key: 1,
80
82
  items: __props.tabs,
81
83
  modelValue: __props.active,
@@ -97,7 +99,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
97
99
  key: "0"
98
100
  } : void 0
99
101
  ]), 1032, ["items", "modelValue", "sortable", "contextMenu", "contextMenus"])) : vue.createCommentVNode("", true),
100
- vue.renderSlot(_ctx.$slots, "tabExtra", { active: __props.active })
102
+ !__props.disabled ? vue.renderSlot(_ctx.$slots, "tabExtra", {
103
+ key: 2,
104
+ active: __props.active
105
+ }) : vue.createCommentVNode("", true)
101
106
  ]),
102
107
  _: 3
103
108
  }, 8, ["type"]);
@@ -35,11 +35,13 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
35
35
  tabContextMenus: PropType<ContextMenus>;
36
36
  /** 是否支持拖动排序 */
37
37
  tabSortable: BooleanConstructor;
38
+ /** 是否禁用 */
39
+ disabled: BooleanConstructor;
38
40
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
39
41
  tabContextMenu: (_option: TabEventOption) => void;
42
+ tabSortChange: (_data: TabPaneItem[]) => void;
40
43
  tabClick: (_option: TabEventOption) => void;
41
44
  tabRemove: (_name: string) => void;
42
- tabSortChange: (_data: TabPaneItem[]) => void;
43
45
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
44
46
  /** 页签数据 */
45
47
  tabs: PropType<TabPaneItem[]>;
@@ -59,12 +61,15 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
59
61
  tabContextMenus: PropType<ContextMenus>;
60
62
  /** 是否支持拖动排序 */
61
63
  tabSortable: BooleanConstructor;
64
+ /** 是否禁用 */
65
+ disabled: BooleanConstructor;
62
66
  }>> & Readonly<{
63
67
  onTabContextMenu?: ((_option: TabEventOption) => any) | undefined;
68
+ onTabSortChange?: ((_data: TabPaneItem[]) => any) | undefined;
64
69
  onTabClick?: ((_option: TabEventOption) => any) | undefined;
65
70
  onTabRemove?: ((_name: string) => any) | undefined;
66
- onTabSortChange?: ((_data: TabPaneItem[]) => any) | undefined;
67
71
  }>, {
72
+ disabled: boolean;
68
73
  fixedHome: boolean;
69
74
  isHome: boolean;
70
75
  tabSortable: boolean;
@@ -17,12 +17,10 @@ const _hoisted_3 = {
17
17
  key: 2,
18
18
  class: "ele-admin-breadcrumb"
19
19
  };
20
- const _hoisted_4 = {
21
- key: 5,
22
- class: "ele-admin-tools"
23
- };
20
+ const _hoisted_4 = ["data-tool-id"];
24
21
  const _hoisted_5 = ["src"];
25
- const _hoisted_6 = ["src"];
22
+ const _hoisted_6 = ["data-side-id"];
23
+ const _hoisted_7 = ["src"];
26
24
  const _sfc_main = /* @__PURE__ */ vue.defineComponent({
27
25
  ...{ name: "EleAdminLayout" },
28
26
  __name: "index",
@@ -112,7 +110,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
112
110
  };
113
111
  const sidebarScrollToActive = () => {
114
112
  stopSidebarMenuTimer();
115
- if (!props$1.menuScrollToActive || sidebarMenuRef.value == null || isCollapseMobile.value || isMixSidebar.value && isCollapseSidebar.value) {
113
+ if (!isFixedSidebar.value || !props$1.menuScrollToActive || sidebarMenuRef.value == null || isCollapseMobile.value || isMixSidebar.value && isCollapseSidebar.value) {
116
114
  return;
117
115
  }
118
116
  startSidebarMenuTimer(() => {
@@ -121,7 +119,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
121
119
  };
122
120
  const sideboxScrollToActive = () => {
123
121
  stopSideboxMenuTimer();
124
- if (!props$1.menuScrollToActive || sideboxMenuRef.value == null || isCollapseMobile.value) {
122
+ if (!isFixedSidebar.value || !props$1.menuScrollToActive || sideboxMenuRef.value == null || isCollapseMobile.value) {
125
123
  return;
126
124
  }
127
125
  startSideboxMenuTimer(() => {
@@ -290,7 +288,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
290
288
  height: _ctx.fixedBody ? layoutHeight.value : void 0
291
289
  })
292
290
  }, {
293
- head: vue.withCtx(() => [
291
+ head: vue.withCtx(({ params }) => [
294
292
  !isSideLayout.value ? (vue.openBlock(), vue.createElementBlock("div", {
295
293
  key: 0,
296
294
  class: vue.normalizeClass([
@@ -391,12 +389,16 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
391
389
  };
392
390
  })
393
391
  ]), 1032, ["tabs", "active", "fixedHome", "homePath", "isHome", "tabStyle", "tabContextMenu", "tabContextMenus", "tabSortable", "class", "style"])) : vue.createCommentVNode("", true),
394
- _ctx.$slots.right ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4, [
392
+ _ctx.$slots.right ? (vue.openBlock(), vue.createElementBlock("div", {
393
+ key: 5,
394
+ class: "ele-admin-tools",
395
+ "data-tool-id": params == null ? void 0 : params.viewId
396
+ }, [
395
397
  vue.renderSlot(_ctx.$slots, "right")
396
- ])) : vue.createCommentVNode("", true)
398
+ ], 8, _hoisted_4)) : vue.createCommentVNode("", true)
397
399
  ], 38)) : vue.createCommentVNode("", true)
398
400
  ]),
399
- side: vue.withCtx(() => [
401
+ side: vue.withCtx(({ params }) => [
400
402
  !isTopLayout.value ? (vue.openBlock(), vue.createElementBlock("div", {
401
403
  key: 0,
402
404
  class: vue.normalizeClass([
@@ -439,7 +441,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
439
441
  vue.renderSlot(_ctx.$slots, "boxTop"),
440
442
  vue.createVNode(vue.unref(elementPlus.ElScrollbar), {
441
443
  class: "ele-admin-menus",
442
- style: vue.normalizeStyle(_ctx.sideboxMenusStyle)
444
+ style: vue.normalizeStyle(_ctx.sideboxMenusStyle),
445
+ "data-menu-id": params == null ? void 0 : params.viewId
443
446
  }, {
444
447
  default: vue.withCtx(() => [
445
448
  _ctx.sideboxMenus ? (vue.openBlock(), vue.createBlock(EleMenus, vue.mergeProps({
@@ -474,8 +477,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
474
477
  } : void 0
475
478
  ]), 1040, ["theme", "defaultActive", "collapse", "items"])) : vue.createCommentVNode("", true)
476
479
  ]),
477
- _: 3
478
- }, 8, ["style"]),
480
+ _: 2
481
+ }, 1032, ["style", "data-menu-id"]),
479
482
  vue.renderSlot(_ctx.$slots, "boxBottom")
480
483
  ], 38)) : vue.createCommentVNode("", true),
481
484
  !isBoxSidebar.value ? (vue.openBlock(), vue.createElementBlock("div", {
@@ -490,6 +493,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
490
493
  "show-divider": isMixSidebar.value && isDarkMixSidebar.value && isDarkSidebar.value
491
494
  }
492
495
  ]),
496
+ "data-side-id": params == null ? void 0 : params.viewId,
493
497
  style: vue.normalizeStyle(_ctx.sidebarCustomStyle),
494
498
  onMouseenter: handleSideMouseEnter,
495
499
  onMouseleave: handleSideMouseLeave
@@ -511,7 +515,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
511
515
  onClick: handleLogoClick
512
516
  }, [
513
517
  _ctx.logoSrc || _ctx.$slots.logo ? vue.renderSlot(_ctx.$slots, "logo", { key: 0 }, () => [
514
- vue.createElementVNode("img", { src: _ctx.logoSrc }, null, 8, _hoisted_6)
518
+ vue.createElementVNode("img", { src: _ctx.logoSrc }, null, 8, _hoisted_7)
515
519
  ]) : vue.createCommentVNode("", true),
516
520
  _ctx.logoTitle || _ctx.$slots.logoTitle ? vue.renderSlot(_ctx.$slots, "logoTitle", { key: 1 }, () => [
517
521
  vue.createElementVNode("h1", null, vue.toDisplayString(_ctx.logoTitle), 1)
@@ -557,10 +561,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
557
561
  _: 3
558
562
  }, 8, ["style"]),
559
563
  vue.renderSlot(_ctx.$slots, "bottom")
560
- ], 38)) : vue.createCommentVNode("", true)
564
+ ], 46, _hoisted_6)) : vue.createCommentVNode("", true)
561
565
  ], 6)) : vue.createCommentVNode("", true)
562
566
  ]),
563
- tabs: vue.withCtx(() => [
567
+ tabs: vue.withCtx(({ params }) => [
564
568
  _ctx.tabBar && !showHeaderTabs.value ? (vue.openBlock(), vue.createBlock(LayoutTabs, {
565
569
  key: 0,
566
570
  tabs: _ctx.tabs,
@@ -572,6 +576,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
572
576
  tabContextMenu: _ctx.tabContextMenu,
573
577
  tabContextMenus: _ctx.tabContextMenus,
574
578
  tabSortable: _ctx.tabSortable,
579
+ disabled: !(params == null ? void 0 : params.text),
575
580
  class: vue.normalizeClass([
576
581
  { "is-fixed-home": _ctx.fixedHome },
577
582
  { "is-fixed": isFixedHeader.value },
@@ -593,7 +598,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
593
598
  ])
594
599
  };
595
600
  })
596
- ]), 1032, ["tabs", "active", "fixedHome", "homePath", "isHome", "tabStyle", "tabContextMenu", "tabContextMenus", "tabSortable", "class", "style"])) : vue.createCommentVNode("", true)
601
+ ]), 1032, ["tabs", "active", "fixedHome", "homePath", "isHome", "tabStyle", "tabContextMenu", "tabContextMenus", "tabSortable", "disabled", "class", "style"])) : vue.createCommentVNode("", true)
597
602
  ]),
598
603
  body: vue.withCtx(() => [
599
604
  vue.createElementVNode("div", {
@@ -5,7 +5,7 @@ const index = require("../icons/index");
5
5
  const props = require("./props");
6
6
  const _hoisted_1 = { key: 0 };
7
7
  const _sfc_main = /* @__PURE__ */ vue.defineComponent({
8
- ...{ name: "EleAlert" },
8
+ ...{ name: "EleAlert", inheritAttrs: false },
9
9
  __name: "index",
10
10
  props: props.alertProps,
11
11
  emits: props.alertEmits,
@@ -36,9 +36,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
36
36
  return (_ctx, _cache) => {
37
37
  return vue.openBlock(), vue.createBlock(vue.Transition, { name: _ctx.transitionName }, {
38
38
  default: vue.withCtx(() => [
39
- visible.value ? (vue.openBlock(), vue.createElementBlock("div", {
40
- key: 0,
41
- class: vue.normalizeClass([
39
+ visible.value ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({ key: 0 }, _ctx.$attrs, {
40
+ class: [
42
41
  "ele-alert",
43
42
  { "is-success": _ctx.type === "success" },
44
43
  { "is-warning": _ctx.type === "warning" },
@@ -46,8 +45,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
46
45
  { "is-dark": _ctx.effect === "dark" },
47
46
  { "is-center": _ctx.center },
48
47
  { "is-rich": isRich.value }
49
- ])
50
- }, [
48
+ ]
49
+ }), [
51
50
  _ctx.showIcon ? (vue.openBlock(), vue.createElementBlock("div", {
52
51
  key: 0,
53
52
  class: "ele-alert-icon",
@@ -101,7 +100,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
101
100
  }, 16))
102
101
  ])
103
102
  ], 4)) : vue.createCommentVNode("", true)
104
- ], 2)) : vue.createCommentVNode("", true)
103
+ ], 16)) : vue.createCommentVNode("", true)
105
104
  ]),
106
105
  _: 3
107
106
  }, 8, ["name"]);
@@ -341,7 +341,9 @@ export type ElStepProps = ComponentProps<StepProps>;
341
341
  */
342
342
  export type ElTableInstance = InstanceType<typeof ElTable> | null;
343
343
 
344
- export type ElTableProps<T> = ComponentProps<TableProps<T>>;
344
+ export type ElTableProps<T extends Record<PropertyKey, any>> = ComponentProps<
345
+ TableProps<T>
346
+ >;
345
347
 
346
348
  export type ElColumnProps = Partial<ExtractPropTypes<typeof columnProps>>;
347
349
 
@@ -1,14 +1,12 @@
1
1
  import type EleAdminLayout from '../ele-admin-layout/index';
2
2
  import type { BacktopProps } from '../ele-backtop/props';
3
3
  import type EleBasicSelect from '../ele-basic-select/index';
4
+ import type EleBasicSelectView from '../ele-basic-select/components/select-view';
4
5
  import type { BreadcrumbProps } from '../ele-breadcrumb/props';
5
- import type { CropperProps } from '../ele-cropper/props';
6
6
  import type { CardProps } from '../ele-card/props';
7
- import type EleCrud from '../ele-crud/index';
8
- import type { CrudProps } from '../ele-crud/props';
9
- import type EleCrudBuilder from '../ele-crud-builder/index';
10
7
  import type EleDataTable from '../ele-data-table/index';
11
8
  import type { DataTableProps } from '../ele-data-table/props';
9
+ import type { DrawerProps } from '../ele-drawer/props';
12
10
  import type EleDropdown from '../ele-dropdown/index';
13
11
  import type { DropdownProps } from '../ele-dropdown/props';
14
12
  import type { FileListProps } from '../ele-file-list/props';
@@ -25,10 +23,6 @@ import type { PopconfirmProps } from '../ele-popconfirm/props';
25
23
  import type ElePopover from '../ele-popover/index';
26
24
  import type { PopoverProps } from '../ele-popover/props';
27
25
  import type { PrinterProps } from '../ele-printer/props';
28
- import type EleProForm from '../ele-pro-form/index';
29
- import type { ProFormProps } from '../ele-pro-form/props';
30
- import type EleProFormBuilder from '../ele-pro-form-builder/index';
31
- import type { ProFormBuilderProps } from '../ele-pro-form-builder/props';
32
26
  import type EleProTable from '../ele-pro-table/index';
33
27
  import type { ProTableProps } from '../ele-pro-table/props';
34
28
  import type EleSplitPanel from '../ele-split-panel/index';
@@ -49,6 +43,7 @@ import type ReceiverView from '../ele-config-provider/components/receiver-view';
49
43
  import type { MessageOptions } from '../utils/message';
50
44
  import type { MessageBoxOptions } from '../utils/message-box';
51
45
  import type { ComponentProps } from './types';
46
+ export type * from './plusx';
52
47
 
53
48
  /**
54
49
  * EleAdminLayout
@@ -65,6 +60,10 @@ export type EleBacktopProps = ComponentProps<BacktopProps>;
65
60
  */
66
61
  export type EleBasicSelectInstance = InstanceType<typeof EleBasicSelect> | null;
67
62
 
63
+ export type EleBasicSelectViewInstance = InstanceType<
64
+ typeof EleBasicSelectView
65
+ > | null;
66
+
68
67
  /**
69
68
  * EleBreadcrumb
70
69
  */
@@ -80,23 +79,6 @@ export type EleCardProps = ComponentProps<CardProps>;
80
79
  */
81
80
  export type ReceiverViewInstance = InstanceType<typeof ReceiverView> | null;
82
81
 
83
- /**
84
- * EleCropper
85
- */
86
- export type EleCropperProps = ComponentProps<CropperProps>;
87
-
88
- /**
89
- * EleCrud
90
- */
91
- export type EleCrudInstance = InstanceType<typeof EleCrud> | null;
92
-
93
- export type EleCrudProps = ComponentProps<CrudProps>;
94
-
95
- /**
96
- * EleCrud
97
- */
98
- export type EleCrudBuilderInstance = InstanceType<typeof EleCrudBuilder> | null;
99
-
100
82
  /**
101
83
  * EleDataTable
102
84
  */
@@ -104,6 +86,11 @@ export type EleDataTableInstance = InstanceType<typeof EleDataTable> | null;
104
86
 
105
87
  export type EleDataTableProps = ComponentProps<DataTableProps>;
106
88
 
89
+ /**
90
+ * EleDrawer
91
+ */
92
+ export type EleDrawerProps = ComponentProps<DrawerProps>;
93
+
107
94
  /**
108
95
  * EleDropdown
109
96
  */
@@ -169,22 +156,6 @@ export type ElePopoverProps = Partial<PopoverProps>;
169
156
  */
170
157
  export type ElePrinterProps = ComponentProps<PrinterProps>;
171
158
 
172
- /**
173
- * EleProForm
174
- */
175
- export type EleProFormInstance = InstanceType<typeof EleProForm> | null;
176
-
177
- export type EleProFormProps = ComponentProps<ProFormProps>;
178
-
179
- /**
180
- * EleProFormBuilder
181
- */
182
- export type EleProFormBuilderInstance = InstanceType<
183
- typeof EleProFormBuilder
184
- > | null;
185
-
186
- export type EleProFormBuilderProps = ComponentProps<ProFormBuilderProps>;
187
-
188
159
  /**
189
160
  * EleProTable
190
161
  */
@@ -0,0 +1,40 @@
1
+ import { CropperProps } from '../ele-cropper/props';
2
+ import { default as CropperPreview } from '../ele-cropper/components/cropper-preview';
3
+ import { default as EleCrud } from '../ele-crud/index';
4
+ import { CrudProps } from '../ele-crud/props';
5
+ import { default as EleCrudBuilder } from '../ele-crud-builder/index';
6
+ import { default as MapView } from '../ele-map-picker/components/map-view';
7
+ import { default as EleProForm } from '../ele-pro-form/index';
8
+ import { ProFormProps } from '../ele-pro-form/props';
9
+ import { default as EleProFormBuilder } from '../ele-pro-form-builder/index';
10
+ import { ProFormBuilderProps } from '../ele-pro-form-builder/props';
11
+ import { ComponentProps } from './types';
12
+
13
+ /**
14
+ * EleCropper
15
+ */
16
+ export type EleCropperProps = ComponentProps<CropperProps>;
17
+ export type EleCropperPreviewInstance = InstanceType<typeof CropperPreview> | null;
18
+ /**
19
+ * EleCrud
20
+ */
21
+ export type EleCrudInstance = InstanceType<typeof EleCrud> | null;
22
+ export type EleCrudProps = ComponentProps<CrudProps>;
23
+ /**
24
+ * EleCrudBuilder
25
+ */
26
+ export type EleCrudBuilderInstance = InstanceType<typeof EleCrudBuilder> | null;
27
+ /**
28
+ * EleMapPicker
29
+ */
30
+ export type EleMapPickerViewInstance = InstanceType<typeof MapView> | null;
31
+ /**
32
+ * EleProForm
33
+ */
34
+ export type EleProFormInstance = InstanceType<typeof EleProForm> | null;
35
+ export type EleProFormProps = ComponentProps<ProFormProps>;
36
+ /**
37
+ * EleProFormBuilder
38
+ */
39
+ export type EleProFormBuilderInstance = InstanceType<typeof EleProFormBuilder> | null;
40
+ export type EleProFormBuilderProps = ComponentProps<ProFormBuilderProps>;
@@ -852,7 +852,7 @@
852
852
  }
853
853
 
854
854
  .el-popper.is-light.el-picker__popper {
855
- max-width: calc(100% - 32px);
855
+ max-width: calc(100vw - 32px);
856
856
  }
857
857
 
858
858
  /* 日期选择小屏幕自适应 */