@element-plus/nightly 0.0.20220131 → 0.0.20220204

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 (376) hide show
  1. package/attributes.json +1 -1
  2. package/dist/index.css +1 -1
  3. package/dist/index.full.js +348 -205
  4. package/dist/index.full.min.js +6 -6
  5. package/dist/index.full.min.js.map +1 -1
  6. package/dist/index.full.min.mjs +6 -6
  7. package/dist/index.full.min.mjs.map +1 -1
  8. package/dist/index.full.mjs +347 -207
  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.js +1 -1
  14. package/dist/locale/ar.min.js +1 -1
  15. package/dist/locale/ar.min.mjs +1 -1
  16. package/dist/locale/ar.mjs +1 -1
  17. package/dist/locale/bg.js +1 -1
  18. package/dist/locale/bg.min.js +1 -1
  19. package/dist/locale/bg.min.mjs +1 -1
  20. package/dist/locale/bg.mjs +1 -1
  21. package/dist/locale/bn.js +1 -1
  22. package/dist/locale/bn.min.js +1 -1
  23. package/dist/locale/bn.min.mjs +1 -1
  24. package/dist/locale/bn.mjs +1 -1
  25. package/dist/locale/ca.js +1 -1
  26. package/dist/locale/ca.min.js +1 -1
  27. package/dist/locale/ca.min.mjs +1 -1
  28. package/dist/locale/ca.mjs +1 -1
  29. package/dist/locale/cs.js +1 -1
  30. package/dist/locale/cs.min.js +1 -1
  31. package/dist/locale/cs.min.mjs +1 -1
  32. package/dist/locale/cs.mjs +1 -1
  33. package/dist/locale/da.js +1 -1
  34. package/dist/locale/da.min.js +1 -1
  35. package/dist/locale/da.min.mjs +1 -1
  36. package/dist/locale/da.mjs +1 -1
  37. package/dist/locale/de.js +1 -1
  38. package/dist/locale/de.min.js +1 -1
  39. package/dist/locale/de.min.mjs +1 -1
  40. package/dist/locale/de.mjs +1 -1
  41. package/dist/locale/el.js +1 -1
  42. package/dist/locale/el.min.js +1 -1
  43. package/dist/locale/el.min.mjs +1 -1
  44. package/dist/locale/el.mjs +1 -1
  45. package/dist/locale/en.js +1 -1
  46. package/dist/locale/en.min.js +1 -1
  47. package/dist/locale/en.min.mjs +1 -1
  48. package/dist/locale/en.mjs +1 -1
  49. package/dist/locale/eo.js +1 -1
  50. package/dist/locale/eo.min.js +1 -1
  51. package/dist/locale/eo.min.mjs +1 -1
  52. package/dist/locale/eo.mjs +1 -1
  53. package/dist/locale/es.js +1 -1
  54. package/dist/locale/es.min.js +1 -1
  55. package/dist/locale/es.min.mjs +1 -1
  56. package/dist/locale/es.mjs +1 -1
  57. package/dist/locale/et.js +1 -1
  58. package/dist/locale/et.min.js +1 -1
  59. package/dist/locale/et.min.mjs +1 -1
  60. package/dist/locale/et.mjs +1 -1
  61. package/dist/locale/eu.js +1 -1
  62. package/dist/locale/eu.min.js +1 -1
  63. package/dist/locale/eu.min.mjs +1 -1
  64. package/dist/locale/eu.mjs +1 -1
  65. package/dist/locale/fa.js +1 -1
  66. package/dist/locale/fa.min.js +1 -1
  67. package/dist/locale/fa.min.mjs +1 -1
  68. package/dist/locale/fa.mjs +1 -1
  69. package/dist/locale/fi.js +1 -1
  70. package/dist/locale/fi.min.js +1 -1
  71. package/dist/locale/fi.min.mjs +1 -1
  72. package/dist/locale/fi.mjs +1 -1
  73. package/dist/locale/fr.js +1 -1
  74. package/dist/locale/fr.min.js +1 -1
  75. package/dist/locale/fr.min.mjs +1 -1
  76. package/dist/locale/fr.mjs +1 -1
  77. package/dist/locale/he.js +1 -1
  78. package/dist/locale/he.min.js +1 -1
  79. package/dist/locale/he.min.mjs +1 -1
  80. package/dist/locale/he.mjs +1 -1
  81. package/dist/locale/hr.js +1 -1
  82. package/dist/locale/hr.min.js +1 -1
  83. package/dist/locale/hr.min.mjs +1 -1
  84. package/dist/locale/hr.mjs +1 -1
  85. package/dist/locale/hu.js +1 -1
  86. package/dist/locale/hu.min.js +1 -1
  87. package/dist/locale/hu.min.mjs +1 -1
  88. package/dist/locale/hu.mjs +1 -1
  89. package/dist/locale/hy-am.js +1 -1
  90. package/dist/locale/hy-am.min.js +1 -1
  91. package/dist/locale/hy-am.min.mjs +1 -1
  92. package/dist/locale/hy-am.mjs +1 -1
  93. package/dist/locale/id.js +1 -1
  94. package/dist/locale/id.min.js +1 -1
  95. package/dist/locale/id.min.mjs +1 -1
  96. package/dist/locale/id.mjs +1 -1
  97. package/dist/locale/it.js +1 -1
  98. package/dist/locale/it.min.js +1 -1
  99. package/dist/locale/it.min.mjs +1 -1
  100. package/dist/locale/it.mjs +1 -1
  101. package/dist/locale/ja.js +1 -1
  102. package/dist/locale/ja.min.js +1 -1
  103. package/dist/locale/ja.min.mjs +1 -1
  104. package/dist/locale/ja.mjs +1 -1
  105. package/dist/locale/kk.js +1 -1
  106. package/dist/locale/kk.min.js +1 -1
  107. package/dist/locale/kk.min.mjs +1 -1
  108. package/dist/locale/kk.mjs +1 -1
  109. package/dist/locale/km.js +1 -1
  110. package/dist/locale/km.min.js +1 -1
  111. package/dist/locale/km.min.mjs +1 -1
  112. package/dist/locale/km.mjs +1 -1
  113. package/dist/locale/ko.js +1 -1
  114. package/dist/locale/ko.min.js +1 -1
  115. package/dist/locale/ko.min.mjs +1 -1
  116. package/dist/locale/ko.mjs +1 -1
  117. package/dist/locale/ku.js +1 -1
  118. package/dist/locale/ku.min.js +1 -1
  119. package/dist/locale/ku.min.mjs +1 -1
  120. package/dist/locale/ku.mjs +1 -1
  121. package/dist/locale/ky.js +1 -1
  122. package/dist/locale/ky.min.js +1 -1
  123. package/dist/locale/ky.min.mjs +1 -1
  124. package/dist/locale/ky.mjs +1 -1
  125. package/dist/locale/lt.js +1 -1
  126. package/dist/locale/lt.min.js +1 -1
  127. package/dist/locale/lt.min.mjs +1 -1
  128. package/dist/locale/lt.mjs +1 -1
  129. package/dist/locale/lv.js +1 -1
  130. package/dist/locale/lv.min.js +1 -1
  131. package/dist/locale/lv.min.mjs +1 -1
  132. package/dist/locale/lv.mjs +1 -1
  133. package/dist/locale/mn.js +1 -1
  134. package/dist/locale/mn.min.js +1 -1
  135. package/dist/locale/mn.min.mjs +1 -1
  136. package/dist/locale/mn.mjs +1 -1
  137. package/dist/locale/nb-no.js +1 -1
  138. package/dist/locale/nb-no.min.js +1 -1
  139. package/dist/locale/nb-no.min.mjs +1 -1
  140. package/dist/locale/nb-no.mjs +1 -1
  141. package/dist/locale/nl.js +1 -1
  142. package/dist/locale/nl.min.js +1 -1
  143. package/dist/locale/nl.min.mjs +1 -1
  144. package/dist/locale/nl.mjs +1 -1
  145. package/dist/locale/pa.js +1 -1
  146. package/dist/locale/pa.min.js +1 -1
  147. package/dist/locale/pa.min.mjs +1 -1
  148. package/dist/locale/pa.mjs +1 -1
  149. package/dist/locale/pl.js +1 -1
  150. package/dist/locale/pl.min.js +1 -1
  151. package/dist/locale/pl.min.mjs +1 -1
  152. package/dist/locale/pl.mjs +1 -1
  153. package/dist/locale/pt-br.js +1 -1
  154. package/dist/locale/pt-br.min.js +1 -1
  155. package/dist/locale/pt-br.min.mjs +1 -1
  156. package/dist/locale/pt-br.mjs +1 -1
  157. package/dist/locale/pt.js +1 -1
  158. package/dist/locale/pt.min.js +1 -1
  159. package/dist/locale/pt.min.mjs +1 -1
  160. package/dist/locale/pt.mjs +1 -1
  161. package/dist/locale/ro.js +1 -1
  162. package/dist/locale/ro.min.js +1 -1
  163. package/dist/locale/ro.min.mjs +1 -1
  164. package/dist/locale/ro.mjs +1 -1
  165. package/dist/locale/ru.js +1 -1
  166. package/dist/locale/ru.min.js +1 -1
  167. package/dist/locale/ru.min.mjs +1 -1
  168. package/dist/locale/ru.mjs +1 -1
  169. package/dist/locale/sk.js +1 -1
  170. package/dist/locale/sk.min.js +1 -1
  171. package/dist/locale/sk.min.mjs +1 -1
  172. package/dist/locale/sk.mjs +1 -1
  173. package/dist/locale/sl.js +1 -1
  174. package/dist/locale/sl.min.js +1 -1
  175. package/dist/locale/sl.min.mjs +1 -1
  176. package/dist/locale/sl.mjs +1 -1
  177. package/dist/locale/sr.js +1 -1
  178. package/dist/locale/sr.min.js +1 -1
  179. package/dist/locale/sr.min.mjs +1 -1
  180. package/dist/locale/sr.mjs +1 -1
  181. package/dist/locale/sv.js +1 -1
  182. package/dist/locale/sv.min.js +1 -1
  183. package/dist/locale/sv.min.mjs +1 -1
  184. package/dist/locale/sv.mjs +1 -1
  185. package/dist/locale/ta.js +1 -1
  186. package/dist/locale/ta.min.js +1 -1
  187. package/dist/locale/ta.min.mjs +1 -1
  188. package/dist/locale/ta.mjs +1 -1
  189. package/dist/locale/th.js +1 -1
  190. package/dist/locale/th.min.js +1 -1
  191. package/dist/locale/th.min.mjs +1 -1
  192. package/dist/locale/th.mjs +1 -1
  193. package/dist/locale/tk.js +1 -1
  194. package/dist/locale/tk.min.js +1 -1
  195. package/dist/locale/tk.min.mjs +1 -1
  196. package/dist/locale/tk.mjs +1 -1
  197. package/dist/locale/tr.js +1 -1
  198. package/dist/locale/tr.min.js +1 -1
  199. package/dist/locale/tr.min.mjs +1 -1
  200. package/dist/locale/tr.mjs +1 -1
  201. package/dist/locale/ug-cn.js +1 -1
  202. package/dist/locale/ug-cn.min.js +1 -1
  203. package/dist/locale/ug-cn.min.mjs +1 -1
  204. package/dist/locale/ug-cn.mjs +1 -1
  205. package/dist/locale/uk.js +1 -1
  206. package/dist/locale/uk.min.js +1 -1
  207. package/dist/locale/uk.min.mjs +1 -1
  208. package/dist/locale/uk.mjs +1 -1
  209. package/dist/locale/uz-uz.js +1 -1
  210. package/dist/locale/uz-uz.min.js +1 -1
  211. package/dist/locale/uz-uz.min.mjs +1 -1
  212. package/dist/locale/uz-uz.mjs +1 -1
  213. package/dist/locale/vi.js +1 -1
  214. package/dist/locale/vi.min.js +1 -1
  215. package/dist/locale/vi.min.mjs +1 -1
  216. package/dist/locale/vi.mjs +1 -1
  217. package/dist/locale/zh-cn.js +1 -1
  218. package/dist/locale/zh-cn.min.js +1 -1
  219. package/dist/locale/zh-cn.min.mjs +1 -1
  220. package/dist/locale/zh-cn.mjs +1 -1
  221. package/dist/locale/zh-tw.js +1 -1
  222. package/dist/locale/zh-tw.min.js +1 -1
  223. package/dist/locale/zh-tw.min.mjs +1 -1
  224. package/dist/locale/zh-tw.mjs +1 -1
  225. package/es/components/autocomplete/index.d.ts +12 -4
  226. package/es/components/autocomplete/src/index.mjs +11 -4
  227. package/es/components/autocomplete/src/index.mjs.map +1 -1
  228. package/es/components/autocomplete/src/index.vue.d.ts +6 -2
  229. package/es/components/cascader/index.d.ts +12 -4
  230. package/es/components/cascader/src/index.mjs +12 -5
  231. package/es/components/cascader/src/index.mjs.map +1 -1
  232. package/es/components/cascader/src/index.vue.d.ts +6 -2
  233. package/es/components/dialog/index.d.ts +4 -0
  234. package/es/components/dialog/src/dialog.d.ts +1 -0
  235. package/es/components/dialog/src/dialog.mjs +4 -0
  236. package/es/components/dialog/src/dialog.mjs.map +1 -1
  237. package/es/components/dialog/src/dialog.vue.d.ts +4 -0
  238. package/es/components/dialog/src/dialog2.mjs +12 -3
  239. package/es/components/dialog/src/dialog2.mjs.map +1 -1
  240. package/es/components/drawer/index.d.ts +3 -0
  241. package/es/components/drawer/src/drawer.d.ts +1 -0
  242. package/es/components/drawer/src/drawer.vue.d.ts +3 -0
  243. package/es/components/index.mjs +1 -0
  244. package/es/components/index.mjs.map +1 -1
  245. package/es/components/message-box/src/index.mjs +133 -113
  246. package/es/components/message-box/src/index.mjs.map +1 -1
  247. package/es/components/message-box/src/index.vue.d.ts +14 -4
  248. package/es/components/message-box/src/message-box.type.d.ts +2 -0
  249. package/es/components/popconfirm/index.d.ts +26 -22
  250. package/es/components/popconfirm/src/popconfirm.d.ts +12 -11
  251. package/es/components/popconfirm/src/popconfirm.mjs +48 -43
  252. package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
  253. package/es/components/popconfirm/src/popconfirm.vue.d.ts +26 -22
  254. package/es/components/popconfirm/src/popconfirm2.mjs +8 -3
  255. package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
  256. package/es/components/popover/index.d.ts +26 -0
  257. package/es/components/popover/src/index.mjs +8 -3
  258. package/es/components/popover/src/index.mjs.map +1 -1
  259. package/es/components/popover/src/index.vue.d.ts +39 -26
  260. package/es/components/popover/src/popover.d.ts +5 -0
  261. package/es/components/popover/src/popover.mjs +2 -0
  262. package/es/components/popover/src/popover.mjs.map +1 -1
  263. package/es/components/popper/index.d.ts +1 -0
  264. package/es/components/popper/index.mjs +1 -0
  265. package/es/components/popper/index.mjs.map +1 -1
  266. package/es/components/popper/src/deprecation.d.ts +3 -0
  267. package/es/components/popper/src/deprecation.mjs +24 -0
  268. package/es/components/popper/src/deprecation.mjs.map +1 -0
  269. package/es/components/select/index.d.ts +6 -2
  270. package/es/components/select/src/select.mjs +13 -6
  271. package/es/components/select/src/select.mjs.map +1 -1
  272. package/es/components/select/src/select.vue.d.ts +30 -26
  273. package/es/components/select-v2/index.d.ts +12 -12
  274. package/es/components/select-v2/src/defaults.d.ts +2 -1
  275. package/es/components/select-v2/src/defaults.mjs +4 -1
  276. package/es/components/select-v2/src/defaults.mjs.map +1 -1
  277. package/es/components/select-v2/src/select.mjs +2 -2
  278. package/es/components/select-v2/src/select.mjs.map +1 -1
  279. package/es/components/select-v2/src/select.vue.d.ts +6 -6
  280. package/es/components/select-v2/src/useSelect.d.ts +1 -4
  281. package/es/components/select-v2/src/useSelect.mjs +4 -2
  282. package/es/components/select-v2/src/useSelect.mjs.map +1 -1
  283. package/es/hooks/index.d.ts +2 -0
  284. package/es/hooks/index.mjs +2 -0
  285. package/es/hooks/index.mjs.map +1 -1
  286. package/es/hooks/use-deprecated/index.d.ts +10 -0
  287. package/es/hooks/use-deprecated/index.mjs +17 -0
  288. package/es/hooks/use-deprecated/index.mjs.map +1 -0
  289. package/es/hooks/use-draggable/index.d.ts +2 -0
  290. package/es/hooks/use-draggable/index.mjs +65 -0
  291. package/es/hooks/use-draggable/index.mjs.map +1 -0
  292. package/es/index.mjs +3 -0
  293. package/es/index.mjs.map +1 -1
  294. package/es/version.d.ts +1 -1
  295. package/es/version.mjs +1 -1
  296. package/es/version.mjs.map +1 -1
  297. package/lib/components/autocomplete/index.d.ts +12 -4
  298. package/lib/components/autocomplete/src/index.js +11 -4
  299. package/lib/components/autocomplete/src/index.js.map +1 -1
  300. package/lib/components/autocomplete/src/index.vue.d.ts +6 -2
  301. package/lib/components/cascader/index.d.ts +12 -4
  302. package/lib/components/cascader/src/index.js +12 -5
  303. package/lib/components/cascader/src/index.js.map +1 -1
  304. package/lib/components/cascader/src/index.vue.d.ts +6 -2
  305. package/lib/components/dialog/index.d.ts +4 -0
  306. package/lib/components/dialog/src/dialog.d.ts +1 -0
  307. package/lib/components/dialog/src/dialog.js +4 -0
  308. package/lib/components/dialog/src/dialog.js.map +1 -1
  309. package/lib/components/dialog/src/dialog.vue.d.ts +4 -0
  310. package/lib/components/dialog/src/dialog2.js +11 -2
  311. package/lib/components/dialog/src/dialog2.js.map +1 -1
  312. package/lib/components/drawer/index.d.ts +3 -0
  313. package/lib/components/drawer/src/drawer.d.ts +1 -0
  314. package/lib/components/drawer/src/drawer.vue.d.ts +3 -0
  315. package/lib/components/index.js +2 -0
  316. package/lib/components/index.js.map +1 -1
  317. package/lib/components/message-box/src/index.js +140 -120
  318. package/lib/components/message-box/src/index.js.map +1 -1
  319. package/lib/components/message-box/src/index.vue.d.ts +14 -4
  320. package/lib/components/message-box/src/message-box.type.d.ts +2 -0
  321. package/lib/components/popconfirm/index.d.ts +26 -22
  322. package/lib/components/popconfirm/src/popconfirm.d.ts +12 -11
  323. package/lib/components/popconfirm/src/popconfirm.js +48 -43
  324. package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
  325. package/lib/components/popconfirm/src/popconfirm.vue.d.ts +26 -22
  326. package/lib/components/popconfirm/src/popconfirm2.js +8 -3
  327. package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
  328. package/lib/components/popover/index.d.ts +26 -0
  329. package/lib/components/popover/src/index.js +8 -3
  330. package/lib/components/popover/src/index.js.map +1 -1
  331. package/lib/components/popover/src/index.vue.d.ts +39 -26
  332. package/lib/components/popover/src/popover.d.ts +5 -0
  333. package/lib/components/popover/src/popover.js +2 -0
  334. package/lib/components/popover/src/popover.js.map +1 -1
  335. package/lib/components/popper/index.d.ts +1 -0
  336. package/lib/components/popper/index.js +2 -0
  337. package/lib/components/popper/index.js.map +1 -1
  338. package/lib/components/popper/src/deprecation.d.ts +3 -0
  339. package/lib/components/popper/src/deprecation.js +28 -0
  340. package/lib/components/popper/src/deprecation.js.map +1 -0
  341. package/lib/components/select/index.d.ts +6 -2
  342. package/lib/components/select/src/select.js +13 -6
  343. package/lib/components/select/src/select.js.map +1 -1
  344. package/lib/components/select/src/select.vue.d.ts +30 -26
  345. package/lib/components/select-v2/index.d.ts +12 -12
  346. package/lib/components/select-v2/src/defaults.d.ts +2 -1
  347. package/lib/components/select-v2/src/defaults.js +4 -1
  348. package/lib/components/select-v2/src/defaults.js.map +1 -1
  349. package/lib/components/select-v2/src/select.js +2 -2
  350. package/lib/components/select-v2/src/select.js.map +1 -1
  351. package/lib/components/select-v2/src/select.vue.d.ts +6 -6
  352. package/lib/components/select-v2/src/useSelect.d.ts +1 -4
  353. package/lib/components/select-v2/src/useSelect.js +11 -9
  354. package/lib/components/select-v2/src/useSelect.js.map +1 -1
  355. package/lib/hooks/index.d.ts +2 -0
  356. package/lib/hooks/index.js +62 -58
  357. package/lib/hooks/index.js.map +1 -1
  358. package/lib/hooks/use-deprecated/index.d.ts +10 -0
  359. package/lib/hooks/use-deprecated/index.js +21 -0
  360. package/lib/hooks/use-deprecated/index.js.map +1 -0
  361. package/lib/hooks/use-draggable/index.d.ts +2 -0
  362. package/lib/hooks/use-draggable/index.js +69 -0
  363. package/lib/hooks/use-draggable/index.js.map +1 -0
  364. package/lib/index.js +64 -58
  365. package/lib/index.js.map +1 -1
  366. package/lib/version.d.ts +1 -1
  367. package/lib/version.js +1 -1
  368. package/lib/version.js.map +1 -1
  369. package/package.json +2 -2
  370. package/tags.json +1 -1
  371. package/theme-chalk/el-dialog.css +1 -1
  372. package/theme-chalk/el-message-box.css +1 -1
  373. package/theme-chalk/index.css +1 -1
  374. package/theme-chalk/src/dialog.scss +7 -0
  375. package/theme-chalk/src/message-box.scss +26 -15
  376. package/web-types.json +1 -1
@@ -1,6 +1,6 @@
1
- /*! Element Plus v0.0.20220131 */
1
+ /*! Element Plus v0.0.20220204 */
2
2
 
3
- import { getCurrentInstance, computed, warn, getCurrentScope, onScopeDispose, readonly, shallowRef, watchSyncEffect, ref, unref, watch, inject, provide, isRef, onMounted, onUnmounted, h as h$1, Teleport, onBeforeUnmount, onBeforeMount, nextTick, defineComponent, reactive, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot, mergeProps, resolveComponent, createBlock, Transition, withCtx, withDirectives, resolveDynamicComponent, createCommentVNode, createTextVNode, toDisplayString, Fragment, createVNode, vShow, onUpdated, withModifiers, toRef, cloneVNode, Text, Comment, resolveDirective, renderList, withKeys, createSlots, normalizeProps, guardReactiveProps, toRefs, vModelCheckbox, vModelRadio, onBeforeUpdate, vModelText, toHandlers, watchEffect, isVNode, camelize as camelize$1, markRaw, effectScope, toRaw, triggerRef, TransitionGroup, createApp, render } from 'vue';
3
+ import { getCurrentInstance, computed, warn, getCurrentScope, onScopeDispose, readonly, shallowRef, watchSyncEffect, ref, unref, watch, inject, provide, onMounted, watchEffect, onBeforeUnmount, isRef, onUnmounted, h as h$1, Teleport, onBeforeMount, nextTick, defineComponent, reactive, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot, mergeProps, resolveComponent, createBlock, Transition, withCtx, withDirectives, resolveDynamicComponent, createCommentVNode, createTextVNode, toDisplayString, Fragment, createVNode, vShow, onUpdated, withModifiers, toRef, cloneVNode, Text, Comment, resolveDirective, renderList, withKeys, createSlots, normalizeProps, guardReactiveProps, toRefs, vModelCheckbox, vModelRadio, onBeforeUpdate, vModelText, toHandlers, isVNode, camelize as camelize$1, markRaw, effectScope, toRaw, triggerRef, TransitionGroup, createApp, render } from 'vue';
4
4
 
5
5
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
6
6
 
@@ -3015,6 +3015,73 @@ const useDisabled$1 = (fallback) => {
3015
3015
  return computed(() => disabled.value || unref(fallback) || (form == null ? void 0 : form.disabled) || false);
3016
3016
  };
3017
3017
 
3018
+ const useDeprecated = ({ from, replacement, scope, version, ref }, condition) => {
3019
+ watch(() => unref(condition), (val) => {
3020
+ }, {
3021
+ immediate: true
3022
+ });
3023
+ };
3024
+
3025
+ const useDraggable = (targetRef, dragRef, draggable) => {
3026
+ let transform = {
3027
+ offsetX: 0,
3028
+ offsetY: 0
3029
+ };
3030
+ const onMousedown = (e) => {
3031
+ const downX = e.clientX;
3032
+ const downY = e.clientY;
3033
+ const { offsetX, offsetY } = transform;
3034
+ const targetRect = targetRef.value.getBoundingClientRect();
3035
+ const targetLeft = targetRect.left;
3036
+ const targetTop = targetRect.top;
3037
+ const targetWidth = targetRect.width;
3038
+ const targetHeight = targetRect.height;
3039
+ const clientWidth = document.documentElement.clientWidth;
3040
+ const clientHeight = document.documentElement.clientHeight;
3041
+ const minLeft = -targetLeft + offsetX;
3042
+ const minTop = -targetTop + offsetY;
3043
+ const maxLeft = clientWidth - targetLeft - targetWidth + offsetX;
3044
+ const maxTop = clientHeight - targetTop - targetHeight + offsetY;
3045
+ const onMousemove = (e2) => {
3046
+ const moveX = Math.min(Math.max(offsetX + e2.clientX - downX, minLeft), maxLeft);
3047
+ const moveY = Math.min(Math.max(offsetY + e2.clientY - downY, minTop), maxTop);
3048
+ transform = {
3049
+ offsetX: moveX,
3050
+ offsetY: moveY
3051
+ };
3052
+ targetRef.value.style.transform = `translate(${addUnit(moveX)}, ${addUnit(moveY)})`;
3053
+ };
3054
+ const onMouseup = () => {
3055
+ document.removeEventListener("mousemove", onMousemove);
3056
+ document.removeEventListener("mouseup", onMouseup);
3057
+ };
3058
+ document.addEventListener("mousemove", onMousemove);
3059
+ document.addEventListener("mouseup", onMouseup);
3060
+ };
3061
+ const onDraggable = () => {
3062
+ if (dragRef.value && targetRef.value) {
3063
+ dragRef.value.addEventListener("mousedown", onMousedown);
3064
+ }
3065
+ };
3066
+ const offDraggable = () => {
3067
+ if (dragRef.value && targetRef.value) {
3068
+ dragRef.value.removeEventListener("mousedown", onMousedown);
3069
+ }
3070
+ };
3071
+ onMounted(() => {
3072
+ watchEffect(() => {
3073
+ if (draggable.value) {
3074
+ onDraggable();
3075
+ } else {
3076
+ offDraggable();
3077
+ }
3078
+ });
3079
+ });
3080
+ onBeforeUnmount(() => {
3081
+ offDraggable();
3082
+ });
3083
+ };
3084
+
3018
3085
  const useFocus = (el) => {
3019
3086
  return {
3020
3087
  focus: () => {
@@ -4540,7 +4607,7 @@ if (isClient) {
4540
4607
  });
4541
4608
  }
4542
4609
 
4543
- const version$1 = "0.0.20220131";
4610
+ const version$1 = "0.0.20220204";
4544
4611
 
4545
4612
  const INSTALLED_KEY = Symbol("INSTALLED_KEY");
4546
4613
  const makeInstaller = (components = []) => {
@@ -6943,15 +7010,15 @@ const thumbProps = buildProps({
6943
7010
  always: Boolean
6944
7011
  });
6945
7012
 
6946
- const COMPONENT_NAME$9 = "Thumb";
7013
+ const COMPONENT_NAME$f = "Thumb";
6947
7014
  const _sfc_main$26 = defineComponent({
6948
- name: COMPONENT_NAME$9,
7015
+ name: COMPONENT_NAME$f,
6949
7016
  props: thumbProps,
6950
7017
  setup(props) {
6951
7018
  const scrollbar = inject(scrollbarContextKey);
6952
7019
  const ns = useNamespace("scrollbar");
6953
7020
  if (!scrollbar)
6954
- throwError(COMPONENT_NAME$9, "can not inject scrollbar context");
7021
+ throwError(COMPONENT_NAME$f, "can not inject scrollbar context");
6955
7022
  const instance = ref();
6956
7023
  const thumb = ref();
6957
7024
  const thumbState = ref({});
@@ -9258,9 +9325,9 @@ function _sfc_render$1Z(_ctx, _cache, $props, $setup, $data, $options) {
9258
9325
  }
9259
9326
  var ElPopperArrow = /* @__PURE__ */ _export_sfc$1(_sfc_main$22, [["render", _sfc_render$1Z]]);
9260
9327
 
9261
- const NAME$1 = "ElOnlyChild";
9328
+ const NAME = "ElOnlyChild";
9262
9329
  const OnlyChild = defineComponent({
9263
- name: NAME$1,
9330
+ name: NAME,
9264
9331
  setup(_, { slots, attrs }) {
9265
9332
  var _a;
9266
9333
  const forwardRefInjection = inject(FORWARD_REF_INJECTION_KEY, void 0);
@@ -9539,6 +9606,23 @@ function _sfc_render$1X(_ctx, _cache, $props, $setup, $data, $options) {
9539
9606
  }
9540
9607
  var ElPopperContent = /* @__PURE__ */ _export_sfc$1(_sfc_main$20, [["render", _sfc_render$1X]]);
9541
9608
 
9609
+ function useDeprecateAppendToBody(scope, from) {
9610
+ const vm = getCurrentInstance();
9611
+ const compatTeleported = computed(() => {
9612
+ return isBool(vm.props[from]) ? vm.props[from] : vm.props.teleported;
9613
+ });
9614
+ useDeprecated({
9615
+ scope,
9616
+ from,
9617
+ replacement: "teleported",
9618
+ version: "2.1.0",
9619
+ ref: "https://element-plus.org/en-US/component/tooltip.html#attributes"
9620
+ }, computed(() => isBool(vm.props[from])));
9621
+ return {
9622
+ compatTeleported
9623
+ };
9624
+ }
9625
+
9542
9626
  const ElPopper = withInstall(Popper);
9543
9627
 
9544
9628
  const _sfc_main$1$ = defineComponent({
@@ -10021,8 +10105,9 @@ var Tooltip = /* @__PURE__ */ _export_sfc$1(_sfc_main$1Y, [["render", _sfc_rende
10021
10105
 
10022
10106
  const ElTooltip = withInstall(Tooltip);
10023
10107
 
10108
+ const COMPONENT_NAME$e = "ElAutocomplete";
10024
10109
  const _sfc_main$1X = defineComponent({
10025
- name: "ElAutocomplete",
10110
+ name: COMPONENT_NAME$e,
10026
10111
  components: {
10027
10112
  ElTooltip,
10028
10113
  ElInput,
@@ -10083,8 +10168,9 @@ const _sfc_main$1X = defineComponent({
10083
10168
  },
10084
10169
  popperAppendToBody: {
10085
10170
  type: Boolean,
10086
- default: true
10171
+ default: void 0
10087
10172
  },
10173
+ teleported: useTooltipContentProps.teleported,
10088
10174
  highlightFirstItem: {
10089
10175
  type: Boolean,
10090
10176
  default: false
@@ -10101,6 +10187,7 @@ const _sfc_main$1X = defineComponent({
10101
10187
  ],
10102
10188
  setup(props, ctx) {
10103
10189
  const ns = useNamespace("autocomplete");
10190
+ const { compatTeleported } = useDeprecateAppendToBody(COMPONENT_NAME$e, "popperAppendToBody");
10104
10191
  const attrs = useAttrs();
10105
10192
  const suggestions = ref([]);
10106
10193
  const highlightedIndex = ref(-1);
@@ -10248,6 +10335,7 @@ const _sfc_main$1X = defineComponent({
10248
10335
  id,
10249
10336
  suggestionVisible,
10250
10337
  suggestionLoading,
10338
+ compatTeleported,
10251
10339
  getData,
10252
10340
  handleInput,
10253
10341
  handleChange,
@@ -10281,7 +10369,7 @@ function _sfc_render$1S(_ctx, _cache, $props, $setup, $data, $options) {
10281
10369
  placement: _ctx.placement,
10282
10370
  "fallback-placements": ["bottom-start", "top-start"],
10283
10371
  "popper-class": `${_ctx.ns.e("popper")} ${_ctx.popperClass}`,
10284
- "append-to-body": _ctx.popperAppendToBody,
10372
+ teleported: _ctx.compatTeleported,
10285
10373
  "gpu-acceleration": false,
10286
10374
  pure: "",
10287
10375
  "manual-mode": "",
@@ -10385,7 +10473,7 @@ function _sfc_render$1S(_ctx, _cache, $props, $setup, $data, $options) {
10385
10473
  ])
10386
10474
  ]),
10387
10475
  _: 3
10388
- }, 8, ["visible", "placement", "popper-class", "append-to-body", "transition", "onShow"]);
10476
+ }, 8, ["visible", "placement", "popper-class", "teleported", "transition", "onShow"]);
10389
10477
  }
10390
10478
  var Autocomplete = /* @__PURE__ */ _export_sfc$1(_sfc_main$1X, [["render", _sfc_render$1S]]);
10391
10479
 
@@ -10520,9 +10608,9 @@ const backtopEmits = {
10520
10608
  click: (evt) => evt instanceof MouseEvent
10521
10609
  };
10522
10610
 
10523
- const COMPONENT_NAME$8 = "ElBacktop";
10611
+ const COMPONENT_NAME$d = "ElBacktop";
10524
10612
  const _sfc_main$1V = defineComponent({
10525
- name: COMPONENT_NAME$8,
10613
+ name: COMPONENT_NAME$d,
10526
10614
  components: {
10527
10615
  ElIcon,
10528
10616
  CaretTop: caretTop
@@ -10568,7 +10656,7 @@ const _sfc_main$1V = defineComponent({
10568
10656
  if (props.target) {
10569
10657
  el.value = (_a = document.querySelector(props.target)) != null ? _a : void 0;
10570
10658
  if (!el.value) {
10571
- throwError(COMPONENT_NAME$8, `target is not existed: ${props.target}`);
10659
+ throwError(COMPONENT_NAME$d, `target is not existed: ${props.target}`);
10572
10660
  }
10573
10661
  container.value = el.value;
10574
10662
  }
@@ -10736,9 +10824,9 @@ const breadcrumbItemProps = buildProps({
10736
10824
  }
10737
10825
  });
10738
10826
 
10739
- const COMPONENT_NAME$7 = "ElBreadcrumbItem";
10827
+ const COMPONENT_NAME$c = "ElBreadcrumbItem";
10740
10828
  const _sfc_main$1S = defineComponent({
10741
- name: COMPONENT_NAME$7,
10829
+ name: COMPONENT_NAME$c,
10742
10830
  components: {
10743
10831
  ElIcon
10744
10832
  },
@@ -17316,8 +17404,9 @@ const popperOptions = {
17316
17404
  }
17317
17405
  ]
17318
17406
  };
17407
+ const COMPONENT_NAME$b = "ElCascader";
17319
17408
  const _sfc_main$1w = defineComponent({
17320
- name: "ElCascader",
17409
+ name: COMPONENT_NAME$b,
17321
17410
  components: {
17322
17411
  ElCascaderPanel: _CascaderPanel,
17323
17412
  ElInput,
@@ -17371,8 +17460,9 @@ const _sfc_main$1w = defineComponent({
17371
17460
  },
17372
17461
  popperAppendToBody: {
17373
17462
  type: Boolean,
17374
- default: true
17375
- }
17463
+ default: void 0
17464
+ },
17465
+ teleported: useTooltipContentProps.teleported
17376
17466
  },
17377
17467
  emits: [
17378
17468
  UPDATE_MODEL_EVENT,
@@ -17386,6 +17476,7 @@ const _sfc_main$1w = defineComponent({
17386
17476
  setup(props, { emit }) {
17387
17477
  let inputInitialHeight = 0;
17388
17478
  let pressDeleteCount = 0;
17479
+ const { compatTeleported } = useDeprecateAppendToBody(COMPONENT_NAME$b, "popperAppendToBody");
17389
17480
  const { t } = useLocale();
17390
17481
  const elForm = inject(elFormKey, {});
17391
17482
  const elFormItem = inject(elFormItemKey, {});
@@ -17699,6 +17790,7 @@ const _sfc_main$1w = defineComponent({
17699
17790
  multiple,
17700
17791
  readonly,
17701
17792
  clearBtnVisible,
17793
+ compatTeleported,
17702
17794
  t,
17703
17795
  togglePopperVisible,
17704
17796
  hideSuggestionPanel,
@@ -17739,7 +17831,7 @@ function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
17739
17831
  ref: "tooltipRef",
17740
17832
  visible: _ctx.popperVisible,
17741
17833
  "onUpdate:visible": _cache[17] || (_cache[17] = ($event) => _ctx.popperVisible = $event),
17742
- "append-to-body": _ctx.popperAppendToBody,
17834
+ teleported: _ctx.compatTeleported,
17743
17835
  "popper-class": `el-cascader__dropdown ${_ctx.popperClass}`,
17744
17836
  "popper-options": _ctx.popperOptions,
17745
17837
  "fallback-placements": [
@@ -17905,7 +17997,7 @@ function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
17905
17997
  ]) : createCommentVNode("v-if", true)
17906
17998
  ]),
17907
17999
  _: 3
17908
- }, 8, ["visible", "append-to-body", "popper-class", "popper-options", "onHide"]);
18000
+ }, 8, ["visible", "teleported", "popper-class", "popper-options", "onHide"]);
17909
18001
  }
17910
18002
  var Cascader = /* @__PURE__ */ _export_sfc$1(_sfc_main$1w, [["render", _sfc_render$1s]]);
17911
18003
 
@@ -22476,6 +22568,10 @@ const dialogProps = buildProps({
22476
22568
  type: Boolean,
22477
22569
  default: false
22478
22570
  },
22571
+ draggable: {
22572
+ type: Boolean,
22573
+ default: false
22574
+ },
22479
22575
  lockScroll: {
22480
22576
  type: Boolean,
22481
22577
  default: true
@@ -22666,17 +22762,24 @@ const _sfc_main$19 = defineComponent({
22666
22762
  emits: dialogEmits,
22667
22763
  setup(props, ctx) {
22668
22764
  const dialogRef = ref();
22765
+ const headerRef = ref();
22669
22766
  const dialog = useDialog(props, ctx, dialogRef);
22670
22767
  const overlayEvent = useSameTarget(dialog.onModalClick);
22768
+ const draggable = computed(() => props.draggable && !props.fullscreen);
22769
+ useDraggable(dialogRef, headerRef, draggable);
22671
22770
  return {
22672
22771
  dialogRef,
22772
+ headerRef,
22673
22773
  overlayEvent,
22674
22774
  ...dialog
22675
22775
  };
22676
22776
  }
22677
22777
  });
22678
22778
  const _hoisted_1$I = ["aria-label"];
22679
- const _hoisted_2$u = { class: "el-dialog__header" };
22779
+ const _hoisted_2$u = {
22780
+ ref: "headerRef",
22781
+ class: "el-dialog__header"
22782
+ };
22680
22783
  const _hoisted_3$l = { class: "el-dialog__title" };
22681
22784
  const _hoisted_4$c = {
22682
22785
  key: 0,
@@ -22720,6 +22823,7 @@ function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) {
22720
22823
  "el-dialog",
22721
22824
  {
22722
22825
  "is-fullscreen": _ctx.fullscreen,
22826
+ "is-draggable": _ctx.draggable,
22723
22827
  "el-dialog--center": _ctx.center
22724
22828
  },
22725
22829
  _ctx.customClass
@@ -22749,7 +22853,7 @@ function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) {
22749
22853
  _: 1
22750
22854
  })
22751
22855
  ])) : createCommentVNode("v-if", true)
22752
- ]),
22856
+ ], 512),
22753
22857
  _ctx.rendered ? (openBlock(), createElementBlock("div", _hoisted_4$c, [
22754
22858
  renderSlot(_ctx.$slots, "default")
22755
22859
  ])) : createCommentVNode("v-if", true),
@@ -27617,19 +27721,19 @@ const subMenuProps = buildProps({
27617
27721
  default: void 0
27618
27722
  }
27619
27723
  });
27620
- const COMPONENT_NAME$6 = "ElSubMenu";
27724
+ const COMPONENT_NAME$a = "ElSubMenu";
27621
27725
  var SubMenu = defineComponent({
27622
- name: COMPONENT_NAME$6,
27726
+ name: COMPONENT_NAME$a,
27623
27727
  props: subMenuProps,
27624
27728
  setup(props, { slots, expose }) {
27625
27729
  const instance = getCurrentInstance();
27626
27730
  const { paddingStyle, indexPath, parentMenu } = useMenu(instance, computed(() => props.index));
27627
27731
  const rootMenu = inject("rootMenu");
27628
27732
  if (!rootMenu)
27629
- throwError(COMPONENT_NAME$6, "can not inject root menu");
27733
+ throwError(COMPONENT_NAME$a, "can not inject root menu");
27630
27734
  const subMenu = inject(`subMenu:${parentMenu.value.uid}`);
27631
27735
  if (!subMenu)
27632
- throwError(COMPONENT_NAME$6, "can not inject sub menu");
27736
+ throwError(COMPONENT_NAME$a, "can not inject sub menu");
27633
27737
  const items = ref({});
27634
27738
  const subMenus = ref({});
27635
27739
  let timeout;
@@ -28152,9 +28256,9 @@ const menuItemEmits = {
28152
28256
  click: (item) => isString$1(item.index) && Array.isArray(item.indexPath)
28153
28257
  };
28154
28258
 
28155
- const COMPONENT_NAME$5 = "ElMenuItem";
28259
+ const COMPONENT_NAME$9 = "ElMenuItem";
28156
28260
  const _sfc_main$P = defineComponent({
28157
- name: COMPONENT_NAME$5,
28261
+ name: COMPONENT_NAME$9,
28158
28262
  components: {
28159
28263
  ElTooltip
28160
28264
  },
@@ -28164,11 +28268,11 @@ const _sfc_main$P = defineComponent({
28164
28268
  const instance = getCurrentInstance();
28165
28269
  const rootMenu = inject("rootMenu");
28166
28270
  if (!rootMenu)
28167
- throwError(COMPONENT_NAME$5, "can not inject root menu");
28271
+ throwError(COMPONENT_NAME$9, "can not inject root menu");
28168
28272
  const { parentMenu, paddingStyle, indexPath } = useMenu(instance, toRef(props, "index"));
28169
28273
  const subMenu = inject(`subMenu:${parentMenu.value.uid}`);
28170
28274
  if (!subMenu)
28171
- throwError(COMPONENT_NAME$5, "can not inject sub menu");
28275
+ throwError(COMPONENT_NAME$9, "can not inject sub menu");
28172
28276
  const active = computed(() => props.index === rootMenu.activeIndex);
28173
28277
  const item = reactive({
28174
28278
  index: props.index,
@@ -28252,15 +28356,15 @@ const menuItemGroupProps = {
28252
28356
  title: String
28253
28357
  };
28254
28358
 
28255
- const COMPONENT_NAME$4 = "ElMenuItemGroup";
28359
+ const COMPONENT_NAME$8 = "ElMenuItemGroup";
28256
28360
  const _sfc_main$O = defineComponent({
28257
- name: COMPONENT_NAME$4,
28361
+ name: COMPONENT_NAME$8,
28258
28362
  props: menuItemGroupProps,
28259
28363
  setup() {
28260
28364
  const instance = getCurrentInstance();
28261
28365
  const menu = inject("rootMenu");
28262
28366
  if (!menu)
28263
- throwError(COMPONENT_NAME$4, "can not inject root menu");
28367
+ throwError(COMPONENT_NAME$8, "can not inject root menu");
28264
28368
  const levelPadding = computed(() => {
28265
28369
  if (menu.props.collapse)
28266
28370
  return 20;
@@ -29345,9 +29449,10 @@ const useSelect$2 = (props, states, ctx) => {
29345
29449
  };
29346
29450
  };
29347
29451
 
29452
+ const COMPONENT_NAME$7 = "ElSelect";
29348
29453
  const _sfc_main$I = defineComponent({
29349
- name: "ElSelect",
29350
- componentName: "ElSelect",
29454
+ name: COMPONENT_NAME$7,
29455
+ componentName: COMPONENT_NAME$7,
29351
29456
  components: {
29352
29457
  ElInput,
29353
29458
  ElSelectMenu: ElSelectMenu$1,
@@ -29409,8 +29514,9 @@ const _sfc_main$I = defineComponent({
29409
29514
  collapseTags: Boolean,
29410
29515
  popperAppendToBody: {
29411
29516
  type: Boolean,
29412
- default: true
29517
+ default: void 0
29413
29518
  },
29519
+ teleported: useTooltipContentProps.teleported,
29414
29520
  clearIcon: {
29415
29521
  type: [String, Object],
29416
29522
  default: circleClose
@@ -29590,6 +29696,7 @@ const _sfc_main$I = defineComponent({
29590
29696
  var _a, _b;
29591
29697
  return (_b = (_a = tooltipRef.value) == null ? void 0 : _a.popperRef) == null ? void 0 : _b.contentRef;
29592
29698
  });
29699
+ const { compatTeleported } = useDeprecateAppendToBody(COMPONENT_NAME$7, "popperAppendToBody");
29593
29700
  return {
29594
29701
  tagInMultiLine,
29595
29702
  prefixWidth,
@@ -29650,7 +29757,8 @@ const _sfc_main$I = defineComponent({
29650
29757
  selectWrapper,
29651
29758
  scrollbar,
29652
29759
  wrapperKls,
29653
- selectTagsStyle
29760
+ selectTagsStyle,
29761
+ compatTeleported
29654
29762
  };
29655
29763
  }
29656
29764
  });
@@ -29682,7 +29790,7 @@ function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
29682
29790
  visible: _ctx.dropMenuVisible,
29683
29791
  "onUpdate:visible": _cache[23] || (_cache[23] = ($event) => _ctx.dropMenuVisible = $event),
29684
29792
  placement: "bottom-start",
29685
- "append-to-body": _ctx.popperAppendToBody,
29793
+ teleported: _ctx.compatTeleported,
29686
29794
  "popper-class": `el-select__popper ${_ctx.popperClass}`,
29687
29795
  "fallback-placements": ["bottom-start", "top-start", "right", "left"],
29688
29796
  effect: "light",
@@ -29901,7 +30009,7 @@ function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
29901
30009
  })
29902
30010
  ]),
29903
30011
  _: 3
29904
- }, 8, ["visible", "append-to-body", "popper-class", "onShow"])
30012
+ }, 8, ["visible", "teleported", "popper-class", "onShow"])
29905
30013
  ], 2)), [
29906
30014
  [_directive_click_outside, _ctx.handleClose, _ctx.popperPaneRef]
29907
30015
  ]);
@@ -30579,52 +30687,56 @@ var Pagination = defineComponent({
30579
30687
 
30580
30688
  const ElPagination = withInstall(Pagination);
30581
30689
 
30582
- const popconfirmProps = buildProps({
30583
- title: {
30584
- type: String
30585
- },
30586
- confirmButtonText: {
30587
- type: String
30588
- },
30589
- cancelButtonText: {
30590
- type: String
30591
- },
30592
- confirmButtonType: {
30593
- type: String,
30594
- values: buttonType,
30595
- default: "primary"
30596
- },
30597
- cancelButtonType: {
30598
- type: String,
30599
- values: buttonType,
30600
- default: "text"
30601
- },
30602
- icon: {
30603
- type: definePropType([String, Object]),
30604
- default: questionFilled
30605
- },
30606
- iconColor: {
30607
- type: String,
30608
- default: "#f90"
30609
- },
30610
- hideIcon: {
30611
- type: Boolean,
30612
- default: false
30613
- },
30614
- hideAfter: {
30615
- type: Number,
30616
- default: 200
30617
- },
30618
- onConfirm: {
30619
- type: definePropType(Function)
30620
- },
30621
- onCancel: {
30622
- type: definePropType(Function)
30623
- }
30624
- });
30690
+ const popconfirmProps = {
30691
+ ...buildProps({
30692
+ title: {
30693
+ type: String
30694
+ },
30695
+ confirmButtonText: {
30696
+ type: String
30697
+ },
30698
+ cancelButtonText: {
30699
+ type: String
30700
+ },
30701
+ confirmButtonType: {
30702
+ type: String,
30703
+ values: buttonType,
30704
+ default: "primary"
30705
+ },
30706
+ cancelButtonType: {
30707
+ type: String,
30708
+ values: buttonType,
30709
+ default: "text"
30710
+ },
30711
+ icon: {
30712
+ type: definePropType([String, Object]),
30713
+ default: questionFilled
30714
+ },
30715
+ iconColor: {
30716
+ type: String,
30717
+ default: "#f90"
30718
+ },
30719
+ hideIcon: {
30720
+ type: Boolean,
30721
+ default: false
30722
+ },
30723
+ hideAfter: {
30724
+ type: Number,
30725
+ default: 200
30726
+ },
30727
+ onConfirm: {
30728
+ type: definePropType(Function)
30729
+ },
30730
+ onCancel: {
30731
+ type: definePropType(Function)
30732
+ }
30733
+ }),
30734
+ teleported: useTooltipContentProps.teleported
30735
+ };
30625
30736
 
30737
+ const COMPONENT_NAME$6 = "Elpopperconfirm";
30626
30738
  const _sfc_main$C = defineComponent({
30627
- name: "ElPopconfirm",
30739
+ name: COMPONENT_NAME$6,
30628
30740
  components: {
30629
30741
  ElButton,
30630
30742
  ElTooltip,
@@ -30632,6 +30744,7 @@ const _sfc_main$C = defineComponent({
30632
30744
  },
30633
30745
  props: popconfirmProps,
30634
30746
  setup(props) {
30747
+ const { compatTeleported } = useDeprecateAppendToBody(COMPONENT_NAME$6, "appendToBody");
30635
30748
  const { t } = useLocale();
30636
30749
  const tooltipRef = ref();
30637
30750
  const hidePopper = () => {
@@ -30657,6 +30770,7 @@ const _sfc_main$C = defineComponent({
30657
30770
  finalConfirmButtonText,
30658
30771
  finalCancelButtonText,
30659
30772
  tooltipRef,
30773
+ compatTeleported,
30660
30774
  confirm,
30661
30775
  cancel
30662
30776
  };
@@ -30673,7 +30787,7 @@ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
30673
30787
  trigger: "click",
30674
30788
  effect: "light",
30675
30789
  "popper-class": "el-popover",
30676
- "append-to-body": "",
30790
+ teleported: _ctx.compatTeleported,
30677
30791
  "fallback-placements": ["bottom", "top", "right", "left"],
30678
30792
  "hide-after": _ctx.hideAfter,
30679
30793
  persistent: ""
@@ -30721,13 +30835,14 @@ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
30721
30835
  _ctx.$slots.reference ? renderSlot(_ctx.$slots, "reference", { key: 0 }) : createCommentVNode("v-if", true)
30722
30836
  ]),
30723
30837
  _: 3
30724
- }, 16, ["hide-after"]);
30838
+ }, 16, ["teleported", "hide-after"]);
30725
30839
  }
30726
30840
  var Popconfirm = /* @__PURE__ */ _export_sfc$1(_sfc_main$C, [["render", _sfc_render$y]]);
30727
30841
 
30728
30842
  const ElPopconfirm = withInstall(Popconfirm);
30729
30843
 
30730
30844
  const usePopoverProps = {
30845
+ appendToBody: { type: Boolean, default: void 0 },
30731
30846
  content: useTooltipContentProps.content,
30732
30847
  popperStyle: useTooltipContentProps.popperStyle,
30733
30848
  popperClass: useTooltipContentProps.popperClass,
@@ -30739,6 +30854,7 @@ const usePopoverProps = {
30739
30854
  ...useTooltipContentProps.effect,
30740
30855
  default: "light"
30741
30856
  },
30857
+ teleported: useTooltipContentProps.teleported,
30742
30858
  ...buildProps({
30743
30859
  title: String,
30744
30860
  width: {
@@ -30749,9 +30865,9 @@ const usePopoverProps = {
30749
30865
  };
30750
30866
 
30751
30867
  const emits = ["update:visible", "after-enter", "after-leave"];
30752
- const NAME = "ElPopover";
30868
+ const COMPONENT_NAME$5 = "ElPopover";
30753
30869
  const _sfc_main$B = defineComponent({
30754
- name: NAME,
30870
+ name: COMPONENT_NAME$5,
30755
30871
  components: {
30756
30872
  ElTooltip
30757
30873
  },
@@ -30784,6 +30900,7 @@ const _sfc_main$B = defineComponent({
30784
30900
  props.popperClass
30785
30901
  ];
30786
30902
  });
30903
+ const { compatTeleported } = useDeprecateAppendToBody(COMPONENT_NAME$5, "appendToBody");
30787
30904
  const hide = () => {
30788
30905
  var _a;
30789
30906
  (_a = tooltipRef.value) == null ? void 0 : _a.hide();
@@ -30795,6 +30912,7 @@ const _sfc_main$B = defineComponent({
30795
30912
  emit("after-leave");
30796
30913
  };
30797
30914
  return {
30915
+ compatTeleported,
30798
30916
  kls,
30799
30917
  style,
30800
30918
  tooltipRef,
@@ -30818,6 +30936,7 @@ function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
30818
30936
  enterable: _ctx.enterable,
30819
30937
  "popper-class": _ctx.kls,
30820
30938
  "popper-style": _ctx.style,
30939
+ teleported: _ctx.compatTeleported,
30821
30940
  persistent: "",
30822
30941
  onShow: _ctx.afterEnter,
30823
30942
  onHide: _ctx.afterLeave
@@ -30832,7 +30951,7 @@ function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
30832
30951
  _ctx.$slots.reference ? renderSlot(_ctx.$slots, "reference", { key: 0 }) : createCommentVNode("v-if", true)
30833
30952
  ]),
30834
30953
  _: 3
30835
- }, 16, ["aria-label", "effect", "enterable", "popper-class", "popper-style", "onShow", "onHide"]);
30954
+ }, 16, ["aria-label", "effect", "enterable", "popper-class", "popper-style", "teleported", "onShow", "onHide"]);
30836
30955
  }
30837
30956
  var Popover = /* @__PURE__ */ _export_sfc$1(_sfc_main$B, [["render", _sfc_render$x]]);
30838
30957
 
@@ -33433,8 +33552,9 @@ const SelectProps = {
33433
33552
  },
33434
33553
  popperAppendToBody: {
33435
33554
  type: Boolean,
33436
- default: true
33555
+ default: void 0
33437
33556
  },
33557
+ teleported: useTooltipContentProps.teleported,
33438
33558
  popperClass: {
33439
33559
  type: String,
33440
33560
  default: ""
@@ -33797,9 +33917,11 @@ const TAG_BASE_WIDTH = {
33797
33917
  default: 42,
33798
33918
  small: 33
33799
33919
  };
33920
+ const COMPONENT_NAME$4 = "ElSelectV2";
33800
33921
  const useSelect = (props, emit) => {
33801
33922
  const { t } = useLocale();
33802
33923
  const { form: elForm, formItem: elFormItem } = useFormItem();
33924
+ const { compatTeleported } = useDeprecateAppendToBody(COMPONENT_NAME$4, "popperAppendToBody");
33803
33925
  const states = reactive({
33804
33926
  inputValue: DEFAULT_INPUT_PLACEHOLDER,
33805
33927
  displayInputValue: DEFAULT_INPUT_PLACEHOLDER,
@@ -34376,7 +34498,7 @@ const useSelect = (props, emit) => {
34376
34498
  popperRef,
34377
34499
  validateState,
34378
34500
  validateIcon,
34379
- Effect,
34501
+ compatTeleported,
34380
34502
  debouncedOnInputChange,
34381
34503
  deleteTag,
34382
34504
  getLabel,
@@ -34472,7 +34594,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
34472
34594
  ref: "popper",
34473
34595
  visible: _ctx.dropdownMenuVisible,
34474
34596
  "onUpdate:visible": _cache[22] || (_cache[22] = ($event) => _ctx.dropdownMenuVisible = $event),
34475
- "append-to-body": _ctx.popperAppendToBody,
34597
+ teleported: _ctx.compatTeleported,
34476
34598
  "popper-class": `el-select-v2__popper ${_ctx.popperClass}`,
34477
34599
  "gpu-acceleration": false,
34478
34600
  "stop-popper-mouse-event": false,
@@ -34716,7 +34838,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
34716
34838
  }, 8, ["data", "width", "hovering-index", "scrollbar-always-on"])
34717
34839
  ]),
34718
34840
  _: 3
34719
- }, 8, ["visible", "append-to-body", "popper-class", "popper-options", "onShow"])
34841
+ }, 8, ["visible", "teleported", "popper-class", "popper-options", "onShow"])
34720
34842
  ], 34)), [
34721
34843
  [_directive_click_outside, _ctx.handleClickOutside, _ctx.popperRef]
34722
34844
  ]);
@@ -47424,6 +47546,7 @@ const _sfc_main$1 = defineComponent({
47424
47546
  default: true
47425
47547
  },
47426
47548
  center: Boolean,
47549
+ draggable: Boolean,
47427
47550
  roundButton: {
47428
47551
  default: false,
47429
47552
  type: Boolean
@@ -47482,8 +47605,10 @@ const _sfc_main$1 = defineComponent({
47482
47605
  const btnSize = useSize(computed(() => props.buttonSize), { prop: true, form: true, formItem: true });
47483
47606
  const iconComponent = computed(() => state.icon || TypeComponentsMap[state.type] || "");
47484
47607
  const hasMessage = computed(() => !!state.message);
47485
- const inputRef = ref(null);
47486
- const confirmRef = ref(null);
47608
+ const rootRef = ref();
47609
+ const headerRef = ref();
47610
+ const inputRef = ref();
47611
+ const confirmRef = ref();
47487
47612
  const confirmButtonClasses = computed(() => state.confirmButtonClass);
47488
47613
  watch(() => state.inputValue, async (val) => {
47489
47614
  await nextTick();
@@ -47514,6 +47639,8 @@ const _sfc_main$1 = defineComponent({
47514
47639
  state.validateError = false;
47515
47640
  }
47516
47641
  });
47642
+ const draggable = computed(() => props.draggable);
47643
+ useDraggable(rootRef, headerRef, draggable);
47517
47644
  onMounted(async () => {
47518
47645
  await nextTick();
47519
47646
  if (props.closeOnHashChange) {
@@ -47539,6 +47666,7 @@ const _sfc_main$1 = defineComponent({
47539
47666
  handleAction(state.distinguishCancelAndClose ? "close" : "cancel");
47540
47667
  }
47541
47668
  };
47669
+ const overlayEvent = useSameTarget(handleWrapperClick);
47542
47670
  const handleInputEnter = () => {
47543
47671
  if (state.inputType !== "textarea") {
47544
47672
  return handleAction("confirm");
@@ -47603,12 +47731,15 @@ const _sfc_main$1 = defineComponent({
47603
47731
  useRestoreActive(visible);
47604
47732
  return {
47605
47733
  ...toRefs(state),
47734
+ overlayEvent,
47606
47735
  visible,
47607
47736
  hasMessage,
47608
47737
  typeClass,
47609
47738
  btnSize,
47610
47739
  iconComponent,
47611
47740
  confirmButtonClasses,
47741
+ rootRef,
47742
+ headerRef,
47612
47743
  inputRef,
47613
47744
  confirmRef,
47614
47745
  doClose,
@@ -47623,6 +47754,7 @@ const _sfc_main$1 = defineComponent({
47623
47754
  const _hoisted_1$1 = ["aria-label"];
47624
47755
  const _hoisted_2$1 = {
47625
47756
  key: 0,
47757
+ ref: "headerRef",
47626
47758
  class: "el-message-box__header"
47627
47759
  };
47628
47760
  const _hoisted_3$1 = { class: "el-message-box__title" };
@@ -47645,137 +47777,145 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
47645
47777
  const _directive_trap_focus = resolveDirective("trap-focus");
47646
47778
  return openBlock(), createBlock(Transition, {
47647
47779
  name: "fade-in-linear",
47648
- onAfterLeave: _cache[7] || (_cache[7] = ($event) => _ctx.$emit("vanish"))
47780
+ onAfterLeave: _cache[11] || (_cache[11] = ($event) => _ctx.$emit("vanish"))
47649
47781
  }, {
47650
47782
  default: withCtx(() => [
47651
47783
  withDirectives(createVNode(_component_el_overlay, {
47652
47784
  "z-index": _ctx.zIndex,
47653
47785
  "overlay-class": ["is-message-box", _ctx.modalClass],
47654
- mask: _ctx.modal,
47655
- onClick: withModifiers(_ctx.handleWrapperClick, ["self"])
47786
+ mask: _ctx.modal
47656
47787
  }, {
47657
47788
  default: withCtx(() => [
47658
- withDirectives((openBlock(), createElementBlock("div", {
47659
- ref: "root",
47660
- role: "dialog",
47661
- "aria-label": _ctx.title || "dialog",
47662
- "aria-modal": "true",
47663
- class: normalizeClass([
47664
- "el-message-box",
47665
- _ctx.customClass,
47666
- { "el-message-box--center": _ctx.center }
47667
- ]),
47668
- style: normalizeStyle(_ctx.customStyle)
47789
+ createElementVNode("div", {
47790
+ class: "el-overlay-message-box",
47791
+ onClick: _cache[8] || (_cache[8] = (...args) => _ctx.overlayEvent.onClick && _ctx.overlayEvent.onClick(...args)),
47792
+ onMousedown: _cache[9] || (_cache[9] = (...args) => _ctx.overlayEvent.onMousedown && _ctx.overlayEvent.onMousedown(...args)),
47793
+ onMouseup: _cache[10] || (_cache[10] = (...args) => _ctx.overlayEvent.onMouseup && _ctx.overlayEvent.onMouseup(...args))
47669
47794
  }, [
47670
- _ctx.title !== null && _ctx.title !== void 0 ? (openBlock(), createElementBlock("div", _hoisted_2$1, [
47671
- createElementVNode("div", _hoisted_3$1, [
47672
- _ctx.iconComponent && _ctx.center ? (openBlock(), createBlock(_component_el_icon, {
47795
+ withDirectives((openBlock(), createElementBlock("div", {
47796
+ ref: "rootRef",
47797
+ role: "dialog",
47798
+ "aria-label": _ctx.title || "dialog",
47799
+ "aria-modal": "true",
47800
+ class: normalizeClass([
47801
+ "el-message-box",
47802
+ _ctx.customClass,
47803
+ { "el-message-box--center": _ctx.center, "is-draggable": _ctx.draggable }
47804
+ ]),
47805
+ style: normalizeStyle(_ctx.customStyle),
47806
+ onClick: _cache[7] || (_cache[7] = withModifiers(() => {
47807
+ }, ["stop"]))
47808
+ }, [
47809
+ _ctx.title !== null && _ctx.title !== void 0 ? (openBlock(), createElementBlock("div", _hoisted_2$1, [
47810
+ createElementVNode("div", _hoisted_3$1, [
47811
+ _ctx.iconComponent && _ctx.center ? (openBlock(), createBlock(_component_el_icon, {
47812
+ key: 0,
47813
+ class: normalizeClass(["el-message-box__status", _ctx.typeClass])
47814
+ }, {
47815
+ default: withCtx(() => [
47816
+ (openBlock(), createBlock(resolveDynamicComponent(_ctx.iconComponent)))
47817
+ ]),
47818
+ _: 1
47819
+ }, 8, ["class"])) : createCommentVNode("v-if", true),
47820
+ createElementVNode("span", null, toDisplayString(_ctx.title), 1)
47821
+ ]),
47822
+ _ctx.showClose ? (openBlock(), createElementBlock("button", {
47673
47823
  key: 0,
47674
- class: normalizeClass(["el-message-box__status", _ctx.typeClass])
47675
- }, {
47676
- default: withCtx(() => [
47677
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.iconComponent)))
47678
- ]),
47679
- _: 1
47680
- }, 8, ["class"])) : createCommentVNode("v-if", true),
47681
- createElementVNode("span", null, toDisplayString(_ctx.title), 1)
47824
+ type: "button",
47825
+ class: "el-message-box__headerbtn",
47826
+ "aria-label": "Close",
47827
+ onClick: _cache[0] || (_cache[0] = ($event) => _ctx.handleAction(_ctx.distinguishCancelAndClose ? "close" : "cancel")),
47828
+ onKeydown: _cache[1] || (_cache[1] = withKeys(withModifiers(($event) => _ctx.handleAction(_ctx.distinguishCancelAndClose ? "close" : "cancel"), ["prevent"]), ["enter"]))
47829
+ }, [
47830
+ createVNode(_component_el_icon, { class: "el-message-box__close" }, {
47831
+ default: withCtx(() => [
47832
+ createVNode(_component_close)
47833
+ ]),
47834
+ _: 1
47835
+ })
47836
+ ], 32)) : createCommentVNode("v-if", true)
47837
+ ], 512)) : createCommentVNode("v-if", true),
47838
+ createElementVNode("div", _hoisted_4$1, [
47839
+ createElementVNode("div", _hoisted_5$1, [
47840
+ _ctx.iconComponent && !_ctx.center && _ctx.hasMessage ? (openBlock(), createBlock(_component_el_icon, {
47841
+ key: 0,
47842
+ class: normalizeClass(["el-message-box__status", _ctx.typeClass])
47843
+ }, {
47844
+ default: withCtx(() => [
47845
+ (openBlock(), createBlock(resolveDynamicComponent(_ctx.iconComponent)))
47846
+ ]),
47847
+ _: 1
47848
+ }, 8, ["class"])) : createCommentVNode("v-if", true),
47849
+ _ctx.hasMessage ? (openBlock(), createElementBlock("div", _hoisted_6, [
47850
+ renderSlot(_ctx.$slots, "default", {}, () => [
47851
+ !_ctx.dangerouslyUseHTMLString ? (openBlock(), createElementBlock("p", _hoisted_7, toDisplayString(_ctx.message), 1)) : (openBlock(), createElementBlock("p", {
47852
+ key: 1,
47853
+ innerHTML: _ctx.message
47854
+ }, null, 8, _hoisted_8))
47855
+ ])
47856
+ ])) : createCommentVNode("v-if", true)
47857
+ ]),
47858
+ withDirectives(createElementVNode("div", _hoisted_9, [
47859
+ createVNode(_component_el_input, {
47860
+ ref: "inputRef",
47861
+ modelValue: _ctx.inputValue,
47862
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => _ctx.inputValue = $event),
47863
+ type: _ctx.inputType,
47864
+ placeholder: _ctx.inputPlaceholder,
47865
+ class: normalizeClass({ invalid: _ctx.validateError }),
47866
+ onKeydown: withKeys(withModifiers(_ctx.handleInputEnter, ["prevent"]), ["enter"])
47867
+ }, null, 8, ["modelValue", "type", "placeholder", "class", "onKeydown"]),
47868
+ createElementVNode("div", {
47869
+ class: "el-message-box__errormsg",
47870
+ style: normalizeStyle({
47871
+ visibility: !!_ctx.editorErrorMessage ? "visible" : "hidden"
47872
+ })
47873
+ }, toDisplayString(_ctx.editorErrorMessage), 5)
47874
+ ], 512), [
47875
+ [vShow, _ctx.showInput]
47876
+ ])
47682
47877
  ]),
47683
- _ctx.showClose ? (openBlock(), createElementBlock("button", {
47684
- key: 0,
47685
- type: "button",
47686
- class: "el-message-box__headerbtn",
47687
- "aria-label": "Close",
47688
- onClick: _cache[0] || (_cache[0] = ($event) => _ctx.handleAction(_ctx.distinguishCancelAndClose ? "close" : "cancel")),
47689
- onKeydown: _cache[1] || (_cache[1] = withKeys(withModifiers(($event) => _ctx.handleAction(_ctx.distinguishCancelAndClose ? "close" : "cancel"), ["prevent"]), ["enter"]))
47690
- }, [
47691
- createVNode(_component_el_icon, { class: "el-message-box__close" }, {
47878
+ createElementVNode("div", _hoisted_10, [
47879
+ _ctx.showCancelButton ? (openBlock(), createBlock(_component_el_button, {
47880
+ key: 0,
47881
+ loading: _ctx.cancelButtonLoading,
47882
+ class: normalizeClass([_ctx.cancelButtonClass]),
47883
+ round: _ctx.roundButton,
47884
+ size: _ctx.btnSize,
47885
+ onClick: _cache[3] || (_cache[3] = ($event) => _ctx.handleAction("cancel")),
47886
+ onKeydown: _cache[4] || (_cache[4] = withKeys(withModifiers(($event) => _ctx.handleAction("cancel"), ["prevent"]), ["enter"]))
47887
+ }, {
47692
47888
  default: withCtx(() => [
47693
- createVNode(_component_close)
47889
+ createTextVNode(toDisplayString(_ctx.cancelButtonText || _ctx.t("el.messagebox.cancel")), 1)
47694
47890
  ]),
47695
47891
  _: 1
47696
- })
47697
- ], 32)) : createCommentVNode("v-if", true)
47698
- ])) : createCommentVNode("v-if", true),
47699
- createElementVNode("div", _hoisted_4$1, [
47700
- createElementVNode("div", _hoisted_5$1, [
47701
- _ctx.iconComponent && !_ctx.center && _ctx.hasMessage ? (openBlock(), createBlock(_component_el_icon, {
47702
- key: 0,
47703
- class: normalizeClass(["el-message-box__status", _ctx.typeClass])
47892
+ }, 8, ["loading", "class", "round", "size"])) : createCommentVNode("v-if", true),
47893
+ withDirectives(createVNode(_component_el_button, {
47894
+ ref: "confirmRef",
47895
+ type: "primary",
47896
+ loading: _ctx.confirmButtonLoading,
47897
+ class: normalizeClass([_ctx.confirmButtonClasses]),
47898
+ round: _ctx.roundButton,
47899
+ disabled: _ctx.confirmButtonDisabled,
47900
+ size: _ctx.btnSize,
47901
+ onClick: _cache[5] || (_cache[5] = ($event) => _ctx.handleAction("confirm")),
47902
+ onKeydown: _cache[6] || (_cache[6] = withKeys(withModifiers(($event) => _ctx.handleAction("confirm"), ["prevent"]), ["enter"]))
47704
47903
  }, {
47705
47904
  default: withCtx(() => [
47706
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.iconComponent)))
47905
+ createTextVNode(toDisplayString(_ctx.confirmButtonText || _ctx.t("el.messagebox.confirm")), 1)
47707
47906
  ]),
47708
47907
  _: 1
47709
- }, 8, ["class"])) : createCommentVNode("v-if", true),
47710
- _ctx.hasMessage ? (openBlock(), createElementBlock("div", _hoisted_6, [
47711
- renderSlot(_ctx.$slots, "default", {}, () => [
47712
- !_ctx.dangerouslyUseHTMLString ? (openBlock(), createElementBlock("p", _hoisted_7, toDisplayString(_ctx.message), 1)) : (openBlock(), createElementBlock("p", {
47713
- key: 1,
47714
- innerHTML: _ctx.message
47715
- }, null, 8, _hoisted_8))
47716
- ])
47717
- ])) : createCommentVNode("v-if", true)
47718
- ]),
47719
- withDirectives(createElementVNode("div", _hoisted_9, [
47720
- createVNode(_component_el_input, {
47721
- ref: "inputRef",
47722
- modelValue: _ctx.inputValue,
47723
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => _ctx.inputValue = $event),
47724
- type: _ctx.inputType,
47725
- placeholder: _ctx.inputPlaceholder,
47726
- class: normalizeClass({ invalid: _ctx.validateError }),
47727
- onKeydown: withKeys(withModifiers(_ctx.handleInputEnter, ["prevent"]), ["enter"])
47728
- }, null, 8, ["modelValue", "type", "placeholder", "class", "onKeydown"]),
47729
- createElementVNode("div", {
47730
- class: "el-message-box__errormsg",
47731
- style: normalizeStyle({
47732
- visibility: !!_ctx.editorErrorMessage ? "visible" : "hidden"
47733
- })
47734
- }, toDisplayString(_ctx.editorErrorMessage), 5)
47735
- ], 512), [
47736
- [vShow, _ctx.showInput]
47737
- ])
47738
- ]),
47739
- createElementVNode("div", _hoisted_10, [
47740
- _ctx.showCancelButton ? (openBlock(), createBlock(_component_el_button, {
47741
- key: 0,
47742
- loading: _ctx.cancelButtonLoading,
47743
- class: normalizeClass([_ctx.cancelButtonClass]),
47744
- round: _ctx.roundButton,
47745
- size: _ctx.btnSize,
47746
- onClick: _cache[3] || (_cache[3] = ($event) => _ctx.handleAction("cancel")),
47747
- onKeydown: _cache[4] || (_cache[4] = withKeys(withModifiers(($event) => _ctx.handleAction("cancel"), ["prevent"]), ["enter"]))
47748
- }, {
47749
- default: withCtx(() => [
47750
- createTextVNode(toDisplayString(_ctx.cancelButtonText || _ctx.t("el.messagebox.cancel")), 1)
47751
- ]),
47752
- _: 1
47753
- }, 8, ["loading", "class", "round", "size"])) : createCommentVNode("v-if", true),
47754
- withDirectives(createVNode(_component_el_button, {
47755
- ref: "confirmRef",
47756
- type: "primary",
47757
- loading: _ctx.confirmButtonLoading,
47758
- class: normalizeClass([_ctx.confirmButtonClasses]),
47759
- round: _ctx.roundButton,
47760
- disabled: _ctx.confirmButtonDisabled,
47761
- size: _ctx.btnSize,
47762
- onClick: _cache[5] || (_cache[5] = ($event) => _ctx.handleAction("confirm")),
47763
- onKeydown: _cache[6] || (_cache[6] = withKeys(withModifiers(($event) => _ctx.handleAction("confirm"), ["prevent"]), ["enter"]))
47764
- }, {
47765
- default: withCtx(() => [
47766
- createTextVNode(toDisplayString(_ctx.confirmButtonText || _ctx.t("el.messagebox.confirm")), 1)
47767
- ]),
47768
- _: 1
47769
- }, 8, ["loading", "class", "round", "disabled", "size"]), [
47770
- [vShow, _ctx.showConfirmButton]
47908
+ }, 8, ["loading", "class", "round", "disabled", "size"]), [
47909
+ [vShow, _ctx.showConfirmButton]
47910
+ ])
47771
47911
  ])
47912
+ ], 14, _hoisted_1$1)), [
47913
+ [_directive_trap_focus]
47772
47914
  ])
47773
- ], 14, _hoisted_1$1)), [
47774
- [_directive_trap_focus]
47775
- ])
47915
+ ], 32)
47776
47916
  ]),
47777
47917
  _: 3
47778
- }, 8, ["z-index", "overlay-class", "mask", "onClick"]), [
47918
+ }, 8, ["z-index", "overlay-class", "mask"]), [
47779
47919
  [vShow, _ctx.visible]
47780
47920
  ])
47781
47921
  ]),
@@ -48258,4 +48398,4 @@ var installer = makeInstaller([...Components, ...Plugins]);
48258
48398
  const install = installer.install;
48259
48399
  const version = installer.version;
48260
48400
 
48261
- export { BAR_MAP, CASCADER_PANEL_INJECTION_KEY, CHANGE_EVENT, ClickOutside, CommonPicker, CommonProps, DEFAULT_FORMATS_DATE, DEFAULT_FORMATS_DATEPICKER, DEFAULT_FORMATS_TIME, DefaultProps, FixedSizeGrid$1 as DynamicSizeGrid, DynamicSizeList$1 as DynamicSizeList, Effect, ElAffix, ElAlert, ElAside, ElAutocomplete, ElAvatar, ElBacktop, ElBadge, ElBreadcrumb, ElBreadcrumbItem, ElButton, ElButtonGroup$1 as ElButtonGroup, ElCalendar, ElCard, ElCarousel, ElCarouselItem, ElCascader, ElCascaderPanel, ElCheckTag, ElCheckbox, ElCheckboxButton, ElCheckboxGroup$1 as ElCheckboxGroup, ElCol, ElCollapse, ElCollapseItem, ElCollapseTransition, ElColorPicker, ElConfigProvider, ElContainer, ElDatePicker, ElDescriptions, ElDescriptionsItem, ElDialog, ElDivider, ElDrawer, ElDropdown, ElDropdownItem, ElDropdownMenu, ElEmpty, ElFooter, ElForm, ElFormItem, ElHeader, ElIcon, ElImage, ElImageViewer, ElInfiniteScroll, ElInput, ElInputNumber, ElLink, ElLoading, ElLoadingDirective, ElLoadingService, ElMain, ElMenu, ElMenuItem, ElMenuItemGroup, ElMessage, ElMessageBox, ElNotification, ElOption$1 as ElOption, ElOptionGroup, ElOverlay, ElPageHeader, ElPagination, ElPopconfirm, ElPopover, ElPopoverDirective, ElPopper, ElPopperArrow, ElPopperContent, ElPopperTrigger, ElProgress, ElRadio, ElRadioButton, ElRadioGroup, ElRate, ElResult, ElRow, ElScrollbar, ElSelect, ElSelectV2, ElSkeleton, ElSkeletonItem, ElSlider, ElSpace, ElStep, ElSteps, ElSubMenu, ElSwitch, ElTabPane, ElTable, ElTableColumn, ElTabs, ElTag, ElTimePicker, ElTimeSelect, ElTimeline, ElTimelineItem, ElTooltip, ElTransfer, ElTree, ElTreeV2, ElUpload, ExpandTrigger$1 as ExpandTrigger, FORWARD_REF_INJECTION_KEY, FixedSizeGrid$3 as FixedSizeGrid, FixedSizeList$1 as FixedSizeList, ID_INJECTION_KEY, IconComponentMap, IconMap, Mousewheel, POPPER_CONTAINER_ID, POPPER_CONTAINER_SELECTOR, POPPER_CONTENT_INJECTION_KEY, POPPER_INJECTION_KEY, PopupManager, RepeatClick, Resize, TOOLTIP_INJECTION_KEY, TimePickPanel, TrapFocus, affixEmits, affixProps, alertEffects, alertEmits, alertProps, avatarEmits, avatarProps, backtopEmits, backtopProps, badgeProps, breadcrumbItemProps, breadcrumbProps, buildLocaleContext, buildTranslator, buttonEmits, buttonGroupContextKey, buttonNativeType, buttonProps, buttonType, calendarEmits, calendarProps, cardProps, checkTagEmits, checkTagProps, colProps, configProviderContextKey, configProviderProps, createModelToggleComposable, installer as default, dialogEmits, dialogProps, dividerProps, drawerEmits, drawerProps, elBreadcrumbKey, elFormItemKey, elFormKey, elPaginationKey, emptyProps, extractDateFormat, extractTimeFormat, iconProps, imageEmits, imageProps, imageViewerEmits, imageViewerProps, inputEmits, inputNumberEmits, inputNumberProps, inputProps, install, linkEmits, linkProps, makeInstaller, menuEmits, menuItemEmits, menuItemGroupProps, menuItemProps, menuProps, messageConfig, messageEmits, messageProps, messageTypes, notificationEmits, notificationProps, notificationTypes, overlayEmits, overlayProps, pageHeaderEmits, pageHeaderProps, paginationEmits, paginationProps, popconfirmProps, progressProps, provideGlobalConfig, radioButtonProps, radioEmits, radioGroupEmits, radioGroupKey, radioGroupProps, radioProps, radioPropsBase, rangeArr, rateEmits, rateProps, renderThumbStyle$1 as renderThumbStyle, resultProps, rowProps, scrollbarContextKey, scrollbarEmits, scrollbarProps, selectGroupKey, selectKey, selectV2InjectionKey, skeletonItemProps, skeletonProps, spaceProps, subMenuProps, switchEmits, switchProps, tabBar, tabNavProps, tabPaneProps, tabsEmits, tabsProps, tabsRootContextKey, tagEmits, tagProps, thumbProps, timePickerDefaultProps, timelineItemProps, translate, useAttrs, useCascaderConfig, useDelayedRender, useDelayedToggle, useDelayedToggleProps, useDialog, useDisabled$1 as useDisabled, useEscapeKeydown, useFocus, useFormItem, useForwardRef, useForwardRefDirective, useGlobalConfig, useId, useLocale, useLockscreen, useModal, useModelToggle$1 as useModelToggle, useModelToggleEmits$1 as useModelToggleEmits, useModelToggleProps$1 as useModelToggleProps, useNamespace, usePopperArrowProps, usePopperContainer, usePopperContentProps, usePopperCoreConfigProps, usePopperProps, usePopperTriggerProps, usePreventGlobal, useProp, useRadio, useRestoreActive, useSameTarget, useSize, useSizeProp, useSpace, useTeleport, useThrottleRender, useTimeout, useTooltipContentProps, useTooltipProps, useTooltipTriggerProps, useTransitionFallthrough, useTransitionFallthroughEmits, version, virtualizedGridProps, virtualizedListProps, virtualizedProps, virtualizedScrollbarProps };
48401
+ export { BAR_MAP, CASCADER_PANEL_INJECTION_KEY, CHANGE_EVENT, ClickOutside, CommonPicker, CommonProps, DEFAULT_FORMATS_DATE, DEFAULT_FORMATS_DATEPICKER, DEFAULT_FORMATS_TIME, DefaultProps, FixedSizeGrid$1 as DynamicSizeGrid, DynamicSizeList$1 as DynamicSizeList, Effect, ElAffix, ElAlert, ElAside, ElAutocomplete, ElAvatar, ElBacktop, ElBadge, ElBreadcrumb, ElBreadcrumbItem, ElButton, ElButtonGroup$1 as ElButtonGroup, ElCalendar, ElCard, ElCarousel, ElCarouselItem, ElCascader, ElCascaderPanel, ElCheckTag, ElCheckbox, ElCheckboxButton, ElCheckboxGroup$1 as ElCheckboxGroup, ElCol, ElCollapse, ElCollapseItem, ElCollapseTransition, ElColorPicker, ElConfigProvider, ElContainer, ElDatePicker, ElDescriptions, ElDescriptionsItem, ElDialog, ElDivider, ElDrawer, ElDropdown, ElDropdownItem, ElDropdownMenu, ElEmpty, ElFooter, ElForm, ElFormItem, ElHeader, ElIcon, ElImage, ElImageViewer, ElInfiniteScroll, ElInput, ElInputNumber, ElLink, ElLoading, ElLoadingDirective, ElLoadingService, ElMain, ElMenu, ElMenuItem, ElMenuItemGroup, ElMessage, ElMessageBox, ElNotification, ElOption$1 as ElOption, ElOptionGroup, ElOverlay, ElPageHeader, ElPagination, ElPopconfirm, ElPopover, ElPopoverDirective, ElPopper, ElPopperArrow, ElPopperContent, ElPopperTrigger, ElProgress, ElRadio, ElRadioButton, ElRadioGroup, ElRate, ElResult, ElRow, ElScrollbar, ElSelect, ElSelectV2, ElSkeleton, ElSkeletonItem, ElSlider, ElSpace, ElStep, ElSteps, ElSubMenu, ElSwitch, ElTabPane, ElTable, ElTableColumn, ElTabs, ElTag, ElTimePicker, ElTimeSelect, ElTimeline, ElTimelineItem, ElTooltip, ElTransfer, ElTree, ElTreeV2, ElUpload, ExpandTrigger$1 as ExpandTrigger, FORWARD_REF_INJECTION_KEY, FixedSizeGrid$3 as FixedSizeGrid, FixedSizeList$1 as FixedSizeList, ID_INJECTION_KEY, IconComponentMap, IconMap, Mousewheel, POPPER_CONTAINER_ID, POPPER_CONTAINER_SELECTOR, POPPER_CONTENT_INJECTION_KEY, POPPER_INJECTION_KEY, PopupManager, RepeatClick, Resize, TOOLTIP_INJECTION_KEY, TimePickPanel, TrapFocus, affixEmits, affixProps, alertEffects, alertEmits, alertProps, avatarEmits, avatarProps, backtopEmits, backtopProps, badgeProps, breadcrumbItemProps, breadcrumbProps, buildLocaleContext, buildTranslator, buttonEmits, buttonGroupContextKey, buttonNativeType, buttonProps, buttonType, calendarEmits, calendarProps, cardProps, checkTagEmits, checkTagProps, colProps, configProviderContextKey, configProviderProps, createModelToggleComposable, installer as default, dialogEmits, dialogProps, dividerProps, drawerEmits, drawerProps, elBreadcrumbKey, elFormItemKey, elFormKey, elPaginationKey, emptyProps, extractDateFormat, extractTimeFormat, iconProps, imageEmits, imageProps, imageViewerEmits, imageViewerProps, inputEmits, inputNumberEmits, inputNumberProps, inputProps, install, linkEmits, linkProps, makeInstaller, menuEmits, menuItemEmits, menuItemGroupProps, menuItemProps, menuProps, messageConfig, messageEmits, messageProps, messageTypes, notificationEmits, notificationProps, notificationTypes, overlayEmits, overlayProps, pageHeaderEmits, pageHeaderProps, paginationEmits, paginationProps, popconfirmProps, progressProps, provideGlobalConfig, radioButtonProps, radioEmits, radioGroupEmits, radioGroupKey, radioGroupProps, radioProps, radioPropsBase, rangeArr, rateEmits, rateProps, renderThumbStyle$1 as renderThumbStyle, resultProps, rowProps, scrollbarContextKey, scrollbarEmits, scrollbarProps, selectGroupKey, selectKey, selectV2InjectionKey, skeletonItemProps, skeletonProps, spaceProps, subMenuProps, switchEmits, switchProps, tabBar, tabNavProps, tabPaneProps, tabsEmits, tabsProps, tabsRootContextKey, tagEmits, tagProps, thumbProps, timePickerDefaultProps, timelineItemProps, translate, useAttrs, useCascaderConfig, useDelayedRender, useDelayedToggle, useDelayedToggleProps, useDeprecateAppendToBody, useDeprecated, useDialog, useDisabled$1 as useDisabled, useDraggable, useEscapeKeydown, useFocus, useFormItem, useForwardRef, useForwardRefDirective, useGlobalConfig, useId, useLocale, useLockscreen, useModal, useModelToggle$1 as useModelToggle, useModelToggleEmits$1 as useModelToggleEmits, useModelToggleProps$1 as useModelToggleProps, useNamespace, usePopperArrowProps, usePopperContainer, usePopperContentProps, usePopperCoreConfigProps, usePopperProps, usePopperTriggerProps, usePreventGlobal, useProp, useRadio, useRestoreActive, useSameTarget, useSize, useSizeProp, useSpace, useTeleport, useThrottleRender, useTimeout, useTooltipContentProps, useTooltipProps, useTooltipTriggerProps, useTransitionFallthrough, useTransitionFallthroughEmits, version, virtualizedGridProps, virtualizedListProps, virtualizedProps, virtualizedScrollbarProps };