@element-plus/nightly 0.0.20250616 → 0.0.20250618
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/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/dist/index.full.js +113 -92
- package/dist/index.full.min.js +18 -18
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +18 -18
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +113 -92
- 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/alert/index.mjs +2 -2
- package/es/components/alert/src/alert.mjs +41 -108
- package/es/components/alert/src/alert.mjs.map +1 -1
- package/es/components/alert/src/alert2.mjs +108 -41
- package/es/components/alert/src/alert2.mjs.map +1 -1
- package/es/components/backtop/index.mjs +2 -2
- package/es/components/backtop/src/backtop.mjs +21 -53
- package/es/components/backtop/src/backtop.mjs.map +1 -1
- package/es/components/backtop/src/backtop2.mjs +53 -21
- package/es/components/backtop/src/backtop2.mjs.map +1 -1
- package/es/components/button/index.mjs +3 -3
- package/es/components/button/src/button-group.mjs +29 -6
- package/es/components/button/src/button-group.mjs.map +1 -1
- package/es/components/button/src/button-group2.mjs +6 -29
- package/es/components/button/src/button-group2.mjs.map +1 -1
- package/es/components/button/src/button.mjs +62 -87
- package/es/components/button/src/button.mjs.map +1 -1
- package/es/components/button/src/button2.mjs +87 -62
- package/es/components/button/src/button2.mjs.map +1 -1
- package/es/components/cascader/src/cascader.vue.d.ts +4 -1
- package/es/components/cascader/src/cascader2.mjs +64 -62
- package/es/components/cascader/src/cascader2.mjs.map +1 -1
- package/es/components/color-picker/index.mjs +2 -2
- package/es/components/color-picker/src/color-picker.mjs +399 -39
- package/es/components/color-picker/src/color-picker.mjs.map +1 -1
- package/es/components/color-picker/src/color-picker2.mjs +39 -399
- package/es/components/color-picker/src/color-picker2.mjs.map +1 -1
- package/es/components/color-picker/src/components/predefine.mjs +1 -1
- package/es/components/date-picker/src/composables/use-basic-date-table.d.ts +1 -1
- package/es/components/date-picker/src/composables/use-basic-date-table.mjs +11 -12
- package/es/components/date-picker/src/composables/use-basic-date-table.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/basic-date-table.mjs +5 -4
- package/es/components/date-picker/src/date-picker-com/basic-date-table.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/basic-date-table.vue.d.ts +1 -1
- package/es/components/date-picker/src/date-picker-com/panel-date-pick.mjs +2 -1
- package/es/components/date-picker/src/date-picker-com/panel-date-pick.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +3 -0
- package/es/components/date-picker/src/date-picker-com/panel-date-range.mjs +4 -2
- package/es/components/date-picker/src/date-picker-com/panel-date-range.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +3 -0
- package/es/components/date-picker/src/date-picker.d.ts +3 -0
- package/es/components/date-picker/src/panel-utils.d.ts +16 -2
- package/es/components/date-picker/src/props/date-picker.d.ts +1 -0
- package/es/components/date-picker/src/props/panel-date-pick.d.ts +1 -0
- package/es/components/date-picker/src/props/panel-date-range.d.ts +1 -0
- package/es/components/date-picker/src/props/shared.d.ts +1 -0
- package/es/components/date-picker/src/props/shared.mjs +2 -1
- package/es/components/date-picker/src/props/shared.mjs.map +1 -1
- package/es/components/divider/index.mjs +2 -2
- package/es/components/divider/src/divider.mjs +34 -16
- package/es/components/divider/src/divider.mjs.map +1 -1
- package/es/components/divider/src/divider2.mjs +16 -34
- package/es/components/divider/src/divider2.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown-item-impl.mjs +1 -1
- package/es/components/dropdown/src/dropdown-menu.mjs +1 -1
- package/es/components/dropdown/src/dropdown2.mjs +1 -1
- package/es/components/empty/index.mjs +2 -2
- package/es/components/empty/src/empty.mjs +52 -11
- package/es/components/empty/src/empty.mjs.map +1 -1
- package/es/components/empty/src/empty2.mjs +11 -52
- package/es/components/empty/src/empty2.mjs.map +1 -1
- package/es/components/form/index.mjs +2 -2
- package/es/components/form/src/form.mjs +54 -161
- package/es/components/form/src/form.mjs.map +1 -1
- package/es/components/form/src/form2.mjs +161 -54
- package/es/components/form/src/form2.mjs.map +1 -1
- package/es/components/image-viewer/index.mjs +2 -2
- package/es/components/image-viewer/src/image-viewer.mjs +447 -49
- package/es/components/image-viewer/src/image-viewer.mjs.map +1 -1
- package/es/components/image-viewer/src/image-viewer2.mjs +49 -447
- package/es/components/image-viewer/src/image-viewer2.mjs.map +1 -1
- package/es/components/index.mjs +19 -19
- package/es/components/input/index.mjs +2 -2
- package/es/components/input/src/input.mjs +103 -437
- package/es/components/input/src/input.mjs.map +1 -1
- package/es/components/input/src/input2.mjs +437 -103
- package/es/components/input/src/input2.mjs.map +1 -1
- package/es/components/input-tag/index.mjs +2 -2
- package/es/components/input-tag/src/input-tag.mjs +73 -215
- package/es/components/input-tag/src/input-tag.mjs.map +1 -1
- package/es/components/input-tag/src/input-tag2.mjs +215 -73
- package/es/components/input-tag/src/input-tag2.mjs.map +1 -1
- package/es/components/mention/index.mjs +2 -2
- package/es/components/mention/src/mention-dropdown.mjs +15 -166
- package/es/components/mention/src/mention-dropdown.mjs.map +1 -1
- package/es/components/mention/src/mention-dropdown2.mjs +166 -15
- package/es/components/mention/src/mention-dropdown2.mjs.map +1 -1
- package/es/components/mention/src/mention.mjs +287 -65
- package/es/components/mention/src/mention.mjs.map +1 -1
- package/es/components/mention/src/mention2.mjs +65 -287
- package/es/components/mention/src/mention2.mjs.map +1 -1
- package/es/components/menu/index.mjs +2 -2
- package/es/components/menu/src/menu-item-group.mjs +4 -33
- package/es/components/menu/src/menu-item-group.mjs.map +1 -1
- package/es/components/menu/src/menu-item-group2.mjs +33 -4
- package/es/components/menu/src/menu-item-group2.mjs.map +1 -1
- package/es/components/notification/index.mjs +1 -1
- package/es/components/notification/src/notification.mjs +73 -140
- package/es/components/notification/src/notification.mjs.map +1 -1
- package/es/components/notification/src/notification2.mjs +140 -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/total.mjs +6 -26
- package/es/components/pagination/src/components/total.mjs.map +1 -1
- package/es/components/pagination/src/components/total2.mjs +26 -6
- package/es/components/pagination/src/components/total2.mjs.map +1 -1
- package/es/components/pagination/src/pagination.mjs +1 -1
- package/es/components/popconfirm/index.mjs +2 -2
- package/es/components/popconfirm/src/popconfirm.mjs +45 -114
- package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
- package/es/components/popconfirm/src/popconfirm2.mjs +114 -45
- package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
- package/es/components/roving-focus-group/index.mjs +3 -3
- package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs +1 -1
- package/es/components/roving-focus-group/src/roving-focus-group.mjs +27 -27
- package/es/components/roving-focus-group/src/roving-focus-group.mjs.map +1 -1
- package/es/components/roving-focus-group/src/roving-focus-group2.mjs +27 -27
- package/es/components/roving-focus-group/src/roving-focus-group2.mjs.map +1 -1
- package/es/components/roving-focus-group/src/roving-focus-item.mjs +1 -1
- package/es/components/skeleton/index.mjs +2 -2
- package/es/components/skeleton/src/skeleton.mjs +48 -21
- package/es/components/skeleton/src/skeleton.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton2.mjs +21 -48
- package/es/components/skeleton/src/skeleton2.mjs.map +1 -1
- package/es/components/splitter/src/split-bar.vue.d.ts +1 -1
- package/es/components/splitter/src/splitter.vue.d.ts +2 -0
- package/es/components/splitter/src/splitter2.mjs +6 -2
- package/es/components/splitter/src/splitter2.mjs.map +1 -1
- package/es/components/steps/index.mjs +2 -2
- package/es/components/steps/src/item.mjs +191 -19
- package/es/components/steps/src/item.mjs.map +1 -1
- package/es/components/steps/src/item2.mjs +19 -191
- package/es/components/steps/src/item2.mjs.map +1 -1
- package/es/components/tabs/src/tabs.mjs +15 -6
- package/es/components/tabs/src/tabs.mjs.map +1 -1
- package/es/components/time-picker/src/common/picker.mjs +1 -0
- package/es/components/time-picker/src/common/picker.mjs.map +1 -1
- package/es/components/time-picker/src/common/picker.vue.d.ts +4 -0
- package/es/components/time-picker/src/common/props.d.ts +1 -0
- package/es/components/time-picker/src/common/props.mjs +2 -1
- package/es/components/time-picker/src/common/props.mjs.map +1 -1
- package/es/components/time-picker/src/time-picker.d.ts +3 -0
- package/es/components/tour/index.mjs +3 -3
- package/es/components/tour/src/content.mjs +67 -43
- package/es/components/tour/src/content.mjs.map +1 -1
- package/es/components/tour/src/content2.mjs +43 -67
- package/es/components/tour/src/content2.mjs.map +1 -1
- package/es/components/tour/src/mask.mjs +18 -75
- package/es/components/tour/src/mask.mjs.map +1 -1
- package/es/components/tour/src/mask2.mjs +75 -18
- package/es/components/tour/src/mask2.mjs.map +1 -1
- package/es/components/tour/src/step.mjs +44 -168
- package/es/components/tour/src/step.mjs.map +1 -1
- package/es/components/tour/src/step2.mjs +168 -44
- package/es/components/tour/src/step2.mjs.map +1 -1
- package/es/components/tour/src/tour.mjs +1 -1
- package/es/components/tour/src/tour2.mjs +2 -2
- package/es/components/transfer/src/composables/use-check.mjs +1 -1
- package/es/components/transfer/src/transfer-panel.mjs +19 -130
- package/es/components/transfer/src/transfer-panel.mjs.map +1 -1
- package/es/components/transfer/src/transfer-panel2.mjs +130 -19
- package/es/components/transfer/src/transfer-panel2.mjs.map +1 -1
- package/es/components/transfer/src/transfer2.mjs +1 -1
- package/es/components/watermark/index.mjs +2 -2
- package/es/components/watermark/src/watermark.mjs +27 -220
- package/es/components/watermark/src/watermark.mjs.map +1 -1
- package/es/components/watermark/src/watermark2.mjs +220 -27
- package/es/components/watermark/src/watermark2.mjs.map +1 -1
- package/es/directives/click-outside/index.mjs +1 -1
- package/es/hooks/use-focus-controller/index.mjs +1 -1
- package/es/hooks/use-lockscreen/index.mjs +1 -1
- package/es/index.d.ts +17 -0
- package/es/index.mjs +19 -19
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/alert/index.js +2 -2
- package/lib/components/alert/src/alert.js +42 -107
- package/lib/components/alert/src/alert.js.map +1 -1
- package/lib/components/alert/src/alert2.js +107 -42
- package/lib/components/alert/src/alert2.js.map +1 -1
- package/lib/components/backtop/index.js +2 -2
- package/lib/components/backtop/src/backtop.js +22 -53
- package/lib/components/backtop/src/backtop.js.map +1 -1
- package/lib/components/backtop/src/backtop2.js +53 -22
- package/lib/components/backtop/src/backtop2.js.map +1 -1
- package/lib/components/button/index.js +3 -3
- package/lib/components/button/src/button-group.js +29 -6
- package/lib/components/button/src/button-group.js.map +1 -1
- package/lib/components/button/src/button-group2.js +6 -29
- package/lib/components/button/src/button-group2.js.map +1 -1
- package/lib/components/button/src/button.js +65 -87
- package/lib/components/button/src/button.js.map +1 -1
- package/lib/components/button/src/button2.js +87 -65
- package/lib/components/button/src/button2.js.map +1 -1
- package/lib/components/cascader/src/cascader.vue.d.ts +4 -1
- package/lib/components/cascader/src/cascader2.js +64 -62
- package/lib/components/cascader/src/cascader2.js.map +1 -1
- package/lib/components/color-picker/index.js +2 -2
- package/lib/components/color-picker/src/color-picker.js +398 -40
- package/lib/components/color-picker/src/color-picker.js.map +1 -1
- package/lib/components/color-picker/src/color-picker2.js +40 -398
- package/lib/components/color-picker/src/color-picker2.js.map +1 -1
- package/lib/components/color-picker/src/components/predefine.js +1 -1
- package/lib/components/date-picker/src/composables/use-basic-date-table.d.ts +1 -1
- package/lib/components/date-picker/src/composables/use-basic-date-table.js +11 -12
- package/lib/components/date-picker/src/composables/use-basic-date-table.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/basic-date-table.js +4 -3
- package/lib/components/date-picker/src/date-picker-com/basic-date-table.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/basic-date-table.vue.d.ts +1 -1
- package/lib/components/date-picker/src/date-picker-com/panel-date-pick.js +2 -1
- package/lib/components/date-picker/src/date-picker-com/panel-date-pick.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +3 -0
- package/lib/components/date-picker/src/date-picker-com/panel-date-range.js +4 -2
- package/lib/components/date-picker/src/date-picker-com/panel-date-range.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +3 -0
- package/lib/components/date-picker/src/date-picker.d.ts +3 -0
- package/lib/components/date-picker/src/panel-utils.d.ts +16 -2
- package/lib/components/date-picker/src/props/date-picker.d.ts +1 -0
- package/lib/components/date-picker/src/props/panel-date-pick.d.ts +1 -0
- package/lib/components/date-picker/src/props/panel-date-range.d.ts +1 -0
- package/lib/components/date-picker/src/props/shared.d.ts +1 -0
- package/lib/components/date-picker/src/props/shared.js +2 -1
- package/lib/components/date-picker/src/props/shared.js.map +1 -1
- package/lib/components/divider/index.js +2 -2
- package/lib/components/divider/src/divider.js +34 -16
- package/lib/components/divider/src/divider.js.map +1 -1
- package/lib/components/divider/src/divider2.js +16 -34
- package/lib/components/divider/src/divider2.js.map +1 -1
- package/lib/components/dropdown/src/dropdown-item-impl.js +1 -1
- package/lib/components/dropdown/src/dropdown-menu.js +1 -1
- package/lib/components/dropdown/src/dropdown2.js +1 -1
- package/lib/components/empty/index.js +2 -2
- package/lib/components/empty/src/empty.js +52 -11
- package/lib/components/empty/src/empty.js.map +1 -1
- package/lib/components/empty/src/empty2.js +11 -52
- package/lib/components/empty/src/empty2.js.map +1 -1
- package/lib/components/form/index.js +2 -2
- package/lib/components/form/src/form.js +55 -160
- package/lib/components/form/src/form.js.map +1 -1
- package/lib/components/form/src/form2.js +160 -55
- package/lib/components/form/src/form2.js.map +1 -1
- package/lib/components/image-viewer/index.js +2 -2
- package/lib/components/image-viewer/src/image-viewer.js +447 -50
- package/lib/components/image-viewer/src/image-viewer.js.map +1 -1
- package/lib/components/image-viewer/src/image-viewer2.js +50 -447
- package/lib/components/image-viewer/src/image-viewer2.js.map +1 -1
- package/lib/components/index.js +19 -19
- package/lib/components/input/index.js +2 -2
- package/lib/components/input/src/input.js +101 -434
- package/lib/components/input/src/input.js.map +1 -1
- package/lib/components/input/src/input2.js +434 -101
- package/lib/components/input/src/input2.js.map +1 -1
- package/lib/components/input-tag/index.js +2 -2
- package/lib/components/input-tag/src/input-tag.js +73 -214
- package/lib/components/input-tag/src/input-tag.js.map +1 -1
- package/lib/components/input-tag/src/input-tag2.js +214 -73
- package/lib/components/input-tag/src/input-tag2.js.map +1 -1
- package/lib/components/mention/index.js +2 -2
- package/lib/components/mention/src/mention-dropdown.js +16 -166
- package/lib/components/mention/src/mention-dropdown.js.map +1 -1
- package/lib/components/mention/src/mention-dropdown2.js +166 -16
- package/lib/components/mention/src/mention-dropdown2.js.map +1 -1
- package/lib/components/mention/src/mention.js +285 -64
- package/lib/components/mention/src/mention.js.map +1 -1
- package/lib/components/mention/src/mention2.js +64 -285
- package/lib/components/mention/src/mention2.js.map +1 -1
- package/lib/components/menu/index.js +2 -2
- package/lib/components/menu/src/menu-item-group.js +4 -33
- package/lib/components/menu/src/menu-item-group.js.map +1 -1
- package/lib/components/menu/src/menu-item-group2.js +33 -4
- package/lib/components/menu/src/menu-item-group2.js.map +1 -1
- package/lib/components/notification/index.js +1 -1
- package/lib/components/notification/src/notification.js +74 -139
- package/lib/components/notification/src/notification.js.map +1 -1
- package/lib/components/notification/src/notification2.js +139 -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/total.js +6 -26
- package/lib/components/pagination/src/components/total.js.map +1 -1
- package/lib/components/pagination/src/components/total2.js +26 -6
- package/lib/components/pagination/src/components/total2.js.map +1 -1
- package/lib/components/pagination/src/pagination.js +1 -1
- package/lib/components/popconfirm/index.js +2 -2
- package/lib/components/popconfirm/src/popconfirm.js +46 -114
- package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
- package/lib/components/popconfirm/src/popconfirm2.js +114 -46
- package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
- package/lib/components/roving-focus-group/index.js +2 -2
- package/lib/components/roving-focus-group/src/roving-focus-group-impl.js +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-group.js +27 -31
- package/lib/components/roving-focus-group/src/roving-focus-group.js.map +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-group2.js +31 -27
- package/lib/components/roving-focus-group/src/roving-focus-group2.js.map +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-item.js +1 -1
- package/lib/components/skeleton/index.js +2 -2
- package/lib/components/skeleton/src/skeleton.js +48 -21
- package/lib/components/skeleton/src/skeleton.js.map +1 -1
- package/lib/components/skeleton/src/skeleton2.js +21 -48
- package/lib/components/skeleton/src/skeleton2.js.map +1 -1
- package/lib/components/splitter/src/split-bar.vue.d.ts +1 -1
- package/lib/components/splitter/src/splitter.vue.d.ts +2 -0
- package/lib/components/splitter/src/splitter2.js +6 -2
- package/lib/components/splitter/src/splitter2.js.map +1 -1
- package/lib/components/steps/index.js +2 -2
- package/lib/components/steps/src/item.js +191 -19
- package/lib/components/steps/src/item.js.map +1 -1
- package/lib/components/steps/src/item2.js +19 -191
- package/lib/components/steps/src/item2.js.map +1 -1
- package/lib/components/tabs/src/tabs.js +15 -6
- package/lib/components/tabs/src/tabs.js.map +1 -1
- package/lib/components/time-picker/src/common/picker.js +1 -0
- package/lib/components/time-picker/src/common/picker.js.map +1 -1
- package/lib/components/time-picker/src/common/picker.vue.d.ts +4 -0
- package/lib/components/time-picker/src/common/props.d.ts +1 -0
- package/lib/components/time-picker/src/common/props.js +2 -1
- package/lib/components/time-picker/src/common/props.js.map +1 -1
- package/lib/components/time-picker/src/time-picker.d.ts +3 -0
- package/lib/components/tour/index.js +3 -3
- package/lib/components/tour/src/content.js +67 -46
- package/lib/components/tour/src/content.js.map +1 -1
- package/lib/components/tour/src/content2.js +46 -67
- package/lib/components/tour/src/content2.js.map +1 -1
- package/lib/components/tour/src/mask.js +18 -75
- package/lib/components/tour/src/mask.js.map +1 -1
- package/lib/components/tour/src/mask2.js +75 -18
- package/lib/components/tour/src/mask2.js.map +1 -1
- package/lib/components/tour/src/step.js +44 -167
- package/lib/components/tour/src/step.js.map +1 -1
- package/lib/components/tour/src/step2.js +167 -44
- package/lib/components/tour/src/step2.js.map +1 -1
- package/lib/components/tour/src/tour.js +1 -1
- package/lib/components/tour/src/tour2.js +2 -2
- package/lib/components/transfer/src/composables/use-check.js +1 -1
- package/lib/components/transfer/src/transfer-panel.js +21 -130
- package/lib/components/transfer/src/transfer-panel.js.map +1 -1
- package/lib/components/transfer/src/transfer-panel2.js +130 -21
- package/lib/components/transfer/src/transfer-panel2.js.map +1 -1
- package/lib/components/transfer/src/transfer2.js +1 -1
- package/lib/components/watermark/index.js +2 -2
- package/lib/components/watermark/src/watermark.js +27 -220
- package/lib/components/watermark/src/watermark.js.map +1 -1
- package/lib/components/watermark/src/watermark2.js +220 -27
- package/lib/components/watermark/src/watermark2.js.map +1 -1
- package/lib/directives/click-outside/index.js +1 -1
- package/lib/hooks/use-focus-controller/index.js +1 -1
- package/lib/hooks/use-lockscreen/index.js +1 -1
- package/lib/index.d.ts +17 -0
- package/lib/index.js +19 -19
- 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/tags.json +1 -1
- package/theme-chalk/el-date-picker.css +1 -1
- package/theme-chalk/el-tabs.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/date-picker/date-table.scss +7 -1
- package/theme-chalk/src/tabs.scss +12 -2
- package/web-types.json +1 -1
package/es/components/index.mjs
CHANGED
@@ -86,15 +86,15 @@ export { default as DynamicSizeGrid } from './virtual-list/src/components/dynami
|
|
86
86
|
export { default as ElLoadingDirective, default as vLoading } from './loading/src/directive.mjs';
|
87
87
|
export { default as ElLoadingService } from './loading/src/service.mjs';
|
88
88
|
export { affixEmits, affixProps } from './affix/src/affix.mjs';
|
89
|
-
export { alertEffects, alertEmits, alertProps } from './alert/src/
|
89
|
+
export { alertEffects, alertEmits, alertProps } from './alert/src/alert.mjs';
|
90
90
|
export { autocompleteEmits, autocompleteProps } from './autocomplete/src/autocomplete.mjs';
|
91
91
|
export { avatarEmits, avatarProps } from './avatar/src/avatar.mjs';
|
92
|
-
export { backtopEmits, backtopProps } from './backtop/src/
|
92
|
+
export { backtopEmits, backtopProps } from './backtop/src/backtop.mjs';
|
93
93
|
export { badgeProps } from './badge/src/badge.mjs';
|
94
94
|
export { breadcrumbProps } from './breadcrumb/src/breadcrumb.mjs';
|
95
95
|
export { breadcrumbItemProps } from './breadcrumb/src/breadcrumb-item.mjs';
|
96
96
|
export { breadcrumbKey } from './breadcrumb/src/constants.mjs';
|
97
|
-
export { buttonEmits, buttonNativeTypes, buttonProps, buttonTypes } from './button/src/
|
97
|
+
export { buttonEmits, buttonNativeTypes, buttonProps, buttonTypes } from './button/src/button.mjs';
|
98
98
|
export { buttonGroupContextKey } from './button/src/constants.mjs';
|
99
99
|
export { calendarEmits, calendarProps } from './calendar/src/calendar.mjs';
|
100
100
|
export { cardProps } from './card/src/card.mjs';
|
@@ -112,7 +112,7 @@ export { colProps } from './col/src/col.mjs';
|
|
112
112
|
export { collapseEmits, collapseProps, emitChangeFn } from './collapse/src/collapse.mjs';
|
113
113
|
export { collapseItemProps } from './collapse/src/collapse-item.mjs';
|
114
114
|
export { collapseContextKey } from './collapse/src/constants.mjs';
|
115
|
-
export { colorPickerContextKey, colorPickerEmits, colorPickerProps } from './color-picker/src/color-
|
115
|
+
export { colorPickerContextKey, colorPickerEmits, colorPickerProps } from './color-picker/src/color-picker2.mjs';
|
116
116
|
export { messageConfig } from './config-provider/src/config-provider.mjs';
|
117
117
|
export { configProviderProps } from './config-provider/src/config-provider-props.mjs';
|
118
118
|
export { configProviderContextKey } from './config-provider/src/constants.mjs';
|
@@ -125,33 +125,33 @@ export { descriptionItemProps } from './descriptions/src/description-item.mjs';
|
|
125
125
|
export { useDialog } from './dialog/src/use-dialog.mjs';
|
126
126
|
export { dialogEmits, dialogProps } from './dialog/src/dialog.mjs';
|
127
127
|
export { dialogInjectionKey } from './dialog/src/constants.mjs';
|
128
|
-
export { dividerProps } from './divider/src/
|
128
|
+
export { dividerProps } from './divider/src/divider2.mjs';
|
129
129
|
export { drawerEmits, drawerProps } from './drawer/src/drawer.mjs';
|
130
130
|
export { DROPDOWN_COLLECTION_INJECTION_KEY, DROPDOWN_COLLECTION_ITEM_INJECTION_KEY, ElCollection, ElCollectionItem, FIRST_KEYS, FIRST_LAST_KEYS, LAST_KEYS, dropdownItemProps, dropdownMenuProps, dropdownProps } from './dropdown/src/dropdown.mjs';
|
131
131
|
export { DROPDOWN_INJECTION_KEY, DROPDOWN_INSTANCE_INJECTION_KEY } from './dropdown/src/tokens.mjs';
|
132
|
-
export { emptyProps } from './empty/src/
|
133
|
-
export { formEmits, formMetaProps, formProps } from './form/src/
|
132
|
+
export { emptyProps } from './empty/src/empty2.mjs';
|
133
|
+
export { formEmits, formMetaProps, formProps } from './form/src/form.mjs';
|
134
134
|
export { formItemProps, formItemValidateStates } from './form/src/form-item.mjs';
|
135
135
|
export { formContextKey, formItemContextKey } from './form/src/constants.mjs';
|
136
136
|
export { useDisabled, useFormDisabled, useFormSize, useSize } from './form/src/hooks/use-form-common-props.mjs';
|
137
137
|
export { useFormItem, useFormItemInputId } from './form/src/hooks/use-form-item.mjs';
|
138
138
|
export { iconProps } from './icon/src/icon.mjs';
|
139
139
|
export { imageEmits, imageProps } from './image/src/image.mjs';
|
140
|
-
export { imageViewerEmits, imageViewerProps } from './image-viewer/src/image-
|
141
|
-
export { inputEmits, inputProps } from './input/src/
|
140
|
+
export { imageViewerEmits, imageViewerProps } from './image-viewer/src/image-viewer2.mjs';
|
141
|
+
export { inputEmits, inputProps } from './input/src/input.mjs';
|
142
142
|
export { inputNumberEmits, inputNumberProps } from './input-number/src/input-number.mjs';
|
143
|
-
export { inputTagEmits, inputTagProps } from './input-tag/src/input-
|
143
|
+
export { inputTagEmits, inputTagProps } from './input-tag/src/input-tag.mjs';
|
144
144
|
export { linkEmits, linkProps } from './link/src/link.mjs';
|
145
145
|
export { menuEmits, menuProps } from './menu/src/menu.mjs';
|
146
146
|
export { menuItemEmits, menuItemProps } from './menu/src/menu-item.mjs';
|
147
|
-
export { menuItemGroupProps } from './menu/src/menu-item-
|
147
|
+
export { menuItemGroupProps } from './menu/src/menu-item-group.mjs';
|
148
148
|
export { subMenuProps } from './menu/src/sub-menu.mjs';
|
149
149
|
export { MENU_INJECTION_KEY, SUB_MENU_INJECTION_KEY } from './menu/src/tokens.mjs';
|
150
150
|
export { overlayEmits, overlayProps } from './overlay/src/overlay.mjs';
|
151
151
|
export { pageHeaderEmits, pageHeaderProps } from './page-header/src/page-header.mjs';
|
152
152
|
export { paginationEmits, paginationProps } from './pagination/src/pagination.mjs';
|
153
153
|
export { elPaginationKey } from './pagination/src/constants.mjs';
|
154
|
-
export { popconfirmEmits, popconfirmProps } from './popconfirm/src/
|
154
|
+
export { popconfirmEmits, popconfirmProps } from './popconfirm/src/popconfirm.mjs';
|
155
155
|
export { Effect, popperProps, roleTypes, usePopperProps } from './popper/src/popper.mjs';
|
156
156
|
export { popperTriggerProps, usePopperTriggerProps } from './popper/src/trigger.mjs';
|
157
157
|
export { popperContentEmits, popperContentProps, popperCoreConfigProps, usePopperContentEmits, usePopperContentProps, usePopperCoreConfigProps } from './popper/src/content.mjs';
|
@@ -176,7 +176,7 @@ export { scrollbarContextKey } from './scrollbar/src/constants.mjs';
|
|
176
176
|
export { selectGroupKey, selectKey } from './select/src/token.mjs';
|
177
177
|
export { selectEmits, selectProps } from './select/src/select.mjs';
|
178
178
|
export { selectV2InjectionKey } from './select-v2/src/token.mjs';
|
179
|
-
export { skeletonProps } from './skeleton/src/
|
179
|
+
export { skeletonProps } from './skeleton/src/skeleton2.mjs';
|
180
180
|
export { skeletonItemProps } from './skeleton/src/skeleton-item.mjs';
|
181
181
|
export { sliderEmits, sliderProps } from './slider/src/slider.mjs';
|
182
182
|
export { sliderContextKey } from './slider/src/constants.mjs';
|
@@ -184,7 +184,7 @@ export { spaceProps } from './space/src/space.mjs';
|
|
184
184
|
export { spaceItemProps } from './space/src/item.mjs';
|
185
185
|
export { useSpace } from './space/src/use-space.mjs';
|
186
186
|
export { statisticProps } from './statistic/src/statistic.mjs';
|
187
|
-
export { stepProps } from './steps/src/
|
187
|
+
export { stepProps } from './steps/src/item2.mjs';
|
188
188
|
export { stepsEmits, stepsProps } from './steps/src/steps.mjs';
|
189
189
|
export { STEPS_INJECTION_KEY } from './steps/src/tokens.mjs';
|
190
190
|
export { switchEmits, switchProps } from './switch/src/switch.mjs';
|
@@ -223,16 +223,16 @@ export { uploadContextKey } from './upload/src/constants.mjs';
|
|
223
223
|
export { default as FixedSizeList } from './virtual-list/src/components/fixed-size-list.mjs';
|
224
224
|
export { default as DynamicSizeList } from './virtual-list/src/components/dynamic-size-list.mjs';
|
225
225
|
export { virtualizedGridProps, virtualizedListProps, virtualizedProps, virtualizedScrollbarProps } from './virtual-list/src/props.mjs';
|
226
|
-
export { watermarkProps } from './watermark/src/
|
226
|
+
export { watermarkProps } from './watermark/src/watermark.mjs';
|
227
227
|
export { tourEmits, tourProps } from './tour/src/tour.mjs';
|
228
|
-
export { tourStepEmits, tourStepProps } from './tour/src/
|
229
|
-
export { tourContentEmits, tourContentProps, tourPlacements, tourStrategies } from './tour/src/
|
228
|
+
export { tourStepEmits, tourStepProps } from './tour/src/step.mjs';
|
229
|
+
export { tourContentEmits, tourContentProps, tourPlacements, tourStrategies } from './tour/src/content2.mjs';
|
230
230
|
export { anchorEmits, anchorProps } from './anchor/src/anchor.mjs';
|
231
231
|
export { defaultProps, segmentedEmits, segmentedProps } from './segmented/src/segmented.mjs';
|
232
|
-
export { mentionEmits, mentionProps } from './mention/src/
|
232
|
+
export { mentionEmits, mentionProps } from './mention/src/mention2.mjs';
|
233
233
|
export { splitterProps } from './splitter/src/splitter.mjs';
|
234
234
|
export { splitterPanelProps } from './splitter/src/split-panel.mjs';
|
235
235
|
export { messageDefaults, messageEmits, messageProps, messageTypes } from './message/src/message.mjs';
|
236
|
-
export { notificationEmits, notificationProps, notificationTypes } from './notification/src/
|
236
|
+
export { notificationEmits, notificationProps, notificationTypes } from './notification/src/notification.mjs';
|
237
237
|
export { popoverEmits, popoverProps } from './popover/src/popover.mjs';
|
238
238
|
//# sourceMappingURL=index.mjs.map
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import Input from './src/
|
2
|
-
export { inputEmits, inputProps } from './src/
|
1
|
+
import Input from './src/input2.mjs';
|
2
|
+
export { inputEmits, inputProps } from './src/input.mjs';
|
3
3
|
import { withInstall } from '../../utils/vue/install.mjs';
|
4
4
|
|
5
5
|
const ElInput = withInstall(Input);
|
@@ -1,441 +1,107 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import {
|
5
|
-
import {
|
6
|
-
import {
|
7
|
-
import {
|
8
|
-
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
9
|
-
import { useAttrs as useAttrs$1 } from '../../../hooks/use-attrs/index.mjs';
|
10
|
-
import { useFormItem, useFormItemInputId } from '../../form/src/hooks/use-form-item.mjs';
|
11
|
-
import { useFormSize, useFormDisabled } from '../../form/src/hooks/use-form-common-props.mjs';
|
12
|
-
import { useFocusController } from '../../../hooks/use-focus-controller/index.mjs';
|
13
|
-
import { ValidateComponentsMap } from '../../../utils/vue/icon.mjs';
|
14
|
-
import { useComposition } from '../../../hooks/use-composition/index.mjs';
|
15
|
-
import { UPDATE_MODEL_EVENT, INPUT_EVENT, CHANGE_EVENT } from '../../../constants/event.mjs';
|
16
|
-
import { useCursor } from '../../../hooks/use-cursor/index.mjs';
|
17
|
-
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
18
|
-
import { debugWarn } from '../../../utils/error.mjs';
|
19
|
-
import { NOOP, isObject } from '@vue/shared';
|
1
|
+
import { useSizeProp } from '../../../hooks/use-size/index.mjs';
|
2
|
+
import { iconPropType } from '../../../utils/vue/icon.mjs';
|
3
|
+
import { mutable } from '../../../utils/typescript.mjs';
|
4
|
+
import { useAriaProps } from '../../../hooks/use-aria/index.mjs';
|
5
|
+
import { UPDATE_MODEL_EVENT } from '../../../constants/event.mjs';
|
6
|
+
import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
|
7
|
+
import { isString } from '@vue/shared';
|
20
8
|
|
21
|
-
const
|
22
|
-
|
23
|
-
|
24
|
-
|
9
|
+
const inputProps = buildProps({
|
10
|
+
id: {
|
11
|
+
type: String,
|
12
|
+
default: void 0
|
13
|
+
},
|
14
|
+
size: useSizeProp,
|
15
|
+
disabled: Boolean,
|
16
|
+
modelValue: {
|
17
|
+
type: definePropType([
|
18
|
+
String,
|
19
|
+
Number,
|
20
|
+
Object
|
21
|
+
]),
|
22
|
+
default: ""
|
23
|
+
},
|
24
|
+
maxlength: {
|
25
|
+
type: [String, Number]
|
26
|
+
},
|
27
|
+
minlength: {
|
28
|
+
type: [String, Number]
|
29
|
+
},
|
30
|
+
type: {
|
31
|
+
type: String,
|
32
|
+
default: "text"
|
33
|
+
},
|
34
|
+
resize: {
|
35
|
+
type: String,
|
36
|
+
values: ["none", "both", "horizontal", "vertical"]
|
37
|
+
},
|
38
|
+
autosize: {
|
39
|
+
type: definePropType([Boolean, Object]),
|
40
|
+
default: false
|
41
|
+
},
|
42
|
+
autocomplete: {
|
43
|
+
type: String,
|
44
|
+
default: "off"
|
45
|
+
},
|
46
|
+
formatter: {
|
47
|
+
type: Function
|
48
|
+
},
|
49
|
+
parser: {
|
50
|
+
type: Function
|
51
|
+
},
|
52
|
+
placeholder: {
|
53
|
+
type: String
|
54
|
+
},
|
55
|
+
form: {
|
56
|
+
type: String
|
57
|
+
},
|
58
|
+
readonly: Boolean,
|
59
|
+
clearable: Boolean,
|
60
|
+
showPassword: Boolean,
|
61
|
+
showWordLimit: Boolean,
|
62
|
+
suffixIcon: {
|
63
|
+
type: iconPropType
|
64
|
+
},
|
65
|
+
prefixIcon: {
|
66
|
+
type: iconPropType
|
67
|
+
},
|
68
|
+
containerRole: {
|
69
|
+
type: String,
|
70
|
+
default: void 0
|
71
|
+
},
|
72
|
+
tabindex: {
|
73
|
+
type: [String, Number],
|
74
|
+
default: 0
|
75
|
+
},
|
76
|
+
validateEvent: {
|
77
|
+
type: Boolean,
|
78
|
+
default: true
|
79
|
+
},
|
80
|
+
inputStyle: {
|
81
|
+
type: definePropType([Object, Array, String]),
|
82
|
+
default: () => mutable({})
|
83
|
+
},
|
84
|
+
autofocus: Boolean,
|
85
|
+
rows: {
|
86
|
+
type: Number,
|
87
|
+
default: 2
|
88
|
+
},
|
89
|
+
...useAriaProps(["ariaLabel"])
|
25
90
|
});
|
26
|
-
const
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
{
|
41
|
-
[nsInput.b("group")]: slots.prepend || slots.append,
|
42
|
-
[nsInput.m("prefix")]: slots.prefix || props.prefixIcon,
|
43
|
-
[nsInput.m("suffix")]: slots.suffix || props.suffixIcon || props.clearable || props.showPassword,
|
44
|
-
[nsInput.bm("suffix", "password-clear")]: showClear.value && showPwdVisible.value,
|
45
|
-
[nsInput.b("hidden")]: props.type === "hidden"
|
46
|
-
},
|
47
|
-
rawAttrs.class
|
48
|
-
]);
|
49
|
-
const wrapperKls = computed(() => [
|
50
|
-
nsInput.e("wrapper"),
|
51
|
-
nsInput.is("focus", isFocused.value)
|
52
|
-
]);
|
53
|
-
const { form: elForm, formItem: elFormItem } = useFormItem();
|
54
|
-
const { inputId } = useFormItemInputId(props, {
|
55
|
-
formItemContext: elFormItem
|
56
|
-
});
|
57
|
-
const inputSize = useFormSize();
|
58
|
-
const inputDisabled = useFormDisabled();
|
59
|
-
const nsInput = useNamespace("input");
|
60
|
-
const nsTextarea = useNamespace("textarea");
|
61
|
-
const input = shallowRef();
|
62
|
-
const textarea = shallowRef();
|
63
|
-
const hovering = ref(false);
|
64
|
-
const passwordVisible = ref(false);
|
65
|
-
const countStyle = ref();
|
66
|
-
const textareaCalcStyle = shallowRef(props.inputStyle);
|
67
|
-
const _ref = computed(() => input.value || textarea.value);
|
68
|
-
const { wrapperRef, isFocused, handleFocus, handleBlur } = useFocusController(_ref, {
|
69
|
-
beforeFocus() {
|
70
|
-
return inputDisabled.value;
|
71
|
-
},
|
72
|
-
afterBlur() {
|
73
|
-
var _a;
|
74
|
-
if (props.validateEvent) {
|
75
|
-
(_a = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "blur").catch((err) => debugWarn(err));
|
76
|
-
}
|
77
|
-
}
|
78
|
-
});
|
79
|
-
const needStatusIcon = computed(() => {
|
80
|
-
var _a;
|
81
|
-
return (_a = elForm == null ? void 0 : elForm.statusIcon) != null ? _a : false;
|
82
|
-
});
|
83
|
-
const validateState = computed(() => (elFormItem == null ? void 0 : elFormItem.validateState) || "");
|
84
|
-
const validateIcon = computed(() => validateState.value && ValidateComponentsMap[validateState.value]);
|
85
|
-
const passwordIcon = computed(() => passwordVisible.value ? View : Hide);
|
86
|
-
const containerStyle = computed(() => [
|
87
|
-
rawAttrs.style
|
88
|
-
]);
|
89
|
-
const textareaStyle = computed(() => [
|
90
|
-
props.inputStyle,
|
91
|
-
textareaCalcStyle.value,
|
92
|
-
{ resize: props.resize }
|
93
|
-
]);
|
94
|
-
const nativeInputValue = computed(() => isNil(props.modelValue) ? "" : String(props.modelValue));
|
95
|
-
const showClear = computed(() => props.clearable && !inputDisabled.value && !props.readonly && !!nativeInputValue.value && (isFocused.value || hovering.value));
|
96
|
-
const showPwdVisible = computed(() => props.showPassword && !inputDisabled.value && !!nativeInputValue.value);
|
97
|
-
const isWordLimitVisible = computed(() => props.showWordLimit && !!props.maxlength && (props.type === "text" || props.type === "textarea") && !inputDisabled.value && !props.readonly && !props.showPassword);
|
98
|
-
const textLength = computed(() => nativeInputValue.value.length);
|
99
|
-
const inputExceed = computed(() => !!isWordLimitVisible.value && textLength.value > Number(props.maxlength));
|
100
|
-
const suffixVisible = computed(() => !!slots.suffix || !!props.suffixIcon || showClear.value || props.showPassword || isWordLimitVisible.value || !!validateState.value && needStatusIcon.value);
|
101
|
-
const [recordCursor, setCursor] = useCursor(input);
|
102
|
-
useResizeObserver(textarea, (entries) => {
|
103
|
-
onceInitSizeTextarea();
|
104
|
-
if (!isWordLimitVisible.value || props.resize !== "both")
|
105
|
-
return;
|
106
|
-
const entry = entries[0];
|
107
|
-
const { width } = entry.contentRect;
|
108
|
-
countStyle.value = {
|
109
|
-
right: `calc(100% - ${width + 15 + 6}px)`
|
110
|
-
};
|
111
|
-
});
|
112
|
-
const resizeTextarea = () => {
|
113
|
-
const { type, autosize } = props;
|
114
|
-
if (!isClient || type !== "textarea" || !textarea.value)
|
115
|
-
return;
|
116
|
-
if (autosize) {
|
117
|
-
const minRows = isObject(autosize) ? autosize.minRows : void 0;
|
118
|
-
const maxRows = isObject(autosize) ? autosize.maxRows : void 0;
|
119
|
-
const textareaStyle2 = calcTextareaHeight(textarea.value, minRows, maxRows);
|
120
|
-
textareaCalcStyle.value = {
|
121
|
-
overflowY: "hidden",
|
122
|
-
...textareaStyle2
|
123
|
-
};
|
124
|
-
nextTick(() => {
|
125
|
-
textarea.value.offsetHeight;
|
126
|
-
textareaCalcStyle.value = textareaStyle2;
|
127
|
-
});
|
128
|
-
} else {
|
129
|
-
textareaCalcStyle.value = {
|
130
|
-
minHeight: calcTextareaHeight(textarea.value).minHeight
|
131
|
-
};
|
132
|
-
}
|
133
|
-
};
|
134
|
-
const createOnceInitResize = (resizeTextarea2) => {
|
135
|
-
let isInit = false;
|
136
|
-
return () => {
|
137
|
-
var _a;
|
138
|
-
if (isInit || !props.autosize)
|
139
|
-
return;
|
140
|
-
const isElHidden = ((_a = textarea.value) == null ? void 0 : _a.offsetParent) === null;
|
141
|
-
if (!isElHidden) {
|
142
|
-
resizeTextarea2();
|
143
|
-
isInit = true;
|
144
|
-
}
|
145
|
-
};
|
146
|
-
};
|
147
|
-
const onceInitSizeTextarea = createOnceInitResize(resizeTextarea);
|
148
|
-
const setNativeInputValue = () => {
|
149
|
-
const input2 = _ref.value;
|
150
|
-
const formatterValue = props.formatter ? props.formatter(nativeInputValue.value) : nativeInputValue.value;
|
151
|
-
if (!input2 || input2.value === formatterValue)
|
152
|
-
return;
|
153
|
-
input2.value = formatterValue;
|
154
|
-
};
|
155
|
-
const handleInput = async (event) => {
|
156
|
-
recordCursor();
|
157
|
-
let { value } = event.target;
|
158
|
-
if (props.formatter && props.parser) {
|
159
|
-
value = props.parser(value);
|
160
|
-
}
|
161
|
-
if (isComposing.value)
|
162
|
-
return;
|
163
|
-
if (value === nativeInputValue.value) {
|
164
|
-
setNativeInputValue();
|
165
|
-
return;
|
166
|
-
}
|
167
|
-
emit(UPDATE_MODEL_EVENT, value);
|
168
|
-
emit(INPUT_EVENT, value);
|
169
|
-
await nextTick();
|
170
|
-
setNativeInputValue();
|
171
|
-
setCursor();
|
172
|
-
};
|
173
|
-
const handleChange = (event) => {
|
174
|
-
let { value } = event.target;
|
175
|
-
if (props.formatter && props.parser) {
|
176
|
-
value = props.parser(value);
|
177
|
-
}
|
178
|
-
emit(CHANGE_EVENT, value);
|
179
|
-
};
|
180
|
-
const {
|
181
|
-
isComposing,
|
182
|
-
handleCompositionStart,
|
183
|
-
handleCompositionUpdate,
|
184
|
-
handleCompositionEnd
|
185
|
-
} = useComposition({ emit, afterComposition: handleInput });
|
186
|
-
const handlePasswordVisible = () => {
|
187
|
-
recordCursor();
|
188
|
-
passwordVisible.value = !passwordVisible.value;
|
189
|
-
setTimeout(setCursor);
|
190
|
-
};
|
191
|
-
const focus = () => {
|
192
|
-
var _a;
|
193
|
-
return (_a = _ref.value) == null ? void 0 : _a.focus();
|
194
|
-
};
|
195
|
-
const blur = () => {
|
196
|
-
var _a;
|
197
|
-
return (_a = _ref.value) == null ? void 0 : _a.blur();
|
198
|
-
};
|
199
|
-
const handleMouseLeave = (evt) => {
|
200
|
-
hovering.value = false;
|
201
|
-
emit("mouseleave", evt);
|
202
|
-
};
|
203
|
-
const handleMouseEnter = (evt) => {
|
204
|
-
hovering.value = true;
|
205
|
-
emit("mouseenter", evt);
|
206
|
-
};
|
207
|
-
const handleKeydown = (evt) => {
|
208
|
-
emit("keydown", evt);
|
209
|
-
};
|
210
|
-
const select = () => {
|
211
|
-
var _a;
|
212
|
-
(_a = _ref.value) == null ? void 0 : _a.select();
|
213
|
-
};
|
214
|
-
const clear = () => {
|
215
|
-
emit(UPDATE_MODEL_EVENT, "");
|
216
|
-
emit(CHANGE_EVENT, "");
|
217
|
-
emit("clear");
|
218
|
-
emit(INPUT_EVENT, "");
|
219
|
-
};
|
220
|
-
watch(() => props.modelValue, () => {
|
221
|
-
var _a;
|
222
|
-
nextTick(() => resizeTextarea());
|
223
|
-
if (props.validateEvent) {
|
224
|
-
(_a = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change").catch((err) => debugWarn(err));
|
225
|
-
}
|
226
|
-
});
|
227
|
-
watch(nativeInputValue, () => setNativeInputValue());
|
228
|
-
watch(() => props.type, async () => {
|
229
|
-
await nextTick();
|
230
|
-
setNativeInputValue();
|
231
|
-
resizeTextarea();
|
232
|
-
});
|
233
|
-
onMounted(() => {
|
234
|
-
if (!props.formatter && props.parser) {
|
235
|
-
debugWarn(COMPONENT_NAME, "If you set the parser, you also need to set the formatter.");
|
236
|
-
}
|
237
|
-
setNativeInputValue();
|
238
|
-
nextTick(resizeTextarea);
|
239
|
-
});
|
240
|
-
expose({
|
241
|
-
input,
|
242
|
-
textarea,
|
243
|
-
ref: _ref,
|
244
|
-
textareaStyle,
|
245
|
-
autosize: toRef(props, "autosize"),
|
246
|
-
isComposing,
|
247
|
-
focus,
|
248
|
-
blur,
|
249
|
-
select,
|
250
|
-
clear,
|
251
|
-
resizeTextarea
|
252
|
-
});
|
253
|
-
return (_ctx, _cache) => {
|
254
|
-
return openBlock(), createElementBlock("div", {
|
255
|
-
class: normalizeClass([
|
256
|
-
unref(containerKls),
|
257
|
-
{
|
258
|
-
[unref(nsInput).bm("group", "append")]: _ctx.$slots.append,
|
259
|
-
[unref(nsInput).bm("group", "prepend")]: _ctx.$slots.prepend
|
260
|
-
}
|
261
|
-
]),
|
262
|
-
style: normalizeStyle(unref(containerStyle)),
|
263
|
-
onMouseenter: handleMouseEnter,
|
264
|
-
onMouseleave: handleMouseLeave
|
265
|
-
}, [
|
266
|
-
createCommentVNode(" input "),
|
267
|
-
_ctx.type !== "textarea" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
268
|
-
createCommentVNode(" prepend slot "),
|
269
|
-
_ctx.$slots.prepend ? (openBlock(), createElementBlock("div", {
|
270
|
-
key: 0,
|
271
|
-
class: normalizeClass(unref(nsInput).be("group", "prepend"))
|
272
|
-
}, [
|
273
|
-
renderSlot(_ctx.$slots, "prepend")
|
274
|
-
], 2)) : createCommentVNode("v-if", true),
|
275
|
-
createElementVNode("div", {
|
276
|
-
ref_key: "wrapperRef",
|
277
|
-
ref: wrapperRef,
|
278
|
-
class: normalizeClass(unref(wrapperKls))
|
279
|
-
}, [
|
280
|
-
createCommentVNode(" prefix slot "),
|
281
|
-
_ctx.$slots.prefix || _ctx.prefixIcon ? (openBlock(), createElementBlock("span", {
|
282
|
-
key: 0,
|
283
|
-
class: normalizeClass(unref(nsInput).e("prefix"))
|
284
|
-
}, [
|
285
|
-
createElementVNode("span", {
|
286
|
-
class: normalizeClass(unref(nsInput).e("prefix-inner"))
|
287
|
-
}, [
|
288
|
-
renderSlot(_ctx.$slots, "prefix"),
|
289
|
-
_ctx.prefixIcon ? (openBlock(), createBlock(unref(ElIcon), {
|
290
|
-
key: 0,
|
291
|
-
class: normalizeClass(unref(nsInput).e("icon"))
|
292
|
-
}, {
|
293
|
-
default: withCtx(() => [
|
294
|
-
(openBlock(), createBlock(resolveDynamicComponent(_ctx.prefixIcon)))
|
295
|
-
]),
|
296
|
-
_: 1
|
297
|
-
}, 8, ["class"])) : createCommentVNode("v-if", true)
|
298
|
-
], 2)
|
299
|
-
], 2)) : createCommentVNode("v-if", true),
|
300
|
-
createElementVNode("input", mergeProps({
|
301
|
-
id: unref(inputId),
|
302
|
-
ref_key: "input",
|
303
|
-
ref: input,
|
304
|
-
class: unref(nsInput).e("inner")
|
305
|
-
}, unref(attrs), {
|
306
|
-
minlength: _ctx.minlength,
|
307
|
-
maxlength: _ctx.maxlength,
|
308
|
-
type: _ctx.showPassword ? passwordVisible.value ? "text" : "password" : _ctx.type,
|
309
|
-
disabled: unref(inputDisabled),
|
310
|
-
readonly: _ctx.readonly,
|
311
|
-
autocomplete: _ctx.autocomplete,
|
312
|
-
tabindex: _ctx.tabindex,
|
313
|
-
"aria-label": _ctx.ariaLabel,
|
314
|
-
placeholder: _ctx.placeholder,
|
315
|
-
style: _ctx.inputStyle,
|
316
|
-
form: _ctx.form,
|
317
|
-
autofocus: _ctx.autofocus,
|
318
|
-
role: _ctx.containerRole,
|
319
|
-
onCompositionstart: unref(handleCompositionStart),
|
320
|
-
onCompositionupdate: unref(handleCompositionUpdate),
|
321
|
-
onCompositionend: unref(handleCompositionEnd),
|
322
|
-
onInput: handleInput,
|
323
|
-
onChange: handleChange,
|
324
|
-
onKeydown: handleKeydown
|
325
|
-
}), null, 16, ["id", "minlength", "maxlength", "type", "disabled", "readonly", "autocomplete", "tabindex", "aria-label", "placeholder", "form", "autofocus", "role", "onCompositionstart", "onCompositionupdate", "onCompositionend"]),
|
326
|
-
createCommentVNode(" suffix slot "),
|
327
|
-
unref(suffixVisible) ? (openBlock(), createElementBlock("span", {
|
328
|
-
key: 1,
|
329
|
-
class: normalizeClass(unref(nsInput).e("suffix"))
|
330
|
-
}, [
|
331
|
-
createElementVNode("span", {
|
332
|
-
class: normalizeClass(unref(nsInput).e("suffix-inner"))
|
333
|
-
}, [
|
334
|
-
!unref(showClear) || !unref(showPwdVisible) || !unref(isWordLimitVisible) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
335
|
-
renderSlot(_ctx.$slots, "suffix"),
|
336
|
-
_ctx.suffixIcon ? (openBlock(), createBlock(unref(ElIcon), {
|
337
|
-
key: 0,
|
338
|
-
class: normalizeClass(unref(nsInput).e("icon"))
|
339
|
-
}, {
|
340
|
-
default: withCtx(() => [
|
341
|
-
(openBlock(), createBlock(resolveDynamicComponent(_ctx.suffixIcon)))
|
342
|
-
]),
|
343
|
-
_: 1
|
344
|
-
}, 8, ["class"])) : createCommentVNode("v-if", true)
|
345
|
-
], 64)) : createCommentVNode("v-if", true),
|
346
|
-
unref(showClear) ? (openBlock(), createBlock(unref(ElIcon), {
|
347
|
-
key: 1,
|
348
|
-
class: normalizeClass([unref(nsInput).e("icon"), unref(nsInput).e("clear")]),
|
349
|
-
onMousedown: withModifiers(unref(NOOP), ["prevent"]),
|
350
|
-
onClick: clear
|
351
|
-
}, {
|
352
|
-
default: withCtx(() => [
|
353
|
-
createVNode(unref(CircleClose))
|
354
|
-
]),
|
355
|
-
_: 1
|
356
|
-
}, 8, ["class", "onMousedown"])) : createCommentVNode("v-if", true),
|
357
|
-
unref(showPwdVisible) ? (openBlock(), createBlock(unref(ElIcon), {
|
358
|
-
key: 2,
|
359
|
-
class: normalizeClass([unref(nsInput).e("icon"), unref(nsInput).e("password")]),
|
360
|
-
onClick: handlePasswordVisible
|
361
|
-
}, {
|
362
|
-
default: withCtx(() => [
|
363
|
-
(openBlock(), createBlock(resolveDynamicComponent(unref(passwordIcon))))
|
364
|
-
]),
|
365
|
-
_: 1
|
366
|
-
}, 8, ["class"])) : createCommentVNode("v-if", true),
|
367
|
-
unref(isWordLimitVisible) ? (openBlock(), createElementBlock("span", {
|
368
|
-
key: 3,
|
369
|
-
class: normalizeClass(unref(nsInput).e("count"))
|
370
|
-
}, [
|
371
|
-
createElementVNode("span", {
|
372
|
-
class: normalizeClass(unref(nsInput).e("count-inner"))
|
373
|
-
}, toDisplayString(unref(textLength)) + " / " + toDisplayString(_ctx.maxlength), 3)
|
374
|
-
], 2)) : createCommentVNode("v-if", true),
|
375
|
-
unref(validateState) && unref(validateIcon) && unref(needStatusIcon) ? (openBlock(), createBlock(unref(ElIcon), {
|
376
|
-
key: 4,
|
377
|
-
class: normalizeClass([
|
378
|
-
unref(nsInput).e("icon"),
|
379
|
-
unref(nsInput).e("validateIcon"),
|
380
|
-
unref(nsInput).is("loading", unref(validateState) === "validating")
|
381
|
-
])
|
382
|
-
}, {
|
383
|
-
default: withCtx(() => [
|
384
|
-
(openBlock(), createBlock(resolveDynamicComponent(unref(validateIcon))))
|
385
|
-
]),
|
386
|
-
_: 1
|
387
|
-
}, 8, ["class"])) : createCommentVNode("v-if", true)
|
388
|
-
], 2)
|
389
|
-
], 2)) : createCommentVNode("v-if", true)
|
390
|
-
], 2),
|
391
|
-
createCommentVNode(" append slot "),
|
392
|
-
_ctx.$slots.append ? (openBlock(), createElementBlock("div", {
|
393
|
-
key: 1,
|
394
|
-
class: normalizeClass(unref(nsInput).be("group", "append"))
|
395
|
-
}, [
|
396
|
-
renderSlot(_ctx.$slots, "append")
|
397
|
-
], 2)) : createCommentVNode("v-if", true)
|
398
|
-
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
399
|
-
createCommentVNode(" textarea "),
|
400
|
-
createElementVNode("textarea", mergeProps({
|
401
|
-
id: unref(inputId),
|
402
|
-
ref_key: "textarea",
|
403
|
-
ref: textarea,
|
404
|
-
class: [unref(nsTextarea).e("inner"), unref(nsInput).is("focus", unref(isFocused))]
|
405
|
-
}, unref(attrs), {
|
406
|
-
minlength: _ctx.minlength,
|
407
|
-
maxlength: _ctx.maxlength,
|
408
|
-
tabindex: _ctx.tabindex,
|
409
|
-
disabled: unref(inputDisabled),
|
410
|
-
readonly: _ctx.readonly,
|
411
|
-
autocomplete: _ctx.autocomplete,
|
412
|
-
style: unref(textareaStyle),
|
413
|
-
"aria-label": _ctx.ariaLabel,
|
414
|
-
placeholder: _ctx.placeholder,
|
415
|
-
form: _ctx.form,
|
416
|
-
autofocus: _ctx.autofocus,
|
417
|
-
rows: _ctx.rows,
|
418
|
-
role: _ctx.containerRole,
|
419
|
-
onCompositionstart: unref(handleCompositionStart),
|
420
|
-
onCompositionupdate: unref(handleCompositionUpdate),
|
421
|
-
onCompositionend: unref(handleCompositionEnd),
|
422
|
-
onInput: handleInput,
|
423
|
-
onFocus: unref(handleFocus),
|
424
|
-
onBlur: unref(handleBlur),
|
425
|
-
onChange: handleChange,
|
426
|
-
onKeydown: handleKeydown
|
427
|
-
}), null, 16, ["id", "minlength", "maxlength", "tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder", "form", "autofocus", "rows", "role", "onCompositionstart", "onCompositionupdate", "onCompositionend", "onFocus", "onBlur"]),
|
428
|
-
unref(isWordLimitVisible) ? (openBlock(), createElementBlock("span", {
|
429
|
-
key: 0,
|
430
|
-
style: normalizeStyle(countStyle.value),
|
431
|
-
class: normalizeClass(unref(nsInput).e("count"))
|
432
|
-
}, toDisplayString(unref(textLength)) + " / " + toDisplayString(_ctx.maxlength), 7)) : createCommentVNode("v-if", true)
|
433
|
-
], 64))
|
434
|
-
], 38);
|
435
|
-
};
|
436
|
-
}
|
437
|
-
});
|
438
|
-
var Input = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "input.vue"]]);
|
91
|
+
const inputEmits = {
|
92
|
+
[UPDATE_MODEL_EVENT]: (value) => isString(value),
|
93
|
+
input: (value) => isString(value),
|
94
|
+
change: (value) => isString(value),
|
95
|
+
focus: (evt) => evt instanceof FocusEvent,
|
96
|
+
blur: (evt) => evt instanceof FocusEvent,
|
97
|
+
clear: () => true,
|
98
|
+
mouseleave: (evt) => evt instanceof MouseEvent,
|
99
|
+
mouseenter: (evt) => evt instanceof MouseEvent,
|
100
|
+
keydown: (evt) => evt instanceof Event,
|
101
|
+
compositionstart: (evt) => evt instanceof CompositionEvent,
|
102
|
+
compositionupdate: (evt) => evt instanceof CompositionEvent,
|
103
|
+
compositionend: (evt) => evt instanceof CompositionEvent
|
104
|
+
};
|
439
105
|
|
440
|
-
export {
|
106
|
+
export { inputEmits, inputProps };
|
441
107
|
//# sourceMappingURL=input.mjs.map
|