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