@element-plus/nightly 0.0.20240803 → 0.0.20240805

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 (584) hide show
  1. package/attributes.json +1 -1
  2. package/dist/index.css +1 -1
  3. package/dist/index.full.js +591 -507
  4. package/dist/index.full.min.js +16 -16
  5. package/dist/index.full.min.js.map +1 -1
  6. package/dist/index.full.min.mjs +15 -15
  7. package/dist/index.full.min.mjs.map +1 -1
  8. package/dist/index.full.mjs +593 -509
  9. package/dist/locale/af.js +1 -1
  10. package/dist/locale/af.min.js +1 -1
  11. package/dist/locale/af.min.mjs +1 -1
  12. package/dist/locale/af.mjs +1 -1
  13. package/dist/locale/ar-eg.js +1 -1
  14. package/dist/locale/ar-eg.min.js +1 -1
  15. package/dist/locale/ar-eg.min.mjs +1 -1
  16. package/dist/locale/ar-eg.mjs +1 -1
  17. package/dist/locale/ar.js +1 -1
  18. package/dist/locale/ar.min.js +1 -1
  19. package/dist/locale/ar.min.mjs +1 -1
  20. package/dist/locale/ar.mjs +1 -1
  21. package/dist/locale/az.js +1 -1
  22. package/dist/locale/az.min.js +1 -1
  23. package/dist/locale/az.min.mjs +1 -1
  24. package/dist/locale/az.mjs +1 -1
  25. package/dist/locale/bg.js +1 -1
  26. package/dist/locale/bg.min.js +1 -1
  27. package/dist/locale/bg.min.mjs +1 -1
  28. package/dist/locale/bg.mjs +1 -1
  29. package/dist/locale/bn.js +1 -1
  30. package/dist/locale/bn.min.js +1 -1
  31. package/dist/locale/bn.min.mjs +1 -1
  32. package/dist/locale/bn.mjs +1 -1
  33. package/dist/locale/ca.js +1 -1
  34. package/dist/locale/ca.min.js +1 -1
  35. package/dist/locale/ca.min.mjs +1 -1
  36. package/dist/locale/ca.mjs +1 -1
  37. package/dist/locale/ckb.js +1 -1
  38. package/dist/locale/ckb.min.js +1 -1
  39. package/dist/locale/ckb.min.mjs +1 -1
  40. package/dist/locale/ckb.mjs +1 -1
  41. package/dist/locale/cs.js +1 -1
  42. package/dist/locale/cs.min.js +1 -1
  43. package/dist/locale/cs.min.mjs +1 -1
  44. package/dist/locale/cs.mjs +1 -1
  45. package/dist/locale/da.js +1 -1
  46. package/dist/locale/da.min.js +1 -1
  47. package/dist/locale/da.min.mjs +1 -1
  48. package/dist/locale/da.mjs +1 -1
  49. package/dist/locale/de.js +1 -1
  50. package/dist/locale/de.min.js +1 -1
  51. package/dist/locale/de.min.mjs +1 -1
  52. package/dist/locale/de.mjs +1 -1
  53. package/dist/locale/el.js +1 -1
  54. package/dist/locale/el.min.js +1 -1
  55. package/dist/locale/el.min.mjs +1 -1
  56. package/dist/locale/el.mjs +1 -1
  57. package/dist/locale/en.js +1 -1
  58. package/dist/locale/en.min.js +1 -1
  59. package/dist/locale/en.min.mjs +1 -1
  60. package/dist/locale/en.mjs +1 -1
  61. package/dist/locale/eo.js +1 -1
  62. package/dist/locale/eo.min.js +1 -1
  63. package/dist/locale/eo.min.mjs +1 -1
  64. package/dist/locale/eo.mjs +1 -1
  65. package/dist/locale/es.js +1 -1
  66. package/dist/locale/es.min.js +1 -1
  67. package/dist/locale/es.min.mjs +1 -1
  68. package/dist/locale/es.mjs +1 -1
  69. package/dist/locale/et.js +1 -1
  70. package/dist/locale/et.min.js +1 -1
  71. package/dist/locale/et.min.mjs +1 -1
  72. package/dist/locale/et.mjs +1 -1
  73. package/dist/locale/eu.js +1 -1
  74. package/dist/locale/eu.min.js +1 -1
  75. package/dist/locale/eu.min.mjs +1 -1
  76. package/dist/locale/eu.mjs +1 -1
  77. package/dist/locale/fa.js +1 -1
  78. package/dist/locale/fa.min.js +1 -1
  79. package/dist/locale/fa.min.mjs +1 -1
  80. package/dist/locale/fa.mjs +1 -1
  81. package/dist/locale/fi.js +1 -1
  82. package/dist/locale/fi.min.js +1 -1
  83. package/dist/locale/fi.min.mjs +1 -1
  84. package/dist/locale/fi.mjs +1 -1
  85. package/dist/locale/fr.js +1 -1
  86. package/dist/locale/fr.min.js +1 -1
  87. package/dist/locale/fr.min.mjs +1 -1
  88. package/dist/locale/fr.mjs +1 -1
  89. package/dist/locale/he.js +1 -1
  90. package/dist/locale/he.min.js +1 -1
  91. package/dist/locale/he.min.mjs +1 -1
  92. package/dist/locale/he.mjs +1 -1
  93. package/dist/locale/hr.js +1 -1
  94. package/dist/locale/hr.min.js +1 -1
  95. package/dist/locale/hr.min.mjs +1 -1
  96. package/dist/locale/hr.mjs +1 -1
  97. package/dist/locale/hu.js +1 -1
  98. package/dist/locale/hu.min.js +1 -1
  99. package/dist/locale/hu.min.mjs +1 -1
  100. package/dist/locale/hu.mjs +1 -1
  101. package/dist/locale/hy-am.js +1 -1
  102. package/dist/locale/hy-am.min.js +1 -1
  103. package/dist/locale/hy-am.min.mjs +1 -1
  104. package/dist/locale/hy-am.mjs +1 -1
  105. package/dist/locale/id.js +1 -1
  106. package/dist/locale/id.min.js +1 -1
  107. package/dist/locale/id.min.mjs +1 -1
  108. package/dist/locale/id.mjs +1 -1
  109. package/dist/locale/it.js +1 -1
  110. package/dist/locale/it.min.js +1 -1
  111. package/dist/locale/it.min.mjs +1 -1
  112. package/dist/locale/it.mjs +1 -1
  113. package/dist/locale/ja.js +1 -1
  114. package/dist/locale/ja.min.js +1 -1
  115. package/dist/locale/ja.min.mjs +1 -1
  116. package/dist/locale/ja.mjs +1 -1
  117. package/dist/locale/kk.js +1 -1
  118. package/dist/locale/kk.min.js +1 -1
  119. package/dist/locale/kk.min.mjs +1 -1
  120. package/dist/locale/kk.mjs +1 -1
  121. package/dist/locale/km.js +1 -1
  122. package/dist/locale/km.min.js +1 -1
  123. package/dist/locale/km.min.mjs +1 -1
  124. package/dist/locale/km.mjs +1 -1
  125. package/dist/locale/ko.js +1 -1
  126. package/dist/locale/ko.min.js +1 -1
  127. package/dist/locale/ko.min.mjs +1 -1
  128. package/dist/locale/ko.mjs +1 -1
  129. package/dist/locale/ku.js +1 -1
  130. package/dist/locale/ku.min.js +1 -1
  131. package/dist/locale/ku.min.mjs +1 -1
  132. package/dist/locale/ku.mjs +1 -1
  133. package/dist/locale/ky.js +1 -1
  134. package/dist/locale/ky.min.js +1 -1
  135. package/dist/locale/ky.min.mjs +1 -1
  136. package/dist/locale/ky.mjs +1 -1
  137. package/dist/locale/lt.js +1 -1
  138. package/dist/locale/lt.min.js +1 -1
  139. package/dist/locale/lt.min.mjs +1 -1
  140. package/dist/locale/lt.mjs +1 -1
  141. package/dist/locale/lv.js +1 -1
  142. package/dist/locale/lv.min.js +1 -1
  143. package/dist/locale/lv.min.mjs +1 -1
  144. package/dist/locale/lv.mjs +1 -1
  145. package/dist/locale/mg.js +1 -1
  146. package/dist/locale/mg.min.js +1 -1
  147. package/dist/locale/mg.min.mjs +1 -1
  148. package/dist/locale/mg.mjs +1 -1
  149. package/dist/locale/mn.js +1 -1
  150. package/dist/locale/mn.min.js +1 -1
  151. package/dist/locale/mn.min.mjs +1 -1
  152. package/dist/locale/mn.mjs +1 -1
  153. package/dist/locale/nb-no.js +1 -1
  154. package/dist/locale/nb-no.min.js +1 -1
  155. package/dist/locale/nb-no.min.mjs +1 -1
  156. package/dist/locale/nb-no.mjs +1 -1
  157. package/dist/locale/nl.js +1 -1
  158. package/dist/locale/nl.min.js +1 -1
  159. package/dist/locale/nl.min.mjs +1 -1
  160. package/dist/locale/nl.mjs +1 -1
  161. package/dist/locale/pa.js +1 -1
  162. package/dist/locale/pa.min.js +1 -1
  163. package/dist/locale/pa.min.mjs +1 -1
  164. package/dist/locale/pa.mjs +1 -1
  165. package/dist/locale/pl.js +1 -1
  166. package/dist/locale/pl.min.js +1 -1
  167. package/dist/locale/pl.min.mjs +1 -1
  168. package/dist/locale/pl.mjs +1 -1
  169. package/dist/locale/pt-br.js +1 -1
  170. package/dist/locale/pt-br.min.js +1 -1
  171. package/dist/locale/pt-br.min.mjs +1 -1
  172. package/dist/locale/pt-br.mjs +1 -1
  173. package/dist/locale/pt.js +1 -1
  174. package/dist/locale/pt.min.js +1 -1
  175. package/dist/locale/pt.min.mjs +1 -1
  176. package/dist/locale/pt.mjs +1 -1
  177. package/dist/locale/ro.js +1 -1
  178. package/dist/locale/ro.min.js +1 -1
  179. package/dist/locale/ro.min.mjs +1 -1
  180. package/dist/locale/ro.mjs +1 -1
  181. package/dist/locale/ru.js +1 -1
  182. package/dist/locale/ru.min.js +1 -1
  183. package/dist/locale/ru.min.mjs +1 -1
  184. package/dist/locale/ru.mjs +1 -1
  185. package/dist/locale/sk.js +1 -1
  186. package/dist/locale/sk.min.js +1 -1
  187. package/dist/locale/sk.min.mjs +1 -1
  188. package/dist/locale/sk.mjs +1 -1
  189. package/dist/locale/sl.js +1 -1
  190. package/dist/locale/sl.min.js +1 -1
  191. package/dist/locale/sl.min.mjs +1 -1
  192. package/dist/locale/sl.mjs +1 -1
  193. package/dist/locale/sr.js +1 -1
  194. package/dist/locale/sr.min.js +1 -1
  195. package/dist/locale/sr.min.mjs +1 -1
  196. package/dist/locale/sr.mjs +1 -1
  197. package/dist/locale/sv.js +1 -1
  198. package/dist/locale/sv.min.js +1 -1
  199. package/dist/locale/sv.min.mjs +1 -1
  200. package/dist/locale/sv.mjs +1 -1
  201. package/dist/locale/sw.js +1 -1
  202. package/dist/locale/sw.min.js +1 -1
  203. package/dist/locale/sw.min.mjs +1 -1
  204. package/dist/locale/sw.mjs +1 -1
  205. package/dist/locale/ta.js +1 -1
  206. package/dist/locale/ta.min.js +1 -1
  207. package/dist/locale/ta.min.mjs +1 -1
  208. package/dist/locale/ta.mjs +1 -1
  209. package/dist/locale/th.js +1 -1
  210. package/dist/locale/th.min.js +1 -1
  211. package/dist/locale/th.min.mjs +1 -1
  212. package/dist/locale/th.mjs +1 -1
  213. package/dist/locale/tk.js +1 -1
  214. package/dist/locale/tk.min.js +1 -1
  215. package/dist/locale/tk.min.mjs +1 -1
  216. package/dist/locale/tk.mjs +1 -1
  217. package/dist/locale/tr.js +1 -1
  218. package/dist/locale/tr.min.js +1 -1
  219. package/dist/locale/tr.min.mjs +1 -1
  220. package/dist/locale/tr.mjs +1 -1
  221. package/dist/locale/ug-cn.js +1 -1
  222. package/dist/locale/ug-cn.min.js +1 -1
  223. package/dist/locale/ug-cn.min.mjs +1 -1
  224. package/dist/locale/ug-cn.mjs +1 -1
  225. package/dist/locale/uk.js +1 -1
  226. package/dist/locale/uk.min.js +1 -1
  227. package/dist/locale/uk.min.mjs +1 -1
  228. package/dist/locale/uk.mjs +1 -1
  229. package/dist/locale/uz-uz.js +1 -1
  230. package/dist/locale/uz-uz.min.js +1 -1
  231. package/dist/locale/uz-uz.min.mjs +1 -1
  232. package/dist/locale/uz-uz.mjs +1 -1
  233. package/dist/locale/vi.js +1 -1
  234. package/dist/locale/vi.min.js +1 -1
  235. package/dist/locale/vi.min.mjs +1 -1
  236. package/dist/locale/vi.mjs +1 -1
  237. package/dist/locale/zh-cn.js +34 -2
  238. package/dist/locale/zh-cn.min.js +1 -1
  239. package/dist/locale/zh-cn.min.js.map +1 -1
  240. package/dist/locale/zh-cn.min.mjs +1 -1
  241. package/dist/locale/zh-cn.min.mjs.map +1 -1
  242. package/dist/locale/zh-cn.mjs +34 -2
  243. package/dist/locale/zh-tw.js +3 -2
  244. package/dist/locale/zh-tw.min.js +1 -1
  245. package/dist/locale/zh-tw.min.js.map +1 -1
  246. package/dist/locale/zh-tw.min.mjs +1 -1
  247. package/dist/locale/zh-tw.min.mjs.map +1 -1
  248. package/dist/locale/zh-tw.mjs +3 -2
  249. package/es/components/alert/index.d.ts +4 -4
  250. package/es/components/alert/src/alert.d.ts +1 -1
  251. package/es/components/alert/src/alert.vue.d.ts +4 -4
  252. package/es/components/autocomplete/index.d.ts +122 -65
  253. package/es/components/autocomplete/src/autocomplete.vue.d.ts +122 -65
  254. package/es/components/button/index.d.ts +5 -5
  255. package/es/components/button/src/button.d.ts +1 -1
  256. package/es/components/button/src/button.vue.d.ts +5 -5
  257. package/es/components/button/src/use-button.d.ts +1 -1
  258. package/es/components/calendar/index.d.ts +5 -5
  259. package/es/components/calendar/src/calendar.vue.d.ts +5 -5
  260. package/es/components/carousel/index.d.ts +1 -1
  261. package/es/components/carousel/src/carousel.vue.d.ts +1 -1
  262. package/es/components/cascader/index.d.ts +244 -130
  263. package/es/components/cascader/src/cascader.vue.d.ts +122 -65
  264. package/es/components/color-picker/index.d.ts +95 -38
  265. package/es/components/color-picker/src/color-picker.vue.d.ts +95 -38
  266. package/es/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +17 -17
  267. package/es/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +17 -17
  268. package/es/components/date-picker/src/panel-utils.d.ts +34 -34
  269. package/es/components/dialog/index.d.ts +20 -1
  270. package/es/components/dialog/src/dialog.vue.d.ts +20 -1
  271. package/es/components/dialog/src/dialog2.mjs +93 -89
  272. package/es/components/dialog/src/dialog2.mjs.map +1 -1
  273. package/es/components/drawer/index.d.ts +20 -1
  274. package/es/components/drawer/src/drawer.vue.d.ts +20 -1
  275. package/es/components/drawer/src/drawer2.mjs +114 -110
  276. package/es/components/drawer/src/drawer2.mjs.map +1 -1
  277. package/es/components/dropdown/index.d.ts +52 -14
  278. package/es/components/dropdown/src/dropdown-item-impl.vue.d.ts +1 -1
  279. package/es/components/dropdown/src/dropdown-item.vue.d.ts +1 -1
  280. package/es/components/dropdown/src/dropdown.vue.d.ts +50 -12
  281. package/es/components/focus-trap/src/focus-trap.vue.d.ts +1 -1
  282. package/es/components/form/index.d.ts +12 -12
  283. package/es/components/form/src/form-item.d.ts +1 -1
  284. package/es/components/form/src/form-item.vue.d.ts +5 -5
  285. package/es/components/icon/index.mjs +2 -2
  286. package/es/components/icon/src/icon.mjs +8 -36
  287. package/es/components/icon/src/icon.mjs.map +1 -1
  288. package/es/components/icon/src/icon2.mjs +36 -8
  289. package/es/components/icon/src/icon2.mjs.map +1 -1
  290. package/es/components/image/index.d.ts +20 -1
  291. package/es/components/image/src/image.vue.d.ts +20 -1
  292. package/es/components/image-viewer/index.d.ts +19 -0
  293. package/es/components/image-viewer/index.mjs +2 -2
  294. package/es/components/image-viewer/src/image-viewer.mjs +45 -389
  295. package/es/components/image-viewer/src/image-viewer.mjs.map +1 -1
  296. package/es/components/image-viewer/src/image-viewer.vue.d.ts +19 -0
  297. package/es/components/image-viewer/src/image-viewer2.mjs +393 -45
  298. package/es/components/image-viewer/src/image-viewer2.mjs.map +1 -1
  299. package/es/components/index.mjs +2 -2
  300. package/es/components/input/index.d.ts +12 -12
  301. package/es/components/input/src/input.vue.d.ts +12 -12
  302. package/es/components/input-number/index.d.ts +45 -45
  303. package/es/components/input-number/src/input-number.vue.d.ts +45 -45
  304. package/es/components/loading/src/loading.mjs +1 -1
  305. package/es/components/loading/src/loading.mjs.map +1 -1
  306. package/es/components/mention/src/mention.vue.d.ts +121 -64
  307. package/es/components/message/src/message.d.ts +1 -1
  308. package/es/components/message/src/message.vue.d.ts +4 -4
  309. package/es/components/message-box/src/index.vue.d.ts +1 -1
  310. package/es/components/notification/src/notification.d.ts +1 -1
  311. package/es/components/notification/src/notification.vue.d.ts +4 -4
  312. package/es/components/pagination/src/components/jumper.vue.d.ts +12 -12
  313. package/es/components/pagination/src/components/sizes.vue.d.ts +103 -27
  314. package/es/components/popconfirm/index.d.ts +80 -23
  315. package/es/components/popconfirm/src/popconfirm.vue.d.ts +80 -23
  316. package/es/components/popover/index.d.ts +75 -18
  317. package/es/components/popover/src/popover.vue.d.ts +75 -18
  318. package/es/components/popper/src/content.vue.d.ts +6 -6
  319. package/es/components/result/index.d.ts +4 -4
  320. package/es/components/result/src/result.d.ts +1 -1
  321. package/es/components/result/src/result.vue.d.ts +4 -4
  322. package/es/components/roving-focus-group/src/roving-focus-item.vue.d.ts +1 -1
  323. package/es/components/select/index.d.ts +103 -27
  324. package/es/components/select/index.mjs +1 -1
  325. package/es/components/select/src/select.mjs +398 -104
  326. package/es/components/select/src/select.mjs.map +1 -1
  327. package/es/components/select/src/select.vue.d.ts +103 -27
  328. package/es/components/select/src/select2.mjs +104 -398
  329. package/es/components/select/src/select2.mjs.map +1 -1
  330. package/es/components/select/src/useSelect.d.ts +101 -25
  331. package/es/components/select-v2/index.d.ts +206 -54
  332. package/es/components/select-v2/src/option-item.vue.d.ts +1 -1
  333. package/es/components/select-v2/src/select.vue.d.ts +103 -27
  334. package/es/components/select-v2/src/useSelect.d.ts +101 -25
  335. package/es/components/slider/index.d.ts +121 -63
  336. package/es/components/slider/src/button.vue.d.ts +75 -18
  337. package/es/components/slider/src/composables/use-slide.d.ts +1 -0
  338. package/es/components/slider/src/composables/use-slide.mjs +6 -0
  339. package/es/components/slider/src/composables/use-slide.mjs.map +1 -1
  340. package/es/components/slider/src/composables/use-slider-button.d.ts +50 -12
  341. package/es/components/slider/src/slider.vue.d.ts +121 -63
  342. package/es/components/slider/src/slider2.mjs +5 -3
  343. package/es/components/slider/src/slider2.mjs.map +1 -1
  344. package/es/components/steps/index.d.ts +16 -16
  345. package/es/components/steps/src/item.d.ts +1 -1
  346. package/es/components/steps/src/item.vue.d.ts +4 -4
  347. package/es/components/steps/src/steps.d.ts +2 -2
  348. package/es/components/steps/src/steps.vue.d.ts +8 -8
  349. package/es/components/table/index.d.ts +6 -13
  350. package/es/components/table/src/filter-panel.vue.d.ts +50 -12
  351. package/es/components/table/src/store/helper.mjs +4 -0
  352. package/es/components/table/src/store/helper.mjs.map +1 -1
  353. package/es/components/table/src/store/tree.mjs +3 -1
  354. package/es/components/table/src/store/tree.mjs.map +1 -1
  355. package/es/components/table/src/store/watcher.mjs +37 -34
  356. package/es/components/table/src/store/watcher.mjs.map +1 -1
  357. package/es/components/table/src/table/defaults.d.ts +9 -9
  358. package/es/components/table/src/table/defaults.mjs +2 -1
  359. package/es/components/table/src/table/defaults.mjs.map +1 -1
  360. package/es/components/table/src/table.vue.d.ts +8 -19
  361. package/es/components/table/src/util.d.ts +2 -2
  362. package/es/components/table/src/util.mjs +27 -11
  363. package/es/components/table/src/util.mjs.map +1 -1
  364. package/es/components/tag/index.d.ts +1 -1
  365. package/es/components/tag/src/tag.vue.d.ts +1 -1
  366. package/es/components/teleport/index.d.ts +8 -48
  367. package/es/components/teleport/src/teleport.d.ts +5 -7
  368. package/es/components/teleport/src/teleport.mjs +4 -11
  369. package/es/components/teleport/src/teleport.mjs.map +1 -1
  370. package/es/components/teleport/src/teleport.vue.d.ts +8 -49
  371. package/es/components/teleport/src/teleport2.mjs +7 -34
  372. package/es/components/teleport/src/teleport2.mjs.map +1 -1
  373. package/es/components/time-picker/src/common/picker.mjs +5 -2
  374. package/es/components/time-picker/src/common/picker.mjs.map +1 -1
  375. package/es/components/time-picker/src/common/picker.vue.d.ts +91 -34
  376. package/es/components/time-select/index.d.ts +209 -57
  377. package/es/components/time-select/src/time-select.vue.d.ts +209 -57
  378. package/es/components/tooltip/index.d.ts +25 -6
  379. package/es/components/tooltip/src/content.vue.d.ts +25 -6
  380. package/es/components/tooltip/src/content2.mjs +55 -51
  381. package/es/components/tooltip/src/content2.mjs.map +1 -1
  382. package/es/components/tooltip/src/tooltip.vue.d.ts +28 -6
  383. package/es/components/tooltip-v2/index.d.ts +23 -4
  384. package/es/components/tooltip-v2/src/tooltip.vue.d.ts +23 -4
  385. package/es/components/tooltip-v2/src/tooltip2.mjs +26 -22
  386. package/es/components/tooltip-v2/src/tooltip2.mjs.map +1 -1
  387. package/es/components/tour/index.d.ts +30 -11
  388. package/es/components/tour/src/content.vue.d.ts +1 -1
  389. package/es/components/tour/src/step.vue.d.ts +5 -5
  390. package/es/components/tour/src/tour.vue.d.ts +20 -1
  391. package/es/components/tour/src/tour2.mjs +38 -32
  392. package/es/components/tour/src/tour2.mjs.map +1 -1
  393. package/es/components/transfer/index.d.ts +65 -65
  394. package/es/components/transfer/src/transfer-panel.vue.d.ts +12 -12
  395. package/es/components/transfer/src/transfer.vue.d.ts +65 -65
  396. package/es/components/tree-v2/index.d.ts +1 -1
  397. package/es/components/tree-v2/src/tree-node.vue.d.ts +1 -1
  398. package/es/components/tree-v2/src/tree.vue.d.ts +1 -1
  399. package/es/components/upload/index.d.ts +5 -5
  400. package/es/components/upload/src/upload-content.vue.d.ts +1 -1
  401. package/es/components/upload/src/upload.vue.d.ts +5 -5
  402. package/es/hooks/use-throttle-render/index.mjs +2 -2
  403. package/es/hooks/use-throttle-render/index.mjs.map +1 -1
  404. package/es/index.mjs +2 -2
  405. package/es/locale/lang/zh-cn.d.ts +32 -0
  406. package/es/locale/lang/zh-cn.mjs +33 -1
  407. package/es/locale/lang/zh-cn.mjs.map +1 -1
  408. package/es/locale/lang/zh-tw.d.ts +1 -0
  409. package/es/locale/lang/zh-tw.mjs +2 -1
  410. package/es/locale/lang/zh-tw.mjs.map +1 -1
  411. package/es/version.d.ts +1 -1
  412. package/es/version.mjs +1 -1
  413. package/es/version.mjs.map +1 -1
  414. package/lib/components/alert/index.d.ts +4 -4
  415. package/lib/components/alert/src/alert.d.ts +1 -1
  416. package/lib/components/alert/src/alert.vue.d.ts +4 -4
  417. package/lib/components/autocomplete/index.d.ts +122 -65
  418. package/lib/components/autocomplete/src/autocomplete.vue.d.ts +122 -65
  419. package/lib/components/button/index.d.ts +5 -5
  420. package/lib/components/button/src/button.d.ts +1 -1
  421. package/lib/components/button/src/button.vue.d.ts +5 -5
  422. package/lib/components/button/src/use-button.d.ts +1 -1
  423. package/lib/components/calendar/index.d.ts +5 -5
  424. package/lib/components/calendar/src/calendar.vue.d.ts +5 -5
  425. package/lib/components/carousel/index.d.ts +1 -1
  426. package/lib/components/carousel/src/carousel.vue.d.ts +1 -1
  427. package/lib/components/cascader/index.d.ts +244 -130
  428. package/lib/components/cascader/src/cascader.vue.d.ts +122 -65
  429. package/lib/components/color-picker/index.d.ts +95 -38
  430. package/lib/components/color-picker/src/color-picker.vue.d.ts +95 -38
  431. package/lib/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +17 -17
  432. package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +17 -17
  433. package/lib/components/date-picker/src/panel-utils.d.ts +34 -34
  434. package/lib/components/dialog/index.d.ts +20 -1
  435. package/lib/components/dialog/src/dialog.vue.d.ts +20 -1
  436. package/lib/components/dialog/src/dialog2.js +93 -89
  437. package/lib/components/dialog/src/dialog2.js.map +1 -1
  438. package/lib/components/drawer/index.d.ts +20 -1
  439. package/lib/components/drawer/src/drawer.vue.d.ts +20 -1
  440. package/lib/components/drawer/src/drawer2.js +115 -111
  441. package/lib/components/drawer/src/drawer2.js.map +1 -1
  442. package/lib/components/dropdown/index.d.ts +52 -14
  443. package/lib/components/dropdown/src/dropdown-item-impl.vue.d.ts +1 -1
  444. package/lib/components/dropdown/src/dropdown-item.vue.d.ts +1 -1
  445. package/lib/components/dropdown/src/dropdown.vue.d.ts +50 -12
  446. package/lib/components/focus-trap/src/focus-trap.vue.d.ts +1 -1
  447. package/lib/components/form/index.d.ts +12 -12
  448. package/lib/components/form/src/form-item.d.ts +1 -1
  449. package/lib/components/form/src/form-item.vue.d.ts +5 -5
  450. package/lib/components/icon/index.js +2 -2
  451. package/lib/components/icon/src/icon.js +8 -36
  452. package/lib/components/icon/src/icon.js.map +1 -1
  453. package/lib/components/icon/src/icon2.js +36 -8
  454. package/lib/components/icon/src/icon2.js.map +1 -1
  455. package/lib/components/image/index.d.ts +20 -1
  456. package/lib/components/image/src/image.vue.d.ts +20 -1
  457. package/lib/components/image-viewer/index.d.ts +19 -0
  458. package/lib/components/image-viewer/index.js +2 -2
  459. package/lib/components/image-viewer/src/image-viewer.js +46 -389
  460. package/lib/components/image-viewer/src/image-viewer.js.map +1 -1
  461. package/lib/components/image-viewer/src/image-viewer.vue.d.ts +19 -0
  462. package/lib/components/image-viewer/src/image-viewer2.js +393 -46
  463. package/lib/components/image-viewer/src/image-viewer2.js.map +1 -1
  464. package/lib/components/index.js +2 -2
  465. package/lib/components/input/index.d.ts +12 -12
  466. package/lib/components/input/src/input.vue.d.ts +12 -12
  467. package/lib/components/input-number/index.d.ts +45 -45
  468. package/lib/components/input-number/src/input-number.vue.d.ts +45 -45
  469. package/lib/components/loading/src/loading.js +1 -1
  470. package/lib/components/loading/src/loading.js.map +1 -1
  471. package/lib/components/mention/src/mention.vue.d.ts +121 -64
  472. package/lib/components/message/src/message.d.ts +1 -1
  473. package/lib/components/message/src/message.vue.d.ts +4 -4
  474. package/lib/components/message-box/src/index.vue.d.ts +1 -1
  475. package/lib/components/notification/src/notification.d.ts +1 -1
  476. package/lib/components/notification/src/notification.vue.d.ts +4 -4
  477. package/lib/components/pagination/src/components/jumper.vue.d.ts +12 -12
  478. package/lib/components/pagination/src/components/sizes.vue.d.ts +103 -27
  479. package/lib/components/popconfirm/index.d.ts +80 -23
  480. package/lib/components/popconfirm/src/popconfirm.vue.d.ts +80 -23
  481. package/lib/components/popover/index.d.ts +75 -18
  482. package/lib/components/popover/src/popover.vue.d.ts +75 -18
  483. package/lib/components/popper/src/content.vue.d.ts +6 -6
  484. package/lib/components/result/index.d.ts +4 -4
  485. package/lib/components/result/src/result.d.ts +1 -1
  486. package/lib/components/result/src/result.vue.d.ts +4 -4
  487. package/lib/components/roving-focus-group/src/roving-focus-item.vue.d.ts +1 -1
  488. package/lib/components/select/index.d.ts +103 -27
  489. package/lib/components/select/index.js +1 -1
  490. package/lib/components/select/src/select.js +398 -104
  491. package/lib/components/select/src/select.js.map +1 -1
  492. package/lib/components/select/src/select.vue.d.ts +103 -27
  493. package/lib/components/select/src/select2.js +104 -398
  494. package/lib/components/select/src/select2.js.map +1 -1
  495. package/lib/components/select/src/useSelect.d.ts +101 -25
  496. package/lib/components/select-v2/index.d.ts +206 -54
  497. package/lib/components/select-v2/src/option-item.vue.d.ts +1 -1
  498. package/lib/components/select-v2/src/select.vue.d.ts +103 -27
  499. package/lib/components/select-v2/src/useSelect.d.ts +101 -25
  500. package/lib/components/slider/index.d.ts +121 -63
  501. package/lib/components/slider/src/button.vue.d.ts +75 -18
  502. package/lib/components/slider/src/composables/use-slide.d.ts +1 -0
  503. package/lib/components/slider/src/composables/use-slide.js +6 -0
  504. package/lib/components/slider/src/composables/use-slide.js.map +1 -1
  505. package/lib/components/slider/src/composables/use-slider-button.d.ts +50 -12
  506. package/lib/components/slider/src/slider.vue.d.ts +121 -63
  507. package/lib/components/slider/src/slider2.js +4 -2
  508. package/lib/components/slider/src/slider2.js.map +1 -1
  509. package/lib/components/steps/index.d.ts +16 -16
  510. package/lib/components/steps/src/item.d.ts +1 -1
  511. package/lib/components/steps/src/item.vue.d.ts +4 -4
  512. package/lib/components/steps/src/steps.d.ts +2 -2
  513. package/lib/components/steps/src/steps.vue.d.ts +8 -8
  514. package/lib/components/table/index.d.ts +6 -13
  515. package/lib/components/table/src/filter-panel.vue.d.ts +50 -12
  516. package/lib/components/table/src/store/helper.js +4 -0
  517. package/lib/components/table/src/store/helper.js.map +1 -1
  518. package/lib/components/table/src/store/tree.js +3 -1
  519. package/lib/components/table/src/store/tree.js.map +1 -1
  520. package/lib/components/table/src/store/watcher.js +37 -34
  521. package/lib/components/table/src/store/watcher.js.map +1 -1
  522. package/lib/components/table/src/table/defaults.d.ts +9 -9
  523. package/lib/components/table/src/table/defaults.js +2 -1
  524. package/lib/components/table/src/table/defaults.js.map +1 -1
  525. package/lib/components/table/src/table.vue.d.ts +8 -19
  526. package/lib/components/table/src/util.d.ts +2 -2
  527. package/lib/components/table/src/util.js +27 -11
  528. package/lib/components/table/src/util.js.map +1 -1
  529. package/lib/components/tag/index.d.ts +1 -1
  530. package/lib/components/tag/src/tag.vue.d.ts +1 -1
  531. package/lib/components/teleport/index.d.ts +8 -48
  532. package/lib/components/teleport/src/teleport.d.ts +5 -7
  533. package/lib/components/teleport/src/teleport.js +4 -11
  534. package/lib/components/teleport/src/teleport.js.map +1 -1
  535. package/lib/components/teleport/src/teleport.vue.d.ts +8 -49
  536. package/lib/components/teleport/src/teleport2.js +6 -33
  537. package/lib/components/teleport/src/teleport2.js.map +1 -1
  538. package/lib/components/time-picker/src/common/picker.js +5 -2
  539. package/lib/components/time-picker/src/common/picker.js.map +1 -1
  540. package/lib/components/time-picker/src/common/picker.vue.d.ts +91 -34
  541. package/lib/components/time-select/index.d.ts +209 -57
  542. package/lib/components/time-select/src/time-select.vue.d.ts +209 -57
  543. package/lib/components/tooltip/index.d.ts +25 -6
  544. package/lib/components/tooltip/src/content.vue.d.ts +25 -6
  545. package/lib/components/tooltip/src/content2.js +54 -50
  546. package/lib/components/tooltip/src/content2.js.map +1 -1
  547. package/lib/components/tooltip/src/tooltip.vue.d.ts +28 -6
  548. package/lib/components/tooltip-v2/index.d.ts +23 -4
  549. package/lib/components/tooltip-v2/src/tooltip.vue.d.ts +23 -4
  550. package/lib/components/tooltip-v2/src/tooltip2.js +25 -21
  551. package/lib/components/tooltip-v2/src/tooltip2.js.map +1 -1
  552. package/lib/components/tour/index.d.ts +30 -11
  553. package/lib/components/tour/src/content.vue.d.ts +1 -1
  554. package/lib/components/tour/src/step.vue.d.ts +5 -5
  555. package/lib/components/tour/src/tour.vue.d.ts +20 -1
  556. package/lib/components/tour/src/tour2.js +37 -31
  557. package/lib/components/tour/src/tour2.js.map +1 -1
  558. package/lib/components/transfer/index.d.ts +65 -65
  559. package/lib/components/transfer/src/transfer-panel.vue.d.ts +12 -12
  560. package/lib/components/transfer/src/transfer.vue.d.ts +65 -65
  561. package/lib/components/tree-v2/index.d.ts +1 -1
  562. package/lib/components/tree-v2/src/tree-node.vue.d.ts +1 -1
  563. package/lib/components/tree-v2/src/tree.vue.d.ts +1 -1
  564. package/lib/components/upload/index.d.ts +5 -5
  565. package/lib/components/upload/src/upload-content.vue.d.ts +1 -1
  566. package/lib/components/upload/src/upload.vue.d.ts +5 -5
  567. package/lib/hooks/use-throttle-render/index.js +2 -2
  568. package/lib/hooks/use-throttle-render/index.js.map +1 -1
  569. package/lib/index.js +2 -2
  570. package/lib/locale/lang/zh-cn.d.ts +32 -0
  571. package/lib/locale/lang/zh-cn.js +33 -1
  572. package/lib/locale/lang/zh-cn.js.map +1 -1
  573. package/lib/locale/lang/zh-tw.d.ts +1 -0
  574. package/lib/locale/lang/zh-tw.js +2 -1
  575. package/lib/locale/lang/zh-tw.js.map +1 -1
  576. package/lib/version.d.ts +1 -1
  577. package/lib/version.js +1 -1
  578. package/lib/version.js.map +1 -1
  579. package/package.json +2 -2
  580. package/tags.json +1 -1
  581. package/theme-chalk/el-drawer.css +1 -1
  582. package/theme-chalk/index.css +1 -1
  583. package/theme-chalk/src/drawer.scss +1 -6
  584. package/web-types.json +1 -1
@@ -14,8 +14,8 @@ export declare const ElSteps: import("@element-plus/nightly/es/utils").SFCWithIn
14
14
  readonly validator: ((val: unknown) => boolean) | undefined;
15
15
  __epPropKey: true;
16
16
  };
17
- readonly finishStatus: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "error" | "success" | "wait" | "finish" | "process", unknown, "finish", boolean>;
18
- readonly processStatus: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "error" | "success" | "wait" | "finish" | "process", unknown, "process", boolean>;
17
+ readonly finishStatus: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "success" | "error" | "wait" | "finish" | "process", unknown, "finish", boolean>;
18
+ readonly processStatus: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "success" | "error" | "wait" | "finish" | "process", unknown, "process", boolean>;
19
19
  }, {
20
20
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
21
21
  readonly space: import("@element-plus/nightly/es/utils").EpPropFinalized<readonly [NumberConstructor, StringConstructor], unknown, unknown, "", boolean>;
@@ -33,8 +33,8 @@ export declare const ElSteps: import("@element-plus/nightly/es/utils").SFCWithIn
33
33
  readonly validator: ((val: unknown) => boolean) | undefined;
34
34
  __epPropKey: true;
35
35
  };
36
- readonly finishStatus: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "error" | "success" | "wait" | "finish" | "process", unknown, "finish", boolean>;
37
- readonly processStatus: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "error" | "success" | "wait" | "finish" | "process", unknown, "process", boolean>;
36
+ readonly finishStatus: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "success" | "error" | "wait" | "finish" | "process", unknown, "finish", boolean>;
37
+ readonly processStatus: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "success" | "error" | "wait" | "finish" | "process", unknown, "process", boolean>;
38
38
  }>> & {
39
39
  onChange?: ((newVal: number, oldVal: number) => any) | undefined;
40
40
  }>>;
@@ -78,16 +78,16 @@ export declare const ElSteps: import("@element-plus/nightly/es/utils").SFCWithIn
78
78
  readonly validator: ((val: unknown) => boolean) | undefined;
79
79
  __epPropKey: true;
80
80
  };
81
- readonly finishStatus: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "error" | "success" | "wait" | "finish" | "process", unknown, "finish", boolean>;
82
- readonly processStatus: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "error" | "success" | "wait" | "finish" | "process", unknown, "process", boolean>;
81
+ readonly finishStatus: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "success" | "error" | "wait" | "finish" | "process", unknown, "finish", boolean>;
82
+ readonly processStatus: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "success" | "error" | "wait" | "finish" | "process", unknown, "process", boolean>;
83
83
  }>> & {
84
84
  onChange?: ((newVal: number, oldVal: number) => any) | undefined;
85
85
  }, {
86
86
  readonly direction: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "vertical" | "horizontal", unknown>;
87
87
  readonly active: number;
88
88
  readonly space: import("@element-plus/nightly/es/utils").EpPropMergeType<readonly [NumberConstructor, StringConstructor], unknown, unknown>;
89
- readonly finishStatus: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "error" | "success" | "wait" | "finish" | "process", unknown>;
90
- readonly processStatus: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "error" | "success" | "wait" | "finish" | "process", unknown>;
89
+ readonly finishStatus: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "success" | "error" | "wait" | "finish" | "process", unknown>;
90
+ readonly processStatus: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "success" | "error" | "wait" | "finish" | "process", unknown>;
91
91
  }>> & {
92
92
  Step: import("vue").DefineComponent<{
93
93
  readonly title: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
@@ -98,7 +98,7 @@ export declare const ElSteps: import("@element-plus/nightly/es/utils").SFCWithIn
98
98
  __epPropKey: true;
99
99
  };
100
100
  readonly description: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
101
- readonly status: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "" | "error" | "success" | "wait" | "finish" | "process", unknown, "", boolean>;
101
+ readonly status: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "" | "success" | "error" | "wait" | "finish" | "process", unknown, "", boolean>;
102
102
  }, {
103
103
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
104
104
  readonly title: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
@@ -109,7 +109,7 @@ export declare const ElSteps: import("@element-plus/nightly/es/utils").SFCWithIn
109
109
  __epPropKey: true;
110
110
  };
111
111
  readonly description: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
112
- readonly status: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "" | "error" | "success" | "wait" | "finish" | "process", unknown, "", boolean>;
112
+ readonly status: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "" | "success" | "error" | "wait" | "finish" | "process", unknown, "", boolean>;
113
113
  }>> & {
114
114
  [x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
115
115
  }>>;
@@ -229,11 +229,11 @@ export declare const ElSteps: import("@element-plus/nightly/es/utils").SFCWithIn
229
229
  __epPropKey: true;
230
230
  };
231
231
  readonly description: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
232
- readonly status: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "" | "error" | "success" | "wait" | "finish" | "process", unknown, "", boolean>;
232
+ readonly status: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "" | "success" | "error" | "wait" | "finish" | "process", unknown, "", boolean>;
233
233
  }>>, {
234
234
  readonly title: string;
235
235
  readonly description: string;
236
- readonly status: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "wait" | "finish" | "process", unknown>;
236
+ readonly status: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "" | "success" | "error" | "wait" | "finish" | "process", unknown>;
237
237
  }>;
238
238
  };
239
239
  export default ElSteps;
@@ -246,7 +246,7 @@ export declare const ElStep: import("@element-plus/nightly/es/utils").SFCWithIns
246
246
  __epPropKey: true;
247
247
  };
248
248
  readonly description: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
249
- readonly status: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "" | "error" | "success" | "wait" | "finish" | "process", unknown, "", boolean>;
249
+ readonly status: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "" | "success" | "error" | "wait" | "finish" | "process", unknown, "", boolean>;
250
250
  }, {
251
251
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
252
252
  readonly title: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
@@ -257,7 +257,7 @@ export declare const ElStep: import("@element-plus/nightly/es/utils").SFCWithIns
257
257
  __epPropKey: true;
258
258
  };
259
259
  readonly description: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
260
- readonly status: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "" | "error" | "success" | "wait" | "finish" | "process", unknown, "", boolean>;
260
+ readonly status: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "" | "success" | "error" | "wait" | "finish" | "process", unknown, "", boolean>;
261
261
  }>> & {
262
262
  [x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
263
263
  }>>;
@@ -377,11 +377,11 @@ export declare const ElStep: import("@element-plus/nightly/es/utils").SFCWithIns
377
377
  __epPropKey: true;
378
378
  };
379
379
  readonly description: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
380
- readonly status: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "" | "error" | "success" | "wait" | "finish" | "process", unknown, "", boolean>;
380
+ readonly status: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "" | "success" | "error" | "wait" | "finish" | "process", unknown, "", boolean>;
381
381
  }>>, {
382
382
  readonly title: string;
383
383
  readonly description: string;
384
- readonly status: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "wait" | "finish" | "process", unknown>;
384
+ readonly status: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "" | "success" | "error" | "wait" | "finish" | "process", unknown>;
385
385
  }>>;
386
386
  export * from './src/item';
387
387
  export * from './src/steps';
@@ -9,7 +9,7 @@ export declare const stepProps: {
9
9
  __epPropKey: true;
10
10
  };
11
11
  readonly description: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
12
- readonly status: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "" | "error" | "success" | "wait" | "finish" | "process", unknown, "", boolean>;
12
+ readonly status: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "" | "success" | "error" | "wait" | "finish" | "process", unknown, "", boolean>;
13
13
  };
14
14
  export declare type StepProps = ExtractPropTypes<typeof stepProps>;
15
15
  export declare type StepInstance = InstanceType<typeof Step>;
@@ -29,7 +29,7 @@ declare const _default: import("vue").DefineComponent<{
29
29
  __epPropKey: true;
30
30
  };
31
31
  readonly description: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
32
- readonly status: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "" | "error" | "success" | "wait" | "finish" | "process", unknown, "", boolean>;
32
+ readonly status: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "" | "success" | "error" | "wait" | "finish" | "process", unknown, "", boolean>;
33
33
  }, {
34
34
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
35
35
  readonly title: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
@@ -40,7 +40,7 @@ declare const _default: import("vue").DefineComponent<{
40
40
  __epPropKey: true;
41
41
  };
42
42
  readonly description: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
43
- readonly status: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "" | "error" | "success" | "wait" | "finish" | "process", unknown, "", boolean>;
43
+ readonly status: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "" | "success" | "error" | "wait" | "finish" | "process", unknown, "", boolean>;
44
44
  }>> & {
45
45
  [x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
46
46
  }>>;
@@ -160,10 +160,10 @@ declare const _default: import("vue").DefineComponent<{
160
160
  __epPropKey: true;
161
161
  };
162
162
  readonly description: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
163
- readonly status: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "" | "error" | "success" | "wait" | "finish" | "process", unknown, "", boolean>;
163
+ readonly status: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "" | "success" | "error" | "wait" | "finish" | "process", unknown, "", boolean>;
164
164
  }>>, {
165
165
  readonly title: string;
166
166
  readonly description: string;
167
- readonly status: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "wait" | "finish" | "process", unknown>;
167
+ readonly status: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "" | "success" | "error" | "wait" | "finish" | "process", unknown>;
168
168
  }>;
169
169
  export default _default;
@@ -16,8 +16,8 @@ export declare const stepsProps: {
16
16
  readonly validator: ((val: unknown) => boolean) | undefined;
17
17
  __epPropKey: true;
18
18
  };
19
- readonly finishStatus: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "error" | "success" | "wait" | "finish" | "process", unknown, "finish", boolean>;
20
- readonly processStatus: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "error" | "success" | "wait" | "finish" | "process", unknown, "process", boolean>;
19
+ readonly finishStatus: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "success" | "error" | "wait" | "finish" | "process", unknown, "finish", boolean>;
20
+ readonly processStatus: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "success" | "error" | "wait" | "finish" | "process", unknown, "process", boolean>;
21
21
  };
22
22
  export declare type StepsProps = ExtractPropTypes<typeof stepsProps>;
23
23
  export declare const stepsEmits: {
@@ -15,8 +15,8 @@ declare const _default: import("vue").DefineComponent<{
15
15
  readonly validator: ((val: unknown) => boolean) | undefined;
16
16
  __epPropKey: true;
17
17
  };
18
- readonly finishStatus: import("../../../utils").EpPropFinalized<StringConstructor, "error" | "success" | "wait" | "finish" | "process", unknown, "finish", boolean>;
19
- readonly processStatus: import("../../../utils").EpPropFinalized<StringConstructor, "error" | "success" | "wait" | "finish" | "process", unknown, "process", boolean>;
18
+ readonly finishStatus: import("../../../utils").EpPropFinalized<StringConstructor, "success" | "error" | "wait" | "finish" | "process", unknown, "finish", boolean>;
19
+ readonly processStatus: import("../../../utils").EpPropFinalized<StringConstructor, "success" | "error" | "wait" | "finish" | "process", unknown, "process", boolean>;
20
20
  }, {
21
21
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
22
22
  readonly space: import("../../../utils").EpPropFinalized<readonly [NumberConstructor, StringConstructor], unknown, unknown, "", boolean>;
@@ -34,8 +34,8 @@ declare const _default: import("vue").DefineComponent<{
34
34
  readonly validator: ((val: unknown) => boolean) | undefined;
35
35
  __epPropKey: true;
36
36
  };
37
- readonly finishStatus: import("../../../utils").EpPropFinalized<StringConstructor, "error" | "success" | "wait" | "finish" | "process", unknown, "finish", boolean>;
38
- readonly processStatus: import("../../../utils").EpPropFinalized<StringConstructor, "error" | "success" | "wait" | "finish" | "process", unknown, "process", boolean>;
37
+ readonly finishStatus: import("../../../utils").EpPropFinalized<StringConstructor, "success" | "error" | "wait" | "finish" | "process", unknown, "finish", boolean>;
38
+ readonly processStatus: import("../../../utils").EpPropFinalized<StringConstructor, "success" | "error" | "wait" | "finish" | "process", unknown, "process", boolean>;
39
39
  }>> & {
40
40
  onChange?: ((newVal: number, oldVal: number) => any) | undefined;
41
41
  }>>;
@@ -79,15 +79,15 @@ declare const _default: import("vue").DefineComponent<{
79
79
  readonly validator: ((val: unknown) => boolean) | undefined;
80
80
  __epPropKey: true;
81
81
  };
82
- readonly finishStatus: import("../../../utils").EpPropFinalized<StringConstructor, "error" | "success" | "wait" | "finish" | "process", unknown, "finish", boolean>;
83
- readonly processStatus: import("../../../utils").EpPropFinalized<StringConstructor, "error" | "success" | "wait" | "finish" | "process", unknown, "process", boolean>;
82
+ readonly finishStatus: import("../../../utils").EpPropFinalized<StringConstructor, "success" | "error" | "wait" | "finish" | "process", unknown, "finish", boolean>;
83
+ readonly processStatus: import("../../../utils").EpPropFinalized<StringConstructor, "success" | "error" | "wait" | "finish" | "process", unknown, "process", boolean>;
84
84
  }>> & {
85
85
  onChange?: ((newVal: number, oldVal: number) => any) | undefined;
86
86
  }, {
87
87
  readonly direction: import("../../../utils").EpPropMergeType<StringConstructor, "vertical" | "horizontal", unknown>;
88
88
  readonly active: number;
89
89
  readonly space: import("../../../utils").EpPropMergeType<readonly [NumberConstructor, StringConstructor], unknown, unknown>;
90
- readonly finishStatus: import("../../../utils").EpPropMergeType<StringConstructor, "error" | "success" | "wait" | "finish" | "process", unknown>;
91
- readonly processStatus: import("../../../utils").EpPropMergeType<StringConstructor, "error" | "success" | "wait" | "finish" | "process", unknown>;
90
+ readonly finishStatus: import("../../../utils").EpPropMergeType<StringConstructor, "success" | "error" | "wait" | "finish" | "process", unknown>;
91
+ readonly processStatus: import("../../../utils").EpPropMergeType<StringConstructor, "success" | "error" | "wait" | "finish" | "process", unknown>;
92
92
  }>;
93
93
  export default _default;
@@ -62,13 +62,11 @@ export declare const ElTable: import("@element-plus/nightly/es/utils").SFCWithIn
62
62
  default: number;
63
63
  };
64
64
  treeProps: {
65
- type: import("vue").PropType<{
66
- hasChildren?: string | undefined;
67
- children?: string | undefined;
68
- } | undefined>;
65
+ type: import("vue").PropType<import("./src/table/defaults").TreeProps | undefined>;
69
66
  default: () => {
70
67
  hasChildren: string;
71
68
  children: string;
69
+ checkStrictly: boolean;
72
70
  };
73
71
  };
74
72
  lazy: BooleanConstructor;
@@ -178,7 +176,7 @@ export declare const ElTable: import("@element-plus/nightly/es/utils").SFCWithIn
178
176
  scrollTo: (options: number | ScrollToOptions, yCoord?: number | undefined) => void;
179
177
  setScrollLeft: (left?: number | undefined) => void;
180
178
  setScrollTop: (top?: number | undefined) => void;
181
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "select-all" | "expand-change" | "current-change" | "selection-change" | "cell-mouse-enter" | "cell-mouse-leave" | "cell-contextmenu" | "cell-click" | "cell-dblclick" | "row-click" | "row-contextmenu" | "row-dblclick" | "header-click" | "header-contextmenu" | "sort-change" | "filter-change" | "header-dragend")[], "select" | "select-all" | "expand-change" | "current-change" | "selection-change" | "cell-mouse-enter" | "cell-mouse-leave" | "cell-contextmenu" | "cell-click" | "cell-dblclick" | "row-click" | "row-contextmenu" | "row-dblclick" | "header-click" | "header-contextmenu" | "sort-change" | "filter-change" | "header-dragend", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
179
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select-all" | "expand-change" | "current-change" | "select" | "selection-change" | "cell-mouse-enter" | "cell-mouse-leave" | "cell-contextmenu" | "cell-click" | "cell-dblclick" | "row-click" | "row-contextmenu" | "row-dblclick" | "header-click" | "header-contextmenu" | "sort-change" | "filter-change" | "header-dragend")[], "select" | "select-all" | "expand-change" | "current-change" | "selection-change" | "cell-mouse-enter" | "cell-mouse-leave" | "cell-contextmenu" | "cell-click" | "cell-dblclick" | "row-click" | "row-contextmenu" | "row-dblclick" | "header-click" | "header-contextmenu" | "sort-change" | "filter-change" | "header-dragend", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
182
180
  data: {
183
181
  type: import("vue").PropType<any[]>;
184
182
  default: () => never[];
@@ -240,13 +238,11 @@ export declare const ElTable: import("@element-plus/nightly/es/utils").SFCWithIn
240
238
  default: number;
241
239
  };
242
240
  treeProps: {
243
- type: import("vue").PropType<{
244
- hasChildren?: string | undefined;
245
- children?: string | undefined;
246
- } | undefined>;
241
+ type: import("vue").PropType<import("./src/table/defaults").TreeProps | undefined>;
247
242
  default: () => {
248
243
  hasChildren: string;
249
244
  children: string;
245
+ checkStrictly: boolean;
250
246
  };
251
247
  };
252
248
  lazy: BooleanConstructor;
@@ -295,10 +291,7 @@ export declare const ElTable: import("@element-plus/nightly/es/utils").SFCWithIn
295
291
  lazy: boolean;
296
292
  scrollbarAlwaysOn: boolean;
297
293
  stripe: boolean;
298
- treeProps: {
299
- hasChildren?: string | undefined;
300
- children?: string | undefined;
301
- } | undefined;
294
+ treeProps: import("./src/table/defaults").TreeProps | undefined;
302
295
  showHeader: boolean;
303
296
  showSummary: boolean;
304
297
  highlightCurrentRow: boolean;
@@ -2416,7 +2416,7 @@ declare const _default: import("vue").DefineComponent<{
2416
2416
  readonly popperOptions: import("../../../utils").EpPropFinalized<(new (...args: any[]) => Partial<import("@element-plus/nightly/es/components/popper").Options>) | (() => Partial<import("@element-plus/nightly/es/components/popper").Options>) | ((new (...args: any[]) => Partial<import("@element-plus/nightly/es/components/popper").Options>) | (() => Partial<import("@element-plus/nightly/es/components/popper").Options>))[], unknown, unknown, () => {}, boolean>;
2417
2417
  readonly strategy: import("../../../utils").EpPropFinalized<StringConstructor, "fixed" | "absolute", unknown, "absolute", boolean>;
2418
2418
  }, {
2419
- emit: ((event: "blur") => void) & ((event: "close") => void) & ((event: "focus") => void) & ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "mouseleave", evt: MouseEvent) => void);
2419
+ emit: ((event: "close") => void) & ((event: "focus") => void) & ((event: "blur") => void) & ((event: "mouseleave", evt: MouseEvent) => void) & ((event: "mouseenter", evt: MouseEvent) => void);
2420
2420
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
2421
2421
  readonly ariaLabel: StringConstructor;
2422
2422
  readonly id: StringConstructor;
@@ -2666,10 +2666,10 @@ declare const _default: import("vue").DefineComponent<{
2666
2666
  readonly strategy: import("../../../utils").EpPropFinalized<StringConstructor, "fixed" | "absolute", unknown, "absolute", boolean>;
2667
2667
  }>> & {
2668
2668
  onClose?: (() => any) | undefined;
2669
- onBlur?: (() => any) | undefined;
2670
2669
  onFocus?: (() => any) | undefined;
2671
- onMouseenter?: ((evt: MouseEvent) => any) | undefined;
2670
+ onBlur?: (() => any) | undefined;
2672
2671
  onMouseleave?: ((evt: MouseEvent) => any) | undefined;
2672
+ onMouseenter?: ((evt: MouseEvent) => any) | undefined;
2673
2673
  }>>;
2674
2674
  focusStartRef: import("vue").Ref<HTMLElement | "container" | "first" | undefined>;
2675
2675
  trapped: import("vue").Ref<boolean>;
@@ -2738,7 +2738,7 @@ declare const _default: import("vue").DefineComponent<{
2738
2738
  };
2739
2739
  }, {
2740
2740
  onKeydown: (e: KeyboardEvent) => void;
2741
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focusin" | "focusout" | "focusAfterTrapped" | "focusAfterReleased" | "focusout-prevented" | "release-requested")[], "focusin" | "focusout" | "focusAfterTrapped" | "focusAfterReleased" | "focusout-prevented" | "release-requested", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
2741
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focusAfterTrapped" | "focusAfterReleased" | "focusin" | "focusout" | "focusout-prevented" | "release-requested")[], "focusAfterTrapped" | "focusAfterReleased" | "focusin" | "focusout" | "focusout-prevented" | "release-requested", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
2742
2742
  loop: BooleanConstructor;
2743
2743
  trapped: BooleanConstructor;
2744
2744
  focusTrapEl: PropType<HTMLElement>;
@@ -3013,10 +3013,10 @@ declare const _default: import("vue").DefineComponent<{
3013
3013
  readonly strategy: import("../../../utils").EpPropFinalized<StringConstructor, "fixed" | "absolute", unknown, "absolute", boolean>;
3014
3014
  }>> & {
3015
3015
  onClose?: (() => any) | undefined;
3016
- onBlur?: (() => any) | undefined;
3017
3016
  onFocus?: (() => any) | undefined;
3018
- onMouseenter?: ((evt: MouseEvent) => any) | undefined;
3017
+ onBlur?: (() => any) | undefined;
3019
3018
  onMouseleave?: ((evt: MouseEvent) => any) | undefined;
3019
+ onMouseenter?: ((evt: MouseEvent) => any) | undefined;
3020
3020
  }, {
3021
3021
  readonly offset: number;
3022
3022
  readonly effect: string;
@@ -3034,6 +3034,25 @@ declare const _default: import("vue").DefineComponent<{
3034
3034
  readonly pure: boolean;
3035
3035
  readonly virtualTriggering: boolean;
3036
3036
  }>;
3037
+ ElTeleport: import("../../../utils").SFCWithInstall<import("vue").DefineComponent<{
3038
+ readonly to: {
3039
+ readonly type: PropType<import("../../../utils").EpPropMergeType<(new (...args: any[]) => (string | HTMLElement) & {}) | (() => string | HTMLElement) | ((new (...args: any[]) => (string | HTMLElement) & {}) | (() => string | HTMLElement))[], unknown, unknown>>;
3040
+ readonly required: true;
3041
+ readonly validator: ((val: unknown) => boolean) | undefined;
3042
+ __epPropKey: true;
3043
+ };
3044
+ readonly disabled: BooleanConstructor;
3045
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
3046
+ readonly to: {
3047
+ readonly type: PropType<import("../../../utils").EpPropMergeType<(new (...args: any[]) => (string | HTMLElement) & {}) | (() => string | HTMLElement) | ((new (...args: any[]) => (string | HTMLElement) & {}) | (() => string | HTMLElement))[], unknown, unknown>>;
3048
+ readonly required: true;
3049
+ readonly validator: ((val: unknown) => boolean) | undefined;
3050
+ __epPropKey: true;
3051
+ };
3052
+ readonly disabled: BooleanConstructor;
3053
+ }>>, {
3054
+ readonly disabled: boolean;
3055
+ }>> & Record<string, any>;
3037
3056
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
3038
3057
  readonly ariaLabel: StringConstructor;
3039
3058
  readonly appendTo: {
@@ -5368,7 +5387,7 @@ declare const _default: import("vue").DefineComponent<{
5368
5387
  readonly popperOptions: import("../../../utils").EpPropFinalized<(new (...args: any[]) => Partial<import("@element-plus/nightly/es/components/popper").Options>) | (() => Partial<import("@element-plus/nightly/es/components/popper").Options>) | ((new (...args: any[]) => Partial<import("@element-plus/nightly/es/components/popper").Options>) | (() => Partial<import("@element-plus/nightly/es/components/popper").Options>))[], unknown, unknown, () => {}, boolean>;
5369
5388
  readonly strategy: import("../../../utils").EpPropFinalized<StringConstructor, "fixed" | "absolute", unknown, "absolute", boolean>;
5370
5389
  }, {
5371
- emit: ((event: "blur") => void) & ((event: "close") => void) & ((event: "focus") => void) & ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "mouseleave", evt: MouseEvent) => void);
5390
+ emit: ((event: "close") => void) & ((event: "focus") => void) & ((event: "blur") => void) & ((event: "mouseleave", evt: MouseEvent) => void) & ((event: "mouseenter", evt: MouseEvent) => void);
5372
5391
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
5373
5392
  readonly ariaLabel: StringConstructor;
5374
5393
  readonly id: StringConstructor;
@@ -5618,10 +5637,10 @@ declare const _default: import("vue").DefineComponent<{
5618
5637
  readonly strategy: import("../../../utils").EpPropFinalized<StringConstructor, "fixed" | "absolute", unknown, "absolute", boolean>;
5619
5638
  }>> & {
5620
5639
  onClose?: (() => any) | undefined;
5621
- onBlur?: (() => any) | undefined;
5622
5640
  onFocus?: (() => any) | undefined;
5623
- onMouseenter?: ((evt: MouseEvent) => any) | undefined;
5641
+ onBlur?: (() => any) | undefined;
5624
5642
  onMouseleave?: ((evt: MouseEvent) => any) | undefined;
5643
+ onMouseenter?: ((evt: MouseEvent) => any) | undefined;
5625
5644
  }>>;
5626
5645
  focusStartRef: import("vue").Ref<HTMLElement | "container" | "first" | undefined>;
5627
5646
  trapped: import("vue").Ref<boolean>;
@@ -5690,7 +5709,7 @@ declare const _default: import("vue").DefineComponent<{
5690
5709
  };
5691
5710
  }, {
5692
5711
  onKeydown: (e: KeyboardEvent) => void;
5693
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focusin" | "focusout" | "focusAfterTrapped" | "focusAfterReleased" | "focusout-prevented" | "release-requested")[], "focusin" | "focusout" | "focusAfterTrapped" | "focusAfterReleased" | "focusout-prevented" | "release-requested", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
5712
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focusAfterTrapped" | "focusAfterReleased" | "focusin" | "focusout" | "focusout-prevented" | "release-requested")[], "focusAfterTrapped" | "focusAfterReleased" | "focusin" | "focusout" | "focusout-prevented" | "release-requested", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
5694
5713
  loop: BooleanConstructor;
5695
5714
  trapped: BooleanConstructor;
5696
5715
  focusTrapEl: PropType<HTMLElement>;
@@ -5965,10 +5984,10 @@ declare const _default: import("vue").DefineComponent<{
5965
5984
  readonly strategy: import("../../../utils").EpPropFinalized<StringConstructor, "fixed" | "absolute", unknown, "absolute", boolean>;
5966
5985
  }>> & {
5967
5986
  onClose?: (() => any) | undefined;
5968
- onBlur?: (() => any) | undefined;
5969
5987
  onFocus?: (() => any) | undefined;
5970
- onMouseenter?: ((evt: MouseEvent) => any) | undefined;
5988
+ onBlur?: (() => any) | undefined;
5971
5989
  onMouseleave?: ((evt: MouseEvent) => any) | undefined;
5990
+ onMouseenter?: ((evt: MouseEvent) => any) | undefined;
5972
5991
  }, {
5973
5992
  readonly offset: number;
5974
5993
  readonly effect: string;
@@ -5986,6 +6005,25 @@ declare const _default: import("vue").DefineComponent<{
5986
6005
  readonly pure: boolean;
5987
6006
  readonly virtualTriggering: boolean;
5988
6007
  }>;
6008
+ ElTeleport: import("../../../utils").SFCWithInstall<import("vue").DefineComponent<{
6009
+ readonly to: {
6010
+ readonly type: PropType<import("../../../utils").EpPropMergeType<(new (...args: any[]) => (string | HTMLElement) & {}) | (() => string | HTMLElement) | ((new (...args: any[]) => (string | HTMLElement) & {}) | (() => string | HTMLElement))[], unknown, unknown>>;
6011
+ readonly required: true;
6012
+ readonly validator: ((val: unknown) => boolean) | undefined;
6013
+ __epPropKey: true;
6014
+ };
6015
+ readonly disabled: BooleanConstructor;
6016
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
6017
+ readonly to: {
6018
+ readonly type: PropType<import("../../../utils").EpPropMergeType<(new (...args: any[]) => (string | HTMLElement) & {}) | (() => string | HTMLElement) | ((new (...args: any[]) => (string | HTMLElement) & {}) | (() => string | HTMLElement))[], unknown, unknown>>;
6019
+ readonly required: true;
6020
+ readonly validator: ((val: unknown) => boolean) | undefined;
6021
+ __epPropKey: true;
6022
+ };
6023
+ readonly disabled: BooleanConstructor;
6024
+ }>>, {
6025
+ readonly disabled: boolean;
6026
+ }>> & Record<string, any>;
5989
6027
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
5990
6028
  readonly ariaLabel: StringConstructor;
5991
6029
  readonly appendTo: {
@@ -16,6 +16,10 @@ const InitialStateMap = {
16
16
  ["treeProps.children"]: {
17
17
  key: "childrenColumnName",
18
18
  default: "children"
19
+ },
20
+ ["treeProps.checkStrictly"]: {
21
+ key: "checkStrictly",
22
+ default: false
19
23
  }
20
24
  };
21
25
  function createStore(table, props) {
@@ -1 +1 @@
1
- {"version":3,"file":"helper.mjs","sources":["../../../../../../../packages/components/table/src/store/helper.ts"],"sourcesContent":["// @ts-nocheck\nimport { watch } from 'vue'\nimport { debounce } from 'lodash-unified'\nimport useStore from '.'\n\nimport type { Store } from '.'\nimport type { Table, TableProps } from '../table/defaults'\n\nconst InitialStateMap = {\n rowKey: 'rowKey',\n defaultExpandAll: 'defaultExpandAll',\n selectOnIndeterminate: 'selectOnIndeterminate',\n indent: 'indent',\n lazy: 'lazy',\n data: 'data',\n ['treeProps.hasChildren']: {\n key: 'lazyColumnIdentifier',\n default: 'hasChildren',\n },\n ['treeProps.children']: {\n key: 'childrenColumnName',\n default: 'children',\n },\n}\n\nexport function createStore<T>(table: Table<T>, props: TableProps<T>) {\n if (!table) {\n throw new Error('Table is required.')\n }\n\n const store = useStore<T>()\n // fix https://github.com/ElemeFE/element/issues/14075\n // related pr https://github.com/ElemeFE/element/pull/14146\n store.toggleAllSelection = debounce(store._toggleAllSelection, 10)\n Object.keys(InitialStateMap).forEach((key) => {\n handleValue(getArrKeysValue(props, key), key, store)\n })\n proxyTableProps(store, props)\n return store\n}\n\nfunction proxyTableProps<T>(store: Store<T>, props: TableProps<T>) {\n Object.keys(InitialStateMap).forEach((key) => {\n watch(\n () => getArrKeysValue(props, key),\n (value) => {\n handleValue(value, key, store)\n }\n )\n })\n}\n\nfunction handleValue<T>(value, propsKey: string, store: Store<T>) {\n let newVal = value\n let storeKey = InitialStateMap[propsKey]\n if (typeof InitialStateMap[propsKey] === 'object') {\n storeKey = storeKey.key\n newVal = newVal || InitialStateMap[propsKey].default\n }\n store.states[storeKey].value = newVal\n}\n\nfunction getArrKeysValue<T>(props: TableProps<T>, keys: string) {\n if (keys.includes('.')) {\n const keyList = keys.split('.')\n let value = props\n keyList.forEach((key) => {\n value = value[key]\n })\n return value\n } else {\n return props[keys]\n }\n}\n"],"names":[],"mappings":";;;;AAGA,MAAM,eAAe,GAAG;AACxB,EAAE,MAAM,EAAE,QAAQ;AAClB,EAAE,gBAAgB,EAAE,kBAAkB;AACtC,EAAE,qBAAqB,EAAE,uBAAuB;AAChD,EAAE,MAAM,EAAE,QAAQ;AAClB,EAAE,IAAI,EAAE,MAAM;AACd,EAAE,IAAI,EAAE,MAAM;AACd,EAAE,CAAC,uBAAuB,GAAG;AAC7B,IAAI,GAAG,EAAE,sBAAsB;AAC/B,IAAI,OAAO,EAAE,aAAa;AAC1B,GAAG;AACH,EAAE,CAAC,oBAAoB,GAAG;AAC1B,IAAI,GAAG,EAAE,oBAAoB;AAC7B,IAAI,OAAO,EAAE,UAAU;AACvB,GAAG;AACH,CAAC,CAA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AC5B,IAAI,MAAM,GAAG,MAAM,IAAI,eAAe,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC;AACzD,GAAG;AACH,EAAE,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,KAAK,GAAG,MAAM,CAAC;AACxC,CAAC;AACD,SAAS,eAAe,CAAC,KAAK,EAAE,IAAI,EAAE;AACtC,EAAE,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;AAC1B,IAAI,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACpC,IAAI,IAAI,KAAK,GAAG,KAAK,CAAC;AACtB,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC,GAAG,KAAK;AAC7B,MAAM,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC;AACzB,KAAK,CAAC,CAAC;AACP,IAAI,OAAO,KAAK,CAAC;AACjB,GAAG,MAAM;AACT,IAAI,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC;AACvB,GAAG;AACH;;;;"}
1
+ {"version":3,"file":"helper.mjs","sources":["../../../../../../../packages/components/table/src/store/helper.ts"],"sourcesContent":["// @ts-nocheck\nimport { watch } from 'vue'\nimport { debounce } from 'lodash-unified'\nimport useStore from '.'\n\nimport type { Store } from '.'\nimport type { Table, TableProps } from '../table/defaults'\n\nconst InitialStateMap = {\n rowKey: 'rowKey',\n defaultExpandAll: 'defaultExpandAll',\n selectOnIndeterminate: 'selectOnIndeterminate',\n indent: 'indent',\n lazy: 'lazy',\n data: 'data',\n ['treeProps.hasChildren']: {\n key: 'lazyColumnIdentifier',\n default: 'hasChildren',\n },\n ['treeProps.children']: {\n key: 'childrenColumnName',\n default: 'children',\n },\n ['treeProps.checkStrictly']: {\n key: 'checkStrictly',\n default: false,\n },\n}\n\nexport function createStore<T>(table: Table<T>, props: TableProps<T>) {\n if (!table) {\n throw new Error('Table is required.')\n }\n\n const store = useStore<T>()\n // fix https://github.com/ElemeFE/element/issues/14075\n // related pr https://github.com/ElemeFE/element/pull/14146\n store.toggleAllSelection = debounce(store._toggleAllSelection, 10)\n Object.keys(InitialStateMap).forEach((key) => {\n handleValue(getArrKeysValue(props, key), key, store)\n })\n proxyTableProps(store, props)\n return store\n}\n\nfunction proxyTableProps<T>(store: Store<T>, props: TableProps<T>) {\n Object.keys(InitialStateMap).forEach((key) => {\n watch(\n () => getArrKeysValue(props, key),\n (value) => {\n handleValue(value, key, store)\n }\n )\n })\n}\n\nfunction handleValue<T>(value, propsKey: string, store: Store<T>) {\n let newVal = value\n let storeKey = InitialStateMap[propsKey]\n if (typeof InitialStateMap[propsKey] === 'object') {\n storeKey = storeKey.key\n newVal = newVal || InitialStateMap[propsKey].default\n }\n store.states[storeKey].value = newVal\n}\n\nfunction getArrKeysValue<T>(props: TableProps<T>, keys: string) {\n if (keys.includes('.')) {\n const keyList = keys.split('.')\n let value = props\n keyList.forEach((key) => {\n value = value[key]\n })\n return value\n } else {\n return props[keys]\n }\n}\n"],"names":[],"mappings":";;;;AAGA,MAAM,eAAe,GAAG;AACxB,EAAE,MAAM,EAAE,QAAQ;AAClB,EAAE,gBAAgB,EAAE,kBAAkB;AACtC,EAAE,qBAAqB,EAAE,uBAAuB;AAChD,EAAE,MAAM,EAAE,QAAQ;AAClB,EAAE,IAAI,EAAE,MAAM;AACd,EAAE,IAAI,EAAE,MAAM;AACd,EAAE,CAAC,uBAAuB,GAAG;AAC7B,IAAI,GAAG,EAAE,sBAAsB;AAC/B,IAAI,OAAO,EAAE,aAAa;AAC1B,GAAG;AACH,EAAE,CAAC,oBAAoB,GAAG;AAC1B,IAAI,GAAG,EAAE,oBAAoB;AAC7B,IAAI,OAAO,EAAE,UAAU;AACvB,GAAG;AACH,EAAE,CAAC,yBAAyB,GAAG;AAC/B,IAAI,GAAG,EAAE,eAAe;AACxB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,CAAC,CAAC;AACK,SAAS,WAAW,CAAC,KAAK,EAAE,K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Ae,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC;AACzD,GAAG;AACH,EAAE,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,KAAK,GAAG,MAAM,CAAC;AACxC,CAAC;AACD,SAAS,eAAe,CAAC,KAAK,EAAE,IAAI,EAAE;AACtC,EAAE,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;AAC1B,IAAI,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACpC,IAAI,IAAI,KAAK,GAAG,KAAK,CAAC;AACtB,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC,GAAG,KAAK;AAC7B,MAAM,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC;AACzB,KAAK,CAAC,CAAC;AACP,IAAI,OAAO,KAAK,CAAC;AACjB,GAAG,MAAM;AACT,IAAI,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC;AACvB,GAAG;AACH;;;;"}
@@ -9,6 +9,7 @@ function useTree(watcherData) {
9
9
  const lazyTreeNodeMap = ref({});
10
10
  const lazyColumnIdentifier = ref("hasChildren");
11
11
  const childrenColumnName = ref("children");
12
+ const checkStrictly = ref(false);
12
13
  const instance = getCurrentInstance();
13
14
  const normalizedData = computed(() => {
14
15
  if (!watcherData.rowKey.value)
@@ -188,7 +189,8 @@ function useTree(watcherData) {
188
189
  lazy,
189
190
  lazyTreeNodeMap,
190
191
  lazyColumnIdentifier,
191
- childrenColumnName
192
+ childrenColumnName,
193
+ checkStrictly
192
194
  }
193
195
  };
194
196
  }
@@ -1 +1 @@
1
- {"version":3,"file":"tree.mjs","sources":["../../../../../../../packages/components/table/src/store/tree.ts"],"sourcesContent":["// @ts-nocheck\nimport { computed, getCurrentInstance, ref, unref, watch } from 'vue'\nimport { getRowIdentity, walkTreeNode } from '../util'\n\nimport type { WatcherPropsData } from '.'\nimport type { Table, TableProps } from '../table/defaults'\n\nfunction useTree<T>(watcherData: WatcherPropsData<T>) {\n const expandRowKeys = ref<string[]>([])\n const treeData = ref<unknown>({})\n const indent = ref(16)\n const lazy = ref(false)\n const lazyTreeNodeMap = ref({})\n const lazyColumnIdentifier = ref('hasChildren')\n const childrenColumnName = ref('children')\n const instance = getCurrentInstance() as Table<T>\n const normalizedData = computed(() => {\n if (!watcherData.rowKey.value) return {}\n const data = watcherData.data.value || []\n return normalize(data)\n })\n const normalizedLazyNode = computed(() => {\n const rowKey = watcherData.rowKey.value\n const keys = Object.keys(lazyTreeNodeMap.value)\n const res = {}\n if (!keys.length) return res\n keys.forEach((key) => {\n if (lazyTreeNodeMap.value[key].length) {\n const item = { children: [] }\n lazyTreeNodeMap.value[key].forEach((row) => {\n const currentRowKey = getRowIdentity(row, rowKey)\n item.children.push(currentRowKey)\n if (row[lazyColumnIdentifier.value] && !res[currentRowKey]) {\n res[currentRowKey] = { children: [] }\n }\n })\n res[key] = item\n }\n })\n return res\n })\n\n const normalize = (data) => {\n const rowKey = watcherData.rowKey.value\n const res = {}\n walkTreeNode(\n data,\n (parent, children, level) => {\n const parentId = getRowIdentity(parent, rowKey)\n if (Array.isArray(children)) {\n res[parentId] = {\n children: children.map((row) => getRowIdentity(row, rowKey)),\n level,\n }\n } else if (lazy.value) {\n // 当 children 不存在且 lazy 为 true,该节点即为懒加载的节点\n res[parentId] = {\n children: [],\n lazy: true,\n level,\n }\n }\n },\n childrenColumnName.value,\n lazyColumnIdentifier.value\n )\n return res\n }\n\n const updateTreeData = (\n ifChangeExpandRowKeys = false,\n ifExpandAll = instance.store?.states.defaultExpandAll.value\n ) => {\n const nested = normalizedData.value\n const normalizedLazyNode_ = normalizedLazyNode.value\n const keys = Object.keys(nested)\n const newTreeData = {}\n if (keys.length) {\n const oldTreeData = unref(treeData)\n const rootLazyRowKeys = []\n const getExpanded = (oldValue, key) => {\n if (ifChangeExpandRowKeys) {\n if (expandRowKeys.value) {\n return ifExpandAll || expandRowKeys.value.includes(key)\n } else {\n return !!(ifExpandAll || oldValue?.expanded)\n }\n } else {\n const included =\n ifExpandAll ||\n (expandRowKeys.value && expandRowKeys.value.includes(key))\n return !!(oldValue?.expanded || included)\n }\n }\n // 合并 expanded 与 display,确保数据刷新后,状态不变\n keys.forEach((key) => {\n const oldValue = oldTreeData[key]\n const newValue = { ...nested[key] }\n newValue.expanded = getExpanded(oldValue, key)\n if (newValue.lazy) {\n const { loaded = false, loading = false } = oldValue || {}\n newValue.loaded = !!loaded\n newValue.loading = !!loading\n rootLazyRowKeys.push(key)\n }\n newTreeData[key] = newValue\n })\n // 根据懒加载数据更新 treeData\n const lazyKeys = Object.keys(normalizedLazyNode_)\n if (lazy.value && lazyKeys.length && rootLazyRowKeys.length) {\n lazyKeys.forEach((key) => {\n const oldValue = oldTreeData[key]\n const lazyNodeChildren = normalizedLazyNode_[key].children\n if (rootLazyRowKeys.includes(key)) {\n // 懒加载的 root 节点,更新一下原有的数据,原来的 children 一定是空数组\n if (newTreeData[key].children.length !== 0) {\n throw new Error('[ElTable]children must be an empty array.')\n }\n newTreeData[key].children = lazyNodeChildren\n } else {\n const { loaded = false, loading = false } = oldValue || {}\n newTreeData[key] = {\n lazy: true,\n loaded: !!loaded,\n loading: !!loading,\n expanded: getExpanded(oldValue, key),\n children: lazyNodeChildren,\n level: '',\n }\n }\n })\n }\n }\n treeData.value = newTreeData\n instance.store?.updateTableScrollY()\n }\n\n watch(\n () => expandRowKeys.value,\n () => {\n updateTreeData(true)\n }\n )\n\n watch(\n () => normalizedData.value,\n () => {\n updateTreeData()\n }\n )\n watch(\n () => normalizedLazyNode.value,\n () => {\n updateTreeData()\n }\n )\n\n const updateTreeExpandKeys = (value: string[]) => {\n expandRowKeys.value = value\n updateTreeData()\n }\n\n const toggleTreeExpansion = (row: T, expanded?: boolean) => {\n instance.store.assertRowKey()\n\n const rowKey = watcherData.rowKey.value\n const id = getRowIdentity(row, rowKey)\n const data = id && treeData.value[id]\n if (id && data && 'expanded' in data) {\n const oldExpanded = data.expanded\n expanded = typeof expanded === 'undefined' ? !data.expanded : expanded\n treeData.value[id].expanded = expanded\n if (oldExpanded !== expanded) {\n instance.emit('expand-change', row, expanded)\n }\n instance.store.updateTableScrollY()\n }\n }\n\n const loadOrToggle = (row) => {\n instance.store.assertRowKey()\n const rowKey = watcherData.rowKey.value\n const id = getRowIdentity(row, rowKey)\n const data = treeData.value[id]\n if (lazy.value && data && 'loaded' in data && !data.loaded) {\n loadData(row, id, data)\n } else {\n toggleTreeExpansion(row, undefined)\n }\n }\n\n const loadData = (row: T, key: string, treeNode) => {\n const { load } = instance.props as unknown as TableProps<T>\n if (load && !treeData.value[key].loaded) {\n treeData.value[key].loading = true\n load(row, treeNode, (data) => {\n if (!Array.isArray(data)) {\n throw new TypeError('[ElTable] data must be an array')\n }\n treeData.value[key].loading = false\n treeData.value[key].loaded = true\n treeData.value[key].expanded = true\n if (data.length) {\n lazyTreeNodeMap.value[key] = data\n }\n instance.emit('expand-change', row, true)\n })\n }\n }\n\n return {\n loadData,\n loadOrToggle,\n toggleTreeExpansion,\n updateTreeExpandKeys,\n updateTreeData,\n normalize,\n states: {\n expandRowKeys,\n treeData,\n indent,\n lazy,\n lazyTreeNodeMap,\n lazyColumnIdentifier,\n childrenColumnName,\n },\n }\n}\n\nexport default useTree\n"],"names":[],"mappings":";;;AAEA,SAAS,OAAO,CAAC,WAAW,EAAE;AAC9B,EAAE,MAAM,aAAa,GAAG,GAAG,CAAC,EAAE,CAAC,CAAC;AAChC,EAAE,MAAM,QAAQ,GAAG,GAAG,CAAC,EAAE,CAAC,CAAC;AAC3B,EAAE,MAAM,MAAM,GAAG,GAAG,CAAC,EAAE,CAAC,CAAC;AACzB,EAAE,MAAM,IAAI,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC;AAC1B,EAAE,MAAM,eAAe,GAAG,GAAG,CAAC,EAAE,CAAC,CAAC;AAClC,EAAE,MAAM,oBAAoB,GAAG,GAAG,CAAC,aAAa,CAAC,CAAC;AAClD,EAAE,MAAM,kBAAkB,G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C;AAClD,OAAO,CAAC,CAAC;AACT,KAAK;AACL,GAAG,CAAC;AACJ,EAAE,OAAO;AACT,IAAI,QAAQ;AACZ,IAAI,YAAY;AAChB,IAAI,mBAAmB;AACvB,IAAI,oBAAoB;AACxB,IAAI,cAAc;AAClB,IAAI,SAAS;AACb,IAAI,MAAM,EAAE;AACZ,MAAM,aAAa;AACnB,MAAM,QAAQ;AACd,MAAM,MAAM;AACZ,MAAM,IAAI;AACV,MAAM,eAAe;AACrB,MAAM,oBAAoB;AAC1B,MAAM,kBAAkB;AACxB,KAAK;AACL,GAAG,CAAC;AACJ;;;;"}
1
+ {"version":3,"file":"tree.mjs","sources":["../../../../../../../packages/components/table/src/store/tree.ts"],"sourcesContent":["// @ts-nocheck\nimport { computed, getCurrentInstance, ref, unref, watch } from 'vue'\nimport { getRowIdentity, walkTreeNode } from '../util'\n\nimport type { WatcherPropsData } from '.'\nimport type { Table, TableProps } from '../table/defaults'\n\nfunction useTree<T>(watcherData: WatcherPropsData<T>) {\n const expandRowKeys = ref<string[]>([])\n const treeData = ref<unknown>({})\n const indent = ref(16)\n const lazy = ref(false)\n const lazyTreeNodeMap = ref({})\n const lazyColumnIdentifier = ref('hasChildren')\n const childrenColumnName = ref('children')\n const checkStrictly = ref(false)\n const instance = getCurrentInstance() as Table<T>\n const normalizedData = computed(() => {\n if (!watcherData.rowKey.value) return {}\n const data = watcherData.data.value || []\n return normalize(data)\n })\n const normalizedLazyNode = computed(() => {\n const rowKey = watcherData.rowKey.value\n const keys = Object.keys(lazyTreeNodeMap.value)\n const res = {}\n if (!keys.length) return res\n keys.forEach((key) => {\n if (lazyTreeNodeMap.value[key].length) {\n const item = { children: [] }\n lazyTreeNodeMap.value[key].forEach((row) => {\n const currentRowKey = getRowIdentity(row, rowKey)\n item.children.push(currentRowKey)\n if (row[lazyColumnIdentifier.value] && !res[currentRowKey]) {\n res[currentRowKey] = { children: [] }\n }\n })\n res[key] = item\n }\n })\n return res\n })\n\n const normalize = (data) => {\n const rowKey = watcherData.rowKey.value\n const res = {}\n walkTreeNode(\n data,\n (parent, children, level) => {\n const parentId = getRowIdentity(parent, rowKey)\n if (Array.isArray(children)) {\n res[parentId] = {\n children: children.map((row) => getRowIdentity(row, rowKey)),\n level,\n }\n } else if (lazy.value) {\n // 当 children 不存在且 lazy 为 true,该节点即为懒加载的节点\n res[parentId] = {\n children: [],\n lazy: true,\n level,\n }\n }\n },\n childrenColumnName.value,\n lazyColumnIdentifier.value\n )\n return res\n }\n\n const updateTreeData = (\n ifChangeExpandRowKeys = false,\n ifExpandAll = instance.store?.states.defaultExpandAll.value\n ) => {\n const nested = normalizedData.value\n const normalizedLazyNode_ = normalizedLazyNode.value\n const keys = Object.keys(nested)\n const newTreeData = {}\n if (keys.length) {\n const oldTreeData = unref(treeData)\n const rootLazyRowKeys = []\n const getExpanded = (oldValue, key) => {\n if (ifChangeExpandRowKeys) {\n if (expandRowKeys.value) {\n return ifExpandAll || expandRowKeys.value.includes(key)\n } else {\n return !!(ifExpandAll || oldValue?.expanded)\n }\n } else {\n const included =\n ifExpandAll ||\n (expandRowKeys.value && expandRowKeys.value.includes(key))\n return !!(oldValue?.expanded || included)\n }\n }\n // 合并 expanded 与 display,确保数据刷新后,状态不变\n keys.forEach((key) => {\n const oldValue = oldTreeData[key]\n const newValue = { ...nested[key] }\n newValue.expanded = getExpanded(oldValue, key)\n if (newValue.lazy) {\n const { loaded = false, loading = false } = oldValue || {}\n newValue.loaded = !!loaded\n newValue.loading = !!loading\n rootLazyRowKeys.push(key)\n }\n newTreeData[key] = newValue\n })\n // 根据懒加载数据更新 treeData\n const lazyKeys = Object.keys(normalizedLazyNode_)\n if (lazy.value && lazyKeys.length && rootLazyRowKeys.length) {\n lazyKeys.forEach((key) => {\n const oldValue = oldTreeData[key]\n const lazyNodeChildren = normalizedLazyNode_[key].children\n if (rootLazyRowKeys.includes(key)) {\n // 懒加载的 root 节点,更新一下原有的数据,原来的 children 一定是空数组\n if (newTreeData[key].children.length !== 0) {\n throw new Error('[ElTable]children must be an empty array.')\n }\n newTreeData[key].children = lazyNodeChildren\n } else {\n const { loaded = false, loading = false } = oldValue || {}\n newTreeData[key] = {\n lazy: true,\n loaded: !!loaded,\n loading: !!loading,\n expanded: getExpanded(oldValue, key),\n children: lazyNodeChildren,\n level: '',\n }\n }\n })\n }\n }\n treeData.value = newTreeData\n instance.store?.updateTableScrollY()\n }\n\n watch(\n () => expandRowKeys.value,\n () => {\n updateTreeData(true)\n }\n )\n\n watch(\n () => normalizedData.value,\n () => {\n updateTreeData()\n }\n )\n watch(\n () => normalizedLazyNode.value,\n () => {\n updateTreeData()\n }\n )\n\n const updateTreeExpandKeys = (value: string[]) => {\n expandRowKeys.value = value\n updateTreeData()\n }\n\n const toggleTreeExpansion = (row: T, expanded?: boolean) => {\n instance.store.assertRowKey()\n\n const rowKey = watcherData.rowKey.value\n const id = getRowIdentity(row, rowKey)\n const data = id && treeData.value[id]\n if (id && data && 'expanded' in data) {\n const oldExpanded = data.expanded\n expanded = typeof expanded === 'undefined' ? !data.expanded : expanded\n treeData.value[id].expanded = expanded\n if (oldExpanded !== expanded) {\n instance.emit('expand-change', row, expanded)\n }\n instance.store.updateTableScrollY()\n }\n }\n\n const loadOrToggle = (row) => {\n instance.store.assertRowKey()\n const rowKey = watcherData.rowKey.value\n const id = getRowIdentity(row, rowKey)\n const data = treeData.value[id]\n if (lazy.value && data && 'loaded' in data && !data.loaded) {\n loadData(row, id, data)\n } else {\n toggleTreeExpansion(row, undefined)\n }\n }\n\n const loadData = (row: T, key: string, treeNode) => {\n const { load } = instance.props as unknown as TableProps<T>\n if (load && !treeData.value[key].loaded) {\n treeData.value[key].loading = true\n load(row, treeNode, (data) => {\n if (!Array.isArray(data)) {\n throw new TypeError('[ElTable] data must be an array')\n }\n treeData.value[key].loading = false\n treeData.value[key].loaded = true\n treeData.value[key].expanded = true\n if (data.length) {\n lazyTreeNodeMap.value[key] = data\n }\n instance.emit('expand-change', row, true)\n })\n }\n }\n\n return {\n loadData,\n loadOrToggle,\n toggleTreeExpansion,\n updateTreeExpandKeys,\n updateTreeData,\n normalize,\n states: {\n expandRowKeys,\n treeData,\n indent,\n lazy,\n lazyTreeNodeMap,\n lazyColumnIdentifier,\n childrenColumnName,\n checkStrictly,\n },\n }\n}\n\nexport default useTree\n"],"names":[],"mappings":";;;AAEA,SAAS,OAAO,CAAC,WAAW,EAAE;AAC9B,EAAE,MAAM,aAAa,GAAG,GAAG,CAAC,EAAE,CAAC,CAAC;AAChC,EAAE,MAAM,QAAQ,GAAG,GAAG,CAAC,EAAE,CAAC,CAAC;AAC3B,EAAE,MAAM,MAAM,GAAG,GAAG,CAAC,EAAE,CAAC,CAAC;AACzB,EAAE,MAAM,IAAI,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC;AAC1B,EAAE,MAAM,eAAe,GAAG,GAAG,CAAC,EAAE,CAAC,CAAC;AAClC,EAAE,MAAM,oBAAoB,GAAG,GAAG,CAAC,aAAa,CAAC,CAAC;AAClD,EAAE,MAAM,kBAAkB,GAAG,GAAG,CAAC,UAAU,CAAC,CAAC;AAC7C,EAAE,MAAM,aAAa,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC;AACnC,EAAE,MAAM,QAAQ,GAAG,kBAAkB,EAAE,CAAC;AACxC,EAAE,MAAM,cAAc,GAAG,QAAQ,CAAC,MAAM;AACxC,IAAI,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK;AACjC,MAAM,OAAO,EAAE,CAAC;AAChB,IAAI,MAAM,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;AAC9C,IAAI,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC;AAC3B,GAAG,CAAC,CAAC;AACL,EAAE,MAAM,kBAAkB,GAAG,QAAQ,CAAC,MAAM;AAC5C,IAAI,MAAM,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC;AAC5C,IAAI,MAAM,IAAI,GAAG,MAAM,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