element-plus 2.1.0 → 2.1.1

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