@element-plus/nightly 0.0.20220309 → 0.0.20220312

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 (514) hide show
  1. package/attributes.json +1 -1
  2. package/dist/index.css +1 -1
  3. package/dist/index.full.js +1130 -867
  4. package/dist/index.full.min.js +14 -8
  5. package/dist/index.full.min.js.map +1 -1
  6. package/dist/index.full.min.mjs +17 -11
  7. package/dist/index.full.min.mjs.map +1 -1
  8. package/dist/index.full.mjs +1131 -869
  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/mg.js +1 -1
  134. package/dist/locale/mg.min.js +1 -1
  135. package/dist/locale/mg.min.mjs +1 -1
  136. package/dist/locale/mg.mjs +1 -1
  137. package/dist/locale/mn.js +1 -1
  138. package/dist/locale/mn.min.js +1 -1
  139. package/dist/locale/mn.min.mjs +1 -1
  140. package/dist/locale/mn.mjs +1 -1
  141. package/dist/locale/nb-no.js +1 -1
  142. package/dist/locale/nb-no.min.js +1 -1
  143. package/dist/locale/nb-no.min.mjs +1 -1
  144. package/dist/locale/nb-no.mjs +1 -1
  145. package/dist/locale/nl.js +1 -1
  146. package/dist/locale/nl.min.js +1 -1
  147. package/dist/locale/nl.min.mjs +1 -1
  148. package/dist/locale/nl.mjs +1 -1
  149. package/dist/locale/pa.js +1 -1
  150. package/dist/locale/pa.min.js +1 -1
  151. package/dist/locale/pa.min.mjs +1 -1
  152. package/dist/locale/pa.mjs +1 -1
  153. package/dist/locale/pl.js +1 -1
  154. package/dist/locale/pl.min.js +1 -1
  155. package/dist/locale/pl.min.mjs +1 -1
  156. package/dist/locale/pl.mjs +1 -1
  157. package/dist/locale/pt-br.js +1 -1
  158. package/dist/locale/pt-br.min.js +1 -1
  159. package/dist/locale/pt-br.min.mjs +1 -1
  160. package/dist/locale/pt-br.mjs +1 -1
  161. package/dist/locale/pt.js +1 -1
  162. package/dist/locale/pt.min.js +1 -1
  163. package/dist/locale/pt.min.mjs +1 -1
  164. package/dist/locale/pt.mjs +1 -1
  165. package/dist/locale/ro.js +1 -1
  166. package/dist/locale/ro.min.js +1 -1
  167. package/dist/locale/ro.min.mjs +1 -1
  168. package/dist/locale/ro.mjs +1 -1
  169. package/dist/locale/ru.js +1 -1
  170. package/dist/locale/ru.min.js +1 -1
  171. package/dist/locale/ru.min.mjs +1 -1
  172. package/dist/locale/ru.mjs +1 -1
  173. package/dist/locale/sk.js +1 -1
  174. package/dist/locale/sk.min.js +1 -1
  175. package/dist/locale/sk.min.mjs +1 -1
  176. package/dist/locale/sk.mjs +1 -1
  177. package/dist/locale/sl.js +1 -1
  178. package/dist/locale/sl.min.js +1 -1
  179. package/dist/locale/sl.min.mjs +1 -1
  180. package/dist/locale/sl.mjs +1 -1
  181. package/dist/locale/sr.js +1 -1
  182. package/dist/locale/sr.min.js +1 -1
  183. package/dist/locale/sr.min.mjs +1 -1
  184. package/dist/locale/sr.mjs +1 -1
  185. package/dist/locale/sv.js +1 -1
  186. package/dist/locale/sv.min.js +1 -1
  187. package/dist/locale/sv.min.mjs +1 -1
  188. package/dist/locale/sv.mjs +1 -1
  189. package/dist/locale/ta.js +1 -1
  190. package/dist/locale/ta.min.js +1 -1
  191. package/dist/locale/ta.min.mjs +1 -1
  192. package/dist/locale/ta.mjs +1 -1
  193. package/dist/locale/th.js +1 -1
  194. package/dist/locale/th.min.js +1 -1
  195. package/dist/locale/th.min.mjs +1 -1
  196. package/dist/locale/th.mjs +1 -1
  197. package/dist/locale/tk.js +1 -1
  198. package/dist/locale/tk.min.js +1 -1
  199. package/dist/locale/tk.min.mjs +1 -1
  200. package/dist/locale/tk.mjs +1 -1
  201. package/dist/locale/tr.js +1 -1
  202. package/dist/locale/tr.min.js +1 -1
  203. package/dist/locale/tr.min.mjs +1 -1
  204. package/dist/locale/tr.mjs +1 -1
  205. package/dist/locale/ug-cn.js +1 -1
  206. package/dist/locale/ug-cn.min.js +1 -1
  207. package/dist/locale/ug-cn.min.mjs +1 -1
  208. package/dist/locale/ug-cn.mjs +1 -1
  209. package/dist/locale/uk.js +1 -1
  210. package/dist/locale/uk.min.js +1 -1
  211. package/dist/locale/uk.min.mjs +1 -1
  212. package/dist/locale/uk.mjs +1 -1
  213. package/dist/locale/uz-uz.js +1 -1
  214. package/dist/locale/uz-uz.min.js +1 -1
  215. package/dist/locale/uz-uz.min.mjs +1 -1
  216. package/dist/locale/uz-uz.mjs +1 -1
  217. package/dist/locale/vi.js +1 -1
  218. package/dist/locale/vi.min.js +1 -1
  219. package/dist/locale/vi.min.mjs +1 -1
  220. package/dist/locale/vi.mjs +1 -1
  221. package/dist/locale/zh-cn.js +1 -1
  222. package/dist/locale/zh-cn.min.js +1 -1
  223. package/dist/locale/zh-cn.min.mjs +1 -1
  224. package/dist/locale/zh-cn.mjs +1 -1
  225. package/dist/locale/zh-tw.js +1 -1
  226. package/dist/locale/zh-tw.min.js +1 -1
  227. package/dist/locale/zh-tw.min.mjs +1 -1
  228. package/dist/locale/zh-tw.mjs +1 -1
  229. package/es/components/autocomplete/index.d.ts +621 -50
  230. package/es/components/autocomplete/src/autocomplete.vue.d.ts +621 -50
  231. package/es/components/autocomplete/src/autocomplete2.mjs +7 -6
  232. package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
  233. package/es/components/calendar/src/date-table2.mjs +2 -2
  234. package/es/components/calendar/src/date-table2.mjs.map +1 -1
  235. package/es/components/cascader/index.d.ts +522 -176
  236. package/es/components/cascader/src/index.mjs +63 -9
  237. package/es/components/cascader/src/index.mjs.map +1 -1
  238. package/es/components/cascader/src/index.vue.d.ts +262 -88
  239. package/es/components/cascader-panel/src/index.mjs +1 -1
  240. package/es/components/cascader-panel/src/index.mjs.map +1 -1
  241. package/es/components/cascader-panel/src/types.d.ts +1 -0
  242. package/es/components/cascader-panel/src/types.mjs.map +1 -1
  243. package/es/components/divider/index.d.ts +7 -0
  244. package/es/components/divider/index.mjs +2 -2
  245. package/es/components/divider/index.mjs.map +1 -1
  246. package/es/components/divider/src/divider.vue.d.ts +7 -0
  247. package/es/components/divider/src/divider2.mjs +21 -23
  248. package/es/components/divider/src/divider2.mjs.map +1 -1
  249. package/es/components/dropdown/index.d.ts +1 -1
  250. package/es/components/dropdown/src/dropdown.vue.d.ts +1 -1
  251. package/es/components/input/index.d.ts +125 -45
  252. package/es/components/input/index.mjs +2 -2
  253. package/es/components/input/index.mjs.map +1 -1
  254. package/es/components/input/src/input.d.ts +4 -3
  255. package/es/components/input/src/input.mjs +5 -1
  256. package/es/components/input/src/input.mjs.map +1 -1
  257. package/es/components/input/src/input.vue.d.ts +125 -45
  258. package/es/components/input/src/input2.mjs +261 -281
  259. package/es/components/input/src/input2.mjs.map +1 -1
  260. package/es/components/input/src/{calc-textarea-height.d.ts → utils.d.ts} +0 -0
  261. package/es/components/input/src/{calc-textarea-height.mjs → utils.mjs} +1 -1
  262. package/es/components/input/src/utils.mjs.map +1 -0
  263. package/es/components/input-number/index.d.ts +250 -90
  264. package/es/components/input-number/src/input-number.vue.d.ts +250 -90
  265. package/es/components/link/index.d.ts +42 -0
  266. package/es/components/link/index.mjs +2 -2
  267. package/es/components/link/index.mjs.map +1 -1
  268. package/es/components/link/src/link.vue.d.ts +42 -0
  269. package/es/components/link/src/link2.mjs +35 -39
  270. package/es/components/link/src/link2.mjs.map +1 -1
  271. package/es/components/message/src/message-method.mjs +3 -3
  272. package/es/components/message/src/message-method.mjs.map +1 -1
  273. package/es/components/message/src/message.d.ts +1 -1
  274. package/es/components/message/src/message.mjs +5 -1
  275. package/es/components/message/src/message.mjs.map +1 -1
  276. package/es/components/message/src/message.vue.d.ts +9 -3
  277. package/es/components/pagination/src/components/pager.mjs +24 -5
  278. package/es/components/pagination/src/components/pager.mjs.map +1 -1
  279. package/es/components/popover/index.d.ts +2 -2
  280. package/es/components/popover/src/index.vue.d.ts +1 -1
  281. package/es/components/popper/src/content.vue.d.ts +2 -2
  282. package/es/components/rate/index.d.ts +3 -3
  283. package/es/components/rate/src/rate.d.ts +1 -1
  284. package/es/components/rate/src/rate.mjs +1 -1
  285. package/es/components/rate/src/rate.mjs.map +1 -1
  286. package/es/components/rate/src/rate.vue.d.ts +3 -3
  287. package/es/components/rate/src/rate2.mjs +1 -1
  288. package/es/components/rate/src/rate2.mjs.map +1 -1
  289. package/es/components/scrollbar/src/thumb.vue.d.ts +1 -1
  290. package/es/components/select/index.d.ts +10 -1
  291. package/es/components/select/src/option.mjs +6 -5
  292. package/es/components/select/src/option.mjs.map +1 -1
  293. package/es/components/select/src/select.mjs +57 -4
  294. package/es/components/select/src/select.mjs.map +1 -1
  295. package/es/components/select/src/select.vue.d.ts +10 -1
  296. package/es/components/select/src/useSelect.d.ts +1 -1
  297. package/es/components/select/src/useSelect.mjs +7 -5
  298. package/es/components/select/src/useSelect.mjs.map +1 -1
  299. package/es/components/select-v2/index.d.ts +20 -2
  300. package/es/components/select-v2/src/defaults.d.ts +4 -0
  301. package/es/components/select-v2/src/defaults.mjs +4 -0
  302. package/es/components/select-v2/src/defaults.mjs.map +1 -1
  303. package/es/components/select-v2/src/select.mjs +53 -3
  304. package/es/components/select-v2/src/select.mjs.map +1 -1
  305. package/es/components/select-v2/src/select.vue.d.ts +10 -1
  306. package/es/components/slider/src/index.mjs +2 -1
  307. package/es/components/slider/src/index.mjs.map +1 -1
  308. package/es/components/table/src/config.d.ts +2 -1
  309. package/es/components/table/src/config.mjs +6 -2
  310. package/es/components/table/src/config.mjs.map +1 -1
  311. package/es/components/table/src/store/expand.mjs +0 -1
  312. package/es/components/table/src/store/expand.mjs.map +1 -1
  313. package/es/components/table/src/table/defaults.d.ts +3 -1
  314. package/es/components/table/src/table/defaults.mjs.map +1 -1
  315. package/es/components/table/src/table/style-helper.mjs +2 -2
  316. package/es/components/table/src/table/style-helper.mjs.map +1 -1
  317. package/es/components/table/src/table-body/render-helper.mjs +28 -21
  318. package/es/components/table/src/table-body/render-helper.mjs.map +1 -1
  319. package/es/components/table/src/table-body/styles-helper.mjs +0 -3
  320. package/es/components/table/src/table-body/styles-helper.mjs.map +1 -1
  321. package/es/components/table/src/util.mjs +2 -0
  322. package/es/components/table/src/util.mjs.map +1 -1
  323. package/es/components/tabs/src/tab-pane2.mjs +1 -1
  324. package/es/components/tabs/src/tab-pane2.mjs.map +1 -1
  325. package/es/components/time-select/index.d.ts +4 -4
  326. package/es/components/time-select/src/time-select.vue.d.ts +2 -2
  327. package/es/components/tooltip/src/content.vue.d.ts +3 -3
  328. package/es/components/tooltip/src/tooltip2.mjs +6 -1
  329. package/es/components/tooltip/src/tooltip2.mjs.map +1 -1
  330. package/es/components/upload/index.d.ts +22 -18
  331. package/es/components/upload/src/upload-content.d.ts +1 -1
  332. package/es/components/upload/src/upload-content.mjs +5 -0
  333. package/es/components/upload/src/upload-content.mjs.map +1 -1
  334. package/es/components/upload/src/upload-content.vue.d.ts +4 -4
  335. package/es/components/upload/src/upload-list2.mjs +31 -25
  336. package/es/components/upload/src/upload-list2.mjs.map +1 -1
  337. package/es/components/upload/src/upload.d.ts +5 -4
  338. package/es/components/upload/src/upload.mjs.map +1 -1
  339. package/es/components/upload/src/upload.vue.d.ts +67 -61
  340. package/es/components/upload/src/upload2.mjs +53 -33
  341. package/es/components/upload/src/upload2.mjs.map +1 -1
  342. package/es/components/upload/src/use-handlers.d.ts +3 -3
  343. package/es/components/upload/src/use-handlers.mjs +5 -4
  344. package/es/components/upload/src/use-handlers.mjs.map +1 -1
  345. package/es/components/virtual-list/src/hooks/use-grid-wheel.mjs +2 -2
  346. package/es/components/virtual-list/src/hooks/use-grid-wheel.mjs.map +1 -1
  347. package/es/components/virtual-list/src/hooks/use-wheel.mjs +2 -2
  348. package/es/components/virtual-list/src/hooks/use-wheel.mjs.map +1 -1
  349. package/es/components/virtual-list/src/utils.d.ts +0 -1
  350. package/es/components/virtual-list/src/utils.mjs +1 -3
  351. package/es/components/virtual-list/src/utils.mjs.map +1 -1
  352. package/es/index.d.ts +1 -0
  353. package/es/index.mjs +1 -0
  354. package/es/index.mjs.map +1 -1
  355. package/es/version.d.ts +1 -1
  356. package/es/version.mjs +1 -1
  357. package/es/version.mjs.map +1 -1
  358. package/lib/components/autocomplete/index.d.ts +621 -50
  359. package/lib/components/autocomplete/src/autocomplete.vue.d.ts +621 -50
  360. package/lib/components/autocomplete/src/autocomplete2.js +7 -6
  361. package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
  362. package/lib/components/calendar/src/date-table2.js +2 -2
  363. package/lib/components/calendar/src/date-table2.js.map +1 -1
  364. package/lib/components/cascader/index.d.ts +522 -176
  365. package/lib/components/cascader/src/index.js +62 -8
  366. package/lib/components/cascader/src/index.js.map +1 -1
  367. package/lib/components/cascader/src/index.vue.d.ts +262 -88
  368. package/lib/components/cascader-panel/src/index.js +1 -1
  369. package/lib/components/cascader-panel/src/index.js.map +1 -1
  370. package/lib/components/cascader-panel/src/types.d.ts +1 -0
  371. package/lib/components/cascader-panel/src/types.js.map +1 -1
  372. package/lib/components/divider/index.d.ts +7 -0
  373. package/lib/components/divider/src/divider.vue.d.ts +7 -0
  374. package/lib/components/divider/src/divider2.js +20 -22
  375. package/lib/components/divider/src/divider2.js.map +1 -1
  376. package/lib/components/dropdown/index.d.ts +1 -1
  377. package/lib/components/dropdown/src/dropdown.vue.d.ts +1 -1
  378. package/lib/components/input/index.d.ts +125 -45
  379. package/lib/components/input/src/input.d.ts +4 -3
  380. package/lib/components/input/src/input.js +5 -1
  381. package/lib/components/input/src/input.js.map +1 -1
  382. package/lib/components/input/src/input.vue.d.ts +125 -45
  383. package/lib/components/input/src/input2.js +271 -291
  384. package/lib/components/input/src/input2.js.map +1 -1
  385. package/lib/components/input/src/{calc-textarea-height.d.ts → utils.d.ts} +0 -0
  386. package/lib/components/input/src/{calc-textarea-height.js → utils.js} +1 -1
  387. package/lib/components/input/src/utils.js.map +1 -0
  388. package/lib/components/input-number/index.d.ts +250 -90
  389. package/lib/components/input-number/src/input-number.vue.d.ts +250 -90
  390. package/lib/components/link/index.d.ts +42 -0
  391. package/lib/components/link/src/link.vue.d.ts +42 -0
  392. package/lib/components/link/src/link2.js +37 -41
  393. package/lib/components/link/src/link2.js.map +1 -1
  394. package/lib/components/message/src/message-method.js +2 -2
  395. package/lib/components/message/src/message-method.js.map +1 -1
  396. package/lib/components/message/src/message.d.ts +1 -1
  397. package/lib/components/message/src/message.js +5 -1
  398. package/lib/components/message/src/message.js.map +1 -1
  399. package/lib/components/message/src/message.vue.d.ts +9 -3
  400. package/lib/components/pagination/src/components/pager.js +24 -5
  401. package/lib/components/pagination/src/components/pager.js.map +1 -1
  402. package/lib/components/popover/index.d.ts +2 -2
  403. package/lib/components/popover/src/index.vue.d.ts +1 -1
  404. package/lib/components/popper/src/content.vue.d.ts +2 -2
  405. package/lib/components/rate/index.d.ts +3 -3
  406. package/lib/components/rate/src/rate.d.ts +1 -1
  407. package/lib/components/rate/src/rate.js +1 -1
  408. package/lib/components/rate/src/rate.js.map +1 -1
  409. package/lib/components/rate/src/rate.vue.d.ts +3 -3
  410. package/lib/components/rate/src/rate2.js +1 -1
  411. package/lib/components/rate/src/rate2.js.map +1 -1
  412. package/lib/components/scrollbar/src/thumb.vue.d.ts +1 -1
  413. package/lib/components/select/index.d.ts +10 -1
  414. package/lib/components/select/src/option.js +5 -4
  415. package/lib/components/select/src/option.js.map +1 -1
  416. package/lib/components/select/src/select.js +56 -3
  417. package/lib/components/select/src/select.js.map +1 -1
  418. package/lib/components/select/src/select.vue.d.ts +10 -1
  419. package/lib/components/select/src/useSelect.d.ts +1 -1
  420. package/lib/components/select/src/useSelect.js +7 -5
  421. package/lib/components/select/src/useSelect.js.map +1 -1
  422. package/lib/components/select-v2/index.d.ts +20 -2
  423. package/lib/components/select-v2/src/defaults.d.ts +4 -0
  424. package/lib/components/select-v2/src/defaults.js +4 -0
  425. package/lib/components/select-v2/src/defaults.js.map +1 -1
  426. package/lib/components/select-v2/src/select.js +53 -3
  427. package/lib/components/select-v2/src/select.js.map +1 -1
  428. package/lib/components/select-v2/src/select.vue.d.ts +10 -1
  429. package/lib/components/slider/src/index.js +2 -1
  430. package/lib/components/slider/src/index.js.map +1 -1
  431. package/lib/components/table/src/config.d.ts +2 -1
  432. package/lib/components/table/src/config.js +6 -2
  433. package/lib/components/table/src/config.js.map +1 -1
  434. package/lib/components/table/src/store/expand.js +0 -1
  435. package/lib/components/table/src/store/expand.js.map +1 -1
  436. package/lib/components/table/src/table/defaults.d.ts +3 -1
  437. package/lib/components/table/src/table/defaults.js.map +1 -1
  438. package/lib/components/table/src/table/style-helper.js +2 -2
  439. package/lib/components/table/src/table/style-helper.js.map +1 -1
  440. package/lib/components/table/src/table-body/render-helper.js +28 -21
  441. package/lib/components/table/src/table-body/render-helper.js.map +1 -1
  442. package/lib/components/table/src/table-body/styles-helper.js +0 -3
  443. package/lib/components/table/src/table-body/styles-helper.js.map +1 -1
  444. package/lib/components/table/src/util.js +6 -0
  445. package/lib/components/table/src/util.js.map +1 -1
  446. package/lib/components/tabs/src/tab-pane2.js +1 -1
  447. package/lib/components/tabs/src/tab-pane2.js.map +1 -1
  448. package/lib/components/time-select/index.d.ts +4 -4
  449. package/lib/components/time-select/src/time-select.vue.d.ts +2 -2
  450. package/lib/components/tooltip/src/content.vue.d.ts +3 -3
  451. package/lib/components/tooltip/src/tooltip2.js +5 -0
  452. package/lib/components/tooltip/src/tooltip2.js.map +1 -1
  453. package/lib/components/upload/index.d.ts +22 -18
  454. package/lib/components/upload/src/upload-content.d.ts +1 -1
  455. package/lib/components/upload/src/upload-content.js +5 -0
  456. package/lib/components/upload/src/upload-content.js.map +1 -1
  457. package/lib/components/upload/src/upload-content.vue.d.ts +4 -4
  458. package/lib/components/upload/src/upload-list2.js +30 -24
  459. package/lib/components/upload/src/upload-list2.js.map +1 -1
  460. package/lib/components/upload/src/upload.d.ts +5 -4
  461. package/lib/components/upload/src/upload.js.map +1 -1
  462. package/lib/components/upload/src/upload.vue.d.ts +67 -61
  463. package/lib/components/upload/src/upload2.js +52 -32
  464. package/lib/components/upload/src/upload2.js.map +1 -1
  465. package/lib/components/upload/src/use-handlers.d.ts +3 -3
  466. package/lib/components/upload/src/use-handlers.js +5 -4
  467. package/lib/components/upload/src/use-handlers.js.map +1 -1
  468. package/lib/components/virtual-list/src/hooks/use-grid-wheel.js +2 -2
  469. package/lib/components/virtual-list/src/hooks/use-grid-wheel.js.map +1 -1
  470. package/lib/components/virtual-list/src/hooks/use-wheel.js +2 -2
  471. package/lib/components/virtual-list/src/hooks/use-wheel.js.map +1 -1
  472. package/lib/components/virtual-list/src/utils.d.ts +0 -1
  473. package/lib/components/virtual-list/src/utils.js +0 -3
  474. package/lib/components/virtual-list/src/utils.js.map +1 -1
  475. package/lib/index.d.ts +1 -0
  476. package/lib/index.js +9 -0
  477. package/lib/index.js.map +1 -1
  478. package/lib/version.d.ts +1 -1
  479. package/lib/version.js +1 -1
  480. package/lib/version.js.map +1 -1
  481. package/package.json +7 -6
  482. package/tags.json +1 -1
  483. package/theme-chalk/base.css +1 -1
  484. package/theme-chalk/el-carousel.css +1 -1
  485. package/theme-chalk/el-cascader.css +1 -1
  486. package/theme-chalk/el-collapse.css +1 -1
  487. package/theme-chalk/el-date-picker.css +1 -1
  488. package/theme-chalk/el-link.css +1 -1
  489. package/theme-chalk/el-menu.css +1 -1
  490. package/theme-chalk/el-pagination.css +1 -1
  491. package/theme-chalk/el-select.css +1 -1
  492. package/theme-chalk/el-slider.css +1 -1
  493. package/theme-chalk/el-time-picker.css +1 -1
  494. package/theme-chalk/el-time-select.css +1 -1
  495. package/theme-chalk/el-tree.css +1 -1
  496. package/theme-chalk/el-upload.css +1 -1
  497. package/theme-chalk/index.css +1 -1
  498. package/theme-chalk/src/carousel.scss +3 -0
  499. package/theme-chalk/src/cascader.scss +14 -0
  500. package/theme-chalk/src/common/transition.scss +6 -1
  501. package/theme-chalk/src/common/var.scss +2 -2
  502. package/theme-chalk/src/link.scss +28 -24
  503. package/theme-chalk/src/menu.scss +4 -0
  504. package/theme-chalk/src/mixins/_var.scss +1 -5
  505. package/theme-chalk/src/mixins/config.scss +1 -0
  506. package/theme-chalk/src/mixins/function.scss +16 -0
  507. package/theme-chalk/src/mixins/utils.scss +6 -0
  508. package/theme-chalk/src/pagination.scss +8 -8
  509. package/theme-chalk/src/select.scss +14 -0
  510. package/theme-chalk/src/slider.scss +1 -1
  511. package/theme-chalk/src/upload.scss +130 -118
  512. package/web-types.json +1 -1
  513. package/es/components/input/src/calc-textarea-height.mjs.map +0 -1
  514. package/lib/components/input/src/calc-textarea-height.js.map +0 -1
@@ -4,68 +4,79 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var vue = require('vue');
6
6
  var core = require('@vueuse/core');
7
- var index = require('../../icon/index.js');
7
+ var lodashUnified = require('lodash-unified');
8
+ var index$4 = require('../../icon/index.js');
8
9
  var iconsVue = require('@element-plus/icons-vue');
9
10
  require('../../../utils/index.js');
10
11
  require('../../../hooks/index.js');
11
12
  require('../../../constants/index.js');
12
- var calcTextareaHeight = require('./calc-textarea-height.js');
13
+ var utils = require('./utils.js');
13
14
  var input = require('./input.js');
14
- var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
15
- var index$1 = require('../../../hooks/use-attrs/index.js');
16
- var index$2 = require('../../../hooks/use-form-item/index.js');
17
- var index$3 = require('../../../hooks/use-common-props/index.js');
18
- var index$4 = require('../../../hooks/use-namespace/index.js');
15
+ var index = require('../../../hooks/use-attrs/index.js');
16
+ var index$1 = require('../../../hooks/use-form-item/index.js');
17
+ var index$2 = require('../../../hooks/use-common-props/index.js');
18
+ var index$3 = require('../../../hooks/use-namespace/index.js');
19
19
  var icon = require('../../../utils/vue/icon.js');
20
20
  var shared = require('@vue/shared');
21
21
  var event = require('../../../constants/event.js');
22
- var error = require('../../../utils/error.js');
23
22
  var i18n = require('../../../utils/i18n.js');
23
+ var error = require('../../../utils/error.js');
24
24
 
25
- const PENDANT_MAP = {
26
- suffix: "append",
27
- prefix: "prepend"
28
- };
29
- const _sfc_main = vue.defineComponent({
25
+ const _hoisted_1 = ["type", "disabled", "readonly", "autocomplete", "tabindex", "aria-label", "placeholder"];
26
+ const _hoisted_2 = ["tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder"];
27
+ const __default__ = {
30
28
  name: "ElInput",
31
- components: { ElIcon: index.ElIcon, CircleClose: iconsVue.CircleClose, IconView: iconsVue.View },
32
- inheritAttrs: false,
29
+ inheritAttrs: false
30
+ };
31
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
32
+ ...__default__,
33
33
  props: input.inputProps,
34
34
  emits: input.inputEmits,
35
- setup(props, { slots, emit, attrs: rawAttrs }) {
35
+ setup(__props, { expose, emit }) {
36
+ const props = __props;
37
+ const PENDANT_MAP = {
38
+ suffix: "append",
39
+ prefix: "prepend"
40
+ };
36
41
  const instance = vue.getCurrentInstance();
37
- const attrs = index$1.useAttrs();
38
- const { form, formItem } = index$2.useFormItem();
39
- const inputSize = index$3.useSize();
40
- const inputDisabled = index$3.useDisabled();
41
- const nsInput = index$4.useNamespace("input");
42
- const nsTextarea = index$4.useNamespace("textarea");
43
- const input = vue.ref();
44
- const textarea = vue.ref();
42
+ const rawAttrs = vue.useAttrs();
43
+ const slots = vue.useSlots();
44
+ const attrs = index.useAttrs();
45
+ const { form, formItem } = index$1.useFormItem();
46
+ const inputSize = index$2.useSize();
47
+ const inputDisabled = index$2.useDisabled();
48
+ const nsInput = index$3.useNamespace("input");
49
+ const nsTextarea = index$3.useNamespace("textarea");
50
+ const input = vue.shallowRef();
51
+ const textarea = vue.shallowRef();
45
52
  const focused = vue.ref(false);
46
53
  const hovering = vue.ref(false);
47
54
  const isComposing = vue.ref(false);
48
55
  const passwordVisible = vue.ref(false);
49
- const _textareaCalcStyle = vue.shallowRef(props.inputStyle);
50
- const inputOrTextarea = vue.computed(() => input.value || textarea.value);
56
+ const textareaCalcStyle = vue.shallowRef(props.inputStyle);
57
+ const _ref = vue.computed(() => input.value || textarea.value);
51
58
  const needStatusIcon = vue.computed(() => {
52
59
  var _a;
53
60
  return (_a = form == null ? void 0 : form.statusIcon) != null ? _a : false;
54
61
  });
55
62
  const validateState = vue.computed(() => (formItem == null ? void 0 : formItem.validateState) || "");
56
63
  const validateIcon = vue.computed(() => icon.ValidateComponentsMap[validateState.value]);
57
- const containerStyle = vue.computed(() => rawAttrs.style);
58
- const computedTextareaStyle = vue.computed(() => [
64
+ const containerStyle = vue.computed(() => [
65
+ rawAttrs.style,
66
+ props.inputStyle
67
+ ]);
68
+ const textareaStyle = vue.computed(() => [
59
69
  props.inputStyle,
60
- _textareaCalcStyle.value,
70
+ textareaCalcStyle.value,
61
71
  { resize: props.resize }
62
72
  ]);
63
- const nativeInputValue = vue.computed(() => props.modelValue === null || props.modelValue === void 0 ? "" : String(props.modelValue));
73
+ const nativeInputValue = vue.computed(() => lodashUnified.isNil(props.modelValue) ? "" : String(props.modelValue));
64
74
  const showClear = vue.computed(() => props.clearable && !inputDisabled.value && !props.readonly && !!nativeInputValue.value && (focused.value || hovering.value));
65
75
  const showPwdVisible = vue.computed(() => props.showPassword && !inputDisabled.value && !props.readonly && (!!nativeInputValue.value || focused.value));
66
76
  const isWordLimitVisible = vue.computed(() => props.showWordLimit && !!attrs.value.maxlength && (props.type === "text" || props.type === "textarea") && !inputDisabled.value && !props.readonly && !props.showPassword);
67
77
  const textLength = vue.computed(() => Array.from(nativeInputValue.value).length);
68
78
  const inputExceed = vue.computed(() => !!isWordLimitVisible.value && textLength.value > Number(attrs.value.maxlength));
79
+ const suffixVisible = vue.computed(() => !!slots.suffix || !!props.suffixIcon || showClear.value || props.showPassword || isWordLimitVisible.value || !!validateState.value && needStatusIcon.value);
69
80
  const resizeTextarea = () => {
70
81
  const { type, autosize } = props;
71
82
  if (!core.isClient || type !== "textarea")
@@ -73,17 +84,17 @@ const _sfc_main = vue.defineComponent({
73
84
  if (autosize) {
74
85
  const minRows = shared.isObject(autosize) ? autosize.minRows : void 0;
75
86
  const maxRows = shared.isObject(autosize) ? autosize.maxRows : void 0;
76
- _textareaCalcStyle.value = {
77
- ...calcTextareaHeight.calcTextareaHeight(textarea.value, minRows, maxRows)
87
+ textareaCalcStyle.value = {
88
+ ...utils.calcTextareaHeight(textarea.value, minRows, maxRows)
78
89
  };
79
90
  } else {
80
- _textareaCalcStyle.value = {
81
- minHeight: calcTextareaHeight.calcTextareaHeight(textarea.value).minHeight
91
+ textareaCalcStyle.value = {
92
+ minHeight: utils.calcTextareaHeight(textarea.value).minHeight
82
93
  };
83
94
  }
84
95
  };
85
96
  const setNativeInputValue = () => {
86
- const input2 = inputOrTextarea.value;
97
+ const input2 = _ref.value;
87
98
  if (!input2 || input2.value === nativeInputValue.value)
88
99
  return;
89
100
  input2.value = nativeInputValue.value;
@@ -107,7 +118,7 @@ const _sfc_main = vue.defineComponent({
107
118
  calcIconOffset("prefix");
108
119
  calcIconOffset("suffix");
109
120
  };
110
- const handleInput = (event$1) => {
121
+ const handleInput = async (event$1) => {
111
122
  const { value } = event$1.target;
112
123
  if (isComposing.value)
113
124
  return;
@@ -115,20 +126,42 @@ const _sfc_main = vue.defineComponent({
115
126
  return;
116
127
  emit(event.UPDATE_MODEL_EVENT, value);
117
128
  emit("input", value);
118
- vue.nextTick(setNativeInputValue);
129
+ await vue.nextTick();
130
+ setNativeInputValue();
119
131
  };
120
132
  const handleChange = (event) => {
121
133
  emit("change", event.target.value);
122
134
  };
123
- const focus = () => {
124
- vue.nextTick(() => {
125
- var _a;
126
- (_a = inputOrTextarea.value) == null ? void 0 : _a.focus();
127
- });
135
+ const handleCompositionStart = (event) => {
136
+ emit("compositionstart", event);
137
+ isComposing.value = true;
138
+ };
139
+ const handleCompositionUpdate = (event) => {
140
+ var _a;
141
+ emit("compositionupdate", event);
142
+ const text = (_a = event.target) == null ? void 0 : _a.value;
143
+ const lastCharacter = text[text.length - 1] || "";
144
+ isComposing.value = !i18n.isKorean(lastCharacter);
145
+ };
146
+ const handleCompositionEnd = (event) => {
147
+ emit("compositionend", event);
148
+ if (isComposing.value) {
149
+ isComposing.value = false;
150
+ handleInput(event);
151
+ }
152
+ };
153
+ const handlePasswordVisible = () => {
154
+ passwordVisible.value = !passwordVisible.value;
155
+ focus();
156
+ };
157
+ const focus = async () => {
158
+ var _a;
159
+ await vue.nextTick();
160
+ (_a = _ref.value) == null ? void 0 : _a.focus();
128
161
  };
129
162
  const blur = () => {
130
163
  var _a;
131
- (_a = inputOrTextarea.value) == null ? void 0 : _a.blur();
164
+ return (_a = _ref.value) == null ? void 0 : _a.blur();
132
165
  };
133
166
  const handleFocus = (event) => {
134
167
  focused.value = true;
@@ -142,27 +175,20 @@ const _sfc_main = vue.defineComponent({
142
175
  (_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur").catch((err) => error.debugWarn(err));
143
176
  }
144
177
  };
145
- const select = () => {
146
- var _a;
147
- (_a = inputOrTextarea.value) == null ? void 0 : _a.select();
178
+ const handleMouseLeave = (evt) => {
179
+ hovering.value = false;
180
+ emit("mouseleave", evt);
148
181
  };
149
- const handleCompositionStart = (event) => {
150
- emit("compositionstart", event);
151
- isComposing.value = true;
182
+ const handleMouseEnter = (evt) => {
183
+ hovering.value = true;
184
+ emit("mouseenter", evt);
152
185
  };
153
- const handleCompositionUpdate = (event) => {
154
- var _a;
155
- emit("compositionupdate", event);
156
- const text = (_a = event.target) == null ? void 0 : _a.value;
157
- const lastCharacter = text[text.length - 1] || "";
158
- isComposing.value = !i18n.isKorean(lastCharacter);
186
+ const handleKeydown = (evt) => {
187
+ emit("keydown", evt);
159
188
  };
160
- const handleCompositionEnd = (event) => {
161
- emit("compositionend", event);
162
- if (isComposing.value) {
163
- isComposing.value = false;
164
- handleInput(event);
165
- }
189
+ const select = () => {
190
+ var _a;
191
+ (_a = _ref.value) == null ? void 0 : _a.select();
166
192
  };
167
193
  const clear = () => {
168
194
  emit(event.UPDATE_MODEL_EVENT, "");
@@ -170,262 +196,216 @@ const _sfc_main = vue.defineComponent({
170
196
  emit("clear");
171
197
  emit("input", "");
172
198
  };
173
- const handlePasswordVisible = () => {
174
- passwordVisible.value = !passwordVisible.value;
175
- focus();
176
- };
177
- const suffixVisible = vue.computed(() => !!slots.suffix || !!props.suffixIcon || showClear.value || props.showPassword || isWordLimitVisible.value || !!validateState.value && needStatusIcon.value);
178
199
  vue.watch(() => props.modelValue, () => {
179
200
  var _a;
180
- vue.nextTick(resizeTextarea);
201
+ vue.nextTick(() => resizeTextarea());
181
202
  if (props.validateEvent) {
182
203
  (_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change").catch((err) => error.debugWarn(err));
183
204
  }
184
205
  });
185
206
  vue.watch(nativeInputValue, () => setNativeInputValue());
186
- vue.watch(() => props.type, () => {
187
- vue.nextTick(() => {
188
- setNativeInputValue();
189
- resizeTextarea();
190
- updateIconOffset();
191
- });
207
+ vue.watch(() => props.type, async () => {
208
+ await vue.nextTick();
209
+ setNativeInputValue();
210
+ resizeTextarea();
211
+ updateIconOffset();
192
212
  });
193
- vue.onMounted(() => {
213
+ vue.onMounted(async () => {
194
214
  setNativeInputValue();
195
215
  updateIconOffset();
196
- vue.nextTick(resizeTextarea);
216
+ await vue.nextTick();
217
+ resizeTextarea();
197
218
  });
198
- vue.onUpdated(() => {
199
- vue.nextTick(updateIconOffset);
219
+ vue.onUpdated(async () => {
220
+ await vue.nextTick();
221
+ updateIconOffset();
200
222
  });
201
- const onMouseLeave = (evt) => {
202
- hovering.value = false;
203
- emit("mouseleave", evt);
204
- };
205
- const onMouseEnter = (evt) => {
206
- hovering.value = true;
207
- emit("mouseenter", evt);
208
- };
209
- const handleKeydown = (evt) => {
210
- emit("keydown", evt);
211
- };
212
- return {
223
+ expose({
213
224
  input,
214
225
  textarea,
215
- attrs,
216
- inputSize,
217
- validateState,
218
- validateIcon,
219
- containerStyle,
220
- computedTextareaStyle,
221
- inputDisabled,
222
- showClear,
223
- showPwdVisible,
224
- isWordLimitVisible,
225
- textLength,
226
- hovering,
227
- inputExceed,
228
- passwordVisible,
229
- inputOrTextarea,
230
- suffixVisible,
231
- needStatusIcon,
232
- resizeTextarea,
233
- handleInput,
234
- handleChange,
235
- handleFocus,
236
- handleBlur,
237
- handleCompositionStart,
238
- handleCompositionUpdate,
239
- handleCompositionEnd,
240
- handlePasswordVisible,
241
- clear,
242
- select,
226
+ ref: _ref,
227
+ textareaStyle,
228
+ autosize: vue.toRef(props, "autosize"),
243
229
  focus,
244
230
  blur,
245
- onMouseLeave,
246
- onMouseEnter,
247
- handleKeydown,
248
- nsInput,
249
- nsTextarea
250
- };
251
- }
252
- });
253
- const _hoisted_1 = ["type", "disabled", "readonly", "autocomplete", "tabindex", "aria-label", "placeholder"];
254
- const _hoisted_2 = ["tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder"];
255
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
256
- const _component_el_icon = vue.resolveComponent("el-icon");
257
- const _component_circle_close = vue.resolveComponent("circle-close");
258
- const _component_icon_view = vue.resolveComponent("icon-view");
259
- return vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
260
- class: vue.normalizeClass([
261
- _ctx.type === "textarea" ? _ctx.nsTextarea.b() : _ctx.nsInput.b(),
262
- _ctx.nsInput.m(_ctx.inputSize),
263
- _ctx.nsInput.is("disabled", _ctx.inputDisabled),
264
- _ctx.nsInput.is("exceed", _ctx.inputExceed),
265
- {
266
- [_ctx.nsInput.b("group")]: _ctx.$slots.prepend || _ctx.$slots.append,
267
- [_ctx.nsInput.bm("group", "append")]: _ctx.$slots.append,
268
- [_ctx.nsInput.bm("group", "prepend")]: _ctx.$slots.prepend,
269
- [_ctx.nsInput.m("prefix")]: _ctx.$slots.prefix || _ctx.prefixIcon,
270
- [_ctx.nsInput.m("suffix")]: _ctx.$slots.suffix || _ctx.suffixIcon || _ctx.clearable || _ctx.showPassword,
271
- [_ctx.nsInput.m("suffix--password-clear")]: _ctx.showClear && _ctx.showPwdVisible
272
- },
273
- _ctx.$attrs.class
274
- ]),
275
- style: vue.normalizeStyle(_ctx.containerStyle),
276
- onMouseenter: _cache[17] || (_cache[17] = (...args) => _ctx.onMouseEnter && _ctx.onMouseEnter(...args)),
277
- onMouseleave: _cache[18] || (_cache[18] = (...args) => _ctx.onMouseLeave && _ctx.onMouseLeave(...args))
278
- }, [
279
- vue.createCommentVNode(" input "),
280
- _ctx.type !== "textarea" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
281
- vue.createCommentVNode(" prepend slot "),
282
- _ctx.$slots.prepend ? (vue.openBlock(), vue.createElementBlock("div", {
283
- key: 0,
284
- class: vue.normalizeClass(_ctx.nsInput.be("group", "prepend"))
285
- }, [
286
- vue.renderSlot(_ctx.$slots, "prepend")
287
- ], 2)) : vue.createCommentVNode("v-if", true),
288
- vue.createElementVNode("input", vue.mergeProps({
289
- ref: "input",
290
- class: _ctx.nsInput.e("inner")
291
- }, _ctx.attrs, {
292
- type: _ctx.showPassword ? _ctx.passwordVisible ? "text" : "password" : _ctx.type,
293
- disabled: _ctx.inputDisabled,
294
- readonly: _ctx.readonly,
295
- autocomplete: _ctx.autocomplete,
296
- tabindex: _ctx.tabindex,
297
- "aria-label": _ctx.label,
298
- placeholder: _ctx.placeholder,
299
- style: _ctx.inputStyle,
300
- onCompositionstart: _cache[0] || (_cache[0] = (...args) => _ctx.handleCompositionStart && _ctx.handleCompositionStart(...args)),
301
- onCompositionupdate: _cache[1] || (_cache[1] = (...args) => _ctx.handleCompositionUpdate && _ctx.handleCompositionUpdate(...args)),
302
- onCompositionend: _cache[2] || (_cache[2] = (...args) => _ctx.handleCompositionEnd && _ctx.handleCompositionEnd(...args)),
303
- onInput: _cache[3] || (_cache[3] = (...args) => _ctx.handleInput && _ctx.handleInput(...args)),
304
- onFocus: _cache[4] || (_cache[4] = (...args) => _ctx.handleFocus && _ctx.handleFocus(...args)),
305
- onBlur: _cache[5] || (_cache[5] = (...args) => _ctx.handleBlur && _ctx.handleBlur(...args)),
306
- onChange: _cache[6] || (_cache[6] = (...args) => _ctx.handleChange && _ctx.handleChange(...args)),
307
- onKeydown: _cache[7] || (_cache[7] = (...args) => _ctx.handleKeydown && _ctx.handleKeydown(...args))
308
- }), null, 16, _hoisted_1),
309
- vue.createCommentVNode(" prefix slot "),
310
- _ctx.$slots.prefix || _ctx.prefixIcon ? (vue.openBlock(), vue.createElementBlock("span", {
311
- key: 1,
312
- class: vue.normalizeClass(_ctx.nsInput.e("prefix"))
231
+ select,
232
+ clear,
233
+ resizeTextarea
234
+ });
235
+ return (_ctx, _cache) => {
236
+ return vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
237
+ class: vue.normalizeClass([
238
+ _ctx.type === "textarea" ? vue.unref(nsTextarea).b() : vue.unref(nsInput).b(),
239
+ vue.unref(nsInput).m(vue.unref(inputSize)),
240
+ vue.unref(nsInput).is("disabled", vue.unref(inputDisabled)),
241
+ vue.unref(nsInput).is("exceed", vue.unref(inputExceed)),
242
+ {
243
+ [vue.unref(nsInput).b("group")]: _ctx.$slots.prepend || _ctx.$slots.append,
244
+ [vue.unref(nsInput).bm("group", "append")]: _ctx.$slots.append,
245
+ [vue.unref(nsInput).bm("group", "prepend")]: _ctx.$slots.prepend,
246
+ [vue.unref(nsInput).m("prefix")]: _ctx.$slots.prefix || _ctx.prefixIcon,
247
+ [vue.unref(nsInput).m("suffix")]: _ctx.$slots.suffix || _ctx.suffixIcon || _ctx.clearable || _ctx.showPassword,
248
+ [vue.unref(nsInput).m("suffix--password-clear")]: vue.unref(showClear) && vue.unref(showPwdVisible)
249
+ },
250
+ _ctx.$attrs.class
251
+ ]),
252
+ style: vue.normalizeStyle(vue.unref(containerStyle)),
253
+ onMouseenter: handleMouseEnter,
254
+ onMouseleave: handleMouseLeave
313
255
  }, [
314
- vue.createElementVNode("span", {
315
- class: vue.normalizeClass(_ctx.nsInput.e("prefix-inner"))
316
- }, [
317
- vue.renderSlot(_ctx.$slots, "prefix"),
318
- _ctx.prefixIcon ? (vue.openBlock(), vue.createBlock(_component_el_icon, {
256
+ vue.createCommentVNode(" input "),
257
+ _ctx.type !== "textarea" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
258
+ vue.createCommentVNode(" prepend slot "),
259
+ _ctx.$slots.prepend ? (vue.openBlock(), vue.createElementBlock("div", {
319
260
  key: 0,
320
- class: vue.normalizeClass(_ctx.nsInput.e("icon"))
321
- }, {
322
- default: vue.withCtx(() => [
323
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.prefixIcon)))
324
- ]),
325
- _: 1
326
- }, 8, ["class"])) : vue.createCommentVNode("v-if", true)
327
- ], 2)
328
- ], 2)) : vue.createCommentVNode("v-if", true),
329
- vue.createCommentVNode(" suffix slot "),
330
- _ctx.suffixVisible ? (vue.openBlock(), vue.createElementBlock("span", {
331
- key: 2,
332
- class: vue.normalizeClass(_ctx.nsInput.e("suffix"))
333
- }, [
334
- vue.createElementVNode("span", {
335
- class: vue.normalizeClass(_ctx.nsInput.e("suffix-inner"))
336
- }, [
337
- !_ctx.showClear || !_ctx.showPwdVisible || !_ctx.isWordLimitVisible ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
338
- vue.renderSlot(_ctx.$slots, "suffix"),
339
- _ctx.suffixIcon ? (vue.openBlock(), vue.createBlock(_component_el_icon, {
261
+ class: vue.normalizeClass(vue.unref(nsInput).be("group", "prepend"))
262
+ }, [
263
+ vue.renderSlot(_ctx.$slots, "prepend")
264
+ ], 2)) : vue.createCommentVNode("v-if", true),
265
+ vue.createElementVNode("input", vue.mergeProps({
266
+ ref_key: "input",
267
+ ref: input,
268
+ class: vue.unref(nsInput).e("inner")
269
+ }, vue.unref(attrs), {
270
+ type: _ctx.showPassword ? passwordVisible.value ? "text" : "password" : _ctx.type,
271
+ disabled: vue.unref(inputDisabled),
272
+ readonly: _ctx.readonly,
273
+ autocomplete: _ctx.autocomplete,
274
+ tabindex: _ctx.tabindex,
275
+ "aria-label": _ctx.label,
276
+ placeholder: _ctx.placeholder,
277
+ style: _ctx.inputStyle,
278
+ onCompositionstart: handleCompositionStart,
279
+ onCompositionupdate: handleCompositionUpdate,
280
+ onCompositionend: handleCompositionEnd,
281
+ onInput: handleInput,
282
+ onFocus: handleFocus,
283
+ onBlur: handleBlur,
284
+ onChange: handleChange,
285
+ onKeydown: handleKeydown
286
+ }), null, 16, _hoisted_1),
287
+ vue.createCommentVNode(" prefix slot "),
288
+ _ctx.$slots.prefix || _ctx.prefixIcon ? (vue.openBlock(), vue.createElementBlock("span", {
289
+ key: 1,
290
+ class: vue.normalizeClass(vue.unref(nsInput).e("prefix"))
291
+ }, [
292
+ vue.createElementVNode("span", {
293
+ class: vue.normalizeClass(vue.unref(nsInput).e("prefix-inner"))
294
+ }, [
295
+ vue.renderSlot(_ctx.$slots, "prefix"),
296
+ _ctx.prefixIcon ? (vue.openBlock(), vue.createBlock(vue.unref(index$4.ElIcon), {
297
+ key: 0,
298
+ class: vue.normalizeClass(vue.unref(nsInput).e("icon"))
299
+ }, {
300
+ default: vue.withCtx(() => [
301
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.prefixIcon)))
302
+ ]),
303
+ _: 1
304
+ }, 8, ["class"])) : vue.createCommentVNode("v-if", true)
305
+ ], 2)
306
+ ], 2)) : vue.createCommentVNode("v-if", true),
307
+ vue.createCommentVNode(" suffix slot "),
308
+ vue.unref(suffixVisible) ? (vue.openBlock(), vue.createElementBlock("span", {
309
+ key: 2,
310
+ class: vue.normalizeClass(vue.unref(nsInput).e("suffix"))
311
+ }, [
312
+ vue.createElementVNode("span", {
313
+ class: vue.normalizeClass(vue.unref(nsInput).e("suffix-inner"))
314
+ }, [
315
+ !vue.unref(showClear) || !vue.unref(showPwdVisible) || !vue.unref(isWordLimitVisible) ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
316
+ vue.renderSlot(_ctx.$slots, "suffix"),
317
+ _ctx.suffixIcon ? (vue.openBlock(), vue.createBlock(vue.unref(index$4.ElIcon), {
318
+ key: 0,
319
+ class: vue.normalizeClass(vue.unref(nsInput).e("icon"))
320
+ }, {
321
+ default: vue.withCtx(() => [
322
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.suffixIcon)))
323
+ ]),
324
+ _: 1
325
+ }, 8, ["class"])) : vue.createCommentVNode("v-if", true)
326
+ ], 64)) : vue.createCommentVNode("v-if", true),
327
+ vue.unref(showClear) ? (vue.openBlock(), vue.createBlock(vue.unref(index$4.ElIcon), {
328
+ key: 1,
329
+ class: vue.normalizeClass([vue.unref(nsInput).e("icon"), vue.unref(nsInput).e("clear")]),
330
+ onMousedown: _cache[0] || (_cache[0] = vue.withModifiers(() => {
331
+ }, ["prevent"])),
332
+ onClick: clear
333
+ }, {
334
+ default: vue.withCtx(() => [
335
+ vue.createVNode(vue.unref(iconsVue.CircleClose))
336
+ ]),
337
+ _: 1
338
+ }, 8, ["class"])) : vue.createCommentVNode("v-if", true),
339
+ vue.unref(showPwdVisible) ? (vue.openBlock(), vue.createBlock(vue.unref(index$4.ElIcon), {
340
+ key: 2,
341
+ class: vue.normalizeClass([vue.unref(nsInput).e("icon"), vue.unref(nsInput).e("clear")]),
342
+ onClick: handlePasswordVisible
343
+ }, {
344
+ default: vue.withCtx(() => [
345
+ vue.createVNode(vue.unref(iconsVue.View))
346
+ ]),
347
+ _: 1
348
+ }, 8, ["class"])) : vue.createCommentVNode("v-if", true),
349
+ vue.unref(isWordLimitVisible) ? (vue.openBlock(), vue.createElementBlock("span", {
350
+ key: 3,
351
+ class: vue.normalizeClass(vue.unref(nsInput).e("count"))
352
+ }, [
353
+ vue.createElementVNode("span", {
354
+ class: vue.normalizeClass(vue.unref(nsInput).e("count-inner"))
355
+ }, vue.toDisplayString(vue.unref(textLength)) + " / " + vue.toDisplayString(vue.unref(attrs).maxlength), 3)
356
+ ], 2)) : vue.createCommentVNode("v-if", true)
357
+ ], 2),
358
+ vue.unref(validateState) && vue.unref(validateIcon) && vue.unref(needStatusIcon) ? (vue.openBlock(), vue.createBlock(vue.unref(index$4.ElIcon), {
340
359
  key: 0,
341
- class: vue.normalizeClass(_ctx.nsInput.e("icon"))
360
+ class: vue.normalizeClass([vue.unref(nsInput).e("icon"), vue.unref(nsInput).e("validateIcon")])
342
361
  }, {
343
362
  default: vue.withCtx(() => [
344
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.suffixIcon)))
363
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(validateIcon))))
345
364
  ]),
346
365
  _: 1
347
366
  }, 8, ["class"])) : vue.createCommentVNode("v-if", true)
348
- ], 64)) : vue.createCommentVNode("v-if", true),
349
- _ctx.showClear ? (vue.openBlock(), vue.createBlock(_component_el_icon, {
350
- key: 1,
351
- class: vue.normalizeClass([_ctx.nsInput.e("icon"), _ctx.nsInput.e("clear")]),
352
- onMousedown: _cache[8] || (_cache[8] = vue.withModifiers(() => {
353
- }, ["prevent"])),
354
- onClick: _ctx.clear
355
- }, {
356
- default: vue.withCtx(() => [
357
- vue.createVNode(_component_circle_close)
358
- ]),
359
- _: 1
360
- }, 8, ["class", "onClick"])) : vue.createCommentVNode("v-if", true),
361
- _ctx.showPwdVisible ? (vue.openBlock(), vue.createBlock(_component_el_icon, {
362
- key: 2,
363
- class: vue.normalizeClass([_ctx.nsInput.e("icon"), _ctx.nsInput.e("clear")]),
364
- onClick: _ctx.handlePasswordVisible
365
- }, {
366
- default: vue.withCtx(() => [
367
- vue.createVNode(_component_icon_view)
368
- ]),
369
- _: 1
370
- }, 8, ["class", "onClick"])) : vue.createCommentVNode("v-if", true),
371
- _ctx.isWordLimitVisible ? (vue.openBlock(), vue.createElementBlock("span", {
367
+ ], 2)) : vue.createCommentVNode("v-if", true),
368
+ vue.createCommentVNode(" append slot "),
369
+ _ctx.$slots.append ? (vue.openBlock(), vue.createElementBlock("div", {
372
370
  key: 3,
373
- class: vue.normalizeClass(_ctx.nsInput.e("count"))
371
+ class: vue.normalizeClass(vue.unref(nsInput).be("group", "append"))
374
372
  }, [
375
- vue.createElementVNode("span", {
376
- class: vue.normalizeClass(_ctx.nsInput.e("count-inner"))
377
- }, vue.toDisplayString(_ctx.textLength) + " / " + vue.toDisplayString(_ctx.attrs.maxlength), 3)
373
+ vue.renderSlot(_ctx.$slots, "append")
378
374
  ], 2)) : vue.createCommentVNode("v-if", true)
379
- ], 2),
380
- _ctx.validateState && _ctx.validateIcon && _ctx.needStatusIcon ? (vue.openBlock(), vue.createBlock(_component_el_icon, {
381
- key: 0,
382
- class: vue.normalizeClass([_ctx.nsInput.e("icon"), _ctx.nsInput.e("validateIcon")])
383
- }, {
384
- default: vue.withCtx(() => [
385
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.validateIcon)))
386
- ]),
387
- _: 1
388
- }, 8, ["class"])) : vue.createCommentVNode("v-if", true)
389
- ], 2)) : vue.createCommentVNode("v-if", true),
390
- vue.createCommentVNode(" append slot "),
391
- _ctx.$slots.append ? (vue.openBlock(), vue.createElementBlock("div", {
392
- key: 3,
393
- class: vue.normalizeClass(_ctx.nsInput.be("group", "append"))
394
- }, [
395
- vue.renderSlot(_ctx.$slots, "append")
396
- ], 2)) : vue.createCommentVNode("v-if", true)
397
- ], 64)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
398
- vue.createCommentVNode(" textarea "),
399
- vue.createElementVNode("textarea", vue.mergeProps({
400
- ref: "textarea",
401
- class: _ctx.nsTextarea.e("inner")
402
- }, _ctx.attrs, {
403
- tabindex: _ctx.tabindex,
404
- disabled: _ctx.inputDisabled,
405
- readonly: _ctx.readonly,
406
- autocomplete: _ctx.autocomplete,
407
- style: _ctx.computedTextareaStyle,
408
- "aria-label": _ctx.label,
409
- placeholder: _ctx.placeholder,
410
- onCompositionstart: _cache[9] || (_cache[9] = (...args) => _ctx.handleCompositionStart && _ctx.handleCompositionStart(...args)),
411
- onCompositionupdate: _cache[10] || (_cache[10] = (...args) => _ctx.handleCompositionUpdate && _ctx.handleCompositionUpdate(...args)),
412
- onCompositionend: _cache[11] || (_cache[11] = (...args) => _ctx.handleCompositionEnd && _ctx.handleCompositionEnd(...args)),
413
- onInput: _cache[12] || (_cache[12] = (...args) => _ctx.handleInput && _ctx.handleInput(...args)),
414
- onFocus: _cache[13] || (_cache[13] = (...args) => _ctx.handleFocus && _ctx.handleFocus(...args)),
415
- onBlur: _cache[14] || (_cache[14] = (...args) => _ctx.handleBlur && _ctx.handleBlur(...args)),
416
- onChange: _cache[15] || (_cache[15] = (...args) => _ctx.handleChange && _ctx.handleChange(...args)),
417
- onKeydown: _cache[16] || (_cache[16] = (...args) => _ctx.handleKeydown && _ctx.handleKeydown(...args))
418
- }), null, 16, _hoisted_2),
419
- _ctx.isWordLimitVisible ? (vue.openBlock(), vue.createElementBlock("span", {
420
- key: 0,
421
- class: vue.normalizeClass(_ctx.nsInput.e("count"))
422
- }, vue.toDisplayString(_ctx.textLength) + " / " + vue.toDisplayString(_ctx.attrs.maxlength), 3)) : vue.createCommentVNode("v-if", true)
423
- ], 64))
424
- ], 38)), [
425
- [vue.vShow, _ctx.type !== "hidden"]
426
- ]);
427
- }
428
- var Input = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render]]);
375
+ ], 64)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
376
+ vue.createCommentVNode(" textarea "),
377
+ vue.createElementVNode("textarea", vue.mergeProps({
378
+ ref_key: "textarea",
379
+ ref: textarea,
380
+ class: vue.unref(nsTextarea).e("inner")
381
+ }, vue.unref(attrs), {
382
+ tabindex: _ctx.tabindex,
383
+ disabled: vue.unref(inputDisabled),
384
+ readonly: _ctx.readonly,
385
+ autocomplete: _ctx.autocomplete,
386
+ style: vue.unref(textareaStyle),
387
+ "aria-label": _ctx.label,
388
+ placeholder: _ctx.placeholder,
389
+ onCompositionstart: handleCompositionStart,
390
+ onCompositionupdate: handleCompositionUpdate,
391
+ onCompositionend: handleCompositionEnd,
392
+ onInput: handleInput,
393
+ onFocus: handleFocus,
394
+ onBlur: handleBlur,
395
+ onChange: handleChange,
396
+ onKeydown: handleKeydown
397
+ }), null, 16, _hoisted_2),
398
+ vue.unref(isWordLimitVisible) ? (vue.openBlock(), vue.createElementBlock("span", {
399
+ key: 0,
400
+ class: vue.normalizeClass(vue.unref(nsInput).e("count"))
401
+ }, vue.toDisplayString(vue.unref(textLength)) + " / " + vue.toDisplayString(vue.unref(attrs).maxlength), 3)) : vue.createCommentVNode("v-if", true)
402
+ ], 64))
403
+ ], 38)), [
404
+ [vue.vShow, _ctx.type !== "hidden"]
405
+ ]);
406
+ };
407
+ }
408
+ });
429
409
 
430
- exports["default"] = Input;
410
+ exports["default"] = _sfc_main;
431
411
  //# sourceMappingURL=input2.js.map