ele-admin-plus 1.1.4 → 1.1.5-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 (658) hide show
  1. package/es/components.d.ts +2 -0
  2. package/es/components.js +78 -74
  3. package/es/ele-alert/props.d.ts +17 -0
  4. package/es/ele-alert/props.js +17 -17
  5. package/es/ele-alert/style/css-var.scss +1 -0
  6. package/es/ele-alert/style/index.scss +4 -4
  7. package/es/ele-app/style/common.scss +2 -2
  8. package/es/ele-app/style/css-var.scss +2 -2
  9. package/es/ele-app/style/message.scss +4 -5
  10. package/es/ele-app/style/overwrite.scss +57 -2
  11. package/es/ele-app/types/index.d.ts +8 -2
  12. package/es/ele-avatar-group/index.d.ts +4 -4
  13. package/es/ele-avatar-group/index.js +32 -32
  14. package/es/ele-avatar-group/props.d.ts +18 -3
  15. package/es/ele-avatar-group/props.js +15 -15
  16. package/es/ele-avatar-group/style/index.js +0 -1
  17. package/es/ele-avatar-group/style/index.scss +5 -1
  18. package/es/ele-avatar-group/types/index.d.ts +0 -16
  19. package/es/ele-bar-code/props.d.ts +3 -0
  20. package/es/ele-bar-code/props.js +3 -3
  21. package/es/ele-basic-select/components/select-tag.d.ts +8 -0
  22. package/es/ele-basic-select/components/select-tag.js +4 -4
  23. package/es/ele-basic-select/index.d.ts +4 -3
  24. package/es/ele-basic-select/index.js +26 -15
  25. package/es/ele-basic-select/props.d.ts +27 -1
  26. package/es/ele-basic-select/props.js +26 -26
  27. package/es/ele-basic-select/style/index.js +1 -1
  28. package/es/ele-basic-select/style/index.scss +4 -4
  29. package/es/ele-bottom-bar/props.d.ts +2 -0
  30. package/es/ele-bottom-bar/props.js +2 -2
  31. package/es/ele-bottom-bar/style/css-var.scss +1 -0
  32. package/es/ele-breadcrumb/props.d.ts +1 -0
  33. package/es/ele-breadcrumb/props.js +1 -1
  34. package/es/ele-card/props.d.ts +7 -0
  35. package/es/ele-card/props.js +7 -7
  36. package/es/ele-card/style/css-var.scss +1 -0
  37. package/es/ele-card/style/index.scss +3 -2
  38. package/es/ele-check-card/components/card-item.d.ts +12 -0
  39. package/es/ele-check-card/components/card-item.js +6 -6
  40. package/es/ele-check-card/index.d.ts +2 -2
  41. package/es/ele-check-card/props.d.ts +12 -0
  42. package/es/ele-check-card/props.js +12 -12
  43. package/es/ele-check-card/style/css-var.scss +1 -0
  44. package/es/ele-check-card/style/index.scss +4 -4
  45. package/es/ele-config-provider/index.d.ts +2 -2
  46. package/es/ele-config-provider/props.d.ts +5 -1
  47. package/es/ele-config-provider/props.js +4 -4
  48. package/es/ele-copyable/index.d.ts +7 -6
  49. package/es/ele-copyable/props.d.ts +13 -2
  50. package/es/ele-copyable/props.js +12 -12
  51. package/es/ele-copyable/types/index.d.ts +0 -5
  52. package/es/ele-count-up/props.d.ts +4 -0
  53. package/es/ele-count-up/props.js +4 -4
  54. package/es/ele-cropper/components/cropper-preview.d.ts +4 -0
  55. package/es/ele-cropper/components/cropper-preview.js +2 -2
  56. package/es/ele-cropper/components/cropper-tools.d.ts +12 -3
  57. package/es/ele-cropper/components/cropper-tools.js +5 -5
  58. package/es/ele-cropper/index.d.ts +2 -2
  59. package/es/ele-cropper/props.d.ts +16 -2
  60. package/es/ele-cropper/props.js +15 -15
  61. package/es/ele-cropper-modal/index.d.ts +2 -2
  62. package/es/ele-cropper-modal/props.d.ts +5 -1
  63. package/es/ele-cropper-modal/props.js +4 -4
  64. package/es/ele-dashboard/props.d.ts +4 -0
  65. package/es/ele-dashboard/props.js +4 -4
  66. package/es/{ele-pro-table/components/table-view.d.ts → ele-data-table/index.d.ts} +102 -60
  67. package/es/ele-data-table/index.js +192 -0
  68. package/es/ele-data-table/props.d.ts +256 -0
  69. package/es/ele-data-table/props.js +79 -0
  70. package/es/ele-data-table/style/css-var.scss +72 -0
  71. package/es/ele-data-table/style/index.js +4 -0
  72. package/es/ele-data-table/style/index.scss +385 -0
  73. package/es/ele-data-table/types/index.d.ts +191 -0
  74. package/es/ele-data-table/util.d.ts +261 -0
  75. package/es/ele-data-table/util.js +417 -0
  76. package/es/ele-dot/props.d.ts +5 -0
  77. package/es/ele-dot/props.js +5 -5
  78. package/es/ele-drawer/index.d.ts +1 -1
  79. package/es/ele-drawer/props.d.ts +5 -0
  80. package/es/ele-drawer/props.js +5 -5
  81. package/es/ele-drawer/style/css-var.scss +1 -0
  82. package/es/ele-dropdown/index.d.ts +1 -1
  83. package/es/ele-dropdown/props.d.ts +8 -0
  84. package/es/ele-dropdown/props.js +8 -8
  85. package/es/ele-dropdown/style/css-var.scss +1 -0
  86. package/es/ele-dropdown/style/index.scss +4 -0
  87. package/es/ele-edit-tag/index.d.ts +15 -17
  88. package/es/ele-edit-tag/index.js +106 -77
  89. package/es/ele-edit-tag/props.d.ts +16 -6
  90. package/es/ele-edit-tag/props.js +15 -18
  91. package/es/ele-edit-tag/style/index.scss +7 -3
  92. package/es/ele-ellipsis/index.d.ts +4 -4
  93. package/es/ele-ellipsis/props.d.ts +3 -0
  94. package/es/ele-ellipsis/props.js +3 -3
  95. package/es/ele-ellipsis/style/index.scss +1 -1
  96. package/es/ele-ellipsis/types/index.d.ts +1 -6
  97. package/es/ele-file-list/components/file-grid-item.d.ts +20 -5
  98. package/es/ele-file-list/components/file-grid-item.js +7 -7
  99. package/es/ele-file-list/components/file-grid.d.ts +26 -3
  100. package/es/ele-file-list/components/file-grid.js +11 -11
  101. package/es/ele-file-list/components/file-sort.d.ts +6 -0
  102. package/es/ele-file-list/components/file-sort.js +3 -3
  103. package/es/ele-file-list/components/file-table-item.d.ts +22 -5
  104. package/es/ele-file-list/components/file-table-item.js +8 -8
  105. package/es/ele-file-list/components/file-table.d.ts +37 -4
  106. package/es/ele-file-list/components/file-table.js +16 -16
  107. package/es/ele-file-list/index.d.ts +3 -3
  108. package/es/ele-file-list/props.d.ts +22 -1
  109. package/es/ele-file-list/props.js +20 -20
  110. package/es/ele-file-list/style/css-var.scss +1 -0
  111. package/es/ele-file-list/style/index.scss +15 -15
  112. package/es/ele-file-list/types/index.d.ts +1 -11
  113. package/es/ele-icon-select/components/icon-grid.d.ts +21 -3
  114. package/es/ele-icon-select/components/icon-grid.js +34 -12
  115. package/es/ele-icon-select/components/icon-popper.d.ts +34 -3
  116. package/es/ele-icon-select/components/icon-popper.js +16 -16
  117. package/es/ele-icon-select/index.d.ts +8 -8
  118. package/es/ele-icon-select/props.d.ts +38 -3
  119. package/es/ele-icon-select/props.js +36 -36
  120. package/es/ele-icon-select/style/css-var.scss +1 -0
  121. package/es/ele-icon-select/style/index.scss +2 -8
  122. package/es/ele-loading/index.d.ts +2 -0
  123. package/es/ele-loading/props.d.ts +10 -0
  124. package/es/ele-loading/props.js +10 -10
  125. package/es/ele-loading/style/css-var.scss +1 -0
  126. package/es/ele-map-picker/components/map-view.d.ts +2 -2
  127. package/es/ele-map-picker/components/map-view.js +7 -7
  128. package/es/ele-map-picker/index.d.ts +5 -5
  129. package/es/ele-map-picker/props.d.ts +53 -0
  130. package/es/ele-map-picker/props.js +31 -31
  131. package/es/ele-map-picker/style/css-var.scss +1 -0
  132. package/es/ele-map-picker/style/index.scss +5 -5
  133. package/es/ele-menus/index.d.ts +1 -1
  134. package/es/ele-menus/index.js +2 -1
  135. package/es/ele-menus/props.d.ts +8 -0
  136. package/es/ele-menus/props.js +8 -8
  137. package/es/ele-menus/style/css-var.scss +1 -0
  138. package/es/ele-menus/style/index.scss +23 -23
  139. package/es/ele-menus/util.d.ts +5 -1
  140. package/es/ele-menus/util.js +5 -8
  141. package/es/ele-modal/index.d.ts +1 -1
  142. package/es/ele-modal/props.d.ts +18 -0
  143. package/es/ele-modal/props.js +18 -18
  144. package/es/ele-modal/style/css-var.scss +1 -0
  145. package/es/ele-modal/style/index.scss +5 -5
  146. package/es/ele-page/props.d.ts +4 -0
  147. package/es/ele-page/props.js +4 -4
  148. package/es/ele-page/style/css-var.scss +1 -0
  149. package/es/ele-page/style/index.scss +5 -4
  150. package/es/ele-pagination/index.d.ts +4 -1
  151. package/es/ele-pagination/props.d.ts +4 -0
  152. package/es/ele-pagination/props.js +3 -3
  153. package/es/ele-pagination/style/css-var.scss +1 -0
  154. package/es/ele-pagination/style/index.scss +6 -6
  155. package/es/ele-popconfirm/index.d.ts +206 -9
  156. package/es/ele-popconfirm/index.js +106 -110
  157. package/es/ele-popconfirm/props.d.ts +105 -1
  158. package/es/ele-popconfirm/props.js +15 -16
  159. package/es/ele-popconfirm/style/css-var.scss +1 -0
  160. package/es/ele-popover/index.d.ts +201 -6
  161. package/es/ele-popover/index.js +26 -44
  162. package/es/ele-popover/props.d.ts +105 -1
  163. package/es/ele-popover/props.js +13 -5
  164. package/es/ele-popover/style/css-var.scss +1 -71
  165. package/es/ele-popover/style/index.js +1 -1
  166. package/es/ele-popover/style/index.scss +2 -9
  167. package/es/ele-printer/props.d.ts +12 -0
  168. package/es/ele-printer/props.js +12 -12
  169. package/es/ele-pro-layout/components/pro-header.d.ts +32 -0
  170. package/es/ele-pro-layout/components/pro-header.js +20 -20
  171. package/es/ele-pro-layout/components/pro-iframe.d.ts +10 -0
  172. package/es/ele-pro-layout/components/pro-iframe.js +5 -5
  173. package/es/ele-pro-layout/components/pro-sidebar.d.ts +22 -0
  174. package/es/ele-pro-layout/components/pro-sidebar.js +16 -19
  175. package/es/ele-pro-layout/components/pro-sidebox.d.ts +20 -0
  176. package/es/ele-pro-layout/components/pro-sidebox.js +15 -18
  177. package/es/ele-pro-layout/components/pro-tabs.d.ts +22 -3
  178. package/es/ele-pro-layout/components/pro-tabs.js +29 -15
  179. package/es/ele-pro-layout/components/tab-dropdown.d.ts +8 -2
  180. package/es/ele-pro-layout/components/tab-dropdown.js +3 -3
  181. package/es/ele-pro-layout/index.d.ts +17 -13
  182. package/es/ele-pro-layout/props.d.ts +56 -1
  183. package/es/ele-pro-layout/props.js +55 -55
  184. package/es/ele-pro-layout/style/css-var.scss +1 -0
  185. package/es/ele-pro-layout/style/header.scss +4 -4
  186. package/es/ele-pro-layout/style/layout-theme.scss +2 -2
  187. package/es/ele-pro-layout/style/layout.scss +4 -0
  188. package/es/ele-pro-layout/style/tabs.scss +4 -9
  189. package/es/ele-pro-layout/types/index.d.ts +0 -5
  190. package/es/ele-pro-layout/util.js +1 -1
  191. package/es/ele-pro-table/components/table-tools.d.ts +18 -1
  192. package/es/ele-pro-table/components/table-tools.js +9 -9
  193. package/es/ele-pro-table/components/tool-column-list.d.ts +49 -0
  194. package/es/ele-pro-table/components/tool-column-list.js +186 -0
  195. package/es/ele-pro-table/components/tool-column.d.ts +35 -15
  196. package/es/ele-pro-table/components/tool-column.js +181 -266
  197. package/es/ele-pro-table/index.d.ts +103 -129
  198. package/es/ele-pro-table/index.js +93 -202
  199. package/es/ele-pro-table/props.d.ts +73 -267
  200. package/es/ele-pro-table/props.js +30 -95
  201. package/es/ele-pro-table/style/css-var.scss +1 -4
  202. package/es/ele-pro-table/style/index.js +5 -9
  203. package/es/ele-pro-table/style/index.scss +85 -415
  204. package/es/ele-pro-table/types/index.d.ts +8 -116
  205. package/es/ele-pro-table/util.d.ts +6 -72
  206. package/es/ele-pro-table/util.js +57 -259
  207. package/es/ele-qr-code/props.d.ts +9 -0
  208. package/es/ele-qr-code/props.js +9 -9
  209. package/es/ele-qr-code/qrcodegen.js +2 -2
  210. package/es/ele-qr-code/types/index.d.ts +10 -0
  211. package/es/ele-qr-code-svg/index.d.ts +2 -2
  212. package/es/ele-segmented/index.d.ts +2 -2
  213. package/es/ele-segmented/props.d.ts +7 -0
  214. package/es/ele-segmented/props.js +7 -7
  215. package/es/ele-segmented/style/css-var.scss +1 -0
  216. package/es/ele-segmented/style/index.scss +6 -6
  217. package/es/ele-split-panel/index.d.ts +4 -4
  218. package/es/ele-split-panel/props.d.ts +15 -0
  219. package/es/ele-split-panel/props.js +15 -15
  220. package/es/ele-split-panel/style/index.scss +13 -13
  221. package/es/ele-steps/props.d.ts +2 -0
  222. package/es/ele-steps/props.js +2 -2
  223. package/es/ele-steps/style/css-var.scss +1 -0
  224. package/es/ele-steps/style/index.scss +8 -8
  225. package/es/ele-tab-tool/props.d.ts +2 -0
  226. package/es/ele-tab-tool/props.js +2 -2
  227. package/es/ele-tab-wrap/props.d.ts +2 -0
  228. package/es/ele-tab-wrap/props.js +2 -2
  229. package/es/ele-table/index.d.ts +12 -0
  230. package/es/ele-table/index.js +2 -0
  231. package/es/ele-table/props.d.ts +10 -0
  232. package/es/ele-table/props.js +11 -4
  233. package/es/ele-table/style/css-var.scss +1 -0
  234. package/es/ele-table/style/index.scss +103 -22
  235. package/es/ele-table-select/index.d.ts +39 -15
  236. package/es/ele-table-select/index.js +1 -5
  237. package/es/ele-table-select/props.d.ts +32 -1
  238. package/es/ele-table-select/props.js +31 -31
  239. package/es/ele-table-select/style/css-var.scss +1 -0
  240. package/es/ele-table-select/style/index.scss +3 -3
  241. package/es/ele-table-select/types/index.d.ts +0 -10
  242. package/es/ele-tabs/components/tab-title.d.ts +19 -5
  243. package/es/ele-tabs/components/tab-title.js +7 -7
  244. package/es/ele-tabs/index.d.ts +4 -5
  245. package/es/ele-tabs/index.js +1 -1
  246. package/es/ele-tabs/props.d.ts +16 -3
  247. package/es/ele-tabs/props.js +13 -13
  248. package/es/ele-tabs/style/css-var.scss +1 -0
  249. package/es/ele-tabs/style/index.scss +46 -22
  250. package/es/ele-text/props.d.ts +10 -0
  251. package/es/ele-text/props.js +10 -10
  252. package/es/ele-text/style/css-var.scss +1 -0
  253. package/es/ele-text/style/index.scss +4 -4
  254. package/es/ele-tool/props.d.ts +3 -0
  255. package/es/ele-tool/props.js +3 -3
  256. package/es/ele-tool/style/css-var.scss +1 -0
  257. package/es/ele-tool/style/index.scss +1 -2
  258. package/es/ele-toolbar/props.d.ts +6 -0
  259. package/es/ele-toolbar/props.js +6 -6
  260. package/es/ele-toolbar/style/css-var.scss +1 -0
  261. package/es/ele-toolbar/style/index.scss +2 -2
  262. package/es/ele-tooltip/index.d.ts +11 -10
  263. package/es/ele-tooltip/index.js +40 -32
  264. package/es/ele-tooltip/props.d.ts +8 -1
  265. package/es/ele-tooltip/props.js +10 -6
  266. package/es/ele-tooltip/style/css-var.scss +72 -0
  267. package/es/ele-tooltip/style/index.js +0 -1
  268. package/es/ele-tooltip/style/index.scss +8 -2
  269. package/es/ele-tour/index.d.ts +4 -6
  270. package/es/ele-tour/index.js +31 -39
  271. package/es/ele-tour/props.d.ts +6 -0
  272. package/es/ele-tour/props.js +6 -6
  273. package/es/ele-tour/style/index.js +1 -1
  274. package/es/ele-tour/style/index.scss +6 -2
  275. package/es/ele-tour/types/index.d.ts +2 -1
  276. package/es/ele-tour/util.d.ts +2 -2
  277. package/es/ele-tour/util.js +6 -2
  278. package/es/ele-upload-list/components/list-item.d.ts +11 -1
  279. package/es/ele-upload-list/components/list-item.js +5 -5
  280. package/es/ele-upload-list/index.d.ts +1 -1
  281. package/es/ele-upload-list/index.js +4 -4
  282. package/es/ele-upload-list/props.d.ts +18 -0
  283. package/es/ele-upload-list/props.js +18 -18
  284. package/es/ele-virtual-table/components/body-cell.d.ts +150 -0
  285. package/es/ele-virtual-table/components/body-cell.js +414 -0
  286. package/es/ele-virtual-table/components/body-row.d.ts +148 -0
  287. package/es/ele-virtual-table/components/body-row.js +206 -0
  288. package/es/ele-virtual-table/components/cell-checkbox.d.ts +32 -0
  289. package/es/ele-virtual-table/components/cell-checkbox.js +49 -0
  290. package/es/ele-virtual-table/components/cell-filter.d.ts +48 -0
  291. package/es/ele-virtual-table/components/cell-filter.js +211 -0
  292. package/es/ele-virtual-table/components/expand-row.d.ts +18 -0
  293. package/es/ele-virtual-table/components/expand-row.js +29 -0
  294. package/es/ele-virtual-table/components/footer-row.d.ts +43 -0
  295. package/es/ele-virtual-table/components/footer-row.js +105 -0
  296. package/es/ele-virtual-table/components/header-cell.d.ts +97 -0
  297. package/es/ele-virtual-table/components/header-cell.js +261 -0
  298. package/es/ele-virtual-table/components/header-row.d.ts +89 -0
  299. package/es/ele-virtual-table/components/header-row.js +126 -0
  300. package/es/ele-virtual-table/index.js +987 -0
  301. package/es/ele-virtual-table/props.d.ts +148 -0
  302. package/es/ele-virtual-table/props.js +13 -0
  303. package/es/ele-virtual-table/style/css-var.scss +127 -0
  304. package/es/ele-virtual-table/style/index.js +9 -0
  305. package/es/ele-virtual-table/style/index.scss +666 -0
  306. package/es/ele-virtual-table/types/index.d.ts +157 -0
  307. package/es/ele-virtual-table/util.d.ts +200 -0
  308. package/es/ele-virtual-table/util.js +562 -0
  309. package/es/ele-watermark/index.js +4 -0
  310. package/es/ele-watermark/props.d.ts +12 -0
  311. package/es/ele-watermark/props.js +12 -12
  312. package/es/icons/FilterFilled.d.ts +2 -0
  313. package/es/icons/FilterFilled.js +23 -0
  314. package/es/icons/HomeOutlined.d.ts +2 -0
  315. package/es/icons/HomeOutlined.js +48 -0
  316. package/es/icons/index.d.ts +2 -0
  317. package/es/icons/index.js +16 -12
  318. package/es/lang/zh_TW.js +0 -1
  319. package/es/style/index.scss +2 -0
  320. package/es/style/themes/dark.scss +6 -1
  321. package/es/style/themes/default.scss +57 -45
  322. package/es/style/themes/rounded.scss +12 -10
  323. package/es/style/themes/theme-util.scss +4 -0
  324. package/es/style/util.scss +6 -6
  325. package/es/utils/core.d.ts +10 -0
  326. package/es/utils/core.js +2 -3
  327. package/es/utils/validate.js +2 -2
  328. package/lib/components.d.ts +2 -0
  329. package/lib/components.js +78 -74
  330. package/lib/ele-alert/props.d.ts +17 -0
  331. package/lib/ele-alert/props.js +17 -17
  332. package/lib/ele-alert/style/css-var.scss +1 -0
  333. package/lib/ele-alert/style/index.scss +4 -4
  334. package/lib/ele-app/style/common.scss +2 -2
  335. package/lib/ele-app/style/css-var.scss +2 -2
  336. package/lib/ele-app/style/message.scss +4 -5
  337. package/lib/ele-app/style/overwrite.scss +57 -2
  338. package/lib/ele-app/types/index.d.ts +8 -2
  339. package/lib/ele-avatar-group/index.d.ts +4 -4
  340. package/lib/ele-avatar-group/index.js +32 -32
  341. package/lib/ele-avatar-group/props.d.ts +18 -3
  342. package/lib/ele-avatar-group/props.js +15 -15
  343. package/lib/ele-avatar-group/style/index.js +0 -1
  344. package/lib/ele-avatar-group/style/index.scss +5 -1
  345. package/lib/ele-avatar-group/types/index.d.ts +0 -16
  346. package/lib/ele-bar-code/props.d.ts +3 -0
  347. package/lib/ele-bar-code/props.js +3 -3
  348. package/lib/ele-basic-select/components/select-tag.d.ts +8 -0
  349. package/lib/ele-basic-select/components/select-tag.js +4 -4
  350. package/lib/ele-basic-select/index.d.ts +4 -3
  351. package/lib/ele-basic-select/index.js +25 -14
  352. package/lib/ele-basic-select/props.d.ts +27 -1
  353. package/lib/ele-basic-select/props.js +26 -26
  354. package/lib/ele-basic-select/style/index.js +1 -1
  355. package/lib/ele-basic-select/style/index.scss +4 -4
  356. package/lib/ele-bottom-bar/props.d.ts +2 -0
  357. package/lib/ele-bottom-bar/props.js +2 -2
  358. package/lib/ele-bottom-bar/style/css-var.scss +1 -0
  359. package/lib/ele-breadcrumb/props.d.ts +1 -0
  360. package/lib/ele-breadcrumb/props.js +1 -1
  361. package/lib/ele-card/props.d.ts +7 -0
  362. package/lib/ele-card/props.js +7 -7
  363. package/lib/ele-card/style/css-var.scss +1 -0
  364. package/lib/ele-card/style/index.scss +3 -2
  365. package/lib/ele-check-card/components/card-item.d.ts +12 -0
  366. package/lib/ele-check-card/components/card-item.js +6 -6
  367. package/lib/ele-check-card/index.d.ts +2 -2
  368. package/lib/ele-check-card/props.d.ts +12 -0
  369. package/lib/ele-check-card/props.js +12 -12
  370. package/lib/ele-check-card/style/css-var.scss +1 -0
  371. package/lib/ele-check-card/style/index.scss +4 -4
  372. package/lib/ele-config-provider/index.d.ts +2 -2
  373. package/lib/ele-config-provider/props.d.ts +5 -1
  374. package/lib/ele-config-provider/props.js +4 -4
  375. package/lib/ele-copyable/index.d.ts +7 -6
  376. package/lib/ele-copyable/props.d.ts +13 -2
  377. package/lib/ele-copyable/props.js +12 -12
  378. package/lib/ele-copyable/types/index.d.ts +0 -5
  379. package/lib/ele-count-up/props.d.ts +4 -0
  380. package/lib/ele-count-up/props.js +4 -4
  381. package/lib/ele-cropper/components/cropper-preview.d.ts +4 -0
  382. package/lib/ele-cropper/components/cropper-preview.js +2 -2
  383. package/lib/ele-cropper/components/cropper-tools.d.ts +12 -3
  384. package/lib/ele-cropper/components/cropper-tools.js +5 -5
  385. package/lib/ele-cropper/index.d.ts +2 -2
  386. package/lib/ele-cropper/props.d.ts +16 -2
  387. package/lib/ele-cropper/props.js +15 -15
  388. package/lib/ele-cropper-modal/index.d.ts +2 -2
  389. package/lib/ele-cropper-modal/props.d.ts +5 -1
  390. package/lib/ele-cropper-modal/props.js +4 -4
  391. package/lib/ele-dashboard/props.d.ts +4 -0
  392. package/lib/ele-dashboard/props.js +4 -4
  393. package/lib/{ele-pro-table/components/table-view.d.ts → ele-data-table/index.d.ts} +102 -60
  394. package/lib/ele-data-table/index.js +191 -0
  395. package/lib/ele-data-table/props.d.ts +256 -0
  396. package/lib/ele-data-table/props.js +79 -0
  397. package/lib/ele-data-table/style/css-var.scss +72 -0
  398. package/lib/ele-data-table/style/index.js +5 -0
  399. package/lib/ele-data-table/style/index.scss +385 -0
  400. package/lib/ele-data-table/types/index.d.ts +191 -0
  401. package/lib/ele-data-table/util.d.ts +261 -0
  402. package/lib/ele-data-table/util.js +417 -0
  403. package/lib/ele-dot/props.d.ts +5 -0
  404. package/lib/ele-dot/props.js +5 -5
  405. package/lib/ele-drawer/index.d.ts +1 -1
  406. package/lib/ele-drawer/props.d.ts +5 -0
  407. package/lib/ele-drawer/props.js +5 -5
  408. package/lib/ele-drawer/style/css-var.scss +1 -0
  409. package/lib/ele-dropdown/index.d.ts +1 -1
  410. package/lib/ele-dropdown/props.d.ts +8 -0
  411. package/lib/ele-dropdown/props.js +8 -8
  412. package/lib/ele-dropdown/style/css-var.scss +1 -0
  413. package/lib/ele-dropdown/style/index.scss +4 -0
  414. package/lib/ele-edit-tag/index.d.ts +15 -17
  415. package/lib/ele-edit-tag/index.js +105 -76
  416. package/lib/ele-edit-tag/props.d.ts +16 -6
  417. package/lib/ele-edit-tag/props.js +15 -18
  418. package/lib/ele-edit-tag/style/index.scss +7 -3
  419. package/lib/ele-ellipsis/index.d.ts +4 -4
  420. package/lib/ele-ellipsis/props.d.ts +3 -0
  421. package/lib/ele-ellipsis/props.js +3 -3
  422. package/lib/ele-ellipsis/style/index.scss +1 -1
  423. package/lib/ele-ellipsis/types/index.d.ts +1 -6
  424. package/lib/ele-file-list/components/file-grid-item.d.ts +20 -5
  425. package/lib/ele-file-list/components/file-grid-item.js +7 -7
  426. package/lib/ele-file-list/components/file-grid.d.ts +26 -3
  427. package/lib/ele-file-list/components/file-grid.js +11 -11
  428. package/lib/ele-file-list/components/file-sort.d.ts +6 -0
  429. package/lib/ele-file-list/components/file-sort.js +3 -3
  430. package/lib/ele-file-list/components/file-table-item.d.ts +22 -5
  431. package/lib/ele-file-list/components/file-table-item.js +8 -8
  432. package/lib/ele-file-list/components/file-table.d.ts +37 -4
  433. package/lib/ele-file-list/components/file-table.js +16 -16
  434. package/lib/ele-file-list/index.d.ts +3 -3
  435. package/lib/ele-file-list/props.d.ts +22 -1
  436. package/lib/ele-file-list/props.js +20 -20
  437. package/lib/ele-file-list/style/css-var.scss +1 -0
  438. package/lib/ele-file-list/style/index.scss +15 -15
  439. package/lib/ele-file-list/types/index.d.ts +1 -11
  440. package/lib/ele-icon-select/components/icon-grid.d.ts +21 -3
  441. package/lib/ele-icon-select/components/icon-grid.js +33 -11
  442. package/lib/ele-icon-select/components/icon-popper.d.ts +34 -3
  443. package/lib/ele-icon-select/components/icon-popper.js +16 -16
  444. package/lib/ele-icon-select/index.d.ts +8 -8
  445. package/lib/ele-icon-select/props.d.ts +38 -3
  446. package/lib/ele-icon-select/props.js +36 -36
  447. package/lib/ele-icon-select/style/css-var.scss +1 -0
  448. package/lib/ele-icon-select/style/index.scss +2 -8
  449. package/lib/ele-loading/index.d.ts +2 -0
  450. package/lib/ele-loading/props.d.ts +10 -0
  451. package/lib/ele-loading/props.js +10 -10
  452. package/lib/ele-loading/style/css-var.scss +1 -0
  453. package/lib/ele-map-picker/components/map-view.d.ts +2 -2
  454. package/lib/ele-map-picker/components/map-view.js +7 -7
  455. package/lib/ele-map-picker/index.d.ts +5 -5
  456. package/lib/ele-map-picker/props.d.ts +53 -0
  457. package/lib/ele-map-picker/props.js +31 -31
  458. package/lib/ele-map-picker/style/css-var.scss +1 -0
  459. package/lib/ele-map-picker/style/index.scss +5 -5
  460. package/lib/ele-menus/index.d.ts +1 -1
  461. package/lib/ele-menus/index.js +2 -1
  462. package/lib/ele-menus/props.d.ts +8 -0
  463. package/lib/ele-menus/props.js +8 -8
  464. package/lib/ele-menus/style/css-var.scss +1 -0
  465. package/lib/ele-menus/style/index.scss +23 -23
  466. package/lib/ele-menus/util.d.ts +5 -1
  467. package/lib/ele-menus/util.js +5 -8
  468. package/lib/ele-modal/index.d.ts +1 -1
  469. package/lib/ele-modal/props.d.ts +18 -0
  470. package/lib/ele-modal/props.js +18 -18
  471. package/lib/ele-modal/style/css-var.scss +1 -0
  472. package/lib/ele-modal/style/index.scss +5 -5
  473. package/lib/ele-page/props.d.ts +4 -0
  474. package/lib/ele-page/props.js +4 -4
  475. package/lib/ele-page/style/css-var.scss +1 -0
  476. package/lib/ele-page/style/index.scss +5 -4
  477. package/lib/ele-pagination/index.d.ts +4 -1
  478. package/lib/ele-pagination/props.d.ts +4 -0
  479. package/lib/ele-pagination/props.js +3 -3
  480. package/lib/ele-pagination/style/css-var.scss +1 -0
  481. package/lib/ele-pagination/style/index.scss +6 -6
  482. package/lib/ele-popconfirm/index.d.ts +206 -9
  483. package/lib/ele-popconfirm/index.js +105 -109
  484. package/lib/ele-popconfirm/props.d.ts +105 -1
  485. package/lib/ele-popconfirm/props.js +15 -16
  486. package/lib/ele-popconfirm/style/css-var.scss +1 -0
  487. package/lib/ele-popover/index.d.ts +201 -6
  488. package/lib/ele-popover/index.js +25 -43
  489. package/lib/ele-popover/props.d.ts +105 -1
  490. package/lib/ele-popover/props.js +12 -4
  491. package/lib/ele-popover/style/css-var.scss +1 -71
  492. package/lib/ele-popover/style/index.js +1 -1
  493. package/lib/ele-popover/style/index.scss +2 -9
  494. package/lib/ele-printer/props.d.ts +12 -0
  495. package/lib/ele-printer/props.js +12 -12
  496. package/lib/ele-pro-layout/components/pro-header.d.ts +32 -0
  497. package/lib/ele-pro-layout/components/pro-header.js +20 -20
  498. package/lib/ele-pro-layout/components/pro-iframe.d.ts +10 -0
  499. package/lib/ele-pro-layout/components/pro-iframe.js +5 -5
  500. package/lib/ele-pro-layout/components/pro-sidebar.d.ts +22 -0
  501. package/lib/ele-pro-layout/components/pro-sidebar.js +16 -19
  502. package/lib/ele-pro-layout/components/pro-sidebox.d.ts +20 -0
  503. package/lib/ele-pro-layout/components/pro-sidebox.js +15 -18
  504. package/lib/ele-pro-layout/components/pro-tabs.d.ts +22 -3
  505. package/lib/ele-pro-layout/components/pro-tabs.js +29 -15
  506. package/lib/ele-pro-layout/components/tab-dropdown.d.ts +8 -2
  507. package/lib/ele-pro-layout/components/tab-dropdown.js +3 -3
  508. package/lib/ele-pro-layout/index.d.ts +17 -13
  509. package/lib/ele-pro-layout/props.d.ts +56 -1
  510. package/lib/ele-pro-layout/props.js +55 -55
  511. package/lib/ele-pro-layout/style/css-var.scss +1 -0
  512. package/lib/ele-pro-layout/style/header.scss +4 -4
  513. package/lib/ele-pro-layout/style/layout-theme.scss +2 -2
  514. package/lib/ele-pro-layout/style/layout.scss +4 -0
  515. package/lib/ele-pro-layout/style/tabs.scss +4 -9
  516. package/lib/ele-pro-layout/types/index.d.ts +0 -5
  517. package/lib/ele-pro-layout/util.js +1 -1
  518. package/lib/ele-pro-table/components/table-tools.d.ts +18 -1
  519. package/lib/ele-pro-table/components/table-tools.js +9 -9
  520. package/lib/ele-pro-table/components/tool-column-list.d.ts +49 -0
  521. package/lib/ele-pro-table/components/tool-column-list.js +185 -0
  522. package/lib/ele-pro-table/components/tool-column.d.ts +35 -15
  523. package/lib/ele-pro-table/components/tool-column.js +178 -263
  524. package/lib/ele-pro-table/index.d.ts +103 -129
  525. package/lib/ele-pro-table/index.js +140 -249
  526. package/lib/ele-pro-table/props.d.ts +73 -267
  527. package/lib/ele-pro-table/props.js +29 -94
  528. package/lib/ele-pro-table/style/css-var.scss +1 -4
  529. package/lib/ele-pro-table/style/index.js +5 -9
  530. package/lib/ele-pro-table/style/index.scss +85 -415
  531. package/lib/ele-pro-table/types/index.d.ts +8 -116
  532. package/lib/ele-pro-table/util.d.ts +6 -72
  533. package/lib/ele-pro-table/util.js +58 -260
  534. package/lib/ele-qr-code/props.d.ts +9 -0
  535. package/lib/ele-qr-code/props.js +9 -9
  536. package/lib/ele-qr-code/qrcodegen.js +2 -2
  537. package/lib/ele-qr-code/types/index.d.ts +10 -0
  538. package/lib/ele-qr-code-svg/index.d.ts +2 -2
  539. package/lib/ele-segmented/index.d.ts +2 -2
  540. package/lib/ele-segmented/props.d.ts +7 -0
  541. package/lib/ele-segmented/props.js +7 -7
  542. package/lib/ele-segmented/style/css-var.scss +1 -0
  543. package/lib/ele-segmented/style/index.scss +6 -6
  544. package/lib/ele-split-panel/index.d.ts +4 -4
  545. package/lib/ele-split-panel/props.d.ts +15 -0
  546. package/lib/ele-split-panel/props.js +15 -15
  547. package/lib/ele-split-panel/style/index.scss +13 -13
  548. package/lib/ele-steps/props.d.ts +2 -0
  549. package/lib/ele-steps/props.js +2 -2
  550. package/lib/ele-steps/style/css-var.scss +1 -0
  551. package/lib/ele-steps/style/index.scss +8 -8
  552. package/lib/ele-tab-tool/props.d.ts +2 -0
  553. package/lib/ele-tab-tool/props.js +2 -2
  554. package/lib/ele-tab-wrap/props.d.ts +2 -0
  555. package/lib/ele-tab-wrap/props.js +2 -2
  556. package/lib/ele-table/index.d.ts +12 -0
  557. package/lib/ele-table/index.js +2 -0
  558. package/lib/ele-table/props.d.ts +10 -0
  559. package/lib/ele-table/props.js +11 -4
  560. package/lib/ele-table/style/css-var.scss +1 -0
  561. package/lib/ele-table/style/index.scss +103 -22
  562. package/lib/ele-table-select/index.d.ts +39 -15
  563. package/lib/ele-table-select/index.js +1 -5
  564. package/lib/ele-table-select/props.d.ts +32 -1
  565. package/lib/ele-table-select/props.js +31 -31
  566. package/lib/ele-table-select/style/css-var.scss +1 -0
  567. package/lib/ele-table-select/style/index.scss +3 -3
  568. package/lib/ele-table-select/types/index.d.ts +0 -10
  569. package/lib/ele-tabs/components/tab-title.d.ts +19 -5
  570. package/lib/ele-tabs/components/tab-title.js +7 -7
  571. package/lib/ele-tabs/index.d.ts +4 -5
  572. package/lib/ele-tabs/index.js +1 -1
  573. package/lib/ele-tabs/props.d.ts +16 -3
  574. package/lib/ele-tabs/props.js +13 -13
  575. package/lib/ele-tabs/style/css-var.scss +1 -0
  576. package/lib/ele-tabs/style/index.scss +46 -22
  577. package/lib/ele-text/props.d.ts +10 -0
  578. package/lib/ele-text/props.js +10 -10
  579. package/lib/ele-text/style/css-var.scss +1 -0
  580. package/lib/ele-text/style/index.scss +4 -4
  581. package/lib/ele-tool/props.d.ts +3 -0
  582. package/lib/ele-tool/props.js +3 -3
  583. package/lib/ele-tool/style/css-var.scss +1 -0
  584. package/lib/ele-tool/style/index.scss +1 -2
  585. package/lib/ele-toolbar/props.d.ts +6 -0
  586. package/lib/ele-toolbar/props.js +6 -6
  587. package/lib/ele-toolbar/style/css-var.scss +1 -0
  588. package/lib/ele-toolbar/style/index.scss +2 -2
  589. package/lib/ele-tooltip/index.d.ts +11 -10
  590. package/lib/ele-tooltip/index.js +38 -30
  591. package/lib/ele-tooltip/props.d.ts +8 -1
  592. package/lib/ele-tooltip/props.js +9 -5
  593. package/lib/ele-tooltip/style/css-var.scss +72 -0
  594. package/lib/ele-tooltip/style/index.js +0 -1
  595. package/lib/ele-tooltip/style/index.scss +8 -2
  596. package/lib/ele-tour/index.d.ts +4 -6
  597. package/lib/ele-tour/index.js +29 -37
  598. package/lib/ele-tour/props.d.ts +6 -0
  599. package/lib/ele-tour/props.js +6 -6
  600. package/lib/ele-tour/style/index.js +1 -1
  601. package/lib/ele-tour/style/index.scss +6 -2
  602. package/lib/ele-tour/types/index.d.ts +2 -1
  603. package/lib/ele-tour/util.d.ts +2 -2
  604. package/lib/ele-tour/util.js +6 -2
  605. package/lib/ele-upload-list/components/list-item.d.ts +11 -1
  606. package/lib/ele-upload-list/components/list-item.js +5 -5
  607. package/lib/ele-upload-list/index.d.ts +1 -1
  608. package/lib/ele-upload-list/index.js +4 -4
  609. package/lib/ele-upload-list/props.d.ts +18 -0
  610. package/lib/ele-upload-list/props.js +18 -18
  611. package/lib/ele-virtual-table/components/body-cell.d.ts +150 -0
  612. package/lib/ele-virtual-table/components/body-cell.js +413 -0
  613. package/lib/ele-virtual-table/components/body-row.d.ts +148 -0
  614. package/lib/ele-virtual-table/components/body-row.js +205 -0
  615. package/lib/ele-virtual-table/components/cell-checkbox.d.ts +32 -0
  616. package/lib/ele-virtual-table/components/cell-checkbox.js +48 -0
  617. package/lib/ele-virtual-table/components/cell-filter.d.ts +48 -0
  618. package/lib/ele-virtual-table/components/cell-filter.js +210 -0
  619. package/lib/ele-virtual-table/components/expand-row.d.ts +18 -0
  620. package/lib/ele-virtual-table/components/expand-row.js +28 -0
  621. package/lib/ele-virtual-table/components/footer-row.d.ts +43 -0
  622. package/lib/ele-virtual-table/components/footer-row.js +104 -0
  623. package/lib/ele-virtual-table/components/header-cell.d.ts +97 -0
  624. package/lib/ele-virtual-table/components/header-cell.js +260 -0
  625. package/lib/ele-virtual-table/components/header-row.d.ts +89 -0
  626. package/lib/ele-virtual-table/components/header-row.js +125 -0
  627. package/lib/ele-virtual-table/index.js +986 -0
  628. package/lib/ele-virtual-table/props.d.ts +148 -0
  629. package/lib/ele-virtual-table/props.js +13 -0
  630. package/lib/ele-virtual-table/style/css-var.scss +127 -0
  631. package/lib/ele-virtual-table/style/index.js +10 -0
  632. package/lib/ele-virtual-table/style/index.scss +666 -0
  633. package/lib/ele-virtual-table/types/index.d.ts +157 -0
  634. package/lib/ele-virtual-table/util.d.ts +200 -0
  635. package/lib/ele-virtual-table/util.js +562 -0
  636. package/lib/ele-watermark/index.js +4 -0
  637. package/lib/ele-watermark/props.d.ts +12 -0
  638. package/lib/ele-watermark/props.js +12 -12
  639. package/lib/icons/FilterFilled.d.ts +2 -0
  640. package/lib/icons/FilterFilled.js +22 -0
  641. package/lib/icons/HomeOutlined.d.ts +2 -0
  642. package/lib/icons/HomeOutlined.js +47 -0
  643. package/lib/icons/index.d.ts +2 -0
  644. package/lib/icons/index.js +4 -0
  645. package/lib/lang/zh_TW.js +0 -1
  646. package/lib/style/index.scss +2 -0
  647. package/lib/style/themes/dark.scss +6 -1
  648. package/lib/style/themes/default.scss +57 -45
  649. package/lib/style/themes/rounded.scss +12 -10
  650. package/lib/style/themes/theme-util.scss +4 -0
  651. package/lib/style/util.scss +6 -6
  652. package/lib/utils/core.d.ts +10 -0
  653. package/lib/utils/core.js +2 -3
  654. package/lib/utils/validate.js +2 -2
  655. package/package.json +30 -30
  656. package/typings/global.d.ts +3 -1
  657. package/es/ele-pro-table/components/table-view.js +0 -138
  658. package/lib/ele-pro-table/components/table-view.js +0 -137
@@ -2,23 +2,23 @@
2
2
  const vue = require("vue");
3
3
  const elementPlus = require("element-plus");
4
4
  const iconsVue = require("@element-plus/icons-vue");
5
- const receiver = require("../ele-config-provider/receiver");
6
5
  const core = require("../utils/core");
7
- const ElePopover = require("../ele-popover/index");
6
+ const EleTooltip = require("../ele-tooltip/index");
8
7
  const props = require("./props");
9
8
  const _sfc_main = vue.defineComponent({
10
9
  name: "ElePopconfirm",
11
- components: { QuestionFilled: iconsVue.QuestionFilled, ElIcon: elementPlus.ElIcon, ElButton: elementPlus.ElButton, ElePopover },
10
+ components: { QuestionFilled: iconsVue.QuestionFilled, ElIcon: elementPlus.ElIcon, ElButton: elementPlus.ElButton, EleTooltip },
12
11
  props: props.popconfirmProps,
13
12
  emits: props.popconfirmEmits,
14
13
  setup(props2, { emit }) {
15
14
  const { t } = elementPlus.useLocale();
16
- const { authenticated } = receiver.useLicense();
17
- const popoverRef = vue.ref();
18
- const rootProps = vue.computed(() => {
15
+ const tooltipRef = vue.ref(null);
16
+ const tooltipProps = vue.computed(() => {
19
17
  const options = core.omit(props2, [
20
18
  "title",
21
19
  "content",
20
+ "bodyClass",
21
+ "bodyStyle",
22
22
  "titleStyle",
23
23
  "contentStyle",
24
24
  "confirmButtonText",
@@ -41,16 +41,16 @@ const _sfc_main = vue.defineComponent({
41
41
  "onAfter-enter",
42
42
  "onAfter-leave"
43
43
  ]);
44
- if (authenticated.value) {
45
- const classes = ["ele-popconfirm"];
46
- if (typeof props2.popperClass === "string" && props2.popperClass) {
47
- classes.push(props2.popperClass);
48
- }
49
- options.popperClass = classes.join(" ");
44
+ options.ariaLabel = props2.title;
45
+ options.gpuAcceleration = props2.transition === "el-fade-in-linear";
46
+ const classes = ["ele-popconfirm"];
47
+ if (typeof props2.popperClass === "string" && props2.popperClass) {
48
+ classes.push(props2.popperClass);
50
49
  }
50
+ options.popperClass = classes.join(" ");
51
51
  return options;
52
52
  });
53
- const elIconProps = vue.computed(() => {
53
+ const iconOptions = vue.computed(() => {
54
54
  const options = props2.iconProps || {};
55
55
  if (props2.iconColor) {
56
56
  options.style = Object.assign(
@@ -78,21 +78,15 @@ const _sfc_main = vue.defineComponent({
78
78
  return props2.cancelButtonText || t("el.popconfirm.cancelButtonText");
79
79
  });
80
80
  const hidePopper = () => {
81
- if (authenticated.value) {
82
- popoverRef.value && popoverRef.value.hide();
83
- }
81
+ tooltipRef.value && tooltipRef.value.hide();
84
82
  };
85
83
  const confirm = (e) => {
86
- if (authenticated.value) {
87
- hidePopper();
88
- emit("confirm", e);
89
- }
84
+ hidePopper();
85
+ emit("confirm", e);
90
86
  };
91
87
  const cancel = (e) => {
92
- if (authenticated.value) {
93
- hidePopper();
94
- emit("cancel", e);
95
- }
88
+ hidePopper();
89
+ emit("cancel", e);
96
90
  };
97
91
  const onUpdateVisible = (visible) => {
98
92
  emit("update:visible", visible);
@@ -110,11 +104,12 @@ const _sfc_main = vue.defineComponent({
110
104
  emit("after-leave");
111
105
  };
112
106
  return {
113
- popoverRef,
114
- rootProps,
115
- elIconProps,
107
+ tooltipRef,
108
+ tooltipProps,
109
+ iconOptions,
116
110
  confirmText,
117
111
  cancelText,
112
+ hidePopper,
118
113
  confirm,
119
114
  cancel,
120
115
  onUpdateVisible,
@@ -138,93 +133,94 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
138
133
  const _component_QuestionFilled = vue.resolveComponent("QuestionFilled");
139
134
  const _component_ElIcon = vue.resolveComponent("ElIcon");
140
135
  const _component_ElButton = vue.resolveComponent("ElButton");
141
- const _component_ElePopover = vue.resolveComponent("ElePopover");
142
- return vue.openBlock(), vue.createBlock(_component_ElePopover, vue.mergeProps(_ctx.rootProps, {
143
- ref: "popoverRef",
136
+ const _component_EleTooltip = vue.resolveComponent("EleTooltip");
137
+ return vue.openBlock(), vue.createBlock(_component_EleTooltip, vue.mergeProps({ tabindex: _ctx.tabindex }, _ctx.tooltipProps, {
138
+ ref: "tooltipRef",
139
+ isPopover: true,
144
140
  "onUpdate:visible": _ctx.onUpdateVisible,
145
- onBeforeEnter: _ctx.onPopBeforeEnter,
146
- onBeforeLeave: _ctx.onPopBeforeLeave,
147
- onAfterEnter: _ctx.onPopAfterEnter,
148
- onAfterLeave: _ctx.onPopAfterLeave
149
- }), vue.createSlots({
141
+ onBeforeShow: _ctx.onPopBeforeEnter,
142
+ onBeforeHide: _ctx.onPopBeforeLeave,
143
+ onShow: _ctx.onPopAfterEnter,
144
+ onHide: _ctx.onPopAfterLeave
145
+ }), {
150
146
  body: vue.withCtx(() => [
151
- vue.createElementVNode("div", _hoisted_1, [
152
- !_ctx.hideIcon ? (vue.openBlock(), vue.createBlock(_component_ElIcon, vue.normalizeProps(vue.mergeProps({ key: 0 }, _ctx.elIconProps)), {
153
- default: vue.withCtx(() => [
154
- _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.icon), {
155
- key: 0,
156
- style: vue.normalizeStyle(_ctx.iconStyle)
157
- }, null, 8, ["style"])) : (vue.openBlock(), vue.createBlock(_component_QuestionFilled, {
158
- key: 1,
159
- style: vue.normalizeStyle(_ctx.iconStyle)
160
- }, null, 8, ["style"]))
161
- ]),
162
- _: 1
163
- }, 16)) : vue.createCommentVNode("", true),
164
- vue.createElementVNode("div", _hoisted_2, [
165
- (_ctx.content || _ctx.$slots.content) && (_ctx.title || _ctx.$slots.title) ? (vue.openBlock(), vue.createElementBlock("div", {
166
- key: 0,
167
- class: "ele-popconfirm-title",
168
- style: vue.normalizeStyle(_ctx.titleStyle)
169
- }, [
170
- vue.renderSlot(_ctx.$slots, "title", {}, () => [
171
- vue.createTextVNode(vue.toDisplayString(_ctx.title), 1)
172
- ])
173
- ], 4)) : vue.createCommentVNode("", true),
174
- vue.createElementVNode("div", {
175
- class: "ele-popconfirm-content",
176
- style: vue.normalizeStyle(_ctx.contentStyle)
177
- }, [
178
- vue.renderSlot(_ctx.$slots, "content", {}, () => [
179
- vue.createTextVNode(vue.toDisplayString(_ctx.content || _ctx.title), 1)
180
- ])
181
- ], 4)
182
- ])
183
- ]),
184
147
  vue.createElementVNode("div", {
185
- class: "ele-popconfirm-action",
186
- style: vue.normalizeStyle(_ctx.footerStyle)
148
+ class: vue.normalizeClass(["ele-popover-body", _ctx.bodyClass]),
149
+ style: vue.normalizeStyle(_ctx.bodyStyle)
187
150
  }, [
188
- vue.renderSlot(_ctx.$slots, "action", {
189
- cancel: _ctx.cancel,
190
- confirm: _ctx.confirm,
191
- cancelText: _ctx.cancelText,
192
- confirmText: _ctx.confirmText
193
- }),
194
- !_ctx.hideCancelButton ? (vue.openBlock(), vue.createBlock(_component_ElButton, vue.mergeProps({
195
- key: 0,
196
- size: "small",
197
- type: _ctx.cancelButtonType === "text" ? void 0 : _ctx.cancelButtonType,
198
- text: _ctx.cancelButtonType === "text"
199
- }, _ctx.cancelButtonProps || {}, { onClick: _ctx.cancel }), {
200
- default: vue.withCtx(() => [
201
- vue.createTextVNode(vue.toDisplayString(_ctx.cancelText), 1)
202
- ]),
203
- _: 1
204
- }, 16, ["type", "text", "onClick"])) : vue.createCommentVNode("", true),
205
- !_ctx.hideConfirmButton ? (vue.openBlock(), vue.createBlock(_component_ElButton, vue.mergeProps({
206
- key: 1,
207
- size: "small",
208
- type: _ctx.confirmButtonType === "text" ? void 0 : _ctx.confirmButtonType,
209
- text: _ctx.confirmButtonType === "text"
210
- }, _ctx.confirmButtonProps || {}, { onClick: _ctx.confirm }), {
211
- default: vue.withCtx(() => [
212
- vue.createTextVNode(vue.toDisplayString(_ctx.confirmText), 1)
213
- ]),
214
- _: 1
215
- }, 16, ["type", "text", "onClick"])) : vue.createCommentVNode("", true)
216
- ], 4)
151
+ vue.createElementVNode("div", _hoisted_1, [
152
+ !_ctx.hideIcon ? (vue.openBlock(), vue.createBlock(_component_ElIcon, vue.normalizeProps(vue.mergeProps({ key: 0 }, _ctx.iconOptions)), {
153
+ default: vue.withCtx(() => [
154
+ _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.icon), {
155
+ key: 0,
156
+ style: vue.normalizeStyle(_ctx.iconStyle)
157
+ }, null, 8, ["style"])) : (vue.openBlock(), vue.createBlock(_component_QuestionFilled, {
158
+ key: 1,
159
+ style: vue.normalizeStyle(_ctx.iconStyle)
160
+ }, null, 8, ["style"]))
161
+ ]),
162
+ _: 1
163
+ }, 16)) : vue.createCommentVNode("", true),
164
+ vue.createElementVNode("div", _hoisted_2, [
165
+ (_ctx.content || _ctx.$slots.content) && (_ctx.title || _ctx.$slots.title) ? (vue.openBlock(), vue.createElementBlock("div", {
166
+ key: 0,
167
+ class: "ele-popconfirm-title",
168
+ style: vue.normalizeStyle(_ctx.titleStyle)
169
+ }, [
170
+ vue.renderSlot(_ctx.$slots, "title", {}, () => [
171
+ vue.createTextVNode(vue.toDisplayString(_ctx.title), 1)
172
+ ])
173
+ ], 4)) : vue.createCommentVNode("", true),
174
+ vue.createElementVNode("div", {
175
+ class: "ele-popconfirm-content",
176
+ style: vue.normalizeStyle(_ctx.contentStyle)
177
+ }, [
178
+ vue.renderSlot(_ctx.$slots, "content", {}, () => [
179
+ vue.createTextVNode(vue.toDisplayString(_ctx.content || _ctx.title), 1)
180
+ ])
181
+ ], 4)
182
+ ])
183
+ ]),
184
+ vue.createElementVNode("div", {
185
+ class: "ele-popconfirm-action",
186
+ style: vue.normalizeStyle(_ctx.footerStyle)
187
+ }, [
188
+ vue.renderSlot(_ctx.$slots, "action", {
189
+ cancel: _ctx.cancel,
190
+ confirm: _ctx.confirm,
191
+ cancelText: _ctx.cancelText,
192
+ confirmText: _ctx.confirmText
193
+ }),
194
+ !_ctx.hideCancelButton ? (vue.openBlock(), vue.createBlock(_component_ElButton, vue.mergeProps({
195
+ key: 0,
196
+ size: "small",
197
+ type: _ctx.cancelButtonType === "text" ? void 0 : _ctx.cancelButtonType,
198
+ text: _ctx.cancelButtonType === "text"
199
+ }, _ctx.cancelButtonProps || {}, { onClick: _ctx.cancel }), {
200
+ default: vue.withCtx(() => [
201
+ vue.createTextVNode(vue.toDisplayString(_ctx.cancelText), 1)
202
+ ]),
203
+ _: 1
204
+ }, 16, ["type", "text", "onClick"])) : vue.createCommentVNode("", true),
205
+ !_ctx.hideConfirmButton ? (vue.openBlock(), vue.createBlock(_component_ElButton, vue.mergeProps({
206
+ key: 1,
207
+ size: "small",
208
+ type: _ctx.confirmButtonType === "text" ? void 0 : _ctx.confirmButtonType,
209
+ text: _ctx.confirmButtonType === "text"
210
+ }, _ctx.confirmButtonProps || {}, { onClick: _ctx.confirm }), {
211
+ default: vue.withCtx(() => [
212
+ vue.createTextVNode(vue.toDisplayString(_ctx.confirmText), 1)
213
+ ]),
214
+ _: 1
215
+ }, 16, ["type", "text", "onClick"])) : vue.createCommentVNode("", true)
216
+ ], 4)
217
+ ], 6)
218
+ ]),
219
+ default: vue.withCtx(() => [
220
+ _ctx.$slots.reference ? vue.renderSlot(_ctx.$slots, "reference", { key: 0 }) : vue.createCommentVNode("", true)
217
221
  ]),
218
- _: 2
219
- }, [
220
- _ctx.$slots.reference ? {
221
- name: "reference",
222
- fn: vue.withCtx(() => [
223
- vue.renderSlot(_ctx.$slots, "reference")
224
- ]),
225
- key: "0"
226
- } : void 0
227
- ]), 1040, ["onUpdate:visible", "onBeforeEnter", "onBeforeLeave", "onAfterEnter", "onAfterLeave"]);
222
+ _: 3
223
+ }, 16, ["tabindex", "onUpdate:visible", "onBeforeShow", "onBeforeHide", "onShow", "onHide"]);
228
224
  }
229
225
  const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
230
226
  module.exports = index;
@@ -8,29 +8,47 @@ export declare const popconfirmProps: {
8
8
  type: PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => "hover" | "focus" | "click" | "contextmenu" | import("element-plus").TooltipTriggerType[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").TooltipTriggerType>) | ((new (...args: any[]) => "hover" | "focus" | "click" | "contextmenu" | import("element-plus").TooltipTriggerType[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").TooltipTriggerType>))[], unknown, unknown>>;
9
9
  default: string;
10
10
  };
11
+ /** 确认按钮文字 */
11
12
  confirmButtonText: StringConstructor;
13
+ /** 取消按钮文字 */
12
14
  cancelButtonText: StringConstructor;
15
+ /** 确认按钮类型 */
13
16
  confirmButtonType: {
14
17
  type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "success" | "warning" | "info" | "text" | "primary" | "danger", unknown> | undefined>;
15
18
  default: string;
16
19
  };
20
+ /** 取消按钮类型 */
17
21
  cancelButtonType: {
18
22
  type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "success" | "warning" | "info" | "text" | "primary" | "danger", unknown> | undefined>;
19
23
  default: string;
20
24
  };
25
+ /** 自定义图标 */
21
26
  icon: PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown> | undefined>;
27
+ /** 图标颜色 */
22
28
  iconColor: {
23
29
  type: StringConstructor;
24
30
  default: string;
25
31
  };
32
+ /** 是否隐藏图标 */
26
33
  hideIcon: BooleanConstructor;
34
+ /** 是否隐藏确认按钮 */
27
35
  hideConfirmButton: BooleanConstructor;
36
+ /** 是否隐藏取消按钮 */
28
37
  hideCancelButton: BooleanConstructor;
38
+ /** 图标样式 */
29
39
  iconStyle: PropType<Partial<import("vue").CSSProperties>>;
40
+ /** 图标组件属性 */
30
41
  iconProps: PropType<ElIconProps>;
42
+ /** 确认按钮组件属性 */
31
43
  confirmButtonProps: PropType<ElButtonProps>;
44
+ /** 取消按钮组件属性 */
32
45
  cancelButtonProps: PropType<ElButtonProps>;
46
+ /** 底栏样式 */
33
47
  footerStyle: PropType<Partial<import("vue").CSSProperties>>;
48
+ transition: {
49
+ type: StringConstructor;
50
+ default: string;
51
+ };
34
52
  bodyClass: StringConstructor;
35
53
  bodyStyle: PropType<Partial<import("vue").CSSProperties>>;
36
54
  titleStyle: PropType<Partial<import("vue").CSSProperties>>;
@@ -49,7 +67,6 @@ export declare const popconfirmProps: {
49
67
  disabled: BooleanConstructor;
50
68
  teleported: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
51
69
  visible: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => boolean) | (() => boolean | null) | ((new (...args: any[]) => boolean) | (() => boolean | null))[], unknown, unknown, null, boolean>;
52
- transition: StringConstructor;
53
70
  content: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
54
71
  popperStyle: {
55
72
  readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue) | ((new (...args: any[]) => string | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue))[], unknown, unknown>>;
@@ -72,6 +89,93 @@ export declare const popconfirmProps: {
72
89
  showArrow: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
73
90
  persistent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
74
91
  popperClass: StringConstructor;
92
+ bg: StringConstructor;
93
+ arrowBg: StringConstructor;
94
+ isPopover: BooleanConstructor;
95
+ id: StringConstructor;
96
+ role: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "menu" | "group" | "listbox" | "grid" | "tooltip" | "dialog" | "navigation" | "tree", unknown, "tooltip", boolean>;
97
+ strategy: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "fixed" | "absolute", unknown, "absolute", boolean>;
98
+ arrowOffset: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 5, boolean>;
99
+ triggerKeys: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => string[], boolean>;
100
+ virtualRef: {
101
+ readonly type: PropType<import("element-plus").Measurable>;
102
+ readonly required: false;
103
+ readonly validator: ((val: unknown) => boolean) | undefined;
104
+ __epPropKey: true;
105
+ };
106
+ virtualTriggering: BooleanConstructor;
107
+ onMouseenter: {
108
+ readonly type: PropType<(e: Event) => void>;
109
+ readonly required: false;
110
+ readonly validator: ((val: unknown) => boolean) | undefined;
111
+ __epPropKey: true;
112
+ };
113
+ onMouseleave: {
114
+ readonly type: PropType<(e: Event) => void>;
115
+ readonly required: false;
116
+ readonly validator: ((val: unknown) => boolean) | undefined;
117
+ __epPropKey: true;
118
+ };
119
+ onClick: {
120
+ readonly type: PropType<(e: Event) => void>;
121
+ readonly required: false;
122
+ readonly validator: ((val: unknown) => boolean) | undefined;
123
+ __epPropKey: true;
124
+ };
125
+ onKeydown: {
126
+ readonly type: PropType<(e: Event) => void>;
127
+ readonly required: false;
128
+ readonly validator: ((val: unknown) => boolean) | undefined;
129
+ __epPropKey: true;
130
+ };
131
+ onFocus: {
132
+ readonly type: PropType<(e: Event) => void>;
133
+ readonly required: false;
134
+ readonly validator: ((val: unknown) => boolean) | undefined;
135
+ __epPropKey: true;
136
+ };
137
+ onBlur: {
138
+ readonly type: PropType<(e: Event) => void>;
139
+ readonly required: false;
140
+ readonly validator: ((val: unknown) => boolean) | undefined;
141
+ __epPropKey: true;
142
+ };
143
+ onContextmenu: {
144
+ readonly type: PropType<(e: Event) => void>;
145
+ readonly required: false;
146
+ readonly validator: ((val: unknown) => boolean) | undefined;
147
+ __epPropKey: true;
148
+ };
149
+ open: BooleanConstructor;
150
+ appendTo: {
151
+ readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | ((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement))[], unknown, unknown>>;
152
+ readonly required: false;
153
+ readonly validator: ((val: unknown) => boolean) | undefined;
154
+ __epPropKey: true;
155
+ };
156
+ rawContent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
157
+ ariaLabel: StringConstructor;
158
+ pure: BooleanConstructor;
159
+ focusOnShow: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
160
+ trapping: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
161
+ referenceEl: {
162
+ readonly type: PropType<HTMLElement>;
163
+ readonly required: false;
164
+ readonly validator: ((val: unknown) => boolean) | undefined;
165
+ __epPropKey: true;
166
+ };
167
+ triggerTargetEl: {
168
+ readonly type: PropType<HTMLElement>;
169
+ readonly required: false;
170
+ readonly validator: ((val: unknown) => boolean) | undefined;
171
+ __epPropKey: true;
172
+ };
173
+ stopPopperMouseEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
174
+ zIndex: NumberConstructor;
175
+ boundariesPadding: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
176
+ fallbackPlacements: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").Placement[]) | (() => import("element-plus").Placement[]) | ((new (...args: any[]) => import("element-plus").Placement[]) | (() => import("element-plus").Placement[]))[], unknown, unknown, undefined, boolean>;
177
+ gpuAcceleration: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
178
+ className: StringConstructor;
75
179
  };
76
180
  export type PopconfirmProps = ExtractPropTypes<typeof popconfirmProps>;
77
181
  /**
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const elementPlus = require("element-plus");
4
3
  const props = require("../ele-popover/props");
5
4
  const popconfirmProps = {
6
5
  ...props.popoverProps,
@@ -8,46 +7,46 @@ const popconfirmProps = {
8
7
  type: String,
9
8
  default: "click"
10
9
  },
11
- // 确认按钮文字
10
+ /** 确认按钮文字 */
12
11
  confirmButtonText: String,
13
- // 取消按钮文字
12
+ /** 取消按钮文字 */
14
13
  cancelButtonText: String,
15
- // 确认按钮类型
14
+ /** 确认按钮类型 */
16
15
  confirmButtonType: {
17
16
  type: String,
18
17
  default: "primary"
19
18
  },
20
- // 取消按钮类型
19
+ /** 取消按钮类型 */
21
20
  cancelButtonType: {
22
21
  type: String,
23
22
  default: "text"
24
23
  },
25
- // 自定义图标
24
+ /** 自定义图标 */
26
25
  icon: [String, Object, Function],
27
- // 图标颜色
26
+ /** 图标颜色 */
28
27
  iconColor: {
29
28
  type: String,
30
29
  default: "#f90"
31
30
  },
32
- // 是否隐藏图标
31
+ /** 是否隐藏图标 */
33
32
  hideIcon: Boolean,
34
- // 是否隐藏确认按钮
33
+ /** 是否隐藏确认按钮 */
35
34
  hideConfirmButton: Boolean,
36
- // 是否隐藏取消按钮
35
+ /** 是否隐藏取消按钮 */
37
36
  hideCancelButton: Boolean,
38
- // 图标样式
37
+ /** 图标样式 */
39
38
  iconStyle: Object,
40
- // 图标组件属性
39
+ /** 图标组件属性 */
41
40
  iconProps: Object,
42
- // 确认按钮组件属性
41
+ /** 确认按钮组件属性 */
43
42
  confirmButtonProps: Object,
44
- // 取消按钮组件属性
43
+ /** 取消按钮组件属性 */
45
44
  cancelButtonProps: Object,
46
- // 底栏样式
45
+ /** 底栏样式 */
47
46
  footerStyle: Object
48
47
  };
49
48
  const popconfirmEmits = {
50
- ...elementPlus.popoverEmits,
49
+ ...props.popoverEmits,
51
50
  confirm: (_e) => true,
52
51
  cancel: (_e) => true
53
52
  };
@@ -1,5 +1,6 @@
1
1
  @use '../../style/util.scss' as *;
2
2
 
3
+ /* 气泡确认框主题变量 */
3
4
  @mixin set-popconfirm-var($var) {
4
5
  .ele-popconfirm {
5
6
  @include set-ele-var('popconfirm', $var);