element-plus 2.2.27 → 2.2.28

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 (386) hide show
  1. package/attributes.json +1 -1
  2. package/dist/index.full.js +622 -539
  3. package/dist/index.full.min.js +14 -14
  4. package/dist/index.full.min.js.map +1 -1
  5. package/dist/index.full.min.mjs +17 -17
  6. package/dist/index.full.min.mjs.map +1 -1
  7. package/dist/index.full.mjs +621 -541
  8. package/dist/locale/af.js +1 -1
  9. package/dist/locale/af.min.js +1 -1
  10. package/dist/locale/af.min.mjs +1 -1
  11. package/dist/locale/af.mjs +1 -1
  12. package/dist/locale/ar.js +1 -1
  13. package/dist/locale/ar.min.js +1 -1
  14. package/dist/locale/ar.min.mjs +1 -1
  15. package/dist/locale/ar.mjs +1 -1
  16. package/dist/locale/az.js +1 -1
  17. package/dist/locale/az.min.js +1 -1
  18. package/dist/locale/az.min.mjs +1 -1
  19. package/dist/locale/az.mjs +1 -1
  20. package/dist/locale/bg.js +1 -1
  21. package/dist/locale/bg.min.js +1 -1
  22. package/dist/locale/bg.min.mjs +1 -1
  23. package/dist/locale/bg.mjs +1 -1
  24. package/dist/locale/bn.js +1 -1
  25. package/dist/locale/bn.min.js +1 -1
  26. package/dist/locale/bn.min.mjs +1 -1
  27. package/dist/locale/bn.mjs +1 -1
  28. package/dist/locale/ca.js +1 -1
  29. package/dist/locale/ca.min.js +1 -1
  30. package/dist/locale/ca.min.mjs +1 -1
  31. package/dist/locale/ca.mjs +1 -1
  32. package/dist/locale/ckb.js +1 -1
  33. package/dist/locale/ckb.min.js +1 -1
  34. package/dist/locale/ckb.min.mjs +1 -1
  35. package/dist/locale/ckb.mjs +1 -1
  36. package/dist/locale/cs.js +1 -1
  37. package/dist/locale/cs.min.js +1 -1
  38. package/dist/locale/cs.min.mjs +1 -1
  39. package/dist/locale/cs.mjs +1 -1
  40. package/dist/locale/da.js +1 -1
  41. package/dist/locale/da.min.js +1 -1
  42. package/dist/locale/da.min.mjs +1 -1
  43. package/dist/locale/da.mjs +1 -1
  44. package/dist/locale/de.js +1 -1
  45. package/dist/locale/de.min.js +1 -1
  46. package/dist/locale/de.min.mjs +1 -1
  47. package/dist/locale/de.mjs +1 -1
  48. package/dist/locale/el.js +1 -1
  49. package/dist/locale/el.min.js +1 -1
  50. package/dist/locale/el.min.mjs +1 -1
  51. package/dist/locale/el.mjs +1 -1
  52. package/dist/locale/en.js +1 -1
  53. package/dist/locale/en.min.js +1 -1
  54. package/dist/locale/en.min.mjs +1 -1
  55. package/dist/locale/en.mjs +1 -1
  56. package/dist/locale/eo.js +1 -1
  57. package/dist/locale/eo.min.js +1 -1
  58. package/dist/locale/eo.min.mjs +1 -1
  59. package/dist/locale/eo.mjs +1 -1
  60. package/dist/locale/es.js +1 -1
  61. package/dist/locale/es.min.js +1 -1
  62. package/dist/locale/es.min.mjs +1 -1
  63. package/dist/locale/es.mjs +1 -1
  64. package/dist/locale/et.js +1 -1
  65. package/dist/locale/et.min.js +1 -1
  66. package/dist/locale/et.min.mjs +1 -1
  67. package/dist/locale/et.mjs +1 -1
  68. package/dist/locale/eu.js +1 -1
  69. package/dist/locale/eu.min.js +1 -1
  70. package/dist/locale/eu.min.mjs +1 -1
  71. package/dist/locale/eu.mjs +1 -1
  72. package/dist/locale/fa.js +1 -1
  73. package/dist/locale/fa.min.js +1 -1
  74. package/dist/locale/fa.min.mjs +1 -1
  75. package/dist/locale/fa.mjs +1 -1
  76. package/dist/locale/fi.js +1 -1
  77. package/dist/locale/fi.min.js +1 -1
  78. package/dist/locale/fi.min.mjs +1 -1
  79. package/dist/locale/fi.mjs +1 -1
  80. package/dist/locale/fr.js +1 -1
  81. package/dist/locale/fr.min.js +1 -1
  82. package/dist/locale/fr.min.mjs +1 -1
  83. package/dist/locale/fr.mjs +1 -1
  84. package/dist/locale/he.js +1 -1
  85. package/dist/locale/he.min.js +1 -1
  86. package/dist/locale/he.min.mjs +1 -1
  87. package/dist/locale/he.mjs +1 -1
  88. package/dist/locale/hr.js +1 -1
  89. package/dist/locale/hr.min.js +1 -1
  90. package/dist/locale/hr.min.mjs +1 -1
  91. package/dist/locale/hr.mjs +1 -1
  92. package/dist/locale/hu.js +1 -1
  93. package/dist/locale/hu.min.js +1 -1
  94. package/dist/locale/hu.min.mjs +1 -1
  95. package/dist/locale/hu.mjs +1 -1
  96. package/dist/locale/hy-am.js +1 -1
  97. package/dist/locale/hy-am.min.js +1 -1
  98. package/dist/locale/hy-am.min.mjs +1 -1
  99. package/dist/locale/hy-am.mjs +1 -1
  100. package/dist/locale/id.js +1 -1
  101. package/dist/locale/id.min.js +1 -1
  102. package/dist/locale/id.min.mjs +1 -1
  103. package/dist/locale/id.mjs +1 -1
  104. package/dist/locale/it.js +1 -1
  105. package/dist/locale/it.min.js +1 -1
  106. package/dist/locale/it.min.mjs +1 -1
  107. package/dist/locale/it.mjs +1 -1
  108. package/dist/locale/ja.js +1 -1
  109. package/dist/locale/ja.min.js +1 -1
  110. package/dist/locale/ja.min.mjs +1 -1
  111. package/dist/locale/ja.mjs +1 -1
  112. package/dist/locale/kk.js +1 -1
  113. package/dist/locale/kk.min.js +1 -1
  114. package/dist/locale/kk.min.mjs +1 -1
  115. package/dist/locale/kk.mjs +1 -1
  116. package/dist/locale/km.js +1 -1
  117. package/dist/locale/km.min.js +1 -1
  118. package/dist/locale/km.min.mjs +1 -1
  119. package/dist/locale/km.mjs +1 -1
  120. package/dist/locale/ko.js +1 -1
  121. package/dist/locale/ko.min.js +1 -1
  122. package/dist/locale/ko.min.mjs +1 -1
  123. package/dist/locale/ko.mjs +1 -1
  124. package/dist/locale/ku.js +1 -1
  125. package/dist/locale/ku.min.js +1 -1
  126. package/dist/locale/ku.min.mjs +1 -1
  127. package/dist/locale/ku.mjs +1 -1
  128. package/dist/locale/ky.js +1 -1
  129. package/dist/locale/ky.min.js +1 -1
  130. package/dist/locale/ky.min.mjs +1 -1
  131. package/dist/locale/ky.mjs +1 -1
  132. package/dist/locale/lt.js +1 -1
  133. package/dist/locale/lt.min.js +1 -1
  134. package/dist/locale/lt.min.mjs +1 -1
  135. package/dist/locale/lt.mjs +1 -1
  136. package/dist/locale/lv.js +1 -1
  137. package/dist/locale/lv.min.js +1 -1
  138. package/dist/locale/lv.min.mjs +1 -1
  139. package/dist/locale/lv.mjs +1 -1
  140. package/dist/locale/mg.js +1 -1
  141. package/dist/locale/mg.min.js +1 -1
  142. package/dist/locale/mg.min.mjs +1 -1
  143. package/dist/locale/mg.mjs +1 -1
  144. package/dist/locale/mn.js +1 -1
  145. package/dist/locale/mn.min.js +1 -1
  146. package/dist/locale/mn.min.mjs +1 -1
  147. package/dist/locale/mn.mjs +1 -1
  148. package/dist/locale/nb-no.js +1 -1
  149. package/dist/locale/nb-no.min.js +1 -1
  150. package/dist/locale/nb-no.min.mjs +1 -1
  151. package/dist/locale/nb-no.mjs +1 -1
  152. package/dist/locale/nl.js +1 -1
  153. package/dist/locale/nl.min.js +1 -1
  154. package/dist/locale/nl.min.mjs +1 -1
  155. package/dist/locale/nl.mjs +1 -1
  156. package/dist/locale/pa.js +1 -1
  157. package/dist/locale/pa.min.js +1 -1
  158. package/dist/locale/pa.min.mjs +1 -1
  159. package/dist/locale/pa.mjs +1 -1
  160. package/dist/locale/pl.js +1 -1
  161. package/dist/locale/pl.min.js +1 -1
  162. package/dist/locale/pl.min.mjs +1 -1
  163. package/dist/locale/pl.mjs +1 -1
  164. package/dist/locale/pt-br.js +1 -1
  165. package/dist/locale/pt-br.min.js +1 -1
  166. package/dist/locale/pt-br.min.mjs +1 -1
  167. package/dist/locale/pt-br.mjs +1 -1
  168. package/dist/locale/pt.js +1 -1
  169. package/dist/locale/pt.min.js +1 -1
  170. package/dist/locale/pt.min.mjs +1 -1
  171. package/dist/locale/pt.mjs +1 -1
  172. package/dist/locale/ro.js +1 -1
  173. package/dist/locale/ro.min.js +1 -1
  174. package/dist/locale/ro.min.mjs +1 -1
  175. package/dist/locale/ro.mjs +1 -1
  176. package/dist/locale/ru.js +1 -1
  177. package/dist/locale/ru.min.js +1 -1
  178. package/dist/locale/ru.min.mjs +1 -1
  179. package/dist/locale/ru.mjs +1 -1
  180. package/dist/locale/sk.js +1 -1
  181. package/dist/locale/sk.min.js +1 -1
  182. package/dist/locale/sk.min.mjs +1 -1
  183. package/dist/locale/sk.mjs +1 -1
  184. package/dist/locale/sl.js +1 -1
  185. package/dist/locale/sl.min.js +1 -1
  186. package/dist/locale/sl.min.mjs +1 -1
  187. package/dist/locale/sl.mjs +1 -1
  188. package/dist/locale/sr.js +1 -1
  189. package/dist/locale/sr.min.js +1 -1
  190. package/dist/locale/sr.min.mjs +1 -1
  191. package/dist/locale/sr.mjs +1 -1
  192. package/dist/locale/sv.js +1 -1
  193. package/dist/locale/sv.min.js +1 -1
  194. package/dist/locale/sv.min.mjs +1 -1
  195. package/dist/locale/sv.mjs +1 -1
  196. package/dist/locale/ta.js +1 -1
  197. package/dist/locale/ta.min.js +1 -1
  198. package/dist/locale/ta.min.mjs +1 -1
  199. package/dist/locale/ta.mjs +1 -1
  200. package/dist/locale/th.js +1 -1
  201. package/dist/locale/th.min.js +1 -1
  202. package/dist/locale/th.min.mjs +1 -1
  203. package/dist/locale/th.mjs +1 -1
  204. package/dist/locale/tk.js +1 -1
  205. package/dist/locale/tk.min.js +1 -1
  206. package/dist/locale/tk.min.mjs +1 -1
  207. package/dist/locale/tk.mjs +1 -1
  208. package/dist/locale/tr.js +1 -1
  209. package/dist/locale/tr.min.js +1 -1
  210. package/dist/locale/tr.min.mjs +1 -1
  211. package/dist/locale/tr.mjs +1 -1
  212. package/dist/locale/ug-cn.js +1 -1
  213. package/dist/locale/ug-cn.min.js +1 -1
  214. package/dist/locale/ug-cn.min.mjs +1 -1
  215. package/dist/locale/ug-cn.mjs +1 -1
  216. package/dist/locale/uk.js +1 -1
  217. package/dist/locale/uk.min.js +1 -1
  218. package/dist/locale/uk.min.mjs +1 -1
  219. package/dist/locale/uk.mjs +1 -1
  220. package/dist/locale/uz-uz.js +1 -1
  221. package/dist/locale/uz-uz.min.js +1 -1
  222. package/dist/locale/uz-uz.min.mjs +1 -1
  223. package/dist/locale/uz-uz.mjs +1 -1
  224. package/dist/locale/vi.js +1 -1
  225. package/dist/locale/vi.min.js +1 -1
  226. package/dist/locale/vi.min.mjs +1 -1
  227. package/dist/locale/vi.mjs +1 -1
  228. package/dist/locale/zh-cn.js +1 -1
  229. package/dist/locale/zh-cn.min.js +1 -1
  230. package/dist/locale/zh-cn.min.mjs +1 -1
  231. package/dist/locale/zh-cn.mjs +1 -1
  232. package/dist/locale/zh-tw.js +1 -1
  233. package/dist/locale/zh-tw.min.js +1 -1
  234. package/dist/locale/zh-tw.min.mjs +1 -1
  235. package/dist/locale/zh-tw.mjs +1 -1
  236. package/es/component.mjs +2 -1
  237. package/es/component.mjs.map +1 -1
  238. package/es/components/cascader/index.d.ts +12039 -2895
  239. package/es/components/cascader/index.mjs +3 -1
  240. package/es/components/cascader/index.mjs.map +1 -1
  241. package/es/components/cascader/src/cascader.d.ts +64 -0
  242. package/es/components/cascader/src/cascader.mjs +69 -0
  243. package/es/components/cascader/src/cascader.mjs.map +1 -0
  244. package/{lib/components/cascader/src/index.vue.d.ts → es/components/cascader/src/cascader.vue.d.ts} +5121 -550
  245. package/es/components/cascader/src/cascader2.mjs +611 -0
  246. package/es/components/cascader/src/cascader2.mjs.map +1 -0
  247. package/es/components/cascader/src/instances.d.ts +2 -0
  248. package/es/components/cascader/src/instances.mjs +2 -0
  249. package/es/components/cascader/src/instances.mjs.map +1 -0
  250. package/es/components/cascader-panel/index.d.ts +28 -32
  251. package/es/components/cascader-panel/src/config.d.ts +7 -9
  252. package/es/components/cascader-panel/src/config.mjs +9 -5
  253. package/es/components/cascader-panel/src/config.mjs.map +1 -1
  254. package/es/components/cascader-panel/src/index.vue.d.ts +14 -16
  255. package/es/components/index.mjs +1 -0
  256. package/es/components/index.mjs.map +1 -1
  257. package/es/components/input-number/index.d.ts +4 -4
  258. package/es/components/input-number/src/input-number.d.ts +1 -1
  259. package/es/components/input-number/src/input-number.mjs +1 -1
  260. package/es/components/input-number/src/input-number.mjs.map +1 -1
  261. package/es/components/input-number/src/input-number.vue.d.ts +4 -4
  262. package/es/components/pagination/src/components/sizes.vue.d.ts +1 -1
  263. package/es/components/select/index.d.ts +1 -1
  264. package/es/components/select/src/select.vue.d.ts +1 -1
  265. package/es/components/select-v2/index.d.ts +2 -2
  266. package/es/components/select-v2/src/select.vue.d.ts +1 -1
  267. package/es/components/slider/index.d.ts +4 -4
  268. package/es/components/slider/src/slider.vue.d.ts +4 -4
  269. package/es/components/table/index.d.ts +6 -12
  270. package/es/components/table/src/table/defaults.d.ts +3 -0
  271. package/es/components/table/src/table/defaults.mjs +1 -0
  272. package/es/components/table/src/table/defaults.mjs.map +1 -1
  273. package/es/components/table/src/table-body/defaults.d.ts +6 -1
  274. package/es/components/table/src/table-body/defaults.mjs +3 -0
  275. package/es/components/table/src/table-body/defaults.mjs.map +1 -1
  276. package/es/components/table/src/table-body/events-helper.d.ts +2 -1
  277. package/es/components/table/src/table-body/events-helper.mjs +5 -5
  278. package/es/components/table/src/table-body/events-helper.mjs.map +1 -1
  279. package/es/components/table/src/table-body/index.d.ts +6 -0
  280. package/es/components/table/src/table-body/render-helper.mjs +6 -2
  281. package/es/components/table/src/table-body/render-helper.mjs.map +1 -1
  282. package/es/components/table/src/table-column/defaults.d.ts +3 -4
  283. package/es/components/table/src/table-column/defaults.mjs +1 -2
  284. package/es/components/table/src/table-column/defaults.mjs.map +1 -1
  285. package/es/components/table/src/table-column/index.d.ts +2 -6
  286. package/es/components/table/src/table-column/index.mjs +1 -1
  287. package/es/components/table/src/table-column/index.mjs.map +1 -1
  288. package/es/components/table/src/table.mjs +2 -1
  289. package/es/components/table/src/table.mjs.map +1 -1
  290. package/es/components/table/src/table.vue.d.ts +2 -0
  291. package/es/components/table/src/util.d.ts +3 -2
  292. package/es/components/table/src/util.mjs +58 -34
  293. package/es/components/table/src/util.mjs.map +1 -1
  294. package/es/components/time-picker/src/common/picker.vue.d.ts +2 -2
  295. package/es/components/time-select/index.d.ts +4 -4
  296. package/es/components/time-select/src/time-select.vue.d.ts +2 -2
  297. package/es/hooks/index.d.ts +1 -0
  298. package/es/hooks/index.mjs +1 -0
  299. package/es/hooks/index.mjs.map +1 -1
  300. package/es/hooks/use-popper/index.d.ts +20 -0
  301. package/es/hooks/use-popper/index.mjs +95 -0
  302. package/es/hooks/use-popper/index.mjs.map +1 -0
  303. package/es/index.mjs +2 -0
  304. package/es/index.mjs.map +1 -1
  305. package/es/version.d.ts +1 -1
  306. package/es/version.mjs +1 -1
  307. package/es/version.mjs.map +1 -1
  308. package/lib/component.js +1 -0
  309. package/lib/component.js.map +1 -1
  310. package/lib/components/cascader/index.d.ts +12039 -2895
  311. package/lib/components/cascader/index.js +8 -4
  312. package/lib/components/cascader/index.js.map +1 -1
  313. package/lib/components/cascader/src/cascader.d.ts +64 -0
  314. package/lib/components/cascader/src/cascader.js +74 -0
  315. package/lib/components/cascader/src/cascader.js.map +1 -0
  316. package/{es/components/cascader/src/index.vue.d.ts → lib/components/cascader/src/cascader.vue.d.ts} +5121 -550
  317. package/lib/components/cascader/src/cascader2.js +615 -0
  318. package/lib/components/cascader/src/cascader2.js.map +1 -0
  319. package/lib/components/cascader/src/instances.d.ts +2 -0
  320. package/lib/components/cascader/src/instances.js +3 -0
  321. package/lib/components/cascader/src/instances.js.map +1 -0
  322. package/lib/components/cascader-panel/index.d.ts +28 -32
  323. package/lib/components/cascader-panel/src/config.d.ts +7 -9
  324. package/lib/components/cascader-panel/src/config.js +9 -5
  325. package/lib/components/cascader-panel/src/config.js.map +1 -1
  326. package/lib/components/cascader-panel/src/index.vue.d.ts +14 -16
  327. package/lib/components/index.js +3 -0
  328. package/lib/components/index.js.map +1 -1
  329. package/lib/components/input-number/index.d.ts +4 -4
  330. package/lib/components/input-number/src/input-number.d.ts +1 -1
  331. package/lib/components/input-number/src/input-number.js +1 -1
  332. package/lib/components/input-number/src/input-number.js.map +1 -1
  333. package/lib/components/input-number/src/input-number.vue.d.ts +4 -4
  334. package/lib/components/pagination/src/components/sizes.vue.d.ts +1 -1
  335. package/lib/components/select/index.d.ts +1 -1
  336. package/lib/components/select/src/select.vue.d.ts +1 -1
  337. package/lib/components/select-v2/index.d.ts +2 -2
  338. package/lib/components/select-v2/src/select.vue.d.ts +1 -1
  339. package/lib/components/slider/index.d.ts +4 -4
  340. package/lib/components/slider/src/slider.vue.d.ts +4 -4
  341. package/lib/components/table/index.d.ts +6 -12
  342. package/lib/components/table/src/table/defaults.d.ts +3 -0
  343. package/lib/components/table/src/table/defaults.js +1 -0
  344. package/lib/components/table/src/table/defaults.js.map +1 -1
  345. package/lib/components/table/src/table-body/defaults.d.ts +6 -1
  346. package/lib/components/table/src/table-body/defaults.js +3 -0
  347. package/lib/components/table/src/table-body/defaults.js.map +1 -1
  348. package/lib/components/table/src/table-body/events-helper.d.ts +2 -1
  349. package/lib/components/table/src/table-body/events-helper.js +5 -5
  350. package/lib/components/table/src/table-body/events-helper.js.map +1 -1
  351. package/lib/components/table/src/table-body/index.d.ts +6 -0
  352. package/lib/components/table/src/table-body/render-helper.js +6 -2
  353. package/lib/components/table/src/table-body/render-helper.js.map +1 -1
  354. package/lib/components/table/src/table-column/defaults.d.ts +3 -4
  355. package/lib/components/table/src/table-column/defaults.js +1 -2
  356. package/lib/components/table/src/table-column/defaults.js.map +1 -1
  357. package/lib/components/table/src/table-column/index.d.ts +2 -6
  358. package/lib/components/table/src/table-column/index.js +1 -1
  359. package/lib/components/table/src/table-column/index.js.map +1 -1
  360. package/lib/components/table/src/table.js +2 -1
  361. package/lib/components/table/src/table.js.map +1 -1
  362. package/lib/components/table/src/table.vue.d.ts +2 -0
  363. package/lib/components/table/src/util.d.ts +3 -2
  364. package/lib/components/table/src/util.js +59 -35
  365. package/lib/components/table/src/util.js.map +1 -1
  366. package/lib/components/time-picker/src/common/picker.vue.d.ts +2 -2
  367. package/lib/components/time-select/index.d.ts +4 -4
  368. package/lib/components/time-select/src/time-select.vue.d.ts +2 -2
  369. package/lib/hooks/index.d.ts +1 -0
  370. package/lib/hooks/index.js +47 -45
  371. package/lib/hooks/index.js.map +1 -1
  372. package/lib/hooks/use-popper/index.d.ts +20 -0
  373. package/lib/hooks/use-popper/index.js +99 -0
  374. package/lib/hooks/use-popper/index.js.map +1 -0
  375. package/lib/index.js +50 -45
  376. package/lib/index.js.map +1 -1
  377. package/lib/version.d.ts +1 -1
  378. package/lib/version.js +1 -1
  379. package/lib/version.js.map +1 -1
  380. package/package.json +2 -2
  381. package/tags.json +1 -1
  382. package/web-types.json +1 -1
  383. package/es/components/cascader/src/index.mjs +0 -708
  384. package/es/components/cascader/src/index.mjs.map +0 -1
  385. package/lib/components/cascader/src/index.js +0 -712
  386. package/lib/components/cascader/src/index.js.map +0 -1
@@ -0,0 +1,611 @@
1
+ import { defineComponent, useAttrs, ref, computed, nextTick, watch, onMounted, openBlock, createBlock, unref, withCtx, withDirectives, createElementBlock, normalizeClass, normalizeStyle, createVNode, withModifiers, Fragment, renderList, toDisplayString, createElementVNode, withKeys, vModelText, createCommentVNode, isRef, vShow, renderSlot } from 'vue';
2
+ import { isPromise } from '@vue/shared';
3
+ import { cloneDeep, debounce } from 'lodash-unified';
4
+ import { isClient, useCssVar, useResizeObserver } from '@vueuse/core';
5
+ import _CascaderPanel from '../../cascader-panel/index.mjs';
6
+ import { ElInput } from '../../input/index.mjs';
7
+ import { ElTooltip } from '../../tooltip/index.mjs';
8
+ import { ElScrollbar } from '../../scrollbar/index.mjs';
9
+ import { ElTag } from '../../tag/index.mjs';
10
+ import { ElIcon } from '../../icon/index.mjs';
11
+ import '../../../directives/index.mjs';
12
+ import '../../../hooks/index.mjs';
13
+ import '../../../utils/index.mjs';
14
+ import '../../../constants/index.mjs';
15
+ import { CircleClose, ArrowDown, Check } from '@element-plus/icons-vue';
16
+ import { cascaderProps, cascaderEmits } from './cascader.mjs';
17
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
18
+ import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
19
+ import { useLocale } from '../../../hooks/use-locale/index.mjs';
20
+ import { useFormItem } from '../../../hooks/use-form-item/index.mjs';
21
+ import { useSize } from '../../../hooks/use-common-props/index.mjs';
22
+ import { UPDATE_MODEL_EVENT, CHANGE_EVENT } from '../../../constants/event.mjs';
23
+ import { debugWarn } from '../../../utils/error.mjs';
24
+ import { isKorean } from '../../../utils/i18n.mjs';
25
+ import { EVENT_CODE } from '../../../constants/aria.mjs';
26
+ import { focusNode, getSibling } from '../../../utils/dom/aria.mjs';
27
+ import ClickOutside from '../../../directives/click-outside/index.mjs';
28
+
29
+ const _hoisted_1 = { key: 0 };
30
+ const _hoisted_2 = ["placeholder", "onKeydown"];
31
+ const _hoisted_3 = ["onClick"];
32
+ const COMPONENT_NAME = "ElCascader";
33
+ const __default__ = defineComponent({
34
+ name: COMPONENT_NAME
35
+ });
36
+ const _sfc_main = /* @__PURE__ */ defineComponent({
37
+ ...__default__,
38
+ props: cascaderProps,
39
+ emits: cascaderEmits,
40
+ setup(__props, { expose, emit }) {
41
+ const props = __props;
42
+ const popperOptions = {
43
+ modifiers: [
44
+ {
45
+ name: "arrowPosition",
46
+ enabled: true,
47
+ phase: "main",
48
+ fn: ({ state }) => {
49
+ const { modifiersData, placement } = state;
50
+ if (["right", "left", "bottom", "top"].includes(placement))
51
+ return;
52
+ modifiersData.arrow.x = 35;
53
+ },
54
+ requires: ["arrow"]
55
+ }
56
+ ]
57
+ };
58
+ const attrs = useAttrs();
59
+ let inputInitialHeight = 0;
60
+ let pressDeleteCount = 0;
61
+ const nsCascader = useNamespace("cascader");
62
+ const nsInput = useNamespace("input");
63
+ const { t } = useLocale();
64
+ const { form, formItem } = useFormItem();
65
+ const tooltipRef = ref(null);
66
+ const input = ref(null);
67
+ const tagWrapper = ref(null);
68
+ const panel = ref(null);
69
+ const suggestionPanel = ref(null);
70
+ const popperVisible = ref(false);
71
+ const inputHover = ref(false);
72
+ const filtering = ref(false);
73
+ const inputValue = ref("");
74
+ const searchInputValue = ref("");
75
+ const presentTags = ref([]);
76
+ const allPresentTags = ref([]);
77
+ const suggestions = ref([]);
78
+ const isOnComposition = ref(false);
79
+ const cascaderStyle = computed(() => {
80
+ return attrs.style;
81
+ });
82
+ const isDisabled = computed(() => props.disabled || (form == null ? void 0 : form.disabled));
83
+ const inputPlaceholder = computed(() => props.placeholder || t("el.cascader.placeholder"));
84
+ const currentPlaceholder = computed(() => searchInputValue.value || presentTags.value.length > 0 || isOnComposition.value ? "" : inputPlaceholder.value);
85
+ const realSize = useSize();
86
+ const tagSize = computed(() => ["small"].includes(realSize.value) ? "small" : "default");
87
+ const multiple = computed(() => !!props.props.multiple);
88
+ const readonly = computed(() => !props.filterable || multiple.value);
89
+ const searchKeyword = computed(() => multiple.value ? searchInputValue.value : inputValue.value);
90
+ const checkedNodes = computed(() => {
91
+ var _a;
92
+ return ((_a = panel.value) == null ? void 0 : _a.checkedNodes) || [];
93
+ });
94
+ const clearBtnVisible = computed(() => {
95
+ if (!props.clearable || isDisabled.value || filtering.value || !inputHover.value)
96
+ return false;
97
+ return !!checkedNodes.value.length;
98
+ });
99
+ const presentText = computed(() => {
100
+ const { showAllLevels, separator } = props;
101
+ const nodes = checkedNodes.value;
102
+ return nodes.length ? multiple.value ? "" : nodes[0].calcText(showAllLevels, separator) : "";
103
+ });
104
+ const checkedValue = computed({
105
+ get() {
106
+ return cloneDeep(props.modelValue);
107
+ },
108
+ set(val) {
109
+ emit(UPDATE_MODEL_EVENT, val);
110
+ emit(CHANGE_EVENT, val);
111
+ if (props.validateEvent) {
112
+ formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn(err));
113
+ }
114
+ }
115
+ });
116
+ const cascaderPanelRef = computed(() => {
117
+ var _a, _b;
118
+ return (_b = (_a = tooltipRef.value) == null ? void 0 : _a.popperRef) == null ? void 0 : _b.contentRef;
119
+ });
120
+ const cascaderKls = computed(() => {
121
+ return [
122
+ nsCascader.b(),
123
+ nsCascader.m(realSize.value),
124
+ nsCascader.is("disabled", isDisabled.value),
125
+ attrs.class
126
+ ];
127
+ });
128
+ const cascaderIconKls = computed(() => {
129
+ return [
130
+ nsInput.e("icon"),
131
+ "icon-arrow-down",
132
+ nsCascader.is("reverse", popperVisible.value)
133
+ ];
134
+ });
135
+ const togglePopperVisible = (visible) => {
136
+ var _a, _b, _c;
137
+ if (isDisabled.value)
138
+ return;
139
+ visible = visible != null ? visible : !popperVisible.value;
140
+ if (visible !== popperVisible.value) {
141
+ popperVisible.value = visible;
142
+ (_b = (_a = input.value) == null ? void 0 : _a.input) == null ? void 0 : _b.setAttribute("aria-expanded", `${visible}`);
143
+ if (visible) {
144
+ updatePopperPosition();
145
+ nextTick((_c = panel.value) == null ? void 0 : _c.scrollToExpandingNode);
146
+ } else if (props.filterable) {
147
+ syncPresentTextValue();
148
+ }
149
+ emit("visibleChange", visible);
150
+ }
151
+ };
152
+ const updatePopperPosition = () => {
153
+ nextTick(() => {
154
+ var _a;
155
+ (_a = tooltipRef.value) == null ? void 0 : _a.updatePopper();
156
+ });
157
+ };
158
+ const hideSuggestionPanel = () => {
159
+ filtering.value = false;
160
+ };
161
+ const genTag = (node) => {
162
+ const { showAllLevels, separator } = props;
163
+ return {
164
+ node,
165
+ key: node.uid,
166
+ text: node.calcText(showAllLevels, separator),
167
+ hitState: false,
168
+ closable: !isDisabled.value && !node.isDisabled,
169
+ isCollapseTag: false
170
+ };
171
+ };
172
+ const deleteTag = (tag) => {
173
+ var _a;
174
+ const node = tag.node;
175
+ node.doCheck(false);
176
+ (_a = panel.value) == null ? void 0 : _a.calculateCheckedValue();
177
+ emit("removeTag", node.valueByOption);
178
+ };
179
+ const calculatePresentTags = () => {
180
+ if (!multiple.value)
181
+ return;
182
+ const nodes = checkedNodes.value;
183
+ const tags = [];
184
+ const allTags = [];
185
+ nodes.forEach((node) => allTags.push(genTag(node)));
186
+ allPresentTags.value = allTags;
187
+ if (nodes.length) {
188
+ const [first, ...rest] = nodes;
189
+ const restCount = rest.length;
190
+ tags.push(genTag(first));
191
+ if (restCount) {
192
+ if (props.collapseTags) {
193
+ tags.push({
194
+ key: -1,
195
+ text: `+ ${restCount}`,
196
+ closable: false,
197
+ isCollapseTag: true
198
+ });
199
+ } else {
200
+ rest.forEach((node) => tags.push(genTag(node)));
201
+ }
202
+ }
203
+ }
204
+ presentTags.value = tags;
205
+ };
206
+ const calculateSuggestions = () => {
207
+ var _a, _b;
208
+ const { filterMethod, showAllLevels, separator } = props;
209
+ const res = (_b = (_a = panel.value) == null ? void 0 : _a.getFlattedNodes(!props.props.checkStrictly)) == null ? void 0 : _b.filter((node) => {
210
+ if (node.isDisabled)
211
+ return false;
212
+ node.calcText(showAllLevels, separator);
213
+ return filterMethod(node, searchKeyword.value);
214
+ });
215
+ if (multiple.value) {
216
+ presentTags.value.forEach((tag) => {
217
+ tag.hitState = false;
218
+ });
219
+ allPresentTags.value.forEach((tag) => {
220
+ tag.hitState = false;
221
+ });
222
+ }
223
+ filtering.value = true;
224
+ suggestions.value = res;
225
+ updatePopperPosition();
226
+ };
227
+ const focusFirstNode = () => {
228
+ var _a;
229
+ let firstNode;
230
+ if (filtering.value && suggestionPanel.value) {
231
+ firstNode = suggestionPanel.value.$el.querySelector(`.${nsCascader.e("suggestion-item")}`);
232
+ } else {
233
+ firstNode = (_a = panel.value) == null ? void 0 : _a.$el.querySelector(`.${nsCascader.b("node")}[tabindex="-1"]`);
234
+ }
235
+ if (firstNode) {
236
+ firstNode.focus();
237
+ !filtering.value && firstNode.click();
238
+ }
239
+ };
240
+ const updateStyle = () => {
241
+ var _a, _b;
242
+ const inputInner = (_a = input.value) == null ? void 0 : _a.input;
243
+ const tagWrapperEl = tagWrapper.value;
244
+ const suggestionPanelEl = (_b = suggestionPanel.value) == null ? void 0 : _b.$el;
245
+ if (!isClient || !inputInner)
246
+ return;
247
+ if (suggestionPanelEl) {
248
+ const suggestionList = suggestionPanelEl.querySelector(`.${nsCascader.e("suggestion-list")}`);
249
+ suggestionList.style.minWidth = `${inputInner.offsetWidth}px`;
250
+ }
251
+ if (tagWrapperEl) {
252
+ const { offsetHeight } = tagWrapperEl;
253
+ const height = presentTags.value.length > 0 ? `${Math.max(offsetHeight + 6, inputInitialHeight)}px` : `${inputInitialHeight}px`;
254
+ inputInner.style.height = height;
255
+ updatePopperPosition();
256
+ }
257
+ };
258
+ const getCheckedNodes = (leafOnly) => {
259
+ var _a;
260
+ return (_a = panel.value) == null ? void 0 : _a.getCheckedNodes(leafOnly);
261
+ };
262
+ const handleExpandChange = (value) => {
263
+ updatePopperPosition();
264
+ emit("expandChange", value);
265
+ };
266
+ const handleComposition = (event) => {
267
+ var _a;
268
+ const text = (_a = event.target) == null ? void 0 : _a.value;
269
+ if (event.type === "compositionend") {
270
+ isOnComposition.value = false;
271
+ nextTick(() => handleInput(text));
272
+ } else {
273
+ const lastCharacter = text[text.length - 1] || "";
274
+ isOnComposition.value = !isKorean(lastCharacter);
275
+ }
276
+ };
277
+ const handleKeyDown = (e) => {
278
+ if (isOnComposition.value)
279
+ return;
280
+ switch (e.code) {
281
+ case EVENT_CODE.enter:
282
+ togglePopperVisible();
283
+ break;
284
+ case EVENT_CODE.down:
285
+ togglePopperVisible(true);
286
+ nextTick(focusFirstNode);
287
+ e.preventDefault();
288
+ break;
289
+ case EVENT_CODE.esc:
290
+ if (popperVisible.value === true) {
291
+ e.preventDefault();
292
+ e.stopPropagation();
293
+ togglePopperVisible(false);
294
+ }
295
+ break;
296
+ case EVENT_CODE.tab:
297
+ togglePopperVisible(false);
298
+ break;
299
+ }
300
+ };
301
+ const handleClear = () => {
302
+ var _a;
303
+ (_a = panel.value) == null ? void 0 : _a.clearCheckedNodes();
304
+ if (!popperVisible.value && props.filterable) {
305
+ syncPresentTextValue();
306
+ }
307
+ togglePopperVisible(false);
308
+ };
309
+ const syncPresentTextValue = () => {
310
+ const { value } = presentText;
311
+ inputValue.value = value;
312
+ searchInputValue.value = value;
313
+ };
314
+ const handleSuggestionClick = (node) => {
315
+ var _a, _b;
316
+ const { checked } = node;
317
+ if (multiple.value) {
318
+ (_a = panel.value) == null ? void 0 : _a.handleCheckChange(node, !checked, false);
319
+ } else {
320
+ !checked && ((_b = panel.value) == null ? void 0 : _b.handleCheckChange(node, true, false));
321
+ togglePopperVisible(false);
322
+ }
323
+ };
324
+ const handleSuggestionKeyDown = (e) => {
325
+ const target = e.target;
326
+ const { code } = e;
327
+ switch (code) {
328
+ case EVENT_CODE.up:
329
+ case EVENT_CODE.down: {
330
+ const distance = code === EVENT_CODE.up ? -1 : 1;
331
+ focusNode(getSibling(target, distance, `.${nsCascader.e("suggestion-item")}[tabindex="-1"]`));
332
+ break;
333
+ }
334
+ case EVENT_CODE.enter:
335
+ target.click();
336
+ break;
337
+ }
338
+ };
339
+ const handleDelete = () => {
340
+ const tags = presentTags.value;
341
+ const lastTag = tags[tags.length - 1];
342
+ pressDeleteCount = searchInputValue.value ? 0 : pressDeleteCount + 1;
343
+ if (!lastTag || !pressDeleteCount || props.collapseTags && tags.length > 1)
344
+ return;
345
+ if (lastTag.hitState) {
346
+ deleteTag(lastTag);
347
+ } else {
348
+ lastTag.hitState = true;
349
+ }
350
+ };
351
+ const handleFocus = (e) => {
352
+ emit("focus", e);
353
+ };
354
+ const handleBlur = (e) => {
355
+ emit("blur", e);
356
+ };
357
+ const handleFilter = debounce(() => {
358
+ const { value } = searchKeyword;
359
+ if (!value)
360
+ return;
361
+ const passed = props.beforeFilter(value);
362
+ if (isPromise(passed)) {
363
+ passed.then(calculateSuggestions).catch(() => {
364
+ });
365
+ } else if (passed !== false) {
366
+ calculateSuggestions();
367
+ } else {
368
+ hideSuggestionPanel();
369
+ }
370
+ }, props.debounce);
371
+ const handleInput = (val, e) => {
372
+ !popperVisible.value && togglePopperVisible(true);
373
+ if (e == null ? void 0 : e.isComposing)
374
+ return;
375
+ val ? handleFilter() : hideSuggestionPanel();
376
+ };
377
+ watch(filtering, updatePopperPosition);
378
+ watch([checkedNodes, isDisabled], calculatePresentTags);
379
+ watch(presentTags, () => {
380
+ nextTick(() => updateStyle());
381
+ });
382
+ watch(presentText, syncPresentTextValue, { immediate: true });
383
+ onMounted(() => {
384
+ const inputInner = input.value.input;
385
+ const inputInnerHeight = Number.parseFloat(useCssVar(nsInput.cssVarName("input-height"), inputInner).value) - 2;
386
+ inputInitialHeight = inputInner.offsetHeight || inputInnerHeight;
387
+ useResizeObserver(inputInner, updateStyle);
388
+ });
389
+ expose({
390
+ getCheckedNodes,
391
+ cascaderPanelRef
392
+ });
393
+ return (_ctx, _cache) => {
394
+ return openBlock(), createBlock(unref(ElTooltip), {
395
+ ref_key: "tooltipRef",
396
+ ref: tooltipRef,
397
+ visible: popperVisible.value,
398
+ teleported: _ctx.teleported,
399
+ "popper-class": [unref(nsCascader).e("dropdown"), _ctx.popperClass],
400
+ "popper-options": popperOptions,
401
+ "fallback-placements": [
402
+ "bottom-start",
403
+ "bottom",
404
+ "top-start",
405
+ "top",
406
+ "right",
407
+ "left"
408
+ ],
409
+ "stop-popper-mouse-event": false,
410
+ "gpu-acceleration": false,
411
+ placement: "bottom-start",
412
+ transition: `${unref(nsCascader).namespace.value}-zoom-in-top`,
413
+ effect: "light",
414
+ pure: "",
415
+ persistent: "",
416
+ onHide: hideSuggestionPanel
417
+ }, {
418
+ default: withCtx(() => [
419
+ withDirectives((openBlock(), createElementBlock("div", {
420
+ class: normalizeClass(unref(cascaderKls)),
421
+ style: normalizeStyle(unref(cascaderStyle)),
422
+ onClick: _cache[5] || (_cache[5] = () => togglePopperVisible(unref(readonly) ? void 0 : true)),
423
+ onKeydown: handleKeyDown,
424
+ onMouseenter: _cache[6] || (_cache[6] = ($event) => inputHover.value = true),
425
+ onMouseleave: _cache[7] || (_cache[7] = ($event) => inputHover.value = false)
426
+ }, [
427
+ createVNode(unref(ElInput), {
428
+ ref_key: "input",
429
+ ref: input,
430
+ modelValue: inputValue.value,
431
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => inputValue.value = $event),
432
+ placeholder: unref(currentPlaceholder),
433
+ readonly: unref(readonly),
434
+ disabled: unref(isDisabled),
435
+ "validate-event": false,
436
+ size: unref(realSize),
437
+ class: normalizeClass(unref(nsCascader).is("focus", popperVisible.value)),
438
+ onCompositionstart: handleComposition,
439
+ onCompositionupdate: handleComposition,
440
+ onCompositionend: handleComposition,
441
+ onFocus: handleFocus,
442
+ onBlur: handleBlur,
443
+ onInput: handleInput
444
+ }, {
445
+ suffix: withCtx(() => [
446
+ unref(clearBtnVisible) ? (openBlock(), createBlock(unref(ElIcon), {
447
+ key: "clear",
448
+ class: normalizeClass([unref(nsInput).e("icon"), "icon-circle-close"]),
449
+ onClick: withModifiers(handleClear, ["stop"])
450
+ }, {
451
+ default: withCtx(() => [
452
+ createVNode(unref(CircleClose))
453
+ ]),
454
+ _: 1
455
+ }, 8, ["class", "onClick"])) : (openBlock(), createBlock(unref(ElIcon), {
456
+ key: "arrow-down",
457
+ class: normalizeClass(unref(cascaderIconKls)),
458
+ onClick: _cache[0] || (_cache[0] = withModifiers(($event) => togglePopperVisible(), ["stop"]))
459
+ }, {
460
+ default: withCtx(() => [
461
+ createVNode(unref(ArrowDown))
462
+ ]),
463
+ _: 1
464
+ }, 8, ["class"]))
465
+ ]),
466
+ _: 1
467
+ }, 8, ["modelValue", "placeholder", "readonly", "disabled", "size", "class"]),
468
+ unref(multiple) ? (openBlock(), createElementBlock("div", {
469
+ key: 0,
470
+ ref_key: "tagWrapper",
471
+ ref: tagWrapper,
472
+ class: normalizeClass(unref(nsCascader).e("tags"))
473
+ }, [
474
+ (openBlock(true), createElementBlock(Fragment, null, renderList(presentTags.value, (tag) => {
475
+ return openBlock(), createBlock(unref(ElTag), {
476
+ key: tag.key,
477
+ type: _ctx.tagType,
478
+ size: unref(tagSize),
479
+ hit: tag.hitState,
480
+ closable: tag.closable,
481
+ "disable-transitions": "",
482
+ onClose: ($event) => deleteTag(tag)
483
+ }, {
484
+ default: withCtx(() => [
485
+ tag.isCollapseTag === false ? (openBlock(), createElementBlock("span", _hoisted_1, toDisplayString(tag.text), 1)) : (openBlock(), createBlock(unref(ElTooltip), {
486
+ key: 1,
487
+ disabled: popperVisible.value || !_ctx.collapseTagsTooltip,
488
+ "fallback-placements": ["bottom", "top", "right", "left"],
489
+ placement: "bottom",
490
+ effect: "light"
491
+ }, {
492
+ default: withCtx(() => [
493
+ createElementVNode("span", null, toDisplayString(tag.text), 1)
494
+ ]),
495
+ content: withCtx(() => [
496
+ createElementVNode("div", {
497
+ class: normalizeClass(unref(nsCascader).e("collapse-tags"))
498
+ }, [
499
+ (openBlock(true), createElementBlock(Fragment, null, renderList(allPresentTags.value.slice(1), (tag2, idx) => {
500
+ return openBlock(), createElementBlock("div", {
501
+ key: idx,
502
+ class: normalizeClass(unref(nsCascader).e("collapse-tag"))
503
+ }, [
504
+ (openBlock(), createBlock(unref(ElTag), {
505
+ key: tag2.key,
506
+ class: "in-tooltip",
507
+ type: _ctx.tagType,
508
+ size: unref(tagSize),
509
+ hit: tag2.hitState,
510
+ closable: tag2.closable,
511
+ "disable-transitions": "",
512
+ onClose: ($event) => deleteTag(tag2)
513
+ }, {
514
+ default: withCtx(() => [
515
+ createElementVNode("span", null, toDisplayString(tag2.text), 1)
516
+ ]),
517
+ _: 2
518
+ }, 1032, ["type", "size", "hit", "closable", "onClose"]))
519
+ ], 2);
520
+ }), 128))
521
+ ], 2)
522
+ ]),
523
+ _: 2
524
+ }, 1032, ["disabled"]))
525
+ ]),
526
+ _: 2
527
+ }, 1032, ["type", "size", "hit", "closable", "onClose"]);
528
+ }), 128)),
529
+ _ctx.filterable && !unref(isDisabled) ? withDirectives((openBlock(), createElementBlock("input", {
530
+ key: 0,
531
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => searchInputValue.value = $event),
532
+ type: "text",
533
+ class: normalizeClass(unref(nsCascader).e("search-input")),
534
+ placeholder: unref(presentText) ? "" : unref(inputPlaceholder),
535
+ onInput: _cache[3] || (_cache[3] = (e) => handleInput(searchInputValue.value, e)),
536
+ onClick: _cache[4] || (_cache[4] = withModifiers(($event) => togglePopperVisible(true), ["stop"])),
537
+ onKeydown: withKeys(handleDelete, ["delete"]),
538
+ onCompositionstart: handleComposition,
539
+ onCompositionupdate: handleComposition,
540
+ onCompositionend: handleComposition
541
+ }, null, 42, _hoisted_2)), [
542
+ [vModelText, searchInputValue.value]
543
+ ]) : createCommentVNode("v-if", true)
544
+ ], 2)) : createCommentVNode("v-if", true)
545
+ ], 38)), [
546
+ [unref(ClickOutside), () => togglePopperVisible(false), unref(cascaderPanelRef)]
547
+ ])
548
+ ]),
549
+ content: withCtx(() => [
550
+ withDirectives(createVNode(unref(_CascaderPanel), {
551
+ ref_key: "panel",
552
+ ref: panel,
553
+ modelValue: unref(checkedValue),
554
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => isRef(checkedValue) ? checkedValue.value = $event : null),
555
+ options: _ctx.options,
556
+ props: props.props,
557
+ border: false,
558
+ "render-label": _ctx.$slots.default,
559
+ onExpandChange: handleExpandChange,
560
+ onClose: _cache[9] || (_cache[9] = ($event) => _ctx.$nextTick(() => togglePopperVisible(false)))
561
+ }, null, 8, ["modelValue", "options", "props", "render-label"]), [
562
+ [vShow, !filtering.value]
563
+ ]),
564
+ _ctx.filterable ? withDirectives((openBlock(), createBlock(unref(ElScrollbar), {
565
+ key: 0,
566
+ ref_key: "suggestionPanel",
567
+ ref: suggestionPanel,
568
+ tag: "ul",
569
+ class: normalizeClass(unref(nsCascader).e("suggestion-panel")),
570
+ "view-class": unref(nsCascader).e("suggestion-list"),
571
+ onKeydown: handleSuggestionKeyDown
572
+ }, {
573
+ default: withCtx(() => [
574
+ suggestions.value.length ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(suggestions.value, (item) => {
575
+ return openBlock(), createElementBlock("li", {
576
+ key: item.uid,
577
+ class: normalizeClass([
578
+ unref(nsCascader).e("suggestion-item"),
579
+ unref(nsCascader).is("checked", item.checked)
580
+ ]),
581
+ tabindex: -1,
582
+ onClick: ($event) => handleSuggestionClick(item)
583
+ }, [
584
+ createElementVNode("span", null, toDisplayString(item.text), 1),
585
+ item.checked ? (openBlock(), createBlock(unref(ElIcon), { key: 0 }, {
586
+ default: withCtx(() => [
587
+ createVNode(unref(Check))
588
+ ]),
589
+ _: 1
590
+ })) : createCommentVNode("v-if", true)
591
+ ], 10, _hoisted_3);
592
+ }), 128)) : renderSlot(_ctx.$slots, "empty", { key: 1 }, () => [
593
+ createElementVNode("li", {
594
+ class: normalizeClass(unref(nsCascader).e("empty-text"))
595
+ }, toDisplayString(unref(t)("el.cascader.noMatch")), 3)
596
+ ])
597
+ ]),
598
+ _: 3
599
+ }, 8, ["class", "view-class"])), [
600
+ [vShow, filtering.value]
601
+ ]) : createCommentVNode("v-if", true)
602
+ ]),
603
+ _: 3
604
+ }, 8, ["visible", "teleported", "popper-class", "transition"]);
605
+ };
606
+ }
607
+ });
608
+ var Cascader = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/cascader/src/cascader.vue"]]);
609
+
610
+ export { Cascader as default };
611
+ //# sourceMappingURL=cascader2.mjs.map