@element-plus/nightly 0.0.20251126 → 0.0.20251129

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 (529) hide show
  1. package/README.md +0 -5
  2. package/attributes.json +1 -1
  3. package/dist/index.full.js +48 -26
  4. package/dist/index.full.min.js +15 -15
  5. package/dist/index.full.min.js.map +1 -1
  6. package/dist/index.full.min.mjs +10 -10
  7. package/dist/index.full.min.mjs.map +1 -1
  8. package/dist/index.full.mjs +48 -26
  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/hi.js +1 -1
  94. package/dist/locale/hi.min.js +1 -1
  95. package/dist/locale/hi.min.mjs +1 -1
  96. package/dist/locale/hi.mjs +1 -1
  97. package/dist/locale/hr.js +1 -1
  98. package/dist/locale/hr.min.js +1 -1
  99. package/dist/locale/hr.min.mjs +1 -1
  100. package/dist/locale/hr.mjs +1 -1
  101. package/dist/locale/hu.js +1 -1
  102. package/dist/locale/hu.min.js +1 -1
  103. package/dist/locale/hu.min.mjs +1 -1
  104. package/dist/locale/hu.mjs +1 -1
  105. package/dist/locale/hy-am.js +1 -1
  106. package/dist/locale/hy-am.min.js +1 -1
  107. package/dist/locale/hy-am.min.mjs +1 -1
  108. package/dist/locale/hy-am.mjs +1 -1
  109. package/dist/locale/id.js +1 -1
  110. package/dist/locale/id.min.js +1 -1
  111. package/dist/locale/id.min.mjs +1 -1
  112. package/dist/locale/id.mjs +1 -1
  113. package/dist/locale/it.js +1 -1
  114. package/dist/locale/it.min.js +1 -1
  115. package/dist/locale/it.min.mjs +1 -1
  116. package/dist/locale/it.mjs +1 -1
  117. package/dist/locale/ja.js +1 -1
  118. package/dist/locale/ja.min.js +1 -1
  119. package/dist/locale/ja.min.mjs +1 -1
  120. package/dist/locale/ja.mjs +1 -1
  121. package/dist/locale/kk.js +1 -1
  122. package/dist/locale/kk.min.js +1 -1
  123. package/dist/locale/kk.min.mjs +1 -1
  124. package/dist/locale/kk.mjs +1 -1
  125. package/dist/locale/km.js +1 -1
  126. package/dist/locale/km.min.js +1 -1
  127. package/dist/locale/km.min.mjs +1 -1
  128. package/dist/locale/km.mjs +1 -1
  129. package/dist/locale/ko.js +1 -1
  130. package/dist/locale/ko.min.js +1 -1
  131. package/dist/locale/ko.min.mjs +1 -1
  132. package/dist/locale/ko.mjs +1 -1
  133. package/dist/locale/ku.js +1 -1
  134. package/dist/locale/ku.min.js +1 -1
  135. package/dist/locale/ku.min.mjs +1 -1
  136. package/dist/locale/ku.mjs +1 -1
  137. package/dist/locale/ky.js +1 -1
  138. package/dist/locale/ky.min.js +1 -1
  139. package/dist/locale/ky.min.mjs +1 -1
  140. package/dist/locale/ky.mjs +1 -1
  141. package/dist/locale/lo.js +1 -1
  142. package/dist/locale/lo.min.js +1 -1
  143. package/dist/locale/lo.min.mjs +1 -1
  144. package/dist/locale/lo.mjs +1 -1
  145. package/dist/locale/lt.js +1 -1
  146. package/dist/locale/lt.min.js +1 -1
  147. package/dist/locale/lt.min.mjs +1 -1
  148. package/dist/locale/lt.mjs +1 -1
  149. package/dist/locale/lv.js +1 -1
  150. package/dist/locale/lv.min.js +1 -1
  151. package/dist/locale/lv.min.mjs +1 -1
  152. package/dist/locale/lv.mjs +1 -1
  153. package/dist/locale/mg.js +1 -1
  154. package/dist/locale/mg.min.js +1 -1
  155. package/dist/locale/mg.min.mjs +1 -1
  156. package/dist/locale/mg.mjs +1 -1
  157. package/dist/locale/mn.js +1 -1
  158. package/dist/locale/mn.min.js +1 -1
  159. package/dist/locale/mn.min.mjs +1 -1
  160. package/dist/locale/mn.mjs +1 -1
  161. package/dist/locale/ms.js +1 -1
  162. package/dist/locale/ms.min.js +1 -1
  163. package/dist/locale/ms.min.mjs +1 -1
  164. package/dist/locale/ms.mjs +1 -1
  165. package/dist/locale/my.js +1 -1
  166. package/dist/locale/my.min.js +1 -1
  167. package/dist/locale/my.min.mjs +1 -1
  168. package/dist/locale/my.mjs +1 -1
  169. package/dist/locale/nb-no.js +1 -1
  170. package/dist/locale/nb-no.min.js +1 -1
  171. package/dist/locale/nb-no.min.mjs +1 -1
  172. package/dist/locale/nb-no.mjs +1 -1
  173. package/dist/locale/nl.js +1 -1
  174. package/dist/locale/nl.min.js +1 -1
  175. package/dist/locale/nl.min.mjs +1 -1
  176. package/dist/locale/nl.mjs +1 -1
  177. package/dist/locale/no.js +1 -1
  178. package/dist/locale/no.min.js +1 -1
  179. package/dist/locale/no.min.mjs +1 -1
  180. package/dist/locale/no.mjs +1 -1
  181. package/dist/locale/pa.js +1 -1
  182. package/dist/locale/pa.min.js +1 -1
  183. package/dist/locale/pa.min.mjs +1 -1
  184. package/dist/locale/pa.mjs +1 -1
  185. package/dist/locale/pl.js +1 -1
  186. package/dist/locale/pl.min.js +1 -1
  187. package/dist/locale/pl.min.mjs +1 -1
  188. package/dist/locale/pl.mjs +1 -1
  189. package/dist/locale/pt-br.js +1 -1
  190. package/dist/locale/pt-br.min.js +1 -1
  191. package/dist/locale/pt-br.min.mjs +1 -1
  192. package/dist/locale/pt-br.mjs +1 -1
  193. package/dist/locale/pt.js +1 -1
  194. package/dist/locale/pt.min.js +1 -1
  195. package/dist/locale/pt.min.mjs +1 -1
  196. package/dist/locale/pt.mjs +1 -1
  197. package/dist/locale/ro.js +1 -1
  198. package/dist/locale/ro.min.js +1 -1
  199. package/dist/locale/ro.min.mjs +1 -1
  200. package/dist/locale/ro.mjs +1 -1
  201. package/dist/locale/ru.js +1 -1
  202. package/dist/locale/ru.min.js +1 -1
  203. package/dist/locale/ru.min.mjs +1 -1
  204. package/dist/locale/ru.mjs +1 -1
  205. package/dist/locale/sk.js +1 -1
  206. package/dist/locale/sk.min.js +1 -1
  207. package/dist/locale/sk.min.mjs +1 -1
  208. package/dist/locale/sk.mjs +1 -1
  209. package/dist/locale/sl.js +1 -1
  210. package/dist/locale/sl.min.js +1 -1
  211. package/dist/locale/sl.min.mjs +1 -1
  212. package/dist/locale/sl.mjs +1 -1
  213. package/dist/locale/sr.js +1 -1
  214. package/dist/locale/sr.min.js +1 -1
  215. package/dist/locale/sr.min.mjs +1 -1
  216. package/dist/locale/sr.mjs +1 -1
  217. package/dist/locale/sv.js +1 -1
  218. package/dist/locale/sv.min.js +1 -1
  219. package/dist/locale/sv.min.mjs +1 -1
  220. package/dist/locale/sv.mjs +1 -1
  221. package/dist/locale/sw.js +1 -1
  222. package/dist/locale/sw.min.js +1 -1
  223. package/dist/locale/sw.min.mjs +1 -1
  224. package/dist/locale/sw.mjs +1 -1
  225. package/dist/locale/ta.js +1 -1
  226. package/dist/locale/ta.min.js +1 -1
  227. package/dist/locale/ta.min.mjs +1 -1
  228. package/dist/locale/ta.mjs +1 -1
  229. package/dist/locale/te.js +1 -1
  230. package/dist/locale/te.min.js +1 -1
  231. package/dist/locale/te.min.mjs +1 -1
  232. package/dist/locale/te.mjs +1 -1
  233. package/dist/locale/th.js +1 -1
  234. package/dist/locale/th.min.js +1 -1
  235. package/dist/locale/th.min.mjs +1 -1
  236. package/dist/locale/th.mjs +1 -1
  237. package/dist/locale/tk.js +1 -1
  238. package/dist/locale/tk.min.js +1 -1
  239. package/dist/locale/tk.min.mjs +1 -1
  240. package/dist/locale/tk.mjs +1 -1
  241. package/dist/locale/tr.js +1 -1
  242. package/dist/locale/tr.min.js +1 -1
  243. package/dist/locale/tr.min.mjs +1 -1
  244. package/dist/locale/tr.mjs +1 -1
  245. package/dist/locale/ug-cn.js +1 -1
  246. package/dist/locale/ug-cn.min.js +1 -1
  247. package/dist/locale/ug-cn.min.mjs +1 -1
  248. package/dist/locale/ug-cn.mjs +1 -1
  249. package/dist/locale/uk.js +1 -1
  250. package/dist/locale/uk.min.js +1 -1
  251. package/dist/locale/uk.min.mjs +1 -1
  252. package/dist/locale/uk.mjs +1 -1
  253. package/dist/locale/uz-uz.js +1 -1
  254. package/dist/locale/uz-uz.min.js +1 -1
  255. package/dist/locale/uz-uz.min.mjs +1 -1
  256. package/dist/locale/uz-uz.mjs +1 -1
  257. package/dist/locale/vi.js +1 -1
  258. package/dist/locale/vi.min.js +1 -1
  259. package/dist/locale/vi.min.mjs +1 -1
  260. package/dist/locale/vi.mjs +1 -1
  261. package/dist/locale/zh-cn.js +1 -1
  262. package/dist/locale/zh-cn.min.js +1 -1
  263. package/dist/locale/zh-cn.min.mjs +1 -1
  264. package/dist/locale/zh-cn.mjs +1 -1
  265. package/dist/locale/zh-hk.js +1 -1
  266. package/dist/locale/zh-hk.min.js +1 -1
  267. package/dist/locale/zh-hk.min.mjs +1 -1
  268. package/dist/locale/zh-hk.mjs +1 -1
  269. package/dist/locale/zh-mo.js +1 -1
  270. package/dist/locale/zh-mo.min.js +1 -1
  271. package/dist/locale/zh-mo.min.mjs +1 -1
  272. package/dist/locale/zh-mo.mjs +1 -1
  273. package/dist/locale/zh-tw.js +1 -1
  274. package/dist/locale/zh-tw.min.js +1 -1
  275. package/dist/locale/zh-tw.min.mjs +1 -1
  276. package/dist/locale/zh-tw.mjs +1 -1
  277. package/es/components/anchor/index.mjs +1 -1
  278. package/es/components/anchor/src/anchor-link.mjs +81 -5
  279. package/es/components/anchor/src/anchor-link.mjs.map +1 -1
  280. package/es/components/anchor/src/anchor-link2.mjs +5 -81
  281. package/es/components/anchor/src/anchor-link2.mjs.map +1 -1
  282. package/es/components/backtop/index.mjs +2 -2
  283. package/es/components/backtop/src/backtop.mjs +53 -21
  284. package/es/components/backtop/src/backtop.mjs.map +1 -1
  285. package/es/components/backtop/src/backtop2.mjs +21 -53
  286. package/es/components/backtop/src/backtop2.mjs.map +1 -1
  287. package/es/components/carousel/index.mjs +2 -2
  288. package/es/components/carousel/src/carousel-item.mjs +69 -7
  289. package/es/components/carousel/src/carousel-item.mjs.map +1 -1
  290. package/es/components/carousel/src/carousel-item2.mjs +7 -69
  291. package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
  292. package/es/components/cascader/src/cascader.mjs +1 -1
  293. package/es/components/color-picker-panel/src/components/alpha-slider.mjs +3 -2
  294. package/es/components/color-picker-panel/src/components/alpha-slider.mjs.map +1 -1
  295. package/es/components/color-picker-panel/src/components/hue-slider.mjs +3 -2
  296. package/es/components/color-picker-panel/src/components/hue-slider.mjs.map +1 -1
  297. package/es/components/color-picker-panel/src/components/sv-panel.mjs +3 -2
  298. package/es/components/color-picker-panel/src/components/sv-panel.mjs.map +1 -1
  299. package/es/components/date-picker-panel/src/date-picker-com/basic-date-table.mjs +3 -2
  300. package/es/components/date-picker-panel/src/date-picker-com/basic-date-table.mjs.map +1 -1
  301. package/es/components/date-picker-panel/src/date-picker-com/panel-date-pick.mjs +6 -4
  302. package/es/components/date-picker-panel/src/date-picker-com/panel-date-pick.mjs.map +1 -1
  303. package/es/components/date-picker-panel/src/date-picker-com/panel-date-range.mjs +12 -8
  304. package/es/components/date-picker-panel/src/date-picker-com/panel-date-range.mjs.map +1 -1
  305. package/es/components/divider/index.mjs +2 -2
  306. package/es/components/divider/src/divider.mjs +34 -16
  307. package/es/components/divider/src/divider.mjs.map +1 -1
  308. package/es/components/divider/src/divider2.mjs +16 -34
  309. package/es/components/divider/src/divider2.mjs.map +1 -1
  310. package/es/components/image/index.mjs +2 -2
  311. package/es/components/image/src/image.mjs +234 -69
  312. package/es/components/image/src/image.mjs.map +1 -1
  313. package/es/components/image/src/image2.mjs +69 -234
  314. package/es/components/image/src/image2.mjs.map +1 -1
  315. package/es/components/image-viewer/index.mjs +2 -2
  316. package/es/components/image-viewer/src/image-viewer.mjs +484 -51
  317. package/es/components/image-viewer/src/image-viewer.mjs.map +1 -1
  318. package/es/components/image-viewer/src/image-viewer2.mjs +51 -484
  319. package/es/components/image-viewer/src/image-viewer2.mjs.map +1 -1
  320. package/es/components/index.mjs +13 -13
  321. package/es/components/input-tag/src/input-tag.mjs +1 -1
  322. package/es/components/menu/index.mjs +2 -2
  323. package/es/components/menu/src/menu-item.mjs +101 -15
  324. package/es/components/menu/src/menu-item.mjs.map +1 -1
  325. package/es/components/menu/src/menu-item2.mjs +15 -101
  326. package/es/components/menu/src/menu-item2.mjs.map +1 -1
  327. package/es/components/pagination/src/components/next.mjs +35 -18
  328. package/es/components/pagination/src/components/next.mjs.map +1 -1
  329. package/es/components/pagination/src/components/next2.mjs +18 -35
  330. package/es/components/pagination/src/components/next2.mjs.map +1 -1
  331. package/es/components/pagination/src/pagination.mjs +1 -1
  332. package/es/components/popconfirm/index.mjs +2 -2
  333. package/es/components/popconfirm/src/popconfirm.mjs +135 -50
  334. package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
  335. package/es/components/popconfirm/src/popconfirm2.mjs +50 -135
  336. package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
  337. package/es/components/select/src/select.mjs +1 -1
  338. package/es/components/select-v2/src/defaults.mjs +1 -1
  339. package/es/components/skeleton/index.mjs +2 -2
  340. package/es/components/skeleton/src/skeleton-item.mjs +22 -17
  341. package/es/components/skeleton/src/skeleton-item.mjs.map +1 -1
  342. package/es/components/skeleton/src/skeleton-item2.mjs +17 -22
  343. package/es/components/skeleton/src/skeleton-item2.mjs.map +1 -1
  344. package/es/components/skeleton/src/skeleton2.mjs +1 -1
  345. package/es/components/splitter/index.mjs +2 -2
  346. package/es/components/splitter/src/split-panel.d.ts +1 -1
  347. package/es/components/splitter/src/split-panel.mjs +1 -1
  348. package/es/components/splitter/src/split-panel.mjs.map +1 -1
  349. package/es/components/splitter/src/split-panel.vue.d.ts +2 -2
  350. package/es/components/splitter/src/splitter.mjs +15 -100
  351. package/es/components/splitter/src/splitter.mjs.map +1 -1
  352. package/es/components/splitter/src/splitter2.mjs +101 -15
  353. package/es/components/splitter/src/splitter2.mjs.map +1 -1
  354. package/es/components/table/src/table/defaults.d.ts +3 -3
  355. package/es/components/table/src/table/defaults.mjs +1 -1
  356. package/es/components/table/src/table/defaults.mjs.map +1 -1
  357. package/es/components/table/src/table-column/watcher-helper.mjs +3 -0
  358. package/es/components/table/src/table-column/watcher-helper.mjs.map +1 -1
  359. package/es/components/table/src/table.vue.d.ts +3 -3
  360. package/es/components/tabs/index.mjs +1 -1
  361. package/es/components/tabs/src/tab-bar.mjs +11 -92
  362. package/es/components/tabs/src/tab-bar.mjs.map +1 -1
  363. package/es/components/tabs/src/tab-bar2.mjs +92 -11
  364. package/es/components/tabs/src/tab-bar2.mjs.map +1 -1
  365. package/es/components/tabs/src/tab-nav.mjs +1 -1
  366. package/es/components/tag/index.mjs +2 -2
  367. package/es/components/tag/src/tag.mjs +99 -27
  368. package/es/components/tag/src/tag.mjs.map +1 -1
  369. package/es/components/tag/src/tag2.mjs +27 -99
  370. package/es/components/tag/src/tag2.mjs.map +1 -1
  371. package/es/components/time-select/index.mjs +2 -2
  372. package/es/components/time-select/src/time-select.mjs +64 -134
  373. package/es/components/time-select/src/time-select.mjs.map +1 -1
  374. package/es/components/time-select/src/time-select2.mjs +134 -64
  375. package/es/components/time-select/src/time-select2.mjs.map +1 -1
  376. package/es/components/timeline/src/timeline.d.ts +8 -2
  377. package/es/components/timeline/src/timeline.mjs +12 -3
  378. package/es/components/timeline/src/timeline.mjs.map +1 -1
  379. package/es/components/tour/index.mjs +1 -1
  380. package/es/components/tour/src/content.mjs +43 -67
  381. package/es/components/tour/src/content.mjs.map +1 -1
  382. package/es/components/tour/src/content2.mjs +67 -43
  383. package/es/components/tour/src/content2.mjs.map +1 -1
  384. package/es/components/tour/src/step.mjs +1 -1
  385. package/es/components/tour/src/tour.mjs +1 -1
  386. package/es/components/tour/src/tour2.mjs +1 -1
  387. package/es/components/transfer/src/composables/use-check.mjs +1 -1
  388. package/es/components/transfer/src/transfer-panel.mjs +19 -130
  389. package/es/components/transfer/src/transfer-panel.mjs.map +1 -1
  390. package/es/components/transfer/src/transfer-panel2.mjs +130 -19
  391. package/es/components/transfer/src/transfer-panel2.mjs.map +1 -1
  392. package/es/components/transfer/src/transfer2.mjs +1 -1
  393. package/es/components/tree-select/index.d.ts +1 -0
  394. package/es/components/tree-select/index.mjs.map +1 -1
  395. package/es/components/tree-select/src/instance.d.ts +6 -0
  396. package/es/components/tree-select/src/instance.mjs +2 -0
  397. package/es/components/tree-select/src/instance.mjs.map +1 -0
  398. package/es/index.mjs +13 -13
  399. package/es/version.d.ts +1 -1
  400. package/es/version.mjs +1 -1
  401. package/es/version.mjs.map +1 -1
  402. package/lib/components/anchor/index.js +1 -1
  403. package/lib/components/anchor/src/anchor-link.js +81 -5
  404. package/lib/components/anchor/src/anchor-link.js.map +1 -1
  405. package/lib/components/anchor/src/anchor-link2.js +5 -81
  406. package/lib/components/anchor/src/anchor-link2.js.map +1 -1
  407. package/lib/components/backtop/index.js +2 -2
  408. package/lib/components/backtop/src/backtop.js +53 -22
  409. package/lib/components/backtop/src/backtop.js.map +1 -1
  410. package/lib/components/backtop/src/backtop2.js +22 -53
  411. package/lib/components/backtop/src/backtop2.js.map +1 -1
  412. package/lib/components/carousel/index.js +2 -2
  413. package/lib/components/carousel/src/carousel-item.js +69 -7
  414. package/lib/components/carousel/src/carousel-item.js.map +1 -1
  415. package/lib/components/carousel/src/carousel-item2.js +7 -69
  416. package/lib/components/carousel/src/carousel-item2.js.map +1 -1
  417. package/lib/components/cascader/src/cascader.js +1 -1
  418. package/lib/components/color-picker-panel/src/components/alpha-slider.js +3 -2
  419. package/lib/components/color-picker-panel/src/components/alpha-slider.js.map +1 -1
  420. package/lib/components/color-picker-panel/src/components/hue-slider.js +3 -2
  421. package/lib/components/color-picker-panel/src/components/hue-slider.js.map +1 -1
  422. package/lib/components/color-picker-panel/src/components/sv-panel.js +3 -2
  423. package/lib/components/color-picker-panel/src/components/sv-panel.js.map +1 -1
  424. package/lib/components/date-picker-panel/src/date-picker-com/basic-date-table.js +3 -2
  425. package/lib/components/date-picker-panel/src/date-picker-com/basic-date-table.js.map +1 -1
  426. package/lib/components/date-picker-panel/src/date-picker-com/panel-date-pick.js +6 -4
  427. package/lib/components/date-picker-panel/src/date-picker-com/panel-date-pick.js.map +1 -1
  428. package/lib/components/date-picker-panel/src/date-picker-com/panel-date-range.js +12 -8
  429. package/lib/components/date-picker-panel/src/date-picker-com/panel-date-range.js.map +1 -1
  430. package/lib/components/divider/index.js +2 -2
  431. package/lib/components/divider/src/divider.js +34 -16
  432. package/lib/components/divider/src/divider.js.map +1 -1
  433. package/lib/components/divider/src/divider2.js +16 -34
  434. package/lib/components/divider/src/divider2.js.map +1 -1
  435. package/lib/components/image/index.js +2 -2
  436. package/lib/components/image/src/image.js +233 -69
  437. package/lib/components/image/src/image.js.map +1 -1
  438. package/lib/components/image/src/image2.js +69 -233
  439. package/lib/components/image/src/image2.js.map +1 -1
  440. package/lib/components/image-viewer/index.js +2 -2
  441. package/lib/components/image-viewer/src/image-viewer.js +484 -52
  442. package/lib/components/image-viewer/src/image-viewer.js.map +1 -1
  443. package/lib/components/image-viewer/src/image-viewer2.js +52 -484
  444. package/lib/components/image-viewer/src/image-viewer2.js.map +1 -1
  445. package/lib/components/index.js +13 -13
  446. package/lib/components/input-tag/src/input-tag.js +1 -1
  447. package/lib/components/menu/index.js +2 -2
  448. package/lib/components/menu/src/menu-item.js +101 -16
  449. package/lib/components/menu/src/menu-item.js.map +1 -1
  450. package/lib/components/menu/src/menu-item2.js +16 -101
  451. package/lib/components/menu/src/menu-item2.js.map +1 -1
  452. package/lib/components/pagination/src/components/next.js +35 -18
  453. package/lib/components/pagination/src/components/next.js.map +1 -1
  454. package/lib/components/pagination/src/components/next2.js +18 -35
  455. package/lib/components/pagination/src/components/next2.js.map +1 -1
  456. package/lib/components/pagination/src/pagination.js +1 -1
  457. package/lib/components/popconfirm/index.js +2 -2
  458. package/lib/components/popconfirm/src/popconfirm.js +135 -51
  459. package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
  460. package/lib/components/popconfirm/src/popconfirm2.js +51 -135
  461. package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
  462. package/lib/components/select/src/select.js +1 -1
  463. package/lib/components/select-v2/src/defaults.js +1 -1
  464. package/lib/components/skeleton/index.js +2 -2
  465. package/lib/components/skeleton/src/skeleton-item.js +22 -17
  466. package/lib/components/skeleton/src/skeleton-item.js.map +1 -1
  467. package/lib/components/skeleton/src/skeleton-item2.js +17 -22
  468. package/lib/components/skeleton/src/skeleton-item2.js.map +1 -1
  469. package/lib/components/skeleton/src/skeleton2.js +1 -1
  470. package/lib/components/splitter/index.js +2 -2
  471. package/lib/components/splitter/src/split-panel.d.ts +1 -1
  472. package/lib/components/splitter/src/split-panel.js +1 -1
  473. package/lib/components/splitter/src/split-panel.js.map +1 -1
  474. package/lib/components/splitter/src/split-panel.vue.d.ts +2 -2
  475. package/lib/components/splitter/src/splitter.js +16 -100
  476. package/lib/components/splitter/src/splitter.js.map +1 -1
  477. package/lib/components/splitter/src/splitter2.js +101 -16
  478. package/lib/components/splitter/src/splitter2.js.map +1 -1
  479. package/lib/components/table/src/table/defaults.d.ts +3 -3
  480. package/lib/components/table/src/table/defaults.js +1 -1
  481. package/lib/components/table/src/table/defaults.js.map +1 -1
  482. package/lib/components/table/src/table-column/watcher-helper.js +3 -0
  483. package/lib/components/table/src/table-column/watcher-helper.js.map +1 -1
  484. package/lib/components/table/src/table.vue.d.ts +3 -3
  485. package/lib/components/tabs/index.js +1 -1
  486. package/lib/components/tabs/src/tab-bar.js +11 -92
  487. package/lib/components/tabs/src/tab-bar.js.map +1 -1
  488. package/lib/components/tabs/src/tab-bar2.js +92 -11
  489. package/lib/components/tabs/src/tab-bar2.js.map +1 -1
  490. package/lib/components/tabs/src/tab-nav.js +1 -1
  491. package/lib/components/tag/index.js +2 -2
  492. package/lib/components/tag/src/tag.js +99 -28
  493. package/lib/components/tag/src/tag.js.map +1 -1
  494. package/lib/components/tag/src/tag2.js +28 -99
  495. package/lib/components/tag/src/tag2.js.map +1 -1
  496. package/lib/components/time-select/index.js +2 -2
  497. package/lib/components/time-select/src/time-select.js +64 -139
  498. package/lib/components/time-select/src/time-select.js.map +1 -1
  499. package/lib/components/time-select/src/time-select2.js +139 -64
  500. package/lib/components/time-select/src/time-select2.js.map +1 -1
  501. package/lib/components/timeline/src/timeline.d.ts +8 -2
  502. package/lib/components/timeline/src/timeline.js +11 -2
  503. package/lib/components/timeline/src/timeline.js.map +1 -1
  504. package/lib/components/tour/index.js +1 -1
  505. package/lib/components/tour/src/content.js +46 -67
  506. package/lib/components/tour/src/content.js.map +1 -1
  507. package/lib/components/tour/src/content2.js +67 -46
  508. package/lib/components/tour/src/content2.js.map +1 -1
  509. package/lib/components/tour/src/step.js +1 -1
  510. package/lib/components/tour/src/tour.js +1 -1
  511. package/lib/components/tour/src/tour2.js +1 -1
  512. package/lib/components/transfer/src/composables/use-check.js +1 -1
  513. package/lib/components/transfer/src/transfer-panel.js +21 -130
  514. package/lib/components/transfer/src/transfer-panel.js.map +1 -1
  515. package/lib/components/transfer/src/transfer-panel2.js +130 -21
  516. package/lib/components/transfer/src/transfer-panel2.js.map +1 -1
  517. package/lib/components/transfer/src/transfer2.js +1 -1
  518. package/lib/components/tree-select/index.d.ts +1 -0
  519. package/lib/components/tree-select/index.js.map +1 -1
  520. package/lib/components/tree-select/src/instance.d.ts +6 -0
  521. package/lib/components/tree-select/src/instance.js +3 -0
  522. package/lib/components/tree-select/src/instance.js.map +1 -0
  523. package/lib/index.js +13 -13
  524. package/lib/version.d.ts +1 -1
  525. package/lib/version.js +1 -1
  526. package/lib/version.js.map +1 -1
  527. package/package.json +2 -2
  528. package/tags.json +1 -1
  529. package/web-types.json +1 -1
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var splitter$1 = require('./src/splitter.js');
5
+ var splitter$1 = require('./src/splitter2.js');
6
6
  var splitPanel$1 = require('./src/split-panel2.js');
7
- var splitter = require('./src/splitter2.js');
7
+ var splitter = require('./src/splitter.js');
8
8
  var splitPanel = require('./src/split-panel.js');
9
9
  var install = require('../../utils/vue/install.js');
10
10
 
@@ -26,6 +26,6 @@ export type SplitterPanelProps = ExtractPropTypes<typeof splitterPanelProps>;
26
26
  export type SplitterPanelPropsPublic = __ExtractPublicPropTypes<typeof splitterPanelProps>;
27
27
  export type SplitterPanelInstance = InstanceType<typeof SplitterPanel> & unknown;
28
28
  export declare const splitterPanelEmits: {
29
- 'update:size': (value: number) => boolean;
29
+ 'update:size': (value: number | string) => boolean;
30
30
  };
31
31
  export type SplitterPanelEmits = typeof splitterPanelEmits;
@@ -21,7 +21,7 @@ const splitterPanelProps = runtime.buildProps({
21
21
  collapsible: Boolean
22
22
  });
23
23
  const splitterPanelEmits = {
24
- "update:size": (value) => typeof value === "number"
24
+ "update:size": (value) => typeof value === "number" || typeof value === "string"
25
25
  };
26
26
 
27
27
  exports.splitterPanelEmits = splitterPanelEmits;
@@ -1 +1 @@
1
- {"version":3,"file":"split-panel.js","sources":["../../../../../../packages/components/splitter/src/split-panel.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\n\nimport type { ExtractPropTypes, __ExtractPublicPropTypes } from 'vue'\nimport type SplitterPanel from './split-panel.vue'\n\nexport const splitterPanelProps = buildProps({\n min: {\n type: [String, Number],\n },\n max: {\n type: [String, Number],\n },\n size: {\n type: [String, Number],\n },\n resizable: {\n type: Boolean,\n default: true,\n },\n collapsible: Boolean,\n} as const)\n\nexport type SplitterPanelProps = ExtractPropTypes<typeof splitterPanelProps>\nexport type SplitterPanelPropsPublic = __ExtractPublicPropTypes<\n typeof splitterPanelProps\n>\nexport type SplitterPanelInstance = InstanceType<typeof SplitterPanel> & unknown\n\nexport const splitterPanelEmits = {\n 'update:size': (value: number) => typeof value === 'number',\n}\n\nexport type SplitterPanelEmits = typeof splitterPanelEmits\n"],"names":["buildProps"],"mappings":";;;;;;AACY,MAAC,kBAAkB,GAAGA,kBAAU,CAAC;AAC7C,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,GAAG;AACH,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,WAAW,EAAE,OAAO;AACtB,CAAC,EAAE;AACS,MAAC,kBAAkB,GAAG;AAClC,EAAE,aAAa,EAAE,CAAC,KAAK,KAAK,OAAO,KAAK,KAAK,QAAQ;AACrD;;;;;"}
1
+ {"version":3,"file":"split-panel.js","sources":["../../../../../../packages/components/splitter/src/split-panel.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\n\nimport type { ExtractPropTypes, __ExtractPublicPropTypes } from 'vue'\nimport type SplitterPanel from './split-panel.vue'\n\nexport const splitterPanelProps = buildProps({\n min: {\n type: [String, Number],\n },\n max: {\n type: [String, Number],\n },\n size: {\n type: [String, Number],\n },\n resizable: {\n type: Boolean,\n default: true,\n },\n collapsible: Boolean,\n} as const)\n\nexport type SplitterPanelProps = ExtractPropTypes<typeof splitterPanelProps>\nexport type SplitterPanelPropsPublic = __ExtractPublicPropTypes<\n typeof splitterPanelProps\n>\nexport type SplitterPanelInstance = InstanceType<typeof SplitterPanel> & unknown\n\nexport const splitterPanelEmits = {\n 'update:size': (value: number | string) =>\n typeof value === 'number' || typeof value === 'string',\n}\n\nexport type SplitterPanelEmits = typeof splitterPanelEmits\n"],"names":["buildProps"],"mappings":";;;;;;AACY,MAAC,kBAAkB,GAAGA,kBAAU,CAAC;AAC7C,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,GAAG;AACH,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,WAAW,EAAE,OAAO;AACtB,CAAC,EAAE;AACS,MAAC,kBAAkB,GAAG;AAClC,EAAE,aAAa,EAAE,CAAC,KAAK,KAAK,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,KAAK,QAAQ;AAClF;;;;;"}
@@ -28,7 +28,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
28
28
  /** @description splitter-panel html element */
29
29
  splitterPanelRef: import("vue").Ref<HTMLDivElement | undefined>;
30
30
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
31
- "update:size": (value: number) => void;
31
+ "update:size": (value: string | number) => void;
32
32
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
33
33
  readonly min: {
34
34
  readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
@@ -51,7 +51,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
51
51
  readonly resizable: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
52
52
  readonly collapsible: BooleanConstructor;
53
53
  }>> & {
54
- "onUpdate:size"?: ((value: number) => any) | undefined;
54
+ "onUpdate:size"?: ((value: string | number) => any) | undefined;
55
55
  }, {
56
56
  readonly resizable: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
57
57
  readonly collapsible: boolean;
@@ -2,107 +2,23 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var vue = require('vue');
6
- var splitter = require('./splitter2.js');
7
- var type = require('./type.js');
8
- var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
9
- var useContainer = require('./hooks/useContainer.js');
10
- var useSize = require('./hooks/useSize.js');
11
- var useResize = require('./hooks/useResize.js');
12
- var index = require('../../../hooks/use-namespace/index.js');
13
- var index$1 = require('../../../hooks/use-ordered-children/index.js');
5
+ var runtime = require('../../../utils/vue/props/runtime.js');
14
6
 
15
- const __default__ = vue.defineComponent({
16
- name: "ElSplitter"
7
+ const splitterProps = runtime.buildProps({
8
+ layout: {
9
+ type: String,
10
+ default: "horizontal",
11
+ values: ["horizontal", "vertical"]
12
+ },
13
+ lazy: Boolean
17
14
  });
18
- const _sfc_main = /* @__PURE__ */ vue.defineComponent({
19
- ...__default__,
20
- props: splitter.splitterProps,
21
- emits: splitter.splitterEmits,
22
- setup(__props, { emit: emits }) {
23
- const props = __props;
24
- const ns = index.useNamespace("splitter");
25
- const layout = vue.toRef(props, "layout");
26
- const lazy = vue.toRef(props, "lazy");
27
- const { containerEl, containerSize } = useContainer.useContainer(layout);
28
- const {
29
- removeChild: unregisterPanel,
30
- children: panels,
31
- addChild: registerPanel,
32
- ChildrenSorter: PanelsSorter
33
- } = index$1.useOrderedChildren(vue.getCurrentInstance(), "ElSplitterPanel");
34
- vue.watch(panels, () => {
35
- panels.value.forEach((instance, index) => {
36
- instance.setIndex(index);
37
- });
38
- });
39
- const { percentSizes, pxSizes } = useSize.useSize(panels, containerSize);
40
- const {
41
- lazyOffset,
42
- movingIndex,
43
- onMoveStart,
44
- onMoving,
45
- onMoveEnd,
46
- onCollapse
47
- } = useResize.useResize(panels, containerSize, pxSizes, lazy);
48
- const splitterStyles = vue.computed(() => {
49
- return {
50
- [ns.cssVarBlockName("bar-offset")]: lazy.value ? `${lazyOffset.value}px` : void 0
51
- };
52
- });
53
- const onResizeStart = (index) => {
54
- onMoveStart(index);
55
- emits("resizeStart", index, pxSizes.value);
56
- };
57
- const onResize = (index, offset) => {
58
- onMoving(index, offset);
59
- if (!lazy.value) {
60
- emits("resize", index, pxSizes.value);
61
- }
62
- };
63
- const onResizeEnd = async (index) => {
64
- onMoveEnd();
65
- await vue.nextTick();
66
- emits("resizeEnd", index, pxSizes.value);
67
- };
68
- const onCollapsible = (index, type) => {
69
- onCollapse(index, type);
70
- emits("collapse", index, type, pxSizes.value);
71
- };
72
- vue.provide(type.splitterRootContextKey, vue.reactive({
73
- panels,
74
- percentSizes,
75
- pxSizes,
76
- layout,
77
- lazy,
78
- movingIndex,
79
- containerSize,
80
- onMoveStart: onResizeStart,
81
- onMoving: onResize,
82
- onMoveEnd: onResizeEnd,
83
- onCollapse: onCollapsible,
84
- registerPanel,
85
- unregisterPanel
86
- }));
87
- return (_ctx, _cache) => {
88
- return vue.openBlock(), vue.createElementBlock("div", {
89
- ref_key: "containerEl",
90
- ref: containerEl,
91
- class: vue.normalizeClass([vue.unref(ns).b(), vue.unref(ns).e(vue.unref(layout))]),
92
- style: vue.normalizeStyle(vue.unref(splitterStyles))
93
- }, [
94
- vue.renderSlot(_ctx.$slots, "default"),
95
- vue.createVNode(vue.unref(PanelsSorter)),
96
- vue.createCommentVNode(" Prevent iframe touch events from breaking "),
97
- vue.unref(movingIndex) ? (vue.openBlock(), vue.createElementBlock("div", {
98
- key: 0,
99
- class: vue.normalizeClass([vue.unref(ns).e("mask"), vue.unref(ns).e(`mask-${vue.unref(layout)}`)])
100
- }, null, 2)) : vue.createCommentVNode("v-if", true)
101
- ], 6);
102
- };
103
- }
104
- });
105
- var Splitter = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "splitter.vue"]]);
15
+ const splitterEmits = {
16
+ resizeStart: (index, sizes) => true,
17
+ resize: (index, sizes) => true,
18
+ resizeEnd: (index, sizes) => true,
19
+ collapse: (index, type, sizes) => true
20
+ };
106
21
 
107
- exports["default"] = Splitter;
22
+ exports.splitterEmits = splitterEmits;
23
+ exports.splitterProps = splitterProps;
108
24
  //# sourceMappingURL=splitter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"splitter.js","sources":["../../../../../../packages/components/splitter/src/splitter.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport {\n computed,\n getCurrentInstance,\n nextTick,\n provide,\n reactive,\n toRef,\n watch,\n} from 'vue'\nimport { useNamespace, useOrderedChildren } from '@element-plus/hooks'\nimport { useContainer, useResize, useSize } from './hooks'\nimport { splitterEmits, splitterProps } from './splitter'\nimport { splitterRootContextKey } from './type'\n\nimport type { PanelItemState } from './type'\n\nconst ns = useNamespace('splitter')\n\ndefineOptions({\n name: 'ElSplitter',\n})\n\nconst emits = defineEmits(splitterEmits)\n\nconst props = defineProps(splitterProps)\nconst layout = toRef(props, 'layout')\nconst lazy = toRef(props, 'lazy')\n\nconst { containerEl, containerSize } = useContainer(layout)\n\nconst {\n removeChild: unregisterPanel,\n children: panels,\n addChild: registerPanel,\n ChildrenSorter: PanelsSorter,\n} = useOrderedChildren<PanelItemState>(getCurrentInstance()!, 'ElSplitterPanel')\n\nwatch(panels, () => {\n panels.value.forEach((instance: PanelItemState, index: number) => {\n instance.setIndex(index)\n })\n})\n\nconst { percentSizes, pxSizes } = useSize(panels, containerSize)\n\nconst {\n lazyOffset,\n movingIndex,\n onMoveStart,\n onMoving,\n onMoveEnd,\n onCollapse,\n} = useResize(panels, containerSize, pxSizes, lazy)\n\nconst splitterStyles = computed(() => {\n return {\n [ns.cssVarBlockName('bar-offset')]: lazy.value\n ? `${lazyOffset.value}px`\n : undefined,\n }\n})\n\nconst onResizeStart = (index: number) => {\n onMoveStart(index)\n emits('resizeStart', index, pxSizes.value)\n}\n\nconst onResize = (index: number, offset: number) => {\n onMoving(index, offset)\n\n if (!lazy.value) {\n emits('resize', index, pxSizes.value)\n }\n}\n\nconst onResizeEnd = async (index: number) => {\n onMoveEnd()\n await nextTick()\n emits('resizeEnd', index, pxSizes.value)\n}\n\nconst onCollapsible = (index: number, type: 'start' | 'end') => {\n onCollapse(index, type)\n emits('collapse', index, type, pxSizes.value)\n}\n\nprovide(\n splitterRootContextKey,\n reactive({\n panels,\n percentSizes,\n pxSizes,\n layout,\n lazy,\n movingIndex,\n containerSize,\n onMoveStart: onResizeStart,\n onMoving: onResize,\n onMoveEnd: onResizeEnd,\n onCollapse: onCollapsible,\n registerPanel,\n unregisterPanel,\n })\n)\n</script>\n\n<template>\n <div\n ref=\"containerEl\"\n :class=\"[ns.b(), ns.e(layout)]\"\n :style=\"splitterStyles\"\n >\n <slot />\n <panels-sorter />\n <!-- Prevent iframe touch events from breaking -->\n <div v-if=\"movingIndex\" :class=\"[ns.e('mask'), ns.e(`mask-${layout}`)]\" />\n </div>\n</template>\n"],"names":["useNamespace","toRef","useContainer","useOrderedChildren","getCurrentInstance","watch","useSize","useResize","computed","nextTick","provide","splitterRootContextKey","reactive","_openBlock","_createElementBlock"],"mappings":";;;;;;;;;;;;;;uCAmBc,CAAA;AAAA,EACZ,IAAM,EAAA,YAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAJA,IAAM,MAAA,EAAA,GAAKA,mBAAa,UAAU,CAAA,CAAA;AASlC,IAAM,MAAA,MAAA,GAASC,SAAM,CAAA,KAAA,EAAO,QAAQ,CAAA,CAAA;AACpC,IAAM,MAAA,IAAA,GAAOA,SAAM,CAAA,KAAA,EAAO,MAAM,CAAA,CAAA;AAEhC,IAAA,MAAM,EAAE,WAAA,EAAa,aAAc,EAAA,GAAIC,0BAAa,MAAM,CAAA,CAAA;AAE1D,IAAM,MAAA;AAAA,MACJ,WAAa,EAAA,eAAA;AAAA,MACb,QAAU,EAAA,MAAA;AAAA,MACV,QAAU,EAAA,aAAA;AAAA,MACV,cAAgB,EAAA,YAAA;AAAA,KACd,GAAAC,0BAAA,CAAmCC,sBAAmB,EAAA,EAAI,iBAAiB,CAAA,CAAA;AAE/E,IAAAC,SAAA,CAAM,QAAQ,MAAM;AAClB,MAAA,MAAA,CAAO,KAAM,CAAA,OAAA,CAAQ,CAAC,QAAA,EAA0B,KAAkB,KAAA;AAChE,QAAA,QAAA,CAAS,SAAS,KAAK,CAAA,CAAA;AAAA,OACxB,CAAA,CAAA;AAAA,KACF,CAAA,CAAA;AAED,IAAA,MAAM,EAAE,YAAc,EAAA,OAAA,EAAY,GAAAC,eAAA,CAAQ,QAAQ,aAAa,CAAA,CAAA;AAE/D,IAAM,MAAA;AAAA,MACJ,UAAA;AAAA,MACA,WAAA;AAAA,MACA,WAAA;AAAA,MACA,QAAA;AAAA,MACA,SAAA;AAAA,MACA,UAAA;AAAA,KACE,GAAAC,m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,EAAAC,YAAA,CAAA;AAAA,MACE,MAAA;AAAA,MACA,YAAS;AAAA,MACP,OAAA;AAAA,MACA,MAAA;AAAA,MACA,IAAA;AAAA,MACA,WAAA;AAAA,MACA,aAAA;AAAA,MACA,WAAA,EAAA,aAAA;AAAA,MACA,QAAA,EAAA,QAAA;AAAA,MAAA,SACa,EAAA,WAAA;AAAA,MAAA,UACH,EAAA,aAAA;AAAA,MAAA,aACC;AAAA,MAAA,eACC;AAAA,KACZ,CAAA,CAAA,CAAA;AAAA,IACA,OAAA,CAAA,IAAA,EAAA,MAAA,KAAA;AAAA,MACF,OAACC,aAAA,EAAA,EAAAC,sBAAA,CAAA,KAAA,EAAA;AAAA,QACH,OAAA,EAAA,aAAA;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"splitter.js","sources":["../../../../../../packages/components/splitter/src/splitter.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\n\nimport type { ExtractPropTypes, __ExtractPublicPropTypes } from 'vue'\nimport type Splitter from './splitter.vue'\n\nexport const splitterProps = buildProps({\n layout: {\n type: String,\n default: 'horizontal',\n values: ['horizontal', 'vertical'] as const,\n },\n lazy: Boolean,\n} as const)\n\nexport type SplitterProps = ExtractPropTypes<typeof splitterProps>\nexport type SplitterPropsPublic = __ExtractPublicPropTypes<typeof splitterProps>\nexport type SplitterInstance = InstanceType<typeof Splitter> & unknown\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\nexport const splitterEmits = {\n resizeStart: (index: number, sizes: number[]) => true,\n resize: (index: number, sizes: number[]) => true,\n resizeEnd: (index: number, sizes: number[]) => true,\n collapse: (index: number, type: 'start' | 'end', sizes: number[]) => true,\n}\n/* eslint-enable @typescript-eslint/no-unused-vars */\n\nexport type SplitterEmits = typeof splitterEmits\n"],"names":["buildProps"],"mappings":";;;;;;AACY,MAAC,aAAa,GAAGA,kBAAU,CAAC;AACxC,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,YAAY;AACzB,IAAI,MAAM,EAAE,CAAC,YAAY,EAAE,UAAU,CAAC;AACtC,GAAG;AACH,EAAE,IAAI,EAAE,OAAO;AACf,CAAC,EAAE;AACS,MAAC,aAAa,GAAG;AAC7B,EAAE,WAAW,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI;AACrC,EAAE,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI;AAChC,EAAE,SAAS,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI;AACnC,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,KAAK,IAAI;AACxC;;;;;"}
@@ -2,23 +2,108 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var runtime = require('../../../utils/vue/props/runtime.js');
5
+ var vue = require('vue');
6
+ var splitter = require('./splitter.js');
7
+ var type = require('./type.js');
8
+ var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
9
+ var useContainer = require('./hooks/useContainer.js');
10
+ var useSize = require('./hooks/useSize.js');
11
+ var useResize = require('./hooks/useResize.js');
12
+ var index = require('../../../hooks/use-namespace/index.js');
13
+ var index$1 = require('../../../hooks/use-ordered-children/index.js');
6
14
 
7
- const splitterProps = runtime.buildProps({
8
- layout: {
9
- type: String,
10
- default: "horizontal",
11
- values: ["horizontal", "vertical"]
12
- },
13
- lazy: Boolean
15
+ const __default__ = vue.defineComponent({
16
+ name: "ElSplitter"
14
17
  });
15
- const splitterEmits = {
16
- resizeStart: (index, sizes) => true,
17
- resize: (index, sizes) => true,
18
- resizeEnd: (index, sizes) => true,
19
- collapse: (index, type, sizes) => true
20
- };
18
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
19
+ ...__default__,
20
+ props: splitter.splitterProps,
21
+ emits: splitter.splitterEmits,
22
+ setup(__props, { emit: emits }) {
23
+ const props = __props;
24
+ const ns = index.useNamespace("splitter");
25
+ const layout = vue.toRef(props, "layout");
26
+ const lazy = vue.toRef(props, "lazy");
27
+ const { containerEl, containerSize } = useContainer.useContainer(layout);
28
+ const {
29
+ removeChild: unregisterPanel,
30
+ children: panels,
31
+ addChild: registerPanel,
32
+ ChildrenSorter: PanelsSorter
33
+ } = index$1.useOrderedChildren(vue.getCurrentInstance(), "ElSplitterPanel");
34
+ vue.watch(panels, () => {
35
+ movingIndex.value = null;
36
+ panels.value.forEach((instance, index) => {
37
+ instance.setIndex(index);
38
+ });
39
+ });
40
+ const { percentSizes, pxSizes } = useSize.useSize(panels, containerSize);
41
+ const {
42
+ lazyOffset,
43
+ movingIndex,
44
+ onMoveStart,
45
+ onMoving,
46
+ onMoveEnd,
47
+ onCollapse
48
+ } = useResize.useResize(panels, containerSize, pxSizes, lazy);
49
+ const splitterStyles = vue.computed(() => {
50
+ return {
51
+ [ns.cssVarBlockName("bar-offset")]: lazy.value ? `${lazyOffset.value}px` : void 0
52
+ };
53
+ });
54
+ const onResizeStart = (index) => {
55
+ onMoveStart(index);
56
+ emits("resizeStart", index, pxSizes.value);
57
+ };
58
+ const onResize = (index, offset) => {
59
+ onMoving(index, offset);
60
+ if (!lazy.value) {
61
+ emits("resize", index, pxSizes.value);
62
+ }
63
+ };
64
+ const onResizeEnd = async (index) => {
65
+ onMoveEnd();
66
+ await vue.nextTick();
67
+ emits("resizeEnd", index, pxSizes.value);
68
+ };
69
+ const onCollapsible = (index, type) => {
70
+ onCollapse(index, type);
71
+ emits("collapse", index, type, pxSizes.value);
72
+ };
73
+ vue.provide(type.splitterRootContextKey, vue.reactive({
74
+ panels,
75
+ percentSizes,
76
+ pxSizes,
77
+ layout,
78
+ lazy,
79
+ movingIndex,
80
+ containerSize,
81
+ onMoveStart: onResizeStart,
82
+ onMoving: onResize,
83
+ onMoveEnd: onResizeEnd,
84
+ onCollapse: onCollapsible,
85
+ registerPanel,
86
+ unregisterPanel
87
+ }));
88
+ return (_ctx, _cache) => {
89
+ return vue.openBlock(), vue.createElementBlock("div", {
90
+ ref_key: "containerEl",
91
+ ref: containerEl,
92
+ class: vue.normalizeClass([vue.unref(ns).b(), vue.unref(ns).e(vue.unref(layout))]),
93
+ style: vue.normalizeStyle(vue.unref(splitterStyles))
94
+ }, [
95
+ vue.renderSlot(_ctx.$slots, "default"),
96
+ vue.createVNode(vue.unref(PanelsSorter)),
97
+ vue.createCommentVNode(" Prevent iframe touch events from breaking "),
98
+ vue.unref(movingIndex) ? (vue.openBlock(), vue.createElementBlock("div", {
99
+ key: 0,
100
+ class: vue.normalizeClass([vue.unref(ns).e("mask"), vue.unref(ns).e(`mask-${vue.unref(layout)}`)])
101
+ }, null, 2)) : vue.createCommentVNode("v-if", true)
102
+ ], 6);
103
+ };
104
+ }
105
+ });
106
+ var Splitter = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "splitter.vue"]]);
21
107
 
22
- exports.splitterEmits = splitterEmits;
23
- exports.splitterProps = splitterProps;
108
+ exports["default"] = Splitter;
24
109
  //# sourceMappingURL=splitter2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"splitter2.js","sources":["../../../../../../packages/components/splitter/src/splitter.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\n\nimport type { ExtractPropTypes, __ExtractPublicPropTypes } from 'vue'\nimport type Splitter from './splitter.vue'\n\nexport const splitterProps = buildProps({\n layout: {\n type: String,\n default: 'horizontal',\n values: ['horizontal', 'vertical'] as const,\n },\n lazy: Boolean,\n} as const)\n\nexport type SplitterProps = ExtractPropTypes<typeof splitterProps>\nexport type SplitterPropsPublic = __ExtractPublicPropTypes<typeof splitterProps>\nexport type SplitterInstance = InstanceType<typeof Splitter> & unknown\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\nexport const splitterEmits = {\n resizeStart: (index: number, sizes: number[]) => true,\n resize: (index: number, sizes: number[]) => true,\n resizeEnd: (index: number, sizes: number[]) => true,\n collapse: (index: number, type: 'start' | 'end', sizes: number[]) => true,\n}\n/* eslint-enable @typescript-eslint/no-unused-vars */\n\nexport type SplitterEmits = typeof splitterEmits\n"],"names":["buildProps"],"mappings":";;;;;;AACY,MAAC,aAAa,GAAGA,kBAAU,CAAC;AACxC,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,YAAY;AACzB,IAAI,MAAM,EAAE,CAAC,YAAY,EAAE,UAAU,CAAC;AACtC,GAAG;AACH,EAAE,IAAI,EAAE,OAAO;AACf,CAAC,EAAE;AACS,MAAC,aAAa,GAAG;AAC7B,EAAE,WAAW,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI;AACrC,EAAE,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI;AAChC,EAAE,SAAS,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI;AACnC,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,KAAK,IAAI;AACxC;;;;;"}
1
+ {"version":3,"file":"splitter2.js","sources":["../../../../../../packages/components/splitter/src/splitter.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport {\n computed,\n getCurrentInstance,\n nextTick,\n provide,\n reactive,\n toRef,\n watch,\n} from 'vue'\nimport { useNamespace, useOrderedChildren } from '@element-plus/hooks'\nimport { useContainer, useResize, useSize } from './hooks'\nimport { splitterEmits, splitterProps } from './splitter'\nimport { splitterRootContextKey } from './type'\n\nimport type { PanelItemState } from './type'\n\nconst ns = useNamespace('splitter')\n\ndefineOptions({\n name: 'ElSplitter',\n})\n\nconst emits = defineEmits(splitterEmits)\n\nconst props = defineProps(splitterProps)\nconst layout = toRef(props, 'layout')\nconst lazy = toRef(props, 'lazy')\n\nconst { containerEl, containerSize } = useContainer(layout)\n\nconst {\n removeChild: unregisterPanel,\n children: panels,\n addChild: registerPanel,\n ChildrenSorter: PanelsSorter,\n} = useOrderedChildren<PanelItemState>(getCurrentInstance()!, 'ElSplitterPanel')\n\nwatch(panels, () => {\n movingIndex.value = null\n panels.value.forEach((instance: PanelItemState, index: number) => {\n instance.setIndex(index)\n })\n})\n\nconst { percentSizes, pxSizes } = useSize(panels, containerSize)\n\nconst {\n lazyOffset,\n movingIndex,\n onMoveStart,\n onMoving,\n onMoveEnd,\n onCollapse,\n} = useResize(panels, containerSize, pxSizes, lazy)\n\nconst splitterStyles = computed(() => {\n return {\n [ns.cssVarBlockName('bar-offset')]: lazy.value\n ? `${lazyOffset.value}px`\n : undefined,\n }\n})\n\nconst onResizeStart = (index: number) => {\n onMoveStart(index)\n emits('resizeStart', index, pxSizes.value)\n}\n\nconst onResize = (index: number, offset: number) => {\n onMoving(index, offset)\n\n if (!lazy.value) {\n emits('resize', index, pxSizes.value)\n }\n}\n\nconst onResizeEnd = async (index: number) => {\n onMoveEnd()\n await nextTick()\n emits('resizeEnd', index, pxSizes.value)\n}\n\nconst onCollapsible = (index: number, type: 'start' | 'end') => {\n onCollapse(index, type)\n emits('collapse', index, type, pxSizes.value)\n}\n\nprovide(\n splitterRootContextKey,\n reactive({\n panels,\n percentSizes,\n pxSizes,\n layout,\n lazy,\n movingIndex,\n containerSize,\n onMoveStart: onResizeStart,\n onMoving: onResize,\n onMoveEnd: onResizeEnd,\n onCollapse: onCollapsible,\n registerPanel,\n unregisterPanel,\n })\n)\n</script>\n\n<template>\n <div\n ref=\"containerEl\"\n :class=\"[ns.b(), ns.e(layout)]\"\n :style=\"splitterStyles\"\n >\n <slot />\n <panels-sorter />\n <!-- Prevent iframe touch events from breaking -->\n <div v-if=\"movingIndex\" :class=\"[ns.e('mask'), ns.e(`mask-${layout}`)]\" />\n </div>\n</template>\n"],"names":["useNamespace","toRef","useContainer","useOrderedChildren","getCurrentInstance","watch","useSize","useResize","computed","nextTick","provide","splitterRootContextKey","reactive","_openBlock","_createElementBlock"],"mappings":";;;;;;;;;;;;;;uCAmBc,CAAA;AAAA,EACZ,IAAM,EAAA,YAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAJA,IAAM,MAAA,EA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AA,MAAA,aACC;AAAA,MAAA,eACC;AAAA,KACZ,CAAA,CAAA,CAAA;AAAA,IACA,OAAA,CAAA,IAAA,EAAA,MAAA,KAAA;AAAA,MACF,OAACC,aAAA,EAAA,EAAAC,sBAAA,CAAA,KAAA,EAAA;AAAA,QACH,OAAA,EAAA,aAAA;;;;;;;;;;;;;;;;;;;;"}
@@ -1,4 +1,4 @@
1
- import type { CSSProperties, ComponentInternalInstance, PropType, Ref, VNode } from 'vue';
1
+ import type { CSSProperties, ComponentInternalInstance, PropType, Ref, StyleValue, VNode } from 'vue';
2
2
  import type { ComponentSize } from '@element-plus/nightly/es/constants';
3
3
  import type { Nullable } from '@element-plus/nightly/es/utils';
4
4
  import type { Store } from '../store';
@@ -123,7 +123,7 @@ interface TableProps<T extends DefaultRow> {
123
123
  lazy?: boolean;
124
124
  load?: (row: T, treeNode: TreeNode, resolve: (data: T[]) => void) => void;
125
125
  className?: string;
126
- style?: CSSProperties;
126
+ style?: StyleValue;
127
127
  tableLayout?: Layout;
128
128
  scrollbarAlwaysOn?: boolean;
129
129
  flexible?: boolean;
@@ -330,7 +330,7 @@ declare const _default: {
330
330
  */
331
331
  load: PropType<TableProps<any>["load"]>;
332
332
  style: {
333
- type: PropType<CSSProperties>;
333
+ type: PropType<TableProps<any>["style"]>;
334
334
  default: () => {};
335
335
  };
336
336
  className: {
@@ -65,7 +65,7 @@ var defaultProps = {
65
65
  lazy: Boolean,
66
66
  load: Function,
67
67
  style: {
68
- type: Object,
68
+ type: [String, Object, Array],
69
69
  default: () => ({})
70
70
  },
71
71
  className: {
@@ -1 +1 @@
1
- {"version":3,"file":"defaults.js","sources":["../../../../../../../packages/components/table/src/table/defaults.ts"],"sourcesContent":["import { useSizeProp } from '@element-plus/hooks'\n\nimport type {\n CSSProperties,\n ComponentInternalInstance,\n PropType,\n Ref,\n VNode,\n} from 'vue'\nimport type { ComponentSize } from '@element-plus/constants'\nimport type { Nullable } from '@element-plus/utils'\nimport type { Store } from '../store'\nimport type { TableColumnCtx } from '../table-column/defaults'\nimport type TableLayout from '../table-layout'\nimport type {\n TableOverflowTooltipFormatter,\n TableOverflowTooltipOptions,\n} from '../util'\n\ntype DefaultRow = Record<PropertyKey, any>\n\ninterface TableRefs {\n tableWrapper: HTMLElement\n headerWrapper: HTMLElement\n footerWrapper: HTMLElement\n fixedBodyWrapper: HTMLElement\n rightFixedBodyWrapper: HTMLElement\n bodyWrapper: HTMLElement\n appendWrapper: HTMLElement\n [key: string]: any\n}\n\ninterface TableState {\n isGroup: Ref<boolean>\n resizeState: Ref<{\n width: any\n height: any\n }>\n doLayout: () => void\n debouncedUpdateLayout: () => void\n}\n\ninterface TreeProps {\n hasChildren?: string\n children?: string\n checkStrictly?: boolean\n}\n\ntype HoverState<T extends DefaultRow> = Nullable<{\n cell: HTMLElement\n column: TableColumnCtx<T>\n row: T\n}>\n\ntype RIS<T extends DefaultRow> = {\n row: T\n $index: number\n store: Store<T>\n expanded: boolean\n}\n\ntype RenderExpanded<T extends DefaultRow> = ({\n row,\n $index,\n store,\n expanded,\n}: RIS<T>) => VNode[] | undefined\n\ntype SummaryMethod<T extends DefaultRow> = (data: {\n columns: TableColumnCtx<T>[]\n data: T[]\n}) => (string | VNode)[]\n\ninterface Table<T extends DefaultRow = any> extends ComponentInternalInstance {\n $ready: boolean\n hoverState?: HoverState<T> | null\n renderExpanded: RenderExpanded<T>\n store: Store<T>\n layout: TableLayout<T>\n refs: TableRefs\n tableId: string\n state: TableState\n}\n\ntype ColumnCls<T> = string | ((data: { row: T; rowIndex: number }) => string)\ntype ColumnStyle<T> =\n | CSSProperties\n | ((data: { row: T; rowIndex: number }) => CSSProperties)\ntype CellCls<T extends DefaultRow> =\n | string\n | ((data: {\n row: T\n rowIndex: number\n column: TableColumnCtx<T>\n columnIndex: number\n }) => string)\ntype CellStyle<T extends DefaultRow> =\n | CSSProperties\n | ((data: {\n row: T\n rowIndex: number\n column: TableColumnCtx<T>\n columnIndex: number\n }) => CSSProperties)\ntype Layout = 'fixed' | 'auto'\ninterface TableProps<T extends DefaultRow> {\n data: T[]\n size?: ComponentSize\n width?: string | number\n height?: string | number\n maxHeight?: string | number\n fit?: boolean\n stripe?: boolean\n border?: boolean\n rowKey?: string | ((row: T) => string)\n context?: Table<T>\n showHeader?: boolean\n showSummary?: boolean\n sumText?: string\n summaryMethod?: SummaryMethod<T>\n rowClassName?: ColumnCls<T>\n rowStyle?: ColumnStyle<T>\n cellClassName?: CellCls<T>\n cellStyle?: CellStyle<T>\n headerRowClassName?: ColumnCls<T>\n headerRowStyle?: ColumnStyle<T>\n headerCellClassName?: CellCls<T>\n headerCellStyle?: CellStyle<T>\n highlightCurrentRow?: boolean\n currentRowKey?: string | number\n emptyText?: string\n expandRowKeys?: Array<string>\n defaultExpandAll?: boolean\n defaultSort?: Sort\n tooltipEffect?: string\n tooltipOptions?: TableOverflowTooltipOptions\n spanMethod?: (data: {\n row: T\n rowIndex: number\n column: TableColumnCtx<T>\n columnIndex: number\n }) =>\n | number[]\n | {\n rowspan: number\n colspan: number\n }\n | undefined\n selectOnIndeterminate?: boolean\n indent?: number\n treeProps?: TreeProps\n lazy?: boolean\n load?: (row: T, treeNode: TreeNode, resolve: (data: T[]) => void) => void\n className?: string\n style?: CSSProperties\n tableLayout?: Layout\n scrollbarAlwaysOn?: boolean\n flexible?: boolean\n showOverflowTooltip?: boolean | TableOverflowTooltipOptions\n tooltipFormatter?: TableOverflowTooltipFormatter<T>\n appendFilterPanelTo?: string\n scrollbarTabindex?: number | string\n nativeScrollbar?: boolean\n}\n\ntype TableTooltipData<T extends DefaultRow> = Parameters<\n TableOverflowTooltipFormatter<T>\n>[0]\ntype TableSortOrder = 'ascending' | 'descending'\n\ninterface Sort {\n prop: string\n order: TableSortOrder\n init?: any\n silent?: any\n}\n\ninterface Filter<T extends DefaultRow> {\n column: TableColumnCtx<T>\n values: string[]\n silent: any\n}\n\ninterface TreeNode {\n expanded?: boolean\n loading?: boolean\n noLazyChildren?: boolean\n indent?: number\n level?: number\n display?: boolean\n}\n\ninterface RenderRowData<T extends DefaultRow> {\n store: Store<T>\n _self: Table<T>\n column: TableColumnCtx<T>\n row: T\n $index: number\n cellIndex: number\n treeNode?: TreeNode\n expanded: boolean\n}\n\nexport default {\n /**\n * @description table data\n */\n data: {\n type: Array as PropType<any[]>,\n default: () => [],\n },\n /**\n * @description size of Table\n */\n size: useSizeProp,\n width: [String, Number],\n /**\n * @description table's height. By default it has an `auto` height. If its value is a number, the height is measured in pixels; if its value is a string, the value will be assigned to element's style.height, the height is affected by external styles\n */\n height: [String, Number],\n /**\n * @description table's max-height. The legal value is a number or the height in px\n */\n maxHeight: [String, Number],\n /**\n * @description whether width of column automatically fits its container\n */\n fit: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether Table is striped\n */\n stripe: Boolean,\n /**\n * @description whether Table has vertical border\n */\n border: Boolean,\n /**\n * @description key of row data, used for optimizing rendering. Required if `reserve-selection` is on or display tree data. When its type is String, multi-level access is supported, e.g. `user.info.id`, but `user.info[0].id` is not supported, in which case `Function` should be used\n */\n rowKey: [String, Function] as PropType<TableProps<any>['rowKey']>,\n /**\n * @description whether Table header is visible\n */\n showHeader: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether to display a summary row\n */\n showSummary: Boolean,\n /**\n * @description displayed text for the first column of summary row\n */\n sumText: String,\n /**\n * @description custom summary method\n */\n summaryMethod: Function as PropType<TableProps<any>['summaryMethod']>,\n /**\n * @description function that returns custom class names for a row, or a string assigning class names for every row\n */\n rowClassName: [String, Function] as PropType<TableProps<any>['rowClassName']>,\n /**\n * @description function that returns custom style for a row, or an object assigning custom style for every row\n */\n rowStyle: [Object, Function] as PropType<TableProps<any>['rowStyle']>,\n /**\n * @description function that returns custom class names for a cell, or a string assigning class names for every cell\n */\n cellClassName: [String, Function] as PropType<\n TableProps<any>['cellClassName']\n >,\n /**\n * @description function that returns custom style for a cell, or an object assigning custom style for every cell\n */\n cellStyle: [Object, Function] as PropType<TableProps<any>['cellStyle']>,\n /**\n * @description function that returns custom class names for a row in table header, or a string assigning class names for every row in table header\n */\n headerRowClassName: [String, Function] as PropType<\n TableProps<any>['headerRowClassName']\n >,\n /**\n * @description function that returns custom style for a row in table header, or an object assigning custom style for every row in table header\n */\n headerRowStyle: [Object, Function] as PropType<\n TableProps<any>['headerRowStyle']\n >,\n /**\n * @description function that returns custom class names for a cell in table header, or a string assigning class names for every cell in table header\n */\n headerCellClassName: [String, Function] as PropType<\n TableProps<any>['headerCellClassName']\n >,\n /**\n * @description function that returns custom style for a cell in table header, or an object assigning custom style for every cell in table header\n */\n headerCellStyle: [Object, Function] as PropType<\n TableProps<any>['headerCellStyle']\n >,\n /**\n * @description whether current row is highlighted\n */\n highlightCurrentRow: Boolean,\n /**\n * @description key of current row, a set only prop\n */\n currentRowKey: [String, Number],\n /**\n * @description displayed text when data is empty. You can customize this area with `#empty`\n */\n emptyText: String,\n /**\n * @description set expanded rows by this prop, prop's value is the keys of expand rows, you should set row-key before using this prop\n */\n expandRowKeys: Array as PropType<TableProps<any>['expandRowKeys']>,\n /**\n * @description whether expand all rows by default, works when the table has a column type=\"expand\" or contains tree structure data\n */\n defaultExpandAll: Boolean,\n /**\n * @description set the default sort column and order. property `prop` is used to set default sort column, property `order` is used to set default sort order\n */\n defaultSort: Object as PropType<TableProps<any>['defaultSort']>,\n /**\n * @description the `effect` of the overflow tooltip\n */\n tooltipEffect: String,\n /**\n * @description the options for the overflow tooltip, [see the following tooltip component](tooltip.html#attributes)\n */\n tooltipOptions: Object as PropType<TableProps<any>['tooltipOptions']>,\n /**\n * @description method that returns rowspan and colspan\n */\n spanMethod: Function as PropType<TableProps<any>['spanMethod']>,\n /**\n * @description controls the behavior of master checkbox in multi-select tables when only some rows are selected (but not all). If true, all rows will be selected, else deselected\n */\n selectOnIndeterminate: {\n type: Boolean,\n default: true,\n },\n /**\n * @description horizontal indentation of tree data\n */\n indent: {\n type: Number,\n default: 16,\n },\n /**\n * @description configuration for rendering nested data\n */\n treeProps: {\n type: Object as PropType<TableProps<any>['treeProps']>,\n default: () => {\n return {\n hasChildren: 'hasChildren',\n children: 'children',\n checkStrictly: false,\n }\n },\n },\n /**\n * @description whether to lazy loading data\n */\n lazy: Boolean,\n /**\n * @description method for loading child row data, only works when `lazy` is true\n */\n load: Function as PropType<TableProps<any>['load']>,\n style: {\n type: Object as PropType<CSSProperties>,\n default: () => ({}),\n },\n className: {\n type: String,\n default: '',\n },\n /**\n * @description sets the algorithm used to lay out table cells, rows, and columns\n */\n tableLayout: {\n type: String as PropType<Layout>,\n default: 'fixed',\n },\n /**\n * @description always show scrollbar\n */\n scrollbarAlwaysOn: Boolean,\n /**\n * @description ensure main axis minimum-size doesn't follow the content\n */\n flexible: Boolean,\n /**\n * @description whether to hide extra content and show them in a tooltip when hovering on the cell.It will affect all the table columns\n */\n showOverflowTooltip: [Boolean, Object] as PropType<\n TableProps<any>['showOverflowTooltip']\n >,\n /**\n * @description function that formats cell tooltip content, works when `show-overflow-tooltip` is `true`\n */\n tooltipFormatter: Function as PropType<TableProps<any>['tooltipFormatter']>,\n appendFilterPanelTo: String,\n scrollbarTabindex: {\n type: [Number, String],\n default: undefined,\n },\n /**\n * @description whether to allow drag the last column\n */\n allowDragLastColumn: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether to preserve expanded row content in DOM when collapsed\n */\n preserveExpandedContent: Boolean,\n /**\n * @description whether to use native scrollbars\n */\n nativeScrollbar: Boolean,\n}\nexport type {\n SummaryMethod,\n Table,\n TableProps,\n TableRefs,\n ColumnCls,\n ColumnStyle,\n CellCls,\n CellStyle,\n DefaultRow,\n TreeNode,\n RenderRowData,\n Sort,\n Filter,\n TableColumnCtx,\n TreeProps,\n TableTooltipData,\n TableSortOrder,\n RenderExpanded,\n}\n"],"names":["useSizeProp"],"mappings":";;;;;;AACA,mBAAe;AACf,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,KAAK;AACf,IAAI,OAAO,EAAE,MAAM,EAAE;AACrB,GAAG;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EAAE;AACvB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,uBAAuB,EAAE,OAAO;AAClC,EAAE,eAAe,EAAE,OAAO;AAC1B,CAAC;;;;"}
1
+ {"version":3,"file":"defaults.js","sources":["../../../../../../../packages/components/table/src/table/defaults.ts"],"sourcesContent":["import { useSizeProp } from '@element-plus/hooks'\n\nimport type {\n CSSProperties,\n ComponentInternalInstance,\n PropType,\n Ref,\n StyleValue,\n VNode,\n} from 'vue'\nimport type { ComponentSize } from '@element-plus/constants'\nimport type { Nullable } from '@element-plus/utils'\nimport type { Store } from '../store'\nimport type { TableColumnCtx } from '../table-column/defaults'\nimport type TableLayout from '../table-layout'\nimport type {\n TableOverflowTooltipFormatter,\n TableOverflowTooltipOptions,\n} from '../util'\n\ntype DefaultRow = Record<PropertyKey, any>\n\ninterface TableRefs {\n tableWrapper: HTMLElement\n headerWrapper: HTMLElement\n footerWrapper: HTMLElement\n fixedBodyWrapper: HTMLElement\n rightFixedBodyWrapper: HTMLElement\n bodyWrapper: HTMLElement\n appendWrapper: HTMLElement\n [key: string]: any\n}\n\ninterface TableState {\n isGroup: Ref<boolean>\n resizeState: Ref<{\n width: any\n height: any\n }>\n doLayout: () => void\n debouncedUpdateLayout: () => void\n}\n\ninterface TreeProps {\n hasChildren?: string\n children?: string\n checkStrictly?: boolean\n}\n\ntype HoverState<T extends DefaultRow> = Nullable<{\n cell: HTMLElement\n column: TableColumnCtx<T>\n row: T\n}>\n\ntype RIS<T extends DefaultRow> = {\n row: T\n $index: number\n store: Store<T>\n expanded: boolean\n}\n\ntype RenderExpanded<T extends DefaultRow> = ({\n row,\n $index,\n store,\n expanded,\n}: RIS<T>) => VNode[] | undefined\n\ntype SummaryMethod<T extends DefaultRow> = (data: {\n columns: TableColumnCtx<T>[]\n data: T[]\n}) => (string | VNode)[]\n\ninterface Table<T extends DefaultRow = any> extends ComponentInternalInstance {\n $ready: boolean\n hoverState?: HoverState<T> | null\n renderExpanded: RenderExpanded<T>\n store: Store<T>\n layout: TableLayout<T>\n refs: TableRefs\n tableId: string\n state: TableState\n}\n\ntype ColumnCls<T> = string | ((data: { row: T; rowIndex: number }) => string)\ntype ColumnStyle<T> =\n | CSSProperties\n | ((data: { row: T; rowIndex: number }) => CSSProperties)\ntype CellCls<T extends DefaultRow> =\n | string\n | ((data: {\n row: T\n rowIndex: number\n column: TableColumnCtx<T>\n columnIndex: number\n }) => string)\ntype CellStyle<T extends DefaultRow> =\n | CSSProperties\n | ((data: {\n row: T\n rowIndex: number\n column: TableColumnCtx<T>\n columnIndex: number\n }) => CSSProperties)\ntype Layout = 'fixed' | 'auto'\ninterface TableProps<T extends DefaultRow> {\n data: T[]\n size?: ComponentSize\n width?: string | number\n height?: string | number\n maxHeight?: string | number\n fit?: boolean\n stripe?: boolean\n border?: boolean\n rowKey?: string | ((row: T) => string)\n context?: Table<T>\n showHeader?: boolean\n showSummary?: boolean\n sumText?: string\n summaryMethod?: SummaryMethod<T>\n rowClassName?: ColumnCls<T>\n rowStyle?: ColumnStyle<T>\n cellClassName?: CellCls<T>\n cellStyle?: CellStyle<T>\n headerRowClassName?: ColumnCls<T>\n headerRowStyle?: ColumnStyle<T>\n headerCellClassName?: CellCls<T>\n headerCellStyle?: CellStyle<T>\n highlightCurrentRow?: boolean\n currentRowKey?: string | number\n emptyText?: string\n expandRowKeys?: Array<string>\n defaultExpandAll?: boolean\n defaultSort?: Sort\n tooltipEffect?: string\n tooltipOptions?: TableOverflowTooltipOptions\n spanMethod?: (data: {\n row: T\n rowIndex: number\n column: TableColumnCtx<T>\n columnIndex: number\n }) =>\n | number[]\n | {\n rowspan: number\n colspan: number\n }\n | undefined\n selectOnIndeterminate?: boolean\n indent?: number\n treeProps?: TreeProps\n lazy?: boolean\n load?: (row: T, treeNode: TreeNode, resolve: (data: T[]) => void) => void\n className?: string\n style?: StyleValue\n tableLayout?: Layout\n scrollbarAlwaysOn?: boolean\n flexible?: boolean\n showOverflowTooltip?: boolean | TableOverflowTooltipOptions\n tooltipFormatter?: TableOverflowTooltipFormatter<T>\n appendFilterPanelTo?: string\n scrollbarTabindex?: number | string\n nativeScrollbar?: boolean\n}\n\ntype TableTooltipData<T extends DefaultRow> = Parameters<\n TableOverflowTooltipFormatter<T>\n>[0]\ntype TableSortOrder = 'ascending' | 'descending'\n\ninterface Sort {\n prop: string\n order: TableSortOrder\n init?: any\n silent?: any\n}\n\ninterface Filter<T extends DefaultRow> {\n column: TableColumnCtx<T>\n values: string[]\n silent: any\n}\n\ninterface TreeNode {\n expanded?: boolean\n loading?: boolean\n noLazyChildren?: boolean\n indent?: number\n level?: number\n display?: boolean\n}\n\ninterface RenderRowData<T extends DefaultRow> {\n store: Store<T>\n _self: Table<T>\n column: TableColumnCtx<T>\n row: T\n $index: number\n cellIndex: number\n treeNode?: TreeNode\n expanded: boolean\n}\n\nexport default {\n /**\n * @description table data\n */\n data: {\n type: Array as PropType<any[]>,\n default: () => [],\n },\n /**\n * @description size of Table\n */\n size: useSizeProp,\n width: [String, Number],\n /**\n * @description table's height. By default it has an `auto` height. If its value is a number, the height is measured in pixels; if its value is a string, the value will be assigned to element's style.height, the height is affected by external styles\n */\n height: [String, Number],\n /**\n * @description table's max-height. The legal value is a number or the height in px\n */\n maxHeight: [String, Number],\n /**\n * @description whether width of column automatically fits its container\n */\n fit: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether Table is striped\n */\n stripe: Boolean,\n /**\n * @description whether Table has vertical border\n */\n border: Boolean,\n /**\n * @description key of row data, used for optimizing rendering. Required if `reserve-selection` is on or display tree data. When its type is String, multi-level access is supported, e.g. `user.info.id`, but `user.info[0].id` is not supported, in which case `Function` should be used\n */\n rowKey: [String, Function] as PropType<TableProps<any>['rowKey']>,\n /**\n * @description whether Table header is visible\n */\n showHeader: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether to display a summary row\n */\n showSummary: Boolean,\n /**\n * @description displayed text for the first column of summary row\n */\n sumText: String,\n /**\n * @description custom summary method\n */\n summaryMethod: Function as PropType<TableProps<any>['summaryMethod']>,\n /**\n * @description function that returns custom class names for a row, or a string assigning class names for every row\n */\n rowClassName: [String, Function] as PropType<TableProps<any>['rowClassName']>,\n /**\n * @description function that returns custom style for a row, or an object assigning custom style for every row\n */\n rowStyle: [Object, Function] as PropType<TableProps<any>['rowStyle']>,\n /**\n * @description function that returns custom class names for a cell, or a string assigning class names for every cell\n */\n cellClassName: [String, Function] as PropType<\n TableProps<any>['cellClassName']\n >,\n /**\n * @description function that returns custom style for a cell, or an object assigning custom style for every cell\n */\n cellStyle: [Object, Function] as PropType<TableProps<any>['cellStyle']>,\n /**\n * @description function that returns custom class names for a row in table header, or a string assigning class names for every row in table header\n */\n headerRowClassName: [String, Function] as PropType<\n TableProps<any>['headerRowClassName']\n >,\n /**\n * @description function that returns custom style for a row in table header, or an object assigning custom style for every row in table header\n */\n headerRowStyle: [Object, Function] as PropType<\n TableProps<any>['headerRowStyle']\n >,\n /**\n * @description function that returns custom class names for a cell in table header, or a string assigning class names for every cell in table header\n */\n headerCellClassName: [String, Function] as PropType<\n TableProps<any>['headerCellClassName']\n >,\n /**\n * @description function that returns custom style for a cell in table header, or an object assigning custom style for every cell in table header\n */\n headerCellStyle: [Object, Function] as PropType<\n TableProps<any>['headerCellStyle']\n >,\n /**\n * @description whether current row is highlighted\n */\n highlightCurrentRow: Boolean,\n /**\n * @description key of current row, a set only prop\n */\n currentRowKey: [String, Number],\n /**\n * @description displayed text when data is empty. You can customize this area with `#empty`\n */\n emptyText: String,\n /**\n * @description set expanded rows by this prop, prop's value is the keys of expand rows, you should set row-key before using this prop\n */\n expandRowKeys: Array as PropType<TableProps<any>['expandRowKeys']>,\n /**\n * @description whether expand all rows by default, works when the table has a column type=\"expand\" or contains tree structure data\n */\n defaultExpandAll: Boolean,\n /**\n * @description set the default sort column and order. property `prop` is used to set default sort column, property `order` is used to set default sort order\n */\n defaultSort: Object as PropType<TableProps<any>['defaultSort']>,\n /**\n * @description the `effect` of the overflow tooltip\n */\n tooltipEffect: String,\n /**\n * @description the options for the overflow tooltip, [see the following tooltip component](tooltip.html#attributes)\n */\n tooltipOptions: Object as PropType<TableProps<any>['tooltipOptions']>,\n /**\n * @description method that returns rowspan and colspan\n */\n spanMethod: Function as PropType<TableProps<any>['spanMethod']>,\n /**\n * @description controls the behavior of master checkbox in multi-select tables when only some rows are selected (but not all). If true, all rows will be selected, else deselected\n */\n selectOnIndeterminate: {\n type: Boolean,\n default: true,\n },\n /**\n * @description horizontal indentation of tree data\n */\n indent: {\n type: Number,\n default: 16,\n },\n /**\n * @description configuration for rendering nested data\n */\n treeProps: {\n type: Object as PropType<TableProps<any>['treeProps']>,\n default: () => {\n return {\n hasChildren: 'hasChildren',\n children: 'children',\n checkStrictly: false,\n }\n },\n },\n /**\n * @description whether to lazy loading data\n */\n lazy: Boolean,\n /**\n * @description method for loading child row data, only works when `lazy` is true\n */\n load: Function as PropType<TableProps<any>['load']>,\n style: {\n type: [String, Object, Array] as PropType<TableProps<any>['style']>,\n default: () => ({}),\n },\n className: {\n type: String,\n default: '',\n },\n /**\n * @description sets the algorithm used to lay out table cells, rows, and columns\n */\n tableLayout: {\n type: String as PropType<Layout>,\n default: 'fixed',\n },\n /**\n * @description always show scrollbar\n */\n scrollbarAlwaysOn: Boolean,\n /**\n * @description ensure main axis minimum-size doesn't follow the content\n */\n flexible: Boolean,\n /**\n * @description whether to hide extra content and show them in a tooltip when hovering on the cell.It will affect all the table columns\n */\n showOverflowTooltip: [Boolean, Object] as PropType<\n TableProps<any>['showOverflowTooltip']\n >,\n /**\n * @description function that formats cell tooltip content, works when `show-overflow-tooltip` is `true`\n */\n tooltipFormatter: Function as PropType<TableProps<any>['tooltipFormatter']>,\n appendFilterPanelTo: String,\n scrollbarTabindex: {\n type: [Number, String],\n default: undefined,\n },\n /**\n * @description whether to allow drag the last column\n */\n allowDragLastColumn: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether to preserve expanded row content in DOM when collapsed\n */\n preserveExpandedContent: Boolean,\n /**\n * @description whether to use native scrollbars\n */\n nativeScrollbar: Boolean,\n}\nexport type {\n SummaryMethod,\n Table,\n TableProps,\n TableRefs,\n ColumnCls,\n ColumnStyle,\n CellCls,\n CellStyle,\n DefaultRow,\n TreeNode,\n RenderRowData,\n Sort,\n Filter,\n TableColumnCtx,\n TreeProps,\n TableTooltipData,\n TableSortOrder,\n RenderExpanded,\n}\n"],"names":["useSizeProp"],"mappings":";;;;;;AACA,mBAAe;AACf,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,KAAK;AACf,IAAI,OAAO,EAAE,MAAM,EAAE;AACrB,GAAG;AACH,EAAE,IAAI,EAAEA,iBAAW;AACnB,EAAE,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AACzB,EAAE,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,EAAE,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC7B,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,MAAM,EAAE,OAAO;AACjB,EAAE,MAAM,EAAE,OAAO;AACjB,EAAE,MAAM,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;AAC5B,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,WAAW,EAAE,OAAO;AACtB,EAAE,OAAO,EAAE,MAAM;AACjB,EAAE,aAAa,EAAE,QAAQ;AACzB,EAAE,YAAY,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;AAClC,EAAE,QAAQ,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;AAC9B,EAAE,aAAa,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;AACnC,EAAE,SAAS,EAAE,CAAC,MAAM,EAAE,QAAQ,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AO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,iBAAiB,EAAE,OAAO;AAC5B,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,mBAAmB,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;AACxC,EAAE,gBAAgB,EAAE,QAAQ;AAC5B,EAAE,mBAAmB,EAAE,MAAM;AAC7B,EAAE,iBAAiB,EAAE;AACrB,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,mBAAmB,EAAE;AACvB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,uBAAuB,EAAE,OAAO;AAClC,EAAE,eAAe,EAAE,OAAO;AAC1B,CAAC;;;;"}
@@ -68,6 +68,9 @@ function useWatcher(owner, props_) {
68
68
  if (shared.hasOwn(props_, columnKey)) {
69
69
  vue.watch(() => props_[columnKey], (newVal) => {
70
70
  instance.columnConfig.value[key] = newVal;
71
+ if (key === "filters" || key === "filterMethod") {
72
+ instance.columnConfig.value["filterable"] = !!(instance.columnConfig.value["filters"] || instance.columnConfig.value["filterMethod"]);
73
+ }
71
74
  });
72
75
  }
73
76
  });
@@ -1 +1 @@
1
- {"version":3,"file":"watcher-helper.js","sources":["../../../../../../../packages/components/table/src/table-column/watcher-helper.ts"],"sourcesContent":["import { getCurrentInstance, watch } from 'vue'\nimport { hasOwn } from '@element-plus/utils'\nimport { parseMinWidth, parseWidth } from '../util'\n\nimport type { ComputedRef } from 'vue'\nimport type { DefaultRow } from '../table/defaults'\nimport type { TableColumn, TableColumnCtx, ValueOf } from './defaults'\n\nfunction getAllAliases(props: string[], aliases: Record<string, string>) {\n return props.reduce((prev, cur) => {\n prev[cur as keyof typeof prev] = cur\n return prev\n }, aliases)\n}\nfunction useWatcher<T extends DefaultRow>(\n owner: ComputedRef<any>,\n props_: Partial<TableColumnCtx<T>>\n) {\n const instance = getCurrentInstance() as TableColumn<T>\n const registerComplexWatchers = () => {\n const props = ['fixed']\n const aliases: Record<string, string> = {\n realWidth: 'width',\n realMinWidth: 'minWidth',\n }\n const allAliases = getAllAliases(props, aliases)\n Object.keys(allAliases).forEach((key) => {\n const columnKey = aliases[key]\n if (hasOwn(props_, columnKey)) {\n watch(\n () => props_[columnKey],\n (newVal) => {\n let value: ValueOf<TableColumnCtx<T>> = newVal\n if (columnKey === 'width' && key === 'realWidth') {\n value = parseWidth(newVal)\n }\n if (columnKey === 'minWidth' && key === 'realMinWidth') {\n value = parseMinWidth(newVal)\n }\n instance.columnConfig.value[columnKey as never] = value as never\n instance.columnConfig.value[key as never] = value as never\n const updateColumns = columnKey === 'fixed'\n owner.value.store.scheduleLayout(updateColumns)\n }\n )\n }\n })\n }\n const registerNormalWatchers = () => {\n const props = [\n 'label',\n 'filters',\n 'filterMultiple',\n 'filteredValue',\n 'sortable',\n 'index',\n 'formatter',\n 'className',\n 'labelClassName',\n 'filterClassName',\n 'showOverflowTooltip',\n 'tooltipFormatter',\n 'resizable',\n ]\n const parentProps = ['showOverflowTooltip']\n const aliases: Record<string, string> = {\n property: 'prop',\n align: 'realAlign',\n headerAlign: 'realHeaderAlign',\n }\n const allAliases = getAllAliases(props, aliases)\n Object.keys(allAliases).forEach((key) => {\n const columnKey = aliases[key]\n if (hasOwn(props_, columnKey)) {\n watch(\n () => props_[columnKey],\n (newVal) => {\n instance.columnConfig.value[key as never] = newVal\n }\n )\n }\n })\n parentProps.forEach((key) => {\n if (hasOwn(owner.value.props, key)) {\n watch(\n () => owner.value.props[key],\n (newVal) => {\n instance.columnConfig.value[key] = newVal as never\n }\n )\n }\n })\n }\n\n return {\n registerComplexWatchers,\n registerNormalWatchers,\n }\n}\n\nexport default useWatcher\n"],"names":["getCurrentInstance","hasOwn","wat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MAAM,CAAC,SAAS,CAAC,EAAE,CAAC,MAAM,KAAK;AACnD,UAAU,QAAQ,CAAC,YAAY,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC;AACpD,SAAS,CAAC,CAAC;AACX,OAAO;AACP,KAAK,CAAC,CAAC;AACP,IAAI,WAAW,CAAC,OAAO,CAAC,CAAC,GAAG,KAAK;AACjC,MAAM,IAAID,aAAM,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE;AAC1C,QAAQC,SAAK,CAAC,MAAM,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,MAAM,KAAK;AACxD,UAAU,QAAQ,CAAC,YAAY,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC;AACpD,SAAS,CAAC,CAAC;AACX,OAAO;AACP,KAAK,CAAC,CAAC;AACP,GAAG,CAAC;AACJ,EAAE,OAAO;AACT,IAAI,uBAAuB;AAC3B,IAAI,sBAAsB;AAC1B,GAAG,CAAC;AACJ;;;;"}
1
+ {"version":3,"file":"watcher-helper.js","sources":["../../../../../../../packages/components/table/src/table-column/watcher-helper.ts"],"sourcesContent":["import { getCurrentInstance, watch } from 'vue'\nimport { hasOwn } from '@element-plus/utils'\nimport { parseMinWidth, parseWidth } from '../util'\n\nimport type { ComputedRef } from 'vue'\nimport type { DefaultRow } from '../table/defaults'\nimport type { TableColumn, TableColumnCtx, ValueOf } from './defaults'\n\nfunction getAllAliases(props: string[], aliases: Record<string, string>) {\n return props.reduce((prev, cur) => {\n prev[cur as keyof typeof prev] = cur\n return prev\n }, aliases)\n}\nfunction useWatcher<T extends DefaultRow>(\n owner: ComputedRef<any>,\n props_: Partial<TableColumnCtx<T>>\n) {\n const instance = getCurrentInstance() as TableColumn<T>\n const registerComplexWatchers = () => {\n const props = ['fixed']\n const aliases: Record<string, string> = {\n realWidth: 'width',\n realMinWidth: 'minWidth',\n }\n const allAliases = getAllAliases(props, aliases)\n Object.keys(allAliases).forEach((key) => {\n const columnKey = aliases[key]\n if (hasOwn(props_, columnKey)) {\n watch(\n () => props_[columnKey],\n (newVal) => {\n let value: ValueOf<TableColumnCtx<T>> = newVal\n if (columnKey === 'width' && key === 'realWidth') {\n value = parseWidth(newVal)\n }\n if (columnKey === 'minWidth' && key === 'realMinWidth') {\n value = parseMinWidth(newVal)\n }\n instance.columnConfig.value[columnKey as never] = value as never\n instance.columnConfig.value[key as never] = value as never\n const updateColumns = columnKey === 'fixed'\n owner.value.store.scheduleLayout(updateColumns)\n }\n )\n }\n })\n }\n const registerNormalWatchers = () => {\n const props = [\n 'label',\n 'filters',\n 'filterMultiple',\n 'filteredValue',\n 'sortable',\n 'index',\n 'formatter',\n 'className',\n 'labelClassName',\n 'filterClassName',\n 'showOverflowTooltip',\n 'tooltipFormatter',\n 'resizable',\n ]\n const parentProps = ['showOverflowTooltip']\n const aliases: Record<string, string> = {\n property: 'prop',\n align: 'realAlign',\n headerAlign: 'realHeaderAlign',\n }\n const allAliases = getAllAliases(props, aliases)\n Object.keys(allAliases).forEach((key) => {\n const columnKey = aliases[key]\n if (hasOwn(props_, columnKey)) {\n watch(\n () => props_[columnKey],\n (newVal) => {\n instance.columnConfig.value[key as never] = newVal\n if (key === 'filters' || key === 'filterMethod') {\n instance.columnConfig.value['filterable'] = !!(\n instance.columnConfig.value['filters'] ||\n instance.columnConfig.value['filterMethod']\n )\n }\n }\n )\n }\n })\n parentProps.forEach((key) => {\n if (hasOwn(owner.value.props, key)) {\n watch(\n () => owner.value.props[key],\n (newVal) => {\n instance.columnConfig.value[key] = newVal as never\n }\n )\n }\n })\n }\n\n return {\n registerComplexWatchers,\n registerNormalWatchers,\n }\n}\n\nexport default useWatcher\n"],"names":["getCurrentInstance","hasOwn","watch","parseWidth","parseMinWidth"],"mappings":";;;;;;;;AAGA,SAAS,aAAa,CAAC,KAAK,EAAE,OAAO,EAAE;AACvC,EAAE,OAAO,KAAK,CAAC,MAAM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M,CAAC;AACpD,UAAU,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,cAAc,EAAE;AAC3D,YAAY,QAAQ,CAAC,YAAY,CAAC,KAAK,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE,QAAQ,CAAC,YAAY,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,QAAQ,CAAC,YAAY,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC;AAClJ,WAAW;AACX,SAAS,CAAC,CAAC;AACX,OAAO;AACP,KAAK,CAAC,CAAC;AACP,IAAI,WAAW,CAAC,OAAO,CAAC,CAAC,GAAG,KAAK;AACjC,MAAM,IAAID,aAAM,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE;AAC1C,QAAQC,SAAK,CAAC,MAAM,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,MAAM,KAAK;AACxD,UAAU,QAAQ,CAAC,YAAY,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC;AACpD,SAAS,CAAC,CAAC;AACX,OAAO;AACP,KAAK,CAAC,CAAC;AACP,GAAG,CAAC;AACJ,EAAE,OAAO;AACT,IAAI,uBAAuB;AAC3B,IAAI,sBAAsB;AAC1B,GAAG,CAAC;AACJ;;;;"}
@@ -64,7 +64,7 @@ declare const _default: import("vue").DefineComponent<{
64
64
  lazy: BooleanConstructor;
65
65
  load: import("vue").PropType<import("./table/defaults").TableProps<any>["load"]>;
66
66
  style: {
67
- type: import("vue").PropType<import("vue").CSSProperties>;
67
+ type: import("vue").PropType<import("./table/defaults").TableProps<any>["style"]>;
68
68
  default: () => {};
69
69
  };
70
70
  className: {
@@ -797,7 +797,7 @@ declare const _default: import("vue").DefineComponent<{
797
797
  lazy: BooleanConstructor;
798
798
  load: import("vue").PropType<import("./table/defaults").TableProps<any>["load"]>;
799
799
  style: {
800
- type: import("vue").PropType<import("vue").CSSProperties>;
800
+ type: import("vue").PropType<import("./table/defaults").TableProps<any>["style"]>;
801
801
  default: () => {};
802
802
  };
803
803
  className: {
@@ -845,7 +845,7 @@ declare const _default: import("vue").DefineComponent<{
845
845
  "onRow-dblclick"?: ((...args: any[]) => any) | undefined;
846
846
  }, {
847
847
  data: any[];
848
- style: import("vue").CSSProperties;
848
+ style: import("vue").StyleValue | undefined;
849
849
  tableLayout: "fixed" | "auto";
850
850
  border: boolean;
851
851
  className: string;
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var tabs = require('./src/tabs.js');
6
6
  var tabPane$1 = require('./src/tab-pane2.js');
7
- var tabBar = require('./src/tab-bar2.js');
7
+ var tabBar = require('./src/tab-bar.js');
8
8
  var tabNav = require('./src/tab-nav.js');
9
9
  var tabPane = require('./src/tab-pane.js');
10
10
  var constants = require('./src/constants.js');