ele-admin-plus 1.1.9-beta.6 → 1.1.9-beta.8

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 (245) hide show
  1. package/es/ele-alert/index.js +2 -4
  2. package/es/ele-app/plus.d.ts +3 -0
  3. package/es/ele-avatar-group/index.d.ts +1 -1
  4. package/es/ele-avatar-group/index.js +1 -3
  5. package/es/ele-basic-select/index.d.ts +8 -8
  6. package/es/ele-basic-select/index.js +17 -13
  7. package/es/ele-check-card/index.d.ts +2 -2
  8. package/es/ele-check-card/index.js +0 -5
  9. package/es/ele-config-provider/components/receiver-view.d.ts +17 -0
  10. package/es/ele-config-provider/components/receiver-view.js +45 -0
  11. package/es/ele-copyable/index.d.ts +4 -6
  12. package/es/ele-copyable/index.js +1 -5
  13. package/es/ele-cropper/index.d.ts +6 -6
  14. package/es/ele-cropper/index.js +1 -5
  15. package/es/ele-dashboard/index.d.ts +0 -1
  16. package/es/ele-dashboard/index.js +8 -17
  17. package/es/ele-data-table/props.d.ts +2 -2
  18. package/es/ele-dot/index.d.ts +2 -4
  19. package/es/ele-dot/index.js +4 -10
  20. package/es/ele-drawer/index.d.ts +6 -6
  21. package/es/ele-drawer/index.js +14 -11
  22. package/es/ele-dropdown/index.js +6 -10
  23. package/es/ele-dropdown/style/index.scss +2 -2
  24. package/es/ele-edit-tag/index.d.ts +6 -0
  25. package/es/ele-edit-tag/index.js +17 -15
  26. package/es/ele-edit-tag/props.d.ts +4 -0
  27. package/es/ele-edit-tag/props.js +5 -1
  28. package/es/ele-edit-tag/style/index.scss +13 -0
  29. package/es/ele-ellipsis/index.d.ts +3 -3
  30. package/es/ele-ellipsis/index.js +4 -27
  31. package/es/ele-file-list/components/file-grid-item.js +16 -9
  32. package/es/ele-file-list/components/file-grid.js +54 -50
  33. package/es/ele-file-list/components/file-table-item.js +20 -15
  34. package/es/ele-file-list/components/file-table.js +92 -86
  35. package/es/ele-file-list/index.d.ts +4 -4
  36. package/es/ele-file-list/index.js +1 -11
  37. package/es/ele-file-list-tool/index.d.ts +3 -3
  38. package/es/ele-file-list-tool/index.js +2 -2
  39. package/es/ele-icon-select/index.d.ts +22 -10
  40. package/es/ele-icon-select/index.js +33 -10
  41. package/es/ele-icon-select/props.d.ts +6 -1
  42. package/es/ele-icon-select/props.js +6 -1
  43. package/es/ele-icon-select/style/index.js +1 -0
  44. package/es/ele-icon-select/style/index.scss +16 -2
  45. package/es/ele-loading/index.d.ts +0 -2
  46. package/es/ele-loading/index.js +32 -30
  47. package/es/ele-map-picker/components/map-view.d.ts +22 -18
  48. package/es/ele-map-picker/components/map-view.js +77 -50
  49. package/es/ele-map-picker/index.d.ts +5 -3
  50. package/es/ele-map-picker/props.d.ts +6 -4
  51. package/es/ele-map-picker/props.js +5 -3
  52. package/es/ele-map-picker/style/index.scss +1 -1
  53. package/es/ele-menus/index.d.ts +10 -1
  54. package/es/ele-menus/index.js +63 -12
  55. package/es/ele-menus/props.d.ts +8 -0
  56. package/es/ele-menus/props.js +10 -2
  57. package/es/ele-menus/style/index.js +2 -0
  58. package/es/ele-menus/style/index.scss +1 -0
  59. package/es/ele-menus/util.d.ts +15 -3
  60. package/es/ele-menus/util.js +47 -21
  61. package/es/ele-modal/index.d.ts +2 -2
  62. package/es/ele-modal/index.js +14 -8
  63. package/es/ele-modal/style/index.scss +1 -0
  64. package/es/ele-pagination/index.d.ts +6 -6
  65. package/es/ele-pagination/index.js +2 -8
  66. package/es/ele-popconfirm/index.d.ts +3 -3
  67. package/es/ele-popconfirm/style/index.js +1 -1
  68. package/es/ele-popover/index.d.ts +3 -3
  69. package/es/ele-popover/props.d.ts +1 -1
  70. package/es/ele-popover/style/index.js +0 -1
  71. package/es/ele-printer/index.d.ts +6 -6
  72. package/es/ele-printer/index.js +11 -11
  73. package/es/ele-pro-layout/components/pro-header.d.ts +9 -0
  74. package/es/ele-pro-layout/components/pro-header.js +8 -2
  75. package/es/ele-pro-layout/components/pro-sidebar.d.ts +9 -0
  76. package/es/ele-pro-layout/components/pro-sidebar.js +8 -2
  77. package/es/ele-pro-layout/components/pro-sidebox.d.ts +9 -0
  78. package/es/ele-pro-layout/components/pro-sidebox.js +11 -3
  79. package/es/ele-pro-layout/index.d.ts +33 -30
  80. package/es/ele-pro-layout/index.js +16 -17
  81. package/es/ele-pro-layout/props.d.ts +9 -5
  82. package/es/ele-pro-layout/props.js +9 -5
  83. package/es/ele-pro-table/index.d.ts +15 -15
  84. package/es/ele-pro-table/index.js +1 -6
  85. package/es/ele-pro-table/props.d.ts +3 -3
  86. package/es/ele-segmented/index.js +1 -3
  87. package/es/ele-split-panel/index.d.ts +9 -8
  88. package/es/ele-split-panel/index.js +63 -59
  89. package/es/ele-steps/index.d.ts +0 -1
  90. package/es/ele-steps/index.js +2 -4
  91. package/es/ele-table-select/index.d.ts +1 -1
  92. package/es/ele-tabs/index.d.ts +7 -5
  93. package/es/ele-tabs/index.js +1 -6
  94. package/es/ele-tabs/props.d.ts +1 -1
  95. package/es/ele-tooltip/index.js +9 -13
  96. package/es/ele-tooltip/style/css-var.scss +4 -0
  97. package/es/ele-tooltip/style/index.scss +23 -0
  98. package/es/ele-tour/index.js +80 -77
  99. package/es/ele-upload-list/components/list-item.d.ts +1 -1
  100. package/es/ele-upload-list/index.d.ts +6 -4
  101. package/es/ele-upload-list/index.js +2 -3
  102. package/es/ele-upload-list/style/index.scss +2 -1
  103. package/es/ele-virtual-table/index.d.ts +1 -1
  104. package/es/ele-virtual-table/props.d.ts +2 -2
  105. package/es/ele-virtual-table/util.js +2 -18
  106. package/es/ele-watermark/index.d.ts +9 -0
  107. package/es/ele-watermark/index.js +1 -1
  108. package/es/ele-watermark/props.d.ts +5 -0
  109. package/es/ele-watermark/props.js +5 -0
  110. package/es/style/index.scss +1 -43
  111. package/es/style/plus.scss +43 -0
  112. package/es/style/themes/default.scss +6 -3
  113. package/es/style/themes/rounded.scss +1 -1
  114. package/es/style/themes/theme-util.scss +0 -2
  115. package/es/utils/core.d.ts +5 -0
  116. package/es/utils/core.js +28 -0
  117. package/es/utils/resolvers.d.ts +2 -2
  118. package/es/utils/resolvers.js +33 -20
  119. package/lib/ele-alert/index.cjs +2 -4
  120. package/lib/ele-app/plus.d.ts +3 -0
  121. package/lib/ele-avatar-group/index.cjs +1 -3
  122. package/lib/ele-avatar-group/index.d.ts +1 -1
  123. package/lib/ele-basic-select/index.cjs +16 -12
  124. package/lib/ele-basic-select/index.d.ts +8 -8
  125. package/lib/ele-check-card/index.cjs +0 -5
  126. package/lib/ele-check-card/index.d.ts +2 -2
  127. package/lib/ele-config-provider/components/receiver-view.cjs +44 -0
  128. package/lib/ele-config-provider/components/receiver-view.d.ts +17 -0
  129. package/lib/ele-copyable/index.cjs +0 -4
  130. package/lib/ele-copyable/index.d.ts +4 -6
  131. package/lib/ele-cropper/index.cjs +0 -4
  132. package/lib/ele-cropper/index.d.ts +6 -6
  133. package/lib/ele-dashboard/index.cjs +7 -16
  134. package/lib/ele-dashboard/index.d.ts +0 -1
  135. package/lib/ele-data-table/props.d.ts +2 -2
  136. package/lib/ele-dot/index.cjs +3 -9
  137. package/lib/ele-dot/index.d.ts +2 -4
  138. package/lib/ele-drawer/index.cjs +13 -10
  139. package/lib/ele-drawer/index.d.ts +6 -6
  140. package/lib/ele-dropdown/index.cjs +6 -10
  141. package/lib/ele-dropdown/style/index.scss +2 -2
  142. package/lib/ele-edit-tag/index.cjs +16 -14
  143. package/lib/ele-edit-tag/index.d.ts +6 -0
  144. package/lib/ele-edit-tag/props.cjs +5 -1
  145. package/lib/ele-edit-tag/props.d.ts +4 -0
  146. package/lib/ele-edit-tag/style/index.scss +13 -0
  147. package/lib/ele-ellipsis/index.cjs +3 -26
  148. package/lib/ele-ellipsis/index.d.ts +3 -3
  149. package/lib/ele-file-list/components/file-grid-item.cjs +15 -8
  150. package/lib/ele-file-list/components/file-grid.cjs +53 -49
  151. package/lib/ele-file-list/components/file-table-item.cjs +19 -14
  152. package/lib/ele-file-list/components/file-table.cjs +91 -85
  153. package/lib/ele-file-list/index.cjs +0 -10
  154. package/lib/ele-file-list/index.d.ts +4 -4
  155. package/lib/ele-file-list-tool/index.cjs +2 -2
  156. package/lib/ele-file-list-tool/index.d.ts +3 -3
  157. package/lib/ele-icon-select/index.cjs +39 -16
  158. package/lib/ele-icon-select/index.d.ts +22 -10
  159. package/lib/ele-icon-select/props.cjs +6 -1
  160. package/lib/ele-icon-select/props.d.ts +6 -1
  161. package/lib/ele-icon-select/style/index.cjs +1 -0
  162. package/lib/ele-icon-select/style/index.scss +16 -2
  163. package/lib/ele-loading/index.cjs +31 -29
  164. package/lib/ele-loading/index.d.ts +0 -2
  165. package/lib/ele-map-picker/components/map-view.cjs +76 -49
  166. package/lib/ele-map-picker/components/map-view.d.ts +22 -18
  167. package/lib/ele-map-picker/index.d.ts +5 -3
  168. package/lib/ele-map-picker/props.cjs +5 -3
  169. package/lib/ele-map-picker/props.d.ts +6 -4
  170. package/lib/ele-map-picker/style/index.scss +1 -1
  171. package/lib/ele-menus/index.cjs +61 -10
  172. package/lib/ele-menus/index.d.ts +10 -1
  173. package/lib/ele-menus/props.cjs +10 -2
  174. package/lib/ele-menus/props.d.ts +8 -0
  175. package/lib/ele-menus/style/index.cjs +2 -0
  176. package/lib/ele-menus/style/index.scss +1 -0
  177. package/lib/ele-menus/util.cjs +47 -21
  178. package/lib/ele-menus/util.d.ts +15 -3
  179. package/lib/ele-modal/index.cjs +13 -7
  180. package/lib/ele-modal/index.d.ts +2 -2
  181. package/lib/ele-modal/style/index.scss +1 -0
  182. package/lib/ele-pagination/index.cjs +2 -8
  183. package/lib/ele-pagination/index.d.ts +6 -6
  184. package/lib/ele-popconfirm/index.d.ts +3 -3
  185. package/lib/ele-popconfirm/style/index.cjs +1 -1
  186. package/lib/ele-popover/index.d.ts +3 -3
  187. package/lib/ele-popover/props.d.ts +1 -1
  188. package/lib/ele-popover/style/index.cjs +0 -1
  189. package/lib/ele-printer/index.cjs +10 -10
  190. package/lib/ele-printer/index.d.ts +6 -6
  191. package/lib/ele-pro-layout/components/pro-header.cjs +8 -2
  192. package/lib/ele-pro-layout/components/pro-header.d.ts +9 -0
  193. package/lib/ele-pro-layout/components/pro-sidebar.cjs +8 -2
  194. package/lib/ele-pro-layout/components/pro-sidebar.d.ts +9 -0
  195. package/lib/ele-pro-layout/components/pro-sidebox.cjs +11 -3
  196. package/lib/ele-pro-layout/components/pro-sidebox.d.ts +9 -0
  197. package/lib/ele-pro-layout/index.cjs +15 -16
  198. package/lib/ele-pro-layout/index.d.ts +33 -30
  199. package/lib/ele-pro-layout/props.cjs +9 -5
  200. package/lib/ele-pro-layout/props.d.ts +9 -5
  201. package/lib/ele-pro-table/index.cjs +0 -5
  202. package/lib/ele-pro-table/index.d.ts +15 -15
  203. package/lib/ele-pro-table/props.d.ts +3 -3
  204. package/lib/ele-segmented/index.cjs +1 -3
  205. package/lib/ele-split-panel/index.cjs +62 -58
  206. package/lib/ele-split-panel/index.d.ts +9 -8
  207. package/lib/ele-steps/index.cjs +2 -4
  208. package/lib/ele-steps/index.d.ts +0 -1
  209. package/lib/ele-table-select/index.d.ts +1 -1
  210. package/lib/ele-tabs/index.cjs +1 -6
  211. package/lib/ele-tabs/index.d.ts +7 -5
  212. package/lib/ele-tabs/props.d.ts +1 -1
  213. package/lib/ele-tooltip/index.cjs +9 -13
  214. package/lib/ele-tooltip/style/css-var.scss +4 -0
  215. package/lib/ele-tooltip/style/index.scss +23 -0
  216. package/lib/ele-tour/index.cjs +79 -76
  217. package/lib/ele-upload-list/components/list-item.d.ts +1 -1
  218. package/lib/ele-upload-list/index.cjs +1 -2
  219. package/lib/ele-upload-list/index.d.ts +6 -4
  220. package/lib/ele-upload-list/style/index.scss +2 -1
  221. package/lib/ele-virtual-table/index.d.ts +1 -1
  222. package/lib/ele-virtual-table/props.d.ts +2 -2
  223. package/lib/ele-virtual-table/util.cjs +1 -17
  224. package/lib/ele-watermark/index.cjs +1 -1
  225. package/lib/ele-watermark/index.d.ts +9 -0
  226. package/lib/ele-watermark/props.cjs +5 -0
  227. package/lib/ele-watermark/props.d.ts +5 -0
  228. package/lib/style/index.scss +1 -43
  229. package/lib/style/plus.scss +43 -0
  230. package/lib/style/themes/default.scss +6 -3
  231. package/lib/style/themes/rounded.scss +1 -1
  232. package/lib/style/themes/theme-util.scss +0 -2
  233. package/lib/utils/core.cjs +28 -0
  234. package/lib/utils/core.d.ts +5 -0
  235. package/lib/utils/resolvers.cjs +33 -20
  236. package/lib/utils/resolvers.d.ts +2 -2
  237. package/package.json +1 -1
  238. package/es/ele-map-picker/components/map-search.d.ts +0 -22
  239. package/es/ele-map-picker/components/map-search.js +0 -75
  240. package/es/ele-popover/style/css-var.scss +0 -8
  241. package/es/ele-popover/style/index.scss +0 -27
  242. package/lib/ele-map-picker/components/map-search.cjs +0 -74
  243. package/lib/ele-map-picker/components/map-search.d.ts +0 -22
  244. package/lib/ele-popover/style/css-var.scss +0 -8
  245. package/lib/ele-popover/style/index.scss +0 -27
@@ -1,44 +1,2 @@
1
- @use '../ele-alert/style/index.scss' as alert;
2
1
  @use '../ele-app/style/index.scss' as app;
3
- @use '../ele-avatar-group/style/index.scss' as avatarGroup;
4
- @use '../ele-basic-select/style/index.scss' as basicSelect;
5
- @use '../ele-bottom-bar/style/index.scss' as bottomBar;
6
- @use '../ele-breadcrumb/style/index.scss' as breadcrumb;
7
- @use '../ele-copyable/style/index.scss' as copyable;
8
- @use '../ele-card/style/index.scss' as card;
9
- @use '../ele-check-card/style/index.scss' as checkCard;
10
- @use '../ele-cropper/style/index.scss' as cropper;
11
- @use '../ele-dashboard/style/index.scss' as dashboard;
12
- @use '../ele-data-table/style/index.scss' as dataTable;
13
- @use '../ele-dot/style/index.scss' as dot;
14
- @use '../ele-drawer/style/index.scss' as drawer;
15
- @use '../ele-dropdown/style/index.scss' as dropdown;
16
- @use '../ele-edit-tag/style/index.scss' as editTag;
17
- @use '../ele-ellipsis/style/index.scss' as ellipsis;
18
- @use '../ele-file-list/style/index.scss' as fileList;
19
- @use '../ele-icon-select/style/index.scss' as iconSelect;
20
- @use '../ele-loading/style/index.scss' as loading;
21
- @use '../ele-map-picker/style/index.scss' as mapPicker;
22
- @use '../ele-menus/style/index.scss' as menus;
23
- @use '../ele-modal/style/index.scss' as modal;
24
- @use '../ele-page/style/index.scss' as page;
25
- @use '../ele-pagination/style/index.scss' as pagination;
26
- @use '../ele-popconfirm/style/index.scss' as popconfirm;
27
- @use '../ele-popover/style/index.scss' as popover;
28
- @use '../ele-printer/style/index.scss' as printer;
29
- @use '../ele-pro-layout/style/index.scss' as proLayout;
30
- @use '../ele-pro-table/style/index.scss' as proTable;
31
- @use '../ele-segmented/style/index.scss' as segmented;
32
- @use '../ele-split-panel/style/index.scss' as splitPanel;
33
- @use '../ele-steps/style/index.scss' as steps;
34
- @use '../ele-tabs/style/index.scss' as tabs;
35
- @use '../ele-table/style/index.scss' as table;
36
- @use '../ele-table-select/style/index.scss' as tableSelect;
37
- @use '../ele-text/style/index.scss' as text;
38
- @use '../ele-tool/style/index.scss' as tool;
39
- @use '../ele-toolbar/style/index.scss' as toolbar;
40
- @use '../ele-tooltip/style/index.scss' as tooltip;
41
- @use '../ele-tour/style/index.scss' as tour;
42
- @use '../ele-tree-select/style/index.scss' as treeSelect;
43
- @use '../ele-upload-list/style/index.scss' as uploadList;
44
- @use '../ele-virtual-table/style/index.scss' as virtualTable;
2
+ @use './plus.scss' as *;
@@ -0,0 +1,43 @@
1
+ @use '../ele-alert/style/index.scss' as alert;
2
+ //@use '../ele-app/style/index.scss' as app;
3
+ @use '../ele-avatar-group/style/index.scss' as avatarGroup;
4
+ @use '../ele-basic-select/style/index.scss' as basicSelect;
5
+ @use '../ele-bottom-bar/style/index.scss' as bottomBar;
6
+ @use '../ele-breadcrumb/style/index.scss' as breadcrumb;
7
+ @use '../ele-copyable/style/index.scss' as copyable;
8
+ @use '../ele-card/style/index.scss' as card;
9
+ @use '../ele-check-card/style/index.scss' as checkCard;
10
+ @use '../ele-cropper/style/index.scss' as cropper;
11
+ @use '../ele-dashboard/style/index.scss' as dashboard;
12
+ @use '../ele-data-table/style/index.scss' as dataTable;
13
+ @use '../ele-dot/style/index.scss' as dot;
14
+ @use '../ele-drawer/style/index.scss' as drawer;
15
+ @use '../ele-dropdown/style/index.scss' as dropdown;
16
+ @use '../ele-edit-tag/style/index.scss' as editTag;
17
+ @use '../ele-ellipsis/style/index.scss' as ellipsis;
18
+ @use '../ele-file-list/style/index.scss' as fileList;
19
+ @use '../ele-icon-select/style/index.scss' as iconSelect;
20
+ @use '../ele-loading/style/index.scss' as loading;
21
+ @use '../ele-map-picker/style/index.scss' as mapPicker;
22
+ @use '../ele-menus/style/index.scss' as menus;
23
+ @use '../ele-modal/style/index.scss' as modal;
24
+ @use '../ele-page/style/index.scss' as page;
25
+ @use '../ele-pagination/style/index.scss' as pagination;
26
+ @use '../ele-popconfirm/style/index.scss' as popconfirm;
27
+ @use '../ele-printer/style/index.scss' as printer;
28
+ @use '../ele-pro-layout/style/index.scss' as proLayout;
29
+ @use '../ele-pro-table/style/index.scss' as proTable;
30
+ @use '../ele-segmented/style/index.scss' as segmented;
31
+ @use '../ele-split-panel/style/index.scss' as splitPanel;
32
+ @use '../ele-steps/style/index.scss' as steps;
33
+ @use '../ele-tabs/style/index.scss' as tabs;
34
+ @use '../ele-table/style/index.scss' as table;
35
+ @use '../ele-table-select/style/index.scss' as tableSelect;
36
+ @use '../ele-text/style/index.scss' as text;
37
+ @use '../ele-tool/style/index.scss' as tool;
38
+ @use '../ele-toolbar/style/index.scss' as toolbar;
39
+ @use '../ele-tooltip/style/index.scss' as tooltip;
40
+ @use '../ele-tour/style/index.scss' as tour;
41
+ @use '../ele-tree-select/style/index.scss' as treeSelect;
42
+ @use '../ele-upload-list/style/index.scss' as uploadList;
43
+ @use '../ele-virtual-table/style/index.scss' as virtualTable;
@@ -267,6 +267,9 @@ $ele: map.deep-merge(
267
267
  'icon': (
268
268
  // 图标选择器
269
269
  'header-padding': 0 12px,
270
+ 'search-width': 120px,
271
+ 'search-padding': 8px 0,
272
+ 'search-icon-size': elVar('font-size', 'extra-small'),
270
273
  'tab-height': 42px,
271
274
  'tab-space': 16px,
272
275
  'tab-padding': 0 2px,
@@ -318,7 +321,7 @@ $ele: map.deep-merge(
318
321
  ),
319
322
  'map': (
320
323
  // 地图位置选择
321
- 'header-padding': 6px 12px
324
+ 'search-padding': 6px 12px
322
325
  ),
323
326
  'menu': (
324
327
  // 菜单
@@ -348,8 +351,8 @@ $ele: map.deep-merge(
348
351
  ),
349
352
  'menu-popup': (
350
353
  // 气泡菜单
351
- 'min-width': 160px,
352
- 'max-width': 320px,
354
+ 'min-width': 148px,
355
+ 'max-width': 260px,
353
356
  'max-height': calc(100vh - 10px),
354
357
  'bg': elVar('bg-color', 'overlay'),
355
358
  'radius': elVar('border-radius', 'base'),
@@ -62,7 +62,7 @@ $ele-rounded: map.deep-merge(
62
62
  'menu-active-line': 0
63
63
  ),
64
64
  'map': (
65
- 'header-padding': 0 12px 6px 12px
65
+ 'search-padding': 0 12px 6px 12px
66
66
  ),
67
67
  'menu': (
68
68
  'arrow-margin': 0 -8px 0 6px,
@@ -16,7 +16,6 @@
16
16
  @use '../../ele-page/style/css-var.scss' as *;
17
17
  @use '../../ele-pagination/style/css-var.scss' as *;
18
18
  @use '../../ele-popconfirm/style/css-var.scss' as *;
19
- @use '../../ele-popover/style/css-var.scss' as *;
20
19
  @use '../../ele-pro-layout/style/css-var.scss' as *;
21
20
  @use '../../ele-pro-table/style/css-var.scss' as *;
22
21
  @use '../../ele-segmented/style/css-var.scss' as *;
@@ -52,7 +51,6 @@
52
51
  @include set-page-var($var);
53
52
  @include set-pagination-var($var);
54
53
  @include set-popconfirm-var($var);
55
- @include set-popover-var($var);
56
54
  @include set-layout-var($var);
57
55
  @include set-pro-table-var($var);
58
56
  @include set-segmented-var($var);
@@ -214,9 +214,37 @@ function pick(obj, fields) {
214
214
  }
215
215
  return result;
216
216
  }
217
+ function contentIsEllipsis(el, direction) {
218
+ if (!el || !el.childNodes.length) {
219
+ return false;
220
+ }
221
+ const range = document.createRange();
222
+ range.setStart(el, 0);
223
+ range.setEnd(el, el.childNodes.length);
224
+ const { width, height } = range.getBoundingClientRect();
225
+ const floorW = Math.floor(width);
226
+ const rangeWidth = width - floorW < 1e-3 ? floorW : width;
227
+ const floorH = Math.floor(height);
228
+ const rangeHeight = height - floorH < 1e-3 ? floorH : height;
229
+ const style = getCurrentStyle(el);
230
+ const top = Number.parseInt(style.paddingTop) || 0;
231
+ const left = Number.parseInt(style.paddingLeft) || 0;
232
+ const right = Number.parseInt(style.paddingRight) || 0;
233
+ const bottom = Number.parseInt(style.paddingBottom) || 0;
234
+ const horizontalPadding = left + right;
235
+ const verticalPadding = top + bottom;
236
+ if (direction === "horizontal") {
237
+ return rangeWidth + horizontalPadding > el.offsetWidth || el.scrollWidth > el.offsetWidth;
238
+ }
239
+ if (direction === "vertical") {
240
+ return rangeHeight + verticalPadding > el.offsetHeight || el.scrollHeight > el.offsetHeight;
241
+ }
242
+ return rangeWidth + horizontalPadding > el.offsetWidth || rangeHeight + verticalPadding > el.offsetHeight || el.scrollWidth > el.offsetWidth;
243
+ }
217
244
  exports.assignObject = assignObject;
218
245
  exports.bd09ToGcj02 = bd09ToGcj02;
219
246
  exports.checkFullscreen = checkFullscreen;
247
+ exports.contentIsEllipsis = contentIsEllipsis;
220
248
  exports.debounce = debounce;
221
249
  exports.eachTree = eachTree;
222
250
  exports.exitFullscreen = exitFullscreen;
@@ -137,3 +137,8 @@ export declare function omit<T extends object, K extends keyof T>(obj: T | null
137
137
  * @param fields 摘选的属性
138
138
  */
139
139
  export declare function pick<T extends object, K extends keyof T>(obj: T, fields: Array<K>): Pick<T, K>;
140
+ /**
141
+ * 判断元素内容是否溢出省略
142
+ * @param el 元素节点
143
+ */
144
+ export declare function contentIsEllipsis(el: HTMLElement, direction?: 'horizontal' | 'vertical'): boolean;
@@ -1,34 +1,47 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- function getSideEffects(name, options) {
4
- if (!(options == null ? void 0 : options.importStyle)) {
3
+ function getSideEffects(path, options) {
4
+ const importStyle = options == null ? void 0 : options.importStyle;
5
+ if (!importStyle) {
5
6
  return;
6
7
  }
7
- const dir = options.path ?? "/es";
8
- const packageName = "ele-admin-plus";
9
- if (options.importStyle === "css") {
10
- return `${packageName}${dir}/${name}/style/css`;
8
+ if (importStyle === "css") {
9
+ return `${path}/style/css`;
11
10
  }
12
- return `${packageName}${dir}/${name}/style/index`;
11
+ return `${path}/style/index`;
13
12
  }
14
- function kebabCase(value) {
15
- return value.replace(/([A-Z])/g, " $1").trim().split(" ").join("-").toLowerCase();
13
+ function getStylePath(namePath, packageName, path) {
14
+ if (!path) {
15
+ return `${packageName}/es`;
16
+ }
17
+ if (path === "/es/core") {
18
+ return `${packageName}/es/${namePath}`;
19
+ }
20
+ if (path === "/lib/core") {
21
+ return `${packageName}/lib/${namePath}`;
22
+ }
23
+ return `${packageName}${path}/${namePath}`;
16
24
  }
17
- function EleAdminResolver(options = {}) {
25
+ function EleAdminResolver(options) {
18
26
  return {
19
27
  type: "component",
20
- resolve: (key) => {
21
- var _a, _b;
22
- if (key.match(/^Ele[A-Z]/) && !((_b = (_a = options == null ? void 0 : options.exclude) == null ? void 0 : _a.includes) == null ? void 0 : _b.call(_a, key))) {
28
+ resolve: (name) => {
29
+ var _a;
30
+ const { path, exclude } = options || {};
31
+ if (name.match(/^Ele[A-Z]/) && !((_a = exclude == null ? void 0 : exclude.includes) == null ? void 0 : _a.call(exclude, name))) {
23
32
  const packageName = "ele-admin-plus";
24
- const name = kebabCase(key);
25
- const dir = options.path ?? "/es";
26
- const path = !options.path ? `${packageName}${dir}` : `${packageName}${dir}/${name}`;
27
- const importName = options.path ? void 0 : key;
33
+ const namePath = name.replace(/([A-Z])/g, " $1").trim().split(" ").join("-").toLowerCase();
34
+ const stylePath = getStylePath(namePath, packageName, path);
35
+ if (!path || path === "/es/core" || path === "/lib/core") {
36
+ return {
37
+ name,
38
+ from: `${packageName}${path ?? "/es"}`,
39
+ sideEffects: getSideEffects(stylePath, options)
40
+ };
41
+ }
28
42
  return {
29
- from: path,
30
- name: importName,
31
- sideEffects: getSideEffects(name, options)
43
+ from: `${packageName}${path}/${namePath}`,
44
+ sideEffects: getSideEffects(stylePath, options)
32
45
  };
33
46
  }
34
47
  }
@@ -4,8 +4,8 @@ import type { ComponentResolver } from 'unplugin-vue-components/types';
4
4
  * 参数类型
5
5
  */
6
6
  export interface EleAdminResolverOptions {
7
- /** 可选 '/es'、'/lib'、'', 默认'/es' */
8
- path?: string;
7
+ /** 包路径 */
8
+ path?: string | '' | '/es' | '/lib' | '/es/core' | '/lib/core';
9
9
  /** 排除的组件名称 */
10
10
  exclude?: string[];
11
11
  /** 是否导入样式 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ele-admin-plus",
3
- "version": "1.1.9-beta.6",
3
+ "version": "1.1.9-beta.8",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite --host --config vite.global.ts",
@@ -1,22 +0,0 @@
1
- import type { ElAutocompleteInstance } from '../../ele-app/el';
2
- declare const _default: import("vue").DefineComponent<{
3
- modelValue: StringConstructor;
4
- placeholder: StringConstructor;
5
- }, {
6
- autocompleteRef: import("vue").Ref<ElAutocompleteInstance>;
7
- updateModelValue: (keywords: string) => void;
8
- onSearch: (keywords: string, callback?: any) => void;
9
- onSearchSelect: (item: any) => void;
10
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
- 'update:modelValue': (_keywords: string) => true;
12
- search: (_keywords: string, _callback: any) => true;
13
- searchSelect: (_item: any) => true;
14
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
15
- modelValue: StringConstructor;
16
- placeholder: StringConstructor;
17
- }>> & {
18
- "onUpdate:modelValue"?: ((_keywords: string) => any) | undefined;
19
- onSearch?: ((_keywords: string, _callback: any) => any) | undefined;
20
- onSearchSelect?: ((_item: any) => any) | undefined;
21
- }, {}, {}>;
22
- export default _default;
@@ -1,75 +0,0 @@
1
- import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, toDisplayString } from "vue";
2
- import { ElAutocomplete } from "element-plus";
3
- import { SearchOutlined } from "../../icons";
4
- const _sfc_main = defineComponent({
5
- name: "MapSearch",
6
- components: { ElAutocomplete, SearchOutlined },
7
- props: {
8
- modelValue: String,
9
- placeholder: String
10
- },
11
- emits: {
12
- "update:modelValue": (_keywords) => true,
13
- search: (_keywords, _callback) => true,
14
- searchSelect: (_item) => true
15
- },
16
- setup(_props, { emit }) {
17
- const autocompleteRef = ref(null);
18
- const updateModelValue = (keywords) => {
19
- emit("update:modelValue", keywords);
20
- };
21
- const onSearch = (keywords, callback) => {
22
- emit("search", keywords, callback);
23
- };
24
- const onSearchSelect = (item) => {
25
- autocompleteRef.value && autocompleteRef.value.blur();
26
- emit("searchSelect", item);
27
- };
28
- return { autocompleteRef, updateModelValue, onSearch, onSearchSelect };
29
- }
30
- });
31
- const _export_sfc = (sfc, props) => {
32
- const target = sfc.__vccOpts || sfc;
33
- for (const [key, val] of props) {
34
- target[key] = val;
35
- }
36
- return target;
37
- };
38
- const _hoisted_1 = { class: "ele-map-suggest-item" };
39
- const _hoisted_2 = { class: "ele-map-suggest-title" };
40
- const _hoisted_3 = { class: "ele-map-suggest-text" };
41
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
42
- const _component_SearchOutlined = resolveComponent("SearchOutlined");
43
- const _component_ElIcon = resolveComponent("ElIcon");
44
- const _component_ElAutocomplete = resolveComponent("ElAutocomplete");
45
- return openBlock(), createBlock(_component_ElAutocomplete, {
46
- ref: "autocompleteRef",
47
- clearable: true,
48
- placeholder: _ctx.placeholder,
49
- fetchSuggestions: _ctx.onSearch,
50
- popperClass: "ele-map-suggest-popper",
51
- modelValue: _ctx.modelValue,
52
- "onUpdate:modelValue": _ctx.updateModelValue,
53
- onSelect: _ctx.onSearchSelect
54
- }, {
55
- prefix: withCtx(() => [
56
- createVNode(_component_ElIcon, { class: "el-input__icon" }, {
57
- default: withCtx(() => [
58
- createVNode(_component_SearchOutlined)
59
- ]),
60
- _: 1
61
- })
62
- ]),
63
- default: withCtx(({ item }) => [
64
- createElementVNode("div", _hoisted_1, [
65
- createElementVNode("div", _hoisted_2, toDisplayString(item.label), 1),
66
- createElementVNode("div", _hoisted_3, toDisplayString(item.district), 1)
67
- ])
68
- ]),
69
- _: 1
70
- }, 8, ["placeholder", "fetchSuggestions", "modelValue", "onUpdate:modelValue", "onSelect"]);
71
- }
72
- const mapSearch = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
73
- export {
74
- mapSearch as default
75
- };
@@ -1,8 +0,0 @@
1
- @use '../../style/util.scss' as *;
2
-
3
- /* 气泡卡片主题变量 */
4
- @mixin set-popover-var($var) {
5
- .ele-popover {
6
- @include set-ele-var('popover', $var);
7
- }
8
- }
@@ -1,27 +0,0 @@
1
- @use '../../style/themes/default.scss' as *;
2
- @use '../../style/util.scss' as *;
3
- @use './css-var.scss' as *;
4
-
5
- @include set-popover-var($ele);
6
-
7
- .ele-popper.ele-popover {
8
- color: eleVar('popover', 'color');
9
- font-size: eleVar('popover', 'font-size');
10
- line-height: inherit;
11
- text-align: left;
12
- min-width: 150px;
13
- padding: 0;
14
- }
15
-
16
- .ele-popover-content {
17
- padding: eleVar('popover', 'padding');
18
- box-sizing: border-box;
19
- }
20
-
21
- .ele-popover-title {
22
- color: eleVar('popover', 'title-color');
23
- font-size: eleVar('popover', 'title-font-size');
24
- font-weight: eleVar('popover', 'title-font-weight');
25
- padding: eleVar('popover', 'title-padding');
26
- border-bottom: eleVar('popover', 'title-border');
27
- }
@@ -1,74 +0,0 @@
1
- "use strict";
2
- const vue = require("vue");
3
- const elementPlus = require("element-plus");
4
- const icons = require("../../icons");
5
- const _sfc_main = vue.defineComponent({
6
- name: "MapSearch",
7
- components: { ElAutocomplete: elementPlus.ElAutocomplete, SearchOutlined: icons.SearchOutlined },
8
- props: {
9
- modelValue: String,
10
- placeholder: String
11
- },
12
- emits: {
13
- "update:modelValue": (_keywords) => true,
14
- search: (_keywords, _callback) => true,
15
- searchSelect: (_item) => true
16
- },
17
- setup(_props, { emit }) {
18
- const autocompleteRef = vue.ref(null);
19
- const updateModelValue = (keywords) => {
20
- emit("update:modelValue", keywords);
21
- };
22
- const onSearch = (keywords, callback) => {
23
- emit("search", keywords, callback);
24
- };
25
- const onSearchSelect = (item) => {
26
- autocompleteRef.value && autocompleteRef.value.blur();
27
- emit("searchSelect", item);
28
- };
29
- return { autocompleteRef, updateModelValue, onSearch, onSearchSelect };
30
- }
31
- });
32
- const _export_sfc = (sfc, props) => {
33
- const target = sfc.__vccOpts || sfc;
34
- for (const [key, val] of props) {
35
- target[key] = val;
36
- }
37
- return target;
38
- };
39
- const _hoisted_1 = { class: "ele-map-suggest-item" };
40
- const _hoisted_2 = { class: "ele-map-suggest-title" };
41
- const _hoisted_3 = { class: "ele-map-suggest-text" };
42
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
43
- const _component_SearchOutlined = vue.resolveComponent("SearchOutlined");
44
- const _component_ElIcon = vue.resolveComponent("ElIcon");
45
- const _component_ElAutocomplete = vue.resolveComponent("ElAutocomplete");
46
- return vue.openBlock(), vue.createBlock(_component_ElAutocomplete, {
47
- ref: "autocompleteRef",
48
- clearable: true,
49
- placeholder: _ctx.placeholder,
50
- fetchSuggestions: _ctx.onSearch,
51
- popperClass: "ele-map-suggest-popper",
52
- modelValue: _ctx.modelValue,
53
- "onUpdate:modelValue": _ctx.updateModelValue,
54
- onSelect: _ctx.onSearchSelect
55
- }, {
56
- prefix: vue.withCtx(() => [
57
- vue.createVNode(_component_ElIcon, { class: "el-input__icon" }, {
58
- default: vue.withCtx(() => [
59
- vue.createVNode(_component_SearchOutlined)
60
- ]),
61
- _: 1
62
- })
63
- ]),
64
- default: vue.withCtx(({ item }) => [
65
- vue.createElementVNode("div", _hoisted_1, [
66
- vue.createElementVNode("div", _hoisted_2, vue.toDisplayString(item.label), 1),
67
- vue.createElementVNode("div", _hoisted_3, vue.toDisplayString(item.district), 1)
68
- ])
69
- ]),
70
- _: 1
71
- }, 8, ["placeholder", "fetchSuggestions", "modelValue", "onUpdate:modelValue", "onSelect"]);
72
- }
73
- const mapSearch = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
74
- module.exports = mapSearch;
@@ -1,22 +0,0 @@
1
- import type { ElAutocompleteInstance } from '../../ele-app/el';
2
- declare const _default: import("vue").DefineComponent<{
3
- modelValue: StringConstructor;
4
- placeholder: StringConstructor;
5
- }, {
6
- autocompleteRef: import("vue").Ref<ElAutocompleteInstance>;
7
- updateModelValue: (keywords: string) => void;
8
- onSearch: (keywords: string, callback?: any) => void;
9
- onSearchSelect: (item: any) => void;
10
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
- 'update:modelValue': (_keywords: string) => true;
12
- search: (_keywords: string, _callback: any) => true;
13
- searchSelect: (_item: any) => true;
14
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
15
- modelValue: StringConstructor;
16
- placeholder: StringConstructor;
17
- }>> & {
18
- "onUpdate:modelValue"?: ((_keywords: string) => any) | undefined;
19
- onSearch?: ((_keywords: string, _callback: any) => any) | undefined;
20
- onSearchSelect?: ((_item: any) => any) | undefined;
21
- }, {}, {}>;
22
- export default _default;
@@ -1,8 +0,0 @@
1
- @use '../../style/util.scss' as *;
2
-
3
- /* 气泡卡片主题变量 */
4
- @mixin set-popover-var($var) {
5
- .ele-popover {
6
- @include set-ele-var('popover', $var);
7
- }
8
- }
@@ -1,27 +0,0 @@
1
- @use '../../style/themes/default.scss' as *;
2
- @use '../../style/util.scss' as *;
3
- @use './css-var.scss' as *;
4
-
5
- @include set-popover-var($ele);
6
-
7
- .ele-popper.ele-popover {
8
- color: eleVar('popover', 'color');
9
- font-size: eleVar('popover', 'font-size');
10
- line-height: inherit;
11
- text-align: left;
12
- min-width: 150px;
13
- padding: 0;
14
- }
15
-
16
- .ele-popover-content {
17
- padding: eleVar('popover', 'padding');
18
- box-sizing: border-box;
19
- }
20
-
21
- .ele-popover-title {
22
- color: eleVar('popover', 'title-color');
23
- font-size: eleVar('popover', 'title-font-size');
24
- font-weight: eleVar('popover', 'title-font-weight');
25
- padding: eleVar('popover', 'title-padding');
26
- border-bottom: eleVar('popover', 'title-border');
27
- }