ele-admin-plus 1.4.0 → 1.4.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 (460) hide show
  1. package/es/core-components.d.ts +2 -0
  2. package/es/core-components.js +104 -100
  3. package/es/ele-admin-layout/components/layout-skeleton.d.ts +9 -3
  4. package/es/ele-admin-layout/components/layout-skeleton.js +9 -3
  5. package/es/ele-admin-layout/components/layout-tabs.d.ts +7 -2
  6. package/es/ele-admin-layout/components/layout-tabs.js +9 -4
  7. package/es/ele-admin-layout/index.js +23 -18
  8. package/es/ele-alert/index.js +7 -8
  9. package/es/ele-app/el.d.ts +3 -1
  10. package/es/ele-app/plus.d.ts +19 -40
  11. package/es/ele-app/plusx.d.ts +53 -0
  12. package/es/ele-app/style/overwrite/date-picker/index.scss +1 -1
  13. package/es/ele-autocomplete/index.d.ts +265 -47
  14. package/es/ele-autocomplete/props.d.ts +124 -22
  15. package/es/ele-avatar-group/types.d.ts +1 -1
  16. package/es/ele-backtop/index.js +13 -8
  17. package/es/ele-basic-select/components/select-view.d.ts +160 -0
  18. package/es/ele-basic-select/components/select-view.js +309 -0
  19. package/es/ele-basic-select/index.d.ts +45 -35
  20. package/es/ele-basic-select/index.js +160 -250
  21. package/es/ele-basic-select/props.d.ts +34 -16
  22. package/es/ele-basic-select/props.js +33 -15
  23. package/es/ele-basic-select/style/index.js +2 -0
  24. package/es/ele-basic-select/types.d.ts +22 -1
  25. package/es/ele-basic-select/util.js +6 -1
  26. package/es/ele-bottom-bar/index.js +6 -6
  27. package/es/ele-breadcrumb/types.d.ts +1 -1
  28. package/es/ele-cascader/index.d.ts +17 -19
  29. package/es/ele-cascader/props.d.ts +4 -5
  30. package/es/ele-check-card/types.d.ts +1 -1
  31. package/es/ele-checkbox-group/index.d.ts +1 -1
  32. package/es/ele-config-provider/components/receiver-view.d.ts +2 -0
  33. package/es/ele-config-provider/components/receiver-view.js +96 -83
  34. package/es/ele-config-provider/receiver.d.ts +4 -2
  35. package/es/ele-config-provider/receiver.js +12 -1
  36. package/es/ele-config-provider/types.d.ts +10 -1
  37. package/es/ele-copyable/index.d.ts +2 -4
  38. package/es/ele-cron-builder/index.d.ts +24 -0
  39. package/es/ele-cron-builder/index.js +81 -0
  40. package/es/ele-cron-builder/props.d.ts +31 -0
  41. package/es/ele-cron-builder/props.js +24 -0
  42. package/es/ele-cron-builder/style/index.d.ts +1 -0
  43. package/es/ele-cron-builder/style/index.js +4 -0
  44. package/es/ele-cron-builder/style/index.scss +6 -0
  45. package/es/ele-cron-builder/types.d.ts +8 -0
  46. package/es/ele-cron-panel/components/cron-day.d.ts +25 -0
  47. package/es/ele-cron-panel/components/cron-day.js +232 -0
  48. package/es/ele-cron-panel/components/cron-hour.d.ts +25 -0
  49. package/es/ele-cron-panel/components/cron-hour.js +174 -0
  50. package/es/ele-cron-panel/components/cron-minute.d.ts +25 -0
  51. package/es/ele-cron-panel/components/cron-minute.js +174 -0
  52. package/es/ele-cron-panel/components/cron-month.d.ts +25 -0
  53. package/es/ele-cron-panel/components/cron-month.js +174 -0
  54. package/es/ele-cron-panel/components/cron-second.d.ts +25 -0
  55. package/es/ele-cron-panel/components/cron-second.js +174 -0
  56. package/es/ele-cron-panel/components/cron-week.d.ts +25 -0
  57. package/es/ele-cron-panel/components/cron-week.js +229 -0
  58. package/es/ele-cron-panel/components/cron-year.d.ts +25 -0
  59. package/es/ele-cron-panel/components/cron-year.js +186 -0
  60. package/es/ele-cron-panel/index.d.ts +14 -0
  61. package/es/ele-cron-panel/index.js +348 -0
  62. package/es/ele-cron-panel/props.d.ts +20 -0
  63. package/es/ele-cron-panel/props.js +14 -0
  64. package/es/ele-cron-panel/style/index.d.ts +1 -0
  65. package/es/ele-cron-panel/style/index.js +7 -0
  66. package/es/ele-cron-panel/style/index.scss +282 -0
  67. package/es/ele-cron-panel/types.d.ts +118 -0
  68. package/es/ele-cron-panel/util.d.ts +23 -0
  69. package/es/ele-cron-panel/util.js +542 -0
  70. package/es/ele-cropper/components/cropper-tools.d.ts +2 -2
  71. package/es/ele-cropper/index.d.ts +1 -3
  72. package/es/ele-cropper-modal/index.d.ts +3 -5
  73. package/es/ele-crud/components/page-side.js +1 -4
  74. package/es/ele-crud/index.d.ts +3 -3
  75. package/es/ele-crud/types.d.ts +1 -1
  76. package/es/ele-crud/util.d.ts +1 -1
  77. package/es/ele-crud-builder/components/body-header.d.ts +1 -1
  78. package/es/ele-crud-builder/components/code-generator.d.ts +1 -1
  79. package/es/ele-crud-builder/components/code-preview.d.ts +1 -1
  80. package/es/ele-crud-builder/components/form-design-modal.d.ts +1 -1
  81. package/es/ele-crud-builder/components/import-modal.d.ts +1 -1
  82. package/es/ele-crud-builder/components/page-config.d.ts +1 -1
  83. package/es/ele-crud-builder/components/template-list.d.ts +1 -1
  84. package/es/ele-crud-builder/index.d.ts +3 -3
  85. package/es/ele-crud-builder/index.js +1 -1
  86. package/es/ele-crud-builder/props.d.ts +2 -1
  87. package/es/ele-crud-builder/types.d.ts +1 -1
  88. package/es/ele-crud-builder/util.js +2 -2
  89. package/es/ele-data-table/index.d.ts +38 -44
  90. package/es/ele-data-table/index.js +6 -3
  91. package/es/ele-data-table/props.d.ts +39 -45
  92. package/es/ele-drawer/index.d.ts +11 -2
  93. package/es/ele-drawer/index.js +9 -4
  94. package/es/ele-drawer/props.d.ts +11 -0
  95. package/es/ele-drawer/props.js +11 -2
  96. package/es/ele-drawer/style/index.scss +11 -0
  97. package/es/ele-dropdown/components/pro-dropdown.d.ts +28 -28
  98. package/es/ele-dropdown/index.d.ts +30 -30
  99. package/es/ele-dropdown/props.d.ts +12 -12
  100. package/es/ele-dropdown/types.d.ts +1 -1
  101. package/es/ele-edit-tag/index.d.ts +1 -1
  102. package/es/ele-ellipsis/props.d.ts +1 -1
  103. package/es/ele-file-list/components/file-grid.d.ts +1 -1
  104. package/es/ele-file-list/components/file-table.d.ts +1 -1
  105. package/es/ele-file-list/icons.js +10 -1
  106. package/es/ele-file-list/index.d.ts +3 -3
  107. package/es/ele-file-list/types.d.ts +1 -1
  108. package/es/ele-icon-select/components/icon-grid.d.ts +8 -3
  109. package/es/ele-icon-select/components/icon-grid.js +20 -12
  110. package/es/ele-icon-select/index.d.ts +59 -56
  111. package/es/ele-icon-select/index.js +94 -86
  112. package/es/ele-icon-select/props.d.ts +36 -31
  113. package/es/ele-icon-select/props.js +34 -30
  114. package/es/ele-icon-select/style/css-var.scss +1 -1
  115. package/es/ele-icon-select/style/index.scss +50 -18
  116. package/es/ele-icon-select/types.d.ts +13 -0
  117. package/es/ele-image-viewer/index.d.ts +2 -16
  118. package/es/ele-image-viewer/index.js +13 -15
  119. package/es/ele-image-viewer/props.d.ts +1 -8
  120. package/es/ele-loading/index.js +6 -6
  121. package/es/ele-map-picker/index.d.ts +5 -7
  122. package/es/ele-mention/index.d.ts +29 -8
  123. package/es/ele-mention/props.d.ts +9 -0
  124. package/es/ele-menus/types.d.ts +2 -0
  125. package/es/ele-menus/util.js +1 -1
  126. package/es/ele-modal/index.d.ts +8 -6
  127. package/es/ele-modal/index.js +12 -5
  128. package/es/ele-modal/props.d.ts +2 -0
  129. package/es/ele-modal/props.js +2 -0
  130. package/es/ele-modal/style/index.scss +16 -0
  131. package/es/ele-popconfirm/index.d.ts +95 -96
  132. package/es/ele-popconfirm/index.js +6 -21
  133. package/es/ele-popconfirm/props.d.ts +32 -32
  134. package/es/ele-popover/index.d.ts +72 -72
  135. package/es/ele-printer/index.d.ts +2 -2
  136. package/es/ele-printer/index.js +7 -7
  137. package/es/ele-pro-form/components/item-type-data.js +39 -64
  138. package/es/ele-pro-form/components/render-util.d.ts +2 -2
  139. package/es/ele-pro-form/index.d.ts +10 -5
  140. package/es/ele-pro-form/props.d.ts +3 -1
  141. package/es/ele-pro-form-builder/components/body-form.d.ts +1 -1
  142. package/es/ele-pro-form-builder/components/body-header.d.ts +1 -1
  143. package/es/ele-pro-form-builder/components/code-generator.d.ts +1 -1
  144. package/es/ele-pro-form-builder/components/code-preview.d.ts +1 -1
  145. package/es/ele-pro-form-builder/components/config-form.d.ts +1 -1
  146. package/es/ele-pro-form-builder/components/import-modal.d.ts +1 -1
  147. package/es/ele-pro-form-builder/components/preview-modal.d.ts +1 -1
  148. package/es/ele-pro-form-builder/components/props-form.d.ts +1 -1
  149. package/es/ele-pro-form-builder/components/table-util.js +3 -0
  150. package/es/ele-pro-form-builder/components/template-list.d.ts +1 -1
  151. package/es/ele-pro-form-builder/index.d.ts +1 -1
  152. package/es/ele-pro-form-builder/props.d.ts +2 -1
  153. package/es/ele-pro-form-builder/types.d.ts +1 -1
  154. package/es/ele-pro-layout/index.d.ts +29 -29
  155. package/es/ele-pro-layout/props.d.ts +12 -12
  156. package/es/ele-pro-layout/style/index.scss +0 -2
  157. package/es/ele-pro-layout/types.d.ts +2 -0
  158. package/es/ele-pro-table/components/table-tools.d.ts +12 -97
  159. package/es/ele-pro-table/components/table-tools.js +118 -248
  160. package/es/ele-pro-table/components/tool-export.d.ts +7 -3
  161. package/es/ele-pro-table/components/tool-export.js +32 -20
  162. package/es/ele-pro-table/components/tool-print.d.ts +6 -2
  163. package/es/ele-pro-table/components/tool-print.js +37 -25
  164. package/es/ele-pro-table/exceljs-plugin.d.ts +12 -0
  165. package/es/ele-pro-table/exceljs-plugin.js +81 -0
  166. package/es/ele-pro-table/index.d.ts +46 -53
  167. package/es/ele-pro-table/index.js +127 -61
  168. package/es/ele-pro-table/props.d.ts +18 -21
  169. package/es/ele-pro-table/style/css-var.scss +4 -0
  170. package/es/ele-pro-table/style/index.scss +2 -2
  171. package/es/ele-pro-table/types.d.ts +11 -0
  172. package/es/ele-radio-group/index.d.ts +2 -2
  173. package/es/ele-segmented/index.d.ts +2 -2
  174. package/es/ele-segmented/props.d.ts +1 -1
  175. package/es/ele-segmented/style/index.scss +1 -0
  176. package/es/ele-select/index.d.ts +12 -12
  177. package/es/ele-select/props.d.ts +2 -2
  178. package/es/ele-select/props.js +2 -2
  179. package/es/ele-select-tree/index.d.ts +10 -10
  180. package/es/ele-select-tree/props.d.ts +2 -2
  181. package/es/ele-select-tree/props.js +2 -2
  182. package/es/ele-split-panel/style/index.scss +1 -1
  183. package/es/ele-steps/types.d.ts +1 -1
  184. package/es/ele-tab-bar/index.d.ts +4 -2
  185. package/es/ele-tab-bar/index.js +1 -0
  186. package/es/ele-tab-bar/props.d.ts +3 -1
  187. package/es/ele-tab-bar/props.js +4 -2
  188. package/es/ele-tab-bar/style/index.scss +1 -0
  189. package/es/ele-table-select/index.d.ts +2 -0
  190. package/es/ele-table-select/props.d.ts +4 -2
  191. package/es/ele-table-select/props.js +4 -2
  192. package/es/ele-tabs/index.d.ts +16 -12
  193. package/es/ele-tabs/style/index.scss +1 -0
  194. package/es/ele-tabs/types.d.ts +1 -1
  195. package/es/ele-timeline/types.d.ts +3 -3
  196. package/es/ele-tooltip/index.d.ts +53 -53
  197. package/es/ele-tour/index.d.ts +3 -3
  198. package/es/ele-tour/index.js +7 -7
  199. package/es/ele-transfer/index.d.ts +1 -1
  200. package/es/ele-tree-select/index.d.ts +4 -2
  201. package/es/ele-tree-select/props.d.ts +1 -1
  202. package/es/ele-upload-list/components/list-item.d.ts +3 -0
  203. package/es/ele-upload-list/components/list-item.js +1 -0
  204. package/es/ele-upload-list/index.d.ts +3 -3
  205. package/es/ele-upload-list/index.js +25 -8
  206. package/es/ele-upload-list/types.d.ts +1 -1
  207. package/es/ele-virtual-table/components/body-cell.d.ts +1 -1
  208. package/es/ele-virtual-table/index.d.ts +38 -44
  209. package/es/ele-virtual-table/props.d.ts +19 -22
  210. package/es/ele-watermark/index.d.ts +20 -7
  211. package/es/ele-watermark/index.js +254 -92
  212. package/es/ele-watermark/props.d.ts +10 -3
  213. package/es/ele-watermark/props.js +10 -3
  214. package/es/ele-watermark/types.d.ts +12 -0
  215. package/es/ele-watermark/util.d.ts +4 -9
  216. package/es/ele-watermark/util.js +20 -22
  217. package/es/lang/en_US.js +116 -0
  218. package/es/lang/zh_CN.js +116 -0
  219. package/es/lang/zh_TW.js +116 -0
  220. package/es/style/plus.scss +3 -1
  221. package/es/style/themes/default.scss +18 -3
  222. package/es/style/themes/rounded.scss +5 -1
  223. package/es/style/themes/transparent.scss +3 -0
  224. package/es/utils/common.d.ts +10 -0
  225. package/es/utils/common.js +10 -0
  226. package/es/utils/core.d.ts +6 -0
  227. package/es/utils/core.js +10 -1
  228. package/es/utils/menu-util.js +1 -0
  229. package/es/utils/theme-util.d.ts +1 -1
  230. package/lib/core-components.cjs +104 -100
  231. package/lib/core-components.d.ts +2 -0
  232. package/lib/ele-admin-layout/components/layout-skeleton.cjs +9 -3
  233. package/lib/ele-admin-layout/components/layout-skeleton.d.ts +9 -3
  234. package/lib/ele-admin-layout/components/layout-tabs.cjs +9 -4
  235. package/lib/ele-admin-layout/components/layout-tabs.d.ts +7 -2
  236. package/lib/ele-admin-layout/index.cjs +23 -18
  237. package/lib/ele-alert/index.cjs +6 -7
  238. package/lib/ele-app/el.d.ts +3 -1
  239. package/lib/ele-app/plus.d.ts +19 -40
  240. package/lib/ele-app/plusx.d.ts +53 -0
  241. package/lib/ele-app/style/overwrite/date-picker/index.scss +1 -1
  242. package/lib/ele-autocomplete/index.d.ts +265 -47
  243. package/lib/ele-autocomplete/props.d.ts +124 -22
  244. package/lib/ele-avatar-group/types.d.ts +1 -1
  245. package/lib/ele-backtop/index.cjs +12 -7
  246. package/lib/ele-basic-select/components/select-view.cjs +308 -0
  247. package/lib/ele-basic-select/components/select-view.d.ts +160 -0
  248. package/lib/ele-basic-select/index.cjs +159 -249
  249. package/lib/ele-basic-select/index.d.ts +45 -35
  250. package/lib/ele-basic-select/props.cjs +33 -15
  251. package/lib/ele-basic-select/props.d.ts +34 -16
  252. package/lib/ele-basic-select/style/index.cjs +2 -0
  253. package/lib/ele-basic-select/types.d.ts +22 -1
  254. package/lib/ele-basic-select/util.cjs +6 -1
  255. package/lib/ele-bottom-bar/index.cjs +5 -5
  256. package/lib/ele-breadcrumb/types.d.ts +1 -1
  257. package/lib/ele-cascader/index.d.ts +17 -19
  258. package/lib/ele-cascader/props.d.ts +4 -5
  259. package/lib/ele-check-card/types.d.ts +1 -1
  260. package/lib/ele-checkbox-group/index.d.ts +1 -1
  261. package/lib/ele-config-provider/components/receiver-view.cjs +2 -2
  262. package/lib/ele-config-provider/components/receiver-view.d.ts +2 -0
  263. package/lib/ele-config-provider/receiver.cjs +14 -1
  264. package/lib/ele-config-provider/receiver.d.ts +4 -2
  265. package/lib/ele-config-provider/types.d.ts +10 -1
  266. package/lib/ele-copyable/index.d.ts +2 -4
  267. package/lib/ele-cron-builder/index.cjs +80 -0
  268. package/lib/ele-cron-builder/index.d.ts +24 -0
  269. package/lib/ele-cron-builder/props.cjs +24 -0
  270. package/lib/ele-cron-builder/props.d.ts +31 -0
  271. package/lib/ele-cron-builder/style/index.cjs +5 -0
  272. package/lib/ele-cron-builder/style/index.d.ts +1 -0
  273. package/lib/ele-cron-builder/style/index.scss +6 -0
  274. package/lib/ele-cron-builder/types.d.ts +8 -0
  275. package/lib/ele-cron-panel/components/cron-day.cjs +231 -0
  276. package/lib/ele-cron-panel/components/cron-day.d.ts +25 -0
  277. package/lib/ele-cron-panel/components/cron-hour.cjs +173 -0
  278. package/lib/ele-cron-panel/components/cron-hour.d.ts +25 -0
  279. package/lib/ele-cron-panel/components/cron-minute.cjs +173 -0
  280. package/lib/ele-cron-panel/components/cron-minute.d.ts +25 -0
  281. package/lib/ele-cron-panel/components/cron-month.cjs +173 -0
  282. package/lib/ele-cron-panel/components/cron-month.d.ts +25 -0
  283. package/lib/ele-cron-panel/components/cron-second.cjs +173 -0
  284. package/lib/ele-cron-panel/components/cron-second.d.ts +25 -0
  285. package/lib/ele-cron-panel/components/cron-week.cjs +228 -0
  286. package/lib/ele-cron-panel/components/cron-week.d.ts +25 -0
  287. package/lib/ele-cron-panel/components/cron-year.cjs +185 -0
  288. package/lib/ele-cron-panel/components/cron-year.d.ts +25 -0
  289. package/lib/ele-cron-panel/index.cjs +347 -0
  290. package/lib/ele-cron-panel/index.d.ts +14 -0
  291. package/lib/ele-cron-panel/props.cjs +14 -0
  292. package/lib/ele-cron-panel/props.d.ts +20 -0
  293. package/lib/ele-cron-panel/style/index.cjs +8 -0
  294. package/lib/ele-cron-panel/style/index.d.ts +1 -0
  295. package/lib/ele-cron-panel/style/index.scss +282 -0
  296. package/lib/ele-cron-panel/types.d.ts +118 -0
  297. package/lib/ele-cron-panel/util.cjs +542 -0
  298. package/lib/ele-cron-panel/util.d.ts +23 -0
  299. package/lib/ele-cropper/components/cropper-tools.d.ts +2 -2
  300. package/lib/ele-cropper/index.d.ts +1 -3
  301. package/lib/ele-cropper-modal/index.d.ts +3 -5
  302. package/lib/ele-crud/components/page-side.cjs +1 -4
  303. package/lib/ele-crud/index.d.ts +3 -3
  304. package/lib/ele-crud/types.d.ts +1 -1
  305. package/lib/ele-crud/util.d.ts +1 -1
  306. package/lib/ele-crud-builder/components/body-header.d.ts +1 -1
  307. package/lib/ele-crud-builder/components/code-generator.d.ts +1 -1
  308. package/lib/ele-crud-builder/components/code-preview.d.ts +1 -1
  309. package/lib/ele-crud-builder/components/form-design-modal.d.ts +1 -1
  310. package/lib/ele-crud-builder/components/import-modal.d.ts +1 -1
  311. package/lib/ele-crud-builder/components/page-config.d.ts +1 -1
  312. package/lib/ele-crud-builder/components/template-list.d.ts +1 -1
  313. package/lib/ele-crud-builder/index.cjs +1 -1
  314. package/lib/ele-crud-builder/index.d.ts +3 -3
  315. package/lib/ele-crud-builder/props.d.ts +2 -1
  316. package/lib/ele-crud-builder/types.d.ts +1 -1
  317. package/lib/ele-crud-builder/util.cjs +2 -2
  318. package/lib/ele-data-table/index.cjs +6 -3
  319. package/lib/ele-data-table/index.d.ts +38 -44
  320. package/lib/ele-data-table/props.d.ts +39 -45
  321. package/lib/ele-drawer/index.cjs +18 -13
  322. package/lib/ele-drawer/index.d.ts +11 -2
  323. package/lib/ele-drawer/props.cjs +10 -1
  324. package/lib/ele-drawer/props.d.ts +11 -0
  325. package/lib/ele-drawer/style/index.scss +11 -0
  326. package/lib/ele-dropdown/components/pro-dropdown.d.ts +28 -28
  327. package/lib/ele-dropdown/index.d.ts +30 -30
  328. package/lib/ele-dropdown/props.d.ts +12 -12
  329. package/lib/ele-dropdown/types.d.ts +1 -1
  330. package/lib/ele-edit-tag/index.d.ts +1 -1
  331. package/lib/ele-ellipsis/props.d.ts +1 -1
  332. package/lib/ele-file-list/components/file-grid.d.ts +1 -1
  333. package/lib/ele-file-list/components/file-table.d.ts +1 -1
  334. package/lib/ele-file-list/icons.cjs +10 -1
  335. package/lib/ele-file-list/index.d.ts +3 -3
  336. package/lib/ele-file-list/types.d.ts +1 -1
  337. package/lib/ele-icon-select/components/icon-grid.cjs +19 -11
  338. package/lib/ele-icon-select/components/icon-grid.d.ts +8 -3
  339. package/lib/ele-icon-select/index.cjs +93 -85
  340. package/lib/ele-icon-select/index.d.ts +59 -56
  341. package/lib/ele-icon-select/props.cjs +34 -30
  342. package/lib/ele-icon-select/props.d.ts +36 -31
  343. package/lib/ele-icon-select/style/css-var.scss +1 -1
  344. package/lib/ele-icon-select/style/index.scss +50 -18
  345. package/lib/ele-icon-select/types.d.ts +13 -0
  346. package/lib/ele-image-viewer/index.cjs +12 -14
  347. package/lib/ele-image-viewer/index.d.ts +2 -16
  348. package/lib/ele-image-viewer/props.d.ts +1 -8
  349. package/lib/ele-loading/index.cjs +5 -5
  350. package/lib/ele-map-picker/index.d.ts +5 -7
  351. package/lib/ele-mention/index.d.ts +29 -8
  352. package/lib/ele-mention/props.d.ts +9 -0
  353. package/lib/ele-menus/types.d.ts +2 -0
  354. package/lib/ele-menus/util.cjs +1 -1
  355. package/lib/ele-modal/index.cjs +43 -36
  356. package/lib/ele-modal/index.d.ts +8 -6
  357. package/lib/ele-modal/props.cjs +2 -0
  358. package/lib/ele-modal/props.d.ts +2 -0
  359. package/lib/ele-modal/style/index.scss +16 -0
  360. package/lib/ele-popconfirm/index.cjs +5 -20
  361. package/lib/ele-popconfirm/index.d.ts +95 -96
  362. package/lib/ele-popconfirm/props.d.ts +32 -32
  363. package/lib/ele-popover/index.d.ts +72 -72
  364. package/lib/ele-printer/index.cjs +6 -6
  365. package/lib/ele-printer/index.d.ts +2 -2
  366. package/lib/ele-pro-form/components/item-type-data.cjs +39 -64
  367. package/lib/ele-pro-form/components/render-util.d.ts +2 -2
  368. package/lib/ele-pro-form/index.d.ts +10 -5
  369. package/lib/ele-pro-form/props.d.ts +3 -1
  370. package/lib/ele-pro-form-builder/components/body-form.d.ts +1 -1
  371. package/lib/ele-pro-form-builder/components/body-header.d.ts +1 -1
  372. package/lib/ele-pro-form-builder/components/code-generator.d.ts +1 -1
  373. package/lib/ele-pro-form-builder/components/code-preview.d.ts +1 -1
  374. package/lib/ele-pro-form-builder/components/config-form.d.ts +1 -1
  375. package/lib/ele-pro-form-builder/components/import-modal.d.ts +1 -1
  376. package/lib/ele-pro-form-builder/components/preview-modal.d.ts +1 -1
  377. package/lib/ele-pro-form-builder/components/props-form.d.ts +1 -1
  378. package/lib/ele-pro-form-builder/components/table-util.cjs +3 -0
  379. package/lib/ele-pro-form-builder/components/template-list.d.ts +1 -1
  380. package/lib/ele-pro-form-builder/index.d.ts +1 -1
  381. package/lib/ele-pro-form-builder/props.d.ts +2 -1
  382. package/lib/ele-pro-form-builder/types.d.ts +1 -1
  383. package/lib/ele-pro-layout/index.d.ts +29 -29
  384. package/lib/ele-pro-layout/props.d.ts +12 -12
  385. package/lib/ele-pro-layout/style/index.scss +0 -2
  386. package/lib/ele-pro-layout/types.d.ts +2 -0
  387. package/lib/ele-pro-table/components/table-tools.cjs +117 -247
  388. package/lib/ele-pro-table/components/table-tools.d.ts +12 -97
  389. package/lib/ele-pro-table/components/tool-export.cjs +32 -20
  390. package/lib/ele-pro-table/components/tool-export.d.ts +7 -3
  391. package/lib/ele-pro-table/components/tool-print.cjs +37 -25
  392. package/lib/ele-pro-table/components/tool-print.d.ts +6 -2
  393. package/lib/ele-pro-table/exceljs-plugin.cjs +81 -0
  394. package/lib/ele-pro-table/exceljs-plugin.d.ts +12 -0
  395. package/lib/ele-pro-table/index.cjs +153 -87
  396. package/lib/ele-pro-table/index.d.ts +46 -53
  397. package/lib/ele-pro-table/props.d.ts +18 -21
  398. package/lib/ele-pro-table/style/css-var.scss +4 -0
  399. package/lib/ele-pro-table/style/index.scss +2 -2
  400. package/lib/ele-pro-table/types.d.ts +11 -0
  401. package/lib/ele-radio-group/index.d.ts +2 -2
  402. package/lib/ele-segmented/index.d.ts +2 -2
  403. package/lib/ele-segmented/props.d.ts +1 -1
  404. package/lib/ele-segmented/style/index.scss +1 -0
  405. package/lib/ele-select/index.d.ts +12 -12
  406. package/lib/ele-select/props.cjs +1 -1
  407. package/lib/ele-select/props.d.ts +2 -2
  408. package/lib/ele-select-tree/index.d.ts +10 -10
  409. package/lib/ele-select-tree/props.cjs +1 -1
  410. package/lib/ele-select-tree/props.d.ts +2 -2
  411. package/lib/ele-split-panel/style/index.scss +1 -1
  412. package/lib/ele-steps/types.d.ts +1 -1
  413. package/lib/ele-tab-bar/index.cjs +1 -0
  414. package/lib/ele-tab-bar/index.d.ts +4 -2
  415. package/lib/ele-tab-bar/props.cjs +4 -2
  416. package/lib/ele-tab-bar/props.d.ts +3 -1
  417. package/lib/ele-tab-bar/style/index.scss +1 -0
  418. package/lib/ele-table-select/index.d.ts +2 -0
  419. package/lib/ele-table-select/props.cjs +4 -2
  420. package/lib/ele-table-select/props.d.ts +4 -2
  421. package/lib/ele-tabs/index.d.ts +16 -12
  422. package/lib/ele-tabs/style/index.scss +1 -0
  423. package/lib/ele-tabs/types.d.ts +1 -1
  424. package/lib/ele-timeline/types.d.ts +3 -3
  425. package/lib/ele-tooltip/index.d.ts +53 -53
  426. package/lib/ele-tour/index.cjs +6 -6
  427. package/lib/ele-tour/index.d.ts +3 -3
  428. package/lib/ele-transfer/index.d.ts +1 -1
  429. package/lib/ele-tree-select/index.d.ts +4 -2
  430. package/lib/ele-tree-select/props.d.ts +1 -1
  431. package/lib/ele-upload-list/components/list-item.cjs +1 -0
  432. package/lib/ele-upload-list/components/list-item.d.ts +3 -0
  433. package/lib/ele-upload-list/index.cjs +25 -8
  434. package/lib/ele-upload-list/index.d.ts +3 -3
  435. package/lib/ele-upload-list/types.d.ts +1 -1
  436. package/lib/ele-virtual-table/components/body-cell.d.ts +1 -1
  437. package/lib/ele-virtual-table/index.d.ts +38 -44
  438. package/lib/ele-virtual-table/props.d.ts +19 -22
  439. package/lib/ele-watermark/index.cjs +252 -90
  440. package/lib/ele-watermark/index.d.ts +20 -7
  441. package/lib/ele-watermark/props.cjs +10 -3
  442. package/lib/ele-watermark/props.d.ts +10 -3
  443. package/lib/ele-watermark/types.d.ts +12 -0
  444. package/lib/ele-watermark/util.cjs +22 -22
  445. package/lib/ele-watermark/util.d.ts +4 -9
  446. package/lib/lang/en_US.cjs +116 -0
  447. package/lib/lang/zh_CN.cjs +116 -0
  448. package/lib/lang/zh_TW.cjs +116 -0
  449. package/lib/style/plus.scss +3 -1
  450. package/lib/style/themes/default.scss +18 -3
  451. package/lib/style/themes/rounded.scss +5 -1
  452. package/lib/style/themes/transparent.scss +3 -0
  453. package/lib/utils/common.cjs +10 -0
  454. package/lib/utils/common.d.ts +10 -0
  455. package/lib/utils/core.cjs +10 -1
  456. package/lib/utils/core.d.ts +6 -0
  457. package/lib/utils/menu-util.cjs +1 -0
  458. package/lib/utils/theme-util.d.ts +1 -1
  459. package/package.json +3 -2
  460. package/typings/global.d.ts +2 -0
@@ -0,0 +1,160 @@
1
+ import { ElInputInstance } from '../../ele-app/el';
2
+ import { SelectedItem } from '../types';
3
+
4
+ declare function __VLS_template(): {
5
+ default?(_: {}): any;
6
+ select?(_: {
7
+ visible: boolean;
8
+ value: import('../types').SelectValue;
9
+ selectedLabel: string | undefined;
10
+ selected: SelectedItem[] | undefined;
11
+ currentTags: SelectedItem[];
12
+ omittedTags: SelectedItem[];
13
+ omittedSize: number;
14
+ openPopper: () => void;
15
+ closePopper: () => void;
16
+ removeItem: (item: SelectedItem) => void;
17
+ }): any;
18
+ prefix?(_: {}): any;
19
+ clearIcon?(_: {}): any;
20
+ suffixIcon?(_: {
21
+ visible: boolean;
22
+ }): any;
23
+ maxTagPlaceholder?(_: {
24
+ omittedValues: SelectedItem[];
25
+ omittedSize: number;
26
+ }): any;
27
+ };
28
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
29
+ value: {
30
+ type: import('vue').PropType<import('../types').SelectValue>;
31
+ default: () => null;
32
+ };
33
+ multiple: BooleanConstructor;
34
+ disabled: BooleanConstructor;
35
+ size: import('vue').PropType<import('../../ele-app/el').ElInputProps["size"]>;
36
+ clearable: BooleanConstructor;
37
+ placeholder: StringConstructor;
38
+ selectedLabel: StringConstructor;
39
+ selected: import('vue').PropType<SelectedItem[]>;
40
+ maxTagCount: NumberConstructor;
41
+ maxTagTextLength: NumberConstructor;
42
+ tagType: import('vue').PropType<import('../../ele-app/el').ElTagProps["type"]>;
43
+ automaticDropdown: BooleanConstructor;
44
+ filterable: BooleanConstructor;
45
+ visible: BooleanConstructor;
46
+ selectClass: StringConstructor;
47
+ selectStyle: import('vue').PropType<import('../../ele-app/types').StyleValue | string>;
48
+ inputStyle: import('vue').PropType<import('../../ele-app/types').StyleValue>;
49
+ selectTagsStyle: import('vue').PropType<import('../../ele-app/types').StyleValue>;
50
+ popperClass: StringConstructor;
51
+ popperWidth: (StringConstructor | NumberConstructor)[];
52
+ popperHeight: (StringConstructor | NumberConstructor)[];
53
+ popperType: {
54
+ type: import('vue').PropType<import('../types').PopperType>;
55
+ default: string;
56
+ };
57
+ popperProps: import('vue').PropType<import('../types').PopperProps>;
58
+ popperSlots: ObjectConstructor;
59
+ popperTitle: StringConstructor;
60
+ teleported: BooleanConstructor;
61
+ persistent: BooleanConstructor;
62
+ placement: import('vue').PropType<import('../../ele-app/plus').EleTooltipProps["placement"]>;
63
+ transition: {
64
+ type: StringConstructor;
65
+ default: string;
66
+ };
67
+ popperOptions: import('vue').PropType<import('../../ele-app/plus').EleTooltipProps["popperOptions"]>;
68
+ responsive: {
69
+ type: BooleanConstructor;
70
+ default: null;
71
+ };
72
+ }>, {
73
+ inputRef: import('vue').Ref<ElInputInstance, ElInputInstance>;
74
+ searchRef: import('vue').Ref<ElInputInstance, ElInputInstance>;
75
+ focusSearchInput: () => void;
76
+ updateSearchValue: (modelValue: string) => void;
77
+ updateInputValue: (modelValue: string) => void;
78
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
79
+ clear: () => void;
80
+ focus: (_e: FocusEvent) => void;
81
+ blur: (_e: FocusEvent) => void;
82
+ "update:visible": (_visible: boolean) => void;
83
+ filterChange: (_value: string) => void;
84
+ removeTag: (_item: SelectedItem) => void;
85
+ inputClick: (_e: MouseEvent) => void;
86
+ wrapClick: (_isCustom?: boolean | undefined) => void;
87
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
88
+ value: {
89
+ type: import('vue').PropType<import('../types').SelectValue>;
90
+ default: () => null;
91
+ };
92
+ multiple: BooleanConstructor;
93
+ disabled: BooleanConstructor;
94
+ size: import('vue').PropType<import('../../ele-app/el').ElInputProps["size"]>;
95
+ clearable: BooleanConstructor;
96
+ placeholder: StringConstructor;
97
+ selectedLabel: StringConstructor;
98
+ selected: import('vue').PropType<SelectedItem[]>;
99
+ maxTagCount: NumberConstructor;
100
+ maxTagTextLength: NumberConstructor;
101
+ tagType: import('vue').PropType<import('../../ele-app/el').ElTagProps["type"]>;
102
+ automaticDropdown: BooleanConstructor;
103
+ filterable: BooleanConstructor;
104
+ visible: BooleanConstructor;
105
+ selectClass: StringConstructor;
106
+ selectStyle: import('vue').PropType<import('../../ele-app/types').StyleValue | string>;
107
+ inputStyle: import('vue').PropType<import('../../ele-app/types').StyleValue>;
108
+ selectTagsStyle: import('vue').PropType<import('../../ele-app/types').StyleValue>;
109
+ popperClass: StringConstructor;
110
+ popperWidth: (StringConstructor | NumberConstructor)[];
111
+ popperHeight: (StringConstructor | NumberConstructor)[];
112
+ popperType: {
113
+ type: import('vue').PropType<import('../types').PopperType>;
114
+ default: string;
115
+ };
116
+ popperProps: import('vue').PropType<import('../types').PopperProps>;
117
+ popperSlots: ObjectConstructor;
118
+ popperTitle: StringConstructor;
119
+ teleported: BooleanConstructor;
120
+ persistent: BooleanConstructor;
121
+ placement: import('vue').PropType<import('../../ele-app/plus').EleTooltipProps["placement"]>;
122
+ transition: {
123
+ type: StringConstructor;
124
+ default: string;
125
+ };
126
+ popperOptions: import('vue').PropType<import('../../ele-app/plus').EleTooltipProps["popperOptions"]>;
127
+ responsive: {
128
+ type: BooleanConstructor;
129
+ default: null;
130
+ };
131
+ }>> & Readonly<{
132
+ onClear?: (() => any) | undefined;
133
+ onFocus?: ((_e: FocusEvent) => any) | undefined;
134
+ onBlur?: ((_e: FocusEvent) => any) | undefined;
135
+ "onUpdate:visible"?: ((_visible: boolean) => any) | undefined;
136
+ onFilterChange?: ((_value: string) => any) | undefined;
137
+ onRemoveTag?: ((_item: SelectedItem) => any) | undefined;
138
+ onInputClick?: ((_e: MouseEvent) => any) | undefined;
139
+ onWrapClick?: ((_isCustom?: boolean | undefined) => any) | undefined;
140
+ }>, {
141
+ value: import('../types').SelectValue;
142
+ teleported: boolean;
143
+ disabled: boolean;
144
+ clearable: boolean;
145
+ filterable: boolean;
146
+ persistent: boolean;
147
+ visible: boolean;
148
+ transition: string;
149
+ automaticDropdown: boolean;
150
+ multiple: boolean;
151
+ responsive: boolean;
152
+ popperType: import('../types').PopperType;
153
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
154
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
155
+ export default _default;
156
+ type __VLS_WithTemplateSlots<T, S> = T & {
157
+ new (): {
158
+ $slots: S;
159
+ };
160
+ };
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  const vue = require("vue");
3
- const elementPlus = require("element-plus");
4
- const index = require("../icons/index");
5
3
  const EleTooltip = require("../ele-tooltip/index");
4
+ const EleModal = require("../ele-modal/index");
5
+ const EleDrawer = require("../ele-drawer/index");
6
6
  const ReceiverView = require("../ele-config-provider/components/receiver-view");
7
+ const SelectView = require("./components/select-view");
7
8
  const props = require("./props");
8
9
  const _sfc_main = /* @__PURE__ */ vue.defineComponent({
9
10
  ...{ name: "EleBasicSelect" },
@@ -13,48 +14,15 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
13
14
  setup(__props, { expose: __expose, emit: __emit }) {
14
15
  const props2 = __props;
15
16
  const emit = __emit;
17
+ const selectViewRef = vue.ref(null);
16
18
  const tooltipRef = vue.ref(null);
17
- const inputRef = vue.ref(null);
18
- const searchRef = vue.ref(null);
19
- const inputValue = vue.ref(
20
- props2.multiple || !props2.selectedLabel ? "" : props2.selectedLabel
21
- );
22
- const searchValue = vue.ref("");
23
- const isEmpty = vue.computed(() => {
24
- if (!props2.multiple) {
25
- return props2.value == null || props2.value === "";
26
- }
27
- return !Array.isArray(props2.value) || !props2.value.length;
28
- });
29
- const inputPlaceholder = vue.computed(() => {
30
- const str = isEmpty.value && props2.placeholder ? props2.placeholder : "";
31
- if (!props2.filterable || !props2.visible || props2.multiple) {
32
- return str;
33
- }
34
- return props2.selectedLabel || str;
35
- });
36
- const isCollapse = vue.computed(() => {
37
- return typeof props2.maxTagCount === "number" && props2.selected != null && props2.selected.length > props2.maxTagCount;
38
- });
39
- const currentTags = vue.computed(() => {
40
- if (!isCollapse.value || isEmpty.value || props2.selected == null) {
41
- return props2.selected || [];
42
- }
43
- return props2.selected.slice(0, props2.maxTagCount);
44
- });
45
- const omittedTags = vue.computed(() => {
46
- if (!isCollapse.value || isEmpty.value || props2.selected == null) {
47
- return [];
48
- }
49
- return props2.selected.slice(props2.maxTagCount);
50
- });
51
- const omittedSize = vue.computed(() => {
52
- if (isEmpty.value || props2.maxTagCount == null || props2.maxTagCount < 0) {
53
- return 0;
19
+ const isSelectInputClick = vue.ref(false);
20
+ const updateVisible = (visible) => {
21
+ isSelectInputClick.value = false;
22
+ if (!props2.disabled || !visible) {
23
+ emit("update:visible", visible);
54
24
  }
55
- return props2.value.length - props2.maxTagCount;
56
- });
57
- let isSelectInputClick = false;
25
+ };
58
26
  const updatePopper = () => {
59
27
  tooltipRef.value && tooltipRef.value.updatePopper();
60
28
  };
@@ -66,115 +34,156 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
66
34
  return;
67
35
  }
68
36
  }
69
- const input = props2.multiple ? searchRef.value : inputRef.value;
70
- input && input.focus();
71
- vue.nextTick(() => {
72
- input && input.focus();
73
- });
74
- }
75
- };
76
- const updateSearchValue = (modelValue) => {
77
- if (props2.filterable && props2.visible && props2.multiple) {
78
- searchValue.value = modelValue;
79
- emit("filterChange", modelValue);
80
- }
81
- };
82
- const updateInputValue = (modelValue) => {
83
- if (props2.filterable && props2.visible && !props2.multiple) {
84
- inputValue.value = modelValue;
85
- emit("filterChange", modelValue);
86
- }
87
- };
88
- const updateVisible = (visible) => {
89
- isSelectInputClick = false;
90
- if (!props2.disabled || !visible) {
91
- emit("update:visible", visible);
37
+ selectViewRef.value && selectViewRef.value.focusSearchInput();
92
38
  }
93
39
  };
94
40
  const handleUpdatePopoverVisible = (visible) => {
95
- if (!visible && props2.filterable && isSelectInputClick) {
96
- isSelectInputClick = false;
41
+ if (!visible && props2.filterable && isSelectInputClick.value) {
42
+ isSelectInputClick.value = false;
97
43
  return;
98
44
  }
99
45
  updateVisible(visible);
100
46
  };
101
- const handleSelectInputClick = () => {
102
- isSelectInputClick = true;
103
- };
104
- const handleTagClose = (item) => {
105
- if (!props2.disabled) {
106
- emit("removeTag", item);
47
+ const handleWrapClick = (isCustom) => {
48
+ isSelectInputClick.value = true;
49
+ if (!isCustom && (props2.popperType === "modal" || props2.popperType === "drawer")) {
50
+ updateVisible(true);
107
51
  }
108
52
  };
109
- const handleClear = () => {
110
- isSelectInputClick = false;
111
- emit("clear");
112
- };
113
53
  const handleInputClick = (e) => {
114
54
  if (props2.automaticDropdown && props2.visible) {
115
- isSelectInputClick = true;
55
+ isSelectInputClick.value = true;
116
56
  e.stopPropagation();
117
57
  }
118
58
  };
119
- const handleInputFocus = (e) => {
59
+ const handleRemoveTag = (item) => {
60
+ emit("removeTag", item);
61
+ };
62
+ const handleClear = () => {
63
+ isSelectInputClick.value = false;
64
+ emit("clear");
65
+ };
66
+ const handleFocus = (e) => {
120
67
  if (props2.automaticDropdown && !props2.visible) {
121
68
  updateVisible(true);
122
69
  }
123
70
  emit("focus", e);
124
71
  };
125
- const handleInputBlur = (e) => {
72
+ const handleBlur = (e) => {
126
73
  emit("blur", e);
127
74
  };
128
- const handleInputEsc = (e) => {
129
- if (!props2.disabled && props2.visible) {
130
- e.stopPropagation();
131
- e.preventDefault();
132
- updateVisible(false);
133
- }
75
+ const handleFilterChange = (value) => {
76
+ emit("filterChange", value);
134
77
  };
135
- vue.watch(
136
- () => props2.selectedLabel,
137
- (label) => {
138
- if (!props2.filterable || !props2.visible) {
139
- inputValue.value = props2.multiple || !label ? "" : label;
140
- }
141
- }
142
- );
143
- vue.watch(
144
- () => props2.visible,
145
- (visible) => {
146
- if (props2.filterable) {
147
- if (props2.multiple) {
148
- searchValue.value = "";
149
- if (visible) {
150
- focusSearchInput();
151
- }
152
- } else {
153
- const label = props2.selectedLabel;
154
- inputValue.value = visible || !label ? "" : label;
155
- }
156
- }
157
- }
158
- );
159
78
  __expose({
160
79
  tooltipRef,
161
- inputRef,
162
- searchRef,
163
- currentTags,
164
- omittedTags,
165
- omittedSize,
80
+ selectViewRef,
166
81
  updatePopper,
167
82
  focusSearchInput,
168
- updateSearchValue,
169
- updateInputValue,
170
83
  updateVisible
171
84
  });
172
85
  return (_ctx, _cache) => {
173
- return vue.openBlock(), vue.createBlock(EleTooltip, {
86
+ return _ctx.popperType === "modal" || _ctx.popperType === "drawer" ? (vue.openBlock(), vue.createBlock(SelectView, vue.mergeProps({ key: 0 }, _ctx.$props, {
87
+ ref_key: "selectViewRef",
88
+ ref: selectViewRef,
89
+ "onUpdate:visible": updateVisible,
90
+ onRemoveTag: handleRemoveTag,
91
+ onClear: handleClear,
92
+ onFocus: handleFocus,
93
+ onBlur: handleBlur,
94
+ onFilterChange: handleFilterChange,
95
+ onInputClick: handleInputClick,
96
+ onWrapClick: handleWrapClick
97
+ }), vue.createSlots({
98
+ default: vue.withCtx(() => [
99
+ _ctx.popperType === "drawer" ? (vue.openBlock(), vue.createBlock(EleDrawer, vue.mergeProps({
100
+ key: 0,
101
+ title: _ctx.popperTitle,
102
+ size: _ctx.popperWidth,
103
+ closeOnClickModal: false,
104
+ destroyOnClose: !_ctx.persistent,
105
+ responsive: _ctx.responsive,
106
+ class: _ctx.popperClass
107
+ }, _ctx.popperProps || {}, {
108
+ modelValue: _ctx.visible,
109
+ "onUpdate:modelValue": handleUpdatePopoverVisible
110
+ }), vue.createSlots({
111
+ default: vue.withCtx(() => [
112
+ vue.renderSlot(_ctx.$slots, "default")
113
+ ]),
114
+ _: 2
115
+ }, [
116
+ vue.renderList(Object.keys(_ctx.popperSlots || {}).filter(
117
+ (k) => k !== "default" && _ctx.popperSlots && _ctx.popperSlots[k] && _ctx.popperSlots[k] !== "default" && _ctx.$slots[_ctx.popperSlots[k]]
118
+ ), (name) => {
119
+ return {
120
+ name,
121
+ fn: vue.withCtx((slotProps) => {
122
+ var _a;
123
+ return [
124
+ vue.renderSlot(_ctx.$slots, (_a = _ctx.popperSlots) == null ? void 0 : _a[name], vue.normalizeProps(vue.guardReactiveProps(slotProps || {})))
125
+ ];
126
+ })
127
+ };
128
+ })
129
+ ]), 1040, ["title", "size", "destroyOnClose", "responsive", "class", "modelValue"])) : (vue.openBlock(), vue.createBlock(EleModal, vue.mergeProps({
130
+ key: 1,
131
+ position: "center",
132
+ title: _ctx.popperTitle,
133
+ width: _ctx.popperWidth,
134
+ bodyHeight: _ctx.popperHeight,
135
+ closeOnClickModal: false,
136
+ destroyOnClose: !_ctx.persistent,
137
+ responsive: _ctx.responsive,
138
+ class: _ctx.popperClass
139
+ }, _ctx.popperProps || {}, {
140
+ modelValue: _ctx.visible,
141
+ "onUpdate:modelValue": handleUpdatePopoverVisible
142
+ }), vue.createSlots({
143
+ default: vue.withCtx(() => [
144
+ vue.renderSlot(_ctx.$slots, "default")
145
+ ]),
146
+ _: 2
147
+ }, [
148
+ vue.renderList(Object.keys(_ctx.popperSlots || {}).filter(
149
+ (k) => k !== "default" && _ctx.popperSlots && _ctx.popperSlots[k] && _ctx.popperSlots[k] !== "default" && _ctx.$slots[_ctx.popperSlots[k]]
150
+ ), (name) => {
151
+ return {
152
+ name,
153
+ fn: vue.withCtx((slotProps) => {
154
+ var _a;
155
+ return [
156
+ vue.renderSlot(_ctx.$slots, (_a = _ctx.popperSlots) == null ? void 0 : _a[name], vue.normalizeProps(vue.guardReactiveProps(slotProps || {})))
157
+ ];
158
+ })
159
+ };
160
+ })
161
+ ]), 1040, ["title", "width", "bodyHeight", "destroyOnClose", "responsive", "class", "modelValue"]))
162
+ ]),
163
+ _: 2
164
+ }, [
165
+ vue.renderList(Object.keys(_ctx.$slots).filter((k) => k !== "default"), (name) => {
166
+ return {
167
+ name,
168
+ fn: vue.withCtx((slotProps) => [
169
+ vue.renderSlot(_ctx.$slots, name, vue.normalizeProps(vue.guardReactiveProps(slotProps || {})))
170
+ ])
171
+ };
172
+ })
173
+ ]), 1040)) : _ctx.popperType === "default" ? (vue.openBlock(), vue.createBlock(vue.unref(ReceiverView), {
174
+ key: 1,
175
+ wrapHeight: _ctx.popperHeight,
176
+ class: vue.normalizeClass(_ctx.popperClass)
177
+ }, {
178
+ default: vue.withCtx(() => [
179
+ vue.renderSlot(_ctx.$slots, "default")
180
+ ]),
181
+ _: 3
182
+ }, 8, ["wrapHeight", "class"])) : (vue.openBlock(), vue.createBlock(EleTooltip, vue.mergeProps({
183
+ key: 2,
174
184
  ref_key: "tooltipRef",
175
185
  ref: tooltipRef,
176
186
  trigger: "click",
177
- visible: _ctx.visible,
178
187
  disabled: _ctx.disabled,
179
188
  placement: _ctx.placement,
180
189
  teleported: _ctx.teleported,
@@ -186,12 +195,15 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
186
195
  effect: "light",
187
196
  persistent: true,
188
197
  isPopover: true,
189
- triggerKeys: [],
198
+ triggerKeys: []
199
+ }, _ctx.popperProps || {}, {
200
+ visible: _ctx.visible,
190
201
  "onUpdate:visible": handleUpdatePopoverVisible
191
- }, {
202
+ }), {
192
203
  body: vue.withCtx(() => [
193
204
  _ctx.persistent || _ctx.visible ? (vue.openBlock(), vue.createBlock(vue.unref(ReceiverView), {
194
205
  key: 0,
206
+ wrapHeight: _ctx.popperHeight,
195
207
  class: "ele-popover-body",
196
208
  onClick: focusSearchInput,
197
209
  onMouseup: focusSearchInput
@@ -200,138 +212,36 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
200
212
  vue.renderSlot(_ctx.$slots, "default")
201
213
  ]),
202
214
  _: 3
203
- })) : vue.createCommentVNode("", true)
215
+ }, 8, ["wrapHeight"])) : vue.createCommentVNode("", true)
204
216
  ]),
205
217
  default: vue.withCtx(() => [
206
- vue.createElementVNode("div", {
207
- class: vue.normalizeClass([
208
- "ele-select",
209
- _ctx.selectClass,
210
- { "is-empty": isEmpty.value },
211
- { "is-multiple": _ctx.multiple },
212
- { "is-disabled": _ctx.disabled },
213
- { "is-filterable": _ctx.filterable },
214
- { "is-small": _ctx.size === "small" },
215
- { "is-large": _ctx.size === "large" },
216
- { "is-opened": _ctx.visible }
217
- ]),
218
- style: vue.normalizeStyle(_ctx.selectStyle),
219
- onClick: handleSelectInputClick
220
- }, [
221
- vue.createVNode(vue.unref(elementPlus.ElInput), {
222
- ref_key: "inputRef",
223
- ref: inputRef,
224
- size: _ctx.size,
225
- disabled: _ctx.disabled,
226
- validateEvent: false,
227
- modelValue: inputValue.value,
228
- placeholder: _ctx.filterable && _ctx.multiple && _ctx.visible ? "" : inputPlaceholder.value,
229
- readonly: !(_ctx.filterable && !_ctx.multiple),
230
- style: vue.normalizeStyle(_ctx.inputStyle),
231
- "onUpdate:modelValue": updateInputValue,
232
- onClick: handleInputClick,
233
- onFocus: handleInputFocus,
234
- onBlur: handleInputBlur,
235
- onKeydown: vue.withKeys(handleInputEsc, ["esc"])
236
- }, vue.createSlots({
237
- suffix: vue.withCtx(() => [
238
- _ctx.clearable && !_ctx.disabled && !isEmpty.value ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElIcon), {
239
- key: 0,
240
- class: "ele-select-clear el-input__icon",
241
- onClick: vue.withModifiers(handleClear, ["stop"])
242
- }, {
243
- default: vue.withCtx(() => [
244
- vue.renderSlot(_ctx.$slots, "clearIcon", {}, () => [
245
- vue.createVNode(vue.unref(index.CloseCircleFilled))
246
- ])
247
- ]),
248
- _: 3
249
- })) : vue.createCommentVNode("", true),
250
- vue.createVNode(vue.unref(elementPlus.ElIcon), { class: "ele-select-arrow el-input__icon" }, {
251
- default: vue.withCtx(() => [
252
- vue.renderSlot(_ctx.$slots, "suffixIcon", { visible: _ctx.visible }, () => [
253
- vue.createVNode(vue.unref(index.ArrowDown))
254
- ])
255
- ]),
256
- _: 3
257
- })
258
- ]),
259
- _: 2
260
- }, [
261
- _ctx.$slots.prefix ? {
262
- name: "prefix",
263
- fn: vue.withCtx(() => [
264
- vue.renderSlot(_ctx.$slots, "prefix")
265
- ]),
266
- key: "0"
267
- } : void 0
268
- ]), 1032, ["size", "disabled", "modelValue", "placeholder", "readonly", "style"]),
269
- _ctx.multiple ? (vue.openBlock(), vue.createElementBlock("div", {
270
- key: 0,
271
- class: "ele-select-tags",
272
- style: vue.normalizeStyle(_ctx.selectTagsStyle)
273
- }, [
274
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(currentTags.value, (item, index2) => {
275
- return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTag), {
276
- key: index2 + "-" + item.value,
277
- size: _ctx.size,
278
- type: _ctx.tagType,
279
- closable: !_ctx.disabled,
280
- disableTransitions: true,
281
- title: item.label,
282
- onClose: ($event) => handleTagClose(item)
283
- }, {
284
- default: vue.withCtx(() => [
285
- item.label && _ctx.maxTagTextLength && item.label.length > _ctx.maxTagTextLength ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
286
- vue.createTextVNode(vue.toDisplayString(item.label.slice(0, _ctx.maxTagTextLength)) + "... ", 1)
287
- ], 64)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
288
- vue.createTextVNode(vue.toDisplayString(item.label), 1)
289
- ], 64))
290
- ]),
291
- _: 2
292
- }, 1032, ["size", "type", "closable", "title", "onClose"]);
293
- }), 128)),
294
- isCollapse.value ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTag), {
295
- key: 0,
296
- size: _ctx.size,
297
- type: _ctx.tagType,
298
- disableTransitions: true
299
- }, {
300
- default: vue.withCtx(() => [
301
- vue.renderSlot(_ctx.$slots, "maxTagPlaceholder", {
302
- omittedValues: omittedTags.value,
303
- omittedSize: omittedSize.value
304
- }, () => [
305
- vue.createTextVNode(" +" + vue.toDisplayString(omittedSize.value), 1)
306
- ])
307
- ]),
308
- _: 3
309
- }, 8, ["size", "type"])) : vue.createCommentVNode("", true),
310
- !_ctx.disabled && _ctx.filterable ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTag), {
311
- key: 1,
312
- size: _ctx.size,
313
- disableTransitions: true,
314
- class: "ele-select-search"
315
- }, {
316
- default: vue.withCtx(() => [
317
- vue.createVNode(vue.unref(elementPlus.ElInput), {
318
- ref_key: "searchRef",
319
- ref: searchRef,
320
- size: _ctx.size,
321
- validateEvent: false,
322
- modelValue: searchValue.value,
323
- placeholder: inputPlaceholder.value,
324
- "onUpdate:modelValue": updateSearchValue,
325
- onKeydown: vue.withKeys(handleInputEsc, ["esc"])
326
- }, null, 8, ["size", "modelValue", "placeholder"])
327
- ]),
328
- _: 1
329
- }, 8, ["size"])) : vue.createCommentVNode("", true)
330
- ], 4)) : vue.createCommentVNode("", true)
331
- ], 6)
218
+ _ctx.selectStyle === "none" ? (vue.openBlock(), vue.createElementBlock("div", {
219
+ key: 0,
220
+ class: vue.normalizeClass(_ctx.selectClass)
221
+ }, null, 2)) : (vue.openBlock(), vue.createBlock(SelectView, vue.mergeProps({ key: 1 }, _ctx.$props, {
222
+ ref_key: "selectViewRef",
223
+ ref: selectViewRef,
224
+ "onUpdate:visible": updateVisible,
225
+ onRemoveTag: handleRemoveTag,
226
+ onClear: handleClear,
227
+ onFocus: handleFocus,
228
+ onBlur: handleBlur,
229
+ onFilterChange: handleFilterChange,
230
+ onInputClick: handleInputClick,
231
+ onWrapClick: handleWrapClick
232
+ }), vue.createSlots({ _: 2 }, [
233
+ vue.renderList(Object.keys(_ctx.$slots).filter((k) => k !== "default"), (name) => {
234
+ return {
235
+ name,
236
+ fn: vue.withCtx((slotProps) => [
237
+ vue.renderSlot(_ctx.$slots, name, vue.normalizeProps(vue.guardReactiveProps(slotProps || {})))
238
+ ])
239
+ };
240
+ })
241
+ ]), 1040))
332
242
  ]),
333
243
  _: 3
334
- }, 8, ["visible", "disabled", "placement", "teleported", "width", "popperClass", "popperOptions", "transition", "gpuAcceleration"]);
244
+ }, 16, ["disabled", "placement", "teleported", "width", "popperClass", "popperOptions", "transition", "gpuAcceleration", "visible"]));
335
245
  };
336
246
  }
337
247
  });