element-plus 2.3.4 → 2.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/dist/index.full.js +159 -111
- package/dist/index.full.min.js +24 -24
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +24 -24
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +160 -111
- 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 +21 -21
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.js.map +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.min.mjs.map +1 -1
- package/dist/locale/fa.mjs +21 -21
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/carousel/index.d.ts +10 -0
- package/es/components/carousel/src/carousel-item.vue.d.ts +1 -0
- package/es/components/carousel/src/carousel-item2.mjs +7 -1
- package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
- package/es/components/carousel/src/carousel.vue.d.ts +8 -0
- package/es/components/carousel/src/carousel2.mjs +7 -2
- package/es/components/carousel/src/carousel2.mjs.map +1 -1
- package/es/components/carousel/src/constants.d.ts +1 -0
- package/es/components/carousel/src/constants.mjs.map +1 -1
- package/es/components/carousel/src/use-carousel-item.d.ts +1 -0
- package/es/components/carousel/src/use-carousel-item.mjs +7 -5
- package/es/components/carousel/src/use-carousel-item.mjs.map +1 -1
- package/es/components/carousel/src/use-carousel.d.ts +8 -0
- package/es/components/carousel/src/use-carousel.mjs +21 -1
- package/es/components/carousel/src/use-carousel.mjs.map +1 -1
- package/es/components/cascader/index.d.ts +16 -16
- package/es/components/cascader/src/cascader.vue.d.ts +8 -8
- package/es/components/check-tag/index.d.ts +1 -0
- package/es/components/check-tag/src/check-tag.mjs.map +1 -1
- package/es/components/check-tag/src/check-tag.vue.d.ts +1 -0
- package/es/components/check-tag/src/check-tag2.mjs +3 -2
- package/es/components/check-tag/src/check-tag2.mjs.map +1 -1
- package/es/components/empty/src/empty.mjs.map +1 -1
- package/es/components/image/src/image2.mjs +1 -1
- package/es/components/image/src/image2.mjs.map +1 -1
- package/es/components/index.mjs +1 -1
- package/es/components/input-number/src/input-number2.mjs +4 -1
- package/es/components/input-number/src/input-number2.mjs.map +1 -1
- package/es/components/loading/src/service.mjs +2 -2
- package/es/components/loading/src/service.mjs.map +1 -1
- package/es/components/menu/src/menu.mjs +1 -1
- package/es/components/menu/src/menu.mjs.map +1 -1
- package/es/components/message-box/src/index.mjs +0 -2
- package/es/components/message-box/src/index.mjs.map +1 -1
- package/es/components/notification/src/notification.d.ts +1 -1
- package/es/components/notification/src/notification.mjs +1 -4
- package/es/components/notification/src/notification.mjs.map +1 -1
- package/es/components/notification/src/notification.vue.d.ts +3 -4
- package/es/components/notification/src/notification2.mjs +2 -1
- package/es/components/notification/src/notification2.mjs.map +1 -1
- package/es/components/page-header/src/page-header.mjs.map +1 -1
- package/es/components/pagination/index.d.ts +6 -6
- package/es/components/pagination/src/components/pager.vue.d.ts +2 -0
- package/es/components/pagination/src/components/pager2.mjs +14 -12
- package/es/components/pagination/src/components/pager2.mjs.map +1 -1
- package/es/components/pagination/src/components/sizes.vue.d.ts +1 -3
- package/es/components/pagination/src/pagination.d.ts +9 -9
- package/es/components/pagination/src/pagination.mjs +3 -3
- package/es/components/pagination/src/pagination.mjs.map +1 -1
- package/es/components/popper/src/composables/use-content-dom.mjs +2 -2
- package/es/components/popper/src/composables/use-content-dom.mjs.map +1 -1
- package/es/components/progress/src/progress.mjs.map +1 -1
- package/es/components/radio/index.mjs +2 -2
- package/es/components/radio/src/radio-button.mjs +1 -1
- package/es/components/radio/src/radio-group.mjs +1 -1
- package/es/components/radio/src/radio.mjs +71 -30
- package/es/components/radio/src/radio.mjs.map +1 -1
- package/es/components/radio/src/radio2.mjs +30 -71
- package/es/components/radio/src/radio2.mjs.map +1 -1
- package/es/components/result/src/result.mjs.map +1 -1
- package/es/components/select/index.d.ts +1 -3
- package/es/components/select/src/option.mjs +1 -1
- package/es/components/select/src/option.mjs.map +1 -1
- package/es/components/select/src/select.mjs +0 -4
- package/es/components/select/src/select.mjs.map +1 -1
- package/es/components/select/src/select.vue.d.ts +1 -3
- package/es/components/select/src/token.d.ts +1 -1
- package/es/components/select/src/token.mjs.map +1 -1
- package/es/components/select/src/useSelect.d.ts +1 -3
- package/es/components/select/src/useSelect.mjs +16 -14
- package/es/components/select/src/useSelect.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton-item.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton.mjs.map +1 -1
- package/es/components/steps/index.d.ts +7 -3
- package/es/components/steps/src/item.vue.d.ts +5 -2
- package/es/components/steps/src/item2.mjs +12 -9
- package/es/components/steps/src/item2.mjs.map +1 -1
- package/es/components/steps/src/steps.vue.d.ts +3 -2
- package/es/components/steps/src/steps2.mjs +8 -3
- package/es/components/steps/src/steps2.mjs.map +1 -1
- package/es/components/table/src/table/style-helper.mjs +3 -7
- package/es/components/table/src/table/style-helper.mjs.map +1 -1
- package/es/components/table/src/table-header/event-helper.mjs +6 -2
- package/es/components/table/src/table-header/event-helper.mjs.map +1 -1
- package/es/components/table-v2/src/renderers/cell.mjs +1 -1
- package/es/components/table-v2/src/renderers/cell.mjs.map +1 -1
- package/es/components/tag/index.d.ts +8 -8
- package/es/components/tag/src/tag.d.ts +2 -2
- package/es/components/tag/src/tag.mjs +2 -2
- package/es/components/tag/src/tag.mjs.map +1 -1
- package/es/components/tag/src/tag.vue.d.ts +8 -8
- package/es/components/tag/src/tag2.mjs +3 -3
- package/es/components/tag/src/tag2.mjs.map +1 -1
- package/es/components/teleport/index.mjs +2 -2
- package/es/components/teleport/src/teleport.mjs +44 -18
- package/es/components/teleport/src/teleport.mjs.map +1 -1
- package/es/components/teleport/src/teleport2.mjs +18 -44
- package/es/components/teleport/src/teleport2.mjs.map +1 -1
- package/es/components/time-select/index.d.ts +4 -12
- package/es/components/time-select/src/time-select.mjs.map +1 -1
- package/es/components/time-select/src/time-select.vue.d.ts +2 -6
- package/es/components/time-select/src/time-select2.mjs.map +1 -1
- package/es/components/timeline/index.d.ts +38 -0
- package/es/components/timeline/src/timeline-item.mjs.map +1 -1
- package/es/components/timeline/src/timeline-item.vue.d.ts +19 -0
- package/es/components/timeline/src/timeline-item2.mjs +9 -7
- package/es/components/timeline/src/timeline-item2.mjs.map +1 -1
- package/es/components/tree/index.d.ts +2 -2
- package/es/components/tree/src/model/useDragNode.mjs +2 -2
- package/es/components/tree/src/model/useDragNode.mjs.map +1 -1
- package/es/components/tree/src/tree.type.d.ts +1 -1
- package/es/components/tree/src/tree.vue.d.ts +1 -1
- package/es/components/tree-select/src/tree-select.mjs.map +1 -1
- package/es/components/tree-select/src/tree.mjs +21 -4
- package/es/components/tree-select/src/tree.mjs.map +1 -1
- package/es/components/upload/src/upload-content2.mjs +5 -1
- package/es/components/upload/src/upload-content2.mjs.map +1 -1
- package/es/hooks/index.d.ts +0 -1
- package/es/hooks/index.mjs +0 -1
- package/es/hooks/index.mjs.map +1 -1
- package/es/index.mjs +1 -2
- package/es/index.mjs.map +1 -1
- package/es/locale/lang/fa.mjs +20 -20
- package/es/locale/lang/fa.mjs.map +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/carousel/index.d.ts +10 -0
- package/lib/components/carousel/src/carousel-item.vue.d.ts +1 -0
- package/lib/components/carousel/src/carousel-item2.js +7 -1
- package/lib/components/carousel/src/carousel-item2.js.map +1 -1
- package/lib/components/carousel/src/carousel.vue.d.ts +8 -0
- package/lib/components/carousel/src/carousel2.js +7 -2
- package/lib/components/carousel/src/carousel2.js.map +1 -1
- package/lib/components/carousel/src/constants.d.ts +1 -0
- package/lib/components/carousel/src/constants.js.map +1 -1
- package/lib/components/carousel/src/use-carousel-item.d.ts +1 -0
- package/lib/components/carousel/src/use-carousel-item.js +7 -5
- package/lib/components/carousel/src/use-carousel-item.js.map +1 -1
- package/lib/components/carousel/src/use-carousel.d.ts +8 -0
- package/lib/components/carousel/src/use-carousel.js +21 -1
- package/lib/components/carousel/src/use-carousel.js.map +1 -1
- package/lib/components/cascader/index.d.ts +16 -16
- package/lib/components/cascader/src/cascader.vue.d.ts +8 -8
- package/lib/components/check-tag/index.d.ts +1 -0
- package/lib/components/check-tag/src/check-tag.js.map +1 -1
- package/lib/components/check-tag/src/check-tag.vue.d.ts +1 -0
- package/lib/components/check-tag/src/check-tag2.js +2 -1
- package/lib/components/check-tag/src/check-tag2.js.map +1 -1
- package/lib/components/empty/src/empty.js.map +1 -1
- package/lib/components/image/src/image2.js +1 -1
- package/lib/components/image/src/image2.js.map +1 -1
- package/lib/components/index.js +1 -1
- package/lib/components/input-number/src/input-number2.js +3 -0
- package/lib/components/input-number/src/input-number2.js.map +1 -1
- package/lib/components/loading/src/service.js +2 -2
- package/lib/components/loading/src/service.js.map +1 -1
- package/lib/components/menu/src/menu.js +1 -1
- package/lib/components/menu/src/menu.js.map +1 -1
- package/lib/components/message-box/src/index.js +0 -2
- package/lib/components/message-box/src/index.js.map +1 -1
- package/lib/components/notification/src/notification.d.ts +1 -1
- package/lib/components/notification/src/notification.js +1 -4
- package/lib/components/notification/src/notification.js.map +1 -1
- package/lib/components/notification/src/notification.vue.d.ts +3 -4
- package/lib/components/notification/src/notification2.js +2 -1
- package/lib/components/notification/src/notification2.js.map +1 -1
- package/lib/components/page-header/src/page-header.js.map +1 -1
- package/lib/components/pagination/index.d.ts +6 -6
- package/lib/components/pagination/src/components/pager.vue.d.ts +2 -0
- package/lib/components/pagination/src/components/pager2.js +14 -12
- package/lib/components/pagination/src/components/pager2.js.map +1 -1
- package/lib/components/pagination/src/components/sizes.vue.d.ts +1 -3
- package/lib/components/pagination/src/pagination.d.ts +9 -9
- package/lib/components/pagination/src/pagination.js +3 -3
- package/lib/components/pagination/src/pagination.js.map +1 -1
- package/lib/components/popper/src/composables/use-content-dom.js +2 -2
- package/lib/components/popper/src/composables/use-content-dom.js.map +1 -1
- package/lib/components/progress/src/progress.js.map +1 -1
- package/lib/components/radio/index.js +2 -2
- package/lib/components/radio/src/radio-button.js +1 -1
- package/lib/components/radio/src/radio-group.js +1 -1
- package/lib/components/radio/src/radio.js +71 -32
- package/lib/components/radio/src/radio.js.map +1 -1
- package/lib/components/radio/src/radio2.js +32 -71
- package/lib/components/radio/src/radio2.js.map +1 -1
- package/lib/components/result/src/result.js.map +1 -1
- package/lib/components/select/index.d.ts +1 -3
- package/lib/components/select/src/option.js +1 -1
- package/lib/components/select/src/option.js.map +1 -1
- package/lib/components/select/src/select.js +0 -4
- package/lib/components/select/src/select.js.map +1 -1
- package/lib/components/select/src/select.vue.d.ts +1 -3
- package/lib/components/select/src/token.d.ts +1 -1
- package/lib/components/select/src/token.js.map +1 -1
- package/lib/components/select/src/useSelect.d.ts +1 -3
- package/lib/components/select/src/useSelect.js +16 -14
- package/lib/components/select/src/useSelect.js.map +1 -1
- package/lib/components/skeleton/src/skeleton-item.js.map +1 -1
- package/lib/components/skeleton/src/skeleton.js.map +1 -1
- package/lib/components/steps/index.d.ts +7 -3
- package/lib/components/steps/src/item.vue.d.ts +5 -2
- package/lib/components/steps/src/item2.js +12 -9
- package/lib/components/steps/src/item2.js.map +1 -1
- package/lib/components/steps/src/steps.vue.d.ts +3 -2
- package/lib/components/steps/src/steps2.js +7 -2
- package/lib/components/steps/src/steps2.js.map +1 -1
- package/lib/components/table/src/table/style-helper.js +3 -7
- package/lib/components/table/src/table/style-helper.js.map +1 -1
- package/lib/components/table/src/table-header/event-helper.js +6 -2
- package/lib/components/table/src/table-header/event-helper.js.map +1 -1
- package/lib/components/table-v2/src/renderers/cell.js +1 -1
- package/lib/components/table-v2/src/renderers/cell.js.map +1 -1
- package/lib/components/tag/index.d.ts +8 -8
- package/lib/components/tag/src/tag.d.ts +2 -2
- package/lib/components/tag/src/tag.js +2 -2
- package/lib/components/tag/src/tag.js.map +1 -1
- package/lib/components/tag/src/tag.vue.d.ts +8 -8
- package/lib/components/tag/src/tag2.js +3 -3
- package/lib/components/tag/src/tag2.js.map +1 -1
- package/lib/components/teleport/index.js +2 -2
- package/lib/components/teleport/src/teleport.js +44 -18
- package/lib/components/teleport/src/teleport.js.map +1 -1
- package/lib/components/teleport/src/teleport2.js +18 -44
- package/lib/components/teleport/src/teleport2.js.map +1 -1
- package/lib/components/time-select/index.d.ts +4 -12
- package/lib/components/time-select/src/time-select.js.map +1 -1
- package/lib/components/time-select/src/time-select.vue.d.ts +2 -6
- package/lib/components/time-select/src/time-select2.js.map +1 -1
- package/lib/components/timeline/index.d.ts +38 -0
- package/lib/components/timeline/src/timeline-item.js.map +1 -1
- package/lib/components/timeline/src/timeline-item.vue.d.ts +19 -0
- package/lib/components/timeline/src/timeline-item2.js +8 -6
- package/lib/components/timeline/src/timeline-item2.js.map +1 -1
- package/lib/components/tree/index.d.ts +2 -2
- package/lib/components/tree/src/model/useDragNode.js +2 -2
- package/lib/components/tree/src/model/useDragNode.js.map +1 -1
- package/lib/components/tree/src/tree.type.d.ts +1 -1
- package/lib/components/tree/src/tree.vue.d.ts +1 -1
- package/lib/components/tree-select/src/tree-select.js.map +1 -1
- package/lib/components/tree-select/src/tree.js +21 -4
- package/lib/components/tree-select/src/tree.js.map +1 -1
- package/lib/components/upload/src/upload-content2.js +4 -0
- package/lib/components/upload/src/upload-content2.js.map +1 -1
- package/lib/hooks/index.d.ts +0 -1
- package/lib/hooks/index.js +52 -54
- package/lib/hooks/index.js.map +1 -1
- package/lib/index.js +53 -55
- package/lib/index.js.map +1 -1
- package/lib/locale/lang/fa.js +20 -20
- package/lib/locale/lang/fa.js.map +1 -1
- 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-carousel-item.css +1 -1
- package/theme-chalk/el-carousel.css +1 -1
- package/theme-chalk/el-form.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/carousel-item.scss +8 -0
- package/theme-chalk/src/carousel.scss +9 -2
- package/theme-chalk/src/form.scss +7 -0
- package/theme-chalk/src/image.scss +6 -6
- package/theme-chalk/src/progress.scss +10 -1
- package/theme-chalk/src/text.scss +1 -1
- package/web-types.json +1 -1
- package/es/hooks/use-restore-active/index.d.ts +0 -6
- package/es/hooks/use-restore-active/index.mjs +0 -23
- package/es/hooks/use-restore-active/index.mjs.map +0 -1
- package/lib/hooks/use-restore-active/index.d.ts +0 -6
- package/lib/hooks/use-restore-active/index.js +0 -27
- package/lib/hooks/use-restore-active/index.js.map +0 -1
package/dist/index.full.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Element Plus v2.3.
|
|
1
|
+
/*! Element Plus v2.3.6 */
|
|
2
2
|
|
|
3
3
|
import { getCurrentScope, onScopeDispose, unref, readonly, shallowRef, watchEffect, ref, watch, getCurrentInstance, onMounted, nextTick, computed as computed$1, openBlock, createElementBlock, createElementVNode, warn, isVNode, Fragment, Comment, onBeforeUnmount, isRef, inject, onUnmounted, h as h$1, Teleport, onBeforeMount, provide, defineComponent, renderSlot, normalizeClass, normalizeStyle, mergeProps, useSlots, createBlock, Transition, withCtx, withDirectives, resolveDynamicComponent, createCommentVNode, createTextVNode, toDisplayString, createVNode, vShow, toRef, reactive, toRefs, onUpdated, TransitionGroup, useAttrs as useAttrs$1, withModifiers, cloneVNode, Text as Text$1, onDeactivated, renderList, withKeys, createSlots, normalizeProps, toRaw as toRaw$1, vModelCheckbox, vModelRadio, resolveComponent, onBeforeUpdate, vModelText, toHandlers, guardReactiveProps, markRaw, effectScope, triggerRef, resolveDirective, createApp, shallowReactive, render } from 'vue';
|
|
4
4
|
|
|
@@ -9610,23 +9610,6 @@ function deriveState(state) {
|
|
|
9610
9610
|
};
|
|
9611
9611
|
}
|
|
9612
9612
|
|
|
9613
|
-
const useRestoreActive = (toggle, initialFocus) => {
|
|
9614
|
-
let previousActive;
|
|
9615
|
-
watch(() => toggle.value, (val) => {
|
|
9616
|
-
var _a, _b;
|
|
9617
|
-
if (val) {
|
|
9618
|
-
previousActive = document.activeElement;
|
|
9619
|
-
if (isRef(initialFocus)) {
|
|
9620
|
-
(_b = (_a = initialFocus.value).focus) == null ? void 0 : _b.call(_a);
|
|
9621
|
-
}
|
|
9622
|
-
} else {
|
|
9623
|
-
{
|
|
9624
|
-
previousActive.focus();
|
|
9625
|
-
}
|
|
9626
|
-
}
|
|
9627
|
-
});
|
|
9628
|
-
};
|
|
9629
|
-
|
|
9630
9613
|
const useSameTarget = (handleClick) => {
|
|
9631
9614
|
if (!handleClick) {
|
|
9632
9615
|
return { onClick: NOOP, onMousedown: NOOP, onMouseup: NOOP };
|
|
@@ -11221,7 +11204,7 @@ const ConfigProvider = defineComponent({
|
|
|
11221
11204
|
|
|
11222
11205
|
const ElConfigProvider = withInstall(ConfigProvider);
|
|
11223
11206
|
|
|
11224
|
-
const version$1 = "2.3.
|
|
11207
|
+
const version$1 = "2.3.6";
|
|
11225
11208
|
|
|
11226
11209
|
const makeInstaller = (components = []) => {
|
|
11227
11210
|
const install = (app, options) => {
|
|
@@ -15285,8 +15268,8 @@ const usePopperContentDOM = (props, {
|
|
|
15285
15268
|
const contentStyle = computed$1(() => {
|
|
15286
15269
|
return [
|
|
15287
15270
|
{ zIndex: unref(contentZIndex) },
|
|
15288
|
-
|
|
15289
|
-
|
|
15271
|
+
unref(styles).popper,
|
|
15272
|
+
props.popperStyle || {}
|
|
15290
15273
|
];
|
|
15291
15274
|
});
|
|
15292
15275
|
const ariaModal = computed$1(() => role.value === "dialog" ? "false" : void 0);
|
|
@@ -20804,12 +20787,24 @@ const useCarousel = (props, emit, componentName) => {
|
|
|
20804
20787
|
const timer = ref(null);
|
|
20805
20788
|
const hover = ref(false);
|
|
20806
20789
|
const root = ref();
|
|
20790
|
+
const containerHeight = ref(0);
|
|
20807
20791
|
const arrowDisplay = computed$1(() => props.arrow !== "never" && !unref(isVertical));
|
|
20808
20792
|
const hasLabel = computed$1(() => {
|
|
20809
20793
|
return items.value.some((item) => item.props.label.toString().length > 0);
|
|
20810
20794
|
});
|
|
20811
20795
|
const isCardType = computed$1(() => props.type === "card");
|
|
20812
20796
|
const isVertical = computed$1(() => props.direction === "vertical");
|
|
20797
|
+
const containerStyle = computed$1(() => {
|
|
20798
|
+
if (props.height !== "auto") {
|
|
20799
|
+
return {
|
|
20800
|
+
height: props.height
|
|
20801
|
+
};
|
|
20802
|
+
}
|
|
20803
|
+
return {
|
|
20804
|
+
height: `${containerHeight.value}px`,
|
|
20805
|
+
overflow: "hidden"
|
|
20806
|
+
};
|
|
20807
|
+
});
|
|
20813
20808
|
const throttledArrowClick = throttle((index) => {
|
|
20814
20809
|
setActiveItem(index);
|
|
20815
20810
|
}, THROTTLE_TIME, { trailing: true });
|
|
@@ -20928,6 +20923,11 @@ const useCarousel = (props, emit, componentName) => {
|
|
|
20928
20923
|
pauseTimer();
|
|
20929
20924
|
startTimer();
|
|
20930
20925
|
}
|
|
20926
|
+
function setContainerHeight(height) {
|
|
20927
|
+
if (props.height !== "auto")
|
|
20928
|
+
return;
|
|
20929
|
+
containerHeight.value = height;
|
|
20930
|
+
}
|
|
20931
20931
|
watch(() => activeIndex.value, (current, prev2) => {
|
|
20932
20932
|
resetItemPosition(prev2);
|
|
20933
20933
|
if (prev2 > -1) {
|
|
@@ -20967,7 +20967,8 @@ const useCarousel = (props, emit, componentName) => {
|
|
|
20967
20967
|
loop: props.loop,
|
|
20968
20968
|
addItem,
|
|
20969
20969
|
removeItem,
|
|
20970
|
-
setActiveItem
|
|
20970
|
+
setActiveItem,
|
|
20971
|
+
setContainerHeight
|
|
20971
20972
|
});
|
|
20972
20973
|
return {
|
|
20973
20974
|
root,
|
|
@@ -20977,6 +20978,8 @@ const useCarousel = (props, emit, componentName) => {
|
|
|
20977
20978
|
hover,
|
|
20978
20979
|
isCardType,
|
|
20979
20980
|
items,
|
|
20981
|
+
isVertical,
|
|
20982
|
+
containerStyle,
|
|
20980
20983
|
handleButtonEnter,
|
|
20981
20984
|
handleButtonLeave,
|
|
20982
20985
|
handleIndicatorClick,
|
|
@@ -21010,6 +21013,8 @@ const _sfc_main$1O = /* @__PURE__ */ defineComponent({
|
|
|
21010
21013
|
hover,
|
|
21011
21014
|
isCardType,
|
|
21012
21015
|
items,
|
|
21016
|
+
isVertical,
|
|
21017
|
+
containerStyle,
|
|
21013
21018
|
handleButtonEnter,
|
|
21014
21019
|
handleButtonLeave,
|
|
21015
21020
|
handleIndicatorClick,
|
|
@@ -21034,9 +21039,12 @@ const _sfc_main$1O = /* @__PURE__ */ defineComponent({
|
|
|
21034
21039
|
if (unref(hasLabel)) {
|
|
21035
21040
|
classes.push(ns.em("indicators", "labels"));
|
|
21036
21041
|
}
|
|
21037
|
-
if (props.indicatorPosition === "outside"
|
|
21042
|
+
if (props.indicatorPosition === "outside") {
|
|
21038
21043
|
classes.push(ns.em("indicators", "outside"));
|
|
21039
21044
|
}
|
|
21045
|
+
if (unref(isVertical)) {
|
|
21046
|
+
classes.push(ns.em("indicators", "right"));
|
|
21047
|
+
}
|
|
21040
21048
|
return classes;
|
|
21041
21049
|
});
|
|
21042
21050
|
expose({
|
|
@@ -21054,7 +21062,7 @@ const _sfc_main$1O = /* @__PURE__ */ defineComponent({
|
|
|
21054
21062
|
}, [
|
|
21055
21063
|
createElementVNode("div", {
|
|
21056
21064
|
class: normalizeClass(unref(ns).e("container")),
|
|
21057
|
-
style: normalizeStyle(
|
|
21065
|
+
style: normalizeStyle(unref(containerStyle))
|
|
21058
21066
|
}, [
|
|
21059
21067
|
unref(arrowDisplay) ? (openBlock(), createBlock(Transition, {
|
|
21060
21068
|
key: 0,
|
|
@@ -21155,6 +21163,7 @@ const useCarouselItem = (props, componentName) => {
|
|
|
21155
21163
|
const carouselContext = inject(carouselContextKey);
|
|
21156
21164
|
const instance = getCurrentInstance();
|
|
21157
21165
|
const CARD_SCALE = 0.83;
|
|
21166
|
+
const carouselItemRef = ref();
|
|
21158
21167
|
const hover = ref(false);
|
|
21159
21168
|
const translate = ref(0);
|
|
21160
21169
|
const scale = ref(1);
|
|
@@ -21180,8 +21189,8 @@ const useCarouselItem = (props, componentName) => {
|
|
|
21180
21189
|
return index;
|
|
21181
21190
|
}
|
|
21182
21191
|
function calcCardTranslate(index, activeIndex) {
|
|
21183
|
-
var _a;
|
|
21184
|
-
const parentWidth = ((_a = carouselContext.root.value) == null ? void 0 : _a.offsetWidth) || 0;
|
|
21192
|
+
var _a, _b;
|
|
21193
|
+
const parentWidth = unref(isVertical) ? ((_a = carouselContext.root.value) == null ? void 0 : _a.offsetHeight) || 0 : ((_b = carouselContext.root.value) == null ? void 0 : _b.offsetWidth) || 0;
|
|
21185
21194
|
if (inStage.value) {
|
|
21186
21195
|
return parentWidth * ((2 - CARD_SCALE) * (index - activeIndex) + 1) / 4;
|
|
21187
21196
|
} else if (index < activeIndex) {
|
|
@@ -21218,6 +21227,9 @@ const useCarouselItem = (props, componentName) => {
|
|
|
21218
21227
|
translate.value = calcTranslate(index, activeIndex, _isVertical);
|
|
21219
21228
|
}
|
|
21220
21229
|
ready.value = true;
|
|
21230
|
+
if (isActive && carouselItemRef.value) {
|
|
21231
|
+
carouselContext.setContainerHeight(carouselItemRef.value.offsetHeight);
|
|
21232
|
+
}
|
|
21221
21233
|
};
|
|
21222
21234
|
function handleItemClick() {
|
|
21223
21235
|
if (carouselContext && unref(isCardType)) {
|
|
@@ -21245,6 +21257,7 @@ const useCarouselItem = (props, componentName) => {
|
|
|
21245
21257
|
carouselContext.removeItem(instance.uid);
|
|
21246
21258
|
});
|
|
21247
21259
|
return {
|
|
21260
|
+
carouselItemRef,
|
|
21248
21261
|
active,
|
|
21249
21262
|
animating,
|
|
21250
21263
|
hover,
|
|
@@ -21268,6 +21281,7 @@ const _sfc_main$1N = /* @__PURE__ */ defineComponent({
|
|
|
21268
21281
|
const props = __props;
|
|
21269
21282
|
const ns = useNamespace("carousel");
|
|
21270
21283
|
const {
|
|
21284
|
+
carouselItemRef,
|
|
21271
21285
|
active,
|
|
21272
21286
|
animating,
|
|
21273
21287
|
hover,
|
|
@@ -21290,13 +21304,18 @@ const _sfc_main$1N = /* @__PURE__ */ defineComponent({
|
|
|
21290
21304
|
});
|
|
21291
21305
|
return (_ctx, _cache) => {
|
|
21292
21306
|
return withDirectives((openBlock(), createElementBlock("div", {
|
|
21307
|
+
ref_key: "carouselItemRef",
|
|
21308
|
+
ref: carouselItemRef,
|
|
21293
21309
|
class: normalizeClass([
|
|
21294
21310
|
unref(ns).e("item"),
|
|
21295
21311
|
unref(ns).is("active", unref(active)),
|
|
21296
21312
|
unref(ns).is("in-stage", unref(inStage)),
|
|
21297
21313
|
unref(ns).is("hover", unref(hover)),
|
|
21298
21314
|
unref(ns).is("animating", unref(animating)),
|
|
21299
|
-
{
|
|
21315
|
+
{
|
|
21316
|
+
[unref(ns).em("item", "card")]: unref(isCardType),
|
|
21317
|
+
[unref(ns).em("item", "card-vertical")]: unref(isCardType) && unref(isVertical)
|
|
21318
|
+
}
|
|
21300
21319
|
]),
|
|
21301
21320
|
style: normalizeStyle(unref(itemStyle)),
|
|
21302
21321
|
onClick: _cache[0] || (_cache[0] = (...args) => unref(handleItemClick) && unref(handleItemClick)(...args))
|
|
@@ -23004,14 +23023,14 @@ const _CascaderPanel = CascaderPanel;
|
|
|
23004
23023
|
const ElCascaderPanel = _CascaderPanel;
|
|
23005
23024
|
|
|
23006
23025
|
const tagProps = buildProps({
|
|
23007
|
-
closable: Boolean,
|
|
23008
23026
|
type: {
|
|
23009
23027
|
type: String,
|
|
23010
23028
|
values: ["success", "info", "warning", "danger", ""],
|
|
23011
23029
|
default: ""
|
|
23012
23030
|
},
|
|
23013
|
-
|
|
23031
|
+
closable: Boolean,
|
|
23014
23032
|
disableTransitions: Boolean,
|
|
23033
|
+
hit: Boolean,
|
|
23015
23034
|
color: {
|
|
23016
23035
|
type: String,
|
|
23017
23036
|
default: ""
|
|
@@ -23044,7 +23063,7 @@ const _sfc_main$1D = /* @__PURE__ */ defineComponent({
|
|
|
23044
23063
|
const props = __props;
|
|
23045
23064
|
const tagSize = useFormSize();
|
|
23046
23065
|
const ns = useNamespace("tag");
|
|
23047
|
-
const
|
|
23066
|
+
const containerKls = computed$1(() => {
|
|
23048
23067
|
const { type, hit, effect, closable, round } = props;
|
|
23049
23068
|
return [
|
|
23050
23069
|
ns.b(),
|
|
@@ -23065,7 +23084,7 @@ const _sfc_main$1D = /* @__PURE__ */ defineComponent({
|
|
|
23065
23084
|
return (_ctx, _cache) => {
|
|
23066
23085
|
return _ctx.disableTransitions ? (openBlock(), createElementBlock("span", {
|
|
23067
23086
|
key: 0,
|
|
23068
|
-
class: normalizeClass(unref(
|
|
23087
|
+
class: normalizeClass(unref(containerKls)),
|
|
23069
23088
|
style: normalizeStyle({ backgroundColor: _ctx.color }),
|
|
23070
23089
|
onClick: handleClick
|
|
23071
23090
|
}, [
|
|
@@ -23091,7 +23110,7 @@ const _sfc_main$1D = /* @__PURE__ */ defineComponent({
|
|
|
23091
23110
|
}, {
|
|
23092
23111
|
default: withCtx(() => [
|
|
23093
23112
|
createElementVNode("span", {
|
|
23094
|
-
class: normalizeClass(unref(
|
|
23113
|
+
class: normalizeClass(unref(containerKls)),
|
|
23095
23114
|
style: normalizeStyle({ backgroundColor: _ctx.color }),
|
|
23096
23115
|
onClick: handleClick
|
|
23097
23116
|
}, [
|
|
@@ -23797,6 +23816,7 @@ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
23797
23816
|
setup(__props, { emit }) {
|
|
23798
23817
|
const props = __props;
|
|
23799
23818
|
const ns = useNamespace("check-tag");
|
|
23819
|
+
const containerKls = computed$1(() => [ns.b(), ns.is("checked", props.checked)]);
|
|
23800
23820
|
const handleChange = () => {
|
|
23801
23821
|
const checked = !props.checked;
|
|
23802
23822
|
emit(CHANGE_EVENT, checked);
|
|
@@ -23804,7 +23824,7 @@ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
23804
23824
|
};
|
|
23805
23825
|
return (_ctx, _cache) => {
|
|
23806
23826
|
return openBlock(), createElementBlock("span", {
|
|
23807
|
-
class: normalizeClass(
|
|
23827
|
+
class: normalizeClass(unref(containerKls)),
|
|
23808
23828
|
onClick: handleChange
|
|
23809
23829
|
}, [
|
|
23810
23830
|
renderSlot(_ctx.$slots, "default")
|
|
@@ -31277,7 +31297,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
31277
31297
|
removeLazyLoadListener();
|
|
31278
31298
|
}
|
|
31279
31299
|
}
|
|
31280
|
-
const lazyLoadHandler = useThrottleFn(handleLazyLoad, 200);
|
|
31300
|
+
const lazyLoadHandler = useThrottleFn(handleLazyLoad, 200, true);
|
|
31281
31301
|
async function addLazyLoadListener() {
|
|
31282
31302
|
var _a;
|
|
31283
31303
|
if (!isClient)
|
|
@@ -31576,6 +31596,9 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
31576
31596
|
};
|
|
31577
31597
|
const verifyValue = (value, update) => {
|
|
31578
31598
|
const { max, min, step, precision, stepStrictly, valueOnClear } = props;
|
|
31599
|
+
if (max < min) {
|
|
31600
|
+
throwError("InputNumber", "min should not be greater than max.");
|
|
31601
|
+
}
|
|
31579
31602
|
let newVal = Number(value);
|
|
31580
31603
|
if (isNil(value) || Number.isNaN(newVal)) {
|
|
31581
31604
|
return null;
|
|
@@ -32506,7 +32529,7 @@ var Menu = defineComponent({
|
|
|
32506
32529
|
var _a, _b;
|
|
32507
32530
|
if (!menu.value)
|
|
32508
32531
|
return -1;
|
|
32509
|
-
const items2 = Array.from((_b = (_a = menu.value) == null ? void 0 : _a.childNodes) != null ? _b : []).filter((item) => item.nodeName !== "#text" || item.nodeValue);
|
|
32532
|
+
const items2 = Array.from((_b = (_a = menu.value) == null ? void 0 : _a.childNodes) != null ? _b : []).filter((item) => item.nodeName !== "#comment" && (item.nodeName !== "#text" || item.nodeValue));
|
|
32510
32533
|
const moreItemWidth = 64;
|
|
32511
32534
|
const paddingLeft = Number.parseInt(getComputedStyle(menu.value).paddingLeft, 10);
|
|
32512
32535
|
const paddingRight = Number.parseInt(getComputedStyle(menu.value).paddingRight, 10);
|
|
@@ -33158,7 +33181,7 @@ const _sfc_main$Q = defineComponent({
|
|
|
33158
33181
|
});
|
|
33159
33182
|
function selectOptionClick() {
|
|
33160
33183
|
if (props.disabled !== true && states.groupDisabled !== true) {
|
|
33161
|
-
select.handleOptionSelect(vm
|
|
33184
|
+
select.handleOptionSelect(vm);
|
|
33162
33185
|
}
|
|
33163
33186
|
}
|
|
33164
33187
|
return {
|
|
@@ -33247,7 +33270,6 @@ function useSelectStates(props) {
|
|
|
33247
33270
|
optionsCount: 0,
|
|
33248
33271
|
filteredOptionsCount: 0,
|
|
33249
33272
|
visible: false,
|
|
33250
|
-
softFocus: false,
|
|
33251
33273
|
selectedLabel: "",
|
|
33252
33274
|
hoverIndex: -1,
|
|
33253
33275
|
query: "",
|
|
@@ -33257,12 +33279,12 @@ function useSelectStates(props) {
|
|
|
33257
33279
|
currentPlaceholder: t("el.select.placeholder"),
|
|
33258
33280
|
menuVisibleOnFocus: false,
|
|
33259
33281
|
isOnComposition: false,
|
|
33260
|
-
isSilentBlur: false,
|
|
33261
33282
|
prefixWidth: 11,
|
|
33262
33283
|
tagInMultiLine: false,
|
|
33263
33284
|
mouseEnter: false
|
|
33264
33285
|
});
|
|
33265
33286
|
}
|
|
33287
|
+
let ignoreFocusEvent = false;
|
|
33266
33288
|
const useSelect$3 = (props, states, ctx) => {
|
|
33267
33289
|
const { t } = useLocale();
|
|
33268
33290
|
const ns = useNamespace("select");
|
|
@@ -33348,6 +33370,10 @@ const useSelect$3 = (props, states, ctx) => {
|
|
|
33348
33370
|
});
|
|
33349
33371
|
watch(() => props.placeholder, (val) => {
|
|
33350
33372
|
states.cachedPlaceHolder = states.currentPlaceholder = val;
|
|
33373
|
+
const hasValue = props.multiple && Array.isArray(props.modelValue) && props.modelValue.length > 0;
|
|
33374
|
+
if (hasValue) {
|
|
33375
|
+
states.currentPlaceholder = "";
|
|
33376
|
+
}
|
|
33351
33377
|
});
|
|
33352
33378
|
watch(() => props.modelValue, (val, oldVal) => {
|
|
33353
33379
|
if (props.multiple) {
|
|
@@ -33675,7 +33701,7 @@ const useSelect$3 = (props, states, ctx) => {
|
|
|
33675
33701
|
states.visible = false;
|
|
33676
33702
|
ctx.emit("clear");
|
|
33677
33703
|
};
|
|
33678
|
-
const handleOptionSelect = (option
|
|
33704
|
+
const handleOptionSelect = (option) => {
|
|
33679
33705
|
var _a;
|
|
33680
33706
|
if (props.multiple) {
|
|
33681
33707
|
const value = (props.modelValue || []).slice();
|
|
@@ -33699,7 +33725,6 @@ const useSelect$3 = (props, states, ctx) => {
|
|
|
33699
33725
|
emitChange(option.value);
|
|
33700
33726
|
states.visible = false;
|
|
33701
33727
|
}
|
|
33702
|
-
states.isSilentBlur = byClick;
|
|
33703
33728
|
setSoftFocus();
|
|
33704
33729
|
if (states.visible)
|
|
33705
33730
|
return;
|
|
@@ -33722,7 +33747,6 @@ const useSelect$3 = (props, states, ctx) => {
|
|
|
33722
33747
|
return index;
|
|
33723
33748
|
};
|
|
33724
33749
|
const setSoftFocus = () => {
|
|
33725
|
-
states.softFocus = true;
|
|
33726
33750
|
const _input = input.value || reference.value;
|
|
33727
33751
|
if (_input) {
|
|
33728
33752
|
_input == null ? void 0 : _input.focus();
|
|
@@ -33792,7 +33816,7 @@ const useSelect$3 = (props, states, ctx) => {
|
|
|
33792
33816
|
nextTick(() => scrollToOption(states.selected));
|
|
33793
33817
|
};
|
|
33794
33818
|
const handleFocus = (event) => {
|
|
33795
|
-
if (!
|
|
33819
|
+
if (!ignoreFocusEvent) {
|
|
33796
33820
|
if (props.automaticDropdown || props.filterable) {
|
|
33797
33821
|
if (props.filterable && !states.visible) {
|
|
33798
33822
|
states.menuVisibleOnFocus = true;
|
|
@@ -33801,7 +33825,7 @@ const useSelect$3 = (props, states, ctx) => {
|
|
|
33801
33825
|
}
|
|
33802
33826
|
ctx.emit("focus", event);
|
|
33803
33827
|
} else {
|
|
33804
|
-
|
|
33828
|
+
ignoreFocusEvent = false;
|
|
33805
33829
|
}
|
|
33806
33830
|
};
|
|
33807
33831
|
const blur = () => {
|
|
@@ -33811,14 +33835,15 @@ const useSelect$3 = (props, states, ctx) => {
|
|
|
33811
33835
|
(_c = (_b = iOSInput.value) == null ? void 0 : _b.blur) == null ? void 0 : _c.call(_b);
|
|
33812
33836
|
};
|
|
33813
33837
|
const handleBlur = (event) => {
|
|
33814
|
-
|
|
33815
|
-
|
|
33816
|
-
|
|
33817
|
-
|
|
33818
|
-
|
|
33838
|
+
setTimeout(() => {
|
|
33839
|
+
var _a;
|
|
33840
|
+
if ((_a = tooltipRef.value) == null ? void 0 : _a.isFocusInsideContent()) {
|
|
33841
|
+
ignoreFocusEvent = true;
|
|
33842
|
+
return;
|
|
33819
33843
|
}
|
|
33844
|
+
states.visible && handleClose();
|
|
33845
|
+
ctx.emit("blur", event);
|
|
33820
33846
|
});
|
|
33821
|
-
states.softFocus = false;
|
|
33822
33847
|
};
|
|
33823
33848
|
const handleClearClick = (event) => {
|
|
33824
33849
|
deleteSelected(event);
|
|
@@ -33856,7 +33881,7 @@ const useSelect$3 = (props, states, ctx) => {
|
|
|
33856
33881
|
toggleMenu();
|
|
33857
33882
|
} else {
|
|
33858
33883
|
if (optionsArray.value[states.hoverIndex]) {
|
|
33859
|
-
handleOptionSelect(optionsArray.value[states.hoverIndex]
|
|
33884
|
+
handleOptionSelect(optionsArray.value[states.hoverIndex]);
|
|
33860
33885
|
}
|
|
33861
33886
|
}
|
|
33862
33887
|
};
|
|
@@ -34193,7 +34218,6 @@ const _sfc_main$O = defineComponent({
|
|
|
34193
34218
|
inputLength,
|
|
34194
34219
|
filteredOptionsCount,
|
|
34195
34220
|
visible,
|
|
34196
|
-
softFocus,
|
|
34197
34221
|
selectedLabel,
|
|
34198
34222
|
hoverIndex,
|
|
34199
34223
|
query,
|
|
@@ -34201,7 +34225,6 @@ const _sfc_main$O = defineComponent({
|
|
|
34201
34225
|
currentPlaceholder,
|
|
34202
34226
|
menuVisibleOnFocus,
|
|
34203
34227
|
isOnComposition,
|
|
34204
|
-
isSilentBlur,
|
|
34205
34228
|
options,
|
|
34206
34229
|
cachedOptions,
|
|
34207
34230
|
optionsCount,
|
|
@@ -34299,7 +34322,6 @@ const _sfc_main$O = defineComponent({
|
|
|
34299
34322
|
inputLength,
|
|
34300
34323
|
filteredOptionsCount,
|
|
34301
34324
|
visible,
|
|
34302
|
-
softFocus,
|
|
34303
34325
|
selectedLabel,
|
|
34304
34326
|
hoverIndex,
|
|
34305
34327
|
query,
|
|
@@ -34307,7 +34329,6 @@ const _sfc_main$O = defineComponent({
|
|
|
34307
34329
|
currentPlaceholder,
|
|
34308
34330
|
menuVisibleOnFocus,
|
|
34309
34331
|
isOnComposition,
|
|
34310
|
-
isSilentBlur,
|
|
34311
34332
|
options,
|
|
34312
34333
|
resetInputHeight,
|
|
34313
34334
|
managePlaceholder,
|
|
@@ -35018,6 +35039,18 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
35018
35039
|
}
|
|
35019
35040
|
return array;
|
|
35020
35041
|
});
|
|
35042
|
+
const prevMoreKls = computed$1(() => [
|
|
35043
|
+
"more",
|
|
35044
|
+
"btn-quickprev",
|
|
35045
|
+
nsIcon.b(),
|
|
35046
|
+
nsPager.is("disabled", props.disabled)
|
|
35047
|
+
]);
|
|
35048
|
+
const nextMoreKls = computed$1(() => [
|
|
35049
|
+
"more",
|
|
35050
|
+
"btn-quicknext",
|
|
35051
|
+
nsIcon.b(),
|
|
35052
|
+
nsPager.is("disabled", props.disabled)
|
|
35053
|
+
]);
|
|
35021
35054
|
const tabindex = computed$1(() => props.disabled ? -1 : 0);
|
|
35022
35055
|
watchEffect(() => {
|
|
35023
35056
|
const halfPagerCount = (props.pagerCount - 1) / 2;
|
|
@@ -35105,12 +35138,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
35105
35138
|
}, " 1 ", 10, _hoisted_2$e)) : createCommentVNode("v-if", true),
|
|
35106
35139
|
showPrevMore.value ? (openBlock(), createElementBlock("li", {
|
|
35107
35140
|
key: 1,
|
|
35108
|
-
class: normalizeClass(
|
|
35109
|
-
"more",
|
|
35110
|
-
"btn-quickprev",
|
|
35111
|
-
unref(nsIcon).b(),
|
|
35112
|
-
unref(nsPager).is("disabled", _ctx.disabled)
|
|
35113
|
-
]),
|
|
35141
|
+
class: normalizeClass(unref(prevMoreKls)),
|
|
35114
35142
|
tabindex: unref(tabindex),
|
|
35115
35143
|
"aria-label": unref(t)("el.pagination.prevPages", { pager: _ctx.pagerCount - 2 }),
|
|
35116
35144
|
onMouseenter: _cache[0] || (_cache[0] = ($event) => onMouseEnter(true)),
|
|
@@ -35134,12 +35162,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
35134
35162
|
}), 128)),
|
|
35135
35163
|
showNextMore.value ? (openBlock(), createElementBlock("li", {
|
|
35136
35164
|
key: 2,
|
|
35137
|
-
class: normalizeClass(
|
|
35138
|
-
"more",
|
|
35139
|
-
"btn-quicknext",
|
|
35140
|
-
unref(nsIcon).b(),
|
|
35141
|
-
unref(nsPager).is("disabled", _ctx.disabled)
|
|
35142
|
-
]),
|
|
35165
|
+
class: normalizeClass(unref(nextMoreKls)),
|
|
35143
35166
|
tabindex: unref(tabindex),
|
|
35144
35167
|
"aria-label": unref(t)("el.pagination.nextPages", { pager: _ctx.pagerCount - 2 }),
|
|
35145
35168
|
onMouseenter: _cache[4] || (_cache[4] = ($event) => onMouseEnter()),
|
|
@@ -35167,11 +35190,9 @@ var Pager = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__file", "pager.vue"]]);
|
|
|
35167
35190
|
|
|
35168
35191
|
const isAbsent = (v) => typeof v !== "number";
|
|
35169
35192
|
const paginationProps = buildProps({
|
|
35170
|
-
total: Number,
|
|
35171
35193
|
pageSize: Number,
|
|
35172
35194
|
defaultPageSize: Number,
|
|
35173
|
-
|
|
35174
|
-
defaultCurrentPage: Number,
|
|
35195
|
+
total: Number,
|
|
35175
35196
|
pageCount: Number,
|
|
35176
35197
|
pagerCount: {
|
|
35177
35198
|
type: Number,
|
|
@@ -35180,6 +35201,8 @@ const paginationProps = buildProps({
|
|
|
35180
35201
|
},
|
|
35181
35202
|
default: 7
|
|
35182
35203
|
},
|
|
35204
|
+
currentPage: Number,
|
|
35205
|
+
defaultCurrentPage: Number,
|
|
35183
35206
|
layout: {
|
|
35184
35207
|
type: String,
|
|
35185
35208
|
default: ["prev", "pager", "next", "jumper", "->", "total"].join(", ")
|
|
@@ -41310,13 +41333,17 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
41310
41333
|
setup(__props, { emit }) {
|
|
41311
41334
|
const props = __props;
|
|
41312
41335
|
const ns = useNamespace("steps");
|
|
41313
|
-
const
|
|
41336
|
+
const {
|
|
41337
|
+
children: steps,
|
|
41338
|
+
addChild: addStep,
|
|
41339
|
+
removeChild: removeStep
|
|
41340
|
+
} = useOrderedChildren(getCurrentInstance(), "ElStep");
|
|
41314
41341
|
watch(steps, () => {
|
|
41315
41342
|
steps.value.forEach((instance, index) => {
|
|
41316
41343
|
instance.setIndex(index);
|
|
41317
41344
|
});
|
|
41318
41345
|
});
|
|
41319
|
-
provide("ElSteps", { props, steps });
|
|
41346
|
+
provide("ElSteps", { props, steps, addStep, removeStep });
|
|
41320
41347
|
watch(() => props.active, (newVal, oldVal) => {
|
|
41321
41348
|
emit(CHANGE_EVENT, newVal, oldVal);
|
|
41322
41349
|
});
|
|
@@ -41374,7 +41401,7 @@ const _sfc_main$t = defineComponent({
|
|
|
41374
41401
|
}, { immediate: true });
|
|
41375
41402
|
});
|
|
41376
41403
|
onBeforeUnmount(() => {
|
|
41377
|
-
parent.
|
|
41404
|
+
parent.removeStep(stepItemState.uid);
|
|
41378
41405
|
});
|
|
41379
41406
|
const currentStatus = computed$1(() => {
|
|
41380
41407
|
return props.status || internalStatus.value;
|
|
@@ -41402,6 +41429,14 @@ const _sfc_main$t = defineComponent({
|
|
|
41402
41429
|
const space = computed$1(() => {
|
|
41403
41430
|
return isSimple.value ? "" : parent.props.space;
|
|
41404
41431
|
});
|
|
41432
|
+
const containerKls = computed$1(() => {
|
|
41433
|
+
return [
|
|
41434
|
+
ns.b(),
|
|
41435
|
+
ns.is(isSimple.value ? "simple" : parent.props.direction),
|
|
41436
|
+
ns.is("flex", isLast.value && !space.value && !isCenter.value),
|
|
41437
|
+
ns.is("center", isCenter.value && !isVertical.value && !isSimple.value)
|
|
41438
|
+
];
|
|
41439
|
+
});
|
|
41405
41440
|
const style = computed$1(() => {
|
|
41406
41441
|
const style2 = {
|
|
41407
41442
|
flexBasis: isNumber(space.value) ? `${space.value}px` : space.value ? space.value : `${100 / (stepsCount.value - (isCenter.value ? 0 : 1))}%`
|
|
@@ -41439,21 +41474,16 @@ const _sfc_main$t = defineComponent({
|
|
|
41439
41474
|
prevChild.calcProgress(internalStatus.value);
|
|
41440
41475
|
};
|
|
41441
41476
|
const stepItemState = reactive({
|
|
41442
|
-
uid:
|
|
41477
|
+
uid: currentInstance.uid,
|
|
41443
41478
|
currentStatus,
|
|
41444
41479
|
setIndex,
|
|
41445
41480
|
calcProgress
|
|
41446
41481
|
});
|
|
41447
|
-
parent.
|
|
41482
|
+
parent.addStep(stepItemState);
|
|
41448
41483
|
return (_ctx, _cache) => {
|
|
41449
41484
|
return openBlock(), createElementBlock("div", {
|
|
41450
41485
|
style: normalizeStyle(unref(style)),
|
|
41451
|
-
class: normalizeClass(
|
|
41452
|
-
unref(ns).b(),
|
|
41453
|
-
unref(ns).is(unref(isSimple) ? "simple" : unref(parent).props.direction),
|
|
41454
|
-
unref(ns).is("flex", unref(isLast) && !unref(space) && !unref(isCenter)),
|
|
41455
|
-
unref(ns).is("center", unref(isCenter) && !unref(isVertical) && !unref(isSimple))
|
|
41456
|
-
])
|
|
41486
|
+
class: normalizeClass(unref(containerKls))
|
|
41457
41487
|
}, [
|
|
41458
41488
|
createCommentVNode(" icon & line "),
|
|
41459
41489
|
createElementVNode("div", {
|
|
@@ -43896,10 +43926,13 @@ function useEvent(props, emit) {
|
|
|
43896
43926
|
}
|
|
43897
43927
|
};
|
|
43898
43928
|
const handleMouseMove = (event, column) => {
|
|
43899
|
-
var _a;
|
|
43900
43929
|
if (column.children && column.children.length > 0)
|
|
43901
43930
|
return;
|
|
43902
|
-
const
|
|
43931
|
+
const el = event.target;
|
|
43932
|
+
if (!isElement$1(el)) {
|
|
43933
|
+
return;
|
|
43934
|
+
}
|
|
43935
|
+
const target = el == null ? void 0 : el.closest("th");
|
|
43903
43936
|
if (!column || !column.resizable)
|
|
43904
43937
|
return;
|
|
43905
43938
|
if (!dragging.value && props.border) {
|
|
@@ -45234,13 +45267,9 @@ function useStyle(props, layout, store, table) {
|
|
|
45234
45267
|
}
|
|
45235
45268
|
if (props.maxHeight) {
|
|
45236
45269
|
if (!Number.isNaN(Number(props.maxHeight))) {
|
|
45237
|
-
|
|
45238
|
-
|
|
45239
|
-
|
|
45240
|
-
return {
|
|
45241
|
-
maxHeight: `${tableScrollHeight.value - headerScrollHeight.value - footerScrollHeight.value}px`
|
|
45242
|
-
};
|
|
45243
|
-
}
|
|
45270
|
+
return {
|
|
45271
|
+
maxHeight: `${props.maxHeight - headerScrollHeight.value - footerScrollHeight.value}px`
|
|
45272
|
+
};
|
|
45244
45273
|
} else {
|
|
45245
45274
|
return {
|
|
45246
45275
|
maxHeight: `calc(${props.maxHeight} - ${headerScrollHeight.value + footerScrollHeight.value}px)`
|
|
@@ -47969,7 +47998,7 @@ const CellRenderer = ({
|
|
|
47969
47998
|
};
|
|
47970
47999
|
const Cell = CellComponent(cellProps);
|
|
47971
48000
|
const kls = [ns.e("row-cell"), column.class, column.align === Alignment.CENTER && ns.is("align-center"), column.align === Alignment.RIGHT && ns.is("align-right")];
|
|
47972
|
-
const expandable = rowIndex >= 0 && column.key === expandColumnKey;
|
|
48001
|
+
const expandable = rowIndex >= 0 && expandColumnKey && column.key === expandColumnKey;
|
|
47973
48002
|
const expanded = rowIndex >= 0 && expandedRowKeys.includes(rowData[rowKey]);
|
|
47974
48003
|
let IconOrPlaceholder;
|
|
47975
48004
|
const iconStyle = `margin-inline-start: ${depth * indentSize}px;`;
|
|
@@ -49320,7 +49349,14 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
49320
49349
|
...__default__$g,
|
|
49321
49350
|
props: timelineItemProps,
|
|
49322
49351
|
setup(__props) {
|
|
49352
|
+
const props = __props;
|
|
49323
49353
|
const ns = useNamespace("timeline-item");
|
|
49354
|
+
const defaultNodeKls = computed$1(() => [
|
|
49355
|
+
ns.e("node"),
|
|
49356
|
+
ns.em("node", props.size || ""),
|
|
49357
|
+
ns.em("node", props.type || ""),
|
|
49358
|
+
ns.is("hollow", props.hollow)
|
|
49359
|
+
]);
|
|
49324
49360
|
return (_ctx, _cache) => {
|
|
49325
49361
|
return openBlock(), createElementBlock("li", {
|
|
49326
49362
|
class: normalizeClass([unref(ns).b(), { [unref(ns).e("center")]: _ctx.center }])
|
|
@@ -49330,12 +49366,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
49330
49366
|
}, null, 2),
|
|
49331
49367
|
!_ctx.$slots.dot ? (openBlock(), createElementBlock("div", {
|
|
49332
49368
|
key: 0,
|
|
49333
|
-
class: normalizeClass(
|
|
49334
|
-
unref(ns).e("node"),
|
|
49335
|
-
unref(ns).em("node", _ctx.size || ""),
|
|
49336
|
-
unref(ns).em("node", _ctx.type || ""),
|
|
49337
|
-
unref(ns).is("hollow", _ctx.hollow)
|
|
49338
|
-
]),
|
|
49369
|
+
class: normalizeClass(unref(defaultNodeKls)),
|
|
49339
49370
|
style: normalizeStyle({
|
|
49340
49371
|
backgroundColor: _ctx.color
|
|
49341
49372
|
})
|
|
@@ -51285,7 +51316,7 @@ function useDragNodeHandler({ props, ctx, el$, dropIndicator$, store }) {
|
|
|
51285
51316
|
const treeNodeDragOver = ({ event, treeNode }) => {
|
|
51286
51317
|
const dropNode = treeNode;
|
|
51287
51318
|
const oldDropNode = dragState.value.dropNode;
|
|
51288
|
-
if (oldDropNode && oldDropNode !== dropNode) {
|
|
51319
|
+
if (oldDropNode && oldDropNode.node.id !== dropNode.node.id) {
|
|
51289
51320
|
removeClass(oldDropNode.$el, ns.is("drop-inner"));
|
|
51290
51321
|
}
|
|
51291
51322
|
const draggingNode = dragState.value.draggingNode;
|
|
@@ -51301,7 +51332,7 @@ function useDragNodeHandler({ props, ctx, el$, dropIndicator$, store }) {
|
|
|
51301
51332
|
dropNext = props.allowDrop(draggingNode.node, dropNode.node, "next");
|
|
51302
51333
|
}
|
|
51303
51334
|
event.dataTransfer.dropEffect = dropInner || dropPrev || dropNext ? "move" : "none";
|
|
51304
|
-
if ((dropPrev || dropInner || dropNext) && oldDropNode !== dropNode) {
|
|
51335
|
+
if ((dropPrev || dropInner || dropNext) && (oldDropNode == null ? void 0 : oldDropNode.node.id) !== dropNode.node.id) {
|
|
51305
51336
|
if (oldDropNode) {
|
|
51306
51337
|
ctx.emit("node-drag-leave", draggingNode.node, oldDropNode.node, event);
|
|
51307
51338
|
}
|
|
@@ -52242,6 +52273,9 @@ const useTree$1 = (props, { attrs, slots, emit }, {
|
|
|
52242
52273
|
}, (data) => getNodeValByProp("children", data));
|
|
52243
52274
|
return options;
|
|
52244
52275
|
});
|
|
52276
|
+
const cacheOptionsMap = computed$1(() => {
|
|
52277
|
+
return cacheOptions.value.reduce((prev, next) => ({ ...prev, [next.value]: next }), {});
|
|
52278
|
+
});
|
|
52245
52279
|
return {
|
|
52246
52280
|
...pick(toRefs(props), Object.keys(_Tree.props)),
|
|
52247
52281
|
...attrs,
|
|
@@ -52275,18 +52309,21 @@ const useTree$1 = (props, { attrs, slots, emit }, {
|
|
|
52275
52309
|
if (!props.showCheckbox && (props.checkStrictly || node.isLeaf)) {
|
|
52276
52310
|
if (!getNodeValByProp("disabled", data)) {
|
|
52277
52311
|
const option = (_b = select.value) == null ? void 0 : _b.options.get(getNodeValByProp("value", data));
|
|
52278
|
-
(_c = select.value) == null ? void 0 : _c.handleOptionSelect(option
|
|
52312
|
+
(_c = select.value) == null ? void 0 : _c.handleOptionSelect(option);
|
|
52279
52313
|
}
|
|
52280
52314
|
} else if (props.expandOnClickNode) {
|
|
52281
52315
|
e.proxy.handleExpandIconClick();
|
|
52282
52316
|
}
|
|
52283
52317
|
},
|
|
52284
52318
|
onCheck: (data, params) => {
|
|
52285
|
-
|
|
52286
|
-
|
|
52319
|
+
if (!props.showCheckbox)
|
|
52320
|
+
return;
|
|
52287
52321
|
const dataValue = getNodeValByProp("value", data);
|
|
52322
|
+
const uncachedCheckedKeys = params.checkedKeys;
|
|
52323
|
+
const cachedKeys = props.multiple ? toValidArray(props.modelValue).filter((item) => item in cacheOptionsMap.value && !tree.value.getNode(item) && !uncachedCheckedKeys.includes(item)) : [];
|
|
52324
|
+
const checkedKeys = uncachedCheckedKeys.concat(cachedKeys);
|
|
52288
52325
|
if (props.checkStrictly) {
|
|
52289
|
-
emit(UPDATE_MODEL_EVENT, props.multiple ?
|
|
52326
|
+
emit(UPDATE_MODEL_EVENT, props.multiple ? checkedKeys : checkedKeys.includes(dataValue) ? dataValue : void 0);
|
|
52290
52327
|
} else {
|
|
52291
52328
|
if (props.multiple) {
|
|
52292
52329
|
emit(UPDATE_MODEL_EVENT, tree.value.getCheckedKeys(true));
|
|
@@ -52297,6 +52334,17 @@ const useTree$1 = (props, { attrs, slots, emit }, {
|
|
|
52297
52334
|
emit(UPDATE_MODEL_EVENT, firstLeafKey === props.modelValue || hasCheckedChild ? void 0 : firstLeafKey);
|
|
52298
52335
|
}
|
|
52299
52336
|
}
|
|
52337
|
+
nextTick(() => {
|
|
52338
|
+
var _a;
|
|
52339
|
+
const checkedKeys2 = toValidArray(props.modelValue);
|
|
52340
|
+
tree.value.setCheckedKeys(checkedKeys2);
|
|
52341
|
+
(_a = attrs.onCheck) == null ? void 0 : _a.call(attrs, data, {
|
|
52342
|
+
checkedKeys: tree.value.getCheckedKeys(),
|
|
52343
|
+
checkedNodes: tree.value.getCheckedNodes(),
|
|
52344
|
+
halfCheckedKeys: tree.value.getHalfCheckedKeys(),
|
|
52345
|
+
halfCheckedNodes: tree.value.getHalfCheckedNodes()
|
|
52346
|
+
});
|
|
52347
|
+
});
|
|
52300
52348
|
},
|
|
52301
52349
|
cacheOptions
|
|
52302
52350
|
};
|
|
@@ -53800,9 +53848,13 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
53800
53848
|
let hookResult;
|
|
53801
53849
|
let beforeData = {};
|
|
53802
53850
|
try {
|
|
53851
|
+
const originData = props.data;
|
|
53803
53852
|
const beforeUploadPromise = props.beforeUpload(rawFile);
|
|
53804
53853
|
beforeData = isObject$1(props.data) ? cloneDeep(props.data) : props.data;
|
|
53805
53854
|
hookResult = await beforeUploadPromise;
|
|
53855
|
+
if (isObject$1(props.data) && isEqual$1(originData, beforeData)) {
|
|
53856
|
+
beforeData = cloneDeep(props.data);
|
|
53857
|
+
}
|
|
53806
53858
|
} catch (e) {
|
|
53807
53859
|
hookResult = false;
|
|
53808
53860
|
}
|
|
@@ -54565,7 +54617,7 @@ const resolveOptions = (options) => {
|
|
|
54565
54617
|
};
|
|
54566
54618
|
};
|
|
54567
54619
|
const addStyle = async (options, parent, instance) => {
|
|
54568
|
-
const { nextZIndex } = instance.vm.zIndex;
|
|
54620
|
+
const { nextZIndex } = instance.vm.zIndex || instance.vm._.exposed.zIndex;
|
|
54569
54621
|
const maskStyle = {};
|
|
54570
54622
|
if (options.fullscreen) {
|
|
54571
54623
|
instance.originalPosition.value = getStyle(document.body, "position");
|
|
@@ -54589,7 +54641,7 @@ const addStyle = async (options, parent, instance) => {
|
|
|
54589
54641
|
}
|
|
54590
54642
|
};
|
|
54591
54643
|
const addClassList = (options, parent, instance) => {
|
|
54592
|
-
const ns = instance.vm.ns;
|
|
54644
|
+
const ns = instance.vm.ns || instance.vm._.exposed.ns;
|
|
54593
54645
|
if (!["absolute", "fixed", "sticky"].includes(instance.originalPosition.value)) {
|
|
54594
54646
|
addClass(parent, ns.bm("parent", "relative"));
|
|
54595
54647
|
} else {
|
|
@@ -55263,7 +55315,6 @@ const _sfc_main$1 = defineComponent({
|
|
|
55263
55315
|
if (props.lockScroll) {
|
|
55264
55316
|
useLockscreen(visible);
|
|
55265
55317
|
}
|
|
55266
|
-
useRestoreActive(visible);
|
|
55267
55318
|
return {
|
|
55268
55319
|
...toRefs(state),
|
|
55269
55320
|
ns,
|
|
@@ -55690,10 +55741,7 @@ const notificationProps = buildProps({
|
|
|
55690
55741
|
values: [...notificationTypes, ""],
|
|
55691
55742
|
default: ""
|
|
55692
55743
|
},
|
|
55693
|
-
zIndex:
|
|
55694
|
-
type: Number,
|
|
55695
|
-
default: 0
|
|
55696
|
-
}
|
|
55744
|
+
zIndex: Number
|
|
55697
55745
|
});
|
|
55698
55746
|
const notificationEmits = {
|
|
55699
55747
|
destroy: () => true
|
|
@@ -55729,9 +55777,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
55729
55777
|
const horizontalClass = computed$1(() => props.position.endsWith("right") ? "right" : "left");
|
|
55730
55778
|
const verticalProperty = computed$1(() => props.position.startsWith("top") ? "top" : "bottom");
|
|
55731
55779
|
const positionStyle = computed$1(() => {
|
|
55780
|
+
var _a;
|
|
55732
55781
|
return {
|
|
55733
55782
|
[verticalProperty.value]: `${props.offset}px`,
|
|
55734
|
-
zIndex: currentZIndex.value
|
|
55783
|
+
zIndex: (_a = props.zIndex) != null ? _a : currentZIndex.value
|
|
55735
55784
|
};
|
|
55736
55785
|
});
|
|
55737
55786
|
function startTimer() {
|
|
@@ -55958,4 +56007,4 @@ var installer = makeInstaller([...Components, ...Plugins]);
|
|
|
55958
56007
|
const install = installer.install;
|
|
55959
56008
|
const version = installer.version;
|
|
55960
56009
|
|
|
55961
|
-
export { BAR_MAP, CASCADER_PANEL_INJECTION_KEY, CHANGE_EVENT, ClickOutside, CommonPicker, CommonProps, DEFAULT_FORMATS_DATE, DEFAULT_FORMATS_DATEPICKER, DEFAULT_FORMATS_TIME, COLLECTION_INJECTION_KEY as DROPDOWN_COLLECTION_INJECTION_KEY, COLLECTION_ITEM_INJECTION_KEY as DROPDOWN_COLLECTION_ITEM_INJECTION_KEY, DROPDOWN_INJECTION_KEY, DefaultProps, DynamicSizeGrid$1 as DynamicSizeGrid, DynamicSizeList$1 as DynamicSizeList, EVENT_CODE, Effect, ElAffix, ElAlert, ElAside, ElAutoResizer, ElAutocomplete, ElAvatar, ElBacktop, ElBadge, ElBreadcrumb, ElBreadcrumbItem, ElButton, ElButtonGroup$1 as ElButtonGroup, ElCalendar, ElCard, ElCarousel, ElCarouselItem, ElCascader, ElCascaderPanel, ElCheckTag, ElCheckbox, ElCheckboxButton, ElCheckboxGroup$1 as ElCheckboxGroup, ElCol, ElCollapse, ElCollapseItem, ElCollapseTransition, ElCollection, ElCollectionItem, ElColorPicker, ElConfigProvider, ElContainer, ElCountdown, ElDatePicker, ElDescriptions, ElDescriptionsItem, ElDialog, ElDivider, ElDrawer, ElDropdown, ElDropdownItem, ElDropdownMenu, ElEmpty, ElFooter, ElForm, ElFormItem, ElHeader, ElIcon, ElImage, ElImageViewer, ElInfiniteScroll, ElInput, ElInputNumber, ElLink, ElLoading, vLoading as ElLoadingDirective, Loading as ElLoadingService, ElMain, ElMenu, ElMenuItem, ElMenuItemGroup, ElMessage, ElMessageBox, ElNotification, ElOption, ElOptionGroup, ElOverlay, ElPageHeader, ElPagination, ElPopconfirm, ElPopover, ElPopoverDirective, ElPopper, ElPopperArrow, ElPopperContent, ElPopperTrigger, ElProgress, ElRadio, ElRadioButton, ElRadioGroup, ElRate, ElResult, ElRow, ElScrollbar, ElSelect, ElSelectV2, ElSkeleton, ElSkeletonItem, ElSlider, ElSpace, ElStatistic, ElStep, ElSteps, ElSubMenu, ElSwitch, ElTabPane, ElTable, ElTableColumn, ElTableV2, ElTabs, ElTag, ElText, ElTimePicker, ElTimeSelect, ElTimeline, ElTimelineItem, ElTooltip, ElTransfer, ElTree, ElTreeSelect, ElTreeV2, ElUpload, FIRST_KEYS, FIRST_LAST_KEYS, FORWARD_REF_INJECTION_KEY, FixedSizeGrid$1 as FixedSizeGrid, FixedSizeList$1 as FixedSizeList, GAP, ID_INJECTION_KEY, INPUT_EVENT, INSTALLED_KEY, IconComponentMap, IconMap, LAST_KEYS, LEFT_CHECK_CHANGE_EVENT, Mousewheel, POPPER_CONTENT_INJECTION_KEY, POPPER_INJECTION_KEY, RIGHT_CHECK_CHANGE_EVENT, ROOT_PICKER_INJECTION_KEY, RowAlign, RowJustify, SIZE_INJECTION_KEY, TOOLTIP_INJECTION_KEY, TableV2$1 as TableV2, Alignment as TableV2Alignment, FixedDir as TableV2FixedDir, placeholderSign as TableV2Placeholder, SortOrder as TableV2SortOrder, TimePickPanel, TrapFocus, UPDATE_MODEL_EVENT, WEEK_DAYS, affixEmits, affixProps, alertEffects, alertEmits, alertProps, arrowMiddleware, autoResizerProps, autocompleteEmits, autocompleteProps, avatarEmits, avatarProps, backtopEmits, backtopProps, badgeProps, breadcrumbItemProps, breadcrumbKey, breadcrumbProps, buildLocaleContext, buildTimeList, buildTranslator, buttonEmits, buttonGroupContextKey, buttonNativeTypes, buttonProps, buttonTypes, calendarEmits, calendarProps, cardProps, carouselContextKey, carouselEmits, carouselItemProps, carouselProps, cascaderEmits, cascaderProps, checkTagEmits, checkTagProps, checkboxEmits, checkboxGroupContextKey, checkboxGroupEmits, checkboxGroupProps, checkboxProps, colProps, collapseContextKey, collapseEmits, collapseItemProps, collapseProps, colorPickerContextKey, colorPickerEmits, colorPickerProps, componentSizeMap, componentSizes, configProviderContextKey, configProviderProps, countdownEmits, countdownProps, createModelToggleComposable, dateEquals, datePickTypes, datePickerProps, dayjs, installer as default, defaultInitialZIndex, defaultNamespace, descriptionProps, dialogEmits, dialogInjectionKey, dialogProps, dividerProps, drawerEmits, drawerProps, dropdownItemProps, dropdownMenuProps, dropdownProps, elPaginationKey, emitChangeFn, emptyProps, extractDateFormat, extractTimeFormat, formContextKey, formEmits, formItemContextKey, formItemProps, formItemValidateStates, formProps, formatter, genFileId, getPositionDataWithUnit, iconProps, imageEmits, imageProps, imageViewerEmits, imageViewerProps, inputEmits, inputNumberEmits, inputNumberProps, inputProps, install, linkEmits, linkProps, localeContextKey, makeInstaller, makeList, menuEmits, menuItemEmits, menuItemGroupProps, menuItemProps, menuProps, messageConfig, messageDefaults, messageEmits, messageProps, messageTypes, namespaceContextKey, notificationEmits, notificationProps, notificationTypes, overlayEmits, overlayProps, pageHeaderEmits, pageHeaderProps, paginationEmits, paginationProps, parseDate, popconfirmEmits, popconfirmProps, popoverEmits, popoverProps, popperArrowProps, popperContentEmits, popperContentProps, popperCoreConfigProps, popperProps, popperTriggerProps, progressProps, provideGlobalConfig, radioButtonProps, radioEmits, radioGroupEmits, radioGroupKey, radioGroupProps, radioProps, radioPropsBase, rangeArr, rateEmits, rateProps, renderThumbStyle$1 as renderThumbStyle, resultProps, roleTypes, rowContextKey, rowProps, scrollbarContextKey, scrollbarEmits, scrollbarProps, selectGroupKey, selectKey, selectV2InjectionKey, skeletonItemProps, skeletonProps, sliderContextKey, sliderEmits, sliderProps, spaceProps, statisticProps, stepProps, stepsEmits, stepsProps, subMenuProps, switchEmits, switchProps, tabBarProps, tabNavEmits, tabNavProps, tabPaneProps, tableV2Props, tableV2RowProps, tabsEmits, tabsProps, tabsRootContextKey, tagEmits, tagProps, textProps, thumbProps, timePickerDefaultProps, timeUnits$1 as timeUnits, timelineItemProps, tooltipEmits, transferCheckedChangeFn, transferEmits, transferProps, translate, uploadBaseProps, uploadContentProps, uploadContextKey, uploadDraggerEmits, uploadDraggerProps, uploadListEmits, uploadListProps, uploadListTypes, uploadProps, useAttrs, useCascaderConfig, useCursor, useDelayedRender, useDelayedToggle, useDelayedToggleProps, useDeprecated, useDialog, useDisabled, useDraggable, useEscapeKeydown, useFloating, useFloatingProps, useFocus, useFormDisabled, useFormItem, useFormItemInputId, useFormSize, useForwardRef, useForwardRefDirective, useGetDerivedNamespace, useGlobalComponentSettings, useGlobalConfig, useGlobalSize, useId, useIdInjection, useLocale, useLockscreen, useModal, useModelToggle, useModelToggleEmits, useModelToggleProps, useNamespace, useOrderedChildren, usePopper, usePopperArrowProps, usePopperContainer, usePopperContainerId, usePopperContentEmits, usePopperContentProps, usePopperCoreConfigProps, usePopperProps, usePopperTriggerProps, usePreventGlobal, useProp,
|
|
56010
|
+
export { BAR_MAP, CASCADER_PANEL_INJECTION_KEY, CHANGE_EVENT, ClickOutside, CommonPicker, CommonProps, DEFAULT_FORMATS_DATE, DEFAULT_FORMATS_DATEPICKER, DEFAULT_FORMATS_TIME, COLLECTION_INJECTION_KEY as DROPDOWN_COLLECTION_INJECTION_KEY, COLLECTION_ITEM_INJECTION_KEY as DROPDOWN_COLLECTION_ITEM_INJECTION_KEY, DROPDOWN_INJECTION_KEY, DefaultProps, DynamicSizeGrid$1 as DynamicSizeGrid, DynamicSizeList$1 as DynamicSizeList, EVENT_CODE, Effect, ElAffix, ElAlert, ElAside, ElAutoResizer, ElAutocomplete, ElAvatar, ElBacktop, ElBadge, ElBreadcrumb, ElBreadcrumbItem, ElButton, ElButtonGroup$1 as ElButtonGroup, ElCalendar, ElCard, ElCarousel, ElCarouselItem, ElCascader, ElCascaderPanel, ElCheckTag, ElCheckbox, ElCheckboxButton, ElCheckboxGroup$1 as ElCheckboxGroup, ElCol, ElCollapse, ElCollapseItem, ElCollapseTransition, ElCollection, ElCollectionItem, ElColorPicker, ElConfigProvider, ElContainer, ElCountdown, ElDatePicker, ElDescriptions, ElDescriptionsItem, ElDialog, ElDivider, ElDrawer, ElDropdown, ElDropdownItem, ElDropdownMenu, ElEmpty, ElFooter, ElForm, ElFormItem, ElHeader, ElIcon, ElImage, ElImageViewer, ElInfiniteScroll, ElInput, ElInputNumber, ElLink, ElLoading, vLoading as ElLoadingDirective, Loading as ElLoadingService, ElMain, ElMenu, ElMenuItem, ElMenuItemGroup, ElMessage, ElMessageBox, ElNotification, ElOption, ElOptionGroup, ElOverlay, ElPageHeader, ElPagination, ElPopconfirm, ElPopover, ElPopoverDirective, ElPopper, ElPopperArrow, ElPopperContent, ElPopperTrigger, ElProgress, ElRadio, ElRadioButton, ElRadioGroup, ElRate, ElResult, ElRow, ElScrollbar, ElSelect, ElSelectV2, ElSkeleton, ElSkeletonItem, ElSlider, ElSpace, ElStatistic, ElStep, ElSteps, ElSubMenu, ElSwitch, ElTabPane, ElTable, ElTableColumn, ElTableV2, ElTabs, ElTag, ElText, ElTimePicker, ElTimeSelect, ElTimeline, ElTimelineItem, ElTooltip, ElTransfer, ElTree, ElTreeSelect, ElTreeV2, ElUpload, FIRST_KEYS, FIRST_LAST_KEYS, FORWARD_REF_INJECTION_KEY, FixedSizeGrid$1 as FixedSizeGrid, FixedSizeList$1 as FixedSizeList, GAP, ID_INJECTION_KEY, INPUT_EVENT, INSTALLED_KEY, IconComponentMap, IconMap, LAST_KEYS, LEFT_CHECK_CHANGE_EVENT, Mousewheel, POPPER_CONTENT_INJECTION_KEY, POPPER_INJECTION_KEY, RIGHT_CHECK_CHANGE_EVENT, ROOT_PICKER_INJECTION_KEY, RowAlign, RowJustify, SIZE_INJECTION_KEY, TOOLTIP_INJECTION_KEY, TableV2$1 as TableV2, Alignment as TableV2Alignment, FixedDir as TableV2FixedDir, placeholderSign as TableV2Placeholder, SortOrder as TableV2SortOrder, TimePickPanel, TrapFocus, UPDATE_MODEL_EVENT, WEEK_DAYS, affixEmits, affixProps, alertEffects, alertEmits, alertProps, arrowMiddleware, autoResizerProps, autocompleteEmits, autocompleteProps, avatarEmits, avatarProps, backtopEmits, backtopProps, badgeProps, breadcrumbItemProps, breadcrumbKey, breadcrumbProps, buildLocaleContext, buildTimeList, buildTranslator, buttonEmits, buttonGroupContextKey, buttonNativeTypes, buttonProps, buttonTypes, calendarEmits, calendarProps, cardProps, carouselContextKey, carouselEmits, carouselItemProps, carouselProps, cascaderEmits, cascaderProps, checkTagEmits, checkTagProps, checkboxEmits, checkboxGroupContextKey, checkboxGroupEmits, checkboxGroupProps, checkboxProps, colProps, collapseContextKey, collapseEmits, collapseItemProps, collapseProps, colorPickerContextKey, colorPickerEmits, colorPickerProps, componentSizeMap, componentSizes, configProviderContextKey, configProviderProps, countdownEmits, countdownProps, createModelToggleComposable, dateEquals, datePickTypes, datePickerProps, dayjs, installer as default, defaultInitialZIndex, defaultNamespace, descriptionProps, dialogEmits, dialogInjectionKey, dialogProps, dividerProps, drawerEmits, drawerProps, dropdownItemProps, dropdownMenuProps, dropdownProps, elPaginationKey, emitChangeFn, emptyProps, extractDateFormat, extractTimeFormat, formContextKey, formEmits, formItemContextKey, formItemProps, formItemValidateStates, formProps, formatter, genFileId, getPositionDataWithUnit, iconProps, imageEmits, imageProps, imageViewerEmits, imageViewerProps, inputEmits, inputNumberEmits, inputNumberProps, inputProps, install, linkEmits, linkProps, localeContextKey, makeInstaller, makeList, menuEmits, menuItemEmits, menuItemGroupProps, menuItemProps, menuProps, messageConfig, messageDefaults, messageEmits, messageProps, messageTypes, namespaceContextKey, notificationEmits, notificationProps, notificationTypes, overlayEmits, overlayProps, pageHeaderEmits, pageHeaderProps, paginationEmits, paginationProps, parseDate, popconfirmEmits, popconfirmProps, popoverEmits, popoverProps, popperArrowProps, popperContentEmits, popperContentProps, popperCoreConfigProps, popperProps, popperTriggerProps, progressProps, provideGlobalConfig, radioButtonProps, radioEmits, radioGroupEmits, radioGroupKey, radioGroupProps, radioProps, radioPropsBase, rangeArr, rateEmits, rateProps, renderThumbStyle$1 as renderThumbStyle, resultProps, roleTypes, rowContextKey, rowProps, scrollbarContextKey, scrollbarEmits, scrollbarProps, selectGroupKey, selectKey, selectV2InjectionKey, skeletonItemProps, skeletonProps, sliderContextKey, sliderEmits, sliderProps, spaceProps, statisticProps, stepProps, stepsEmits, stepsProps, subMenuProps, switchEmits, switchProps, tabBarProps, tabNavEmits, tabNavProps, tabPaneProps, tableV2Props, tableV2RowProps, tabsEmits, tabsProps, tabsRootContextKey, tagEmits, tagProps, textProps, thumbProps, timePickerDefaultProps, timeUnits$1 as timeUnits, timelineItemProps, tooltipEmits, transferCheckedChangeFn, transferEmits, transferProps, translate, uploadBaseProps, uploadContentProps, uploadContextKey, uploadDraggerEmits, uploadDraggerProps, uploadListEmits, uploadListProps, uploadListTypes, uploadProps, useAttrs, useCascaderConfig, useCursor, useDelayedRender, useDelayedToggle, useDelayedToggleProps, useDeprecated, useDialog, useDisabled, useDraggable, useEscapeKeydown, useFloating, useFloatingProps, useFocus, useFormDisabled, useFormItem, useFormItemInputId, useFormSize, useForwardRef, useForwardRefDirective, useGetDerivedNamespace, useGlobalComponentSettings, useGlobalConfig, useGlobalSize, useId, useIdInjection, useLocale, useLockscreen, useModal, useModelToggle, useModelToggleEmits, useModelToggleProps, useNamespace, useOrderedChildren, usePopper, usePopperArrowProps, usePopperContainer, usePopperContainerId, usePopperContentEmits, usePopperContentProps, usePopperCoreConfigProps, usePopperProps, usePopperTriggerProps, usePreventGlobal, useProp, useSameTarget, useSize, useSizeProp, useSizeProps, useSpace, useTeleport, useThrottleRender, useTimeout, useTooltipContentProps, useTooltipModelToggle, useTooltipModelToggleEmits, useTooltipModelToggleProps, useTooltipProps, useTooltipTriggerProps, useTransitionFallthrough, useTransitionFallthroughEmits, useZIndex, vLoading, vRepeatClick, valueEquals, version, virtualizedGridProps, virtualizedListProps, virtualizedProps, virtualizedScrollbarProps, zIndexContextKey };
|