@element-plus/nightly 0.0.20250427 → 0.0.20250429
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.full.js +27 -17
- package/dist/index.full.min.js +8 -8
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +9 -9
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +27 -17
- 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/affix/index.mjs +2 -2
- package/es/components/affix/src/affix.mjs +119 -24
- package/es/components/affix/src/affix.mjs.map +1 -1
- package/es/components/affix/src/affix2.mjs +24 -119
- package/es/components/affix/src/affix2.mjs.map +1 -1
- package/es/components/autocomplete/src/autocomplete.mjs +1 -1
- package/es/components/breadcrumb/index.mjs +4 -4
- package/es/components/breadcrumb/src/breadcrumb-item.mjs +56 -8
- package/es/components/breadcrumb/src/breadcrumb-item.mjs.map +1 -1
- package/es/components/breadcrumb/src/breadcrumb-item2.mjs +8 -56
- package/es/components/breadcrumb/src/breadcrumb-item2.mjs.map +1 -1
- package/es/components/breadcrumb/src/breadcrumb.mjs +10 -37
- package/es/components/breadcrumb/src/breadcrumb.mjs.map +1 -1
- package/es/components/breadcrumb/src/breadcrumb2.mjs +37 -10
- package/es/components/breadcrumb/src/breadcrumb2.mjs.map +1 -1
- package/es/components/button/index.mjs +2 -2
- package/es/components/button/src/button-group.mjs +1 -1
- package/es/components/button/src/button.mjs +56 -77
- package/es/components/button/src/button.mjs.map +1 -1
- package/es/components/button/src/button2.mjs +77 -56
- package/es/components/button/src/button2.mjs.map +1 -1
- package/es/components/calendar/index.mjs +2 -2
- package/es/components/calendar/src/calendar.mjs +16 -134
- package/es/components/calendar/src/calendar.mjs.map +1 -1
- package/es/components/calendar/src/calendar2.mjs +134 -16
- package/es/components/calendar/src/calendar2.mjs.map +1 -1
- package/es/components/carousel/index.mjs +4 -4
- package/es/components/carousel/src/carousel-item.mjs +7 -69
- package/es/components/carousel/src/carousel-item.mjs.map +1 -1
- package/es/components/carousel/src/carousel-item2.mjs +69 -7
- package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
- package/es/components/carousel/src/carousel.mjs +61 -204
- package/es/components/carousel/src/carousel.mjs.map +1 -1
- package/es/components/carousel/src/carousel2.mjs +204 -61
- package/es/components/carousel/src/carousel2.mjs.map +1 -1
- package/es/components/cascader/src/cascader.mjs +2 -2
- package/es/components/collapse/index.mjs +2 -2
- package/es/components/collapse/src/collapse-item.mjs +90 -18
- package/es/components/collapse/src/collapse-item.mjs.map +1 -1
- package/es/components/collapse/src/collapse-item2.mjs +18 -90
- package/es/components/collapse/src/collapse-item2.mjs.map +1 -1
- package/es/components/collapse/src/collapse.d.ts +1 -1
- package/es/components/collapse/src/collapse.mjs +1 -2
- package/es/components/collapse/src/collapse.mjs.map +1 -1
- package/es/components/collapse/src/collapse.vue.d.ts +3 -3
- package/es/components/collapse/src/use-collapse.d.ts +1 -1
- package/es/components/collapse/src/use-collapse.mjs +11 -7
- package/es/components/collapse/src/use-collapse.mjs.map +1 -1
- package/es/components/color-picker/index.mjs +2 -2
- package/es/components/color-picker/src/color-picker.mjs +401 -39
- package/es/components/color-picker/src/color-picker.mjs.map +1 -1
- package/es/components/color-picker/src/color-picker2.mjs +39 -401
- 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/countdown/index.mjs +2 -2
- package/es/components/countdown/src/countdown.mjs +79 -21
- package/es/components/countdown/src/countdown.mjs.map +1 -1
- package/es/components/countdown/src/countdown2.mjs +21 -79
- package/es/components/countdown/src/countdown2.mjs.map +1 -1
- package/es/components/descriptions/index.mjs +2 -2
- package/es/components/descriptions/src/description.mjs +127 -26
- package/es/components/descriptions/src/description.mjs.map +1 -1
- package/es/components/descriptions/src/description2.mjs +26 -127
- package/es/components/descriptions/src/description2.mjs.map +1 -1
- package/es/components/descriptions/src/descriptions-row.mjs +63 -6
- package/es/components/descriptions/src/descriptions-row.mjs.map +1 -1
- package/es/components/descriptions/src/descriptions-row2.mjs +6 -63
- package/es/components/descriptions/src/descriptions-row2.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown.mjs +2 -2
- package/es/components/form/index.mjs +2 -2
- package/es/components/form/src/form-item.mjs +47 -319
- package/es/components/form/src/form-item.mjs.map +1 -1
- package/es/components/form/src/form-item2.mjs +319 -47
- package/es/components/form/src/form-item2.mjs.map +1 -1
- package/es/components/icon/index.mjs +2 -2
- package/es/components/icon/src/icon.mjs +8 -35
- package/es/components/icon/src/icon.mjs.map +1 -1
- package/es/components/icon/src/icon2.mjs +35 -8
- package/es/components/icon/src/icon2.mjs.map +1 -1
- package/es/components/image/index.mjs +2 -2
- package/es/components/image/src/image.mjs +226 -68
- package/es/components/image/src/image.mjs.map +1 -1
- package/es/components/image/src/image2.mjs +68 -222
- package/es/components/image/src/image2.mjs.map +1 -1
- package/es/components/index.mjs +28 -28
- package/es/components/input-number/index.mjs +2 -2
- package/es/components/input-number/src/input-number.mjs +60 -349
- package/es/components/input-number/src/input-number.mjs.map +1 -1
- package/es/components/input-number/src/input-number2.mjs +349 -60
- package/es/components/input-number/src/input-number2.mjs.map +1 -1
- package/es/components/input-tag/index.mjs +2 -2
- package/es/components/input-tag/src/input-tag.mjs +215 -73
- package/es/components/input-tag/src/input-tag.mjs.map +1 -1
- package/es/components/input-tag/src/input-tag2.mjs +73 -215
- package/es/components/input-tag/src/input-tag2.mjs.map +1 -1
- package/es/components/link/index.mjs +2 -2
- package/es/components/link/src/link.mjs +25 -65
- package/es/components/link/src/link.mjs.map +1 -1
- package/es/components/link/src/link2.mjs +65 -25
- package/es/components/link/src/link2.mjs.map +1 -1
- 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/mention2.mjs +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/message/index.mjs +1 -1
- package/es/components/message/src/message.mjs +153 -86
- package/es/components/message/src/message.mjs.map +1 -1
- package/es/components/message/src/message2.mjs +86 -153
- package/es/components/message/src/message2.mjs.map +1 -1
- package/es/components/message/src/method.mjs +2 -2
- package/es/components/popconfirm/src/popconfirm.mjs +2 -2
- package/es/components/popover/index.mjs +2 -2
- package/es/components/popover/src/popover.mjs +65 -111
- package/es/components/popover/src/popover.mjs.map +1 -1
- package/es/components/popover/src/popover2.mjs +111 -65
- package/es/components/popover/src/popover2.mjs.map +1 -1
- package/es/components/popper/index.mjs +2 -2
- package/es/components/popper/src/popper.mjs +22 -32
- package/es/components/popper/src/popper.mjs.map +1 -1
- package/es/components/popper/src/popper2.mjs +32 -22
- package/es/components/popper/src/popper2.mjs.map +1 -1
- package/es/components/progress/index.mjs +2 -2
- package/es/components/progress/src/progress.mjs +53 -207
- package/es/components/progress/src/progress.mjs.map +1 -1
- package/es/components/progress/src/progress2.mjs +207 -53
- package/es/components/progress/src/progress2.mjs.map +1 -1
- package/es/components/radio/index.mjs +2 -2
- package/es/components/radio/src/radio-button.mjs +5 -65
- package/es/components/radio/src/radio-button.mjs.map +1 -1
- package/es/components/radio/src/radio-button2.mjs +65 -5
- package/es/components/radio/src/radio-button2.mjs.map +1 -1
- package/es/components/result/index.mjs +2 -2
- package/es/components/result/src/result.mjs +62 -28
- package/es/components/result/src/result.mjs.map +1 -1
- package/es/components/result/src/result2.mjs +28 -62
- package/es/components/result/src/result2.mjs.map +1 -1
- package/es/components/scrollbar/index.mjs +1 -1
- package/es/components/scrollbar/src/bar2.mjs +1 -1
- package/es/components/scrollbar/src/thumb.mjs +11 -131
- package/es/components/scrollbar/src/thumb.mjs.map +1 -1
- package/es/components/scrollbar/src/thumb2.mjs +131 -11
- package/es/components/scrollbar/src/thumb2.mjs.map +1 -1
- package/es/components/select/src/select.mjs +2 -2
- package/es/components/select-v2/src/defaults.mjs +2 -2
- package/es/components/table/src/filter-panel.mjs +1 -1
- package/es/components/tabs/src/tab-nav.d.ts +2 -1
- package/es/components/tabs/src/tab-nav.mjs +2 -1
- package/es/components/tabs/src/tab-nav.mjs.map +1 -1
- package/es/components/tabs/src/tabs.d.ts +3 -1
- package/es/components/tabs/src/tabs.mjs +2 -1
- package/es/components/tabs/src/tabs.mjs.map +1 -1
- package/es/components/tag/index.mjs +2 -2
- package/es/components/tag/src/tag.mjs +99 -27
- package/es/components/tag/src/tag.mjs.map +1 -1
- package/es/components/tag/src/tag2.mjs +27 -99
- package/es/components/tag/src/tag2.mjs.map +1 -1
- package/es/components/tooltip/index.mjs +1 -1
- package/es/components/tooltip/src/content.mjs +193 -29
- package/es/components/tooltip/src/content.mjs.map +1 -1
- package/es/components/tooltip/src/content2.mjs +29 -193
- package/es/components/tooltip/src/content2.mjs.map +1 -1
- package/es/components/tooltip/src/tooltip.mjs +2 -2
- package/es/components/tooltip/src/tooltip2.mjs +1 -1
- package/es/components/tooltip-v2/src/content2.mjs +1 -1
- package/es/components/visual-hidden/index.mjs +3 -3
- package/es/components/visual-hidden/src/visual-hidden.mjs +35 -6
- package/es/components/visual-hidden/src/visual-hidden.mjs.map +1 -1
- package/es/components/visual-hidden/src/visual-hidden2.mjs +6 -35
- package/es/components/visual-hidden/src/visual-hidden2.mjs.map +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/index.mjs +28 -28
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/affix/index.js +2 -2
- package/lib/components/affix/src/affix.js +119 -25
- package/lib/components/affix/src/affix.js.map +1 -1
- package/lib/components/affix/src/affix2.js +25 -119
- package/lib/components/affix/src/affix2.js.map +1 -1
- package/lib/components/autocomplete/src/autocomplete.js +1 -1
- package/lib/components/breadcrumb/index.js +4 -4
- package/lib/components/breadcrumb/src/breadcrumb-item.js +56 -8
- package/lib/components/breadcrumb/src/breadcrumb-item.js.map +1 -1
- package/lib/components/breadcrumb/src/breadcrumb-item2.js +8 -56
- package/lib/components/breadcrumb/src/breadcrumb-item2.js.map +1 -1
- package/lib/components/breadcrumb/src/breadcrumb.js +10 -37
- package/lib/components/breadcrumb/src/breadcrumb.js.map +1 -1
- package/lib/components/breadcrumb/src/breadcrumb2.js +37 -10
- package/lib/components/breadcrumb/src/breadcrumb2.js.map +1 -1
- package/lib/components/button/index.js +2 -2
- package/lib/components/button/src/button-group.js +1 -1
- package/lib/components/button/src/button.js +59 -77
- package/lib/components/button/src/button.js.map +1 -1
- package/lib/components/button/src/button2.js +77 -59
- package/lib/components/button/src/button2.js.map +1 -1
- package/lib/components/calendar/index.js +2 -2
- package/lib/components/calendar/src/calendar.js +17 -134
- package/lib/components/calendar/src/calendar.js.map +1 -1
- package/lib/components/calendar/src/calendar2.js +134 -17
- package/lib/components/calendar/src/calendar2.js.map +1 -1
- package/lib/components/carousel/index.js +4 -4
- package/lib/components/carousel/src/carousel-item.js +7 -69
- package/lib/components/carousel/src/carousel-item.js.map +1 -1
- package/lib/components/carousel/src/carousel-item2.js +69 -7
- package/lib/components/carousel/src/carousel-item2.js.map +1 -1
- package/lib/components/carousel/src/carousel.js +62 -204
- package/lib/components/carousel/src/carousel.js.map +1 -1
- package/lib/components/carousel/src/carousel2.js +204 -62
- package/lib/components/carousel/src/carousel2.js.map +1 -1
- package/lib/components/cascader/src/cascader.js +2 -2
- package/lib/components/collapse/index.js +2 -2
- package/lib/components/collapse/src/collapse-item.js +90 -18
- package/lib/components/collapse/src/collapse-item.js.map +1 -1
- package/lib/components/collapse/src/collapse-item2.js +18 -90
- package/lib/components/collapse/src/collapse-item2.js.map +1 -1
- package/lib/components/collapse/src/collapse.d.ts +1 -1
- package/lib/components/collapse/src/collapse.js +1 -2
- package/lib/components/collapse/src/collapse.js.map +1 -1
- package/lib/components/collapse/src/collapse.vue.d.ts +3 -3
- package/lib/components/collapse/src/use-collapse.d.ts +1 -1
- package/lib/components/collapse/src/use-collapse.js +10 -6
- package/lib/components/collapse/src/use-collapse.js.map +1 -1
- package/lib/components/color-picker/index.js +2 -2
- package/lib/components/color-picker/src/color-picker.js +400 -40
- package/lib/components/color-picker/src/color-picker.js.map +1 -1
- package/lib/components/color-picker/src/color-picker2.js +40 -400
- 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/countdown/index.js +2 -2
- package/lib/components/countdown/src/countdown.js +79 -22
- package/lib/components/countdown/src/countdown.js.map +1 -1
- package/lib/components/countdown/src/countdown2.js +22 -79
- package/lib/components/countdown/src/countdown2.js.map +1 -1
- package/lib/components/descriptions/index.js +2 -2
- package/lib/components/descriptions/src/description.js +127 -26
- package/lib/components/descriptions/src/description.js.map +1 -1
- package/lib/components/descriptions/src/description2.js +26 -127
- package/lib/components/descriptions/src/description2.js.map +1 -1
- package/lib/components/descriptions/src/descriptions-row.js +63 -6
- package/lib/components/descriptions/src/descriptions-row.js.map +1 -1
- package/lib/components/descriptions/src/descriptions-row2.js +6 -63
- package/lib/components/descriptions/src/descriptions-row2.js.map +1 -1
- package/lib/components/dropdown/src/dropdown.js +2 -2
- package/lib/components/form/index.js +2 -2
- package/lib/components/form/src/form-item.js +48 -323
- package/lib/components/form/src/form-item.js.map +1 -1
- package/lib/components/form/src/form-item2.js +323 -48
- package/lib/components/form/src/form-item2.js.map +1 -1
- package/lib/components/icon/index.js +2 -2
- package/lib/components/icon/src/icon.js +8 -35
- package/lib/components/icon/src/icon.js.map +1 -1
- package/lib/components/icon/src/icon2.js +35 -8
- package/lib/components/icon/src/icon2.js.map +1 -1
- package/lib/components/image/index.js +2 -2
- package/lib/components/image/src/image.js +225 -68
- package/lib/components/image/src/image.js.map +1 -1
- package/lib/components/image/src/image2.js +68 -221
- package/lib/components/image/src/image2.js.map +1 -1
- package/lib/components/index.js +28 -28
- package/lib/components/input-number/index.js +2 -2
- package/lib/components/input-number/src/input-number.js +59 -347
- package/lib/components/input-number/src/input-number.js.map +1 -1
- package/lib/components/input-number/src/input-number2.js +347 -59
- package/lib/components/input-number/src/input-number2.js.map +1 -1
- package/lib/components/input-tag/index.js +2 -2
- package/lib/components/input-tag/src/input-tag.js +214 -73
- package/lib/components/input-tag/src/input-tag.js.map +1 -1
- package/lib/components/input-tag/src/input-tag2.js +73 -214
- package/lib/components/input-tag/src/input-tag2.js.map +1 -1
- package/lib/components/link/index.js +2 -2
- package/lib/components/link/src/link.js +26 -65
- package/lib/components/link/src/link.js.map +1 -1
- package/lib/components/link/src/link2.js +65 -26
- package/lib/components/link/src/link2.js.map +1 -1
- 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/mention2.js +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/message/index.js +1 -1
- package/lib/components/message/src/message.js +152 -88
- package/lib/components/message/src/message.js.map +1 -1
- package/lib/components/message/src/message2.js +88 -152
- package/lib/components/message/src/message2.js.map +1 -1
- package/lib/components/message/src/method.js +2 -2
- package/lib/components/popconfirm/src/popconfirm.js +2 -2
- package/lib/components/popover/index.js +2 -2
- package/lib/components/popover/src/popover.js +66 -111
- package/lib/components/popover/src/popover.js.map +1 -1
- package/lib/components/popover/src/popover2.js +111 -66
- package/lib/components/popover/src/popover2.js.map +1 -1
- package/lib/components/popper/index.js +2 -2
- package/lib/components/popper/src/popper.js +25 -32
- package/lib/components/popper/src/popper.js.map +1 -1
- package/lib/components/popper/src/popper2.js +32 -25
- package/lib/components/popper/src/popper2.js.map +1 -1
- package/lib/components/progress/index.js +2 -2
- package/lib/components/progress/src/progress.js +53 -207
- package/lib/components/progress/src/progress.js.map +1 -1
- package/lib/components/progress/src/progress2.js +207 -53
- package/lib/components/progress/src/progress2.js.map +1 -1
- package/lib/components/radio/index.js +2 -2
- package/lib/components/radio/src/radio-button.js +5 -65
- package/lib/components/radio/src/radio-button.js.map +1 -1
- package/lib/components/radio/src/radio-button2.js +65 -5
- package/lib/components/radio/src/radio-button2.js.map +1 -1
- package/lib/components/result/index.js +2 -2
- package/lib/components/result/src/result.js +62 -30
- package/lib/components/result/src/result.js.map +1 -1
- package/lib/components/result/src/result2.js +30 -62
- package/lib/components/result/src/result2.js.map +1 -1
- package/lib/components/scrollbar/index.js +1 -1
- package/lib/components/scrollbar/src/bar2.js +1 -1
- package/lib/components/scrollbar/src/thumb.js +11 -131
- package/lib/components/scrollbar/src/thumb.js.map +1 -1
- package/lib/components/scrollbar/src/thumb2.js +131 -11
- package/lib/components/scrollbar/src/thumb2.js.map +1 -1
- package/lib/components/select/src/select.js +2 -2
- package/lib/components/select-v2/src/defaults.js +2 -2
- package/lib/components/table/src/filter-panel.js +1 -1
- package/lib/components/tabs/src/tab-nav.d.ts +2 -1
- package/lib/components/tabs/src/tab-nav.js +2 -1
- package/lib/components/tabs/src/tab-nav.js.map +1 -1
- package/lib/components/tabs/src/tabs.d.ts +3 -1
- package/lib/components/tabs/src/tabs.js +2 -1
- package/lib/components/tabs/src/tabs.js.map +1 -1
- package/lib/components/tag/index.js +2 -2
- package/lib/components/tag/src/tag.js +99 -28
- package/lib/components/tag/src/tag.js.map +1 -1
- package/lib/components/tag/src/tag2.js +28 -99
- package/lib/components/tag/src/tag2.js.map +1 -1
- package/lib/components/tooltip/index.js +1 -1
- package/lib/components/tooltip/src/content.js +193 -29
- package/lib/components/tooltip/src/content.js.map +1 -1
- package/lib/components/tooltip/src/content2.js +29 -193
- package/lib/components/tooltip/src/content2.js.map +1 -1
- package/lib/components/tooltip/src/tooltip.js +2 -2
- package/lib/components/tooltip/src/tooltip2.js +1 -1
- package/lib/components/tooltip-v2/src/content2.js +1 -1
- package/lib/components/visual-hidden/index.js +2 -2
- package/lib/components/visual-hidden/src/visual-hidden.js +35 -6
- package/lib/components/visual-hidden/src/visual-hidden.js.map +1 -1
- package/lib/components/visual-hidden/src/visual-hidden2.js +6 -35
- package/lib/components/visual-hidden/src/visual-hidden2.js.map +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/index.js +28 -28
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/web-types.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"image2.mjs","sources":["../../../../../../packages/components/image/src/image.vue"],"sourcesContent":["<template>\n <div ref=\"container\" v-bind=\"containerAttrs\" :class=\"[ns.b(), $attrs.class]\">\n <slot v-if=\"hasLoadError\" name=\"error\">\n <div :class=\"ns.e('error')\">{{ t('el.image.error') }}</div>\n </slot>\n <template v-else>\n <img\n v-if=\"imageSrc !== undefined\"\n v-bind=\"imgAttrs\"\n :src=\"imageSrc\"\n :loading=\"loading\"\n :style=\"imageStyle\"\n :class=\"imageKls\"\n :crossorigin=\"crossorigin\"\n @click=\"clickHandler\"\n @load=\"handleLoad\"\n @error=\"handleError\"\n />\n <div v-if=\"isLoading\" :class=\"ns.e('wrapper')\">\n <slot name=\"placeholder\">\n <div :class=\"ns.e('placeholder')\" />\n </slot>\n </div>\n </template>\n <template v-if=\"preview\">\n <image-viewer\n v-if=\"showViewer\"\n :z-index=\"zIndex\"\n :initial-index=\"imageIndex\"\n :infinite=\"infinite\"\n :zoom-rate=\"zoomRate\"\n :min-scale=\"minScale\"\n :max-scale=\"maxScale\"\n :show-progress=\"showProgress\"\n :url-list=\"previewSrcList\"\n :crossorigin=\"crossorigin\"\n :hide-on-click-modal=\"hideOnClickModal\"\n :teleported=\"previewTeleported\"\n :close-on-press-escape=\"closeOnPressEscape\"\n @close=\"closeViewer\"\n @switch=\"switchViewer\"\n >\n <div v-if=\"$slots.viewer\">\n <slot name=\"viewer\" />\n </div>\n <template #progress=\"progress\">\n <slot name=\"progress\" v-bind=\"progress\" />\n </template>\n <template #toolbar=\"toolbar\">\n <slot name=\"toolbar\" v-bind=\"toolbar\" />\n </template>\n </image-viewer>\n </template>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport {\n computed,\n nextTick,\n onMounted,\n ref,\n useAttrs as useRawAttrs,\n watch,\n} from 'vue'\nimport { useEventListener, useThrottleFn } from '@vueuse/core'\nimport { fromPairs } from 'lodash-unified'\nimport { useAttrs, useLocale, useNamespace } from '@element-plus/hooks'\nimport ImageViewer from '@element-plus/components/image-viewer'\nimport {\n getScrollContainer,\n isArray,\n isClient,\n isElement,\n isInContainer,\n isString,\n} from '@element-plus/utils'\nimport { imageEmits, imageProps } from './image'\n\nimport type { CSSProperties } from 'vue'\n\ndefineOptions({\n name: 'ElImage',\n inheritAttrs: false,\n})\n\nconst props = defineProps(imageProps)\nconst emit = defineEmits(imageEmits)\n\nconst { t } = useLocale()\nconst ns = useNamespace('image')\nconst rawAttrs = useRawAttrs()\n\nconst containerAttrs = computed(() => {\n return fromPairs(\n Object.entries(rawAttrs).filter(\n ([key]) => /^(data-|on[A-Z])/i.test(key) || ['id', 'style'].includes(key)\n )\n )\n})\n\nconst imgAttrs = useAttrs({\n excludeListeners: true,\n excludeKeys: computed<string[]>(() => {\n return Object.keys(containerAttrs.value)\n }),\n})\n\nconst imageSrc = ref<string | undefined>()\nconst hasLoadError = ref(false)\nconst isLoading = ref(true)\nconst showViewer = ref(false)\nconst container = ref<HTMLElement>()\nconst _scrollContainer = ref<HTMLElement | Window>()\n\nconst supportLoading = isClient && 'loading' in HTMLImageElement.prototype\nlet stopScrollListener: (() => void) | undefined\n\nconst imageKls = computed(() => [\n ns.e('inner'),\n preview.value && ns.e('preview'),\n isLoading.value && ns.is('loading'),\n])\n\nconst imageStyle = computed<CSSProperties>(() => {\n const { fit } = props\n if (isClient && fit) {\n return { objectFit: fit }\n }\n return {}\n})\n\nconst preview = computed(() => {\n const { previewSrcList } = props\n return isArray(previewSrcList) && previewSrcList.length > 0\n})\n\nconst imageIndex = computed(() => {\n const { previewSrcList, initialIndex } = props\n let previewIndex = initialIndex\n if (initialIndex > previewSrcList.length - 1) {\n previewIndex = 0\n }\n return previewIndex\n})\n\nconst isManual = computed(() => {\n if (props.loading === 'eager') return false\n return (!supportLoading && props.loading === 'lazy') || props.lazy\n})\n\nconst loadImage = () => {\n if (!isClient) return\n\n // reset status\n isLoading.value = true\n hasLoadError.value = false\n imageSrc.value = props.src\n}\n\nfunction handleLoad(event: Event) {\n isLoading.value = false\n hasLoadError.value = false\n emit('load', event)\n}\n\nfunction handleError(event: Event) {\n isLoading.value = false\n hasLoadError.value = true\n emit('error', event)\n}\n\nfunction handleLazyLoad() {\n if (isInContainer(container.value, _scrollContainer.value)) {\n loadImage()\n removeLazyLoadListener()\n }\n}\n\nconst lazyLoadHandler = useThrottleFn(handleLazyLoad, 200, true)\n\nasync function addLazyLoadListener() {\n if (!isClient) return\n\n await nextTick()\n\n const { scrollContainer } = props\n if (isElement(scrollContainer)) {\n _scrollContainer.value = scrollContainer\n } else if (isString(scrollContainer) && scrollContainer !== '') {\n _scrollContainer.value =\n document.querySelector<HTMLElement>(scrollContainer) ?? undefined\n } else if (container.value) {\n _scrollContainer.value = getScrollContainer(container.value)\n }\n\n if (_scrollContainer.value) {\n stopScrollListener = useEventListener(\n _scrollContainer,\n 'scroll',\n lazyLoadHandler\n )\n setTimeout(() => handleLazyLoad(), 100)\n }\n}\n\nfunction removeLazyLoadListener() {\n if (!isClient || !_scrollContainer.value || !lazyLoadHandler) return\n\n stopScrollListener?.()\n _scrollContainer.value = undefined\n}\n\nfunction clickHandler() {\n // don't show viewer when preview is false\n if (!preview.value) return\n showViewer.value = true\n emit('show')\n}\n\nfunction closeViewer() {\n showViewer.value = false\n emit('close')\n}\n\nfunction switchViewer(val: number) {\n emit('switch', val)\n}\n\nwatch(\n () => props.src,\n () => {\n if (isManual.value) {\n // reset status\n isLoading.value = true\n hasLoadError.value = false\n removeLazyLoadListener()\n addLazyLoadListener()\n } else {\n loadImage()\n }\n }\n)\n\nonMounted(() => {\n if (isManual.value) {\n addLazyLoadListener()\n } else {\n loadImage()\n }\n})\n\ndefineExpose({\n /** @description manually open preview */\n showPreview: clickHandler,\n})\n</script>\n"],"names":["useRawAttrs","useAttrs","_openBlock","_createElementBlock","_mergeProps","_unref"],"mappings":"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"}
|
1
|
+
{"version":3,"file":"image2.mjs","sources":["../../../../../../packages/components/image/src/image.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n isNumber,\n mutable,\n} from '@element-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type Image from './image.vue'\n\nexport const imageProps = buildProps({\n /**\n * @description when enabling preview, use this flag to control whether clicking on backdrop can exit preview mode.\n */\n hideOnClickModal: Boolean,\n /**\n * @description image source, same as native.\n */\n src: {\n type: String,\n default: '',\n },\n /**\n * @description indicate how the image should be resized to fit its container, same as [object-fit](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit).\n */\n fit: {\n type: String,\n values: ['', 'contain', 'cover', 'fill', 'none', 'scale-down'],\n default: '',\n },\n /**\n * @description Indicates how the browser should load the image, same as [native](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attr-loading)\n */\n loading: {\n type: String,\n values: ['eager', 'lazy'],\n },\n /**\n * @description whether to use lazy load.\n */\n lazy: Boolean,\n /**\n * @description the container to add scroll listener when using lazy load.\n */\n scrollContainer: {\n type: definePropType<string | HTMLElement | undefined>([String, Object]),\n },\n /**\n * @description allow big image preview.\n */\n previewSrcList: {\n type: definePropType<string[]>(Array),\n default: () => mutable([] as const),\n },\n /**\n * @description whether to append image-viewer to body. A nested parent element attribute transform should have this attribute set to `true`.\n */\n previewTeleported: Boolean,\n /**\n * @description set image preview z-index.\n */\n zIndex: {\n type: Number,\n },\n /**\n * @description initial preview image index, less than the length of `url-list`.\n */\n initialIndex: {\n type: Number,\n default: 0,\n },\n /**\n * @description whether the viewer preview is infinite.\n */\n infinite: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether the image-viewer can be closed by pressing ESC.\n */\n closeOnPressEscape: {\n type: Boolean,\n default: true,\n },\n /**\n * @description the zoom rate of the image viewer zoom event\n */\n zoomRate: {\n type: Number,\n default: 1.2,\n },\n /**\n * @description the min scale of the image viewer zoom event.\n */\n minScale: {\n type: Number,\n default: 0.2,\n },\n /**\n * @description the max scale of the image viewer zoom event.\n */\n maxScale: {\n type: Number,\n default: 7,\n },\n /**\n * @description show preview image progress content.\n */\n showProgress: {\n type: Boolean,\n default: false,\n },\n /**\n * @description set HTML attribute: crossorigin.\n */\n crossorigin: {\n type: definePropType<'anonymous' | 'use-credentials' | ''>(String),\n },\n} as const)\nexport type ImageProps = ExtractPropTypes<typeof imageProps>\n\nexport const imageEmits = {\n load: (evt: Event) => evt instanceof Event,\n error: (evt: Event) => evt instanceof Event,\n switch: (val: number) => isNumber(val),\n close: () => true,\n show: () => true,\n}\nexport type ImageEmits = typeof imageEmits\nexport type ImageInstance = InstanceType<typeof Image> & unknown\n"],"names":[],"mappings":";;;;AAMY,MAAC,UAAU,GAAG,UAAU,CAAC;AACrC,EAAE,gBAAgB,EAAE,OAAO;AAC3B,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,CAAC;AAClE,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;AAC7B,GAAG;AACH,EAAE,IAAI,EAAE,OAAO;AACf,EAAE,eAAe,EAAE;AACnB,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,GAAG;AACH,EAAE,cAAc,EAAE;AAClB,IAAI,IAAI,EAAE,cAAc,CAAC,KAAK,CAAC;AAC/B,IAAI,OAAO,EAAE,MAAM,OAAO,CAAC,EAAE,CAAC;AAC9B,GAAG;AACH,EAAE,iBAAiB,EAAE,OAAO;AAC5B,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,GAAG;AACH,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,kBAAkB,EAAE;AACtB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,CAAC,EAAE;AACS,MAAC,UAAU,GAAG;AAC1B,EAAE,IAAI,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,KAAK;AACrC,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,KAAK;AACtC,EAAE,MAAM,EAAE,CAAC,GAAG,KAAK,QAAQ,CAAC,GAAG,CAAC;AAChC,EAAE,KAAK,EAAE,MAAM,IAAI;AACnB,EAAE,IAAI,EAAE,MAAM,IAAI;AAClB;;;;"}
|
package/es/components/index.mjs
CHANGED
@@ -82,21 +82,21 @@ export { ElNotification } from './notification/index.mjs';
|
|
82
82
|
export { ElPopover, ElPopoverDirective } from './popover/index.mjs';
|
83
83
|
export { default as FixedSizeGrid } from './virtual-list/src/components/fixed-size-grid.mjs';
|
84
84
|
export { default as DynamicSizeGrid } from './virtual-list/src/components/dynamic-size-grid.mjs';
|
85
|
-
export { affixEmits, affixProps } from './affix/src/
|
85
|
+
export { affixEmits, affixProps } from './affix/src/affix2.mjs';
|
86
86
|
export { alertEffects, alertEmits, alertProps } from './alert/src/alert.mjs';
|
87
87
|
export { autocompleteEmits, autocompleteProps } from './autocomplete/src/autocomplete.mjs';
|
88
88
|
export { avatarEmits, avatarProps } from './avatar/src/avatar.mjs';
|
89
89
|
export { backtopEmits, backtopProps } from './backtop/src/backtop.mjs';
|
90
90
|
export { badgeProps } from './badge/src/badge2.mjs';
|
91
|
-
export { breadcrumbProps } from './breadcrumb/src/
|
92
|
-
export { breadcrumbItemProps } from './breadcrumb/src/breadcrumb-
|
91
|
+
export { breadcrumbProps } from './breadcrumb/src/breadcrumb.mjs';
|
92
|
+
export { breadcrumbItemProps } from './breadcrumb/src/breadcrumb-item2.mjs';
|
93
93
|
export { breadcrumbKey } from './breadcrumb/src/constants.mjs';
|
94
|
-
export { buttonEmits, buttonNativeTypes, buttonProps, buttonTypes } from './button/src/
|
94
|
+
export { buttonEmits, buttonNativeTypes, buttonProps, buttonTypes } from './button/src/button.mjs';
|
95
95
|
export { buttonGroupContextKey } from './button/src/constants.mjs';
|
96
|
-
export { calendarEmits, calendarProps } from './calendar/src/
|
96
|
+
export { calendarEmits, calendarProps } from './calendar/src/calendar.mjs';
|
97
97
|
export { cardProps } from './card/src/card.mjs';
|
98
|
-
export { carouselEmits, carouselProps } from './carousel/src/
|
99
|
-
export { carouselItemProps } from './carousel/src/carousel-
|
98
|
+
export { carouselEmits, carouselProps } from './carousel/src/carousel.mjs';
|
99
|
+
export { carouselItemProps } from './carousel/src/carousel-item.mjs';
|
100
100
|
export { CAROUSEL_ITEM_NAME, carouselContextKey } from './carousel/src/constants.mjs';
|
101
101
|
export { cascaderEmits, cascaderProps } from './cascader/src/cascader.mjs';
|
102
102
|
export { CASCADER_PANEL_INJECTION_KEY } from './cascader-panel/src/types.mjs';
|
@@ -107,17 +107,17 @@ export { checkboxEmits, checkboxProps } from './checkbox/src/checkbox.mjs';
|
|
107
107
|
export { checkboxGroupContextKey } from './checkbox/src/constants.mjs';
|
108
108
|
export { colProps } from './col/src/col.mjs';
|
109
109
|
export { collapseEmits, collapseProps, emitChangeFn } from './collapse/src/collapse.mjs';
|
110
|
-
export { collapseItemProps } from './collapse/src/collapse-
|
110
|
+
export { collapseItemProps } from './collapse/src/collapse-item2.mjs';
|
111
111
|
export { collapseContextKey } from './collapse/src/constants.mjs';
|
112
|
-
export { colorPickerContextKey, colorPickerEmits, colorPickerProps } from './color-picker/src/color-
|
112
|
+
export { colorPickerContextKey, colorPickerEmits, colorPickerProps } from './color-picker/src/color-picker2.mjs';
|
113
113
|
export { messageConfig } from './config-provider/src/config-provider.mjs';
|
114
114
|
export { configProviderProps } from './config-provider/src/config-provider-props.mjs';
|
115
115
|
export { configProviderContextKey } from './config-provider/src/constants.mjs';
|
116
116
|
export { provideGlobalConfig, useGlobalComponentSettings, useGlobalConfig } from './config-provider/src/hooks/use-global-config.mjs';
|
117
|
-
export { countdownEmits, countdownProps } from './countdown/src/
|
117
|
+
export { countdownEmits, countdownProps } from './countdown/src/countdown2.mjs';
|
118
118
|
export { ROOT_PICKER_INJECTION_KEY } from './date-picker/src/constants.mjs';
|
119
119
|
export { datePickerProps } from './date-picker/src/props/date-picker.mjs';
|
120
|
-
export { descriptionProps } from './descriptions/src/
|
120
|
+
export { descriptionProps } from './descriptions/src/description2.mjs';
|
121
121
|
export { descriptionItemProps } from './descriptions/src/description-item.mjs';
|
122
122
|
export { useDialog } from './dialog/src/use-dialog.mjs';
|
123
123
|
export { dialogEmits, dialogProps } from './dialog/src/dialog.mjs';
|
@@ -128,27 +128,27 @@ export { DROPDOWN_COLLECTION_INJECTION_KEY, DROPDOWN_COLLECTION_ITEM_INJECTION_K
|
|
128
128
|
export { DROPDOWN_INJECTION_KEY } from './dropdown/src/tokens.mjs';
|
129
129
|
export { emptyProps } from './empty/src/empty.mjs';
|
130
130
|
export { formEmits, formMetaProps, formProps } from './form/src/form.mjs';
|
131
|
-
export { formItemProps, formItemValidateStates } from './form/src/form-
|
131
|
+
export { formItemProps, formItemValidateStates } from './form/src/form-item.mjs';
|
132
132
|
export { formContextKey, formItemContextKey } from './form/src/constants.mjs';
|
133
133
|
export { useDisabled, useFormDisabled, useFormSize, useSize } from './form/src/hooks/use-form-common-props.mjs';
|
134
134
|
export { useFormItem, useFormItemInputId } from './form/src/hooks/use-form-item.mjs';
|
135
|
-
export { iconProps } from './icon/src/
|
136
|
-
export { imageEmits, imageProps } from './image/src/
|
135
|
+
export { iconProps } from './icon/src/icon.mjs';
|
136
|
+
export { imageEmits, imageProps } from './image/src/image2.mjs';
|
137
137
|
export { imageViewerEmits, imageViewerProps } from './image-viewer/src/image-viewer.mjs';
|
138
138
|
export { inputEmits, inputProps } from './input/src/input.mjs';
|
139
|
-
export { inputNumberEmits, inputNumberProps } from './input-number/src/input-
|
140
|
-
export { inputTagEmits, inputTagProps } from './input-tag/src/input-
|
141
|
-
export { linkEmits, linkProps } from './link/src/
|
139
|
+
export { inputNumberEmits, inputNumberProps } from './input-number/src/input-number.mjs';
|
140
|
+
export { inputTagEmits, inputTagProps } from './input-tag/src/input-tag2.mjs';
|
141
|
+
export { linkEmits, linkProps } from './link/src/link.mjs';
|
142
142
|
export { menuEmits, menuProps } from './menu/src/menu.mjs';
|
143
143
|
export { menuItemEmits, menuItemProps } from './menu/src/menu-item.mjs';
|
144
|
-
export { menuItemGroupProps } from './menu/src/menu-item-
|
144
|
+
export { menuItemGroupProps } from './menu/src/menu-item-group.mjs';
|
145
145
|
export { subMenuProps } from './menu/src/sub-menu.mjs';
|
146
146
|
export { overlayEmits, overlayProps } from './overlay/src/overlay.mjs';
|
147
147
|
export { pageHeaderEmits, pageHeaderProps } from './page-header/src/page-header.mjs';
|
148
148
|
export { paginationEmits, paginationProps } from './pagination/src/pagination.mjs';
|
149
149
|
export { elPaginationKey } from './pagination/src/constants.mjs';
|
150
150
|
export { popconfirmEmits, popconfirmProps } from './popconfirm/src/popconfirm.mjs';
|
151
|
-
export { Effect, popperProps, roleTypes, usePopperProps } from './popper/src/
|
151
|
+
export { Effect, popperProps, roleTypes, usePopperProps } from './popper/src/popper.mjs';
|
152
152
|
export { popperTriggerProps, usePopperTriggerProps } from './popper/src/trigger.mjs';
|
153
153
|
export { popperContentEmits, popperContentProps, popperCoreConfigProps, usePopperContentEmits, usePopperContentProps, usePopperCoreConfigProps } from './popper/src/content.mjs';
|
154
154
|
export { popperArrowProps, usePopperArrowProps } from './popper/src/arrow.mjs';
|
@@ -156,18 +156,18 @@ export { POPPER_CONTENT_INJECTION_KEY, POPPER_INJECTION_KEY } from './popper/src
|
|
156
156
|
export { default as ElPopperArrow } from './popper/src/arrow2.mjs';
|
157
157
|
export { default as ElPopperTrigger } from './popper/src/trigger2.mjs';
|
158
158
|
export { default as ElPopperContent } from './popper/src/content2.mjs';
|
159
|
-
export { progressProps } from './progress/src/
|
159
|
+
export { progressProps } from './progress/src/progress.mjs';
|
160
160
|
export { radioEmits, radioProps, radioPropsBase } from './radio/src/radio.mjs';
|
161
161
|
export { radioGroupEmits, radioGroupProps } from './radio/src/radio-group.mjs';
|
162
|
-
export { radioButtonProps } from './radio/src/radio-
|
162
|
+
export { radioButtonProps } from './radio/src/radio-button.mjs';
|
163
163
|
export { radioGroupKey } from './radio/src/constants.mjs';
|
164
164
|
export { rateEmits, rateProps } from './rate/src/rate.mjs';
|
165
|
-
export { IconComponentMap, IconMap, resultProps } from './result/src/
|
165
|
+
export { IconComponentMap, IconMap, resultProps } from './result/src/result2.mjs';
|
166
166
|
export { RowAlign, RowJustify, rowProps } from './row/src/row.mjs';
|
167
167
|
export { rowContextKey } from './row/src/constants.mjs';
|
168
168
|
export { BAR_MAP, GAP, renderThumbStyle } from './scrollbar/src/util.mjs';
|
169
169
|
export { scrollbarEmits, scrollbarProps } from './scrollbar/src/scrollbar.mjs';
|
170
|
-
export { thumbProps } from './scrollbar/src/
|
170
|
+
export { thumbProps } from './scrollbar/src/thumb.mjs';
|
171
171
|
export { scrollbarContextKey } from './scrollbar/src/constants.mjs';
|
172
172
|
export { selectGroupKey, selectKey } from './select/src/token.mjs';
|
173
173
|
export { SelectProps, selectEmits } from './select/src/select.mjs';
|
@@ -194,7 +194,7 @@ export { tabBarProps } from './tabs/src/tab-bar.mjs';
|
|
194
194
|
export { tabNavEmits, tabNavProps } from './tabs/src/tab-nav.mjs';
|
195
195
|
export { tabPaneProps } from './tabs/src/tab-pane.mjs';
|
196
196
|
export { tabsRootContextKey } from './tabs/src/constants.mjs';
|
197
|
-
export { tagEmits, tagProps } from './tag/src/
|
197
|
+
export { tagEmits, tagProps } from './tag/src/tag2.mjs';
|
198
198
|
export { textProps } from './text/src/text.mjs';
|
199
199
|
export { buildTimeList, dateEquals, dayOrDaysToDate, extractDateFormat, extractTimeFormat, formatter, makeList, parseDate, rangeArr, valueEquals } from './time-picker/src/utils.mjs';
|
200
200
|
export { DEFAULT_FORMATS_DATE, DEFAULT_FORMATS_DATEPICKER, DEFAULT_FORMATS_TIME, timeUnits } from './time-picker/src/constants.mjs';
|
@@ -205,7 +205,7 @@ export { timeSelectProps } from './time-select/src/time-select.mjs';
|
|
205
205
|
export { timelineItemProps } from './timeline/src/timeline-item.mjs';
|
206
206
|
export { tooltipEmits, useTooltipModelToggle, useTooltipModelToggleEmits, useTooltipModelToggleProps, useTooltipProps } from './tooltip/src/tooltip.mjs';
|
207
207
|
export { useTooltipTriggerProps } from './tooltip/src/trigger.mjs';
|
208
|
-
export { useTooltipContentProps } from './tooltip/src/
|
208
|
+
export { useTooltipContentProps } from './tooltip/src/content2.mjs';
|
209
209
|
export { TOOLTIP_INJECTION_KEY } from './tooltip/src/constants.mjs';
|
210
210
|
export { LEFT_CHECK_CHANGE_EVENT, RIGHT_CHECK_CHANGE_EVENT, transferCheckedChangeFn, transferEmits, transferProps } from './transfer/src/transfer.mjs';
|
211
211
|
export { genFileId, uploadBaseProps, uploadListTypes, uploadProps } from './upload/src/upload.mjs';
|
@@ -216,7 +216,7 @@ export { uploadContextKey } from './upload/src/constants.mjs';
|
|
216
216
|
export { default as FixedSizeList } from './virtual-list/src/components/fixed-size-list.mjs';
|
217
217
|
export { default as DynamicSizeList } from './virtual-list/src/components/dynamic-size-list.mjs';
|
218
218
|
export { virtualizedGridProps, virtualizedListProps, virtualizedProps, virtualizedScrollbarProps } from './virtual-list/src/props.mjs';
|
219
|
-
export { watermarkProps } from './watermark/src/
|
219
|
+
export { watermarkProps } from './watermark/src/watermark.mjs';
|
220
220
|
export { tourEmits, tourProps } from './tour/src/tour.mjs';
|
221
221
|
export { tourStepEmits, tourStepProps } from './tour/src/step.mjs';
|
222
222
|
export { tourContentEmits, tourContentProps, tourPlacements, tourStrategies } from './tour/src/content.mjs';
|
@@ -225,7 +225,7 @@ export { defaultProps, segmentedEmits, segmentedProps } from './segmented/src/se
|
|
225
225
|
export { mentionEmits, mentionProps } from './mention/src/mention.mjs';
|
226
226
|
export { vLoading as ElLoadingDirective, vLoading } from './loading/src/directive.mjs';
|
227
227
|
export { Loading as ElLoadingService } from './loading/src/service.mjs';
|
228
|
-
export { messageDefaults, messageEmits, messageProps, messageTypes } from './message/src/
|
228
|
+
export { messageDefaults, messageEmits, messageProps, messageTypes } from './message/src/message2.mjs';
|
229
229
|
export { notificationEmits, notificationProps, notificationTypes } from './notification/src/notification.mjs';
|
230
|
-
export { popoverEmits, popoverProps } from './popover/src/
|
230
|
+
export { popoverEmits, popoverProps } from './popover/src/popover.mjs';
|
231
231
|
//# sourceMappingURL=index.mjs.map
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import InputNumber from './src/input-
|
2
|
-
export { inputNumberEmits, inputNumberProps } from './src/input-
|
1
|
+
import InputNumber from './src/input-number2.mjs';
|
2
|
+
export { inputNumberEmits, inputNumberProps } from './src/input-number.mjs';
|
3
3
|
import { withInstall } from '../../utils/vue/install.mjs';
|
4
4
|
|
5
5
|
const ElInputNumber = withInstall(InputNumber);
|
@@ -1,354 +1,65 @@
|
|
1
|
-
import { defineComponent, ref, reactive, computed, watch, onMounted, onUpdated, openBlock, createElementBlock, normalizeClass, unref, withModifiers, withDirectives, withKeys, renderSlot, createVNode, withCtx, createBlock, createCommentVNode, createSlots } from 'vue';
|
2
1
|
import { isNil } from 'lodash-unified';
|
3
|
-
import {
|
4
|
-
import {
|
5
|
-
import {
|
6
|
-
import {
|
7
|
-
import
|
8
|
-
import { vRepeatClick } from '../../../directives/repeat-click/index.mjs';
|
9
|
-
import { useLocale } from '../../../hooks/use-locale/index.mjs';
|
10
|
-
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
11
|
-
import { useFormItem } from '../../form/src/hooks/use-form-item.mjs';
|
12
|
-
import { isNumber, isUndefined } from '../../../utils/types.mjs';
|
13
|
-
import { debugWarn, throwError } from '../../../utils/error.mjs';
|
14
|
-
import { useFormSize, useFormDisabled } from '../../form/src/hooks/use-form-common-props.mjs';
|
15
|
-
import { UPDATE_MODEL_EVENT, INPUT_EVENT, CHANGE_EVENT } from '../../../constants/event.mjs';
|
16
|
-
import { isString } from '@vue/shared';
|
17
|
-
import { isFirefox } from '../../../utils/browser.mjs';
|
2
|
+
import { buildProps } from '../../../utils/vue/props/runtime.mjs';
|
3
|
+
import { useSizeProp } from '../../../hooks/use-size/index.mjs';
|
4
|
+
import { isNumber } from '../../../utils/types.mjs';
|
5
|
+
import { useAriaProps } from '../../../hooks/use-aria/index.mjs';
|
6
|
+
import { CHANGE_EVENT, INPUT_EVENT, UPDATE_MODEL_EVENT } from '../../../constants/event.mjs';
|
18
7
|
|
19
|
-
const
|
20
|
-
|
8
|
+
const inputNumberProps = buildProps({
|
9
|
+
id: {
|
10
|
+
type: String,
|
11
|
+
default: void 0
|
12
|
+
},
|
13
|
+
step: {
|
14
|
+
type: Number,
|
15
|
+
default: 1
|
16
|
+
},
|
17
|
+
stepStrictly: Boolean,
|
18
|
+
max: {
|
19
|
+
type: Number,
|
20
|
+
default: Number.POSITIVE_INFINITY
|
21
|
+
},
|
22
|
+
min: {
|
23
|
+
type: Number,
|
24
|
+
default: Number.NEGATIVE_INFINITY
|
25
|
+
},
|
26
|
+
modelValue: Number,
|
27
|
+
readonly: Boolean,
|
28
|
+
disabled: Boolean,
|
29
|
+
size: useSizeProp,
|
30
|
+
controls: {
|
31
|
+
type: Boolean,
|
32
|
+
default: true
|
33
|
+
},
|
34
|
+
controlsPosition: {
|
35
|
+
type: String,
|
36
|
+
default: "",
|
37
|
+
values: ["", "right"]
|
38
|
+
},
|
39
|
+
valueOnClear: {
|
40
|
+
type: [String, Number, null],
|
41
|
+
validator: (val) => val === null || isNumber(val) || ["min", "max"].includes(val),
|
42
|
+
default: null
|
43
|
+
},
|
44
|
+
name: String,
|
45
|
+
placeholder: String,
|
46
|
+
precision: {
|
47
|
+
type: Number,
|
48
|
+
validator: (val) => val >= 0 && val === Number.parseInt(`${val}`, 10)
|
49
|
+
},
|
50
|
+
validateEvent: {
|
51
|
+
type: Boolean,
|
52
|
+
default: true
|
53
|
+
},
|
54
|
+
...useAriaProps(["ariaLabel"])
|
21
55
|
});
|
22
|
-
const
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
const ns = useNamespace("input-number");
|
30
|
-
const input = ref();
|
31
|
-
const data = reactive({
|
32
|
-
currentValue: props.modelValue,
|
33
|
-
userInput: null
|
34
|
-
});
|
35
|
-
const { formItem } = useFormItem();
|
36
|
-
const minDisabled = computed(() => isNumber(props.modelValue) && props.modelValue <= props.min);
|
37
|
-
const maxDisabled = computed(() => isNumber(props.modelValue) && props.modelValue >= props.max);
|
38
|
-
const numPrecision = computed(() => {
|
39
|
-
const stepPrecision = getPrecision(props.step);
|
40
|
-
if (!isUndefined(props.precision)) {
|
41
|
-
if (stepPrecision > props.precision) {
|
42
|
-
debugWarn("InputNumber", "precision should not be less than the decimal places of step");
|
43
|
-
}
|
44
|
-
return props.precision;
|
45
|
-
} else {
|
46
|
-
return Math.max(getPrecision(props.modelValue), stepPrecision);
|
47
|
-
}
|
48
|
-
});
|
49
|
-
const controlsAtRight = computed(() => {
|
50
|
-
return props.controls && props.controlsPosition === "right";
|
51
|
-
});
|
52
|
-
const inputNumberSize = useFormSize();
|
53
|
-
const inputNumberDisabled = useFormDisabled();
|
54
|
-
const displayValue = computed(() => {
|
55
|
-
if (data.userInput !== null) {
|
56
|
-
return data.userInput;
|
57
|
-
}
|
58
|
-
let currentValue = data.currentValue;
|
59
|
-
if (isNil(currentValue))
|
60
|
-
return "";
|
61
|
-
if (isNumber(currentValue)) {
|
62
|
-
if (Number.isNaN(currentValue))
|
63
|
-
return "";
|
64
|
-
if (!isUndefined(props.precision)) {
|
65
|
-
currentValue = currentValue.toFixed(props.precision);
|
66
|
-
}
|
67
|
-
}
|
68
|
-
return currentValue;
|
69
|
-
});
|
70
|
-
const toPrecision = (num, pre) => {
|
71
|
-
if (isUndefined(pre))
|
72
|
-
pre = numPrecision.value;
|
73
|
-
if (pre === 0)
|
74
|
-
return Math.round(num);
|
75
|
-
let snum = String(num);
|
76
|
-
const pointPos = snum.indexOf(".");
|
77
|
-
if (pointPos === -1)
|
78
|
-
return num;
|
79
|
-
const nums = snum.replace(".", "").split("");
|
80
|
-
const datum = nums[pointPos + pre];
|
81
|
-
if (!datum)
|
82
|
-
return num;
|
83
|
-
const length = snum.length;
|
84
|
-
if (snum.charAt(length - 1) === "5") {
|
85
|
-
snum = `${snum.slice(0, Math.max(0, length - 1))}6`;
|
86
|
-
}
|
87
|
-
return Number.parseFloat(Number(snum).toFixed(pre));
|
88
|
-
};
|
89
|
-
const getPrecision = (value) => {
|
90
|
-
if (isNil(value))
|
91
|
-
return 0;
|
92
|
-
const valueString = value.toString();
|
93
|
-
const dotPosition = valueString.indexOf(".");
|
94
|
-
let precision = 0;
|
95
|
-
if (dotPosition !== -1) {
|
96
|
-
precision = valueString.length - dotPosition - 1;
|
97
|
-
}
|
98
|
-
return precision;
|
99
|
-
};
|
100
|
-
const ensurePrecision = (val, coefficient = 1) => {
|
101
|
-
if (!isNumber(val))
|
102
|
-
return data.currentValue;
|
103
|
-
return toPrecision(val + props.step * coefficient);
|
104
|
-
};
|
105
|
-
const increase = () => {
|
106
|
-
if (props.readonly || inputNumberDisabled.value || maxDisabled.value)
|
107
|
-
return;
|
108
|
-
const value = Number(displayValue.value) || 0;
|
109
|
-
const newVal = ensurePrecision(value);
|
110
|
-
setCurrentValue(newVal);
|
111
|
-
emit(INPUT_EVENT, data.currentValue);
|
112
|
-
setCurrentValueToModelValue();
|
113
|
-
};
|
114
|
-
const decrease = () => {
|
115
|
-
if (props.readonly || inputNumberDisabled.value || minDisabled.value)
|
116
|
-
return;
|
117
|
-
const value = Number(displayValue.value) || 0;
|
118
|
-
const newVal = ensurePrecision(value, -1);
|
119
|
-
setCurrentValue(newVal);
|
120
|
-
emit(INPUT_EVENT, data.currentValue);
|
121
|
-
setCurrentValueToModelValue();
|
122
|
-
};
|
123
|
-
const verifyValue = (value, update) => {
|
124
|
-
const { max, min, step, precision, stepStrictly, valueOnClear } = props;
|
125
|
-
if (max < min) {
|
126
|
-
throwError("InputNumber", "min should not be greater than max.");
|
127
|
-
}
|
128
|
-
let newVal = Number(value);
|
129
|
-
if (isNil(value) || Number.isNaN(newVal)) {
|
130
|
-
return null;
|
131
|
-
}
|
132
|
-
if (value === "") {
|
133
|
-
if (valueOnClear === null) {
|
134
|
-
return null;
|
135
|
-
}
|
136
|
-
newVal = isString(valueOnClear) ? { min, max }[valueOnClear] : valueOnClear;
|
137
|
-
}
|
138
|
-
if (stepStrictly) {
|
139
|
-
newVal = toPrecision(Math.round(newVal / step) * step, precision);
|
140
|
-
if (newVal !== value) {
|
141
|
-
update && emit(UPDATE_MODEL_EVENT, newVal);
|
142
|
-
}
|
143
|
-
}
|
144
|
-
if (!isUndefined(precision)) {
|
145
|
-
newVal = toPrecision(newVal, precision);
|
146
|
-
}
|
147
|
-
if (newVal > max || newVal < min) {
|
148
|
-
newVal = newVal > max ? max : min;
|
149
|
-
update && emit(UPDATE_MODEL_EVENT, newVal);
|
150
|
-
}
|
151
|
-
return newVal;
|
152
|
-
};
|
153
|
-
const setCurrentValue = (value, emitChange = true) => {
|
154
|
-
var _a;
|
155
|
-
const oldVal = data.currentValue;
|
156
|
-
const newVal = verifyValue(value);
|
157
|
-
if (!emitChange) {
|
158
|
-
emit(UPDATE_MODEL_EVENT, newVal);
|
159
|
-
return;
|
160
|
-
}
|
161
|
-
if (oldVal === newVal && value)
|
162
|
-
return;
|
163
|
-
data.userInput = null;
|
164
|
-
emit(UPDATE_MODEL_EVENT, newVal);
|
165
|
-
if (oldVal !== newVal) {
|
166
|
-
emit(CHANGE_EVENT, newVal, oldVal);
|
167
|
-
}
|
168
|
-
if (props.validateEvent) {
|
169
|
-
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change").catch((err) => debugWarn(err));
|
170
|
-
}
|
171
|
-
data.currentValue = newVal;
|
172
|
-
};
|
173
|
-
const handleInput = (value) => {
|
174
|
-
data.userInput = value;
|
175
|
-
const newVal = value === "" ? null : Number(value);
|
176
|
-
emit(INPUT_EVENT, newVal);
|
177
|
-
setCurrentValue(newVal, false);
|
178
|
-
};
|
179
|
-
const handleInputChange = (value) => {
|
180
|
-
const newVal = value !== "" ? Number(value) : "";
|
181
|
-
if (isNumber(newVal) && !Number.isNaN(newVal) || value === "") {
|
182
|
-
setCurrentValue(newVal);
|
183
|
-
}
|
184
|
-
setCurrentValueToModelValue();
|
185
|
-
data.userInput = null;
|
186
|
-
};
|
187
|
-
const focus = () => {
|
188
|
-
var _a, _b;
|
189
|
-
(_b = (_a = input.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);
|
190
|
-
};
|
191
|
-
const blur = () => {
|
192
|
-
var _a, _b;
|
193
|
-
(_b = (_a = input.value) == null ? void 0 : _a.blur) == null ? void 0 : _b.call(_a);
|
194
|
-
};
|
195
|
-
const handleFocus = (event) => {
|
196
|
-
emit("focus", event);
|
197
|
-
};
|
198
|
-
const handleBlur = (event) => {
|
199
|
-
var _a, _b;
|
200
|
-
data.userInput = null;
|
201
|
-
if (isFirefox() && data.currentValue === null && ((_a = input.value) == null ? void 0 : _a.input)) {
|
202
|
-
input.value.input.value = "";
|
203
|
-
}
|
204
|
-
emit("blur", event);
|
205
|
-
if (props.validateEvent) {
|
206
|
-
(_b = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _b.call(formItem, "blur").catch((err) => debugWarn(err));
|
207
|
-
}
|
208
|
-
};
|
209
|
-
const setCurrentValueToModelValue = () => {
|
210
|
-
if (data.currentValue !== props.modelValue) {
|
211
|
-
data.currentValue = props.modelValue;
|
212
|
-
}
|
213
|
-
};
|
214
|
-
const handleWheel = (e) => {
|
215
|
-
if (document.activeElement === e.target)
|
216
|
-
e.preventDefault();
|
217
|
-
};
|
218
|
-
watch(() => props.modelValue, (value, oldValue) => {
|
219
|
-
const newValue = verifyValue(value, true);
|
220
|
-
if (data.userInput === null && newValue !== oldValue) {
|
221
|
-
data.currentValue = newValue;
|
222
|
-
}
|
223
|
-
}, { immediate: true });
|
224
|
-
onMounted(() => {
|
225
|
-
var _a;
|
226
|
-
const { min, max, modelValue } = props;
|
227
|
-
const innerInput = (_a = input.value) == null ? void 0 : _a.input;
|
228
|
-
innerInput.setAttribute("role", "spinbutton");
|
229
|
-
if (Number.isFinite(max)) {
|
230
|
-
innerInput.setAttribute("aria-valuemax", String(max));
|
231
|
-
} else {
|
232
|
-
innerInput.removeAttribute("aria-valuemax");
|
233
|
-
}
|
234
|
-
if (Number.isFinite(min)) {
|
235
|
-
innerInput.setAttribute("aria-valuemin", String(min));
|
236
|
-
} else {
|
237
|
-
innerInput.removeAttribute("aria-valuemin");
|
238
|
-
}
|
239
|
-
innerInput.setAttribute("aria-valuenow", data.currentValue || data.currentValue === 0 ? String(data.currentValue) : "");
|
240
|
-
innerInput.setAttribute("aria-disabled", String(inputNumberDisabled.value));
|
241
|
-
if (!isNumber(modelValue) && modelValue != null) {
|
242
|
-
let val = Number(modelValue);
|
243
|
-
if (Number.isNaN(val)) {
|
244
|
-
val = null;
|
245
|
-
}
|
246
|
-
emit(UPDATE_MODEL_EVENT, val);
|
247
|
-
}
|
248
|
-
innerInput.addEventListener("wheel", handleWheel, { passive: false });
|
249
|
-
});
|
250
|
-
onUpdated(() => {
|
251
|
-
var _a, _b;
|
252
|
-
const innerInput = (_a = input.value) == null ? void 0 : _a.input;
|
253
|
-
innerInput == null ? void 0 : innerInput.setAttribute("aria-valuenow", `${(_b = data.currentValue) != null ? _b : ""}`);
|
254
|
-
});
|
255
|
-
expose({
|
256
|
-
focus,
|
257
|
-
blur
|
258
|
-
});
|
259
|
-
return (_ctx, _cache) => {
|
260
|
-
return openBlock(), createElementBlock("div", {
|
261
|
-
class: normalizeClass([
|
262
|
-
unref(ns).b(),
|
263
|
-
unref(ns).m(unref(inputNumberSize)),
|
264
|
-
unref(ns).is("disabled", unref(inputNumberDisabled)),
|
265
|
-
unref(ns).is("without-controls", !_ctx.controls),
|
266
|
-
unref(ns).is("controls-right", unref(controlsAtRight))
|
267
|
-
]),
|
268
|
-
onDragstart: withModifiers(() => {
|
269
|
-
}, ["prevent"])
|
270
|
-
}, [
|
271
|
-
_ctx.controls ? withDirectives((openBlock(), createElementBlock("span", {
|
272
|
-
key: 0,
|
273
|
-
role: "button",
|
274
|
-
"aria-label": unref(t)("el.inputNumber.decrease"),
|
275
|
-
class: normalizeClass([unref(ns).e("decrease"), unref(ns).is("disabled", unref(minDisabled))]),
|
276
|
-
onKeydown: withKeys(decrease, ["enter"])
|
277
|
-
}, [
|
278
|
-
renderSlot(_ctx.$slots, "decrease-icon", {}, () => [
|
279
|
-
createVNode(unref(ElIcon), null, {
|
280
|
-
default: withCtx(() => [
|
281
|
-
unref(controlsAtRight) ? (openBlock(), createBlock(unref(ArrowDown), { key: 0 })) : (openBlock(), createBlock(unref(Minus), { key: 1 }))
|
282
|
-
]),
|
283
|
-
_: 1
|
284
|
-
})
|
285
|
-
])
|
286
|
-
], 42, ["aria-label", "onKeydown"])), [
|
287
|
-
[unref(vRepeatClick), decrease]
|
288
|
-
]) : createCommentVNode("v-if", true),
|
289
|
-
_ctx.controls ? withDirectives((openBlock(), createElementBlock("span", {
|
290
|
-
key: 1,
|
291
|
-
role: "button",
|
292
|
-
"aria-label": unref(t)("el.inputNumber.increase"),
|
293
|
-
class: normalizeClass([unref(ns).e("increase"), unref(ns).is("disabled", unref(maxDisabled))]),
|
294
|
-
onKeydown: withKeys(increase, ["enter"])
|
295
|
-
}, [
|
296
|
-
renderSlot(_ctx.$slots, "increase-icon", {}, () => [
|
297
|
-
createVNode(unref(ElIcon), null, {
|
298
|
-
default: withCtx(() => [
|
299
|
-
unref(controlsAtRight) ? (openBlock(), createBlock(unref(ArrowUp), { key: 0 })) : (openBlock(), createBlock(unref(Plus), { key: 1 }))
|
300
|
-
]),
|
301
|
-
_: 1
|
302
|
-
})
|
303
|
-
])
|
304
|
-
], 42, ["aria-label", "onKeydown"])), [
|
305
|
-
[unref(vRepeatClick), increase]
|
306
|
-
]) : createCommentVNode("v-if", true),
|
307
|
-
createVNode(unref(ElInput), {
|
308
|
-
id: _ctx.id,
|
309
|
-
ref_key: "input",
|
310
|
-
ref: input,
|
311
|
-
type: "number",
|
312
|
-
step: _ctx.step,
|
313
|
-
"model-value": unref(displayValue),
|
314
|
-
placeholder: _ctx.placeholder,
|
315
|
-
readonly: _ctx.readonly,
|
316
|
-
disabled: unref(inputNumberDisabled),
|
317
|
-
size: unref(inputNumberSize),
|
318
|
-
max: _ctx.max,
|
319
|
-
min: _ctx.min,
|
320
|
-
name: _ctx.name,
|
321
|
-
"aria-label": _ctx.ariaLabel,
|
322
|
-
"validate-event": false,
|
323
|
-
onKeydown: [
|
324
|
-
withKeys(withModifiers(increase, ["prevent"]), ["up"]),
|
325
|
-
withKeys(withModifiers(decrease, ["prevent"]), ["down"])
|
326
|
-
],
|
327
|
-
onBlur: handleBlur,
|
328
|
-
onFocus: handleFocus,
|
329
|
-
onInput: handleInput,
|
330
|
-
onChange: handleInputChange
|
331
|
-
}, createSlots({
|
332
|
-
_: 2
|
333
|
-
}, [
|
334
|
-
_ctx.$slots.prefix ? {
|
335
|
-
name: "prefix",
|
336
|
-
fn: withCtx(() => [
|
337
|
-
renderSlot(_ctx.$slots, "prefix")
|
338
|
-
])
|
339
|
-
} : void 0,
|
340
|
-
_ctx.$slots.suffix ? {
|
341
|
-
name: "suffix",
|
342
|
-
fn: withCtx(() => [
|
343
|
-
renderSlot(_ctx.$slots, "suffix")
|
344
|
-
])
|
345
|
-
} : void 0
|
346
|
-
]), 1032, ["id", "step", "model-value", "placeholder", "readonly", "disabled", "size", "max", "min", "name", "aria-label", "onKeydown"])
|
347
|
-
], 42, ["onDragstart"]);
|
348
|
-
};
|
349
|
-
}
|
350
|
-
});
|
351
|
-
var InputNumber = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "input-number.vue"]]);
|
56
|
+
const inputNumberEmits = {
|
57
|
+
[CHANGE_EVENT]: (cur, prev) => prev !== cur,
|
58
|
+
blur: (e) => e instanceof FocusEvent,
|
59
|
+
focus: (e) => e instanceof FocusEvent,
|
60
|
+
[INPUT_EVENT]: (val) => isNumber(val) || isNil(val),
|
61
|
+
[UPDATE_MODEL_EVENT]: (val) => isNumber(val) || isNil(val)
|
62
|
+
};
|
352
63
|
|
353
|
-
export {
|
64
|
+
export { inputNumberEmits, inputNumberProps };
|
354
65
|
//# sourceMappingURL=input-number.mjs.map
|