@element-plus/nightly 0.0.20251217 → 0.0.20251219
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/README.md +6 -2
- package/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/dist/index.full.js +8 -13
- package/dist/index.full.min.js +11 -11
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +11 -11
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +8 -13
- 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 +29 -153
- package/es/components/affix/src/affix.mjs.map +1 -1
- package/es/components/affix/src/affix2.mjs +153 -29
- package/es/components/affix/src/affix2.mjs.map +1 -1
- package/es/components/autocomplete/index.mjs +2 -2
- package/es/components/autocomplete/src/autocomplete.mjs +486 -60
- package/es/components/autocomplete/src/autocomplete.mjs.map +1 -1
- package/es/components/autocomplete/src/autocomplete2.mjs +60 -486
- package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
- package/es/components/backtop/index.mjs +2 -2
- package/es/components/backtop/src/backtop.mjs +61 -20
- package/es/components/backtop/src/backtop.mjs.map +1 -1
- package/es/components/backtop/src/backtop2.mjs +20 -61
- package/es/components/backtop/src/backtop2.mjs.map +1 -1
- package/es/components/badge/index.mjs +2 -2
- package/es/components/badge/src/badge.mjs +31 -83
- package/es/components/badge/src/badge.mjs.map +1 -1
- package/es/components/badge/src/badge2.mjs +83 -31
- package/es/components/badge/src/badge2.mjs.map +1 -1
- package/es/components/calendar/index.mjs +2 -2
- package/es/components/calendar/src/calendar.mjs +15 -180
- package/es/components/calendar/src/calendar.mjs.map +1 -1
- package/es/components/calendar/src/calendar2.mjs +180 -15
- package/es/components/calendar/src/calendar2.mjs.map +1 -1
- package/es/components/check-tag/index.mjs +2 -2
- package/es/components/check-tag/src/check-tag.mjs +14 -43
- package/es/components/check-tag/src/check-tag.mjs.map +1 -1
- package/es/components/check-tag/src/check-tag2.mjs +43 -14
- package/es/components/check-tag/src/check-tag2.mjs.map +1 -1
- package/es/components/date-picker-panel/src/date-picker-com/panel-date-range.mjs +1 -6
- package/es/components/date-picker-panel/src/date-picker-com/panel-date-range.mjs.map +1 -1
- package/es/components/descriptions/index.mjs +2 -2
- package/es/components/descriptions/src/description.mjs +24 -169
- package/es/components/descriptions/src/description.mjs.map +1 -1
- package/es/components/descriptions/src/description2.mjs +169 -24
- package/es/components/descriptions/src/description2.mjs.map +1 -1
- package/es/components/descriptions/src/descriptions-row.mjs +6 -94
- package/es/components/descriptions/src/descriptions-row.mjs.map +1 -1
- package/es/components/descriptions/src/descriptions-row2.mjs +94 -6
- package/es/components/descriptions/src/descriptions-row2.mjs.map +1 -1
- package/es/components/dialog/src/dialog-content.mjs +38 -112
- package/es/components/dialog/src/dialog-content.mjs.map +1 -1
- package/es/components/dialog/src/dialog-content2.mjs +112 -38
- package/es/components/dialog/src/dialog-content2.mjs.map +1 -1
- package/es/components/dialog/src/dialog.mjs +1 -1
- package/es/components/dialog/src/dialog2.mjs +1 -1
- package/es/components/form/index.mjs +2 -2
- package/es/components/form/src/form.mjs +54 -174
- package/es/components/form/src/form.mjs.map +1 -1
- package/es/components/form/src/form2.mjs +174 -54
- package/es/components/form/src/form2.mjs.map +1 -1
- package/es/components/index.mjs +19 -19
- package/es/components/input/index.mjs +2 -2
- package/es/components/input/src/input.mjs +586 -124
- package/es/components/input/src/input.mjs.map +1 -1
- package/es/components/input/src/input2.mjs +124 -586
- package/es/components/input/src/input2.mjs.map +1 -1
- package/es/components/mention/src/mention.mjs +1 -1
- package/es/components/mention/src/mention2.mjs +1 -1
- package/es/components/menu/index.mjs +2 -2
- package/es/components/menu/src/menu-item-group.mjs +4 -51
- package/es/components/menu/src/menu-item-group.mjs.map +1 -1
- package/es/components/menu/src/menu-item-group2.mjs +51 -4
- package/es/components/menu/src/menu-item-group2.mjs.map +1 -1
- package/es/components/pagination/src/components/jumper.mjs +7 -69
- package/es/components/pagination/src/components/jumper.mjs.map +1 -1
- package/es/components/pagination/src/components/jumper2.mjs +69 -7
- package/es/components/pagination/src/components/jumper2.mjs.map +1 -1
- package/es/components/pagination/src/pagination.mjs +1 -1
- package/es/components/popover/index.mjs +2 -2
- package/es/components/popover/src/popover.mjs +65 -120
- package/es/components/popover/src/popover.mjs.map +1 -1
- package/es/components/popover/src/popover2.mjs +120 -65
- package/es/components/popover/src/popover2.mjs.map +1 -1
- package/es/components/rate/index.mjs +2 -2
- package/es/components/rate/src/rate.mjs +295 -85
- package/es/components/rate/src/rate.mjs.map +1 -1
- package/es/components/rate/src/rate2.mjs +85 -295
- package/es/components/rate/src/rate2.mjs.map +1 -1
- package/es/components/row/index.mjs +2 -2
- package/es/components/row/src/row.mjs +27 -43
- package/es/components/row/src/row.mjs.map +1 -1
- package/es/components/row/src/row2.mjs +43 -27
- package/es/components/row/src/row2.mjs.map +1 -1
- package/es/components/skeleton/index.mjs +2 -2
- package/es/components/skeleton/src/skeleton-item.mjs +27 -17
- package/es/components/skeleton/src/skeleton-item.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton-item2.mjs +17 -27
- package/es/components/skeleton/src/skeleton-item2.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton2.mjs +1 -1
- package/es/components/steps/index.mjs +2 -2
- package/es/components/steps/src/item.mjs +18 -257
- package/es/components/steps/src/item.mjs.map +1 -1
- package/es/components/steps/src/item2.mjs +257 -18
- package/es/components/steps/src/item2.mjs.map +1 -1
- package/es/components/tabs/src/tab-nav.mjs +4 -1
- package/es/components/tabs/src/tab-nav.mjs.map +1 -1
- package/es/components/text/index.mjs +2 -2
- package/es/components/text/src/text.mjs +20 -66
- package/es/components/text/src/text.mjs.map +1 -1
- package/es/components/text/src/text2.mjs +66 -20
- 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 +66 -138
- package/es/components/time-select/src/time-select.mjs.map +1 -1
- package/es/components/time-select/src/time-select2.mjs +138 -66
- package/es/components/time-select/src/time-select2.mjs.map +1 -1
- package/es/components/tour/index.mjs +2 -2
- package/es/components/tour/src/mask.mjs +82 -17
- package/es/components/tour/src/mask.mjs.map +1 -1
- package/es/components/tour/src/mask2.mjs +17 -82
- package/es/components/tour/src/mask2.mjs.map +1 -1
- package/es/components/tour/src/step.mjs +43 -255
- package/es/components/tour/src/step.mjs.map +1 -1
- package/es/components/tour/src/step2.mjs +255 -43
- package/es/components/tour/src/step2.mjs.map +1 -1
- package/es/components/tour/src/tour2.mjs +1 -1
- package/es/components/tree/src/model/useKeydown.mjs +2 -4
- package/es/components/tree/src/model/useKeydown.mjs.map +1 -1
- package/es/components/upload/index.mjs +1 -1
- package/es/components/upload/src/upload-list.mjs +206 -27
- package/es/components/upload/src/upload-list.mjs.map +1 -1
- package/es/components/upload/src/upload-list2.mjs +27 -206
- package/es/components/upload/src/upload-list2.mjs.map +1 -1
- package/es/components/upload/src/upload2.mjs +1 -1
- package/es/directives/mousewheel/index.d.ts +2 -2
- package/es/directives/mousewheel/index.mjs.map +1 -1
- package/es/index.mjs +19 -19
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/affix/index.js +2 -2
- package/lib/components/affix/src/affix.js +30 -153
- package/lib/components/affix/src/affix.js.map +1 -1
- package/lib/components/affix/src/affix2.js +153 -30
- package/lib/components/affix/src/affix2.js.map +1 -1
- package/lib/components/autocomplete/index.js +2 -2
- package/lib/components/autocomplete/src/autocomplete.js +484 -59
- package/lib/components/autocomplete/src/autocomplete.js.map +1 -1
- package/lib/components/autocomplete/src/autocomplete2.js +59 -484
- package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
- package/lib/components/backtop/index.js +2 -2
- package/lib/components/backtop/src/backtop.js +61 -21
- package/lib/components/backtop/src/backtop.js.map +1 -1
- package/lib/components/backtop/src/backtop2.js +21 -61
- package/lib/components/backtop/src/backtop2.js.map +1 -1
- package/lib/components/badge/index.js +2 -2
- package/lib/components/badge/src/badge.js +31 -83
- package/lib/components/badge/src/badge.js.map +1 -1
- package/lib/components/badge/src/badge2.js +83 -31
- package/lib/components/badge/src/badge2.js.map +1 -1
- package/lib/components/calendar/index.js +2 -2
- package/lib/components/calendar/src/calendar.js +16 -180
- package/lib/components/calendar/src/calendar.js.map +1 -1
- package/lib/components/calendar/src/calendar2.js +180 -16
- package/lib/components/calendar/src/calendar2.js.map +1 -1
- package/lib/components/check-tag/index.js +2 -2
- package/lib/components/check-tag/src/check-tag.js +15 -43
- package/lib/components/check-tag/src/check-tag.js.map +1 -1
- package/lib/components/check-tag/src/check-tag2.js +43 -15
- package/lib/components/check-tag/src/check-tag2.js.map +1 -1
- package/lib/components/date-picker-panel/src/date-picker-com/panel-date-range.js +1 -6
- package/lib/components/date-picker-panel/src/date-picker-com/panel-date-range.js.map +1 -1
- package/lib/components/descriptions/index.js +2 -2
- package/lib/components/descriptions/src/description.js +24 -169
- package/lib/components/descriptions/src/description.js.map +1 -1
- package/lib/components/descriptions/src/description2.js +169 -24
- package/lib/components/descriptions/src/description2.js.map +1 -1
- package/lib/components/descriptions/src/descriptions-row.js +6 -94
- package/lib/components/descriptions/src/descriptions-row.js.map +1 -1
- package/lib/components/descriptions/src/descriptions-row2.js +94 -6
- package/lib/components/descriptions/src/descriptions-row2.js.map +1 -1
- package/lib/components/dialog/src/dialog-content.js +38 -111
- package/lib/components/dialog/src/dialog-content.js.map +1 -1
- package/lib/components/dialog/src/dialog-content2.js +111 -38
- package/lib/components/dialog/src/dialog-content2.js.map +1 -1
- package/lib/components/dialog/src/dialog.js +1 -1
- package/lib/components/dialog/src/dialog2.js +1 -1
- package/lib/components/form/index.js +2 -2
- package/lib/components/form/src/form.js +55 -173
- package/lib/components/form/src/form.js.map +1 -1
- package/lib/components/form/src/form2.js +173 -55
- package/lib/components/form/src/form2.js.map +1 -1
- package/lib/components/index.js +19 -19
- package/lib/components/input/index.js +2 -2
- package/lib/components/input/src/input.js +582 -121
- package/lib/components/input/src/input.js.map +1 -1
- package/lib/components/input/src/input2.js +121 -582
- package/lib/components/input/src/input2.js.map +1 -1
- package/lib/components/mention/src/mention.js +1 -1
- package/lib/components/mention/src/mention2.js +1 -1
- package/lib/components/menu/index.js +2 -2
- package/lib/components/menu/src/menu-item-group.js +4 -51
- package/lib/components/menu/src/menu-item-group.js.map +1 -1
- package/lib/components/menu/src/menu-item-group2.js +51 -4
- package/lib/components/menu/src/menu-item-group2.js.map +1 -1
- package/lib/components/pagination/src/components/jumper.js +7 -69
- package/lib/components/pagination/src/components/jumper.js.map +1 -1
- package/lib/components/pagination/src/components/jumper2.js +69 -7
- package/lib/components/pagination/src/components/jumper2.js.map +1 -1
- package/lib/components/pagination/src/pagination.js +1 -1
- package/lib/components/popover/index.js +2 -2
- package/lib/components/popover/src/popover.js +66 -120
- package/lib/components/popover/src/popover.js.map +1 -1
- package/lib/components/popover/src/popover2.js +120 -66
- package/lib/components/popover/src/popover2.js.map +1 -1
- package/lib/components/rate/index.js +2 -2
- package/lib/components/rate/src/rate.js +294 -85
- package/lib/components/rate/src/rate.js.map +1 -1
- package/lib/components/rate/src/rate2.js +85 -294
- package/lib/components/rate/src/rate2.js.map +1 -1
- package/lib/components/row/index.js +2 -2
- package/lib/components/row/src/row.js +29 -43
- package/lib/components/row/src/row.js.map +1 -1
- package/lib/components/row/src/row2.js +43 -29
- package/lib/components/row/src/row2.js.map +1 -1
- package/lib/components/skeleton/index.js +2 -2
- package/lib/components/skeleton/src/skeleton-item.js +27 -17
- package/lib/components/skeleton/src/skeleton-item.js.map +1 -1
- package/lib/components/skeleton/src/skeleton-item2.js +17 -27
- package/lib/components/skeleton/src/skeleton-item2.js.map +1 -1
- package/lib/components/skeleton/src/skeleton2.js +1 -1
- package/lib/components/steps/index.js +2 -2
- package/lib/components/steps/src/item.js +18 -257
- package/lib/components/steps/src/item.js.map +1 -1
- package/lib/components/steps/src/item2.js +257 -18
- package/lib/components/steps/src/item2.js.map +1 -1
- package/lib/components/tabs/src/tab-nav.js +4 -1
- package/lib/components/tabs/src/tab-nav.js.map +1 -1
- package/lib/components/text/index.js +2 -2
- package/lib/components/text/src/text.js +20 -66
- package/lib/components/text/src/text.js.map +1 -1
- package/lib/components/text/src/text2.js +66 -20
- 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 +66 -143
- package/lib/components/time-select/src/time-select.js.map +1 -1
- package/lib/components/time-select/src/time-select2.js +143 -66
- package/lib/components/time-select/src/time-select2.js.map +1 -1
- package/lib/components/tour/index.js +2 -2
- package/lib/components/tour/src/mask.js +82 -17
- package/lib/components/tour/src/mask.js.map +1 -1
- package/lib/components/tour/src/mask2.js +17 -82
- package/lib/components/tour/src/mask2.js.map +1 -1
- package/lib/components/tour/src/step.js +43 -254
- package/lib/components/tour/src/step.js.map +1 -1
- package/lib/components/tour/src/step2.js +254 -43
- package/lib/components/tour/src/step2.js.map +1 -1
- package/lib/components/tour/src/tour2.js +1 -1
- package/lib/components/tree/src/model/useKeydown.js +2 -4
- package/lib/components/tree/src/model/useKeydown.js.map +1 -1
- package/lib/components/upload/index.js +1 -1
- package/lib/components/upload/src/upload-list.js +206 -28
- package/lib/components/upload/src/upload-list.js.map +1 -1
- package/lib/components/upload/src/upload-list2.js +28 -206
- package/lib/components/upload/src/upload-list2.js.map +1 -1
- package/lib/components/upload/src/upload2.js +1 -1
- package/lib/directives/mousewheel/index.d.ts +2 -2
- package/lib/directives/mousewheel/index.js.map +1 -1
- package/lib/index.js +19 -19
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/tags.json +1 -1
- package/theme-chalk/el-checkbox.css +1 -1
- package/theme-chalk/el-date-picker-panel.css +1 -1
- package/theme-chalk/el-form-item.css +1 -0
- package/theme-chalk/el-form.css +1 -1
- package/theme-chalk/el-time-picker.css +1 -1
- package/theme-chalk/el-time-select.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/checkbox.scss +1 -0
- package/theme-chalk/src/date-picker/picker-panel.scss +5 -0
- package/theme-chalk/src/form-item.scss +232 -0
- package/theme-chalk/src/form.scss +0 -229
- package/web-types.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Calendar from './src/
|
|
2
|
-
export { calendarEmits, calendarProps } from './src/
|
|
1
|
+
import Calendar from './src/calendar2.mjs';
|
|
2
|
+
export { calendarEmits, calendarProps } from './src/calendar.mjs';
|
|
3
3
|
import { withInstall } from '../../utils/vue/install.mjs';
|
|
4
4
|
|
|
5
5
|
const ElCalendar = withInstall(Calendar);
|
|
@@ -1,186 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import { useCalendar } from './use-calendar.mjs';
|
|
5
|
-
import { calendarProps, calendarEmits } from './calendar2.mjs';
|
|
6
|
-
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
7
|
-
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
8
|
-
import { useLocale } from '../../../hooks/use-locale/index.mjs';
|
|
1
|
+
import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
|
|
2
|
+
import { UPDATE_MODEL_EVENT, INPUT_EVENT } from '../../../constants/event.mjs';
|
|
3
|
+
import { isDate, isArray } from '@vue/shared';
|
|
9
4
|
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
5
|
+
const isValidRange = (range) => isArray(range) && range.length === 2 && range.every((item) => isDate(item));
|
|
6
|
+
const calendarProps = buildProps({
|
|
7
|
+
modelValue: {
|
|
8
|
+
type: Date
|
|
14
9
|
},
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
setup(__props, { expose: __expose, emit: __emit }) {
|
|
19
|
-
const ns = useNamespace("calendar");
|
|
20
|
-
const props = __props;
|
|
21
|
-
const emit = __emit;
|
|
22
|
-
const {
|
|
23
|
-
calculateValidatedDateRange,
|
|
24
|
-
date,
|
|
25
|
-
pickDay,
|
|
26
|
-
realSelectedDay,
|
|
27
|
-
selectDate,
|
|
28
|
-
validatedRange
|
|
29
|
-
} = useCalendar(props, emit, COMPONENT_NAME);
|
|
30
|
-
const { t } = useLocale();
|
|
31
|
-
const i18nDate = computed(() => {
|
|
32
|
-
const pickedMonth = `el.datepicker.month${date.value.format("M")}`;
|
|
33
|
-
return `${date.value.year()} ${t("el.datepicker.year")} ${t(pickedMonth)}`;
|
|
34
|
-
});
|
|
35
|
-
__expose({
|
|
36
|
-
selectedDay: realSelectedDay,
|
|
37
|
-
pickDay,
|
|
38
|
-
selectDate,
|
|
39
|
-
calculateValidatedDateRange
|
|
40
|
-
});
|
|
41
|
-
return (_ctx, _cache) => {
|
|
42
|
-
return openBlock(), createElementBlock(
|
|
43
|
-
"div",
|
|
44
|
-
{
|
|
45
|
-
class: normalizeClass(unref(ns).b())
|
|
46
|
-
},
|
|
47
|
-
[
|
|
48
|
-
createElementVNode(
|
|
49
|
-
"div",
|
|
50
|
-
{
|
|
51
|
-
class: normalizeClass(unref(ns).e("header"))
|
|
52
|
-
},
|
|
53
|
-
[
|
|
54
|
-
renderSlot(_ctx.$slots, "header", { date: i18nDate.value }, () => [
|
|
55
|
-
createElementVNode(
|
|
56
|
-
"div",
|
|
57
|
-
{
|
|
58
|
-
class: normalizeClass(unref(ns).e("title"))
|
|
59
|
-
},
|
|
60
|
-
toDisplayString(i18nDate.value),
|
|
61
|
-
3
|
|
62
|
-
),
|
|
63
|
-
unref(validatedRange).length === 0 ? (openBlock(), createElementBlock(
|
|
64
|
-
"div",
|
|
65
|
-
{
|
|
66
|
-
key: 0,
|
|
67
|
-
class: normalizeClass(unref(ns).e("button-group"))
|
|
68
|
-
},
|
|
69
|
-
[
|
|
70
|
-
createVNode(unref(ElButtonGroup), null, {
|
|
71
|
-
default: withCtx(() => [
|
|
72
|
-
createVNode(unref(ElButton), {
|
|
73
|
-
size: "small",
|
|
74
|
-
onClick: _cache[0] || (_cache[0] = ($event) => unref(selectDate)("prev-month"))
|
|
75
|
-
}, {
|
|
76
|
-
default: withCtx(() => [
|
|
77
|
-
createTextVNode(
|
|
78
|
-
toDisplayString(unref(t)("el.datepicker.prevMonth")),
|
|
79
|
-
1
|
|
80
|
-
)
|
|
81
|
-
]),
|
|
82
|
-
_: 1
|
|
83
|
-
}),
|
|
84
|
-
createVNode(unref(ElButton), {
|
|
85
|
-
size: "small",
|
|
86
|
-
onClick: _cache[1] || (_cache[1] = ($event) => unref(selectDate)("today"))
|
|
87
|
-
}, {
|
|
88
|
-
default: withCtx(() => [
|
|
89
|
-
createTextVNode(
|
|
90
|
-
toDisplayString(unref(t)("el.datepicker.today")),
|
|
91
|
-
1
|
|
92
|
-
)
|
|
93
|
-
]),
|
|
94
|
-
_: 1
|
|
95
|
-
}),
|
|
96
|
-
createVNode(unref(ElButton), {
|
|
97
|
-
size: "small",
|
|
98
|
-
onClick: _cache[2] || (_cache[2] = ($event) => unref(selectDate)("next-month"))
|
|
99
|
-
}, {
|
|
100
|
-
default: withCtx(() => [
|
|
101
|
-
createTextVNode(
|
|
102
|
-
toDisplayString(unref(t)("el.datepicker.nextMonth")),
|
|
103
|
-
1
|
|
104
|
-
)
|
|
105
|
-
]),
|
|
106
|
-
_: 1
|
|
107
|
-
})
|
|
108
|
-
]),
|
|
109
|
-
_: 1
|
|
110
|
-
})
|
|
111
|
-
],
|
|
112
|
-
2
|
|
113
|
-
)) : createCommentVNode("v-if", true)
|
|
114
|
-
])
|
|
115
|
-
],
|
|
116
|
-
2
|
|
117
|
-
),
|
|
118
|
-
unref(validatedRange).length === 0 ? (openBlock(), createElementBlock(
|
|
119
|
-
"div",
|
|
120
|
-
{
|
|
121
|
-
key: 0,
|
|
122
|
-
class: normalizeClass(unref(ns).e("body"))
|
|
123
|
-
},
|
|
124
|
-
[
|
|
125
|
-
createVNode(DateTable, {
|
|
126
|
-
date: unref(date),
|
|
127
|
-
"selected-day": unref(realSelectedDay),
|
|
128
|
-
onPick: unref(pickDay)
|
|
129
|
-
}, createSlots({
|
|
130
|
-
_: 2
|
|
131
|
-
}, [
|
|
132
|
-
_ctx.$slots["date-cell"] ? {
|
|
133
|
-
name: "date-cell",
|
|
134
|
-
fn: withCtx((data) => [
|
|
135
|
-
renderSlot(_ctx.$slots, "date-cell", normalizeProps(guardReactiveProps(data)))
|
|
136
|
-
]),
|
|
137
|
-
key: "0"
|
|
138
|
-
} : void 0
|
|
139
|
-
]), 1032, ["date", "selected-day", "onPick"])
|
|
140
|
-
],
|
|
141
|
-
2
|
|
142
|
-
)) : (openBlock(), createElementBlock(
|
|
143
|
-
"div",
|
|
144
|
-
{
|
|
145
|
-
key: 1,
|
|
146
|
-
class: normalizeClass(unref(ns).e("body"))
|
|
147
|
-
},
|
|
148
|
-
[
|
|
149
|
-
(openBlock(true), createElementBlock(
|
|
150
|
-
Fragment,
|
|
151
|
-
null,
|
|
152
|
-
renderList(unref(validatedRange), (range_, index) => {
|
|
153
|
-
return openBlock(), createBlock(DateTable, {
|
|
154
|
-
key: index,
|
|
155
|
-
date: range_[0],
|
|
156
|
-
"selected-day": unref(realSelectedDay),
|
|
157
|
-
range: range_,
|
|
158
|
-
"hide-header": index !== 0,
|
|
159
|
-
onPick: unref(pickDay)
|
|
160
|
-
}, createSlots({
|
|
161
|
-
_: 2
|
|
162
|
-
}, [
|
|
163
|
-
_ctx.$slots["date-cell"] ? {
|
|
164
|
-
name: "date-cell",
|
|
165
|
-
fn: withCtx((data) => [
|
|
166
|
-
renderSlot(_ctx.$slots, "date-cell", mergeProps({ ref_for: true }, data))
|
|
167
|
-
]),
|
|
168
|
-
key: "0"
|
|
169
|
-
} : void 0
|
|
170
|
-
]), 1032, ["date", "selected-day", "range", "hide-header", "onPick"]);
|
|
171
|
-
}),
|
|
172
|
-
128
|
|
173
|
-
))
|
|
174
|
-
],
|
|
175
|
-
2
|
|
176
|
-
))
|
|
177
|
-
],
|
|
178
|
-
2
|
|
179
|
-
);
|
|
180
|
-
};
|
|
10
|
+
range: {
|
|
11
|
+
type: definePropType(Array),
|
|
12
|
+
validator: isValidRange
|
|
181
13
|
}
|
|
182
14
|
});
|
|
183
|
-
|
|
15
|
+
const calendarEmits = {
|
|
16
|
+
[UPDATE_MODEL_EVENT]: (value) => isDate(value),
|
|
17
|
+
[INPUT_EVENT]: (value) => isDate(value)
|
|
18
|
+
};
|
|
184
19
|
|
|
185
|
-
export {
|
|
20
|
+
export { calendarEmits, calendarProps };
|
|
186
21
|
//# sourceMappingURL=calendar.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar.mjs","sources":["../../../../../../packages/components/calendar/src/calendar.
|
|
1
|
+
{"version":3,"file":"calendar.mjs","sources":["../../../../../../packages/components/calendar/src/calendar.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n isArray,\n isDate,\n} from '@element-plus/utils'\nimport { INPUT_EVENT, UPDATE_MODEL_EVENT } from '@element-plus/constants'\n\nimport type { ExtractPropTypes, ExtractPublicPropTypes } from 'vue'\n\nexport type CalendarDateType =\n | 'prev-month'\n | 'next-month'\n | 'prev-year'\n | 'next-year'\n | 'today'\n\nconst isValidRange = (range: unknown): range is [Date, Date] =>\n isArray(range) && range.length === 2 && range.every((item) => isDate(item))\n\nexport const calendarProps = buildProps({\n /**\n * @description binding value\n */\n modelValue: {\n type: Date,\n },\n /**\n * @description time range, including start time and end time.\n * Start time must be start day of week, end time must be end day of week, the time span cannot exceed two months.\n */\n range: {\n type: definePropType<[Date, Date]>(Array),\n validator: isValidRange,\n },\n} as const)\nexport type CalendarProps = ExtractPropTypes<typeof calendarProps>\nexport type CalendarPropsPublic = ExtractPublicPropTypes<typeof calendarProps>\n\nexport const calendarEmits = {\n [UPDATE_MODEL_EVENT]: (value: Date) => isDate(value),\n [INPUT_EVENT]: (value: Date) => isDate(value),\n}\nexport type CalendarEmits = typeof calendarEmits\n"],"names":[],"mappings":";;;;AAiBA,MAAM,YAAe,GAAA,CAAC,KACpB,KAAA,OAAA,CAAQ,KAAK,CAAK,IAAA,KAAA,CAAM,MAAW,KAAA,CAAA,IAAK,MAAM,KAAM,CAAA,CAAC,IAAS,KAAA,MAAA,CAAO,IAAI,CAAC,CAAA,CAAA;AAErE,MAAM,gBAAgB,UAAW,CAAA;AAAA,EAItC,UAAY,EAAA;AAAA,IACV,IAAM,EAAA,IAAA;AAAA,GACR;AAAA,EAKA,KAAO,EAAA;AAAA,IACL,IAAA,EAAM,eAA6B,KAAK,CAAA;AAAA,IACxC,SAAW,EAAA,YAAA;AAAA,GACb;AACF,CAAU,EAAA;AAIH,MAAM,aAAgB,GAAA;AAAA,EAC3B,CAAC,kBAAA,GAAqB,CAAC,KAAA,KAAgB,OAAO,KAAK,CAAA;AAAA,EACnD,CAAC,WAAA,GAAc,CAAC,KAAA,KAAgB,OAAO,KAAK,CAAA;AAC9C;;;;"}
|
|
@@ -1,21 +1,186 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
1
|
+
import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, renderSlot, toDisplayString, createVNode, withCtx, createTextVNode, createCommentVNode, createSlots, normalizeProps, guardReactiveProps, Fragment, renderList, createBlock, mergeProps } from 'vue';
|
|
2
|
+
import { ElButtonGroup, ElButton } from '../../button/index.mjs';
|
|
3
|
+
import DateTable from './date-table2.mjs';
|
|
4
|
+
import { useCalendar } from './use-calendar.mjs';
|
|
5
|
+
import { calendarProps, calendarEmits } from './calendar.mjs';
|
|
6
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
7
|
+
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
8
|
+
import { useLocale } from '../../../hooks/use-locale/index.mjs';
|
|
4
9
|
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
10
|
+
const COMPONENT_NAME = "ElCalendar";
|
|
11
|
+
const _sfc_main = defineComponent({
|
|
12
|
+
...{
|
|
13
|
+
name: COMPONENT_NAME
|
|
9
14
|
},
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
15
|
+
__name: "calendar",
|
|
16
|
+
props: calendarProps,
|
|
17
|
+
emits: calendarEmits,
|
|
18
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
19
|
+
const ns = useNamespace("calendar");
|
|
20
|
+
const props = __props;
|
|
21
|
+
const emit = __emit;
|
|
22
|
+
const {
|
|
23
|
+
calculateValidatedDateRange,
|
|
24
|
+
date,
|
|
25
|
+
pickDay,
|
|
26
|
+
realSelectedDay,
|
|
27
|
+
selectDate,
|
|
28
|
+
validatedRange
|
|
29
|
+
} = useCalendar(props, emit, COMPONENT_NAME);
|
|
30
|
+
const { t } = useLocale();
|
|
31
|
+
const i18nDate = computed(() => {
|
|
32
|
+
const pickedMonth = `el.datepicker.month${date.value.format("M")}`;
|
|
33
|
+
return `${date.value.year()} ${t("el.datepicker.year")} ${t(pickedMonth)}`;
|
|
34
|
+
});
|
|
35
|
+
__expose({
|
|
36
|
+
selectedDay: realSelectedDay,
|
|
37
|
+
pickDay,
|
|
38
|
+
selectDate,
|
|
39
|
+
calculateValidatedDateRange
|
|
40
|
+
});
|
|
41
|
+
return (_ctx, _cache) => {
|
|
42
|
+
return openBlock(), createElementBlock(
|
|
43
|
+
"div",
|
|
44
|
+
{
|
|
45
|
+
class: normalizeClass(unref(ns).b())
|
|
46
|
+
},
|
|
47
|
+
[
|
|
48
|
+
createElementVNode(
|
|
49
|
+
"div",
|
|
50
|
+
{
|
|
51
|
+
class: normalizeClass(unref(ns).e("header"))
|
|
52
|
+
},
|
|
53
|
+
[
|
|
54
|
+
renderSlot(_ctx.$slots, "header", { date: i18nDate.value }, () => [
|
|
55
|
+
createElementVNode(
|
|
56
|
+
"div",
|
|
57
|
+
{
|
|
58
|
+
class: normalizeClass(unref(ns).e("title"))
|
|
59
|
+
},
|
|
60
|
+
toDisplayString(i18nDate.value),
|
|
61
|
+
3
|
|
62
|
+
),
|
|
63
|
+
unref(validatedRange).length === 0 ? (openBlock(), createElementBlock(
|
|
64
|
+
"div",
|
|
65
|
+
{
|
|
66
|
+
key: 0,
|
|
67
|
+
class: normalizeClass(unref(ns).e("button-group"))
|
|
68
|
+
},
|
|
69
|
+
[
|
|
70
|
+
createVNode(unref(ElButtonGroup), null, {
|
|
71
|
+
default: withCtx(() => [
|
|
72
|
+
createVNode(unref(ElButton), {
|
|
73
|
+
size: "small",
|
|
74
|
+
onClick: _cache[0] || (_cache[0] = ($event) => unref(selectDate)("prev-month"))
|
|
75
|
+
}, {
|
|
76
|
+
default: withCtx(() => [
|
|
77
|
+
createTextVNode(
|
|
78
|
+
toDisplayString(unref(t)("el.datepicker.prevMonth")),
|
|
79
|
+
1
|
|
80
|
+
)
|
|
81
|
+
]),
|
|
82
|
+
_: 1
|
|
83
|
+
}),
|
|
84
|
+
createVNode(unref(ElButton), {
|
|
85
|
+
size: "small",
|
|
86
|
+
onClick: _cache[1] || (_cache[1] = ($event) => unref(selectDate)("today"))
|
|
87
|
+
}, {
|
|
88
|
+
default: withCtx(() => [
|
|
89
|
+
createTextVNode(
|
|
90
|
+
toDisplayString(unref(t)("el.datepicker.today")),
|
|
91
|
+
1
|
|
92
|
+
)
|
|
93
|
+
]),
|
|
94
|
+
_: 1
|
|
95
|
+
}),
|
|
96
|
+
createVNode(unref(ElButton), {
|
|
97
|
+
size: "small",
|
|
98
|
+
onClick: _cache[2] || (_cache[2] = ($event) => unref(selectDate)("next-month"))
|
|
99
|
+
}, {
|
|
100
|
+
default: withCtx(() => [
|
|
101
|
+
createTextVNode(
|
|
102
|
+
toDisplayString(unref(t)("el.datepicker.nextMonth")),
|
|
103
|
+
1
|
|
104
|
+
)
|
|
105
|
+
]),
|
|
106
|
+
_: 1
|
|
107
|
+
})
|
|
108
|
+
]),
|
|
109
|
+
_: 1
|
|
110
|
+
})
|
|
111
|
+
],
|
|
112
|
+
2
|
|
113
|
+
)) : createCommentVNode("v-if", true)
|
|
114
|
+
])
|
|
115
|
+
],
|
|
116
|
+
2
|
|
117
|
+
),
|
|
118
|
+
unref(validatedRange).length === 0 ? (openBlock(), createElementBlock(
|
|
119
|
+
"div",
|
|
120
|
+
{
|
|
121
|
+
key: 0,
|
|
122
|
+
class: normalizeClass(unref(ns).e("body"))
|
|
123
|
+
},
|
|
124
|
+
[
|
|
125
|
+
createVNode(DateTable, {
|
|
126
|
+
date: unref(date),
|
|
127
|
+
"selected-day": unref(realSelectedDay),
|
|
128
|
+
onPick: unref(pickDay)
|
|
129
|
+
}, createSlots({
|
|
130
|
+
_: 2
|
|
131
|
+
}, [
|
|
132
|
+
_ctx.$slots["date-cell"] ? {
|
|
133
|
+
name: "date-cell",
|
|
134
|
+
fn: withCtx((data) => [
|
|
135
|
+
renderSlot(_ctx.$slots, "date-cell", normalizeProps(guardReactiveProps(data)))
|
|
136
|
+
]),
|
|
137
|
+
key: "0"
|
|
138
|
+
} : void 0
|
|
139
|
+
]), 1032, ["date", "selected-day", "onPick"])
|
|
140
|
+
],
|
|
141
|
+
2
|
|
142
|
+
)) : (openBlock(), createElementBlock(
|
|
143
|
+
"div",
|
|
144
|
+
{
|
|
145
|
+
key: 1,
|
|
146
|
+
class: normalizeClass(unref(ns).e("body"))
|
|
147
|
+
},
|
|
148
|
+
[
|
|
149
|
+
(openBlock(true), createElementBlock(
|
|
150
|
+
Fragment,
|
|
151
|
+
null,
|
|
152
|
+
renderList(unref(validatedRange), (range_, index) => {
|
|
153
|
+
return openBlock(), createBlock(DateTable, {
|
|
154
|
+
key: index,
|
|
155
|
+
date: range_[0],
|
|
156
|
+
"selected-day": unref(realSelectedDay),
|
|
157
|
+
range: range_,
|
|
158
|
+
"hide-header": index !== 0,
|
|
159
|
+
onPick: unref(pickDay)
|
|
160
|
+
}, createSlots({
|
|
161
|
+
_: 2
|
|
162
|
+
}, [
|
|
163
|
+
_ctx.$slots["date-cell"] ? {
|
|
164
|
+
name: "date-cell",
|
|
165
|
+
fn: withCtx((data) => [
|
|
166
|
+
renderSlot(_ctx.$slots, "date-cell", mergeProps({ ref_for: true }, data))
|
|
167
|
+
]),
|
|
168
|
+
key: "0"
|
|
169
|
+
} : void 0
|
|
170
|
+
]), 1032, ["date", "selected-day", "range", "hide-header", "onPick"]);
|
|
171
|
+
}),
|
|
172
|
+
128
|
|
173
|
+
))
|
|
174
|
+
],
|
|
175
|
+
2
|
|
176
|
+
))
|
|
177
|
+
],
|
|
178
|
+
2
|
|
179
|
+
);
|
|
180
|
+
};
|
|
13
181
|
}
|
|
14
182
|
});
|
|
15
|
-
|
|
16
|
-
[UPDATE_MODEL_EVENT]: (value) => isDate(value),
|
|
17
|
-
[INPUT_EVENT]: (value) => isDate(value)
|
|
18
|
-
};
|
|
183
|
+
var Calendar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/calendar/src/calendar.vue"]]);
|
|
19
184
|
|
|
20
|
-
export {
|
|
185
|
+
export { Calendar as default };
|
|
21
186
|
//# sourceMappingURL=calendar2.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar2.mjs","sources":["../../../../../../packages/components/calendar/src/calendar.
|
|
1
|
+
{"version":3,"file":"calendar2.mjs","sources":["../../../../../../packages/components/calendar/src/calendar.vue"],"sourcesContent":["<template>\n <div :class=\"ns.b()\">\n <div :class=\"ns.e('header')\">\n <slot name=\"header\" :date=\"i18nDate\">\n <div :class=\"ns.e('title')\">{{ i18nDate }}</div>\n <div v-if=\"validatedRange.length === 0\" :class=\"ns.e('button-group')\">\n <el-button-group>\n <el-button size=\"small\" @click=\"selectDate('prev-month')\">\n {{ t('el.datepicker.prevMonth') }}\n </el-button>\n <el-button size=\"small\" @click=\"selectDate('today')\">\n {{ t('el.datepicker.today') }}\n </el-button>\n <el-button size=\"small\" @click=\"selectDate('next-month')\">\n {{ t('el.datepicker.nextMonth') }}\n </el-button>\n </el-button-group>\n </div>\n </slot>\n </div>\n <div v-if=\"validatedRange.length === 0\" :class=\"ns.e('body')\">\n <date-table :date=\"date\" :selected-day=\"realSelectedDay\" @pick=\"pickDay\">\n <template v-if=\"$slots['date-cell']\" #date-cell=\"data\">\n <slot name=\"date-cell\" v-bind=\"data\" />\n </template>\n </date-table>\n </div>\n <div v-else :class=\"ns.e('body')\">\n <date-table\n v-for=\"(range_, index) in validatedRange\"\n :key=\"index\"\n :date=\"range_[0]\"\n :selected-day=\"realSelectedDay\"\n :range=\"range_\"\n :hide-header=\"index !== 0\"\n @pick=\"pickDay\"\n >\n <template v-if=\"$slots['date-cell']\" #date-cell=\"data\">\n <slot name=\"date-cell\" v-bind=\"data\" />\n </template>\n </date-table>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { ElButton, ElButtonGroup } from '@element-plus/components/button'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport DateTable from './date-table.vue'\nimport { useCalendar } from './use-calendar'\nimport { calendarEmits, calendarProps } from './calendar'\n\nconst ns = useNamespace('calendar')\n\nconst COMPONENT_NAME = 'ElCalendar'\ndefineOptions({\n name: COMPONENT_NAME,\n})\n\nconst props = defineProps(calendarProps)\nconst emit = defineEmits(calendarEmits)\n\nconst {\n calculateValidatedDateRange,\n date,\n pickDay,\n realSelectedDay,\n selectDate,\n validatedRange,\n} = useCalendar(props, emit, COMPONENT_NAME)\n\nconst { t } = useLocale()\n\nconst i18nDate = computed(() => {\n const pickedMonth = `el.datepicker.month${date.value.format('M')}`\n return `${date.value.year()} ${t('el.datepicker.year')} ${t(pickedMonth)}`\n})\n\ndefineExpose({\n /** @description currently selected date */\n selectedDay: realSelectedDay,\n /** @description select a specific date */\n pickDay,\n /** @description select date */\n selectDate,\n /** @description Calculate the validate date range according to the start and end dates */\n calculateValidatedDateRange,\n})\n</script>\n"],"names":["_openBlock","_createElementBlock","_normalizeClass","_unref","_createElementVNode","_renderSlot","_createVNode","_withCtx","_createTextVNode","_createSlots","$slots","_Fragment","_renderList","_createBlock","_mergeProps"],"mappings":"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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import CheckTag from './src/check-
|
|
2
|
-
export { checkTagEmits, checkTagProps } from './src/check-
|
|
1
|
+
import CheckTag from './src/check-tag2.mjs';
|
|
2
|
+
export { checkTagEmits, checkTagProps } from './src/check-tag.mjs';
|
|
3
3
|
import { withInstall } from '../../utils/vue/install.mjs';
|
|
4
4
|
|
|
5
5
|
const ElCheckTag = withInstall(CheckTag);
|
|
@@ -1,49 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
4
|
-
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
1
|
+
import { buildProps } from '../../../utils/vue/props/runtime.mjs';
|
|
2
|
+
import { isBoolean } from '../../../utils/types.mjs';
|
|
5
3
|
import { CHANGE_EVENT } from '../../../constants/event.mjs';
|
|
6
4
|
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
setup(__props, { emit: __emit }) {
|
|
15
|
-
const props = __props;
|
|
16
|
-
const emit = __emit;
|
|
17
|
-
const ns = useNamespace("check-tag");
|
|
18
|
-
const containerKls = computed(() => [
|
|
19
|
-
ns.b(),
|
|
20
|
-
ns.is("checked", props.checked),
|
|
21
|
-
ns.is("disabled", props.disabled),
|
|
22
|
-
ns.m(props.type || "primary")
|
|
23
|
-
]);
|
|
24
|
-
const handleChange = () => {
|
|
25
|
-
if (props.disabled)
|
|
26
|
-
return;
|
|
27
|
-
const checked = !props.checked;
|
|
28
|
-
emit(CHANGE_EVENT, checked);
|
|
29
|
-
emit("update:checked", checked);
|
|
30
|
-
};
|
|
31
|
-
return (_ctx, _cache) => {
|
|
32
|
-
return openBlock(), createElementBlock(
|
|
33
|
-
"span",
|
|
34
|
-
{
|
|
35
|
-
class: normalizeClass(containerKls.value),
|
|
36
|
-
onClick: handleChange
|
|
37
|
-
},
|
|
38
|
-
[
|
|
39
|
-
renderSlot(_ctx.$slots, "default")
|
|
40
|
-
],
|
|
41
|
-
2
|
|
42
|
-
);
|
|
43
|
-
};
|
|
5
|
+
const checkTagProps = buildProps({
|
|
6
|
+
checked: Boolean,
|
|
7
|
+
disabled: Boolean,
|
|
8
|
+
type: {
|
|
9
|
+
type: String,
|
|
10
|
+
values: ["primary", "success", "info", "warning", "danger"],
|
|
11
|
+
default: "primary"
|
|
44
12
|
}
|
|
45
13
|
});
|
|
46
|
-
|
|
14
|
+
const checkTagEmits = {
|
|
15
|
+
"update:checked": (value) => isBoolean(value),
|
|
16
|
+
[CHANGE_EVENT]: (value) => isBoolean(value)
|
|
17
|
+
};
|
|
47
18
|
|
|
48
|
-
export {
|
|
19
|
+
export { checkTagEmits, checkTagProps };
|
|
49
20
|
//# sourceMappingURL=check-tag.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-tag.mjs","sources":["../../../../../../packages/components/check-tag/src/check-tag.
|
|
1
|
+
{"version":3,"file":"check-tag.mjs","sources":["../../../../../../packages/components/check-tag/src/check-tag.ts"],"sourcesContent":["import { buildProps, isBoolean } from '@element-plus/utils'\nimport { CHANGE_EVENT } from '@element-plus/constants'\n\nimport type CheckTag from './check-tag.vue'\nimport type { ExtractPropTypes, ExtractPublicPropTypes } from 'vue'\n\nexport const checkTagProps = buildProps({\n /**\n * @description is checked\n */\n checked: Boolean,\n /**\n * @description whether the check-tag is disabled\n */\n disabled: Boolean,\n /**\n * @description type of Tag\n */\n type: {\n type: String,\n values: ['primary', 'success', 'info', 'warning', 'danger'],\n default: 'primary',\n },\n} as const)\nexport type CheckTagProps = ExtractPropTypes<typeof checkTagProps>\nexport type CheckTagPropsPublic = ExtractPublicPropTypes<typeof checkTagProps>\n\nexport const checkTagEmits = {\n 'update:checked': (value: boolean) => isBoolean(value),\n [CHANGE_EVENT]: (value: boolean) => isBoolean(value),\n}\nexport type CheckTagEmits = typeof checkTagEmits\n\nexport type CheckTagInstance = InstanceType<typeof CheckTag> & unknown\n"],"names":[],"mappings":";;;;AAMO,MAAM,gBAAgB,UAAW,CAAA;AAAA,EAItC,OAAS,EAAA,OAAA;AAAA,EAIT,QAAU,EAAA,OAAA;AAAA,EAIV,IAAM,EAAA;AAAA,IACJ,IAAM,EAAA,MAAA;AAAA,IACN,QAAQ,CAAC,SAAA,EAAW,SAAW,EAAA,MAAA,EAAQ,WAAW,QAAQ,CAAA;AAAA,IAC1D,OAAS,EAAA,SAAA;AAAA,GACX;AACF,CAAU,EAAA;AAIH,MAAM,aAAgB,GAAA;AAAA,EAC3B,gBAAkB,EAAA,CAAC,KAAmB,KAAA,SAAA,CAAU,KAAK,CAAA;AAAA,EACrD,CAAC,YAAA,GAAe,CAAC,KAAA,KAAmB,UAAU,KAAK,CAAA;AACrD;;;;"}
|
|
@@ -1,20 +1,49 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, renderSlot } from 'vue';
|
|
2
|
+
import { checkTagProps, checkTagEmits } from './check-tag.mjs';
|
|
3
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
4
|
+
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
3
5
|
import { CHANGE_EVENT } from '../../../constants/event.mjs';
|
|
4
6
|
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
const _sfc_main = defineComponent({
|
|
8
|
+
...{
|
|
9
|
+
name: "ElCheckTag"
|
|
10
|
+
},
|
|
11
|
+
__name: "check-tag",
|
|
12
|
+
props: checkTagProps,
|
|
13
|
+
emits: checkTagEmits,
|
|
14
|
+
setup(__props, { emit: __emit }) {
|
|
15
|
+
const props = __props;
|
|
16
|
+
const emit = __emit;
|
|
17
|
+
const ns = useNamespace("check-tag");
|
|
18
|
+
const containerKls = computed(() => [
|
|
19
|
+
ns.b(),
|
|
20
|
+
ns.is("checked", props.checked),
|
|
21
|
+
ns.is("disabled", props.disabled),
|
|
22
|
+
ns.m(props.type || "primary")
|
|
23
|
+
]);
|
|
24
|
+
const handleChange = () => {
|
|
25
|
+
if (props.disabled)
|
|
26
|
+
return;
|
|
27
|
+
const checked = !props.checked;
|
|
28
|
+
emit(CHANGE_EVENT, checked);
|
|
29
|
+
emit("update:checked", checked);
|
|
30
|
+
};
|
|
31
|
+
return (_ctx, _cache) => {
|
|
32
|
+
return openBlock(), createElementBlock(
|
|
33
|
+
"span",
|
|
34
|
+
{
|
|
35
|
+
class: normalizeClass(containerKls.value),
|
|
36
|
+
onClick: handleChange
|
|
37
|
+
},
|
|
38
|
+
[
|
|
39
|
+
renderSlot(_ctx.$slots, "default")
|
|
40
|
+
],
|
|
41
|
+
2
|
|
42
|
+
);
|
|
43
|
+
};
|
|
12
44
|
}
|
|
13
45
|
});
|
|
14
|
-
|
|
15
|
-
"update:checked": (value) => isBoolean(value),
|
|
16
|
-
[CHANGE_EVENT]: (value) => isBoolean(value)
|
|
17
|
-
};
|
|
46
|
+
var CheckTag = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/check-tag/src/check-tag.vue"]]);
|
|
18
47
|
|
|
19
|
-
export {
|
|
48
|
+
export { CheckTag as default };
|
|
20
49
|
//# sourceMappingURL=check-tag2.mjs.map
|