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
@@ -4,50 +4,57 @@ 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;
@@ -58,17 +65,18 @@ const _sfc_main = vue.defineComponent({
58
65
  rawAttrs.style,
59
66
  props.inputStyle
60
67
  ]);
61
- const computedTextareaStyle = vue.computed(() => [
68
+ const textareaStyle = vue.computed(() => [
62
69
  props.inputStyle,
63
- _textareaCalcStyle.value,
70
+ textareaCalcStyle.value,
64
71
  { resize: props.resize }
65
72
  ]);
66
- 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));
67
74
  const showClear = vue.computed(() => props.clearable && !inputDisabled.value && !props.readonly && !!nativeInputValue.value && (focused.value || hovering.value));
68
75
  const showPwdVisible = vue.computed(() => props.showPassword && !inputDisabled.value && !props.readonly && (!!nativeInputValue.value || focused.value));
69
76
  const isWordLimitVisible = vue.computed(() => props.showWordLimit && !!attrs.value.maxlength && (props.type === "text" || props.type === "textarea") && !inputDisabled.value && !props.readonly && !props.showPassword);
70
77
  const textLength = vue.computed(() => Array.from(nativeInputValue.value).length);
71
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);
72
80
  const resizeTextarea = () => {
73
81
  const { type, autosize } = props;
74
82
  if (!core.isClient || type !== "textarea")
@@ -76,17 +84,17 @@ const _sfc_main = vue.defineComponent({
76
84
  if (autosize) {
77
85
  const minRows = shared.isObject(autosize) ? autosize.minRows : void 0;
78
86
  const maxRows = shared.isObject(autosize) ? autosize.maxRows : void 0;
79
- _textareaCalcStyle.value = {
80
- ...calcTextareaHeight.calcTextareaHeight(textarea.value, minRows, maxRows)
87
+ textareaCalcStyle.value = {
88
+ ...utils.calcTextareaHeight(textarea.value, minRows, maxRows)
81
89
  };
82
90
  } else {
83
- _textareaCalcStyle.value = {
84
- minHeight: calcTextareaHeight.calcTextareaHeight(textarea.value).minHeight
91
+ textareaCalcStyle.value = {
92
+ minHeight: utils.calcTextareaHeight(textarea.value).minHeight
85
93
  };
86
94
  }
87
95
  };
88
96
  const setNativeInputValue = () => {
89
- const input2 = inputOrTextarea.value;
97
+ const input2 = _ref.value;
90
98
  if (!input2 || input2.value === nativeInputValue.value)
91
99
  return;
92
100
  input2.value = nativeInputValue.value;
@@ -110,7 +118,7 @@ const _sfc_main = vue.defineComponent({
110
118
  calcIconOffset("prefix");
111
119
  calcIconOffset("suffix");
112
120
  };
113
- const handleInput = (event$1) => {
121
+ const handleInput = async (event$1) => {
114
122
  const { value } = event$1.target;
115
123
  if (isComposing.value)
116
124
  return;
@@ -118,20 +126,42 @@ const _sfc_main = vue.defineComponent({
118
126
  return;
119
127
  emit(event.UPDATE_MODEL_EVENT, value);
120
128
  emit("input", value);
121
- vue.nextTick(setNativeInputValue);
129
+ await vue.nextTick();
130
+ setNativeInputValue();
122
131
  };
123
132
  const handleChange = (event) => {
124
133
  emit("change", event.target.value);
125
134
  };
126
- const focus = () => {
127
- vue.nextTick(() => {
128
- var _a;
129
- (_a = inputOrTextarea.value) == null ? void 0 : _a.focus();
130
- });
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();
131
161
  };
132
162
  const blur = () => {
133
163
  var _a;
134
- (_a = inputOrTextarea.value) == null ? void 0 : _a.blur();
164
+ return (_a = _ref.value) == null ? void 0 : _a.blur();
135
165
  };
136
166
  const handleFocus = (event) => {
137
167
  focused.value = true;
@@ -145,27 +175,20 @@ const _sfc_main = vue.defineComponent({
145
175
  (_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur").catch((err) => error.debugWarn(err));
146
176
  }
147
177
  };
148
- const select = () => {
149
- var _a;
150
- (_a = inputOrTextarea.value) == null ? void 0 : _a.select();
178
+ const handleMouseLeave = (evt) => {
179
+ hovering.value = false;
180
+ emit("mouseleave", evt);
151
181
  };
152
- const handleCompositionStart = (event) => {
153
- emit("compositionstart", event);
154
- isComposing.value = true;
182
+ const handleMouseEnter = (evt) => {
183
+ hovering.value = true;
184
+ emit("mouseenter", evt);
155
185
  };
156
- const handleCompositionUpdate = (event) => {
157
- var _a;
158
- emit("compositionupdate", event);
159
- const text = (_a = event.target) == null ? void 0 : _a.value;
160
- const lastCharacter = text[text.length - 1] || "";
161
- isComposing.value = !i18n.isKorean(lastCharacter);
186
+ const handleKeydown = (evt) => {
187
+ emit("keydown", evt);
162
188
  };
163
- const handleCompositionEnd = (event) => {
164
- emit("compositionend", event);
165
- if (isComposing.value) {
166
- isComposing.value = false;
167
- handleInput(event);
168
- }
189
+ const select = () => {
190
+ var _a;
191
+ (_a = _ref.value) == null ? void 0 : _a.select();
169
192
  };
170
193
  const clear = () => {
171
194
  emit(event.UPDATE_MODEL_EVENT, "");
@@ -173,262 +196,216 @@ const _sfc_main = vue.defineComponent({
173
196
  emit("clear");
174
197
  emit("input", "");
175
198
  };
176
- const handlePasswordVisible = () => {
177
- passwordVisible.value = !passwordVisible.value;
178
- focus();
179
- };
180
- const suffixVisible = vue.computed(() => !!slots.suffix || !!props.suffixIcon || showClear.value || props.showPassword || isWordLimitVisible.value || !!validateState.value && needStatusIcon.value);
181
199
  vue.watch(() => props.modelValue, () => {
182
200
  var _a;
183
- vue.nextTick(resizeTextarea);
201
+ vue.nextTick(() => resizeTextarea());
184
202
  if (props.validateEvent) {
185
203
  (_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change").catch((err) => error.debugWarn(err));
186
204
  }
187
205
  });
188
206
  vue.watch(nativeInputValue, () => setNativeInputValue());
189
- vue.watch(() => props.type, () => {
190
- vue.nextTick(() => {
191
- setNativeInputValue();
192
- resizeTextarea();
193
- updateIconOffset();
194
- });
207
+ vue.watch(() => props.type, async () => {
208
+ await vue.nextTick();
209
+ setNativeInputValue();
210
+ resizeTextarea();
211
+ updateIconOffset();
195
212
  });
196
- vue.onMounted(() => {
213
+ vue.onMounted(async () => {
197
214
  setNativeInputValue();
198
215
  updateIconOffset();
199
- vue.nextTick(resizeTextarea);
216
+ await vue.nextTick();
217
+ resizeTextarea();
200
218
  });
201
- vue.onUpdated(() => {
202
- vue.nextTick(updateIconOffset);
219
+ vue.onUpdated(async () => {
220
+ await vue.nextTick();
221
+ updateIconOffset();
203
222
  });
204
- const onMouseLeave = (evt) => {
205
- hovering.value = false;
206
- emit("mouseleave", evt);
207
- };
208
- const onMouseEnter = (evt) => {
209
- hovering.value = true;
210
- emit("mouseenter", evt);
211
- };
212
- const handleKeydown = (evt) => {
213
- emit("keydown", evt);
214
- };
215
- return {
223
+ expose({
216
224
  input,
217
225
  textarea,
218
- attrs,
219
- inputSize,
220
- validateState,
221
- validateIcon,
222
- containerStyle,
223
- computedTextareaStyle,
224
- inputDisabled,
225
- showClear,
226
- showPwdVisible,
227
- isWordLimitVisible,
228
- textLength,
229
- hovering,
230
- inputExceed,
231
- passwordVisible,
232
- inputOrTextarea,
233
- suffixVisible,
234
- needStatusIcon,
235
- resizeTextarea,
236
- handleInput,
237
- handleChange,
238
- handleFocus,
239
- handleBlur,
240
- handleCompositionStart,
241
- handleCompositionUpdate,
242
- handleCompositionEnd,
243
- handlePasswordVisible,
244
- clear,
245
- select,
226
+ ref: _ref,
227
+ textareaStyle,
228
+ autosize: vue.toRef(props, "autosize"),
246
229
  focus,
247
230
  blur,
248
- onMouseLeave,
249
- onMouseEnter,
250
- handleKeydown,
251
- nsInput,
252
- nsTextarea
253
- };
254
- }
255
- });
256
- const _hoisted_1 = ["type", "disabled", "readonly", "autocomplete", "tabindex", "aria-label", "placeholder"];
257
- const _hoisted_2 = ["tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder"];
258
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
259
- const _component_el_icon = vue.resolveComponent("el-icon");
260
- const _component_circle_close = vue.resolveComponent("circle-close");
261
- const _component_icon_view = vue.resolveComponent("icon-view");
262
- return vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
263
- class: vue.normalizeClass([
264
- _ctx.type === "textarea" ? _ctx.nsTextarea.b() : _ctx.nsInput.b(),
265
- _ctx.nsInput.m(_ctx.inputSize),
266
- _ctx.nsInput.is("disabled", _ctx.inputDisabled),
267
- _ctx.nsInput.is("exceed", _ctx.inputExceed),
268
- {
269
- [_ctx.nsInput.b("group")]: _ctx.$slots.prepend || _ctx.$slots.append,
270
- [_ctx.nsInput.bm("group", "append")]: _ctx.$slots.append,
271
- [_ctx.nsInput.bm("group", "prepend")]: _ctx.$slots.prepend,
272
- [_ctx.nsInput.m("prefix")]: _ctx.$slots.prefix || _ctx.prefixIcon,
273
- [_ctx.nsInput.m("suffix")]: _ctx.$slots.suffix || _ctx.suffixIcon || _ctx.clearable || _ctx.showPassword,
274
- [_ctx.nsInput.m("suffix--password-clear")]: _ctx.showClear && _ctx.showPwdVisible
275
- },
276
- _ctx.$attrs.class
277
- ]),
278
- style: vue.normalizeStyle(_ctx.containerStyle),
279
- onMouseenter: _cache[17] || (_cache[17] = (...args) => _ctx.onMouseEnter && _ctx.onMouseEnter(...args)),
280
- onMouseleave: _cache[18] || (_cache[18] = (...args) => _ctx.onMouseLeave && _ctx.onMouseLeave(...args))
281
- }, [
282
- vue.createCommentVNode(" input "),
283
- _ctx.type !== "textarea" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
284
- vue.createCommentVNode(" prepend slot "),
285
- _ctx.$slots.prepend ? (vue.openBlock(), vue.createElementBlock("div", {
286
- key: 0,
287
- class: vue.normalizeClass(_ctx.nsInput.be("group", "prepend"))
288
- }, [
289
- vue.renderSlot(_ctx.$slots, "prepend")
290
- ], 2)) : vue.createCommentVNode("v-if", true),
291
- vue.createElementVNode("input", vue.mergeProps({
292
- ref: "input",
293
- class: _ctx.nsInput.e("inner")
294
- }, _ctx.attrs, {
295
- type: _ctx.showPassword ? _ctx.passwordVisible ? "text" : "password" : _ctx.type,
296
- disabled: _ctx.inputDisabled,
297
- readonly: _ctx.readonly,
298
- autocomplete: _ctx.autocomplete,
299
- tabindex: _ctx.tabindex,
300
- "aria-label": _ctx.label,
301
- placeholder: _ctx.placeholder,
302
- style: _ctx.inputStyle,
303
- onCompositionstart: _cache[0] || (_cache[0] = (...args) => _ctx.handleCompositionStart && _ctx.handleCompositionStart(...args)),
304
- onCompositionupdate: _cache[1] || (_cache[1] = (...args) => _ctx.handleCompositionUpdate && _ctx.handleCompositionUpdate(...args)),
305
- onCompositionend: _cache[2] || (_cache[2] = (...args) => _ctx.handleCompositionEnd && _ctx.handleCompositionEnd(...args)),
306
- onInput: _cache[3] || (_cache[3] = (...args) => _ctx.handleInput && _ctx.handleInput(...args)),
307
- onFocus: _cache[4] || (_cache[4] = (...args) => _ctx.handleFocus && _ctx.handleFocus(...args)),
308
- onBlur: _cache[5] || (_cache[5] = (...args) => _ctx.handleBlur && _ctx.handleBlur(...args)),
309
- onChange: _cache[6] || (_cache[6] = (...args) => _ctx.handleChange && _ctx.handleChange(...args)),
310
- onKeydown: _cache[7] || (_cache[7] = (...args) => _ctx.handleKeydown && _ctx.handleKeydown(...args))
311
- }), null, 16, _hoisted_1),
312
- vue.createCommentVNode(" prefix slot "),
313
- _ctx.$slots.prefix || _ctx.prefixIcon ? (vue.openBlock(), vue.createElementBlock("span", {
314
- key: 1,
315
- 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
316
255
  }, [
317
- vue.createElementVNode("span", {
318
- class: vue.normalizeClass(_ctx.nsInput.e("prefix-inner"))
319
- }, [
320
- vue.renderSlot(_ctx.$slots, "prefix"),
321
- _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", {
322
260
  key: 0,
323
- class: vue.normalizeClass(_ctx.nsInput.e("icon"))
324
- }, {
325
- default: vue.withCtx(() => [
326
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.prefixIcon)))
327
- ]),
328
- _: 1
329
- }, 8, ["class"])) : vue.createCommentVNode("v-if", true)
330
- ], 2)
331
- ], 2)) : vue.createCommentVNode("v-if", true),
332
- vue.createCommentVNode(" suffix slot "),
333
- _ctx.suffixVisible ? (vue.openBlock(), vue.createElementBlock("span", {
334
- key: 2,
335
- class: vue.normalizeClass(_ctx.nsInput.e("suffix"))
336
- }, [
337
- vue.createElementVNode("span", {
338
- class: vue.normalizeClass(_ctx.nsInput.e("suffix-inner"))
339
- }, [
340
- !_ctx.showClear || !_ctx.showPwdVisible || !_ctx.isWordLimitVisible ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
341
- vue.renderSlot(_ctx.$slots, "suffix"),
342
- _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), {
343
359
  key: 0,
344
- class: vue.normalizeClass(_ctx.nsInput.e("icon"))
360
+ class: vue.normalizeClass([vue.unref(nsInput).e("icon"), vue.unref(nsInput).e("validateIcon")])
345
361
  }, {
346
362
  default: vue.withCtx(() => [
347
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.suffixIcon)))
363
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(validateIcon))))
348
364
  ]),
349
365
  _: 1
350
366
  }, 8, ["class"])) : vue.createCommentVNode("v-if", true)
351
- ], 64)) : vue.createCommentVNode("v-if", true),
352
- _ctx.showClear ? (vue.openBlock(), vue.createBlock(_component_el_icon, {
353
- key: 1,
354
- class: vue.normalizeClass([_ctx.nsInput.e("icon"), _ctx.nsInput.e("clear")]),
355
- onMousedown: _cache[8] || (_cache[8] = vue.withModifiers(() => {
356
- }, ["prevent"])),
357
- onClick: _ctx.clear
358
- }, {
359
- default: vue.withCtx(() => [
360
- vue.createVNode(_component_circle_close)
361
- ]),
362
- _: 1
363
- }, 8, ["class", "onClick"])) : vue.createCommentVNode("v-if", true),
364
- _ctx.showPwdVisible ? (vue.openBlock(), vue.createBlock(_component_el_icon, {
365
- key: 2,
366
- class: vue.normalizeClass([_ctx.nsInput.e("icon"), _ctx.nsInput.e("clear")]),
367
- onClick: _ctx.handlePasswordVisible
368
- }, {
369
- default: vue.withCtx(() => [
370
- vue.createVNode(_component_icon_view)
371
- ]),
372
- _: 1
373
- }, 8, ["class", "onClick"])) : vue.createCommentVNode("v-if", true),
374
- _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", {
375
370
  key: 3,
376
- class: vue.normalizeClass(_ctx.nsInput.e("count"))
371
+ class: vue.normalizeClass(vue.unref(nsInput).be("group", "append"))
377
372
  }, [
378
- vue.createElementVNode("span", {
379
- class: vue.normalizeClass(_ctx.nsInput.e("count-inner"))
380
- }, vue.toDisplayString(_ctx.textLength) + " / " + vue.toDisplayString(_ctx.attrs.maxlength), 3)
373
+ vue.renderSlot(_ctx.$slots, "append")
381
374
  ], 2)) : vue.createCommentVNode("v-if", true)
382
- ], 2),
383
- _ctx.validateState && _ctx.validateIcon && _ctx.needStatusIcon ? (vue.openBlock(), vue.createBlock(_component_el_icon, {
384
- key: 0,
385
- class: vue.normalizeClass([_ctx.nsInput.e("icon"), _ctx.nsInput.e("validateIcon")])
386
- }, {
387
- default: vue.withCtx(() => [
388
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.validateIcon)))
389
- ]),
390
- _: 1
391
- }, 8, ["class"])) : vue.createCommentVNode("v-if", true)
392
- ], 2)) : vue.createCommentVNode("v-if", true),
393
- vue.createCommentVNode(" append slot "),
394
- _ctx.$slots.append ? (vue.openBlock(), vue.createElementBlock("div", {
395
- key: 3,
396
- class: vue.normalizeClass(_ctx.nsInput.be("group", "append"))
397
- }, [
398
- vue.renderSlot(_ctx.$slots, "append")
399
- ], 2)) : vue.createCommentVNode("v-if", true)
400
- ], 64)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
401
- vue.createCommentVNode(" textarea "),
402
- vue.createElementVNode("textarea", vue.mergeProps({
403
- ref: "textarea",
404
- class: _ctx.nsTextarea.e("inner")
405
- }, _ctx.attrs, {
406
- tabindex: _ctx.tabindex,
407
- disabled: _ctx.inputDisabled,
408
- readonly: _ctx.readonly,
409
- autocomplete: _ctx.autocomplete,
410
- style: _ctx.computedTextareaStyle,
411
- "aria-label": _ctx.label,
412
- placeholder: _ctx.placeholder,
413
- onCompositionstart: _cache[9] || (_cache[9] = (...args) => _ctx.handleCompositionStart && _ctx.handleCompositionStart(...args)),
414
- onCompositionupdate: _cache[10] || (_cache[10] = (...args) => _ctx.handleCompositionUpdate && _ctx.handleCompositionUpdate(...args)),
415
- onCompositionend: _cache[11] || (_cache[11] = (...args) => _ctx.handleCompositionEnd && _ctx.handleCompositionEnd(...args)),
416
- onInput: _cache[12] || (_cache[12] = (...args) => _ctx.handleInput && _ctx.handleInput(...args)),
417
- onFocus: _cache[13] || (_cache[13] = (...args) => _ctx.handleFocus && _ctx.handleFocus(...args)),
418
- onBlur: _cache[14] || (_cache[14] = (...args) => _ctx.handleBlur && _ctx.handleBlur(...args)),
419
- onChange: _cache[15] || (_cache[15] = (...args) => _ctx.handleChange && _ctx.handleChange(...args)),
420
- onKeydown: _cache[16] || (_cache[16] = (...args) => _ctx.handleKeydown && _ctx.handleKeydown(...args))
421
- }), null, 16, _hoisted_2),
422
- _ctx.isWordLimitVisible ? (vue.openBlock(), vue.createElementBlock("span", {
423
- key: 0,
424
- class: vue.normalizeClass(_ctx.nsInput.e("count"))
425
- }, vue.toDisplayString(_ctx.textLength) + " / " + vue.toDisplayString(_ctx.attrs.maxlength), 3)) : vue.createCommentVNode("v-if", true)
426
- ], 64))
427
- ], 38)), [
428
- [vue.vShow, _ctx.type !== "hidden"]
429
- ]);
430
- }
431
- 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
+ });
432
409
 
433
- exports["default"] = Input;
410
+ exports["default"] = _sfc_main;
434
411
  //# sourceMappingURL=input2.js.map