@element-plus/nightly 0.0.20231213 → 0.0.20231216
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/attributes.json +1 -1
- package/dist/index.full.js +46 -17
- package/dist/index.full.min.js +19 -19
- 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 +46 -17
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar.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/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/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/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/affix/src/affix2.mjs +1 -1
- package/es/components/alert/src/alert2.mjs +1 -1
- package/es/components/autocomplete/src/autocomplete2.mjs +1 -1
- package/es/components/avatar/src/avatar2.mjs +1 -1
- package/es/components/backtop/src/backtop2.mjs +1 -1
- package/es/components/badge/src/badge2.mjs +1 -1
- package/es/components/breadcrumb/src/breadcrumb-item2.mjs +1 -1
- package/es/components/breadcrumb/src/breadcrumb2.mjs +1 -1
- package/es/components/button/src/button-group2.mjs +1 -1
- package/es/components/button/src/button2.mjs +1 -1
- package/es/components/calendar/index.mjs +2 -2
- package/es/components/calendar/src/calendar.mjs +18 -131
- package/es/components/calendar/src/calendar.mjs.map +1 -1
- package/es/components/calendar/src/calendar2.mjs +131 -18
- package/es/components/calendar/src/calendar2.mjs.map +1 -1
- package/es/components/calendar/src/date-table2.mjs +1 -1
- package/es/components/card/src/card2.mjs +1 -1
- package/es/components/carousel/src/carousel-item2.mjs +1 -1
- package/es/components/carousel/src/carousel2.mjs +1 -1
- package/es/components/cascader/src/cascader2.mjs +1 -1
- package/es/components/cascader-panel/src/index.mjs +1 -1
- package/es/components/cascader-panel/src/menu.mjs +1 -1
- package/es/components/cascader-panel/src/node2.mjs +1 -1
- package/es/components/check-tag/src/check-tag2.mjs +1 -1
- package/es/components/checkbox/src/checkbox-button.mjs +1 -1
- package/es/components/checkbox/src/checkbox-group2.mjs +1 -1
- package/es/components/checkbox/src/checkbox2.mjs +1 -1
- package/es/components/col/src/col2.mjs +1 -1
- package/es/components/collapse/src/collapse-item2.mjs +1 -1
- package/es/components/collapse/src/collapse2.mjs +1 -1
- package/es/components/collapse-transition/src/collapse-transition.mjs +16 -10
- package/es/components/collapse-transition/src/collapse-transition.mjs.map +1 -1
- package/es/components/collection/src/collection-item.mjs +1 -1
- package/es/components/collection/src/collection2.mjs +1 -1
- package/es/components/color-picker/src/color-picker2.mjs +1 -1
- package/es/components/color-picker/src/components/alpha-slider.mjs +1 -1
- package/es/components/color-picker/src/components/hue-slider.mjs +1 -1
- package/es/components/color-picker/src/components/predefine.mjs +1 -1
- package/es/components/color-picker/src/components/sv-panel.mjs +1 -1
- package/es/components/container/src/aside.mjs +1 -1
- package/es/components/container/src/container.mjs +1 -1
- package/es/components/container/src/footer.mjs +1 -1
- package/es/components/container/src/header.mjs +1 -1
- package/es/components/container/src/main.mjs +1 -1
- package/es/components/countdown/src/countdown2.mjs +1 -1
- package/es/components/date-picker/src/date-picker-com/basic-date-table.mjs +1 -1
- package/es/components/date-picker/src/date-picker-com/basic-month-table.mjs +2 -2
- package/es/components/date-picker/src/date-picker-com/basic-month-table.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/basic-year-table.mjs +1 -1
- package/es/components/date-picker/src/date-picker-com/panel-date-pick.mjs +1 -1
- package/es/components/date-picker/src/date-picker-com/panel-date-range.mjs +1 -1
- package/es/components/date-picker/src/date-picker-com/panel-month-range.mjs +1 -1
- package/es/components/descriptions/src/description2.mjs +1 -1
- package/es/components/descriptions/src/descriptions-row2.mjs +1 -1
- package/es/components/dialog/src/dialog-content2.mjs +1 -1
- package/es/components/dialog/src/dialog2.mjs +1 -1
- package/es/components/divider/src/divider2.mjs +1 -1
- package/es/components/drawer/src/drawer2.mjs +1 -1
- package/es/components/dropdown/src/dropdown-item-impl.mjs +1 -1
- package/es/components/dropdown/src/dropdown-item.mjs +1 -1
- package/es/components/dropdown/src/dropdown-menu.mjs +1 -1
- package/es/components/dropdown/src/dropdown2.mjs +1 -1
- package/es/components/empty/src/empty2.mjs +1 -1
- package/es/components/empty/src/img-empty.mjs +1 -1
- package/es/components/focus-trap/src/focus-trap.mjs +1 -1
- package/es/components/form/src/form-item2.mjs +1 -1
- package/es/components/form/src/form2.mjs +1 -1
- package/es/components/icon/src/icon2.mjs +1 -1
- package/es/components/image/src/image2.mjs +1 -1
- package/es/components/image-viewer/src/image-viewer2.mjs +1 -1
- package/es/components/index.mjs +2 -2
- package/es/components/input/src/input2.mjs +1 -1
- package/es/components/input-number/src/input-number2.mjs +1 -1
- package/es/components/link/src/link2.mjs +1 -1
- package/es/components/menu/index.d.ts +3 -0
- package/es/components/menu/src/menu-collapse-transition.mjs +1 -1
- package/es/components/menu/src/menu-item-group2.mjs +1 -1
- package/es/components/menu/src/menu-item2.mjs +1 -1
- package/es/components/menu/src/menu.d.ts +4 -0
- package/es/components/menu/src/menu.mjs +22 -4
- package/es/components/menu/src/menu.mjs.map +1 -1
- package/es/components/menu/src/sub-menu.mjs +2 -0
- package/es/components/menu/src/sub-menu.mjs.map +1 -1
- package/es/components/message/src/message2.mjs +1 -1
- package/es/components/message-box/src/index.mjs +1 -1
- package/es/components/notification/src/notification2.mjs +1 -1
- package/es/components/page-header/src/page-header2.mjs +1 -1
- package/es/components/pagination/src/components/jumper2.mjs +1 -1
- package/es/components/pagination/src/components/next2.mjs +1 -1
- package/es/components/pagination/src/components/pager2.mjs +1 -1
- package/es/components/pagination/src/components/prev2.mjs +1 -1
- package/es/components/pagination/src/components/sizes2.mjs +1 -1
- package/es/components/pagination/src/components/total2.mjs +1 -1
- package/es/components/popconfirm/src/popconfirm2.mjs +1 -1
- package/es/components/popover/src/popover2.mjs +1 -1
- package/es/components/popper/src/arrow2.mjs +1 -1
- package/es/components/popper/src/content2.mjs +1 -1
- package/es/components/popper/src/popper2.mjs +1 -1
- package/es/components/popper/src/trigger2.mjs +1 -1
- package/es/components/progress/src/progress2.mjs +1 -1
- package/es/components/radio/index.mjs +2 -2
- package/es/components/radio/src/radio-button.mjs +9 -66
- package/es/components/radio/src/radio-button.mjs.map +1 -1
- package/es/components/radio/src/radio-button2.mjs +66 -9
- package/es/components/radio/src/radio-button2.mjs.map +1 -1
- package/es/components/radio/src/radio-group2.mjs +1 -1
- package/es/components/radio/src/radio2.mjs +1 -1
- package/es/components/rate/src/rate2.mjs +1 -1
- package/es/components/result/src/result2.mjs +1 -1
- package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs +1 -1
- package/es/components/roving-focus-group/src/roving-focus-group2.mjs +1 -1
- package/es/components/roving-focus-group/src/roving-focus-item.mjs +1 -1
- package/es/components/row/src/row2.mjs +1 -1
- package/es/components/scrollbar/src/bar2.mjs +1 -1
- package/es/components/scrollbar/src/scrollbar2.mjs +1 -1
- package/es/components/scrollbar/src/thumb2.mjs +1 -1
- package/es/components/select/src/option-group.mjs +1 -1
- package/es/components/select/src/option.mjs +1 -1
- package/es/components/select/src/select-dropdown.mjs +1 -1
- package/es/components/select/src/select.mjs +1 -1
- package/es/components/select-v2/src/group-item.mjs +1 -1
- package/es/components/select-v2/src/option-item.mjs +1 -1
- package/es/components/select-v2/src/select.mjs +1 -1
- package/es/components/skeleton/src/skeleton-item2.mjs +1 -1
- package/es/components/skeleton/src/skeleton2.mjs +1 -1
- package/es/components/slider/src/button2.mjs +1 -1
- package/es/components/slider/src/slider2.mjs +1 -1
- package/es/components/statistic/src/statistic2.mjs +1 -1
- package/es/components/steps/src/item2.mjs +1 -1
- package/es/components/steps/src/steps2.mjs +1 -1
- package/es/components/switch/src/switch2.mjs +1 -1
- package/es/components/table/src/filter-panel.mjs +1 -1
- package/es/components/table/src/table.mjs +1 -1
- package/es/components/tabs/src/tab-bar2.mjs +1 -1
- package/es/components/tabs/src/tab-pane2.mjs +1 -1
- package/es/components/tag/src/tag2.mjs +1 -1
- package/es/components/teleport/src/teleport2.mjs +1 -1
- package/es/components/text/src/text2.mjs +1 -1
- package/es/components/time-picker/src/common/picker.mjs +1 -1
- package/es/components/time-picker/src/time-picker-com/basic-time-spinner.mjs +1 -1
- package/es/components/time-picker/src/time-picker-com/panel-time-pick.mjs +1 -1
- package/es/components/time-picker/src/time-picker-com/panel-time-range.mjs +1 -1
- package/es/components/time-select/src/time-select2.mjs +1 -1
- package/es/components/timeline/src/timeline-item2.mjs +1 -1
- package/es/components/tooltip/src/content2.mjs +1 -1
- package/es/components/tooltip/src/tooltip2.mjs +1 -1
- package/es/components/tooltip/src/trigger2.mjs +1 -1
- package/es/components/tooltip-v2/src/arrow2.mjs +1 -1
- package/es/components/tooltip-v2/src/content2.mjs +1 -1
- package/es/components/tooltip-v2/src/root2.mjs +1 -1
- package/es/components/tooltip-v2/src/tooltip2.mjs +1 -1
- package/es/components/tooltip-v2/src/trigger2.mjs +1 -1
- package/es/components/transfer/src/transfer-panel2.mjs +1 -1
- package/es/components/transfer/src/transfer2.mjs +1 -1
- package/es/components/tree/src/model/tree-store.mjs +6 -2
- package/es/components/tree/src/model/tree-store.mjs.map +1 -1
- package/es/components/tree/src/model/useDragNode.mjs +2 -0
- package/es/components/tree/src/model/useDragNode.mjs.map +1 -1
- package/es/components/tree/src/tree-node-content.mjs +1 -1
- package/es/components/tree/src/tree-node.mjs +1 -1
- package/es/components/tree/src/tree.mjs +1 -1
- package/es/components/tree-select/src/tree-select.mjs +1 -1
- package/es/components/tree-v2/src/tree-node.mjs +1 -1
- package/es/components/tree-v2/src/tree.mjs +1 -1
- package/es/components/upload/src/upload-content2.mjs +1 -1
- package/es/components/upload/src/upload-dragger2.mjs +1 -1
- package/es/components/upload/src/upload-list2.mjs +1 -1
- package/es/components/upload/src/upload2.mjs +1 -1
- package/es/components/visual-hidden/src/visual-hidden2.mjs +1 -1
- package/es/components/watermark/src/watermark2.mjs +1 -1
- package/es/index.mjs +2 -2
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/affix/src/affix2.js +1 -1
- package/lib/components/alert/src/alert2.js +1 -1
- package/lib/components/autocomplete/src/autocomplete2.js +1 -1
- package/lib/components/avatar/src/avatar2.js +1 -1
- package/lib/components/backtop/src/backtop2.js +1 -1
- package/lib/components/badge/src/badge2.js +1 -1
- package/lib/components/breadcrumb/src/breadcrumb-item2.js +1 -1
- package/lib/components/breadcrumb/src/breadcrumb2.js +1 -1
- package/lib/components/button/src/button-group2.js +1 -1
- package/lib/components/button/src/button2.js +1 -1
- package/lib/components/calendar/index.js +2 -2
- package/lib/components/calendar/src/calendar.js +19 -131
- package/lib/components/calendar/src/calendar.js.map +1 -1
- package/lib/components/calendar/src/calendar2.js +131 -19
- package/lib/components/calendar/src/calendar2.js.map +1 -1
- package/lib/components/calendar/src/date-table2.js +1 -1
- package/lib/components/card/src/card2.js +1 -1
- package/lib/components/carousel/src/carousel-item2.js +1 -1
- package/lib/components/carousel/src/carousel2.js +1 -1
- package/lib/components/cascader/src/cascader2.js +1 -1
- package/lib/components/cascader-panel/src/index.js +1 -1
- package/lib/components/cascader-panel/src/menu.js +1 -1
- package/lib/components/cascader-panel/src/node2.js +1 -1
- package/lib/components/check-tag/src/check-tag2.js +1 -1
- package/lib/components/checkbox/src/checkbox-button.js +1 -1
- package/lib/components/checkbox/src/checkbox-group2.js +1 -1
- package/lib/components/checkbox/src/checkbox2.js +1 -1
- package/lib/components/col/src/col2.js +1 -1
- package/lib/components/collapse/src/collapse-item2.js +1 -1
- package/lib/components/collapse/src/collapse2.js +1 -1
- package/lib/components/collapse-transition/src/collapse-transition.js +16 -10
- package/lib/components/collapse-transition/src/collapse-transition.js.map +1 -1
- package/lib/components/collection/src/collection-item.js +1 -1
- package/lib/components/collection/src/collection2.js +1 -1
- package/lib/components/color-picker/src/color-picker2.js +1 -1
- package/lib/components/color-picker/src/components/alpha-slider.js +1 -1
- package/lib/components/color-picker/src/components/hue-slider.js +1 -1
- package/lib/components/color-picker/src/components/predefine.js +1 -1
- package/lib/components/color-picker/src/components/sv-panel.js +1 -1
- package/lib/components/container/src/aside.js +1 -1
- package/lib/components/container/src/container.js +1 -1
- package/lib/components/container/src/footer.js +1 -1
- package/lib/components/container/src/header.js +1 -1
- package/lib/components/container/src/main.js +1 -1
- package/lib/components/countdown/src/countdown2.js +1 -1
- package/lib/components/date-picker/src/date-picker-com/basic-date-table.js +1 -1
- package/lib/components/date-picker/src/date-picker-com/basic-month-table.js +2 -2
- package/lib/components/date-picker/src/date-picker-com/basic-month-table.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/basic-year-table.js +1 -1
- package/lib/components/date-picker/src/date-picker-com/panel-date-pick.js +1 -1
- package/lib/components/date-picker/src/date-picker-com/panel-date-range.js +1 -1
- package/lib/components/date-picker/src/date-picker-com/panel-month-range.js +1 -1
- package/lib/components/descriptions/src/description2.js +1 -1
- package/lib/components/descriptions/src/descriptions-row2.js +1 -1
- package/lib/components/dialog/src/dialog-content2.js +1 -1
- package/lib/components/dialog/src/dialog2.js +1 -1
- package/lib/components/divider/src/divider2.js +1 -1
- package/lib/components/drawer/src/drawer2.js +1 -1
- package/lib/components/dropdown/src/dropdown-item-impl.js +1 -1
- package/lib/components/dropdown/src/dropdown-item.js +1 -1
- package/lib/components/dropdown/src/dropdown-menu.js +1 -1
- package/lib/components/dropdown/src/dropdown2.js +1 -1
- package/lib/components/empty/src/empty2.js +1 -1
- package/lib/components/empty/src/img-empty.js +1 -1
- package/lib/components/focus-trap/src/focus-trap.js +1 -1
- package/lib/components/form/src/form-item2.js +1 -1
- package/lib/components/form/src/form2.js +1 -1
- package/lib/components/icon/src/icon2.js +1 -1
- package/lib/components/image/src/image2.js +1 -1
- package/lib/components/image-viewer/src/image-viewer2.js +1 -1
- package/lib/components/index.js +2 -2
- package/lib/components/input/src/input2.js +1 -1
- package/lib/components/input-number/src/input-number2.js +1 -1
- package/lib/components/link/src/link2.js +1 -1
- package/lib/components/menu/index.d.ts +3 -0
- package/lib/components/menu/src/menu-collapse-transition.js +1 -1
- package/lib/components/menu/src/menu-item-group2.js +1 -1
- package/lib/components/menu/src/menu-item2.js +1 -1
- package/lib/components/menu/src/menu.d.ts +4 -0
- package/lib/components/menu/src/menu.js +21 -3
- package/lib/components/menu/src/menu.js.map +1 -1
- package/lib/components/menu/src/sub-menu.js +2 -0
- package/lib/components/menu/src/sub-menu.js.map +1 -1
- package/lib/components/message/src/message2.js +1 -1
- package/lib/components/message-box/src/index.js +1 -1
- package/lib/components/notification/src/notification2.js +1 -1
- package/lib/components/page-header/src/page-header2.js +1 -1
- package/lib/components/pagination/src/components/jumper2.js +1 -1
- package/lib/components/pagination/src/components/next2.js +1 -1
- package/lib/components/pagination/src/components/pager2.js +1 -1
- package/lib/components/pagination/src/components/prev2.js +1 -1
- package/lib/components/pagination/src/components/sizes2.js +1 -1
- package/lib/components/pagination/src/components/total2.js +1 -1
- package/lib/components/popconfirm/src/popconfirm2.js +1 -1
- package/lib/components/popover/src/popover2.js +1 -1
- package/lib/components/popper/src/arrow2.js +1 -1
- package/lib/components/popper/src/content2.js +1 -1
- package/lib/components/popper/src/popper2.js +1 -1
- package/lib/components/popper/src/trigger2.js +1 -1
- package/lib/components/progress/src/progress2.js +1 -1
- package/lib/components/radio/index.js +2 -2
- package/lib/components/radio/src/radio-button.js +9 -66
- package/lib/components/radio/src/radio-button.js.map +1 -1
- package/lib/components/radio/src/radio-button2.js +66 -9
- package/lib/components/radio/src/radio-button2.js.map +1 -1
- package/lib/components/radio/src/radio-group2.js +1 -1
- package/lib/components/radio/src/radio2.js +1 -1
- package/lib/components/rate/src/rate2.js +1 -1
- package/lib/components/result/src/result2.js +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-group-impl.js +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-group2.js +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-item.js +1 -1
- package/lib/components/row/src/row2.js +1 -1
- package/lib/components/scrollbar/src/bar2.js +1 -1
- package/lib/components/scrollbar/src/scrollbar2.js +1 -1
- package/lib/components/scrollbar/src/thumb2.js +1 -1
- package/lib/components/select/src/option-group.js +1 -1
- package/lib/components/select/src/option.js +1 -1
- package/lib/components/select/src/select-dropdown.js +1 -1
- package/lib/components/select/src/select.js +1 -1
- package/lib/components/select-v2/src/group-item.js +1 -1
- package/lib/components/select-v2/src/option-item.js +1 -1
- package/lib/components/select-v2/src/select.js +1 -1
- package/lib/components/skeleton/src/skeleton-item2.js +1 -1
- package/lib/components/skeleton/src/skeleton2.js +1 -1
- package/lib/components/slider/src/button2.js +1 -1
- package/lib/components/slider/src/slider2.js +1 -1
- package/lib/components/statistic/src/statistic2.js +1 -1
- package/lib/components/steps/src/item2.js +1 -1
- package/lib/components/steps/src/steps2.js +1 -1
- package/lib/components/switch/src/switch2.js +1 -1
- package/lib/components/table/src/filter-panel.js +1 -1
- package/lib/components/table/src/table.js +1 -1
- package/lib/components/tabs/src/tab-bar2.js +1 -1
- package/lib/components/tabs/src/tab-pane2.js +1 -1
- package/lib/components/tag/src/tag2.js +1 -1
- package/lib/components/teleport/src/teleport2.js +1 -1
- package/lib/components/text/src/text2.js +1 -1
- package/lib/components/time-picker/src/common/picker.js +1 -1
- package/lib/components/time-picker/src/time-picker-com/basic-time-spinner.js +1 -1
- package/lib/components/time-picker/src/time-picker-com/panel-time-pick.js +1 -1
- package/lib/components/time-picker/src/time-picker-com/panel-time-range.js +1 -1
- package/lib/components/time-select/src/time-select2.js +1 -1
- package/lib/components/timeline/src/timeline-item2.js +1 -1
- package/lib/components/tooltip/src/content2.js +1 -1
- package/lib/components/tooltip/src/tooltip2.js +1 -1
- package/lib/components/tooltip/src/trigger2.js +1 -1
- package/lib/components/tooltip-v2/src/arrow2.js +1 -1
- package/lib/components/tooltip-v2/src/content2.js +1 -1
- package/lib/components/tooltip-v2/src/root2.js +1 -1
- package/lib/components/tooltip-v2/src/tooltip2.js +1 -1
- package/lib/components/tooltip-v2/src/trigger2.js +1 -1
- package/lib/components/transfer/src/transfer-panel2.js +1 -1
- package/lib/components/transfer/src/transfer2.js +1 -1
- package/lib/components/tree/src/model/tree-store.js +6 -2
- package/lib/components/tree/src/model/tree-store.js.map +1 -1
- package/lib/components/tree/src/model/useDragNode.js +2 -0
- package/lib/components/tree/src/model/useDragNode.js.map +1 -1
- package/lib/components/tree/src/tree-node-content.js +1 -1
- package/lib/components/tree/src/tree-node.js +1 -1
- package/lib/components/tree/src/tree.js +1 -1
- package/lib/components/tree-select/src/tree-select.js +1 -1
- package/lib/components/tree-v2/src/tree-node.js +1 -1
- package/lib/components/tree-v2/src/tree.js +1 -1
- package/lib/components/upload/src/upload-content2.js +1 -1
- package/lib/components/upload/src/upload-dragger2.js +1 -1
- package/lib/components/upload/src/upload-list2.js +1 -1
- package/lib/components/upload/src/upload2.js +1 -1
- package/lib/components/visual-hidden/src/visual-hidden2.js +1 -1
- package/lib/components/watermark/src/watermark2.js +1 -1
- package/lib/index.js +2 -2
- 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/web-types.json +1 -1
|
@@ -1,136 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import '
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import { calendarProps, calendarEmits } from './calendar2.mjs';
|
|
7
|
-
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
8
|
-
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
9
|
-
import { useLocale } from '../../../hooks/use-locale/index.mjs';
|
|
1
|
+
import '../../../utils/index.mjs';
|
|
2
|
+
import '../../../constants/index.mjs';
|
|
3
|
+
import { isArray, isDate } from '@vue/shared';
|
|
4
|
+
import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
|
|
5
|
+
import { UPDATE_MODEL_EVENT, INPUT_EVENT } from '../../../constants/event.mjs';
|
|
10
6
|
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
setup(__props, { expose, emit }) {
|
|
20
|
-
const props = __props;
|
|
21
|
-
const ns = useNamespace("calendar");
|
|
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("div", {
|
|
43
|
-
class: normalizeClass(unref(ns).b())
|
|
44
|
-
}, [
|
|
45
|
-
createElementVNode("div", {
|
|
46
|
-
class: normalizeClass(unref(ns).e("header"))
|
|
47
|
-
}, [
|
|
48
|
-
renderSlot(_ctx.$slots, "header", { date: unref(i18nDate) }, () => [
|
|
49
|
-
createElementVNode("div", {
|
|
50
|
-
class: normalizeClass(unref(ns).e("title"))
|
|
51
|
-
}, toDisplayString(unref(i18nDate)), 3),
|
|
52
|
-
unref(validatedRange).length === 0 ? (openBlock(), createElementBlock("div", {
|
|
53
|
-
key: 0,
|
|
54
|
-
class: normalizeClass(unref(ns).e("button-group"))
|
|
55
|
-
}, [
|
|
56
|
-
createVNode(unref(ElButtonGroup), null, {
|
|
57
|
-
default: withCtx(() => [
|
|
58
|
-
createVNode(unref(ElButton), {
|
|
59
|
-
size: "small",
|
|
60
|
-
onClick: _cache[0] || (_cache[0] = ($event) => unref(selectDate)("prev-month"))
|
|
61
|
-
}, {
|
|
62
|
-
default: withCtx(() => [
|
|
63
|
-
createTextVNode(toDisplayString(unref(t)("el.datepicker.prevMonth")), 1)
|
|
64
|
-
]),
|
|
65
|
-
_: 1
|
|
66
|
-
}),
|
|
67
|
-
createVNode(unref(ElButton), {
|
|
68
|
-
size: "small",
|
|
69
|
-
onClick: _cache[1] || (_cache[1] = ($event) => unref(selectDate)("today"))
|
|
70
|
-
}, {
|
|
71
|
-
default: withCtx(() => [
|
|
72
|
-
createTextVNode(toDisplayString(unref(t)("el.datepicker.today")), 1)
|
|
73
|
-
]),
|
|
74
|
-
_: 1
|
|
75
|
-
}),
|
|
76
|
-
createVNode(unref(ElButton), {
|
|
77
|
-
size: "small",
|
|
78
|
-
onClick: _cache[2] || (_cache[2] = ($event) => unref(selectDate)("next-month"))
|
|
79
|
-
}, {
|
|
80
|
-
default: withCtx(() => [
|
|
81
|
-
createTextVNode(toDisplayString(unref(t)("el.datepicker.nextMonth")), 1)
|
|
82
|
-
]),
|
|
83
|
-
_: 1
|
|
84
|
-
})
|
|
85
|
-
]),
|
|
86
|
-
_: 1
|
|
87
|
-
})
|
|
88
|
-
], 2)) : createCommentVNode("v-if", true)
|
|
89
|
-
])
|
|
90
|
-
], 2),
|
|
91
|
-
unref(validatedRange).length === 0 ? (openBlock(), createElementBlock("div", {
|
|
92
|
-
key: 0,
|
|
93
|
-
class: normalizeClass(unref(ns).e("body"))
|
|
94
|
-
}, [
|
|
95
|
-
createVNode(DateTable, {
|
|
96
|
-
date: unref(date),
|
|
97
|
-
"selected-day": unref(realSelectedDay),
|
|
98
|
-
onPick: unref(pickDay)
|
|
99
|
-
}, createSlots({ _: 2 }, [
|
|
100
|
-
_ctx.$slots["date-cell"] || _ctx.$slots.dateCell ? {
|
|
101
|
-
name: "date-cell",
|
|
102
|
-
fn: withCtx((data) => [
|
|
103
|
-
_ctx.$slots["date-cell"] ? renderSlot(_ctx.$slots, "date-cell", normalizeProps(mergeProps({ key: 0 }, data))) : renderSlot(_ctx.$slots, "dateCell", normalizeProps(mergeProps({ key: 1 }, data)))
|
|
104
|
-
])
|
|
105
|
-
} : void 0
|
|
106
|
-
]), 1032, ["date", "selected-day", "onPick"])
|
|
107
|
-
], 2)) : (openBlock(), createElementBlock("div", {
|
|
108
|
-
key: 1,
|
|
109
|
-
class: normalizeClass(unref(ns).e("body"))
|
|
110
|
-
}, [
|
|
111
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(validatedRange), (range_, index) => {
|
|
112
|
-
return openBlock(), createBlock(DateTable, {
|
|
113
|
-
key: index,
|
|
114
|
-
date: range_[0],
|
|
115
|
-
"selected-day": unref(realSelectedDay),
|
|
116
|
-
range: range_,
|
|
117
|
-
"hide-header": index !== 0,
|
|
118
|
-
onPick: unref(pickDay)
|
|
119
|
-
}, createSlots({ _: 2 }, [
|
|
120
|
-
_ctx.$slots["date-cell"] || _ctx.$slots.dateCell ? {
|
|
121
|
-
name: "date-cell",
|
|
122
|
-
fn: withCtx((data) => [
|
|
123
|
-
_ctx.$slots["date-cell"] ? renderSlot(_ctx.$slots, "date-cell", normalizeProps(mergeProps({ key: 0 }, data))) : renderSlot(_ctx.$slots, "dateCell", normalizeProps(mergeProps({ key: 1 }, data)))
|
|
124
|
-
])
|
|
125
|
-
} : void 0
|
|
126
|
-
]), 1032, ["date", "selected-day", "range", "hide-header", "onPick"]);
|
|
127
|
-
}), 128))
|
|
128
|
-
], 2))
|
|
129
|
-
], 2);
|
|
130
|
-
};
|
|
7
|
+
const isValidRange = (range) => isArray(range) && range.length === 2 && range.every((item) => isDate(item));
|
|
8
|
+
const calendarProps = buildProps({
|
|
9
|
+
modelValue: {
|
|
10
|
+
type: Date
|
|
11
|
+
},
|
|
12
|
+
range: {
|
|
13
|
+
type: definePropType(Array),
|
|
14
|
+
validator: isValidRange
|
|
131
15
|
}
|
|
132
16
|
});
|
|
133
|
-
|
|
17
|
+
const calendarEmits = {
|
|
18
|
+
[UPDATE_MODEL_EVENT]: (value) => isDate(value),
|
|
19
|
+
[INPUT_EVENT]: (value) => isDate(value)
|
|
20
|
+
};
|
|
134
21
|
|
|
135
|
-
export {
|
|
22
|
+
export { calendarEmits, calendarProps };
|
|
136
23
|
//# 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'\nimport type { ExtractPropTypes } 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>\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":";;;;;;AAOA,MAAM,YAAY,GAAG,CAAC,KAAK,KAAK,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,KAAK,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;AAChG,MAAC,aAAa,GAAG,UAAU,CAAC;AACxC,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,IAAI;AACd,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,cAAc,CAAC,KAAK,CAAC;AAC/B,IAAI,SAAS,EAAE,YAAY;AAC3B,GAAG;AACH,CAAC,EAAE;AACS,MAAC,aAAa,GAAG;AAC7B,EAAE,CAAC,kBAAkB,GAAG,CAAC,KAAK,KAAK,MAAM,CAAC,KAAK,CAAC;AAChD,EAAE,CAAC,WAAW,GAAG,CAAC,KAAK,KAAK,MAAM,CAAC,KAAK,CAAC;AACzC;;;;"}
|
|
@@ -1,23 +1,136 @@
|
|
|
1
|
-
import '
|
|
2
|
-
import '
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
1
|
+
import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, renderSlot, toDisplayString, createVNode, withCtx, createTextVNode, createCommentVNode, createSlots, normalizeProps, mergeProps, Fragment, renderList, createBlock } from 'vue';
|
|
2
|
+
import { ElButtonGroup, ElButton } from '../../button/index.mjs';
|
|
3
|
+
import '../../../hooks/index.mjs';
|
|
4
|
+
import DateTable from './date-table2.mjs';
|
|
5
|
+
import { useCalendar } from './use-calendar.mjs';
|
|
6
|
+
import { calendarProps, calendarEmits } from './calendar.mjs';
|
|
7
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
8
|
+
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
9
|
+
import { useLocale } from '../../../hooks/use-locale/index.mjs';
|
|
6
10
|
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
const COMPONENT_NAME = "ElCalendar";
|
|
12
|
+
const __default__ = defineComponent({
|
|
13
|
+
name: COMPONENT_NAME
|
|
14
|
+
});
|
|
15
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
16
|
+
...__default__,
|
|
17
|
+
props: calendarProps,
|
|
18
|
+
emits: calendarEmits,
|
|
19
|
+
setup(__props, { expose, emit }) {
|
|
20
|
+
const props = __props;
|
|
21
|
+
const ns = useNamespace("calendar");
|
|
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("div", {
|
|
43
|
+
class: normalizeClass(unref(ns).b())
|
|
44
|
+
}, [
|
|
45
|
+
createElementVNode("div", {
|
|
46
|
+
class: normalizeClass(unref(ns).e("header"))
|
|
47
|
+
}, [
|
|
48
|
+
renderSlot(_ctx.$slots, "header", { date: unref(i18nDate) }, () => [
|
|
49
|
+
createElementVNode("div", {
|
|
50
|
+
class: normalizeClass(unref(ns).e("title"))
|
|
51
|
+
}, toDisplayString(unref(i18nDate)), 3),
|
|
52
|
+
unref(validatedRange).length === 0 ? (openBlock(), createElementBlock("div", {
|
|
53
|
+
key: 0,
|
|
54
|
+
class: normalizeClass(unref(ns).e("button-group"))
|
|
55
|
+
}, [
|
|
56
|
+
createVNode(unref(ElButtonGroup), null, {
|
|
57
|
+
default: withCtx(() => [
|
|
58
|
+
createVNode(unref(ElButton), {
|
|
59
|
+
size: "small",
|
|
60
|
+
onClick: _cache[0] || (_cache[0] = ($event) => unref(selectDate)("prev-month"))
|
|
61
|
+
}, {
|
|
62
|
+
default: withCtx(() => [
|
|
63
|
+
createTextVNode(toDisplayString(unref(t)("el.datepicker.prevMonth")), 1)
|
|
64
|
+
]),
|
|
65
|
+
_: 1
|
|
66
|
+
}),
|
|
67
|
+
createVNode(unref(ElButton), {
|
|
68
|
+
size: "small",
|
|
69
|
+
onClick: _cache[1] || (_cache[1] = ($event) => unref(selectDate)("today"))
|
|
70
|
+
}, {
|
|
71
|
+
default: withCtx(() => [
|
|
72
|
+
createTextVNode(toDisplayString(unref(t)("el.datepicker.today")), 1)
|
|
73
|
+
]),
|
|
74
|
+
_: 1
|
|
75
|
+
}),
|
|
76
|
+
createVNode(unref(ElButton), {
|
|
77
|
+
size: "small",
|
|
78
|
+
onClick: _cache[2] || (_cache[2] = ($event) => unref(selectDate)("next-month"))
|
|
79
|
+
}, {
|
|
80
|
+
default: withCtx(() => [
|
|
81
|
+
createTextVNode(toDisplayString(unref(t)("el.datepicker.nextMonth")), 1)
|
|
82
|
+
]),
|
|
83
|
+
_: 1
|
|
84
|
+
})
|
|
85
|
+
]),
|
|
86
|
+
_: 1
|
|
87
|
+
})
|
|
88
|
+
], 2)) : createCommentVNode("v-if", true)
|
|
89
|
+
])
|
|
90
|
+
], 2),
|
|
91
|
+
unref(validatedRange).length === 0 ? (openBlock(), createElementBlock("div", {
|
|
92
|
+
key: 0,
|
|
93
|
+
class: normalizeClass(unref(ns).e("body"))
|
|
94
|
+
}, [
|
|
95
|
+
createVNode(DateTable, {
|
|
96
|
+
date: unref(date),
|
|
97
|
+
"selected-day": unref(realSelectedDay),
|
|
98
|
+
onPick: unref(pickDay)
|
|
99
|
+
}, createSlots({ _: 2 }, [
|
|
100
|
+
_ctx.$slots["date-cell"] || _ctx.$slots.dateCell ? {
|
|
101
|
+
name: "date-cell",
|
|
102
|
+
fn: withCtx((data) => [
|
|
103
|
+
_ctx.$slots["date-cell"] ? renderSlot(_ctx.$slots, "date-cell", normalizeProps(mergeProps({ key: 0 }, data))) : renderSlot(_ctx.$slots, "dateCell", normalizeProps(mergeProps({ key: 1 }, data)))
|
|
104
|
+
])
|
|
105
|
+
} : void 0
|
|
106
|
+
]), 1032, ["date", "selected-day", "onPick"])
|
|
107
|
+
], 2)) : (openBlock(), createElementBlock("div", {
|
|
108
|
+
key: 1,
|
|
109
|
+
class: normalizeClass(unref(ns).e("body"))
|
|
110
|
+
}, [
|
|
111
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(validatedRange), (range_, index) => {
|
|
112
|
+
return openBlock(), createBlock(DateTable, {
|
|
113
|
+
key: index,
|
|
114
|
+
date: range_[0],
|
|
115
|
+
"selected-day": unref(realSelectedDay),
|
|
116
|
+
range: range_,
|
|
117
|
+
"hide-header": index !== 0,
|
|
118
|
+
onPick: unref(pickDay)
|
|
119
|
+
}, createSlots({ _: 2 }, [
|
|
120
|
+
_ctx.$slots["date-cell"] || _ctx.$slots.dateCell ? {
|
|
121
|
+
name: "date-cell",
|
|
122
|
+
fn: withCtx((data) => [
|
|
123
|
+
_ctx.$slots["date-cell"] ? renderSlot(_ctx.$slots, "date-cell", normalizeProps(mergeProps({ key: 0 }, data))) : renderSlot(_ctx.$slots, "dateCell", normalizeProps(mergeProps({ key: 1 }, data)))
|
|
124
|
+
])
|
|
125
|
+
} : void 0
|
|
126
|
+
]), 1032, ["date", "selected-day", "range", "hide-header", "onPick"]);
|
|
127
|
+
}), 128))
|
|
128
|
+
], 2))
|
|
129
|
+
], 2);
|
|
130
|
+
};
|
|
15
131
|
}
|
|
16
132
|
});
|
|
17
|
-
|
|
18
|
-
[UPDATE_MODEL_EVENT]: (value) => isDate(value),
|
|
19
|
-
[INPUT_EVENT]: (value) => isDate(value)
|
|
20
|
-
};
|
|
133
|
+
var Calendar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "calendar.vue"]]);
|
|
21
134
|
|
|
22
|
-
export {
|
|
135
|
+
export { Calendar as default };
|
|
23
136
|
//# 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\n v-if=\"$slots['date-cell'] || $slots.dateCell\"\n #date-cell=\"data\"\n >\n <slot v-if=\"$slots['date-cell']\" name=\"date-cell\" v-bind=\"data\" />\n <slot v-else name=\"dateCell\" 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\n v-if=\"$slots['date-cell'] || $slots.dateCell\"\n #date-cell=\"data\"\n >\n <slot v-if=\"$slots['date-cell']\" name=\"date-cell\" v-bind=\"data\" />\n <slot v-else name=\"dateCell\" 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'\n\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":[],"mappings":";;;;;;;;;;;mCAiEc,CAAA;AAAA,EACZ,IAAM,EAAA,cAAA;AACR;;;;;;;AALA,IAAM,MAAA,EAAA,GAAK,aAAa,UAAU,CAAA,CAAA;AAUlC,IAAM,MAAA;AAAA,MACJ,2BAAA;AAAA,MACA,IAAA;AAAA,MACA,OAAA;AAAA,MACA,eAAA;AAAA,MACA,UAAA;AAAA,MACA,cAAA;AAAA,KACE,GAAA,WAAA,CAAY,KAAO,EAAA,IAAA,EAAM,cAAc,CAAA,CAAA;AAE3C,IAAM,MAAA,EAAE,MAAM,SAAU,EAAA,CAAA;AAExB,IAAM,MAAA,QAAA,GAAW,SAAS,MAAM;AAC9B,MAAA,MAAM,WAAc,GAAA,CAAA,mBAAA,EAAsB,IAAK,CAAA,KAAA,CAAM,OAAO,GAAG,CAAA,CAAA,CAAA,CAAA;AAC/D,MAAO,OAAA,CAAA,EAAG,KAAK,KAAM,CAAA,IAAA,MAAU,CAAE,CAAA,oBAAoB,CAAK,CAAA,CAAA,EAAA,CAAA,CAAE,WAAW,CAAA,CAAA,CAAA,CAAA;AAAA,KACxE,CAAA,CAAA;AAED,IAAa,MAAA,CAAA;AAAA,MAEX,WAAa,EAAA,eAAA;AAAA,MAEb,OAAA;AAAA,MAEA,UAAA;AAAA,MAEA,2BAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -87,7 +87,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
87
87
|
};
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
|
-
var DateTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "
|
|
90
|
+
var DateTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "date-table.vue"]]);
|
|
91
91
|
|
|
92
92
|
export { DateTable as default };
|
|
93
93
|
//# sourceMappingURL=date-table2.mjs.map
|
|
@@ -42,7 +42,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
|
-
var Card = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "
|
|
45
|
+
var Card = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "card.vue"]]);
|
|
46
46
|
|
|
47
47
|
export { Card as default };
|
|
48
48
|
//# sourceMappingURL=card2.mjs.map
|
|
@@ -68,7 +68,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
70
|
});
|
|
71
|
-
var CarouselItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "
|
|
71
|
+
var CarouselItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "carousel-item.vue"]]);
|
|
72
72
|
|
|
73
73
|
export { CarouselItem as default };
|
|
74
74
|
//# sourceMappingURL=carousel-item2.mjs.map
|
|
@@ -168,7 +168,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
168
168
|
};
|
|
169
169
|
}
|
|
170
170
|
});
|
|
171
|
-
var Carousel = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "
|
|
171
|
+
var Carousel = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "carousel.vue"]]);
|
|
172
172
|
|
|
173
173
|
export { Carousel as default };
|
|
174
174
|
//# sourceMappingURL=carousel2.mjs.map
|
|
@@ -628,7 +628,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
628
628
|
};
|
|
629
629
|
}
|
|
630
630
|
});
|
|
631
|
-
var Cascader = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "
|
|
631
|
+
var Cascader = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "cascader.vue"]]);
|
|
632
632
|
|
|
633
633
|
export { Cascader as default };
|
|
634
634
|
//# sourceMappingURL=cascader2.mjs.map
|
|
@@ -285,7 +285,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
285
285
|
}), 128))
|
|
286
286
|
], 34);
|
|
287
287
|
}
|
|
288
|
-
var CascaderPanel = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
288
|
+
var CascaderPanel = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "index.vue"]]);
|
|
289
289
|
|
|
290
290
|
export { CascaderPanel as default };
|
|
291
291
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -142,7 +142,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
142
142
|
_: 1
|
|
143
143
|
}, 8, ["class", "wrap-class", "view-class", "onMousemove", "onMouseleave"]);
|
|
144
144
|
}
|
|
145
|
-
var ElCascaderMenu = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
145
|
+
var ElCascaderMenu = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "menu.vue"]]);
|
|
146
146
|
|
|
147
147
|
export { ElCascaderMenu as default };
|
|
148
148
|
//# sourceMappingURL=menu.mjs.map
|
|
@@ -209,7 +209,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
209
209
|
], 64)) : createCommentVNode("v-if", true)
|
|
210
210
|
], 42, _hoisted_1);
|
|
211
211
|
}
|
|
212
|
-
var ElCascaderNode = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
212
|
+
var ElCascaderNode = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "node.vue"]]);
|
|
213
213
|
|
|
214
214
|
export { ElCascaderNode as default };
|
|
215
215
|
//# sourceMappingURL=node2.mjs.map
|
|
@@ -32,7 +32,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
});
|
|
35
|
-
var CheckTag = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "
|
|
35
|
+
var CheckTag = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "check-tag.vue"]]);
|
|
36
36
|
|
|
37
37
|
export { CheckTag as default };
|
|
38
38
|
//# sourceMappingURL=check-tag2.mjs.map
|
|
@@ -99,7 +99,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
99
99
|
};
|
|
100
100
|
}
|
|
101
101
|
});
|
|
102
|
-
var CheckboxButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "
|
|
102
|
+
var CheckboxButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "checkbox-button.vue"]]);
|
|
103
103
|
|
|
104
104
|
export { CheckboxButton as default };
|
|
105
105
|
//# sourceMappingURL=checkbox-button.mjs.map
|
|
@@ -74,7 +74,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
76
|
});
|
|
77
|
-
var CheckboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "
|
|
77
|
+
var CheckboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "checkbox-group.vue"]]);
|
|
78
78
|
|
|
79
79
|
export { CheckboxGroup as default };
|
|
80
80
|
//# sourceMappingURL=checkbox-group2.mjs.map
|
|
@@ -116,7 +116,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
116
116
|
};
|
|
117
117
|
}
|
|
118
118
|
});
|
|
119
|
-
var Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "
|
|
119
|
+
var Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "checkbox.vue"]]);
|
|
120
120
|
|
|
121
121
|
export { Checkbox as default };
|
|
122
122
|
//# sourceMappingURL=checkbox2.mjs.map
|
|
@@ -66,7 +66,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
68
|
});
|
|
69
|
-
var Col = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "
|
|
69
|
+
var Col = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "col.vue"]]);
|
|
70
70
|
|
|
71
71
|
export { Col as default };
|
|
72
72
|
//# sourceMappingURL=col2.mjs.map
|
|
@@ -89,7 +89,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
91
|
});
|
|
92
|
-
var CollapseItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "
|
|
92
|
+
var CollapseItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "collapse-item.vue"]]);
|
|
93
93
|
|
|
94
94
|
export { CollapseItem as default };
|
|
95
95
|
//# sourceMappingURL=collapse-item2.mjs.map
|
|
@@ -27,7 +27,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
|
-
var Collapse = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "
|
|
30
|
+
var Collapse = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "collapse.vue"]]);
|
|
31
31
|
|
|
32
32
|
export { Collapse as default };
|
|
33
33
|
//# sourceMappingURL=collapse2.mjs.map
|
|
@@ -22,20 +22,26 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
22
22
|
el.dataset = {};
|
|
23
23
|
el.dataset.oldPaddingTop = el.style.paddingTop;
|
|
24
24
|
el.dataset.oldPaddingBottom = el.style.paddingBottom;
|
|
25
|
+
if (el.style.height)
|
|
26
|
+
el.dataset.elExistsHeight = el.style.height;
|
|
25
27
|
el.style.maxHeight = 0;
|
|
26
28
|
el.style.paddingTop = 0;
|
|
27
29
|
el.style.paddingBottom = 0;
|
|
28
30
|
},
|
|
29
31
|
enter(el) {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
el.
|
|
33
|
-
|
|
34
|
-
el.
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
32
|
+
requestAnimationFrame(() => {
|
|
33
|
+
el.dataset.oldOverflow = el.style.overflow;
|
|
34
|
+
if (el.dataset.elExistsHeight) {
|
|
35
|
+
el.style.maxHeight = el.dataset.elExistsHeight;
|
|
36
|
+
} else if (el.scrollHeight !== 0) {
|
|
37
|
+
el.style.maxHeight = `${el.scrollHeight}px`;
|
|
38
|
+
} else {
|
|
39
|
+
el.style.maxHeight = 0;
|
|
40
|
+
}
|
|
41
|
+
el.style.paddingTop = el.dataset.oldPaddingTop;
|
|
42
|
+
el.style.paddingBottom = el.dataset.oldPaddingBottom;
|
|
43
|
+
el.style.overflow = "hidden";
|
|
44
|
+
});
|
|
39
45
|
},
|
|
40
46
|
afterEnter(el) {
|
|
41
47
|
el.style.maxHeight = "";
|
|
@@ -79,7 +85,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
79
85
|
};
|
|
80
86
|
}
|
|
81
87
|
});
|
|
82
|
-
var CollapseTransition = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "
|
|
88
|
+
var CollapseTransition = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "collapse-transition.vue"]]);
|
|
83
89
|
|
|
84
90
|
export { CollapseTransition as default };
|
|
85
91
|
//# sourceMappingURL=collapse-transition.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collapse-transition.mjs","sources":["../../../../../../packages/components/collapse-transition/src/collapse-transition.vue"],"sourcesContent":["<template>\n <transition :name=\"ns.b()\" v-on=\"on\">\n <slot />\n </transition>\n</template>\n<script lang=\"ts\" setup>\nimport { useNamespace } from '@element-plus/hooks'\nimport type { RendererElement } from '@vue/runtime-core'\n\ndefineOptions({\n name: 'ElCollapseTransition',\n})\n\nconst ns = useNamespace('collapse-transition')\n\nconst reset = (el: RendererElement) => {\n el.style.maxHeight = ''\n el.style.overflow = el.dataset.oldOverflow\n el.style.paddingTop = el.dataset.oldPaddingTop\n el.style.paddingBottom = el.dataset.oldPaddingBottom\n}\n\nconst on = {\n beforeEnter(el: RendererElement) {\n if (!el.dataset) el.dataset = {}\n\n el.dataset.oldPaddingTop = el.style.paddingTop\n el.dataset.oldPaddingBottom = el.style.paddingBottom\n\n el.style.maxHeight = 0\n el.style.paddingTop = 0\n el.style.paddingBottom = 0\n },\n\n enter(el: RendererElement) {\n el.dataset.oldOverflow = el.style.overflow\n
|
|
1
|
+
{"version":3,"file":"collapse-transition.mjs","sources":["../../../../../../packages/components/collapse-transition/src/collapse-transition.vue"],"sourcesContent":["<template>\n <transition :name=\"ns.b()\" v-on=\"on\">\n <slot />\n </transition>\n</template>\n<script lang=\"ts\" setup>\nimport { useNamespace } from '@element-plus/hooks'\nimport type { RendererElement } from '@vue/runtime-core'\n\ndefineOptions({\n name: 'ElCollapseTransition',\n})\n\nconst ns = useNamespace('collapse-transition')\n\nconst reset = (el: RendererElement) => {\n el.style.maxHeight = ''\n el.style.overflow = el.dataset.oldOverflow\n el.style.paddingTop = el.dataset.oldPaddingTop\n el.style.paddingBottom = el.dataset.oldPaddingBottom\n}\n\nconst on = {\n beforeEnter(el: RendererElement) {\n if (!el.dataset) el.dataset = {}\n\n el.dataset.oldPaddingTop = el.style.paddingTop\n el.dataset.oldPaddingBottom = el.style.paddingBottom\n if (el.style.height) el.dataset.elExistsHeight = el.style.height\n\n el.style.maxHeight = 0\n el.style.paddingTop = 0\n el.style.paddingBottom = 0\n },\n\n enter(el: RendererElement) {\n requestAnimationFrame(() => {\n el.dataset.oldOverflow = el.style.overflow\n if (el.dataset.elExistsHeight) {\n el.style.maxHeight = el.dataset.elExistsHeight\n } else if (el.scrollHeight !== 0) {\n el.style.maxHeight = `${el.scrollHeight}px`\n } else {\n el.style.maxHeight = 0\n }\n\n el.style.paddingTop = el.dataset.oldPaddingTop\n el.style.paddingBottom = el.dataset.oldPaddingBottom\n el.style.overflow = 'hidden'\n })\n },\n\n afterEnter(el: RendererElement) {\n el.style.maxHeight = ''\n el.style.overflow = el.dataset.oldOverflow\n },\n\n enterCancelled(el: RendererElement) {\n reset(el)\n },\n\n beforeLeave(el: RendererElement) {\n if (!el.dataset) el.dataset = {}\n el.dataset.oldPaddingTop = el.style.paddingTop\n el.dataset.oldPaddingBottom = el.style.paddingBottom\n el.dataset.oldOverflow = el.style.overflow\n\n el.style.maxHeight = `${el.scrollHeight}px`\n el.style.overflow = 'hidden'\n },\n\n leave(el: RendererElement) {\n if (el.scrollHeight !== 0) {\n el.style.maxHeight = 0\n el.style.paddingTop = 0\n el.style.paddingBottom = 0\n }\n },\n\n afterLeave(el: RendererElement) {\n reset(el)\n },\n\n leaveCancelled(el: RendererElement) {\n reset(el)\n },\n}\n</script>\n"],"names":[],"mappings":"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"}
|
|
@@ -8,7 +8,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
8
8
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9
9
|
return renderSlot(_ctx.$slots, "default");
|
|
10
10
|
}
|
|
11
|
-
var CollectionItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
11
|
+
var CollectionItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "collection-item.vue"]]);
|
|
12
12
|
|
|
13
13
|
export { CollectionItem as default };
|
|
14
14
|
//# sourceMappingURL=collection-item.mjs.map
|
|
@@ -7,7 +7,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7
7
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8
8
|
return renderSlot(_ctx.$slots, "default");
|
|
9
9
|
}
|
|
10
|
-
var Collection = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
10
|
+
var Collection = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "collection.vue"]]);
|
|
11
11
|
|
|
12
12
|
export { Collection as default };
|
|
13
13
|
//# sourceMappingURL=collection2.mjs.map
|