@element-plus/nightly 0.0.20221013 → 0.0.20221014

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 (424) hide show
  1. package/dist/index.full.js +7 -35
  2. package/dist/index.full.min.js +12 -12
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +13 -13
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +8 -36
  7. package/dist/locale/af.js +1 -1
  8. package/dist/locale/af.min.js +1 -1
  9. package/dist/locale/af.min.mjs +1 -1
  10. package/dist/locale/af.mjs +1 -1
  11. package/dist/locale/ar.js +1 -1
  12. package/dist/locale/ar.min.js +1 -1
  13. package/dist/locale/ar.min.mjs +1 -1
  14. package/dist/locale/ar.mjs +1 -1
  15. package/dist/locale/az.js +1 -1
  16. package/dist/locale/az.min.js +1 -1
  17. package/dist/locale/az.min.mjs +1 -1
  18. package/dist/locale/az.mjs +1 -1
  19. package/dist/locale/bg.js +1 -1
  20. package/dist/locale/bg.min.js +1 -1
  21. package/dist/locale/bg.min.mjs +1 -1
  22. package/dist/locale/bg.mjs +1 -1
  23. package/dist/locale/bn.js +1 -1
  24. package/dist/locale/bn.min.js +1 -1
  25. package/dist/locale/bn.min.mjs +1 -1
  26. package/dist/locale/bn.mjs +1 -1
  27. package/dist/locale/ca.js +1 -1
  28. package/dist/locale/ca.min.js +1 -1
  29. package/dist/locale/ca.min.mjs +1 -1
  30. package/dist/locale/ca.mjs +1 -1
  31. package/dist/locale/cs.js +1 -1
  32. package/dist/locale/cs.min.js +1 -1
  33. package/dist/locale/cs.min.mjs +1 -1
  34. package/dist/locale/cs.mjs +1 -1
  35. package/dist/locale/da.js +1 -1
  36. package/dist/locale/da.min.js +1 -1
  37. package/dist/locale/da.min.mjs +1 -1
  38. package/dist/locale/da.mjs +1 -1
  39. package/dist/locale/de.js +1 -1
  40. package/dist/locale/de.min.js +1 -1
  41. package/dist/locale/de.min.mjs +1 -1
  42. package/dist/locale/de.mjs +1 -1
  43. package/dist/locale/el.js +1 -1
  44. package/dist/locale/el.min.js +1 -1
  45. package/dist/locale/el.min.mjs +1 -1
  46. package/dist/locale/el.mjs +1 -1
  47. package/dist/locale/en.js +1 -1
  48. package/dist/locale/en.min.js +1 -1
  49. package/dist/locale/en.min.mjs +1 -1
  50. package/dist/locale/en.mjs +1 -1
  51. package/dist/locale/eo.js +1 -1
  52. package/dist/locale/eo.min.js +1 -1
  53. package/dist/locale/eo.min.mjs +1 -1
  54. package/dist/locale/eo.mjs +1 -1
  55. package/dist/locale/es.js +1 -1
  56. package/dist/locale/es.min.js +1 -1
  57. package/dist/locale/es.min.mjs +1 -1
  58. package/dist/locale/es.mjs +1 -1
  59. package/dist/locale/et.js +1 -1
  60. package/dist/locale/et.min.js +1 -1
  61. package/dist/locale/et.min.mjs +1 -1
  62. package/dist/locale/et.mjs +1 -1
  63. package/dist/locale/eu.js +1 -1
  64. package/dist/locale/eu.min.js +1 -1
  65. package/dist/locale/eu.min.mjs +1 -1
  66. package/dist/locale/eu.mjs +1 -1
  67. package/dist/locale/fa.js +1 -1
  68. package/dist/locale/fa.min.js +1 -1
  69. package/dist/locale/fa.min.mjs +1 -1
  70. package/dist/locale/fa.mjs +1 -1
  71. package/dist/locale/fi.js +1 -1
  72. package/dist/locale/fi.min.js +1 -1
  73. package/dist/locale/fi.min.mjs +1 -1
  74. package/dist/locale/fi.mjs +1 -1
  75. package/dist/locale/fr.js +1 -1
  76. package/dist/locale/fr.min.js +1 -1
  77. package/dist/locale/fr.min.mjs +1 -1
  78. package/dist/locale/fr.mjs +1 -1
  79. package/dist/locale/he.js +1 -1
  80. package/dist/locale/he.min.js +1 -1
  81. package/dist/locale/he.min.mjs +1 -1
  82. package/dist/locale/he.mjs +1 -1
  83. package/dist/locale/hr.js +1 -1
  84. package/dist/locale/hr.min.js +1 -1
  85. package/dist/locale/hr.min.mjs +1 -1
  86. package/dist/locale/hr.mjs +1 -1
  87. package/dist/locale/hu.js +1 -1
  88. package/dist/locale/hu.min.js +1 -1
  89. package/dist/locale/hu.min.mjs +1 -1
  90. package/dist/locale/hu.mjs +1 -1
  91. package/dist/locale/hy-am.js +1 -1
  92. package/dist/locale/hy-am.min.js +1 -1
  93. package/dist/locale/hy-am.min.mjs +1 -1
  94. package/dist/locale/hy-am.mjs +1 -1
  95. package/dist/locale/id.js +1 -1
  96. package/dist/locale/id.min.js +1 -1
  97. package/dist/locale/id.min.mjs +1 -1
  98. package/dist/locale/id.mjs +1 -1
  99. package/dist/locale/it.js +1 -1
  100. package/dist/locale/it.min.js +1 -1
  101. package/dist/locale/it.min.mjs +1 -1
  102. package/dist/locale/it.mjs +1 -1
  103. package/dist/locale/ja.js +1 -1
  104. package/dist/locale/ja.min.js +1 -1
  105. package/dist/locale/ja.min.mjs +1 -1
  106. package/dist/locale/ja.mjs +1 -1
  107. package/dist/locale/kk.js +1 -1
  108. package/dist/locale/kk.min.js +1 -1
  109. package/dist/locale/kk.min.mjs +1 -1
  110. package/dist/locale/kk.mjs +1 -1
  111. package/dist/locale/km.js +1 -1
  112. package/dist/locale/km.min.js +1 -1
  113. package/dist/locale/km.min.mjs +1 -1
  114. package/dist/locale/km.mjs +1 -1
  115. package/dist/locale/ko.js +1 -1
  116. package/dist/locale/ko.min.js +1 -1
  117. package/dist/locale/ko.min.mjs +1 -1
  118. package/dist/locale/ko.mjs +1 -1
  119. package/dist/locale/ku.js +1 -1
  120. package/dist/locale/ku.min.js +1 -1
  121. package/dist/locale/ku.min.mjs +1 -1
  122. package/dist/locale/ku.mjs +1 -1
  123. package/dist/locale/ky.js +1 -1
  124. package/dist/locale/ky.min.js +1 -1
  125. package/dist/locale/ky.min.mjs +1 -1
  126. package/dist/locale/ky.mjs +1 -1
  127. package/dist/locale/lt.js +1 -1
  128. package/dist/locale/lt.min.js +1 -1
  129. package/dist/locale/lt.min.mjs +1 -1
  130. package/dist/locale/lt.mjs +1 -1
  131. package/dist/locale/lv.js +1 -1
  132. package/dist/locale/lv.min.js +1 -1
  133. package/dist/locale/lv.min.mjs +1 -1
  134. package/dist/locale/lv.mjs +1 -1
  135. package/dist/locale/mg.js +1 -1
  136. package/dist/locale/mg.min.js +1 -1
  137. package/dist/locale/mg.min.mjs +1 -1
  138. package/dist/locale/mg.mjs +1 -1
  139. package/dist/locale/mn.js +1 -1
  140. package/dist/locale/mn.min.js +1 -1
  141. package/dist/locale/mn.min.mjs +1 -1
  142. package/dist/locale/mn.mjs +1 -1
  143. package/dist/locale/nb-no.js +1 -1
  144. package/dist/locale/nb-no.min.js +1 -1
  145. package/dist/locale/nb-no.min.mjs +1 -1
  146. package/dist/locale/nb-no.mjs +1 -1
  147. package/dist/locale/nl.js +1 -1
  148. package/dist/locale/nl.min.js +1 -1
  149. package/dist/locale/nl.min.mjs +1 -1
  150. package/dist/locale/nl.mjs +1 -1
  151. package/dist/locale/pa.js +1 -1
  152. package/dist/locale/pa.min.js +1 -1
  153. package/dist/locale/pa.min.mjs +1 -1
  154. package/dist/locale/pa.mjs +1 -1
  155. package/dist/locale/pl.js +1 -1
  156. package/dist/locale/pl.min.js +1 -1
  157. package/dist/locale/pl.min.mjs +1 -1
  158. package/dist/locale/pl.mjs +1 -1
  159. package/dist/locale/pt-br.js +1 -1
  160. package/dist/locale/pt-br.min.js +1 -1
  161. package/dist/locale/pt-br.min.mjs +1 -1
  162. package/dist/locale/pt-br.mjs +1 -1
  163. package/dist/locale/pt.js +1 -1
  164. package/dist/locale/pt.min.js +1 -1
  165. package/dist/locale/pt.min.mjs +1 -1
  166. package/dist/locale/pt.mjs +1 -1
  167. package/dist/locale/ro.js +1 -1
  168. package/dist/locale/ro.min.js +1 -1
  169. package/dist/locale/ro.min.mjs +1 -1
  170. package/dist/locale/ro.mjs +1 -1
  171. package/dist/locale/ru.js +1 -1
  172. package/dist/locale/ru.min.js +1 -1
  173. package/dist/locale/ru.min.mjs +1 -1
  174. package/dist/locale/ru.mjs +1 -1
  175. package/dist/locale/sk.js +1 -1
  176. package/dist/locale/sk.min.js +1 -1
  177. package/dist/locale/sk.min.mjs +1 -1
  178. package/dist/locale/sk.mjs +1 -1
  179. package/dist/locale/sl.js +1 -1
  180. package/dist/locale/sl.min.js +1 -1
  181. package/dist/locale/sl.min.mjs +1 -1
  182. package/dist/locale/sl.mjs +1 -1
  183. package/dist/locale/sr.js +1 -1
  184. package/dist/locale/sr.min.js +1 -1
  185. package/dist/locale/sr.min.mjs +1 -1
  186. package/dist/locale/sr.mjs +1 -1
  187. package/dist/locale/sv.js +1 -1
  188. package/dist/locale/sv.min.js +1 -1
  189. package/dist/locale/sv.min.mjs +1 -1
  190. package/dist/locale/sv.mjs +1 -1
  191. package/dist/locale/ta.js +1 -1
  192. package/dist/locale/ta.min.js +1 -1
  193. package/dist/locale/ta.min.mjs +1 -1
  194. package/dist/locale/ta.mjs +1 -1
  195. package/dist/locale/th.js +1 -1
  196. package/dist/locale/th.min.js +1 -1
  197. package/dist/locale/th.min.mjs +1 -1
  198. package/dist/locale/th.mjs +1 -1
  199. package/dist/locale/tk.js +1 -1
  200. package/dist/locale/tk.min.js +1 -1
  201. package/dist/locale/tk.min.mjs +1 -1
  202. package/dist/locale/tk.mjs +1 -1
  203. package/dist/locale/tr.js +1 -1
  204. package/dist/locale/tr.min.js +1 -1
  205. package/dist/locale/tr.min.mjs +1 -1
  206. package/dist/locale/tr.mjs +1 -1
  207. package/dist/locale/ug-cn.js +1 -1
  208. package/dist/locale/ug-cn.min.js +1 -1
  209. package/dist/locale/ug-cn.min.mjs +1 -1
  210. package/dist/locale/ug-cn.mjs +1 -1
  211. package/dist/locale/uk.js +1 -1
  212. package/dist/locale/uk.min.js +1 -1
  213. package/dist/locale/uk.min.mjs +1 -1
  214. package/dist/locale/uk.mjs +1 -1
  215. package/dist/locale/uz-uz.js +1 -1
  216. package/dist/locale/uz-uz.min.js +1 -1
  217. package/dist/locale/uz-uz.min.mjs +1 -1
  218. package/dist/locale/uz-uz.mjs +1 -1
  219. package/dist/locale/vi.js +1 -1
  220. package/dist/locale/vi.min.js +1 -1
  221. package/dist/locale/vi.min.mjs +1 -1
  222. package/dist/locale/vi.mjs +1 -1
  223. package/dist/locale/zh-cn.js +1 -1
  224. package/dist/locale/zh-cn.min.js +1 -1
  225. package/dist/locale/zh-cn.min.mjs +1 -1
  226. package/dist/locale/zh-cn.mjs +1 -1
  227. package/dist/locale/zh-tw.js +1 -1
  228. package/dist/locale/zh-tw.min.js +1 -1
  229. package/dist/locale/zh-tw.min.mjs +1 -1
  230. package/dist/locale/zh-tw.mjs +1 -1
  231. package/es/components/alert/index.mjs +2 -2
  232. package/es/components/alert/src/alert.mjs +96 -36
  233. package/es/components/alert/src/alert.mjs.map +1 -1
  234. package/es/components/alert/src/alert2.mjs +36 -96
  235. package/es/components/alert/src/alert2.mjs.map +1 -1
  236. package/es/components/autocomplete/index.d.ts +49 -33
  237. package/es/components/autocomplete/src/autocomplete.vue.d.ts +49 -33
  238. package/es/components/avatar/index.mjs +2 -2
  239. package/es/components/avatar/src/avatar.mjs +67 -32
  240. package/es/components/avatar/src/avatar.mjs.map +1 -1
  241. package/es/components/avatar/src/avatar2.mjs +32 -67
  242. package/es/components/avatar/src/avatar2.mjs.map +1 -1
  243. package/es/components/badge/index.mjs +2 -2
  244. package/es/components/badge/src/badge.mjs +55 -17
  245. package/es/components/badge/src/badge.mjs.map +1 -1
  246. package/es/components/badge/src/badge2.mjs +17 -55
  247. package/es/components/badge/src/badge2.mjs.map +1 -1
  248. package/es/components/card/index.mjs +2 -2
  249. package/es/components/card/src/card.mjs +35 -16
  250. package/es/components/card/src/card.mjs.map +1 -1
  251. package/es/components/card/src/card2.mjs +16 -35
  252. package/es/components/card/src/card2.mjs.map +1 -1
  253. package/es/components/cascader/index.d.ts +62 -44
  254. package/es/components/cascader/src/index.vue.d.ts +31 -22
  255. package/es/components/color-picker/index.d.ts +18 -11
  256. package/es/components/color-picker/src/color-picker.vue.d.ts +18 -11
  257. package/es/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +18 -11
  258. package/es/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +18 -11
  259. package/es/components/date-picker/src/panel-utils.d.ts +36 -22
  260. package/es/components/descriptions/src/description2.mjs +1 -1
  261. package/es/components/descriptions/src/descriptions-row.mjs +64 -7
  262. package/es/components/descriptions/src/descriptions-row.mjs.map +1 -1
  263. package/es/components/descriptions/src/descriptions-row2.mjs +7 -64
  264. package/es/components/descriptions/src/descriptions-row2.mjs.map +1 -1
  265. package/es/components/index.mjs +10 -10
  266. package/es/components/input/index.d.ts +18 -11
  267. package/es/components/input/src/input.d.ts +6 -1
  268. package/es/components/input/src/input.mjs +1 -2
  269. package/es/components/input/src/input.mjs.map +1 -1
  270. package/es/components/input/src/input.vue.d.ts +18 -11
  271. package/es/components/input/src/input2.mjs +5 -32
  272. package/es/components/input/src/input2.mjs.map +1 -1
  273. package/es/components/input-number/index.d.ts +49 -33
  274. package/es/components/input-number/index.mjs +2 -2
  275. package/es/components/input-number/src/input-number.mjs +298 -57
  276. package/es/components/input-number/src/input-number.mjs.map +1 -1
  277. package/es/components/input-number/src/input-number.vue.d.ts +49 -33
  278. package/es/components/input-number/src/input-number2.mjs +57 -298
  279. package/es/components/input-number/src/input-number2.mjs.map +1 -1
  280. package/es/components/menu/index.mjs +2 -2
  281. package/es/components/menu/src/menu-item.mjs +100 -14
  282. package/es/components/menu/src/menu-item.mjs.map +1 -1
  283. package/es/components/menu/src/menu-item2.mjs +14 -100
  284. package/es/components/menu/src/menu-item2.mjs.map +1 -1
  285. package/es/components/page-header/index.mjs +2 -2
  286. package/es/components/page-header/src/page-header.mjs +102 -17
  287. package/es/components/page-header/src/page-header.mjs.map +1 -1
  288. package/es/components/page-header/src/page-header2.mjs +17 -102
  289. package/es/components/page-header/src/page-header2.mjs.map +1 -1
  290. package/es/components/pagination/src/components/jumper.vue.d.ts +18 -11
  291. package/es/components/pagination/src/components/prev.mjs +34 -18
  292. package/es/components/pagination/src/components/prev.mjs.map +1 -1
  293. package/es/components/pagination/src/components/prev2.mjs +18 -34
  294. package/es/components/pagination/src/components/prev2.mjs.map +1 -1
  295. package/es/components/pagination/src/pagination.mjs +1 -1
  296. package/es/components/radio/index.mjs +2 -2
  297. package/es/components/radio/src/radio-button.mjs +64 -9
  298. package/es/components/radio/src/radio-button.mjs.map +1 -1
  299. package/es/components/radio/src/radio-button2.mjs +9 -64
  300. package/es/components/radio/src/radio-button2.mjs.map +1 -1
  301. package/es/components/slider/index.d.ts +49 -33
  302. package/es/components/slider/src/slider.vue.d.ts +49 -33
  303. package/es/components/steps/index.mjs +2 -2
  304. package/es/components/steps/src/item.mjs +191 -20
  305. package/es/components/steps/src/item.mjs.map +1 -1
  306. package/es/components/steps/src/item2.mjs +20 -191
  307. package/es/components/steps/src/item2.mjs.map +1 -1
  308. package/es/components/tabs/index.mjs +2 -2
  309. package/es/components/tabs/src/tab-pane.mjs +73 -13
  310. package/es/components/tabs/src/tab-pane.mjs.map +1 -1
  311. package/es/components/tabs/src/tab-pane2.mjs +13 -73
  312. package/es/components/tabs/src/tab-pane2.mjs.map +1 -1
  313. package/es/components/time-picker/src/common/picker.vue.d.ts +18 -11
  314. package/es/components/transfer/index.d.ts +90 -55
  315. package/es/components/transfer/src/composables/use-check.mjs +1 -1
  316. package/es/components/transfer/src/transfer-panel.mjs +131 -19
  317. package/es/components/transfer/src/transfer-panel.mjs.map +1 -1
  318. package/es/components/transfer/src/transfer-panel.vue.d.ts +18 -11
  319. package/es/components/transfer/src/transfer-panel2.mjs +19 -131
  320. package/es/components/transfer/src/transfer-panel2.mjs.map +1 -1
  321. package/es/components/transfer/src/transfer.vue.d.ts +90 -55
  322. package/es/components/transfer/src/transfer2.mjs +1 -1
  323. package/es/index.mjs +10 -10
  324. package/es/version.d.ts +1 -1
  325. package/es/version.mjs +1 -1
  326. package/es/version.mjs.map +1 -1
  327. package/lib/components/alert/index.js +2 -2
  328. package/lib/components/alert/src/alert.js +95 -37
  329. package/lib/components/alert/src/alert.js.map +1 -1
  330. package/lib/components/alert/src/alert2.js +37 -95
  331. package/lib/components/alert/src/alert2.js.map +1 -1
  332. package/lib/components/autocomplete/index.d.ts +49 -33
  333. package/lib/components/autocomplete/src/autocomplete.vue.d.ts +49 -33
  334. package/lib/components/avatar/index.js +2 -2
  335. package/lib/components/avatar/src/avatar.js +67 -33
  336. package/lib/components/avatar/src/avatar.js.map +1 -1
  337. package/lib/components/avatar/src/avatar2.js +33 -67
  338. package/lib/components/avatar/src/avatar2.js.map +1 -1
  339. package/lib/components/badge/index.js +2 -2
  340. package/lib/components/badge/src/badge.js +55 -17
  341. package/lib/components/badge/src/badge.js.map +1 -1
  342. package/lib/components/badge/src/badge2.js +17 -55
  343. package/lib/components/badge/src/badge2.js.map +1 -1
  344. package/lib/components/card/index.js +2 -2
  345. package/lib/components/card/src/card.js +35 -16
  346. package/lib/components/card/src/card.js.map +1 -1
  347. package/lib/components/card/src/card2.js +16 -35
  348. package/lib/components/card/src/card2.js.map +1 -1
  349. package/lib/components/cascader/index.d.ts +62 -44
  350. package/lib/components/cascader/src/index.vue.d.ts +31 -22
  351. package/lib/components/color-picker/index.d.ts +18 -11
  352. package/lib/components/color-picker/src/color-picker.vue.d.ts +18 -11
  353. package/lib/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +18 -11
  354. package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +18 -11
  355. package/lib/components/date-picker/src/panel-utils.d.ts +36 -22
  356. package/lib/components/descriptions/src/description2.js +1 -1
  357. package/lib/components/descriptions/src/descriptions-row.js +64 -7
  358. package/lib/components/descriptions/src/descriptions-row.js.map +1 -1
  359. package/lib/components/descriptions/src/descriptions-row2.js +7 -64
  360. package/lib/components/descriptions/src/descriptions-row2.js.map +1 -1
  361. package/lib/components/index.js +10 -10
  362. package/lib/components/input/index.d.ts +18 -11
  363. package/lib/components/input/src/input.d.ts +6 -1
  364. package/lib/components/input/src/input.js +1 -2
  365. package/lib/components/input/src/input.js.map +1 -1
  366. package/lib/components/input/src/input.vue.d.ts +18 -11
  367. package/lib/components/input/src/input2.js +4 -31
  368. package/lib/components/input/src/input2.js.map +1 -1
  369. package/lib/components/input-number/index.d.ts +49 -33
  370. package/lib/components/input-number/index.js +2 -2
  371. package/lib/components/input-number/src/input-number.js +297 -57
  372. package/lib/components/input-number/src/input-number.js.map +1 -1
  373. package/lib/components/input-number/src/input-number.vue.d.ts +49 -33
  374. package/lib/components/input-number/src/input-number2.js +57 -297
  375. package/lib/components/input-number/src/input-number2.js.map +1 -1
  376. package/lib/components/menu/index.js +2 -2
  377. package/lib/components/menu/src/menu-item.js +100 -15
  378. package/lib/components/menu/src/menu-item.js.map +1 -1
  379. package/lib/components/menu/src/menu-item2.js +15 -100
  380. package/lib/components/menu/src/menu-item2.js.map +1 -1
  381. package/lib/components/page-header/index.js +2 -2
  382. package/lib/components/page-header/src/page-header.js +102 -18
  383. package/lib/components/page-header/src/page-header.js.map +1 -1
  384. package/lib/components/page-header/src/page-header2.js +18 -102
  385. package/lib/components/page-header/src/page-header2.js.map +1 -1
  386. package/lib/components/pagination/src/components/jumper.vue.d.ts +18 -11
  387. package/lib/components/pagination/src/components/prev.js +34 -19
  388. package/lib/components/pagination/src/components/prev.js.map +1 -1
  389. package/lib/components/pagination/src/components/prev2.js +19 -34
  390. package/lib/components/pagination/src/components/prev2.js.map +1 -1
  391. package/lib/components/pagination/src/pagination.js +1 -1
  392. package/lib/components/radio/index.js +2 -2
  393. package/lib/components/radio/src/radio-button.js +64 -9
  394. package/lib/components/radio/src/radio-button.js.map +1 -1
  395. package/lib/components/radio/src/radio-button2.js +9 -64
  396. package/lib/components/radio/src/radio-button2.js.map +1 -1
  397. package/lib/components/slider/index.d.ts +49 -33
  398. package/lib/components/slider/src/slider.vue.d.ts +49 -33
  399. package/lib/components/steps/index.js +2 -2
  400. package/lib/components/steps/src/item.js +191 -20
  401. package/lib/components/steps/src/item.js.map +1 -1
  402. package/lib/components/steps/src/item2.js +20 -191
  403. package/lib/components/steps/src/item2.js.map +1 -1
  404. package/lib/components/tabs/index.js +2 -2
  405. package/lib/components/tabs/src/tab-pane.js +73 -13
  406. package/lib/components/tabs/src/tab-pane.js.map +1 -1
  407. package/lib/components/tabs/src/tab-pane2.js +13 -73
  408. package/lib/components/tabs/src/tab-pane2.js.map +1 -1
  409. package/lib/components/time-picker/src/common/picker.vue.d.ts +18 -11
  410. package/lib/components/transfer/index.d.ts +90 -55
  411. package/lib/components/transfer/src/composables/use-check.js +1 -1
  412. package/lib/components/transfer/src/transfer-panel.js +131 -21
  413. package/lib/components/transfer/src/transfer-panel.js.map +1 -1
  414. package/lib/components/transfer/src/transfer-panel.vue.d.ts +18 -11
  415. package/lib/components/transfer/src/transfer-panel2.js +21 -131
  416. package/lib/components/transfer/src/transfer-panel2.js.map +1 -1
  417. package/lib/components/transfer/src/transfer.vue.d.ts +90 -55
  418. package/lib/components/transfer/src/transfer2.js +1 -1
  419. package/lib/index.js +10 -10
  420. package/lib/version.d.ts +1 -1
  421. package/lib/version.js +1 -1
  422. package/lib/version.js.map +1 -1
  423. package/package.json +2 -2
  424. package/web-types.json +1 -1
@@ -1,67 +1,308 @@
1
+ import { defineComponent, ref, reactive, computed, watch, onMounted, onUpdated, openBlock, createElementBlock, normalizeClass, unref, withModifiers, withDirectives, withKeys, createVNode, withCtx, createBlock, createCommentVNode } from 'vue';
1
2
  import { isNil } from 'lodash-unified';
3
+ import { ElInput } from '../../input/index.mjs';
4
+ import { ElIcon } from '../../icon/index.mjs';
5
+ import '../../../directives/index.mjs';
2
6
  import '../../../hooks/index.mjs';
3
7
  import '../../../utils/index.mjs';
8
+ import { ArrowDown, Minus, ArrowUp, Plus } from '@element-plus/icons-vue';
4
9
  import '../../../constants/index.mjs';
5
- import { buildProps } from '../../../utils/vue/props/runtime.mjs';
6
- import { useSizeProp } from '../../../hooks/use-common-props/index.mjs';
10
+ import { inputNumberProps, inputNumberEmits } from './input-number2.mjs';
11
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
12
+ import { useLocale } from '../../../hooks/use-locale/index.mjs';
13
+ import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
14
+ import { useFormItem } from '../../../hooks/use-form-item/index.mjs';
7
15
  import { isNumber } from '@vueuse/core';
8
- import { CHANGE_EVENT, INPUT_EVENT, UPDATE_MODEL_EVENT } from '../../../constants/event.mjs';
16
+ import { isUndefined } from '../../../utils/types.mjs';
17
+ import { debugWarn } from '../../../utils/error.mjs';
18
+ import { useSize, useDisabled } from '../../../hooks/use-common-props/index.mjs';
19
+ import { INPUT_EVENT, UPDATE_MODEL_EVENT, CHANGE_EVENT } from '../../../constants/event.mjs';
20
+ import { isString } from '@vue/shared';
21
+ import { vRepeatClick } from '../../../directives/repeat-click/index.mjs';
9
22
 
10
- const inputNumberProps = buildProps({
11
- id: {
12
- type: String,
13
- default: void 0
14
- },
15
- step: {
16
- type: Number,
17
- default: 1
18
- },
19
- stepStrictly: Boolean,
20
- max: {
21
- type: Number,
22
- default: Number.POSITIVE_INFINITY
23
- },
24
- min: {
25
- type: Number,
26
- default: Number.NEGATIVE_INFINITY
27
- },
28
- modelValue: Number,
29
- readonly: Boolean,
30
- disabled: Boolean,
31
- size: useSizeProp,
32
- controls: {
33
- type: Boolean,
34
- default: true
35
- },
36
- controlsPosition: {
37
- type: String,
38
- default: "",
39
- values: ["", "right"]
40
- },
41
- valueOnClear: {
42
- type: [String, Number, null],
43
- validator: (val) => val === null || isNumber(val) || ["min", "max"].includes(val),
44
- default: null
45
- },
46
- name: String,
47
- label: String,
48
- placeholder: String,
49
- precision: {
50
- type: Number,
51
- validator: (val) => val >= 0 && val === Number.parseInt(`${val}`, 10)
52
- },
53
- validateEvent: {
54
- type: Boolean,
55
- default: true
23
+ const _hoisted_1 = ["aria-label", "onKeydown"];
24
+ const _hoisted_2 = ["aria-label", "onKeydown"];
25
+ const __default__ = defineComponent({
26
+ name: "ElInputNumber"
27
+ });
28
+ const _sfc_main = /* @__PURE__ */ defineComponent({
29
+ ...__default__,
30
+ props: inputNumberProps,
31
+ emits: inputNumberEmits,
32
+ setup(__props, { expose, emit }) {
33
+ const props = __props;
34
+ const { t } = useLocale();
35
+ const ns = useNamespace("input-number");
36
+ const input = ref();
37
+ const data = reactive({
38
+ currentValue: props.modelValue,
39
+ userInput: null
40
+ });
41
+ const { formItem } = useFormItem();
42
+ const minDisabled = computed(() => isNumber(props.modelValue) && ensurePrecision(props.modelValue, -1) < props.min);
43
+ const maxDisabled = computed(() => isNumber(props.modelValue) && ensurePrecision(props.modelValue) > props.max);
44
+ const numPrecision = computed(() => {
45
+ const stepPrecision = getPrecision(props.step);
46
+ if (!isUndefined(props.precision)) {
47
+ if (stepPrecision > props.precision) {
48
+ debugWarn("InputNumber", "precision should not be less than the decimal places of step");
49
+ }
50
+ return props.precision;
51
+ } else {
52
+ return Math.max(getPrecision(props.modelValue), stepPrecision);
53
+ }
54
+ });
55
+ const controlsAtRight = computed(() => {
56
+ return props.controls && props.controlsPosition === "right";
57
+ });
58
+ const inputNumberSize = useSize();
59
+ const inputNumberDisabled = useDisabled();
60
+ const displayValue = computed(() => {
61
+ if (data.userInput !== null) {
62
+ return data.userInput;
63
+ }
64
+ let currentValue = data.currentValue;
65
+ if (isNil(currentValue))
66
+ return "";
67
+ if (isNumber(currentValue)) {
68
+ if (Number.isNaN(currentValue))
69
+ return "";
70
+ if (!isUndefined(props.precision)) {
71
+ currentValue = currentValue.toFixed(props.precision);
72
+ }
73
+ }
74
+ return currentValue;
75
+ });
76
+ const toPrecision = (num, pre) => {
77
+ if (isUndefined(pre))
78
+ pre = numPrecision.value;
79
+ if (pre === 0)
80
+ return Math.round(num);
81
+ let snum = String(num);
82
+ const pointPos = snum.indexOf(".");
83
+ if (pointPos === -1)
84
+ return num;
85
+ const nums = snum.replace(".", "").split("");
86
+ const datum = nums[pointPos + pre];
87
+ if (!datum)
88
+ return num;
89
+ const length = snum.length;
90
+ if (snum.charAt(length - 1) === "5") {
91
+ snum = `${snum.slice(0, Math.max(0, length - 1))}6`;
92
+ }
93
+ return Number.parseFloat(Number(snum).toFixed(pre));
94
+ };
95
+ const getPrecision = (value) => {
96
+ if (isNil(value))
97
+ return 0;
98
+ const valueString = value.toString();
99
+ const dotPosition = valueString.indexOf(".");
100
+ let precision = 0;
101
+ if (dotPosition !== -1) {
102
+ precision = valueString.length - dotPosition - 1;
103
+ }
104
+ return precision;
105
+ };
106
+ const ensurePrecision = (val, coefficient = 1) => {
107
+ if (!isNumber(val))
108
+ return data.currentValue;
109
+ return toPrecision(val + props.step * coefficient);
110
+ };
111
+ const increase = () => {
112
+ if (props.readonly || inputNumberDisabled.value || maxDisabled.value)
113
+ return;
114
+ const value = props.modelValue || 0;
115
+ const newVal = ensurePrecision(value);
116
+ setCurrentValue(newVal);
117
+ emit(INPUT_EVENT, data.currentValue);
118
+ };
119
+ const decrease = () => {
120
+ if (props.readonly || inputNumberDisabled.value || minDisabled.value)
121
+ return;
122
+ const value = props.modelValue || 0;
123
+ const newVal = ensurePrecision(value, -1);
124
+ setCurrentValue(newVal);
125
+ emit(INPUT_EVENT, data.currentValue);
126
+ };
127
+ const verifyValue = (value, update) => {
128
+ const { max, min, step, precision, stepStrictly, valueOnClear } = props;
129
+ let newVal = Number(value);
130
+ if (isNil(value) || Number.isNaN(newVal)) {
131
+ return null;
132
+ }
133
+ if (value === "") {
134
+ if (valueOnClear === null) {
135
+ return null;
136
+ }
137
+ newVal = isString(valueOnClear) ? { min, max }[valueOnClear] : valueOnClear;
138
+ }
139
+ if (stepStrictly) {
140
+ newVal = toPrecision(Math.round(newVal / step) * step, precision);
141
+ }
142
+ if (!isUndefined(precision)) {
143
+ newVal = toPrecision(newVal, precision);
144
+ }
145
+ if (newVal > max || newVal < min) {
146
+ newVal = newVal > max ? max : min;
147
+ update && emit(UPDATE_MODEL_EVENT, newVal);
148
+ }
149
+ return newVal;
150
+ };
151
+ const setCurrentValue = (value) => {
152
+ var _a;
153
+ const oldVal = data.currentValue;
154
+ const newVal = verifyValue(value);
155
+ if (oldVal === newVal)
156
+ return;
157
+ data.userInput = null;
158
+ emit(UPDATE_MODEL_EVENT, newVal);
159
+ emit(CHANGE_EVENT, newVal, oldVal);
160
+ if (props.validateEvent) {
161
+ (_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change").catch((err) => debugWarn(err));
162
+ }
163
+ data.currentValue = newVal;
164
+ };
165
+ const handleInput = (value) => {
166
+ data.userInput = value;
167
+ emit(INPUT_EVENT, value === "" ? null : Number(value));
168
+ };
169
+ const handleInputChange = (value) => {
170
+ const newVal = value !== "" ? Number(value) : "";
171
+ if (isNumber(newVal) && !Number.isNaN(newVal) || value === "") {
172
+ setCurrentValue(newVal);
173
+ }
174
+ data.userInput = null;
175
+ };
176
+ const focus = () => {
177
+ var _a, _b;
178
+ (_b = (_a = input.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);
179
+ };
180
+ const blur = () => {
181
+ var _a, _b;
182
+ (_b = (_a = input.value) == null ? void 0 : _a.blur) == null ? void 0 : _b.call(_a);
183
+ };
184
+ const handleFocus = (event) => {
185
+ emit("focus", event);
186
+ };
187
+ const handleBlur = (event) => {
188
+ var _a;
189
+ emit("blur", event);
190
+ if (props.validateEvent) {
191
+ (_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur").catch((err) => debugWarn(err));
192
+ }
193
+ };
194
+ watch(() => props.modelValue, (value) => {
195
+ data.currentValue = verifyValue(value, true);
196
+ data.userInput = null;
197
+ }, { immediate: true });
198
+ onMounted(() => {
199
+ var _a;
200
+ const { min, max, modelValue } = props;
201
+ const innerInput = (_a = input.value) == null ? void 0 : _a.input;
202
+ innerInput.setAttribute("role", "spinbutton");
203
+ if (Number.isFinite(max)) {
204
+ innerInput.setAttribute("aria-valuemax", String(max));
205
+ } else {
206
+ innerInput.removeAttribute("aria-valuemax");
207
+ }
208
+ if (Number.isFinite(min)) {
209
+ innerInput.setAttribute("aria-valuemin", String(min));
210
+ } else {
211
+ innerInput.removeAttribute("aria-valuemin");
212
+ }
213
+ innerInput.setAttribute("aria-valuenow", String(data.currentValue));
214
+ innerInput.setAttribute("aria-disabled", String(inputNumberDisabled.value));
215
+ if (!isNumber(modelValue) && modelValue != null) {
216
+ let val = Number(modelValue);
217
+ if (Number.isNaN(val)) {
218
+ val = null;
219
+ }
220
+ emit(UPDATE_MODEL_EVENT, val);
221
+ }
222
+ });
223
+ onUpdated(() => {
224
+ var _a;
225
+ const innerInput = (_a = input.value) == null ? void 0 : _a.input;
226
+ innerInput == null ? void 0 : innerInput.setAttribute("aria-valuenow", `${data.currentValue}`);
227
+ });
228
+ expose({
229
+ focus,
230
+ blur
231
+ });
232
+ return (_ctx, _cache) => {
233
+ return openBlock(), createElementBlock("div", {
234
+ class: normalizeClass([
235
+ unref(ns).b(),
236
+ unref(ns).m(unref(inputNumberSize)),
237
+ unref(ns).is("disabled", unref(inputNumberDisabled)),
238
+ unref(ns).is("without-controls", !_ctx.controls),
239
+ unref(ns).is("controls-right", unref(controlsAtRight))
240
+ ]),
241
+ onDragstart: _cache[0] || (_cache[0] = withModifiers(() => {
242
+ }, ["prevent"]))
243
+ }, [
244
+ _ctx.controls ? withDirectives((openBlock(), createElementBlock("span", {
245
+ key: 0,
246
+ role: "button",
247
+ "aria-label": unref(t)("el.inputNumber.decrease"),
248
+ class: normalizeClass([unref(ns).e("decrease"), unref(ns).is("disabled", unref(minDisabled))]),
249
+ onKeydown: withKeys(decrease, ["enter"])
250
+ }, [
251
+ createVNode(unref(ElIcon), null, {
252
+ default: withCtx(() => [
253
+ unref(controlsAtRight) ? (openBlock(), createBlock(unref(ArrowDown), { key: 0 })) : (openBlock(), createBlock(unref(Minus), { key: 1 }))
254
+ ]),
255
+ _: 1
256
+ })
257
+ ], 42, _hoisted_1)), [
258
+ [unref(vRepeatClick), decrease]
259
+ ]) : createCommentVNode("v-if", true),
260
+ _ctx.controls ? withDirectives((openBlock(), createElementBlock("span", {
261
+ key: 1,
262
+ role: "button",
263
+ "aria-label": unref(t)("el.inputNumber.increase"),
264
+ class: normalizeClass([unref(ns).e("increase"), unref(ns).is("disabled", unref(maxDisabled))]),
265
+ onKeydown: withKeys(increase, ["enter"])
266
+ }, [
267
+ createVNode(unref(ElIcon), null, {
268
+ default: withCtx(() => [
269
+ unref(controlsAtRight) ? (openBlock(), createBlock(unref(ArrowUp), { key: 0 })) : (openBlock(), createBlock(unref(Plus), { key: 1 }))
270
+ ]),
271
+ _: 1
272
+ })
273
+ ], 42, _hoisted_2)), [
274
+ [unref(vRepeatClick), increase]
275
+ ]) : createCommentVNode("v-if", true),
276
+ createVNode(unref(ElInput), {
277
+ id: _ctx.id,
278
+ ref_key: "input",
279
+ ref: input,
280
+ type: "number",
281
+ step: _ctx.step,
282
+ "model-value": unref(displayValue),
283
+ placeholder: _ctx.placeholder,
284
+ readonly: _ctx.readonly,
285
+ disabled: unref(inputNumberDisabled),
286
+ size: unref(inputNumberSize),
287
+ max: _ctx.max,
288
+ min: _ctx.min,
289
+ name: _ctx.name,
290
+ label: _ctx.label,
291
+ "validate-event": false,
292
+ onKeydown: [
293
+ withKeys(withModifiers(increase, ["prevent"]), ["up"]),
294
+ withKeys(withModifiers(decrease, ["prevent"]), ["down"])
295
+ ],
296
+ onBlur: handleBlur,
297
+ onFocus: handleFocus,
298
+ onInput: handleInput,
299
+ onChange: handleInputChange
300
+ }, null, 8, ["id", "step", "model-value", "placeholder", "readonly", "disabled", "size", "max", "min", "name", "label", "onKeydown"])
301
+ ], 34);
302
+ };
56
303
  }
57
304
  });
58
- const inputNumberEmits = {
59
- [CHANGE_EVENT]: (prev, cur) => prev !== cur,
60
- blur: (e) => e instanceof FocusEvent,
61
- focus: (e) => e instanceof FocusEvent,
62
- [INPUT_EVENT]: (val) => isNumber(val) || isNil(val),
63
- [UPDATE_MODEL_EVENT]: (val) => isNumber(val) || isNil(val)
64
- };
305
+ var InputNumber = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]]);
65
306
 
66
- export { inputNumberEmits, inputNumberProps };
307
+ export { InputNumber as default };
67
308
  //# sourceMappingURL=input-number.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"input-number.mjs","sources":["../../../../../../packages/components/input-number/src/input-number.ts"],"sourcesContent":["import { isNil } from 'lodash-unified'\nimport { useSizeProp } from '@element-plus/hooks'\nimport { buildProps, isNumber } from '@element-plus/utils'\nimport {\n CHANGE_EVENT,\n INPUT_EVENT,\n UPDATE_MODEL_EVENT,\n} from '@element-plus/constants'\nimport type { ExtractPropTypes } from 'vue'\nimport type InputNumber from './input-number.vue'\n\nexport const inputNumberProps = buildProps({\n id: {\n type: String,\n default: undefined,\n },\n step: {\n type: Number,\n default: 1,\n },\n stepStrictly: Boolean,\n max: {\n type: Number,\n default: Number.POSITIVE_INFINITY,\n },\n min: {\n type: Number,\n default: Number.NEGATIVE_INFINITY,\n },\n modelValue: Number,\n readonly: Boolean,\n disabled: Boolean,\n size: useSizeProp,\n controls: {\n type: Boolean,\n default: true,\n },\n controlsPosition: {\n type: String,\n default: '',\n values: ['', 'right'],\n },\n valueOnClear: {\n type: [String, Number, null],\n validator: (val: 'min' | 'max' | number | null) =>\n val === null || isNumber(val) || ['min', 'max'].includes(val),\n default: null,\n },\n name: String,\n label: String,\n placeholder: String,\n precision: {\n type: Number,\n validator: (val: number) =>\n val >= 0 && val === Number.parseInt(`${val}`, 10),\n },\n validateEvent: {\n type: Boolean,\n default: true,\n },\n} as const)\nexport type InputNumberProps = ExtractPropTypes<typeof inputNumberProps>\n\nexport const inputNumberEmits = {\n [CHANGE_EVENT]: (prev: number | undefined, cur: number | undefined) =>\n prev !== cur,\n blur: (e: FocusEvent) => e instanceof FocusEvent,\n focus: (e: FocusEvent) => e instanceof FocusEvent,\n [INPUT_EVENT]: (val: number | null | undefined) =>\n isNumber(val) || isNil(val),\n [UPDATE_MODEL_EVENT]: (val: number | undefined) =>\n isNumber(val) || isNil(val),\n}\nexport type InputNumberEmits = typeof inputNumberEmits\n\nexport type InputNumberInstance = InstanceType<typeof InputNumber>\n"],"names":[],"mappings":";;;;;;;;;AAQY,MAAC,gBAAgB,GAAG,UAAU,CAAC;AAC3C,EAAE,EAAE,EAAE;AACN,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,YAAY,EAAE,OAAO;AACvB,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,MAAM,CAAC,iBAAiB;AACrC,GAAG;AACH,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,MAAM,CAAC,iBAAiB;AACrC,GAAG;AACH,EAAE,UAAU,EAAE,MAAM;AACpB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,IAAI,EAAE,WAAW;AACnB,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,gBAAgB,EAAE;AACpB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,IAAI,MAAM,EAAE,CAAC,EAAE,EAAE,OAAO,CAAC;AACzB,GAAG;AACH,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC;AAChC,IAAI,SAAS,EAAE,CAAC,GAAG,KAAK,GAAG,KAAK,IAAI,IAAI,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC;AACrF,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,IAAI,EAAE,MAAM;AACd,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,WAAW,EAAE,MAAM;AACrB,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,SAAS,EAAE,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,IAAI,GAAG,KAAK,MAAM,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC;AACzE,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,gBAAgB,GAAG;AAChC,EAAE,CAAC,YAAY,GAAG,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,KAAK,GAAG;AAC7C,EAAE,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,YAAY,UAAU;AACtC,EAAE,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,YAAY,UAAU;AACvC,EAAE,CAAC,WAAW,GAAG,CAAC,GAAG,KAAK,QAAQ,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,GAAG,CAAC;AACrD,EAAE,CAAC,kBAAkB,GAAG,CAAC,GAAG,KAAK,QAAQ,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,GAAG,CAAC;AAC5D;;;;"}
1
+ {"version":3,"file":"input-number.mjs","sources":["../../../../../../packages/components/input-number/src/input-number.vue"],"sourcesContent":["<template>\n <div\n :class=\"[\n ns.b(),\n ns.m(inputNumberSize),\n ns.is('disabled', inputNumberDisabled),\n ns.is('without-controls', !controls),\n ns.is('controls-right', controlsAtRight),\n ]\"\n @dragstart.prevent\n >\n <span\n v-if=\"controls\"\n v-repeat-click=\"decrease\"\n role=\"button\"\n :aria-label=\"t('el.inputNumber.decrease')\"\n :class=\"[ns.e('decrease'), ns.is('disabled', minDisabled)]\"\n @keydown.enter=\"decrease\"\n >\n <el-icon>\n <arrow-down v-if=\"controlsAtRight\" />\n <minus v-else />\n </el-icon>\n </span>\n <span\n v-if=\"controls\"\n v-repeat-click=\"increase\"\n role=\"button\"\n :aria-label=\"t('el.inputNumber.increase')\"\n :class=\"[ns.e('increase'), ns.is('disabled', maxDisabled)]\"\n @keydown.enter=\"increase\"\n >\n <el-icon>\n <arrow-up v-if=\"controlsAtRight\" />\n <plus v-else />\n </el-icon>\n </span>\n <el-input\n :id=\"id\"\n ref=\"input\"\n type=\"number\"\n :step=\"step\"\n :model-value=\"displayValue\"\n :placeholder=\"placeholder\"\n :readonly=\"readonly\"\n :disabled=\"inputNumberDisabled\"\n :size=\"inputNumberSize\"\n :max=\"max\"\n :min=\"min\"\n :name=\"name\"\n :label=\"label\"\n :validate-event=\"false\"\n @keydown.up.prevent=\"increase\"\n @keydown.down.prevent=\"decrease\"\n @blur=\"handleBlur\"\n @focus=\"handleFocus\"\n @input=\"handleInput\"\n @change=\"handleInputChange\"\n />\n </div>\n</template>\n<script lang=\"ts\" setup>\nimport { computed, onMounted, onUpdated, reactive, ref, watch } from 'vue'\nimport { isNil } from 'lodash-unified'\nimport { ElInput } from '@element-plus/components/input'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { vRepeatClick } from '@element-plus/directives'\nimport {\n useDisabled,\n useFormItem,\n useLocale,\n useNamespace,\n useSize,\n} from '@element-plus/hooks'\nimport { debugWarn, isNumber, isString, isUndefined } from '@element-plus/utils'\nimport { ArrowDown, ArrowUp, Minus, Plus } from '@element-plus/icons-vue'\nimport {\n CHANGE_EVENT,\n INPUT_EVENT,\n UPDATE_MODEL_EVENT,\n} from '@element-plus/constants'\nimport { inputNumberEmits, inputNumberProps } from './input-number'\n\nimport type { InputInstance } from '@element-plus/components/input'\n\ndefineOptions({\n name: 'ElInputNumber',\n})\n\nconst props = defineProps(inputNumberProps)\nconst emit = defineEmits(inputNumberEmits)\n\nconst { t } = useLocale()\nconst ns = useNamespace('input-number')\nconst input = ref<InputInstance>()\n\ninterface Data {\n currentValue: number | null | undefined\n userInput: null | number | string\n}\nconst data = reactive<Data>({\n currentValue: props.modelValue,\n userInput: null,\n})\n\nconst { formItem } = useFormItem()\n\nconst minDisabled = computed(\n () =>\n isNumber(props.modelValue) &&\n ensurePrecision(props.modelValue, -1)! < props.min\n)\nconst maxDisabled = computed(\n () =>\n isNumber(props.modelValue) && ensurePrecision(props.modelValue)! > props.max\n)\n\nconst numPrecision = computed(() => {\n const stepPrecision = getPrecision(props.step)\n if (!isUndefined(props.precision)) {\n if (stepPrecision > props.precision) {\n debugWarn(\n 'InputNumber',\n 'precision should not be less than the decimal places of step'\n )\n }\n return props.precision\n } else {\n return Math.max(getPrecision(props.modelValue), stepPrecision)\n }\n})\nconst controlsAtRight = computed(() => {\n return props.controls && props.controlsPosition === 'right'\n})\n\nconst inputNumberSize = useSize()\nconst inputNumberDisabled = useDisabled()\n\nconst displayValue = computed(() => {\n if (data.userInput !== null) {\n return data.userInput\n }\n let currentValue: number | string | undefined | null = data.currentValue\n if (isNil(currentValue)) return ''\n if (isNumber(currentValue)) {\n if (Number.isNaN(currentValue)) return ''\n if (!isUndefined(props.precision)) {\n currentValue = currentValue.toFixed(props.precision)\n }\n }\n return currentValue\n})\nconst toPrecision = (num: number, pre?: number) => {\n if (isUndefined(pre)) pre = numPrecision.value\n if (pre === 0) return Math.round(num)\n let snum = String(num)\n const pointPos = snum.indexOf('.')\n if (pointPos === -1) return num\n const nums = snum.replace('.', '').split('')\n const datum = nums[pointPos + pre]\n if (!datum) return num\n const length = snum.length\n if (snum.charAt(length - 1) === '5') {\n snum = `${snum.slice(0, Math.max(0, length - 1))}6`\n }\n return Number.parseFloat(Number(snum).toFixed(pre))\n}\nconst getPrecision = (value: number | null | undefined) => {\n if (isNil(value)) return 0\n const valueString = value.toString()\n const dotPosition = valueString.indexOf('.')\n let precision = 0\n if (dotPosition !== -1) {\n precision = valueString.length - dotPosition - 1\n }\n return precision\n}\nconst ensurePrecision = (val: number, coefficient: 1 | -1 = 1) => {\n if (!isNumber(val)) return data.currentValue\n // Solve the accuracy problem of JS decimal calculation by converting the value to integer.\n return toPrecision(val + props.step * coefficient)\n}\nconst increase = () => {\n if (props.readonly || inputNumberDisabled.value || maxDisabled.value) return\n const value = props.modelValue || 0\n const newVal = ensurePrecision(value)\n setCurrentValue(newVal)\n emit(INPUT_EVENT, data.currentValue)\n}\nconst decrease = () => {\n if (props.readonly || inputNumberDisabled.value || minDisabled.value) return\n const value = props.modelValue || 0\n const newVal = ensurePrecision(value, -1)\n setCurrentValue(newVal)\n emit(INPUT_EVENT, data.currentValue)\n}\nconst verifyValue = (\n value: number | string | null | undefined,\n update?: boolean\n): number | null | undefined => {\n const { max, min, step, precision, stepStrictly, valueOnClear } = props\n let newVal = Number(value)\n if (isNil(value) || Number.isNaN(newVal)) {\n return null\n }\n if (value === '') {\n if (valueOnClear === null) {\n return null\n }\n newVal = isString(valueOnClear) ? { min, max }[valueOnClear] : valueOnClear\n }\n if (stepStrictly) {\n newVal = toPrecision(Math.round(newVal / step) * step, precision)\n }\n if (!isUndefined(precision)) {\n newVal = toPrecision(newVal, precision)\n }\n if (newVal > max || newVal < min) {\n newVal = newVal > max ? max : min\n update && emit(UPDATE_MODEL_EVENT, newVal)\n }\n return newVal\n}\nconst setCurrentValue = (value: number | string | null | undefined) => {\n const oldVal = data.currentValue\n const newVal = verifyValue(value)\n if (oldVal === newVal) return\n data.userInput = null\n emit(UPDATE_MODEL_EVENT, newVal!)\n emit(CHANGE_EVENT, newVal!, oldVal!)\n if (props.validateEvent) {\n formItem?.validate?.('change').catch((err) => debugWarn(err))\n }\n data.currentValue = newVal\n}\nconst handleInput = (value: string) => {\n data.userInput = value\n emit(INPUT_EVENT, value === '' ? null : Number(value))\n}\nconst handleInputChange = (value: string) => {\n const newVal = value !== '' ? Number(value) : ''\n if ((isNumber(newVal) && !Number.isNaN(newVal)) || value === '') {\n setCurrentValue(newVal)\n }\n data.userInput = null\n}\n\nconst focus = () => {\n input.value?.focus?.()\n}\n\nconst blur = () => {\n input.value?.blur?.()\n}\n\nconst handleFocus = (event: MouseEvent | FocusEvent) => {\n emit('focus', event)\n}\n\nconst handleBlur = (event: MouseEvent | FocusEvent) => {\n emit('blur', event)\n if (props.validateEvent) {\n formItem?.validate?.('blur').catch((err) => debugWarn(err))\n }\n}\n\nwatch(\n () => props.modelValue,\n (value) => {\n data.currentValue = verifyValue(value, true)\n data.userInput = null\n },\n { immediate: true }\n)\nonMounted(() => {\n const { min, max, modelValue } = props\n const innerInput = input.value?.input as HTMLInputElement\n innerInput.setAttribute('role', 'spinbutton')\n if (Number.isFinite(max)) {\n innerInput.setAttribute('aria-valuemax', String(max))\n } else {\n innerInput.removeAttribute('aria-valuemax')\n }\n if (Number.isFinite(min)) {\n innerInput.setAttribute('aria-valuemin', String(min))\n } else {\n innerInput.removeAttribute('aria-valuemin')\n }\n innerInput.setAttribute('aria-valuenow', String(data.currentValue))\n innerInput.setAttribute('aria-disabled', String(inputNumberDisabled.value))\n if (!isNumber(modelValue) && modelValue != null) {\n let val: number | null = Number(modelValue)\n if (Number.isNaN(val)) {\n val = null\n }\n emit(UPDATE_MODEL_EVENT, val!)\n }\n})\nonUpdated(() => {\n const innerInput = input.value?.input\n innerInput?.setAttribute('aria-valuenow', `${data.currentValue}`)\n})\ndefineExpose({\n /** @description get focus the input component */\n focus,\n /** @description remove focus the input component */\n blur,\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;mCAqFc,CAAA;AAAA,EACZ,IAAM,EAAA,eAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAKA,IAAM,MAAA,EAAE,MAAM,SAAU,EAAA,CAAA;AACxB,IAAM,MAAA,EAAA,GAAK,aAAa,cAAc,CAAA,CAAA;AACtC,IAAA,MAAM,QAAQ,GAAmB,EAAA,CAAA;AAMjC,IAAA,MAAM,OAAO,QAAe,CAAA;AAAA,MAC1B,cAAc,KAAM,CAAA,UA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A,MAAA,CAAW,QAAa,CAAA,GAAA,CAAA,EAAA;AACxB,QAAA,UAAwB,CAAA,YAAA,CAAA,eAAiB,EAAO,MAAA,CAAA,GAAA,CAAA,CAAA,CAAA;AAChD,OAAA,MAAK;AACH,QAAI,UAAqB,gBAAiB,CAAA,eAAA,CAAA,CAAA;AAC1C,OAAI;AACF,MAAM,UAAA,CAAA,YAAA,CAAA,eAAA,EAAA,MAAA,CAAA,IAAA,CAAA,YAAA,CAAA,CAAA,CAAA;AAAA,MACR,UAAA,CAAA,YAAA,CAAA,eAAA,EAAA,MAAA,CAAA,mBAAA,CAAA,KAAA,CAAA,CAAA,CAAA;AACA,MAAA,IAAA,CAAA,wBAA6B,UAAA,IAAA,IAAA,EAAA;AAAA,QAC/B,IAAA,GAAA,GAAA,MAAA,CAAA,UAAA,CAAA,CAAA;AAAA,QACD,IAAA,MAAA,CAAA,KAAA,CAAA,GAAA,CAAA,EAAA;AACD,UAAA,GAAA,GAAgB,IAAA,CAAA;AACd,SAAM;AACN,QAAA,IAAA,CAAA,kBAAyB,EAAA,GAAA,CAAA,CAAA;AAAuC,OACjE;AACD,KAAa,CAAA,CAAA;AAAA,IAEX,SAAA,CAAA,MAAA;AAAA,MAEA,IAAA,EAAA,CAAA;AAAA,MACD,MAAA,UAAA,GAAA,CAAA,EAAA,GAAA,KAAA,CAAA,KAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,KAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -94,7 +94,6 @@ declare const _default: import("vue").DefineComponent<{
94
94
  readonly id: string;
95
95
  readonly autosize: import("element-plus/es/components/input").InputAutoSize;
96
96
  readonly autocomplete: string;
97
- readonly form: string;
98
97
  readonly readonly: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
99
98
  readonly clearable: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
100
99
  readonly showPassword: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
@@ -139,7 +138,12 @@ declare const _default: import("vue").DefineComponent<{
139
138
  readonly validator: ((val: unknown) => boolean) | undefined;
140
139
  __epPropKey: true;
141
140
  };
142
- readonly form: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
141
+ readonly form: {
142
+ readonly type: import("vue").PropType<string>;
143
+ readonly required: false;
144
+ readonly validator: ((val: unknown) => boolean) | undefined;
145
+ __epPropKey: true;
146
+ };
143
147
  readonly readonly: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
144
148
  readonly clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
145
149
  readonly showPassword: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
@@ -174,7 +178,7 @@ declare const _default: import("vue").DefineComponent<{
174
178
  onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
175
179
  onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
176
180
  onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
177
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "disabled" | "label" | "modelValue" | "validateEvent" | "id" | "autosize" | "autocomplete" | "form" | "readonly" | "clearable" | "showPassword" | "showWordLimit" | "containerRole" | "tabindex" | "inputStyle">;
181
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "disabled" | "label" | "modelValue" | "validateEvent" | "id" | "autosize" | "autocomplete" | "readonly" | "clearable" | "showPassword" | "showWordLimit" | "containerRole" | "tabindex" | "inputStyle">;
178
182
  $attrs: {
179
183
  [x: string]: unknown;
180
184
  };
@@ -225,7 +229,12 @@ declare const _default: import("vue").DefineComponent<{
225
229
  readonly validator: ((val: unknown) => boolean) | undefined;
226
230
  __epPropKey: true;
227
231
  };
228
- readonly form: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
232
+ readonly form: {
233
+ readonly type: import("vue").PropType<string>;
234
+ readonly required: false;
235
+ readonly validator: ((val: unknown) => boolean) | undefined;
236
+ __epPropKey: true;
237
+ };
229
238
  readonly readonly: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
230
239
  readonly clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
231
240
  readonly showPassword: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
@@ -261,10 +270,6 @@ declare const _default: import("vue").DefineComponent<{
261
270
  onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
262
271
  onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
263
272
  }, {
264
- PENDANT_MAP: {
265
- readonly suffix: "append";
266
- readonly prefix: "prepend";
267
- };
268
273
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
269
274
  readonly id: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
270
275
  readonly size: {
@@ -302,7 +307,12 @@ declare const _default: import("vue").DefineComponent<{
302
307
  readonly validator: ((val: unknown) => boolean) | undefined;
303
308
  __epPropKey: true;
304
309
  };
305
- readonly form: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
310
+ readonly form: {
311
+ readonly type: import("vue").PropType<string>;
312
+ readonly required: false;
313
+ readonly validator: ((val: unknown) => boolean) | undefined;
314
+ __epPropKey: true;
315
+ };
306
316
  readonly readonly: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
307
317
  readonly clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
308
318
  readonly showPassword: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
@@ -339,7 +349,6 @@ declare const _default: import("vue").DefineComponent<{
339
349
  onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
340
350
  }>>;
341
351
  emit: ((event: "update:modelValue", value: string) => void) & ((event: "change", value: string) => void) & ((event: "input", value: string) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "clear") => void) & ((event: "mouseleave", evt: MouseEvent) => void) & ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "keydown", evt: Event | KeyboardEvent) => void) & ((event: "compositionstart", evt: CompositionEvent) => void) & ((event: "compositionupdate", evt: CompositionEvent) => void) & ((event: "compositionend", evt: CompositionEvent) => void);
342
- instance: import("vue").ComponentInternalInstance;
343
352
  rawAttrs: {
344
353
  [x: string]: unknown;
345
354
  };
@@ -415,8 +424,6 @@ declare const _default: import("vue").DefineComponent<{
415
424
  setCursor: () => void;
416
425
  resizeTextarea: () => void;
417
426
  setNativeInputValue: () => void;
418
- calcIconOffset: (place: "suffix" | "prefix") => void;
419
- updateIconOffset: () => void;
420
427
  handleInput: (event: Event) => Promise<void>;
421
428
  handleChange: (event: Event) => void;
422
429
  handleCompositionStart: (event: CompositionEvent) => void;
@@ -519,7 +526,6 @@ declare const _default: import("vue").DefineComponent<{
519
526
  readonly id: string;
520
527
  readonly autosize: import("element-plus/es/components/input").InputAutoSize;
521
528
  readonly autocomplete: string;
522
- readonly form: string;
523
529
  readonly readonly: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
524
530
  readonly clearable: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
525
531
  readonly showPassword: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
@@ -584,7 +590,12 @@ declare const _default: import("vue").DefineComponent<{
584
590
  readonly validator: ((val: unknown) => boolean) | undefined;
585
591
  __epPropKey: true;
586
592
  };
587
- readonly form: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
593
+ readonly form: {
594
+ readonly type: import("vue").PropType<string>;
595
+ readonly required: false;
596
+ readonly validator: ((val: unknown) => boolean) | undefined;
597
+ __epPropKey: true;
598
+ };
588
599
  readonly readonly: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
589
600
  readonly clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
590
601
  readonly showPassword: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
@@ -620,10 +631,6 @@ declare const _default: import("vue").DefineComponent<{
620
631
  onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
621
632
  onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
622
633
  } & import("vue").ShallowUnwrapRef<{
623
- PENDANT_MAP: {
624
- readonly suffix: "append";
625
- readonly prefix: "prepend";
626
- };
627
634
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
628
635
  readonly id: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
629
636
  readonly size: {
@@ -661,7 +668,12 @@ declare const _default: import("vue").DefineComponent<{
661
668
  readonly validator: ((val: unknown) => boolean) | undefined;
662
669
  __epPropKey: true;
663
670
  };
664
- readonly form: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
671
+ readonly form: {
672
+ readonly type: import("vue").PropType<string>;
673
+ readonly required: false;
674
+ readonly validator: ((val: unknown) => boolean) | undefined;
675
+ __epPropKey: true;
676
+ };
665
677
  readonly readonly: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
666
678
  readonly clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
667
679
  readonly showPassword: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
@@ -698,7 +710,6 @@ declare const _default: import("vue").DefineComponent<{
698
710
  onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
699
711
  }>>;
700
712
  emit: ((event: "update:modelValue", value: string) => void) & ((event: "change", value: string) => void) & ((event: "input", value: string) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "clear") => void) & ((event: "mouseleave", evt: MouseEvent) => void) & ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "keydown", evt: Event | KeyboardEvent) => void) & ((event: "compositionstart", evt: CompositionEvent) => void) & ((event: "compositionupdate", evt: CompositionEvent) => void) & ((event: "compositionend", evt: CompositionEvent) => void);
701
- instance: import("vue").ComponentInternalInstance;
702
713
  rawAttrs: {
703
714
  [x: string]: unknown;
704
715
  };
@@ -774,8 +785,6 @@ declare const _default: import("vue").DefineComponent<{
774
785
  setCursor: () => void;
775
786
  resizeTextarea: () => void;
776
787
  setNativeInputValue: () => void;
777
- calcIconOffset: (place: "suffix" | "prefix") => void;
778
- updateIconOffset: () => void;
779
788
  handleInput: (event: Event) => Promise<void>;
780
789
  handleChange: (event: Event) => void;
781
790
  handleCompositionStart: (event: CompositionEvent) => void;
@@ -919,7 +928,12 @@ declare const _default: import("vue").DefineComponent<{
919
928
  readonly validator: ((val: unknown) => boolean) | undefined;
920
929
  __epPropKey: true;
921
930
  };
922
- readonly form: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
931
+ readonly form: {
932
+ readonly type: import("vue").PropType<string>;
933
+ readonly required: false;
934
+ readonly validator: ((val: unknown) => boolean) | undefined;
935
+ __epPropKey: true;
936
+ };
923
937
  readonly readonly: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
924
938
  readonly clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
925
939
  readonly showPassword: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
@@ -942,10 +956,6 @@ declare const _default: import("vue").DefineComponent<{
942
956
  readonly validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
943
957
  readonly inputStyle: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("vue").StyleValue & {}) | (() => import("vue").StyleValue) | ((new (...args: any[]) => import("vue").StyleValue & {}) | (() => import("vue").StyleValue))[], unknown, unknown, () => import("element-plus/es/utils").Mutable<{}>, boolean>;
944
958
  }, {
945
- PENDANT_MAP: {
946
- readonly suffix: "append";
947
- readonly prefix: "prepend";
948
- };
949
959
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
950
960
  readonly id: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
951
961
  readonly size: {
@@ -983,7 +993,12 @@ declare const _default: import("vue").DefineComponent<{
983
993
  readonly validator: ((val: unknown) => boolean) | undefined;
984
994
  __epPropKey: true;
985
995
  };
986
- readonly form: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
996
+ readonly form: {
997
+ readonly type: import("vue").PropType<string>;
998
+ readonly required: false;
999
+ readonly validator: ((val: unknown) => boolean) | undefined;
1000
+ __epPropKey: true;
1001
+ };
987
1002
  readonly readonly: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
988
1003
  readonly clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
989
1004
  readonly showPassword: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
@@ -1020,7 +1035,6 @@ declare const _default: import("vue").DefineComponent<{
1020
1035
  onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
1021
1036
  }>>;
1022
1037
  emit: ((event: "update:modelValue", value: string) => void) & ((event: "change", value: string) => void) & ((event: "input", value: string) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "clear") => void) & ((event: "mouseleave", evt: MouseEvent) => void) & ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "keydown", evt: Event | KeyboardEvent) => void) & ((event: "compositionstart", evt: CompositionEvent) => void) & ((event: "compositionupdate", evt: CompositionEvent) => void) & ((event: "compositionend", evt: CompositionEvent) => void);
1023
- instance: import("vue").ComponentInternalInstance;
1024
1038
  rawAttrs: {
1025
1039
  [x: string]: unknown;
1026
1040
  };
@@ -1096,8 +1110,6 @@ declare const _default: import("vue").DefineComponent<{
1096
1110
  setCursor: () => void;
1097
1111
  resizeTextarea: () => void;
1098
1112
  setNativeInputValue: () => void;
1099
- calcIconOffset: (place: "suffix" | "prefix") => void;
1100
- updateIconOffset: () => void;
1101
1113
  handleInput: (event: Event) => Promise<void>;
1102
1114
  handleChange: (event: Event) => void;
1103
1115
  handleCompositionStart: (event: CompositionEvent) => void;
@@ -1228,7 +1240,12 @@ declare const _default: import("vue").DefineComponent<{
1228
1240
  readonly validator: ((val: unknown) => boolean) | undefined;
1229
1241
  __epPropKey: true;
1230
1242
  };
1231
- readonly form: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
1243
+ readonly form: {
1244
+ readonly type: import("vue").PropType<string>;
1245
+ readonly required: false;
1246
+ readonly validator: ((val: unknown) => boolean) | undefined;
1247
+ __epPropKey: true;
1248
+ };
1232
1249
  readonly readonly: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
1233
1250
  readonly clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
1234
1251
  readonly showPassword: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
@@ -1272,7 +1289,6 @@ declare const _default: import("vue").DefineComponent<{
1272
1289
  readonly id: string;
1273
1290
  readonly autosize: import("element-plus/es/components/input").InputAutoSize;
1274
1291
  readonly autocomplete: string;
1275
- readonly form: string;
1276
1292
  readonly readonly: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
1277
1293
  readonly clearable: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
1278
1294
  readonly showPassword: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;