@element-plus/nightly 0.0.20251203 → 0.0.20251204
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.
- package/dist/index.full.js +3 -3
- package/dist/index.full.min.js +3 -3
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +3 -3
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +3 -3
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar-eg.js +1 -1
- package/dist/locale/ar-eg.min.js +1 -1
- package/dist/locale/ar-eg.min.mjs +1 -1
- package/dist/locale/ar-eg.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/az.js +1 -1
- package/dist/locale/az.min.js +1 -1
- package/dist/locale/az.min.mjs +1 -1
- package/dist/locale/az.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/ckb.js +1 -1
- package/dist/locale/ckb.min.js +1 -1
- package/dist/locale/ckb.min.mjs +1 -1
- package/dist/locale/ckb.mjs +1 -1
- package/dist/locale/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hi.js +1 -1
- package/dist/locale/hi.min.js +1 -1
- package/dist/locale/hi.min.mjs +1 -1
- package/dist/locale/hi.mjs +1 -1
- package/dist/locale/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lo.js +1 -1
- package/dist/locale/lo.min.js +1 -1
- package/dist/locale/lo.min.mjs +1 -1
- package/dist/locale/lo.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/ms.js +1 -1
- package/dist/locale/ms.min.js +1 -1
- package/dist/locale/ms.min.mjs +1 -1
- package/dist/locale/ms.mjs +1 -1
- package/dist/locale/my.js +1 -1
- package/dist/locale/my.min.js +1 -1
- package/dist/locale/my.min.mjs +1 -1
- package/dist/locale/my.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/no.js +1 -1
- package/dist/locale/no.min.js +1 -1
- package/dist/locale/no.min.mjs +1 -1
- package/dist/locale/no.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/sw.js +1 -1
- package/dist/locale/sw.min.js +1 -1
- package/dist/locale/sw.min.mjs +1 -1
- package/dist/locale/sw.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/te.js +1 -1
- package/dist/locale/te.min.js +1 -1
- package/dist/locale/te.min.mjs +1 -1
- package/dist/locale/te.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-hk.js +1 -1
- package/dist/locale/zh-hk.min.js +1 -1
- package/dist/locale/zh-hk.min.mjs +1 -1
- package/dist/locale/zh-hk.mjs +1 -1
- package/dist/locale/zh-mo.js +1 -1
- package/dist/locale/zh-mo.min.js +1 -1
- package/dist/locale/zh-mo.min.mjs +1 -1
- package/dist/locale/zh-mo.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/autocomplete/index.mjs +2 -2
- package/es/components/autocomplete/src/autocomplete.mjs +61 -445
- package/es/components/autocomplete/src/autocomplete.mjs.map +1 -1
- package/es/components/autocomplete/src/autocomplete2.mjs +445 -61
- package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
- package/es/components/breadcrumb/index.mjs +2 -2
- package/es/components/breadcrumb/src/breadcrumb-item.mjs +8 -56
- package/es/components/breadcrumb/src/breadcrumb-item.mjs.map +1 -1
- package/es/components/breadcrumb/src/breadcrumb-item2.mjs +56 -8
- package/es/components/breadcrumb/src/breadcrumb-item2.mjs.map +1 -1
- package/es/components/card/index.mjs +2 -2
- package/es/components/card/src/card.mjs +23 -48
- package/es/components/card/src/card.mjs.map +1 -1
- package/es/components/card/src/card2.mjs +48 -23
- package/es/components/card/src/card2.mjs.map +1 -1
- package/es/components/cascader-panel/src/index.mjs +1 -1
- package/es/components/cascader-panel/src/menu.mjs +1 -1
- package/es/components/cascader-panel/src/node.mjs +115 -177
- package/es/components/cascader-panel/src/node.mjs.map +1 -1
- package/es/components/cascader-panel/src/node2.mjs +177 -115
- package/es/components/cascader-panel/src/node2.mjs.map +1 -1
- package/es/components/cascader-panel/src/store.mjs +1 -1
- package/es/components/collection/index.mjs +1 -1
- package/es/components/collection/src/collection.mjs +62 -10
- package/es/components/collection/src/collection.mjs.map +1 -1
- package/es/components/collection/src/collection2.mjs +10 -62
- package/es/components/collection/src/collection2.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown-item-impl.mjs +1 -1
- package/es/components/dropdown/src/dropdown.mjs +2 -2
- package/es/components/index.mjs +16 -16
- package/es/components/input/index.mjs +2 -2
- package/es/components/input/src/input.mjs +125 -484
- package/es/components/input/src/input.mjs.map +1 -1
- package/es/components/input/src/input2.mjs +484 -125
- package/es/components/input/src/input2.mjs.map +1 -1
- package/es/components/mention/src/mention.mjs +1 -1
- package/es/components/mention/src/mention2.mjs +1 -1
- package/es/components/notification/index.mjs +1 -1
- package/es/components/notification/src/notification.mjs +73 -147
- package/es/components/notification/src/notification.mjs.map +1 -1
- package/es/components/notification/src/notification2.mjs +147 -73
- package/es/components/notification/src/notification2.mjs.map +1 -1
- package/es/components/notification/src/notify.mjs +2 -2
- package/es/components/pagination/src/components/next.mjs +35 -18
- package/es/components/pagination/src/components/next.mjs.map +1 -1
- package/es/components/pagination/src/components/next2.mjs +18 -35
- package/es/components/pagination/src/components/next2.mjs.map +1 -1
- package/es/components/pagination/src/components/sizes.mjs +72 -26
- package/es/components/pagination/src/components/sizes.mjs.map +1 -1
- package/es/components/pagination/src/components/sizes2.mjs +26 -72
- package/es/components/pagination/src/components/sizes2.mjs.map +1 -1
- package/es/components/pagination/src/pagination.mjs +2 -2
- package/es/components/popconfirm/index.mjs +2 -2
- package/es/components/popconfirm/src/popconfirm.mjs +50 -135
- package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
- package/es/components/popconfirm/src/popconfirm2.mjs +135 -50
- package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
- package/es/components/popover/src/popover.mjs +1 -1
- package/es/components/popper/index.mjs +4 -4
- package/es/components/popper/src/content.mjs +132 -89
- package/es/components/popper/src/content.mjs.map +1 -1
- package/es/components/popper/src/content2.mjs +89 -132
- package/es/components/popper/src/content2.mjs.map +1 -1
- package/es/components/popper/src/popper.mjs +22 -32
- package/es/components/popper/src/popper.mjs.map +1 -1
- package/es/components/popper/src/popper2.mjs +32 -22
- package/es/components/popper/src/popper2.mjs.map +1 -1
- package/es/components/radio/index.mjs +2 -2
- package/es/components/radio/src/radio-button.mjs +1 -1
- package/es/components/radio/src/radio-group.mjs +1 -1
- package/es/components/radio/src/radio-group2.mjs +1 -1
- package/es/components/radio/src/radio.mjs +35 -74
- package/es/components/radio/src/radio.mjs.map +1 -1
- package/es/components/radio/src/radio2.mjs +74 -35
- package/es/components/radio/src/radio2.mjs.map +1 -1
- package/es/components/roving-focus-group/src/roving-focus-group.mjs +1 -1
- package/es/components/scrollbar/index.mjs +1 -1
- package/es/components/scrollbar/src/bar2.mjs +1 -1
- package/es/components/scrollbar/src/thumb.mjs +11 -139
- package/es/components/scrollbar/src/thumb.mjs.map +1 -1
- package/es/components/scrollbar/src/thumb2.mjs +139 -11
- package/es/components/scrollbar/src/thumb2.mjs.map +1 -1
- package/es/components/select/index.mjs +2 -2
- package/es/components/select/src/select.mjs +152 -553
- package/es/components/select/src/select.mjs.map +1 -1
- package/es/components/select/src/select2.mjs +553 -152
- package/es/components/select/src/select2.mjs.map +1 -1
- package/es/components/steps/index.mjs +2 -2
- package/es/components/steps/src/steps.mjs +35 -41
- package/es/components/steps/src/steps.mjs.map +1 -1
- package/es/components/steps/src/steps2.mjs +41 -35
- package/es/components/steps/src/steps2.mjs.map +1 -1
- package/es/components/table/src/store/tree.mjs +1 -1
- package/es/components/table/src/store/tree.mjs.map +1 -1
- package/es/components/tabs/index.mjs +2 -2
- package/es/components/tabs/src/tab-pane.mjs +16 -85
- package/es/components/tabs/src/tab-pane.mjs.map +1 -1
- package/es/components/tabs/src/tab-pane2.mjs +85 -16
- package/es/components/tabs/src/tab-pane2.mjs.map +1 -1
- package/es/components/tooltip/index.mjs +1 -1
- package/es/components/tooltip/src/content.mjs +1 -1
- package/es/components/tooltip/src/content2.mjs +1 -1
- package/es/components/tooltip/src/tooltip.mjs +2 -2
- package/es/components/tooltip/src/tooltip2.mjs +1 -1
- package/es/components/tooltip/src/trigger.mjs +16 -81
- package/es/components/tooltip/src/trigger.mjs.map +1 -1
- package/es/components/tooltip/src/trigger2.mjs +81 -16
- package/es/components/tooltip/src/trigger2.mjs.map +1 -1
- package/es/components/tour/index.mjs +2 -2
- package/es/components/tour/src/tour.mjs +154 -69
- package/es/components/tour/src/tour.mjs.map +1 -1
- package/es/components/tour/src/tour2.mjs +69 -154
- package/es/components/tour/src/tour2.mjs.map +1 -1
- package/es/index.mjs +16 -16
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/autocomplete/index.js +2 -2
- package/lib/components/autocomplete/src/autocomplete.js +60 -443
- package/lib/components/autocomplete/src/autocomplete.js.map +1 -1
- package/lib/components/autocomplete/src/autocomplete2.js +443 -60
- package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
- package/lib/components/breadcrumb/index.js +2 -2
- package/lib/components/breadcrumb/src/breadcrumb-item.js +8 -56
- package/lib/components/breadcrumb/src/breadcrumb-item.js.map +1 -1
- package/lib/components/breadcrumb/src/breadcrumb-item2.js +56 -8
- package/lib/components/breadcrumb/src/breadcrumb-item2.js.map +1 -1
- package/lib/components/card/index.js +2 -2
- package/lib/components/card/src/card.js +24 -48
- package/lib/components/card/src/card.js.map +1 -1
- package/lib/components/card/src/card2.js +48 -24
- package/lib/components/card/src/card2.js.map +1 -1
- package/lib/components/cascader-panel/src/index.js +1 -1
- package/lib/components/cascader-panel/src/menu.js +1 -1
- package/lib/components/cascader-panel/src/node.js +115 -177
- package/lib/components/cascader-panel/src/node.js.map +1 -1
- package/lib/components/cascader-panel/src/node2.js +177 -115
- package/lib/components/cascader-panel/src/node2.js.map +1 -1
- package/lib/components/cascader-panel/src/store.js +1 -1
- package/lib/components/collection/index.js +1 -1
- package/lib/components/collection/src/collection.js +62 -9
- package/lib/components/collection/src/collection.js.map +1 -1
- package/lib/components/collection/src/collection2.js +9 -62
- package/lib/components/collection/src/collection2.js.map +1 -1
- package/lib/components/dropdown/src/dropdown-item-impl.js +1 -1
- package/lib/components/dropdown/src/dropdown.js +2 -2
- package/lib/components/index.js +16 -16
- package/lib/components/input/index.js +2 -2
- package/lib/components/input/src/input.js +122 -480
- package/lib/components/input/src/input.js.map +1 -1
- package/lib/components/input/src/input2.js +480 -122
- package/lib/components/input/src/input2.js.map +1 -1
- package/lib/components/mention/src/mention.js +1 -1
- package/lib/components/mention/src/mention2.js +1 -1
- package/lib/components/notification/index.js +1 -1
- package/lib/components/notification/src/notification.js +74 -146
- package/lib/components/notification/src/notification.js.map +1 -1
- package/lib/components/notification/src/notification2.js +146 -74
- package/lib/components/notification/src/notification2.js.map +1 -1
- package/lib/components/notification/src/notify.js +2 -2
- package/lib/components/pagination/src/components/next.js +35 -18
- package/lib/components/pagination/src/components/next.js.map +1 -1
- package/lib/components/pagination/src/components/next2.js +18 -35
- package/lib/components/pagination/src/components/next2.js.map +1 -1
- package/lib/components/pagination/src/components/sizes.js +72 -26
- package/lib/components/pagination/src/components/sizes.js.map +1 -1
- package/lib/components/pagination/src/components/sizes2.js +26 -72
- package/lib/components/pagination/src/components/sizes2.js.map +1 -1
- package/lib/components/pagination/src/pagination.js +2 -2
- package/lib/components/popconfirm/index.js +2 -2
- package/lib/components/popconfirm/src/popconfirm.js +51 -135
- package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
- package/lib/components/popconfirm/src/popconfirm2.js +135 -51
- package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
- package/lib/components/popover/src/popover.js +1 -1
- package/lib/components/popper/index.js +4 -4
- package/lib/components/popper/src/content.js +132 -94
- package/lib/components/popper/src/content.js.map +1 -1
- package/lib/components/popper/src/content2.js +94 -132
- package/lib/components/popper/src/content2.js.map +1 -1
- package/lib/components/popper/src/popper.js +25 -32
- package/lib/components/popper/src/popper.js.map +1 -1
- package/lib/components/popper/src/popper2.js +32 -25
- package/lib/components/popper/src/popper2.js.map +1 -1
- package/lib/components/radio/index.js +2 -2
- package/lib/components/radio/src/radio-button.js +1 -1
- package/lib/components/radio/src/radio-group.js +1 -1
- package/lib/components/radio/src/radio-group2.js +1 -1
- package/lib/components/radio/src/radio.js +36 -73
- package/lib/components/radio/src/radio.js.map +1 -1
- package/lib/components/radio/src/radio2.js +73 -36
- package/lib/components/radio/src/radio2.js.map +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-group.js +1 -1
- package/lib/components/scrollbar/index.js +1 -1
- package/lib/components/scrollbar/src/bar2.js +1 -1
- package/lib/components/scrollbar/src/thumb.js +11 -139
- package/lib/components/scrollbar/src/thumb.js.map +1 -1
- package/lib/components/scrollbar/src/thumb2.js +139 -11
- package/lib/components/scrollbar/src/thumb2.js.map +1 -1
- package/lib/components/select/index.js +2 -2
- package/lib/components/select/src/select.js +152 -552
- package/lib/components/select/src/select.js.map +1 -1
- package/lib/components/select/src/select2.js +552 -152
- package/lib/components/select/src/select2.js.map +1 -1
- package/lib/components/steps/index.js +2 -2
- package/lib/components/steps/src/steps.js +36 -41
- package/lib/components/steps/src/steps.js.map +1 -1
- package/lib/components/steps/src/steps2.js +41 -36
- package/lib/components/steps/src/steps2.js.map +1 -1
- package/lib/components/table/src/store/tree.js +1 -1
- package/lib/components/table/src/store/tree.js.map +1 -1
- package/lib/components/tabs/index.js +2 -2
- package/lib/components/tabs/src/tab-pane.js +16 -85
- package/lib/components/tabs/src/tab-pane.js.map +1 -1
- package/lib/components/tabs/src/tab-pane2.js +85 -16
- package/lib/components/tabs/src/tab-pane2.js.map +1 -1
- package/lib/components/tooltip/index.js +1 -1
- package/lib/components/tooltip/src/content.js +1 -1
- package/lib/components/tooltip/src/content2.js +1 -1
- package/lib/components/tooltip/src/tooltip.js +2 -2
- package/lib/components/tooltip/src/tooltip2.js +1 -1
- package/lib/components/tooltip/src/trigger.js +16 -81
- package/lib/components/tooltip/src/trigger.js.map +1 -1
- package/lib/components/tooltip/src/trigger2.js +81 -16
- package/lib/components/tooltip/src/trigger2.js.map +1 -1
- package/lib/components/tour/index.js +2 -2
- package/lib/components/tour/src/tour.js +153 -69
- package/lib/components/tour/src/tour.js.map +1 -1
- package/lib/components/tour/src/tour2.js +69 -153
- package/lib/components/tour/src/tour2.js.map +1 -1
- package/lib/index.js +16 -16
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/web-types.json +1 -1
|
@@ -2,133 +2,491 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var core = require('@vueuse/core');
|
|
7
|
+
var lodashUnified = require('lodash-unified');
|
|
8
|
+
var index$4 = require('../../icon/index.js');
|
|
5
9
|
var iconsVue = require('@element-plus/icons-vue');
|
|
6
|
-
var
|
|
10
|
+
var utils = require('./utils.js');
|
|
11
|
+
var input = require('./input.js');
|
|
12
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
13
|
+
var index = require('../../../hooks/use-attrs/index.js');
|
|
14
|
+
var useFormItem = require('../../form/src/hooks/use-form-item.js');
|
|
15
|
+
var useFormCommonProps = require('../../form/src/hooks/use-form-common-props.js');
|
|
16
|
+
var index$2 = require('../../../hooks/use-focus-controller/index.js');
|
|
7
17
|
var icon = require('../../../utils/vue/icon.js');
|
|
8
|
-
var
|
|
9
|
-
var index$1 = require('../../../hooks/use-aria/index.js');
|
|
18
|
+
var index$3 = require('../../../hooks/use-composition/index.js');
|
|
10
19
|
var event = require('../../../constants/event.js');
|
|
11
|
-
var
|
|
20
|
+
var index$5 = require('../../../hooks/use-cursor/index.js');
|
|
21
|
+
var index$1 = require('../../../hooks/use-namespace/index.js');
|
|
22
|
+
var error = require('../../../utils/error.js');
|
|
12
23
|
var shared = require('@vue/shared');
|
|
13
24
|
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
},
|
|
19
|
-
size: index.useSizeProp,
|
|
20
|
-
disabled: {
|
|
21
|
-
type: Boolean,
|
|
22
|
-
default: void 0
|
|
23
|
-
},
|
|
24
|
-
modelValue: {
|
|
25
|
-
type: runtime.definePropType([
|
|
26
|
-
String,
|
|
27
|
-
Number,
|
|
28
|
-
Object
|
|
29
|
-
]),
|
|
30
|
-
default: ""
|
|
31
|
-
},
|
|
32
|
-
modelModifiers: {
|
|
33
|
-
type: runtime.definePropType(Object),
|
|
34
|
-
default: () => ({})
|
|
35
|
-
},
|
|
36
|
-
maxlength: {
|
|
37
|
-
type: [String, Number]
|
|
38
|
-
},
|
|
39
|
-
minlength: {
|
|
40
|
-
type: [String, Number]
|
|
41
|
-
},
|
|
42
|
-
type: {
|
|
43
|
-
type: runtime.definePropType(String),
|
|
44
|
-
default: "text"
|
|
45
|
-
},
|
|
46
|
-
resize: {
|
|
47
|
-
type: String,
|
|
48
|
-
values: ["none", "both", "horizontal", "vertical"]
|
|
49
|
-
},
|
|
50
|
-
autosize: {
|
|
51
|
-
type: runtime.definePropType([Boolean, Object]),
|
|
52
|
-
default: false
|
|
53
|
-
},
|
|
54
|
-
autocomplete: {
|
|
55
|
-
type: runtime.definePropType(String),
|
|
56
|
-
default: "off"
|
|
57
|
-
},
|
|
58
|
-
formatter: {
|
|
59
|
-
type: Function
|
|
60
|
-
},
|
|
61
|
-
parser: {
|
|
62
|
-
type: Function
|
|
63
|
-
},
|
|
64
|
-
placeholder: {
|
|
65
|
-
type: String
|
|
66
|
-
},
|
|
67
|
-
form: {
|
|
68
|
-
type: String
|
|
69
|
-
},
|
|
70
|
-
readonly: Boolean,
|
|
71
|
-
clearable: Boolean,
|
|
72
|
-
clearIcon: {
|
|
73
|
-
type: icon.iconPropType,
|
|
74
|
-
default: iconsVue.CircleClose
|
|
75
|
-
},
|
|
76
|
-
showPassword: Boolean,
|
|
77
|
-
showWordLimit: Boolean,
|
|
78
|
-
wordLimitPosition: {
|
|
79
|
-
type: String,
|
|
80
|
-
values: ["inside", "outside"],
|
|
81
|
-
default: "inside"
|
|
82
|
-
},
|
|
83
|
-
suffixIcon: {
|
|
84
|
-
type: icon.iconPropType
|
|
85
|
-
},
|
|
86
|
-
prefixIcon: {
|
|
87
|
-
type: icon.iconPropType
|
|
88
|
-
},
|
|
89
|
-
containerRole: {
|
|
90
|
-
type: String,
|
|
91
|
-
default: void 0
|
|
92
|
-
},
|
|
93
|
-
tabindex: {
|
|
94
|
-
type: [String, Number],
|
|
95
|
-
default: 0
|
|
96
|
-
},
|
|
97
|
-
validateEvent: {
|
|
98
|
-
type: Boolean,
|
|
99
|
-
default: true
|
|
100
|
-
},
|
|
101
|
-
inputStyle: {
|
|
102
|
-
type: runtime.definePropType([Object, Array, String]),
|
|
103
|
-
default: () => typescript.mutable({})
|
|
104
|
-
},
|
|
105
|
-
autofocus: Boolean,
|
|
106
|
-
rows: {
|
|
107
|
-
type: Number,
|
|
108
|
-
default: 2
|
|
109
|
-
},
|
|
110
|
-
...index$1.useAriaProps(["ariaLabel"]),
|
|
111
|
-
inputmode: {
|
|
112
|
-
type: runtime.definePropType(String),
|
|
113
|
-
default: void 0
|
|
114
|
-
},
|
|
115
|
-
name: String
|
|
25
|
+
const COMPONENT_NAME = "ElInput";
|
|
26
|
+
const __default__ = vue.defineComponent({
|
|
27
|
+
name: COMPONENT_NAME,
|
|
28
|
+
inheritAttrs: false
|
|
116
29
|
});
|
|
117
|
-
const
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
30
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
31
|
+
...__default__,
|
|
32
|
+
props: input.inputProps,
|
|
33
|
+
emits: input.inputEmits,
|
|
34
|
+
setup(__props, { expose, emit }) {
|
|
35
|
+
const props = __props;
|
|
36
|
+
const rawAttrs = vue.useAttrs();
|
|
37
|
+
const attrs = index.useAttrs();
|
|
38
|
+
const slots = vue.useSlots();
|
|
39
|
+
const containerKls = vue.computed(() => [
|
|
40
|
+
props.type === "textarea" ? nsTextarea.b() : nsInput.b(),
|
|
41
|
+
nsInput.m(inputSize.value),
|
|
42
|
+
nsInput.is("disabled", inputDisabled.value),
|
|
43
|
+
nsInput.is("exceed", inputExceed.value),
|
|
44
|
+
{
|
|
45
|
+
[nsInput.b("group")]: slots.prepend || slots.append,
|
|
46
|
+
[nsInput.m("prefix")]: slots.prefix || props.prefixIcon,
|
|
47
|
+
[nsInput.m("suffix")]: slots.suffix || props.suffixIcon || props.clearable || props.showPassword,
|
|
48
|
+
[nsInput.bm("suffix", "password-clear")]: showClear.value && showPwdVisible.value,
|
|
49
|
+
[nsInput.b("hidden")]: props.type === "hidden"
|
|
50
|
+
},
|
|
51
|
+
rawAttrs.class
|
|
52
|
+
]);
|
|
53
|
+
const wrapperKls = vue.computed(() => [
|
|
54
|
+
nsInput.e("wrapper"),
|
|
55
|
+
nsInput.is("focus", isFocused.value)
|
|
56
|
+
]);
|
|
57
|
+
const { form: elForm, formItem: elFormItem } = useFormItem.useFormItem();
|
|
58
|
+
const { inputId } = useFormItem.useFormItemInputId(props, {
|
|
59
|
+
formItemContext: elFormItem
|
|
60
|
+
});
|
|
61
|
+
const inputSize = useFormCommonProps.useFormSize();
|
|
62
|
+
const inputDisabled = useFormCommonProps.useFormDisabled();
|
|
63
|
+
const nsInput = index$1.useNamespace("input");
|
|
64
|
+
const nsTextarea = index$1.useNamespace("textarea");
|
|
65
|
+
const input = vue.shallowRef();
|
|
66
|
+
const textarea = vue.shallowRef();
|
|
67
|
+
const hovering = vue.ref(false);
|
|
68
|
+
const passwordVisible = vue.ref(false);
|
|
69
|
+
const countStyle = vue.ref();
|
|
70
|
+
const textareaCalcStyle = vue.shallowRef(props.inputStyle);
|
|
71
|
+
const _ref = vue.computed(() => input.value || textarea.value);
|
|
72
|
+
const { wrapperRef, isFocused, handleFocus, handleBlur } = index$2.useFocusController(_ref, {
|
|
73
|
+
disabled: inputDisabled,
|
|
74
|
+
afterBlur() {
|
|
75
|
+
var _a;
|
|
76
|
+
if (props.validateEvent) {
|
|
77
|
+
(_a = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "blur").catch((err) => error.debugWarn(err));
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
const needStatusIcon = vue.computed(() => {
|
|
82
|
+
var _a;
|
|
83
|
+
return (_a = elForm == null ? void 0 : elForm.statusIcon) != null ? _a : false;
|
|
84
|
+
});
|
|
85
|
+
const validateState = vue.computed(() => (elFormItem == null ? void 0 : elFormItem.validateState) || "");
|
|
86
|
+
const validateIcon = vue.computed(() => validateState.value && icon.ValidateComponentsMap[validateState.value]);
|
|
87
|
+
const passwordIcon = vue.computed(() => passwordVisible.value ? iconsVue.View : iconsVue.Hide);
|
|
88
|
+
const containerStyle = vue.computed(() => [
|
|
89
|
+
rawAttrs.style
|
|
90
|
+
]);
|
|
91
|
+
const textareaStyle = vue.computed(() => [
|
|
92
|
+
props.inputStyle,
|
|
93
|
+
textareaCalcStyle.value,
|
|
94
|
+
{ resize: props.resize }
|
|
95
|
+
]);
|
|
96
|
+
const nativeInputValue = vue.computed(() => lodashUnified.isNil(props.modelValue) ? "" : String(props.modelValue));
|
|
97
|
+
const showClear = vue.computed(() => props.clearable && !inputDisabled.value && !props.readonly && !!nativeInputValue.value && (isFocused.value || hovering.value));
|
|
98
|
+
const showPwdVisible = vue.computed(() => props.showPassword && !inputDisabled.value && !!nativeInputValue.value);
|
|
99
|
+
const isWordLimitVisible = vue.computed(() => props.showWordLimit && !!props.maxlength && (props.type === "text" || props.type === "textarea") && !inputDisabled.value && !props.readonly && !props.showPassword);
|
|
100
|
+
const textLength = vue.computed(() => nativeInputValue.value.length);
|
|
101
|
+
const inputExceed = vue.computed(() => !!isWordLimitVisible.value && textLength.value > Number(props.maxlength));
|
|
102
|
+
const suffixVisible = vue.computed(() => !!slots.suffix || !!props.suffixIcon || showClear.value || props.showPassword || isWordLimitVisible.value || !!validateState.value && needStatusIcon.value);
|
|
103
|
+
const hasModelModifiers = vue.computed(() => !!Object.keys(props.modelModifiers).length);
|
|
104
|
+
const [recordCursor, setCursor] = index$5.useCursor(input);
|
|
105
|
+
core.useResizeObserver(textarea, (entries) => {
|
|
106
|
+
onceInitSizeTextarea();
|
|
107
|
+
if (!isWordLimitVisible.value || props.resize !== "both" && props.resize !== "horizontal")
|
|
108
|
+
return;
|
|
109
|
+
const entry = entries[0];
|
|
110
|
+
const { width } = entry.contentRect;
|
|
111
|
+
countStyle.value = {
|
|
112
|
+
right: `calc(100% - ${width + 22 - 10}px)`
|
|
113
|
+
};
|
|
114
|
+
});
|
|
115
|
+
const resizeTextarea = () => {
|
|
116
|
+
const { type, autosize } = props;
|
|
117
|
+
if (!core.isClient || type !== "textarea" || !textarea.value)
|
|
118
|
+
return;
|
|
119
|
+
if (autosize) {
|
|
120
|
+
const minRows = shared.isObject(autosize) ? autosize.minRows : void 0;
|
|
121
|
+
const maxRows = shared.isObject(autosize) ? autosize.maxRows : void 0;
|
|
122
|
+
const textareaStyle2 = utils.calcTextareaHeight(textarea.value, minRows, maxRows);
|
|
123
|
+
textareaCalcStyle.value = {
|
|
124
|
+
overflowY: "hidden",
|
|
125
|
+
...textareaStyle2
|
|
126
|
+
};
|
|
127
|
+
vue.nextTick(() => {
|
|
128
|
+
textarea.value.offsetHeight;
|
|
129
|
+
textareaCalcStyle.value = textareaStyle2;
|
|
130
|
+
});
|
|
131
|
+
} else {
|
|
132
|
+
textareaCalcStyle.value = {
|
|
133
|
+
minHeight: utils.calcTextareaHeight(textarea.value).minHeight
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
const createOnceInitResize = (resizeTextarea2) => {
|
|
138
|
+
let isInit = false;
|
|
139
|
+
return () => {
|
|
140
|
+
var _a;
|
|
141
|
+
if (isInit || !props.autosize)
|
|
142
|
+
return;
|
|
143
|
+
const isElHidden = ((_a = textarea.value) == null ? void 0 : _a.offsetParent) === null;
|
|
144
|
+
if (!isElHidden) {
|
|
145
|
+
setTimeout(resizeTextarea2);
|
|
146
|
+
isInit = true;
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
const onceInitSizeTextarea = createOnceInitResize(resizeTextarea);
|
|
151
|
+
const setNativeInputValue = () => {
|
|
152
|
+
const input2 = _ref.value;
|
|
153
|
+
const formatterValue = props.formatter ? props.formatter(nativeInputValue.value) : nativeInputValue.value;
|
|
154
|
+
if (!input2 || input2.value === formatterValue || props.type === "file")
|
|
155
|
+
return;
|
|
156
|
+
input2.value = formatterValue;
|
|
157
|
+
};
|
|
158
|
+
const formatValue = (value) => {
|
|
159
|
+
const { trim, number } = props.modelModifiers;
|
|
160
|
+
if (trim) {
|
|
161
|
+
value = value.trim();
|
|
162
|
+
}
|
|
163
|
+
if (number) {
|
|
164
|
+
value = `${utils.looseToNumber(value)}`;
|
|
165
|
+
}
|
|
166
|
+
if (props.formatter && props.parser) {
|
|
167
|
+
value = props.parser(value);
|
|
168
|
+
}
|
|
169
|
+
return value;
|
|
170
|
+
};
|
|
171
|
+
const handleInput = async (event$1) => {
|
|
172
|
+
if (isComposing.value)
|
|
173
|
+
return;
|
|
174
|
+
const { lazy } = props.modelModifiers;
|
|
175
|
+
let { value } = event$1.target;
|
|
176
|
+
if (lazy) {
|
|
177
|
+
emit(event.INPUT_EVENT, value);
|
|
178
|
+
return;
|
|
179
|
+
}
|
|
180
|
+
value = formatValue(value);
|
|
181
|
+
if (String(value) === nativeInputValue.value) {
|
|
182
|
+
if (props.formatter) {
|
|
183
|
+
setNativeInputValue();
|
|
184
|
+
}
|
|
185
|
+
return;
|
|
186
|
+
}
|
|
187
|
+
recordCursor();
|
|
188
|
+
emit(event.UPDATE_MODEL_EVENT, value);
|
|
189
|
+
emit(event.INPUT_EVENT, value);
|
|
190
|
+
await vue.nextTick();
|
|
191
|
+
if (props.formatter && props.parser || !hasModelModifiers.value) {
|
|
192
|
+
setNativeInputValue();
|
|
193
|
+
}
|
|
194
|
+
setCursor();
|
|
195
|
+
};
|
|
196
|
+
const handleChange = async (event$1) => {
|
|
197
|
+
let { value } = event$1.target;
|
|
198
|
+
value = formatValue(value);
|
|
199
|
+
if (props.modelModifiers.lazy) {
|
|
200
|
+
emit(event.UPDATE_MODEL_EVENT, value);
|
|
201
|
+
}
|
|
202
|
+
emit(event.CHANGE_EVENT, value, event$1);
|
|
203
|
+
await vue.nextTick();
|
|
204
|
+
setNativeInputValue();
|
|
205
|
+
};
|
|
206
|
+
const {
|
|
207
|
+
isComposing,
|
|
208
|
+
handleCompositionStart,
|
|
209
|
+
handleCompositionUpdate,
|
|
210
|
+
handleCompositionEnd
|
|
211
|
+
} = index$3.useComposition({ emit, afterComposition: handleInput });
|
|
212
|
+
const handlePasswordVisible = () => {
|
|
213
|
+
passwordVisible.value = !passwordVisible.value;
|
|
214
|
+
};
|
|
215
|
+
const focus = () => {
|
|
216
|
+
var _a;
|
|
217
|
+
return (_a = _ref.value) == null ? void 0 : _a.focus();
|
|
218
|
+
};
|
|
219
|
+
const blur = () => {
|
|
220
|
+
var _a;
|
|
221
|
+
return (_a = _ref.value) == null ? void 0 : _a.blur();
|
|
222
|
+
};
|
|
223
|
+
const handleMouseLeave = (evt) => {
|
|
224
|
+
hovering.value = false;
|
|
225
|
+
emit("mouseleave", evt);
|
|
226
|
+
};
|
|
227
|
+
const handleMouseEnter = (evt) => {
|
|
228
|
+
hovering.value = true;
|
|
229
|
+
emit("mouseenter", evt);
|
|
230
|
+
};
|
|
231
|
+
const handleKeydown = (evt) => {
|
|
232
|
+
emit("keydown", evt);
|
|
233
|
+
};
|
|
234
|
+
const select = () => {
|
|
235
|
+
var _a;
|
|
236
|
+
(_a = _ref.value) == null ? void 0 : _a.select();
|
|
237
|
+
};
|
|
238
|
+
const clear = () => {
|
|
239
|
+
emit(event.UPDATE_MODEL_EVENT, "");
|
|
240
|
+
emit(event.CHANGE_EVENT, "");
|
|
241
|
+
emit("clear");
|
|
242
|
+
emit(event.INPUT_EVENT, "");
|
|
243
|
+
};
|
|
244
|
+
vue.watch(() => props.modelValue, () => {
|
|
245
|
+
var _a;
|
|
246
|
+
vue.nextTick(() => resizeTextarea());
|
|
247
|
+
if (props.validateEvent) {
|
|
248
|
+
(_a = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change").catch((err) => error.debugWarn(err));
|
|
249
|
+
}
|
|
250
|
+
});
|
|
251
|
+
vue.watch(nativeInputValue, (newValue) => {
|
|
252
|
+
if (!_ref.value) {
|
|
253
|
+
return;
|
|
254
|
+
}
|
|
255
|
+
const { trim, number } = props.modelModifiers;
|
|
256
|
+
const elValue = _ref.value.value;
|
|
257
|
+
const displayValue = (number || props.type === "number") && !/^0\d/.test(elValue) ? `${utils.looseToNumber(elValue)}` : elValue;
|
|
258
|
+
if (displayValue === newValue) {
|
|
259
|
+
return;
|
|
260
|
+
}
|
|
261
|
+
if (document.activeElement === _ref.value && _ref.value.type !== "range") {
|
|
262
|
+
if (trim && displayValue.trim() === newValue) {
|
|
263
|
+
return;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
setNativeInputValue();
|
|
267
|
+
});
|
|
268
|
+
vue.watch(() => props.type, async () => {
|
|
269
|
+
await vue.nextTick();
|
|
270
|
+
setNativeInputValue();
|
|
271
|
+
resizeTextarea();
|
|
272
|
+
});
|
|
273
|
+
vue.onMounted(() => {
|
|
274
|
+
if (!props.formatter && props.parser) {
|
|
275
|
+
error.debugWarn(COMPONENT_NAME, "If you set the parser, you also need to set the formatter.");
|
|
276
|
+
}
|
|
277
|
+
setNativeInputValue();
|
|
278
|
+
vue.nextTick(resizeTextarea);
|
|
279
|
+
});
|
|
280
|
+
expose({
|
|
281
|
+
input,
|
|
282
|
+
textarea,
|
|
283
|
+
ref: _ref,
|
|
284
|
+
textareaStyle,
|
|
285
|
+
autosize: vue.toRef(props, "autosize"),
|
|
286
|
+
isComposing,
|
|
287
|
+
focus,
|
|
288
|
+
blur,
|
|
289
|
+
select,
|
|
290
|
+
clear,
|
|
291
|
+
resizeTextarea
|
|
292
|
+
});
|
|
293
|
+
return (_ctx, _cache) => {
|
|
294
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
295
|
+
class: vue.normalizeClass([
|
|
296
|
+
vue.unref(containerKls),
|
|
297
|
+
{
|
|
298
|
+
[vue.unref(nsInput).bm("group", "append")]: _ctx.$slots.append,
|
|
299
|
+
[vue.unref(nsInput).bm("group", "prepend")]: _ctx.$slots.prepend
|
|
300
|
+
}
|
|
301
|
+
]),
|
|
302
|
+
style: vue.normalizeStyle(vue.unref(containerStyle)),
|
|
303
|
+
onMouseenter: handleMouseEnter,
|
|
304
|
+
onMouseleave: handleMouseLeave
|
|
305
|
+
}, [
|
|
306
|
+
vue.createCommentVNode(" input "),
|
|
307
|
+
_ctx.type !== "textarea" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
308
|
+
vue.createCommentVNode(" prepend slot "),
|
|
309
|
+
_ctx.$slots.prepend ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
310
|
+
key: 0,
|
|
311
|
+
class: vue.normalizeClass(vue.unref(nsInput).be("group", "prepend"))
|
|
312
|
+
}, [
|
|
313
|
+
vue.renderSlot(_ctx.$slots, "prepend")
|
|
314
|
+
], 2)) : vue.createCommentVNode("v-if", true),
|
|
315
|
+
vue.createElementVNode("div", {
|
|
316
|
+
ref_key: "wrapperRef",
|
|
317
|
+
ref: wrapperRef,
|
|
318
|
+
class: vue.normalizeClass(vue.unref(wrapperKls))
|
|
319
|
+
}, [
|
|
320
|
+
vue.createCommentVNode(" prefix slot "),
|
|
321
|
+
_ctx.$slots.prefix || _ctx.prefixIcon ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
322
|
+
key: 0,
|
|
323
|
+
class: vue.normalizeClass(vue.unref(nsInput).e("prefix"))
|
|
324
|
+
}, [
|
|
325
|
+
vue.createElementVNode("span", {
|
|
326
|
+
class: vue.normalizeClass(vue.unref(nsInput).e("prefix-inner"))
|
|
327
|
+
}, [
|
|
328
|
+
vue.renderSlot(_ctx.$slots, "prefix"),
|
|
329
|
+
_ctx.prefixIcon ? (vue.openBlock(), vue.createBlock(vue.unref(index$4.ElIcon), {
|
|
330
|
+
key: 0,
|
|
331
|
+
class: vue.normalizeClass(vue.unref(nsInput).e("icon"))
|
|
332
|
+
}, {
|
|
333
|
+
default: vue.withCtx(() => [
|
|
334
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.prefixIcon)))
|
|
335
|
+
]),
|
|
336
|
+
_: 1
|
|
337
|
+
}, 8, ["class"])) : vue.createCommentVNode("v-if", true)
|
|
338
|
+
], 2)
|
|
339
|
+
], 2)) : vue.createCommentVNode("v-if", true),
|
|
340
|
+
vue.createElementVNode("input", vue.mergeProps({
|
|
341
|
+
id: vue.unref(inputId),
|
|
342
|
+
ref_key: "input",
|
|
343
|
+
ref: input,
|
|
344
|
+
class: vue.unref(nsInput).e("inner")
|
|
345
|
+
}, vue.unref(attrs), {
|
|
346
|
+
name: _ctx.name,
|
|
347
|
+
minlength: _ctx.minlength,
|
|
348
|
+
maxlength: _ctx.maxlength,
|
|
349
|
+
type: _ctx.showPassword ? passwordVisible.value ? "text" : "password" : _ctx.type,
|
|
350
|
+
disabled: vue.unref(inputDisabled),
|
|
351
|
+
readonly: _ctx.readonly,
|
|
352
|
+
autocomplete: _ctx.autocomplete,
|
|
353
|
+
tabindex: _ctx.tabindex,
|
|
354
|
+
"aria-label": _ctx.ariaLabel,
|
|
355
|
+
placeholder: _ctx.placeholder,
|
|
356
|
+
style: _ctx.inputStyle,
|
|
357
|
+
form: _ctx.form,
|
|
358
|
+
autofocus: _ctx.autofocus,
|
|
359
|
+
role: _ctx.containerRole,
|
|
360
|
+
inputmode: _ctx.inputmode,
|
|
361
|
+
onCompositionstart: vue.unref(handleCompositionStart),
|
|
362
|
+
onCompositionupdate: vue.unref(handleCompositionUpdate),
|
|
363
|
+
onCompositionend: vue.unref(handleCompositionEnd),
|
|
364
|
+
onInput: handleInput,
|
|
365
|
+
onChange: handleChange,
|
|
366
|
+
onKeydown: handleKeydown
|
|
367
|
+
}), null, 16, ["id", "name", "minlength", "maxlength", "type", "disabled", "readonly", "autocomplete", "tabindex", "aria-label", "placeholder", "form", "autofocus", "role", "inputmode", "onCompositionstart", "onCompositionupdate", "onCompositionend"]),
|
|
368
|
+
vue.createCommentVNode(" suffix slot "),
|
|
369
|
+
vue.unref(suffixVisible) ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
370
|
+
key: 1,
|
|
371
|
+
class: vue.normalizeClass(vue.unref(nsInput).e("suffix"))
|
|
372
|
+
}, [
|
|
373
|
+
vue.createElementVNode("span", {
|
|
374
|
+
class: vue.normalizeClass(vue.unref(nsInput).e("suffix-inner"))
|
|
375
|
+
}, [
|
|
376
|
+
!vue.unref(showClear) || !vue.unref(showPwdVisible) || !vue.unref(isWordLimitVisible) ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
377
|
+
vue.renderSlot(_ctx.$slots, "suffix"),
|
|
378
|
+
_ctx.suffixIcon ? (vue.openBlock(), vue.createBlock(vue.unref(index$4.ElIcon), {
|
|
379
|
+
key: 0,
|
|
380
|
+
class: vue.normalizeClass(vue.unref(nsInput).e("icon"))
|
|
381
|
+
}, {
|
|
382
|
+
default: vue.withCtx(() => [
|
|
383
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.suffixIcon)))
|
|
384
|
+
]),
|
|
385
|
+
_: 1
|
|
386
|
+
}, 8, ["class"])) : vue.createCommentVNode("v-if", true)
|
|
387
|
+
], 64)) : vue.createCommentVNode("v-if", true),
|
|
388
|
+
vue.unref(showClear) ? (vue.openBlock(), vue.createBlock(vue.unref(index$4.ElIcon), {
|
|
389
|
+
key: 1,
|
|
390
|
+
class: vue.normalizeClass([vue.unref(nsInput).e("icon"), vue.unref(nsInput).e("clear")]),
|
|
391
|
+
onMousedown: vue.withModifiers(vue.unref(shared.NOOP), ["prevent"]),
|
|
392
|
+
onClick: clear
|
|
393
|
+
}, {
|
|
394
|
+
default: vue.withCtx(() => [
|
|
395
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.clearIcon)))
|
|
396
|
+
]),
|
|
397
|
+
_: 1
|
|
398
|
+
}, 8, ["class", "onMousedown"])) : vue.createCommentVNode("v-if", true),
|
|
399
|
+
vue.unref(showPwdVisible) ? (vue.openBlock(), vue.createBlock(vue.unref(index$4.ElIcon), {
|
|
400
|
+
key: 2,
|
|
401
|
+
class: vue.normalizeClass([vue.unref(nsInput).e("icon"), vue.unref(nsInput).e("password")]),
|
|
402
|
+
onClick: handlePasswordVisible,
|
|
403
|
+
onMousedown: vue.withModifiers(vue.unref(shared.NOOP), ["prevent"]),
|
|
404
|
+
onMouseup: vue.withModifiers(vue.unref(shared.NOOP), ["prevent"])
|
|
405
|
+
}, {
|
|
406
|
+
default: vue.withCtx(() => [
|
|
407
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(passwordIcon))))
|
|
408
|
+
]),
|
|
409
|
+
_: 1
|
|
410
|
+
}, 8, ["class", "onMousedown", "onMouseup"])) : vue.createCommentVNode("v-if", true),
|
|
411
|
+
vue.unref(isWordLimitVisible) ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
412
|
+
key: 3,
|
|
413
|
+
class: vue.normalizeClass([
|
|
414
|
+
vue.unref(nsInput).e("count"),
|
|
415
|
+
vue.unref(nsInput).is("outside", _ctx.wordLimitPosition === "outside")
|
|
416
|
+
])
|
|
417
|
+
}, [
|
|
418
|
+
vue.createElementVNode("span", {
|
|
419
|
+
class: vue.normalizeClass(vue.unref(nsInput).e("count-inner"))
|
|
420
|
+
}, vue.toDisplayString(vue.unref(textLength)) + " / " + vue.toDisplayString(_ctx.maxlength), 3)
|
|
421
|
+
], 2)) : vue.createCommentVNode("v-if", true),
|
|
422
|
+
vue.unref(validateState) && vue.unref(validateIcon) && vue.unref(needStatusIcon) ? (vue.openBlock(), vue.createBlock(vue.unref(index$4.ElIcon), {
|
|
423
|
+
key: 4,
|
|
424
|
+
class: vue.normalizeClass([
|
|
425
|
+
vue.unref(nsInput).e("icon"),
|
|
426
|
+
vue.unref(nsInput).e("validateIcon"),
|
|
427
|
+
vue.unref(nsInput).is("loading", vue.unref(validateState) === "validating")
|
|
428
|
+
])
|
|
429
|
+
}, {
|
|
430
|
+
default: vue.withCtx(() => [
|
|
431
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(validateIcon))))
|
|
432
|
+
]),
|
|
433
|
+
_: 1
|
|
434
|
+
}, 8, ["class"])) : vue.createCommentVNode("v-if", true)
|
|
435
|
+
], 2)
|
|
436
|
+
], 2)) : vue.createCommentVNode("v-if", true)
|
|
437
|
+
], 2),
|
|
438
|
+
vue.createCommentVNode(" append slot "),
|
|
439
|
+
_ctx.$slots.append ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
440
|
+
key: 1,
|
|
441
|
+
class: vue.normalizeClass(vue.unref(nsInput).be("group", "append"))
|
|
442
|
+
}, [
|
|
443
|
+
vue.renderSlot(_ctx.$slots, "append")
|
|
444
|
+
], 2)) : vue.createCommentVNode("v-if", true)
|
|
445
|
+
], 64)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
446
|
+
vue.createCommentVNode(" textarea "),
|
|
447
|
+
vue.createElementVNode("textarea", vue.mergeProps({
|
|
448
|
+
id: vue.unref(inputId),
|
|
449
|
+
ref_key: "textarea",
|
|
450
|
+
ref: textarea,
|
|
451
|
+
class: [vue.unref(nsTextarea).e("inner"), vue.unref(nsInput).is("focus", vue.unref(isFocused))]
|
|
452
|
+
}, vue.unref(attrs), {
|
|
453
|
+
name: _ctx.name,
|
|
454
|
+
minlength: _ctx.minlength,
|
|
455
|
+
maxlength: _ctx.maxlength,
|
|
456
|
+
tabindex: _ctx.tabindex,
|
|
457
|
+
disabled: vue.unref(inputDisabled),
|
|
458
|
+
readonly: _ctx.readonly,
|
|
459
|
+
autocomplete: _ctx.autocomplete,
|
|
460
|
+
style: vue.unref(textareaStyle),
|
|
461
|
+
"aria-label": _ctx.ariaLabel,
|
|
462
|
+
placeholder: _ctx.placeholder,
|
|
463
|
+
form: _ctx.form,
|
|
464
|
+
autofocus: _ctx.autofocus,
|
|
465
|
+
rows: _ctx.rows,
|
|
466
|
+
role: _ctx.containerRole,
|
|
467
|
+
onCompositionstart: vue.unref(handleCompositionStart),
|
|
468
|
+
onCompositionupdate: vue.unref(handleCompositionUpdate),
|
|
469
|
+
onCompositionend: vue.unref(handleCompositionEnd),
|
|
470
|
+
onInput: handleInput,
|
|
471
|
+
onFocus: vue.unref(handleFocus),
|
|
472
|
+
onBlur: vue.unref(handleBlur),
|
|
473
|
+
onChange: handleChange,
|
|
474
|
+
onKeydown: handleKeydown
|
|
475
|
+
}), null, 16, ["id", "name", "minlength", "maxlength", "tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder", "form", "autofocus", "rows", "role", "onCompositionstart", "onCompositionupdate", "onCompositionend", "onFocus", "onBlur"]),
|
|
476
|
+
vue.unref(isWordLimitVisible) ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
477
|
+
key: 0,
|
|
478
|
+
style: vue.normalizeStyle(countStyle.value),
|
|
479
|
+
class: vue.normalizeClass([
|
|
480
|
+
vue.unref(nsInput).e("count"),
|
|
481
|
+
vue.unref(nsInput).is("outside", _ctx.wordLimitPosition === "outside")
|
|
482
|
+
])
|
|
483
|
+
}, vue.toDisplayString(vue.unref(textLength)) + " / " + vue.toDisplayString(_ctx.maxlength), 7)) : vue.createCommentVNode("v-if", true)
|
|
484
|
+
], 64))
|
|
485
|
+
], 38);
|
|
486
|
+
};
|
|
487
|
+
}
|
|
488
|
+
});
|
|
489
|
+
var Input = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "input.vue"]]);
|
|
131
490
|
|
|
132
|
-
exports
|
|
133
|
-
exports.inputProps = inputProps;
|
|
491
|
+
exports["default"] = Input;
|
|
134
492
|
//# sourceMappingURL=input2.js.map
|