@element-plus/nightly 0.0.20251027 → 0.0.20251028
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.full.js +34 -10
- package/dist/index.full.min.js +13 -13
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +13 -13
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +34 -10
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar-eg.js +1 -1
- package/dist/locale/ar-eg.min.js +1 -1
- package/dist/locale/ar-eg.min.mjs +1 -1
- package/dist/locale/ar-eg.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/az.js +1 -1
- package/dist/locale/az.min.js +1 -1
- package/dist/locale/az.min.mjs +1 -1
- package/dist/locale/az.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/ckb.js +1 -1
- package/dist/locale/ckb.min.js +1 -1
- package/dist/locale/ckb.min.mjs +1 -1
- package/dist/locale/ckb.mjs +1 -1
- package/dist/locale/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hi.js +1 -1
- package/dist/locale/hi.min.js +1 -1
- package/dist/locale/hi.min.mjs +1 -1
- package/dist/locale/hi.mjs +1 -1
- package/dist/locale/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lo.js +1 -1
- package/dist/locale/lo.min.js +1 -1
- package/dist/locale/lo.min.mjs +1 -1
- package/dist/locale/lo.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/ms.js +1 -1
- package/dist/locale/ms.min.js +1 -1
- package/dist/locale/ms.min.mjs +1 -1
- package/dist/locale/ms.mjs +1 -1
- package/dist/locale/my.js +1 -1
- package/dist/locale/my.min.js +1 -1
- package/dist/locale/my.min.mjs +1 -1
- package/dist/locale/my.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/no.js +1 -1
- package/dist/locale/no.min.js +1 -1
- package/dist/locale/no.min.mjs +1 -1
- package/dist/locale/no.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/sw.js +1 -1
- package/dist/locale/sw.min.js +1 -1
- package/dist/locale/sw.min.mjs +1 -1
- package/dist/locale/sw.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/te.js +1 -1
- package/dist/locale/te.min.js +1 -1
- package/dist/locale/te.min.mjs +1 -1
- package/dist/locale/te.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-hk.js +1 -1
- package/dist/locale/zh-hk.min.js +1 -1
- package/dist/locale/zh-hk.min.mjs +1 -1
- package/dist/locale/zh-hk.mjs +1 -1
- package/dist/locale/zh-mo.js +1 -1
- package/dist/locale/zh-mo.min.js +1 -1
- package/dist/locale/zh-mo.min.mjs +1 -1
- package/dist/locale/zh-mo.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/alert/index.mjs +2 -2
- package/es/components/alert/src/alert.mjs +108 -41
- package/es/components/alert/src/alert.mjs.map +1 -1
- package/es/components/alert/src/alert2.mjs +41 -108
- package/es/components/alert/src/alert2.mjs.map +1 -1
- package/es/components/carousel/index.mjs +2 -2
- package/es/components/carousel/src/carousel.mjs +61 -212
- package/es/components/carousel/src/carousel.mjs.map +1 -1
- package/es/components/carousel/src/carousel2.mjs +212 -61
- package/es/components/carousel/src/carousel2.mjs.map +1 -1
- package/es/components/cascader/index.mjs +2 -2
- package/es/components/cascader/src/cascader.mjs +99 -707
- package/es/components/cascader/src/cascader.mjs.map +1 -1
- package/es/components/cascader/src/cascader2.mjs +707 -99
- package/es/components/cascader/src/cascader2.mjs.map +1 -1
- package/es/components/check-tag/index.mjs +2 -2
- package/es/components/check-tag/src/check-tag.mjs +14 -37
- package/es/components/check-tag/src/check-tag.mjs.map +1 -1
- package/es/components/check-tag/src/check-tag2.mjs +37 -14
- package/es/components/check-tag/src/check-tag2.mjs.map +1 -1
- package/es/components/checkbox/index.mjs +2 -2
- package/es/components/checkbox/src/checkbox-group.mjs +47 -92
- package/es/components/checkbox/src/checkbox-group.mjs.map +1 -1
- package/es/components/checkbox/src/checkbox-group2.mjs +92 -47
- package/es/components/checkbox/src/checkbox-group2.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown.d.ts +8 -2
- package/es/components/dropdown/src/dropdown.mjs +7 -1
- package/es/components/dropdown/src/dropdown.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown.vue.d.ts +15 -3
- package/es/components/index.mjs +14 -14
- package/es/components/input-tag/index.mjs +2 -2
- package/es/components/input-tag/src/input-tag.mjs +83 -272
- package/es/components/input-tag/src/input-tag.mjs.map +1 -1
- package/es/components/input-tag/src/input-tag2.mjs +272 -83
- package/es/components/input-tag/src/input-tag2.mjs.map +1 -1
- package/es/components/pagination/src/components/next.mjs +18 -35
- package/es/components/pagination/src/components/next.mjs.map +1 -1
- package/es/components/pagination/src/components/next2.mjs +35 -18
- package/es/components/pagination/src/components/next2.mjs.map +1 -1
- package/es/components/pagination/src/pagination.mjs +1 -1
- package/es/components/rate/index.mjs +2 -2
- package/es/components/rate/src/rate.mjs +83 -256
- package/es/components/rate/src/rate.mjs.map +1 -1
- package/es/components/rate/src/rate2.mjs +256 -83
- package/es/components/rate/src/rate2.mjs.map +1 -1
- package/es/components/scrollbar/src/bar.mjs +10 -64
- package/es/components/scrollbar/src/bar.mjs.map +1 -1
- package/es/components/scrollbar/src/bar2.mjs +64 -10
- package/es/components/scrollbar/src/bar2.mjs.map +1 -1
- package/es/components/scrollbar/src/scrollbar2.mjs +1 -1
- package/es/components/slider/src/button.mjs +19 -91
- package/es/components/slider/src/button.mjs.map +1 -1
- package/es/components/slider/src/button2.mjs +91 -19
- package/es/components/slider/src/button2.mjs.map +1 -1
- package/es/components/slider/src/slider2.mjs +1 -1
- package/es/components/splitter/index.mjs +2 -2
- package/es/components/splitter/src/splitter.mjs +100 -9
- package/es/components/splitter/src/splitter.mjs.map +1 -1
- package/es/components/splitter/src/splitter2.mjs +9 -100
- package/es/components/splitter/src/splitter2.mjs.map +1 -1
- package/es/components/statistic/index.mjs +2 -2
- package/es/components/statistic/src/statistic.mjs +69 -25
- package/es/components/statistic/src/statistic.mjs.map +1 -1
- package/es/components/statistic/src/statistic2.mjs +25 -69
- package/es/components/statistic/src/statistic2.mjs.map +1 -1
- package/es/components/tabs/index.mjs +1 -1
- package/es/components/tabs/src/tab-bar.mjs +87 -11
- package/es/components/tabs/src/tab-bar.mjs.map +1 -1
- package/es/components/tabs/src/tab-bar2.mjs +11 -87
- package/es/components/tabs/src/tab-bar2.mjs.map +1 -1
- package/es/components/tabs/src/tab-nav.mjs +1 -1
- package/es/components/text/index.mjs +2 -2
- package/es/components/text/src/text.mjs +21 -67
- package/es/components/text/src/text.mjs.map +1 -1
- package/es/components/text/src/text2.mjs +67 -21
- package/es/components/text/src/text2.mjs.map +1 -1
- package/es/components/time-select/index.mjs +2 -2
- package/es/components/time-select/src/time-select.mjs +134 -64
- package/es/components/time-select/src/time-select.mjs.map +1 -1
- package/es/components/time-select/src/time-select2.mjs +64 -134
- package/es/components/time-select/src/time-select2.mjs.map +1 -1
- package/es/components/tour/index.mjs +3 -3
- package/es/components/tour/src/content.mjs +43 -67
- package/es/components/tour/src/content.mjs.map +1 -1
- package/es/components/tour/src/content2.mjs +67 -43
- package/es/components/tour/src/content2.mjs.map +1 -1
- package/es/components/tour/src/step.mjs +1 -1
- package/es/components/tour/src/tour.mjs +154 -69
- package/es/components/tour/src/tour.mjs.map +1 -1
- package/es/components/tour/src/tour2.mjs +69 -154
- package/es/components/tour/src/tour2.mjs.map +1 -1
- package/es/directives/mousewheel/index.d.ts +9 -1
- package/es/directives/mousewheel/index.mjs +19 -1
- package/es/directives/mousewheel/index.mjs.map +1 -1
- package/es/index.d.ts +31 -5
- package/es/index.mjs +14 -14
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/alert/index.js +2 -2
- package/lib/components/alert/src/alert.js +107 -42
- package/lib/components/alert/src/alert.js.map +1 -1
- package/lib/components/alert/src/alert2.js +42 -107
- package/lib/components/alert/src/alert2.js.map +1 -1
- package/lib/components/carousel/index.js +2 -2
- package/lib/components/carousel/src/carousel.js +62 -212
- package/lib/components/carousel/src/carousel.js.map +1 -1
- package/lib/components/carousel/src/carousel2.js +212 -62
- package/lib/components/carousel/src/carousel2.js.map +1 -1
- package/lib/components/cascader/index.js +2 -2
- package/lib/components/cascader/src/cascader.js +99 -706
- package/lib/components/cascader/src/cascader.js.map +1 -1
- package/lib/components/cascader/src/cascader2.js +706 -99
- package/lib/components/cascader/src/cascader2.js.map +1 -1
- package/lib/components/check-tag/index.js +2 -2
- package/lib/components/check-tag/src/check-tag.js +15 -37
- package/lib/components/check-tag/src/check-tag.js.map +1 -1
- package/lib/components/check-tag/src/check-tag2.js +37 -15
- package/lib/components/check-tag/src/check-tag2.js.map +1 -1
- package/lib/components/checkbox/index.js +2 -2
- package/lib/components/checkbox/src/checkbox-group.js +48 -91
- package/lib/components/checkbox/src/checkbox-group.js.map +1 -1
- package/lib/components/checkbox/src/checkbox-group2.js +91 -48
- package/lib/components/checkbox/src/checkbox-group2.js.map +1 -1
- package/lib/components/dropdown/src/dropdown.d.ts +8 -2
- package/lib/components/dropdown/src/dropdown.js +7 -1
- package/lib/components/dropdown/src/dropdown.js.map +1 -1
- package/lib/components/dropdown/src/dropdown.vue.d.ts +15 -3
- package/lib/components/index.js +14 -14
- package/lib/components/input-tag/index.js +2 -2
- package/lib/components/input-tag/src/input-tag.js +82 -270
- package/lib/components/input-tag/src/input-tag.js.map +1 -1
- package/lib/components/input-tag/src/input-tag2.js +270 -82
- package/lib/components/input-tag/src/input-tag2.js.map +1 -1
- package/lib/components/pagination/src/components/next.js +18 -35
- package/lib/components/pagination/src/components/next.js.map +1 -1
- package/lib/components/pagination/src/components/next2.js +35 -18
- package/lib/components/pagination/src/components/next2.js.map +1 -1
- package/lib/components/pagination/src/pagination.js +1 -1
- package/lib/components/rate/index.js +2 -2
- package/lib/components/rate/src/rate.js +83 -255
- package/lib/components/rate/src/rate.js.map +1 -1
- package/lib/components/rate/src/rate2.js +255 -83
- package/lib/components/rate/src/rate2.js.map +1 -1
- package/lib/components/scrollbar/src/bar.js +10 -64
- package/lib/components/scrollbar/src/bar.js.map +1 -1
- package/lib/components/scrollbar/src/bar2.js +64 -10
- package/lib/components/scrollbar/src/bar2.js.map +1 -1
- package/lib/components/scrollbar/src/scrollbar2.js +1 -1
- package/lib/components/slider/src/button.js +20 -91
- package/lib/components/slider/src/button.js.map +1 -1
- package/lib/components/slider/src/button2.js +91 -20
- package/lib/components/slider/src/button2.js.map +1 -1
- package/lib/components/slider/src/slider2.js +1 -1
- package/lib/components/splitter/index.js +2 -2
- package/lib/components/splitter/src/splitter.js +100 -9
- package/lib/components/splitter/src/splitter.js.map +1 -1
- package/lib/components/splitter/src/splitter2.js +9 -100
- package/lib/components/splitter/src/splitter2.js.map +1 -1
- package/lib/components/statistic/index.js +2 -2
- package/lib/components/statistic/src/statistic.js +69 -25
- package/lib/components/statistic/src/statistic.js.map +1 -1
- package/lib/components/statistic/src/statistic2.js +25 -69
- package/lib/components/statistic/src/statistic2.js.map +1 -1
- package/lib/components/tabs/index.js +1 -1
- package/lib/components/tabs/src/tab-bar.js +87 -11
- package/lib/components/tabs/src/tab-bar.js.map +1 -1
- package/lib/components/tabs/src/tab-bar2.js +11 -87
- package/lib/components/tabs/src/tab-bar2.js.map +1 -1
- package/lib/components/tabs/src/tab-nav.js +1 -1
- package/lib/components/text/index.js +2 -2
- package/lib/components/text/src/text.js +21 -67
- package/lib/components/text/src/text.js.map +1 -1
- package/lib/components/text/src/text2.js +67 -21
- package/lib/components/text/src/text2.js.map +1 -1
- package/lib/components/time-select/index.js +2 -2
- package/lib/components/time-select/src/time-select.js +139 -64
- package/lib/components/time-select/src/time-select.js.map +1 -1
- package/lib/components/time-select/src/time-select2.js +64 -139
- package/lib/components/time-select/src/time-select2.js.map +1 -1
- package/lib/components/tour/index.js +3 -3
- package/lib/components/tour/src/content.js +46 -67
- package/lib/components/tour/src/content.js.map +1 -1
- package/lib/components/tour/src/content2.js +67 -46
- package/lib/components/tour/src/content2.js.map +1 -1
- package/lib/components/tour/src/step.js +1 -1
- package/lib/components/tour/src/tour.js +152 -68
- package/lib/components/tour/src/tour.js.map +1 -1
- package/lib/components/tour/src/tour2.js +68 -152
- package/lib/components/tour/src/tour2.js.map +1 -1
- package/lib/directives/mousewheel/index.d.ts +9 -1
- package/lib/directives/mousewheel/index.js +19 -0
- package/lib/directives/mousewheel/index.js.map +1 -1
- package/lib/index.d.ts +31 -5
- package/lib/index.js +14 -14
- 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":"checkbox-group2.mjs","sources":["../../../../../../packages/components/checkbox/src/checkbox-group.
|
|
1
|
+
{"version":3,"file":"checkbox-group2.mjs","sources":["../../../../../../packages/components/checkbox/src/checkbox-group.vue"],"sourcesContent":["<template>\n <component\n :is=\"tag\"\n :id=\"groupId\"\n :class=\"ns.b('group')\"\n role=\"group\"\n :aria-label=\"\n !isLabeledByFormItem ? ariaLabel || 'checkbox-group' : undefined\n \"\n :aria-labelledby=\"isLabeledByFormItem ? formItem?.labelId : undefined\"\n >\n <slot>\n <component\n :is=\"optionComponent\"\n v-for=\"(item, index) in options\"\n :key=\"index\"\n v-bind=\"getOptionProps(item)\"\n />\n </slot>\n </component>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, nextTick, provide, toRefs, watch } from 'vue'\nimport { isEqual, omit, pick } from 'lodash-unified'\nimport { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { debugWarn } from '@element-plus/utils'\nimport { useNamespace } from '@element-plus/hooks'\nimport { useFormItem, useFormItemInputId } from '@element-plus/components/form'\nimport {\n checkboxDefaultProps,\n checkboxGroupEmits,\n checkboxGroupProps,\n} from './checkbox-group'\nimport { checkboxGroupContextKey } from './constants'\nimport ElCheckbox from './checkbox.vue'\nimport ElCheckboxButton from './checkbox-button.vue'\n\nimport type { CheckboxGroupValueType } from './checkbox-group'\n\ndefineOptions({\n name: 'ElCheckboxGroup',\n})\n\nconst props = defineProps(checkboxGroupProps)\nconst emit = defineEmits(checkboxGroupEmits)\nconst ns = useNamespace('checkbox')\n\nconst { formItem } = useFormItem()\nconst { inputId: groupId, isLabeledByFormItem } = useFormItemInputId(props, {\n formItemContext: formItem,\n})\n\nconst changeEvent = async (value: CheckboxGroupValueType) => {\n emit(UPDATE_MODEL_EVENT, value)\n await nextTick()\n emit(CHANGE_EVENT, value)\n}\n\nconst modelValue = computed({\n get() {\n return props.modelValue\n },\n set(val: CheckboxGroupValueType) {\n changeEvent(val)\n },\n})\n\nconst aliasProps = computed(() => ({\n ...checkboxDefaultProps,\n ...props.props,\n}))\nconst getOptionProps = (option: Record<string, any>) => {\n const { label, value, disabled } = aliasProps.value\n const base = {\n label: option[label],\n value: option[value],\n disabled: option[disabled],\n }\n return { ...omit(option, [label, value, disabled]), ...base }\n}\n\nconst optionComponent = computed(() =>\n props.type === 'button' ? ElCheckboxButton : ElCheckbox\n)\n\nprovide(checkboxGroupContextKey, {\n ...pick(toRefs(props), [\n 'size',\n 'min',\n 'max',\n 'disabled',\n 'validateEvent',\n 'fill',\n 'textColor',\n ]),\n modelValue,\n changeEvent,\n})\n\nwatch(\n () => props.modelValue,\n (newVal, oldValue) => {\n if (props.validateEvent && !isEqual(newVal, oldValue)) {\n formItem?.validate('change').catch((err) => debugWarn(err))\n }\n }\n)\n</script>\n"],"names":["ElCheckboxButton","ElCheckbox","_openBlock","_createBlock","_resolveDynamicComponent","_unref","_normalizeClass"],"mappings":"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"}
|
|
@@ -2,7 +2,7 @@ import type { Placement } from '@element-plus/nightly/es/components/popper';
|
|
|
2
2
|
import type { Options } from '@popperjs/core';
|
|
3
3
|
import type { ButtonProps } from '@element-plus/nightly/es/components/button';
|
|
4
4
|
import type { ComponentInternalInstance, ComputedRef } from 'vue';
|
|
5
|
-
import type { Nullable } from '@element-plus/nightly/es/utils';
|
|
5
|
+
import type { Arrayable, Nullable } from '@element-plus/nightly/es/utils';
|
|
6
6
|
export interface IElDropdownInstance {
|
|
7
7
|
instance?: ComponentInternalInstance;
|
|
8
8
|
dropdownSize?: ComputedRef<string>;
|
|
@@ -15,7 +15,13 @@ export interface IElDropdownInstance {
|
|
|
15
15
|
triggerElm?: ComputedRef<Nullable<HTMLButtonElement>>;
|
|
16
16
|
}
|
|
17
17
|
export declare const dropdownProps: {
|
|
18
|
-
readonly trigger:
|
|
18
|
+
readonly trigger: {
|
|
19
|
+
readonly type: import("vue").PropType<Arrayable<"click" | "contextmenu" | "hover">>;
|
|
20
|
+
readonly required: false;
|
|
21
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
22
|
+
readonly __epPropKey: true;
|
|
23
|
+
readonly default: "hover";
|
|
24
|
+
};
|
|
19
25
|
readonly triggerKeys: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => string[], boolean>;
|
|
20
26
|
readonly virtualTriggering: BooleanConstructor;
|
|
21
27
|
readonly virtualRef: {
|
|
@@ -6,7 +6,13 @@ import { useTooltipContentProps } from '../../tooltip/src/content.mjs';
|
|
|
6
6
|
import { iconPropType } from '../../../utils/vue/icon.mjs';
|
|
7
7
|
|
|
8
8
|
const dropdownProps = buildProps({
|
|
9
|
-
trigger:
|
|
9
|
+
trigger: {
|
|
10
|
+
...useTooltipTriggerProps.trigger,
|
|
11
|
+
type: definePropType([
|
|
12
|
+
String,
|
|
13
|
+
Array
|
|
14
|
+
])
|
|
15
|
+
},
|
|
10
16
|
triggerKeys: {
|
|
11
17
|
type: definePropType(Array),
|
|
12
18
|
default: () => [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown.mjs","sources":["../../../../../../packages/components/dropdown/src/dropdown.ts"],"sourcesContent":["import { buildProps, definePropType, iconPropType } from '@element-plus/utils'\nimport { EVENT_CODE } from '@element-plus/constants'\nimport {\n useTooltipContentProps,\n useTooltipTriggerProps,\n} from '@element-plus/components/tooltip'\nimport { roleTypes } from '@element-plus/components/popper'\n\nimport type { Placement } from '@element-plus/components/popper'\nimport type { Options } from '@popperjs/core'\nimport type { ButtonProps, ButtonType } from '@element-plus/components/button'\nimport type { ComponentInternalInstance, ComputedRef } from 'vue'\nimport type { Nullable } from '@element-plus/utils'\n\nexport interface IElDropdownInstance {\n instance?: ComponentInternalInstance\n dropdownSize?: ComputedRef<string>\n handleClick?: () => void\n commandHandler?: (...arg: any[]) => void\n show?: () => void\n hide?: () => void\n trigger?: ComputedRef<string>\n hideOnClick?: ComputedRef<boolean>\n triggerElm?: ComputedRef<Nullable<HTMLButtonElement>>\n}\n\nexport const dropdownProps = buildProps({\n /**\n * @description how to trigger\n */\n trigger: useTooltipTriggerProps.trigger,\n triggerKeys: {\n type: definePropType<string[]>(Array),\n default: () => [\n EVENT_CODE.enter,\n EVENT_CODE.numpadEnter,\n EVENT_CODE.space,\n EVENT_CODE.down,\n ],\n },\n /**\n * @description Indicates whether virtual triggering is enabled\n */\n virtualTriggering: useTooltipTriggerProps.virtualTriggering,\n /**\n * @description Indicates the reference element to which the dropdown is attached\n */\n virtualRef: useTooltipTriggerProps.virtualRef,\n /**\n * @description Tooltip theme, built-in theme: `dark` / `light`\n */\n effect: {\n ...useTooltipContentProps.effect,\n default: 'light',\n },\n /**\n * @description menu button type, refer to `Button` Component, only works when `split-button` is true\n */\n type: {\n type: definePropType<ButtonType>(String),\n },\n /**\n * @description placement of pop menu\n */\n placement: {\n type: definePropType<Placement>(String),\n default: 'bottom',\n },\n /**\n * @description [popper.js](https://popper.js.org/docs/v2/) parameters\n */\n popperOptions: {\n type: definePropType<Partial<Options>>(Object),\n default: () => ({}),\n },\n id: String,\n /**\n * @description menu size, also works on the split button\n */\n size: {\n type: String,\n default: '',\n },\n /**\n * @description whether a button group is displayed\n */\n splitButton: Boolean,\n /**\n * @description whether to hide menu after clicking menu-item\n */\n hideOnClick: {\n type: Boolean,\n default: true,\n },\n loop: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether the tooltip content has an arrow\n */\n showArrow: {\n type: Boolean,\n default: true,\n },\n /**\n * @description delay time before show a dropdown (only works when trigger is `hover`)\n */\n showTimeout: {\n type: Number,\n default: 150,\n },\n /**\n * @description delay time before hide a dropdown (only works when trigger is `hover`)\n */\n hideTimeout: {\n type: Number,\n default: 150,\n },\n /**\n * @description [tabindex](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of Dropdown\n */\n tabindex: {\n type: definePropType<number | string>([Number, String]),\n default: 0,\n },\n /**\n * @description the max height of menu\n */\n maxHeight: {\n type: definePropType<number | string>([Number, String]),\n default: '',\n },\n /**\n * @description custom class name for Dropdown's dropdown\n */\n popperClass: useTooltipContentProps.popperClass,\n /**\n * @description custom style for Dropdown's dropdown\n */\n popperStyle: useTooltipContentProps.popperStyle,\n /**\n * @description whether to disable\n */\n disabled: Boolean,\n /**\n * @description the ARIA role attribute for the dropdown menu. Depending on the use case, you may want to change this to 'navigation'\n */\n role: {\n type: String,\n values: roleTypes,\n default: 'menu',\n },\n buttonProps: {\n type: definePropType<Partial<ButtonProps>>(Object),\n },\n /**\n * @description whether the dropdown popup is teleported to the body\n */\n teleported: useTooltipContentProps.teleported,\n /**\n * @description when dropdown inactive and `persistent` is `false` , dropdown menu will be destroyed\n */\n persistent: {\n type: Boolean,\n default: true,\n },\n} as const)\n\nexport const dropdownItemProps = buildProps({\n /**\n * @description a command to be dispatched to Dropdown's `command` callback\n */\n command: {\n type: [Object, String, Number],\n default: () => ({}),\n },\n /**\n * @description whether the item is disabled\n */\n disabled: Boolean,\n /**\n * @description whether a divider is displayed\n */\n divided: Boolean,\n textValue: String,\n /**\n * @description custom icon\n */\n icon: {\n type: iconPropType,\n },\n} as const)\n\nexport const dropdownMenuProps = buildProps({\n onKeydown: { type: definePropType<(e: KeyboardEvent) => void>(Function) },\n})\n\nexport const FIRST_KEYS = [\n EVENT_CODE.down,\n EVENT_CODE.pageDown,\n EVENT_CODE.home,\n]\n\nexport const LAST_KEYS = [EVENT_CODE.up, EVENT_CODE.pageUp, EVENT_CODE.end]\n\nexport const FIRST_LAST_KEYS = [...FIRST_KEYS, ...LAST_KEYS]\n"],"names":[],"mappings":";;;;;;;AAOY,MAAC,aAAa,GAAG,UAAU,CAAC;AACxC,EAAE,OAAO,EAAE,sBAAsB,CAAC,OAAO;
|
|
1
|
+
{"version":3,"file":"dropdown.mjs","sources":["../../../../../../packages/components/dropdown/src/dropdown.ts"],"sourcesContent":["import { buildProps, definePropType, iconPropType } from '@element-plus/utils'\nimport { EVENT_CODE } from '@element-plus/constants'\nimport {\n useTooltipContentProps,\n useTooltipTriggerProps,\n} from '@element-plus/components/tooltip'\nimport { roleTypes } from '@element-plus/components/popper'\n\nimport type { TooltipTriggerType } from '@element-plus/components/tooltip'\nimport type { Placement } from '@element-plus/components/popper'\nimport type { Options } from '@popperjs/core'\nimport type { ButtonProps, ButtonType } from '@element-plus/components/button'\nimport type { ComponentInternalInstance, ComputedRef } from 'vue'\nimport type { Arrayable, Nullable } from '@element-plus/utils'\n\nexport interface IElDropdownInstance {\n instance?: ComponentInternalInstance\n dropdownSize?: ComputedRef<string>\n handleClick?: () => void\n commandHandler?: (...arg: any[]) => void\n show?: () => void\n hide?: () => void\n trigger?: ComputedRef<string>\n hideOnClick?: ComputedRef<boolean>\n triggerElm?: ComputedRef<Nullable<HTMLButtonElement>>\n}\n\nexport const dropdownProps = buildProps({\n /**\n * @description how to trigger\n */\n trigger: {\n ...useTooltipTriggerProps.trigger,\n type: definePropType<Arrayable<Exclude<TooltipTriggerType, 'focus'>>>([\n String,\n Array,\n ]),\n },\n triggerKeys: {\n type: definePropType<string[]>(Array),\n default: () => [\n EVENT_CODE.enter,\n EVENT_CODE.numpadEnter,\n EVENT_CODE.space,\n EVENT_CODE.down,\n ],\n },\n /**\n * @description Indicates whether virtual triggering is enabled\n */\n virtualTriggering: useTooltipTriggerProps.virtualTriggering,\n /**\n * @description Indicates the reference element to which the dropdown is attached\n */\n virtualRef: useTooltipTriggerProps.virtualRef,\n /**\n * @description Tooltip theme, built-in theme: `dark` / `light`\n */\n effect: {\n ...useTooltipContentProps.effect,\n default: 'light',\n },\n /**\n * @description menu button type, refer to `Button` Component, only works when `split-button` is true\n */\n type: {\n type: definePropType<ButtonType>(String),\n },\n /**\n * @description placement of pop menu\n */\n placement: {\n type: definePropType<Placement>(String),\n default: 'bottom',\n },\n /**\n * @description [popper.js](https://popper.js.org/docs/v2/) parameters\n */\n popperOptions: {\n type: definePropType<Partial<Options>>(Object),\n default: () => ({}),\n },\n id: String,\n /**\n * @description menu size, also works on the split button\n */\n size: {\n type: String,\n default: '',\n },\n /**\n * @description whether a button group is displayed\n */\n splitButton: Boolean,\n /**\n * @description whether to hide menu after clicking menu-item\n */\n hideOnClick: {\n type: Boolean,\n default: true,\n },\n loop: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether the tooltip content has an arrow\n */\n showArrow: {\n type: Boolean,\n default: true,\n },\n /**\n * @description delay time before show a dropdown (only works when trigger is `hover`)\n */\n showTimeout: {\n type: Number,\n default: 150,\n },\n /**\n * @description delay time before hide a dropdown (only works when trigger is `hover`)\n */\n hideTimeout: {\n type: Number,\n default: 150,\n },\n /**\n * @description [tabindex](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of Dropdown\n */\n tabindex: {\n type: definePropType<number | string>([Number, String]),\n default: 0,\n },\n /**\n * @description the max height of menu\n */\n maxHeight: {\n type: definePropType<number | string>([Number, String]),\n default: '',\n },\n /**\n * @description custom class name for Dropdown's dropdown\n */\n popperClass: useTooltipContentProps.popperClass,\n /**\n * @description custom style for Dropdown's dropdown\n */\n popperStyle: useTooltipContentProps.popperStyle,\n /**\n * @description whether to disable\n */\n disabled: Boolean,\n /**\n * @description the ARIA role attribute for the dropdown menu. Depending on the use case, you may want to change this to 'navigation'\n */\n role: {\n type: String,\n values: roleTypes,\n default: 'menu',\n },\n buttonProps: {\n type: definePropType<Partial<ButtonProps>>(Object),\n },\n /**\n * @description whether the dropdown popup is teleported to the body\n */\n teleported: useTooltipContentProps.teleported,\n /**\n * @description when dropdown inactive and `persistent` is `false` , dropdown menu will be destroyed\n */\n persistent: {\n type: Boolean,\n default: true,\n },\n} as const)\n\nexport const dropdownItemProps = buildProps({\n /**\n * @description a command to be dispatched to Dropdown's `command` callback\n */\n command: {\n type: [Object, String, Number],\n default: () => ({}),\n },\n /**\n * @description whether the item is disabled\n */\n disabled: Boolean,\n /**\n * @description whether a divider is displayed\n */\n divided: Boolean,\n textValue: String,\n /**\n * @description custom icon\n */\n icon: {\n type: iconPropType,\n },\n} as const)\n\nexport const dropdownMenuProps = buildProps({\n onKeydown: { type: definePropType<(e: KeyboardEvent) => void>(Function) },\n})\n\nexport const FIRST_KEYS = [\n EVENT_CODE.down,\n EVENT_CODE.pageDown,\n EVENT_CODE.home,\n]\n\nexport const LAST_KEYS = [EVENT_CODE.up, EVENT_CODE.pageUp, EVENT_CODE.end]\n\nexport const FIRST_LAST_KEYS = [...FIRST_KEYS, ...LAST_KEYS]\n"],"names":[],"mappings":";;;;;;;AAOY,MAAC,aAAa,GAAG,UAAU,CAAC;AACxC,EAAE,OAAO,EAAE;AACX,IAAI,GAAG,sBAAsB,CAAC,OAAO;AACrC,IAAI,IAAI,EAAE,cAAc,CAAC;AACzB,MAAM,MAAM;AACZ,MAAM,KAAK;AACX,KAAK,CAAC;AACN,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,cAAc,CAAC,KAAK,CAAC;AAC/B,IAAI,OAAO,EAAE,MAAM;AACnB,MAAM,UAAU,CAAC,KAAK;AACtB,MAAM,UAAU,CAAC,WAAW;AAC5B,MAAM,UAAU,CAAC,KAAK;AACtB,MAAM,UAAU,CAAC,IAAI;AACrB,KAAK;AACL,GAAG;AACH,EAAE,iBAAiB,EAAE,sBAAsB,CAAC,iBAAiB;AAC7D,EAAE,UAAU,EAAE,sBAAsB,CAAC,UAAU;AAC/C,EAAE,MAAM,EAAE;AACV,IAAI,GAAG,sBAAsB,CAAC,MAAM;AACpC,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,IAAI,OAAO,EAAE,QAAQ;AACrB,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,IAAI,OAAO,EAAE,OAAO,EAAE,CAAC;AACvB,GAAG;AACH,EAAE,EAAE,EAAE,MAAM;AACZ,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,WAAW,EAAE,OAAO;AACtB,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,WAAW,EAAE,sBAAsB,CAAC,WAAW;AACjD,EAAE,WAAW,EAAE,sBAAsB,CAAC,WAAW;AACjD,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,SAAS;AACrB,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,UAAU,EAAE,sBAAsB,CAAC,UAAU;AAC/C,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,iBAAiB,GAAG,UAAU,CAAC;AAC5C,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;AAClC,IAAI,OAAO,EAAE,OAAO,EAAE,CAAC;AACvB,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,OAAO,EAAE,OAAO;AAClB,EAAE,SAAS,EAAE,MAAM;AACnB,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,YAAY;AACtB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,iBAAiB,GAAG,UAAU,CAAC;AAC5C,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,cAAc,CAAC,QAAQ,CAAC,EAAE;AAC/C,CAAC,EAAE;AACS,MAAC,UAAU,GAAG;AAC1B,EAAE,UAAU,CAAC,IAAI;AACjB,EAAE,UAAU,CAAC,QAAQ;AACrB,EAAE,UAAU,CAAC,IAAI;AACjB,EAAE;AACU,MAAC,SAAS,GAAG,CAAC,UAAU,CAAC,EAAE,EAAE,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,GAAG,EAAE;AAChE,MAAC,eAAe,GAAG,CAAC,GAAG,UAAU,EAAE,GAAG,SAAS;;;;"}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import type { TooltipInstance } from '@element-plus/nightly/es/components/tooltip';
|
|
2
2
|
import type { CSSProperties } from 'vue';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
|
4
|
-
readonly trigger:
|
|
4
|
+
readonly trigger: {
|
|
5
|
+
readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").Arrayable<"click" | "contextmenu" | "hover">>;
|
|
6
|
+
readonly required: false;
|
|
7
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
8
|
+
readonly __epPropKey: true;
|
|
9
|
+
readonly default: "hover";
|
|
10
|
+
};
|
|
5
11
|
readonly triggerKeys: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => string[], boolean>;
|
|
6
12
|
readonly virtualTriggering: BooleanConstructor;
|
|
7
13
|
readonly virtualRef: {
|
|
@@ -191,7 +197,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
191
197
|
triggeringElementRef: import("vue").Ref<any>;
|
|
192
198
|
referenceElementRef: import("vue").Ref<any>;
|
|
193
199
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "visible-change" | "command")[], "click" | "visible-change" | "command", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
194
|
-
readonly trigger:
|
|
200
|
+
readonly trigger: {
|
|
201
|
+
readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").Arrayable<"click" | "contextmenu" | "hover">>;
|
|
202
|
+
readonly required: false;
|
|
203
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
204
|
+
readonly __epPropKey: true;
|
|
205
|
+
readonly default: "hover";
|
|
206
|
+
};
|
|
195
207
|
readonly triggerKeys: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => string[], boolean>;
|
|
196
208
|
readonly virtualTriggering: BooleanConstructor;
|
|
197
209
|
readonly virtualRef: {
|
|
@@ -355,7 +367,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
355
367
|
readonly placement: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => "left" | "right" | "top" | "bottom" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("element-plus").Placement) | ((new (...args: any[]) => "left" | "right" | "top" | "bottom" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("element-plus").Placement))[], unknown, unknown>;
|
|
356
368
|
readonly effect: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => string) | (() => import("element-plus").PopperEffect) | ((new (...args: any[]) => string) | (() => import("element-plus").PopperEffect))[], unknown, unknown>;
|
|
357
369
|
readonly role: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "dialog" | "menu" | "grid" | "listbox" | "tooltip" | "tree" | "group" | "navigation", unknown>;
|
|
358
|
-
readonly trigger: import("@element-plus/nightly/es/utils").
|
|
370
|
+
readonly trigger: import("@element-plus/nightly/es/utils").Arrayable<"click" | "contextmenu" | "hover">;
|
|
359
371
|
readonly virtualTriggering: boolean;
|
|
360
372
|
readonly loop: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
361
373
|
readonly popperOptions: Partial<import("element-plus").Options>;
|
package/es/components/index.mjs
CHANGED
|
@@ -88,7 +88,7 @@ export { default as DynamicSizeGrid } from './virtual-list/src/components/dynami
|
|
|
88
88
|
export { default as ElLoadingDirective, default as vLoading } from './loading/src/directive.mjs';
|
|
89
89
|
export { default as ElLoadingService } from './loading/src/service.mjs';
|
|
90
90
|
export { affixEmits, affixProps } from './affix/src/affix.mjs';
|
|
91
|
-
export { alertEffects, alertEmits, alertProps } from './alert/src/
|
|
91
|
+
export { alertEffects, alertEmits, alertProps } from './alert/src/alert2.mjs';
|
|
92
92
|
export { autocompleteEmits, autocompleteProps } from './autocomplete/src/autocomplete.mjs';
|
|
93
93
|
export { avatarEmits, avatarProps } from './avatar/src/avatar.mjs';
|
|
94
94
|
export { backtopEmits, backtopProps } from './backtop/src/backtop.mjs';
|
|
@@ -100,14 +100,14 @@ export { buttonEmits, buttonNativeTypes, buttonProps, buttonTypes } from './butt
|
|
|
100
100
|
export { buttonGroupContextKey } from './button/src/constants.mjs';
|
|
101
101
|
export { calendarEmits, calendarProps } from './calendar/src/calendar.mjs';
|
|
102
102
|
export { cardContextKey, cardProps } from './card/src/card.mjs';
|
|
103
|
-
export { carouselEmits, carouselProps } from './carousel/src/
|
|
103
|
+
export { carouselEmits, carouselProps } from './carousel/src/carousel.mjs';
|
|
104
104
|
export { carouselItemProps } from './carousel/src/carousel-item.mjs';
|
|
105
105
|
export { CAROUSEL_ITEM_NAME, carouselContextKey } from './carousel/src/constants.mjs';
|
|
106
|
-
export { cascaderEmits, cascaderProps } from './cascader/src/
|
|
106
|
+
export { cascaderEmits, cascaderProps } from './cascader/src/cascader.mjs';
|
|
107
107
|
export { CASCADER_PANEL_INJECTION_KEY } from './cascader-panel/src/types.mjs';
|
|
108
108
|
export { CommonProps, DefaultProps, cascaderPanelEmits, cascaderPanelProps, useCascaderConfig } from './cascader-panel/src/config.mjs';
|
|
109
|
-
export { checkTagEmits, checkTagProps } from './check-tag/src/check-
|
|
110
|
-
export { checkboxDefaultProps, checkboxGroupEmits, checkboxGroupProps } from './checkbox/src/checkbox-
|
|
109
|
+
export { checkTagEmits, checkTagProps } from './check-tag/src/check-tag.mjs';
|
|
110
|
+
export { checkboxDefaultProps, checkboxGroupEmits, checkboxGroupProps } from './checkbox/src/checkbox-group.mjs';
|
|
111
111
|
export { checkboxEmits, checkboxProps } from './checkbox/src/checkbox.mjs';
|
|
112
112
|
export { checkboxGroupContextKey } from './checkbox/src/constants.mjs';
|
|
113
113
|
export { colProps } from './col/src/col.mjs';
|
|
@@ -144,7 +144,7 @@ export { imageEmits, imageProps } from './image/src/image.mjs';
|
|
|
144
144
|
export { imageViewerEmits, imageViewerProps } from './image-viewer/src/image-viewer.mjs';
|
|
145
145
|
export { inputEmits, inputProps } from './input/src/input.mjs';
|
|
146
146
|
export { inputNumberEmits, inputNumberProps } from './input-number/src/input-number.mjs';
|
|
147
|
-
export { inputTagEmits, inputTagProps } from './input-tag/src/input-
|
|
147
|
+
export { inputTagEmits, inputTagProps } from './input-tag/src/input-tag.mjs';
|
|
148
148
|
export { linkEmits, linkProps } from './link/src/link.mjs';
|
|
149
149
|
export { menuEmits, menuProps } from './menu/src/menu.mjs';
|
|
150
150
|
export { menuItemEmits, menuItemProps } from './menu/src/menu-item.mjs';
|
|
@@ -169,7 +169,7 @@ export { radioEmits, radioProps, radioPropsBase } from './radio/src/radio.mjs';
|
|
|
169
169
|
export { radioDefaultProps, radioGroupEmits, radioGroupProps } from './radio/src/radio-group.mjs';
|
|
170
170
|
export { radioButtonProps } from './radio/src/radio-button.mjs';
|
|
171
171
|
export { radioGroupKey } from './radio/src/constants.mjs';
|
|
172
|
-
export { rateEmits, rateProps } from './rate/src/
|
|
172
|
+
export { rateEmits, rateProps } from './rate/src/rate.mjs';
|
|
173
173
|
export { IconComponentMap, IconMap, resultProps } from './result/src/result.mjs';
|
|
174
174
|
export { RowAlign, RowJustify, rowProps } from './row/src/row.mjs';
|
|
175
175
|
export { rowContextKey } from './row/src/constants.mjs';
|
|
@@ -187,7 +187,7 @@ export { sliderContextKey } from './slider/src/constants.mjs';
|
|
|
187
187
|
export { spaceProps } from './space/src/space.mjs';
|
|
188
188
|
export { spaceItemProps } from './space/src/item.mjs';
|
|
189
189
|
export { useSpace } from './space/src/use-space.mjs';
|
|
190
|
-
export { statisticProps } from './statistic/src/
|
|
190
|
+
export { statisticProps } from './statistic/src/statistic2.mjs';
|
|
191
191
|
export { stepProps } from './steps/src/item.mjs';
|
|
192
192
|
export { stepsEmits, stepsProps } from './steps/src/steps.mjs';
|
|
193
193
|
export { STEPS_INJECTION_KEY } from './steps/src/tokens.mjs';
|
|
@@ -199,18 +199,18 @@ export { autoResizerProps } from './table-v2/src/auto-resizer.mjs';
|
|
|
199
199
|
export { tableV2Props } from './table-v2/src/table.mjs';
|
|
200
200
|
export { tableV2RowProps } from './table-v2/src/row.mjs';
|
|
201
201
|
export { tabsEmits, tabsProps } from './tabs/src/tabs.mjs';
|
|
202
|
-
export { tabBarProps } from './tabs/src/tab-
|
|
202
|
+
export { tabBarProps } from './tabs/src/tab-bar2.mjs';
|
|
203
203
|
export { tabNavEmits, tabNavProps } from './tabs/src/tab-nav.mjs';
|
|
204
204
|
export { tabPaneProps } from './tabs/src/tab-pane.mjs';
|
|
205
205
|
export { tabsRootContextKey } from './tabs/src/constants.mjs';
|
|
206
206
|
export { tagEmits, tagProps } from './tag/src/tag.mjs';
|
|
207
|
-
export { textProps } from './text/src/
|
|
207
|
+
export { textProps } from './text/src/text.mjs';
|
|
208
208
|
export { buildTimeList, dateEquals, dayOrDaysToDate, extractDateFormat, extractTimeFormat, formatter, makeList, parseDate, rangeArr, valueEquals } from './time-picker/src/utils.mjs';
|
|
209
209
|
export { DEFAULT_FORMATS_DATE, DEFAULT_FORMATS_DATEPICKER, DEFAULT_FORMATS_TIME, PICKER_BASE_INJECTION_KEY, PICKER_POPPER_OPTIONS_INJECTION_KEY, ROOT_COMMON_PICKER_INJECTION_KEY, timeUnits } from './time-picker/src/constants.mjs';
|
|
210
210
|
export { timePickerDefaultProps, timePickerRangeTriggerProps, timePickerRngeTriggerProps } from './time-picker/src/common/props.mjs';
|
|
211
211
|
export { default as CommonPicker } from './time-picker/src/common/picker.mjs';
|
|
212
212
|
export { default as TimePickPanel } from './time-picker/src/time-picker-com/panel-time-pick.mjs';
|
|
213
|
-
export { timeSelectProps } from './time-select/src/time-
|
|
213
|
+
export { timeSelectProps } from './time-select/src/time-select2.mjs';
|
|
214
214
|
export { timelineItemProps } from './timeline/src/timeline-item.mjs';
|
|
215
215
|
export { TIMELINE_INJECTION_KEY } from './timeline/src/tokens.mjs';
|
|
216
216
|
export { tooltipEmits, useTooltipModelToggle, useTooltipModelToggleEmits, useTooltipModelToggleProps, useTooltipProps } from './tooltip/src/tooltip.mjs';
|
|
@@ -229,13 +229,13 @@ export { default as FixedSizeList } from './virtual-list/src/components/fixed-si
|
|
|
229
229
|
export { default as DynamicSizeList } from './virtual-list/src/components/dynamic-size-list.mjs';
|
|
230
230
|
export { virtualizedGridProps, virtualizedListProps, virtualizedProps, virtualizedScrollbarProps } from './virtual-list/src/props.mjs';
|
|
231
231
|
export { watermarkProps } from './watermark/src/watermark.mjs';
|
|
232
|
-
export { tourEmits, tourProps } from './tour/src/
|
|
232
|
+
export { tourEmits, tourProps } from './tour/src/tour2.mjs';
|
|
233
233
|
export { tourStepEmits, tourStepProps } from './tour/src/step.mjs';
|
|
234
|
-
export { tourContentEmits, tourContentProps, tourPlacements, tourStrategies } from './tour/src/
|
|
234
|
+
export { tourContentEmits, tourContentProps, tourPlacements, tourStrategies } from './tour/src/content.mjs';
|
|
235
235
|
export { anchorEmits, anchorProps } from './anchor/src/anchor.mjs';
|
|
236
236
|
export { defaultProps, segmentedEmits, segmentedProps } from './segmented/src/segmented.mjs';
|
|
237
237
|
export { mentionDefaultProps, mentionEmits, mentionProps } from './mention/src/mention.mjs';
|
|
238
|
-
export { splitterProps } from './splitter/src/
|
|
238
|
+
export { splitterProps } from './splitter/src/splitter2.mjs';
|
|
239
239
|
export { splitterPanelProps } from './splitter/src/split-panel.mjs';
|
|
240
240
|
export { MESSAGE_DEFAULT_PLACEMENT, messageDefaults, messageEmits, messagePlacement, messageProps, messageTypes } from './message/src/message.mjs';
|
|
241
241
|
export { notificationEmits, notificationProps, notificationTypes } from './notification/src/notification.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import InputTag from './src/input-
|
|
2
|
-
export { inputTagEmits, inputTagProps } from './src/input-
|
|
1
|
+
import InputTag from './src/input-tag2.mjs';
|
|
2
|
+
export { inputTagEmits, inputTagProps } from './src/input-tag.mjs';
|
|
3
3
|
import { withInstall } from '../../utils/vue/install.mjs';
|
|
4
4
|
|
|
5
5
|
const ElInputTag = withInstall(InputTag);
|
|
@@ -1,276 +1,87 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { useDragTag } from './composables/use-drag-tag.mjs';
|
|
11
|
-
import { useInputTagDom } from './composables/use-input-tag-dom.mjs';
|
|
12
|
-
import { useAttrs } from '../../../hooks/use-attrs/index.mjs';
|
|
13
|
-
import { useFormItem, useFormItemInputId } from '../../form/src/hooks/use-form-item.mjs';
|
|
14
|
-
import { ValidateComponentsMap } from '../../../utils/vue/icon.mjs';
|
|
15
|
-
import { NOOP } from '@vue/shared';
|
|
1
|
+
import { tagProps } from '../../tag/src/tag.mjs';
|
|
2
|
+
import { CircleClose } from '@element-plus/icons-vue';
|
|
3
|
+
import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
|
|
4
|
+
import { EVENT_CODE } from '../../../constants/aria.mjs';
|
|
5
|
+
import { useSizeProp } from '../../../hooks/use-size/index.mjs';
|
|
6
|
+
import { iconPropType } from '../../../utils/vue/icon.mjs';
|
|
7
|
+
import { UPDATE_MODEL_EVENT, CHANGE_EVENT, INPUT_EVENT } from '../../../constants/event.mjs';
|
|
8
|
+
import { isArray, isString } from '@vue/shared';
|
|
9
|
+
import { isUndefined, isNumber } from '../../../utils/types.mjs';
|
|
16
10
|
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
11
|
+
const inputTagProps = buildProps({
|
|
12
|
+
modelValue: {
|
|
13
|
+
type: definePropType(Array)
|
|
14
|
+
},
|
|
15
|
+
max: Number,
|
|
16
|
+
tagType: { ...tagProps.type, default: "info" },
|
|
17
|
+
tagEffect: tagProps.effect,
|
|
18
|
+
trigger: {
|
|
19
|
+
type: definePropType(String),
|
|
20
|
+
default: EVENT_CODE.enter
|
|
21
|
+
},
|
|
22
|
+
draggable: Boolean,
|
|
23
|
+
delimiter: {
|
|
24
|
+
type: [String, RegExp],
|
|
25
|
+
default: ""
|
|
26
|
+
},
|
|
27
|
+
size: useSizeProp,
|
|
28
|
+
clearable: Boolean,
|
|
29
|
+
clearIcon: {
|
|
30
|
+
type: iconPropType,
|
|
31
|
+
default: CircleClose
|
|
32
|
+
},
|
|
33
|
+
disabled: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
default: void 0
|
|
36
|
+
},
|
|
37
|
+
validateEvent: {
|
|
38
|
+
type: Boolean,
|
|
39
|
+
default: true
|
|
40
|
+
},
|
|
41
|
+
readonly: Boolean,
|
|
42
|
+
autofocus: Boolean,
|
|
43
|
+
id: {
|
|
44
|
+
type: String,
|
|
45
|
+
default: void 0
|
|
46
|
+
},
|
|
47
|
+
tabindex: {
|
|
48
|
+
type: [String, Number],
|
|
49
|
+
default: 0
|
|
50
|
+
},
|
|
51
|
+
maxlength: {
|
|
52
|
+
type: [String, Number]
|
|
53
|
+
},
|
|
54
|
+
minlength: {
|
|
55
|
+
type: [String, Number]
|
|
56
|
+
},
|
|
57
|
+
placeholder: String,
|
|
58
|
+
autocomplete: {
|
|
59
|
+
type: definePropType(String),
|
|
60
|
+
default: "off"
|
|
61
|
+
},
|
|
62
|
+
saveOnBlur: {
|
|
63
|
+
type: Boolean,
|
|
64
|
+
default: true
|
|
65
|
+
},
|
|
66
|
+
collapseTags: Boolean,
|
|
67
|
+
collapseTagsTooltip: Boolean,
|
|
68
|
+
maxCollapseTags: {
|
|
69
|
+
type: Number,
|
|
70
|
+
default: 1
|
|
71
|
+
},
|
|
72
|
+
ariaLabel: String
|
|
20
73
|
});
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
var _a;
|
|
33
|
-
return (_a = form == null ? void 0 : form.statusIcon) != null ? _a : false;
|
|
34
|
-
});
|
|
35
|
-
const validateState = computed(() => (formItem == null ? void 0 : formItem.validateState) || "");
|
|
36
|
-
const validateIcon = computed(() => {
|
|
37
|
-
return validateState.value && ValidateComponentsMap[validateState.value];
|
|
38
|
-
});
|
|
39
|
-
const {
|
|
40
|
-
inputRef,
|
|
41
|
-
wrapperRef,
|
|
42
|
-
tagTooltipRef,
|
|
43
|
-
isFocused,
|
|
44
|
-
inputValue,
|
|
45
|
-
size,
|
|
46
|
-
tagSize,
|
|
47
|
-
placeholder,
|
|
48
|
-
closable,
|
|
49
|
-
disabled,
|
|
50
|
-
showTagList,
|
|
51
|
-
collapseTagList,
|
|
52
|
-
handleDragged,
|
|
53
|
-
handleInput,
|
|
54
|
-
handleKeydown,
|
|
55
|
-
handleKeyup,
|
|
56
|
-
handleRemoveTag,
|
|
57
|
-
handleClear,
|
|
58
|
-
handleCompositionStart,
|
|
59
|
-
handleCompositionUpdate,
|
|
60
|
-
handleCompositionEnd,
|
|
61
|
-
focus,
|
|
62
|
-
blur
|
|
63
|
-
} = useInputTag({ props, emit, formItem });
|
|
64
|
-
const { hovering, handleMouseEnter, handleMouseLeave } = useHovering();
|
|
65
|
-
const { calculatorRef, inputStyle } = useCalcInputWidth();
|
|
66
|
-
const {
|
|
67
|
-
dropIndicatorRef,
|
|
68
|
-
showDropIndicator,
|
|
69
|
-
handleDragStart,
|
|
70
|
-
handleDragOver,
|
|
71
|
-
handleDragEnd
|
|
72
|
-
} = useDragTag({ wrapperRef, handleDragged, afterDragged: focus });
|
|
73
|
-
const {
|
|
74
|
-
ns,
|
|
75
|
-
nsInput,
|
|
76
|
-
containerKls,
|
|
77
|
-
containerStyle,
|
|
78
|
-
innerKls,
|
|
79
|
-
showClear,
|
|
80
|
-
showSuffix
|
|
81
|
-
} = useInputTagDom({
|
|
82
|
-
props,
|
|
83
|
-
hovering,
|
|
84
|
-
isFocused,
|
|
85
|
-
inputValue,
|
|
86
|
-
disabled,
|
|
87
|
-
size,
|
|
88
|
-
validateState,
|
|
89
|
-
validateIcon,
|
|
90
|
-
needStatusIcon
|
|
91
|
-
});
|
|
92
|
-
expose({
|
|
93
|
-
focus,
|
|
94
|
-
blur
|
|
95
|
-
});
|
|
96
|
-
return (_ctx, _cache) => {
|
|
97
|
-
return openBlock(), createElementBlock("div", {
|
|
98
|
-
ref_key: "wrapperRef",
|
|
99
|
-
ref: wrapperRef,
|
|
100
|
-
class: normalizeClass(unref(containerKls)),
|
|
101
|
-
style: normalizeStyle(unref(containerStyle)),
|
|
102
|
-
onMouseenter: unref(handleMouseEnter),
|
|
103
|
-
onMouseleave: unref(handleMouseLeave)
|
|
104
|
-
}, [
|
|
105
|
-
unref(slots).prefix ? (openBlock(), createElementBlock("div", {
|
|
106
|
-
key: 0,
|
|
107
|
-
class: normalizeClass(unref(ns).e("prefix"))
|
|
108
|
-
}, [
|
|
109
|
-
renderSlot(_ctx.$slots, "prefix")
|
|
110
|
-
], 2)) : createCommentVNode("v-if", true),
|
|
111
|
-
createElementVNode("div", {
|
|
112
|
-
class: normalizeClass(unref(innerKls))
|
|
113
|
-
}, [
|
|
114
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(showTagList), (item, index) => {
|
|
115
|
-
return openBlock(), createBlock(unref(ElTag), {
|
|
116
|
-
key: index,
|
|
117
|
-
size: unref(tagSize),
|
|
118
|
-
closable: unref(closable),
|
|
119
|
-
type: _ctx.tagType,
|
|
120
|
-
effect: _ctx.tagEffect,
|
|
121
|
-
draggable: unref(closable) && _ctx.draggable,
|
|
122
|
-
"disable-transitions": "",
|
|
123
|
-
onClose: ($event) => unref(handleRemoveTag)(index),
|
|
124
|
-
onDragstart: (event) => unref(handleDragStart)(event, index),
|
|
125
|
-
onDragover: (event) => unref(handleDragOver)(event, index),
|
|
126
|
-
onDragend: unref(handleDragEnd),
|
|
127
|
-
onDrop: withModifiers(() => {
|
|
128
|
-
}, ["stop"])
|
|
129
|
-
}, {
|
|
130
|
-
default: withCtx(() => [
|
|
131
|
-
renderSlot(_ctx.$slots, "tag", {
|
|
132
|
-
value: item,
|
|
133
|
-
index
|
|
134
|
-
}, () => [
|
|
135
|
-
createTextVNode(toDisplayString(item), 1)
|
|
136
|
-
])
|
|
137
|
-
]),
|
|
138
|
-
_: 2
|
|
139
|
-
}, 1032, ["size", "closable", "type", "effect", "draggable", "onClose", "onDragstart", "onDragover", "onDragend", "onDrop"]);
|
|
140
|
-
}), 128)),
|
|
141
|
-
_ctx.collapseTags && _ctx.modelValue && _ctx.modelValue.length > _ctx.maxCollapseTags ? (openBlock(), createBlock(unref(ElTooltip), {
|
|
142
|
-
key: 0,
|
|
143
|
-
ref_key: "tagTooltipRef",
|
|
144
|
-
ref: tagTooltipRef,
|
|
145
|
-
disabled: !_ctx.collapseTagsTooltip,
|
|
146
|
-
"fallback-placements": ["bottom", "top", "right", "left"],
|
|
147
|
-
effect: _ctx.tagEffect,
|
|
148
|
-
placement: "bottom"
|
|
149
|
-
}, {
|
|
150
|
-
default: withCtx(() => [
|
|
151
|
-
createVNode(unref(ElTag), {
|
|
152
|
-
closable: false,
|
|
153
|
-
size: unref(tagSize),
|
|
154
|
-
type: _ctx.tagType,
|
|
155
|
-
effect: _ctx.tagEffect,
|
|
156
|
-
"disable-transitions": ""
|
|
157
|
-
}, {
|
|
158
|
-
default: withCtx(() => [
|
|
159
|
-
createTextVNode(" + " + toDisplayString(_ctx.modelValue.length - _ctx.maxCollapseTags), 1)
|
|
160
|
-
]),
|
|
161
|
-
_: 1
|
|
162
|
-
}, 8, ["size", "type", "effect"])
|
|
163
|
-
]),
|
|
164
|
-
content: withCtx(() => [
|
|
165
|
-
createElementVNode("div", {
|
|
166
|
-
class: normalizeClass(unref(ns).e("input-tag-list"))
|
|
167
|
-
}, [
|
|
168
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(collapseTagList), (item, index) => {
|
|
169
|
-
return openBlock(), createBlock(unref(ElTag), {
|
|
170
|
-
key: index,
|
|
171
|
-
size: unref(tagSize),
|
|
172
|
-
closable: unref(closable),
|
|
173
|
-
type: _ctx.tagType,
|
|
174
|
-
effect: _ctx.tagEffect,
|
|
175
|
-
"disable-transitions": "",
|
|
176
|
-
onClose: ($event) => unref(handleRemoveTag)(index + _ctx.maxCollapseTags)
|
|
177
|
-
}, {
|
|
178
|
-
default: withCtx(() => [
|
|
179
|
-
renderSlot(_ctx.$slots, "tag", {
|
|
180
|
-
value: item,
|
|
181
|
-
index: index + _ctx.maxCollapseTags
|
|
182
|
-
}, () => [
|
|
183
|
-
createTextVNode(toDisplayString(item), 1)
|
|
184
|
-
])
|
|
185
|
-
]),
|
|
186
|
-
_: 2
|
|
187
|
-
}, 1032, ["size", "closable", "type", "effect", "onClose"]);
|
|
188
|
-
}), 128))
|
|
189
|
-
], 2)
|
|
190
|
-
]),
|
|
191
|
-
_: 3
|
|
192
|
-
}, 8, ["disabled", "effect"])) : createCommentVNode("v-if", true),
|
|
193
|
-
createElementVNode("div", {
|
|
194
|
-
class: normalizeClass(unref(ns).e("input-wrapper"))
|
|
195
|
-
}, [
|
|
196
|
-
withDirectives(createElementVNode("input", mergeProps({
|
|
197
|
-
id: unref(inputId),
|
|
198
|
-
ref_key: "inputRef",
|
|
199
|
-
ref: inputRef,
|
|
200
|
-
"onUpdate:modelValue": ($event) => isRef(inputValue) ? inputValue.value = $event : null
|
|
201
|
-
}, unref(attrs), {
|
|
202
|
-
type: "text",
|
|
203
|
-
minlength: _ctx.minlength,
|
|
204
|
-
maxlength: _ctx.maxlength,
|
|
205
|
-
disabled: unref(disabled),
|
|
206
|
-
readonly: _ctx.readonly,
|
|
207
|
-
autocomplete: _ctx.autocomplete,
|
|
208
|
-
tabindex: _ctx.tabindex,
|
|
209
|
-
placeholder: unref(placeholder),
|
|
210
|
-
autofocus: _ctx.autofocus,
|
|
211
|
-
ariaLabel: _ctx.ariaLabel,
|
|
212
|
-
class: unref(ns).e("input"),
|
|
213
|
-
style: unref(inputStyle),
|
|
214
|
-
onCompositionstart: unref(handleCompositionStart),
|
|
215
|
-
onCompositionupdate: unref(handleCompositionUpdate),
|
|
216
|
-
onCompositionend: unref(handleCompositionEnd),
|
|
217
|
-
onInput: unref(handleInput),
|
|
218
|
-
onKeydown: unref(handleKeydown),
|
|
219
|
-
onKeyup: unref(handleKeyup)
|
|
220
|
-
}), null, 16, ["id", "onUpdate:modelValue", "minlength", "maxlength", "disabled", "readonly", "autocomplete", "tabindex", "placeholder", "autofocus", "ariaLabel", "onCompositionstart", "onCompositionupdate", "onCompositionend", "onInput", "onKeydown", "onKeyup"]), [
|
|
221
|
-
[vModelText, unref(inputValue)]
|
|
222
|
-
]),
|
|
223
|
-
createElementVNode("span", {
|
|
224
|
-
ref_key: "calculatorRef",
|
|
225
|
-
ref: calculatorRef,
|
|
226
|
-
"aria-hidden": "true",
|
|
227
|
-
class: normalizeClass(unref(ns).e("input-calculator")),
|
|
228
|
-
textContent: toDisplayString(unref(inputValue))
|
|
229
|
-
}, null, 10, ["textContent"])
|
|
230
|
-
], 2),
|
|
231
|
-
withDirectives(createElementVNode("div", {
|
|
232
|
-
ref_key: "dropIndicatorRef",
|
|
233
|
-
ref: dropIndicatorRef,
|
|
234
|
-
class: normalizeClass(unref(ns).e("drop-indicator"))
|
|
235
|
-
}, null, 2), [
|
|
236
|
-
[vShow, unref(showDropIndicator)]
|
|
237
|
-
])
|
|
238
|
-
], 2),
|
|
239
|
-
unref(showSuffix) ? (openBlock(), createElementBlock("div", {
|
|
240
|
-
key: 1,
|
|
241
|
-
class: normalizeClass(unref(ns).e("suffix"))
|
|
242
|
-
}, [
|
|
243
|
-
renderSlot(_ctx.$slots, "suffix"),
|
|
244
|
-
unref(showClear) ? (openBlock(), createBlock(unref(ElIcon), {
|
|
245
|
-
key: 0,
|
|
246
|
-
class: normalizeClass([unref(ns).e("icon"), unref(ns).e("clear")]),
|
|
247
|
-
onMousedown: withModifiers(unref(NOOP), ["prevent"]),
|
|
248
|
-
onClick: unref(handleClear)
|
|
249
|
-
}, {
|
|
250
|
-
default: withCtx(() => [
|
|
251
|
-
(openBlock(), createBlock(resolveDynamicComponent(_ctx.clearIcon)))
|
|
252
|
-
]),
|
|
253
|
-
_: 1
|
|
254
|
-
}, 8, ["class", "onMousedown", "onClick"])) : createCommentVNode("v-if", true),
|
|
255
|
-
unref(validateState) && unref(validateIcon) && unref(needStatusIcon) ? (openBlock(), createBlock(unref(ElIcon), {
|
|
256
|
-
key: 1,
|
|
257
|
-
class: normalizeClass([
|
|
258
|
-
unref(nsInput).e("icon"),
|
|
259
|
-
unref(nsInput).e("validateIcon"),
|
|
260
|
-
unref(nsInput).is("loading", unref(validateState) === "validating")
|
|
261
|
-
])
|
|
262
|
-
}, {
|
|
263
|
-
default: withCtx(() => [
|
|
264
|
-
(openBlock(), createBlock(resolveDynamicComponent(unref(validateIcon))))
|
|
265
|
-
]),
|
|
266
|
-
_: 1
|
|
267
|
-
}, 8, ["class"])) : createCommentVNode("v-if", true)
|
|
268
|
-
], 2)) : createCommentVNode("v-if", true)
|
|
269
|
-
], 46, ["onMouseenter", "onMouseleave"]);
|
|
270
|
-
};
|
|
271
|
-
}
|
|
272
|
-
});
|
|
273
|
-
var InputTag = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "input-tag.vue"]]);
|
|
74
|
+
const inputTagEmits = {
|
|
75
|
+
[UPDATE_MODEL_EVENT]: (value) => isArray(value) || isUndefined(value),
|
|
76
|
+
[CHANGE_EVENT]: (value) => isArray(value) || isUndefined(value),
|
|
77
|
+
[INPUT_EVENT]: (value) => isString(value),
|
|
78
|
+
"add-tag": (value) => isString(value) || isArray(value),
|
|
79
|
+
"remove-tag": (value, index) => isString(value) && isNumber(index),
|
|
80
|
+
"drag-tag": (oldIndex, newIndex, value) => isNumber(oldIndex) && isNumber(newIndex) && isString(value),
|
|
81
|
+
focus: (evt) => evt instanceof FocusEvent,
|
|
82
|
+
blur: (evt) => evt instanceof FocusEvent,
|
|
83
|
+
clear: () => true
|
|
84
|
+
};
|
|
274
85
|
|
|
275
|
-
export {
|
|
86
|
+
export { inputTagEmits, inputTagProps };
|
|
276
87
|
//# sourceMappingURL=input-tag.mjs.map
|