element-plus 2.5.3 → 2.5.4
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 +138 -141
- package/dist/index.full.min.js +10 -10
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +14 -14
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +139 -142
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar-eg.js +1 -1
- package/dist/locale/ar-eg.min.js +1 -1
- package/dist/locale/ar-eg.min.mjs +1 -1
- package/dist/locale/ar-eg.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/az.js +1 -1
- package/dist/locale/az.min.js +1 -1
- package/dist/locale/az.min.mjs +1 -1
- package/dist/locale/az.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/ckb.js +1 -1
- package/dist/locale/ckb.min.js +1 -1
- package/dist/locale/ckb.min.mjs +1 -1
- package/dist/locale/ckb.mjs +1 -1
- package/dist/locale/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/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/cascader/index.d.ts +58 -32
- package/es/components/cascader/src/cascader.d.ts +1 -1
- package/es/components/cascader/src/cascader.vue.d.ts +29 -16
- package/es/components/check-tag/index.d.ts +4 -0
- package/es/components/check-tag/src/check-tag.d.ts +1 -0
- package/es/components/check-tag/src/check-tag.mjs +5 -0
- package/es/components/check-tag/src/check-tag.mjs.map +1 -1
- package/es/components/check-tag/src/check-tag.vue.d.ts +4 -0
- package/es/components/check-tag/src/check-tag2.mjs +5 -1
- package/es/components/check-tag/src/check-tag2.mjs.map +1 -1
- package/es/components/dialog/index.d.ts +9 -8
- package/es/components/dialog/src/dialog-content.d.ts +1 -1
- package/es/components/dialog/src/dialog-content.mjs +1 -4
- package/es/components/dialog/src/dialog-content.mjs.map +1 -1
- package/es/components/dialog/src/dialog-content.vue.d.ts +5 -4
- package/es/components/dialog/src/dialog-content2.mjs +4 -4
- package/es/components/dialog/src/dialog-content2.mjs.map +1 -1
- package/es/components/dialog/src/dialog.d.ts +1 -1
- package/es/components/dialog/src/dialog.vue.d.ts +9 -8
- package/es/components/dialog/src/dialog2.mjs +2 -10
- package/es/components/dialog/src/dialog2.mjs.map +1 -1
- package/es/components/drawer/index.d.ts +7 -4
- package/es/components/drawer/src/drawer.d.ts +1 -1
- package/es/components/drawer/src/drawer.vue.d.ts +7 -4
- package/es/components/drawer/src/drawer2.mjs +8 -10
- package/es/components/drawer/src/drawer2.mjs.map +1 -1
- package/es/components/empty/index.mjs +2 -2
- package/es/components/empty/src/empty.mjs +11 -55
- package/es/components/empty/src/empty.mjs.map +1 -1
- package/es/components/empty/src/empty2.mjs +55 -11
- package/es/components/empty/src/empty2.mjs.map +1 -1
- package/es/components/index.mjs +1 -1
- package/es/components/menu/src/menu.mjs +10 -3
- package/es/components/menu/src/menu.mjs.map +1 -1
- package/es/components/message/src/message.vue.d.ts +1 -1
- package/es/components/message-box/src/index.mjs +4 -2
- package/es/components/message-box/src/index.mjs.map +1 -1
- package/es/components/message-box/src/index.vue.d.ts +1855 -2
- package/es/components/message-box/src/message-box.type.d.ts +2 -0
- package/es/components/notification/src/notification.vue.d.ts +1 -1
- package/es/components/pagination/src/components/sizes.vue.d.ts +3 -3
- package/es/components/select/index.d.ts +3 -3
- package/es/components/select/src/option-group.mjs +3 -1
- package/es/components/select/src/option-group.mjs.map +1 -1
- package/es/components/select/src/select.d.ts +1 -1
- package/es/components/select/src/select.vue.d.ts +3 -3
- package/es/components/select/src/useOption.mjs +4 -4
- package/es/components/select/src/useOption.mjs.map +1 -1
- package/es/components/select/src/useSelect.mjs +0 -2
- package/es/components/select/src/useSelect.mjs.map +1 -1
- package/es/components/select-v2/index.d.ts +6 -6
- package/es/components/select-v2/src/defaults.d.ts +1 -1
- package/es/components/select-v2/src/select.vue.d.ts +3 -3
- package/es/components/select-v2/src/useSelect.mjs +0 -2
- package/es/components/select-v2/src/useSelect.mjs.map +1 -1
- package/es/components/table/src/util.mjs +1 -1
- package/es/components/table/src/util.mjs.map +1 -1
- package/es/components/tabs/src/tabs.mjs +11 -2
- package/es/components/tabs/src/tabs.mjs.map +1 -1
- package/es/components/tag/index.d.ts +25 -12
- package/es/components/tag/src/tag.d.ts +8 -3
- package/es/components/tag/src/tag.mjs +4 -8
- package/es/components/tag/src/tag.mjs.map +1 -1
- package/es/components/tag/src/tag.vue.d.ts +25 -12
- package/es/components/tag/src/tag2.mjs +1 -1
- package/es/components/tag/src/tag2.mjs.map +1 -1
- package/es/components/time-select/index.d.ts +12 -12
- package/es/components/time-select/src/time-select.vue.d.ts +6 -6
- package/es/components/tour/index.d.ts +42 -6241
- package/es/components/tour/src/helper.d.ts +8 -8
- package/es/components/tour/src/helper.mjs +3 -45
- package/es/components/tour/src/helper.mjs.map +1 -1
- package/es/components/tour/src/step.d.ts +4 -14
- package/es/components/tour/src/step.mjs +6 -4
- package/es/components/tour/src/step.mjs.map +1 -1
- package/es/components/tour/src/step.vue.d.ts +24 -49
- package/es/components/tour/src/step2.mjs +17 -5
- package/es/components/tour/src/step2.mjs.map +1 -1
- package/es/components/tour/src/steps.d.ts +2 -2
- package/es/components/tour/src/steps.mjs +7 -9
- package/es/components/tour/src/steps.mjs.map +1 -1
- package/es/components/tour/src/tour.vue.d.ts +9 -6155
- package/es/components/tour/src/tour2.mjs +26 -20
- package/es/components/tour/src/tour2.mjs.map +1 -1
- package/es/components/tour/src/types.d.ts +5 -16
- package/es/components/upload/index.d.ts +36 -0
- package/es/components/upload/src/upload-list.d.ts +6 -0
- package/es/components/upload/src/upload-list.mjs +3 -0
- package/es/components/upload/src/upload-list.mjs.map +1 -1
- package/es/components/upload/src/upload-list.vue.d.ts +18 -0
- package/es/components/upload/src/upload-list2.mjs +2 -1
- package/es/components/upload/src/upload-list2.mjs.map +1 -1
- package/es/components/upload/src/upload.d.ts +8 -0
- package/es/components/upload/src/upload.mjs +3 -0
- package/es/components/upload/src/upload.mjs.map +1 -1
- package/es/components/upload/src/upload.vue.d.ts +36 -0
- package/es/components/upload/src/upload2.mjs +4 -2
- package/es/components/upload/src/upload2.mjs.map +1 -1
- package/es/hooks/use-draggable/index.d.ts +1 -1
- package/es/hooks/use-draggable/index.mjs +7 -3
- package/es/hooks/use-draggable/index.mjs.map +1 -1
- package/es/index.mjs +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/cascader/index.d.ts +58 -32
- package/lib/components/cascader/src/cascader.d.ts +1 -1
- package/lib/components/cascader/src/cascader.vue.d.ts +29 -16
- package/lib/components/check-tag/index.d.ts +4 -0
- package/lib/components/check-tag/src/check-tag.d.ts +1 -0
- package/lib/components/check-tag/src/check-tag.js +5 -0
- package/lib/components/check-tag/src/check-tag.js.map +1 -1
- package/lib/components/check-tag/src/check-tag.vue.d.ts +4 -0
- package/lib/components/check-tag/src/check-tag2.js +5 -1
- package/lib/components/check-tag/src/check-tag2.js.map +1 -1
- package/lib/components/dialog/index.d.ts +9 -8
- package/lib/components/dialog/src/dialog-content.d.ts +1 -1
- package/lib/components/dialog/src/dialog-content.js +1 -4
- package/lib/components/dialog/src/dialog-content.js.map +1 -1
- package/lib/components/dialog/src/dialog-content.vue.d.ts +5 -4
- package/lib/components/dialog/src/dialog-content2.js +4 -4
- package/lib/components/dialog/src/dialog-content2.js.map +1 -1
- package/lib/components/dialog/src/dialog.d.ts +1 -1
- package/lib/components/dialog/src/dialog.vue.d.ts +9 -8
- package/lib/components/dialog/src/dialog2.js +2 -10
- package/lib/components/dialog/src/dialog2.js.map +1 -1
- package/lib/components/drawer/index.d.ts +7 -4
- package/lib/components/drawer/src/drawer.d.ts +1 -1
- package/lib/components/drawer/src/drawer.vue.d.ts +7 -4
- package/lib/components/drawer/src/drawer2.js +8 -10
- package/lib/components/drawer/src/drawer2.js.map +1 -1
- package/lib/components/empty/index.js +2 -2
- package/lib/components/empty/src/empty.js +11 -55
- package/lib/components/empty/src/empty.js.map +1 -1
- package/lib/components/empty/src/empty2.js +55 -11
- package/lib/components/empty/src/empty2.js.map +1 -1
- package/lib/components/index.js +1 -1
- package/lib/components/menu/src/menu.js +10 -3
- package/lib/components/menu/src/menu.js.map +1 -1
- package/lib/components/message/src/message.vue.d.ts +1 -1
- package/lib/components/message-box/src/index.js +4 -2
- package/lib/components/message-box/src/index.js.map +1 -1
- package/lib/components/message-box/src/index.vue.d.ts +1855 -2
- package/lib/components/message-box/src/message-box.type.d.ts +2 -0
- package/lib/components/notification/src/notification.vue.d.ts +1 -1
- package/lib/components/pagination/src/components/sizes.vue.d.ts +3 -3
- package/lib/components/select/index.d.ts +3 -3
- package/lib/components/select/src/option-group.js +3 -1
- package/lib/components/select/src/option-group.js.map +1 -1
- package/lib/components/select/src/select.d.ts +1 -1
- package/lib/components/select/src/select.vue.d.ts +3 -3
- package/lib/components/select/src/useOption.js +3 -3
- package/lib/components/select/src/useOption.js.map +1 -1
- package/lib/components/select/src/useSelect.js +0 -2
- package/lib/components/select/src/useSelect.js.map +1 -1
- package/lib/components/select-v2/index.d.ts +6 -6
- package/lib/components/select-v2/src/defaults.d.ts +1 -1
- package/lib/components/select-v2/src/select.vue.d.ts +3 -3
- package/lib/components/select-v2/src/useSelect.js +0 -2
- package/lib/components/select-v2/src/useSelect.js.map +1 -1
- package/lib/components/table/src/util.js +1 -1
- package/lib/components/table/src/util.js.map +1 -1
- package/lib/components/tabs/src/tabs.js +11 -2
- package/lib/components/tabs/src/tabs.js.map +1 -1
- package/lib/components/tag/index.d.ts +25 -12
- package/lib/components/tag/src/tag.d.ts +8 -3
- package/lib/components/tag/src/tag.js +4 -8
- package/lib/components/tag/src/tag.js.map +1 -1
- package/lib/components/tag/src/tag.vue.d.ts +25 -12
- package/lib/components/tag/src/tag2.js +1 -1
- package/lib/components/tag/src/tag2.js.map +1 -1
- package/lib/components/time-select/index.d.ts +12 -12
- package/lib/components/time-select/src/time-select.vue.d.ts +6 -6
- package/lib/components/tour/index.d.ts +42 -6241
- package/lib/components/tour/src/helper.d.ts +8 -8
- package/lib/components/tour/src/helper.js +0 -44
- package/lib/components/tour/src/helper.js.map +1 -1
- package/lib/components/tour/src/step.d.ts +4 -14
- package/lib/components/tour/src/step.js +6 -4
- package/lib/components/tour/src/step.js.map +1 -1
- package/lib/components/tour/src/step.vue.d.ts +24 -49
- package/lib/components/tour/src/step2.js +16 -4
- package/lib/components/tour/src/step2.js.map +1 -1
- package/lib/components/tour/src/steps.d.ts +2 -2
- package/lib/components/tour/src/steps.js +7 -9
- package/lib/components/tour/src/steps.js.map +1 -1
- package/lib/components/tour/src/tour.vue.d.ts +9 -6155
- package/lib/components/tour/src/tour2.js +26 -20
- package/lib/components/tour/src/tour2.js.map +1 -1
- package/lib/components/tour/src/types.d.ts +5 -16
- package/lib/components/upload/index.d.ts +36 -0
- package/lib/components/upload/src/upload-list.d.ts +6 -0
- package/lib/components/upload/src/upload-list.js +3 -0
- package/lib/components/upload/src/upload-list.js.map +1 -1
- package/lib/components/upload/src/upload-list.vue.d.ts +18 -0
- package/lib/components/upload/src/upload-list2.js +2 -1
- package/lib/components/upload/src/upload-list2.js.map +1 -1
- package/lib/components/upload/src/upload.d.ts +8 -0
- package/lib/components/upload/src/upload.js +3 -0
- package/lib/components/upload/src/upload.js.map +1 -1
- package/lib/components/upload/src/upload.vue.d.ts +36 -0
- package/lib/components/upload/src/upload2.js +4 -2
- package/lib/components/upload/src/upload2.js.map +1 -1
- package/lib/hooks/use-draggable/index.d.ts +1 -1
- package/lib/hooks/use-draggable/index.js +7 -3
- package/lib/hooks/use-draggable/index.js.map +1 -1
- package/lib/index.js +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-check-tag.css +1 -1
- package/theme-chalk/el-dialog.css +1 -1
- package/theme-chalk/el-message-box.css +1 -1
- package/theme-chalk/el-tag.css +1 -1
- package/theme-chalk/el-tour.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/check-tag.scss +9 -4
- package/theme-chalk/src/common/var.scss +6 -4
- package/theme-chalk/src/dialog.scss +14 -11
- package/theme-chalk/src/message-box.scss +29 -65
- package/theme-chalk/src/tag.scss +0 -1
- package/theme-chalk/src/tour.scss +16 -13
- package/web-types.json +1 -1
package/dist/index.full.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Element Plus v2.5.
|
|
1
|
+
/*! Element Plus v2.5.4 */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
|
|
@@ -8641,7 +8641,7 @@
|
|
|
8641
8641
|
function isValidElementNode(node) {
|
|
8642
8642
|
return vue.isVNode(node) && !isFragment(node) && !isComment(node);
|
|
8643
8643
|
}
|
|
8644
|
-
const getNormalizedProps
|
|
8644
|
+
const getNormalizedProps = (node) => {
|
|
8645
8645
|
if (!vue.isVNode(node)) {
|
|
8646
8646
|
return {};
|
|
8647
8647
|
}
|
|
@@ -8721,7 +8721,7 @@
|
|
|
8721
8721
|
});
|
|
8722
8722
|
};
|
|
8723
8723
|
|
|
8724
|
-
const useDraggable = (targetRef, dragRef, draggable) => {
|
|
8724
|
+
const useDraggable = (targetRef, dragRef, draggable, overflow) => {
|
|
8725
8725
|
let transform = {
|
|
8726
8726
|
offsetX: 0,
|
|
8727
8727
|
offsetY: 0
|
|
@@ -8742,8 +8742,12 @@
|
|
|
8742
8742
|
const maxLeft = clientWidth - targetLeft - targetWidth + offsetX;
|
|
8743
8743
|
const maxTop = clientHeight - targetTop - targetHeight + offsetY;
|
|
8744
8744
|
const onMousemove = (e2) => {
|
|
8745
|
-
|
|
8746
|
-
|
|
8745
|
+
let moveX = offsetX + e2.clientX - downX;
|
|
8746
|
+
let moveY = offsetY + e2.clientY - downY;
|
|
8747
|
+
if (!(overflow == null ? void 0 : overflow.value)) {
|
|
8748
|
+
moveX = Math.min(Math.max(moveX, minLeft), maxLeft);
|
|
8749
|
+
moveY = Math.min(Math.max(moveY, minTop), maxTop);
|
|
8750
|
+
}
|
|
8747
8751
|
transform = {
|
|
8748
8752
|
offsetX: moveX,
|
|
8749
8753
|
offsetY: moveY
|
|
@@ -11563,7 +11567,7 @@
|
|
|
11563
11567
|
|
|
11564
11568
|
const ElConfigProvider = withInstall(ConfigProvider);
|
|
11565
11569
|
|
|
11566
|
-
const version$1 = "2.5.
|
|
11570
|
+
const version$1 = "2.5.4";
|
|
11567
11571
|
|
|
11568
11572
|
const makeInstaller = (components = []) => {
|
|
11569
11573
|
const install = (app, options) => {
|
|
@@ -23474,20 +23478,16 @@
|
|
|
23474
23478
|
const tagProps = buildProps({
|
|
23475
23479
|
type: {
|
|
23476
23480
|
type: String,
|
|
23477
|
-
values: ["success", "info", "warning", "danger"
|
|
23478
|
-
default: ""
|
|
23481
|
+
values: ["primary", "success", "info", "warning", "danger"],
|
|
23482
|
+
default: "primary"
|
|
23479
23483
|
},
|
|
23480
23484
|
closable: Boolean,
|
|
23481
23485
|
disableTransitions: Boolean,
|
|
23482
23486
|
hit: Boolean,
|
|
23483
|
-
color:
|
|
23484
|
-
type: String,
|
|
23485
|
-
default: ""
|
|
23486
|
-
},
|
|
23487
|
+
color: String,
|
|
23487
23488
|
size: {
|
|
23488
23489
|
type: String,
|
|
23489
|
-
values: componentSizes
|
|
23490
|
-
default: ""
|
|
23490
|
+
values: componentSizes
|
|
23491
23491
|
},
|
|
23492
23492
|
effect: {
|
|
23493
23493
|
type: String,
|
|
@@ -23517,7 +23517,7 @@
|
|
|
23517
23517
|
return [
|
|
23518
23518
|
ns.b(),
|
|
23519
23519
|
ns.is("closable", closable),
|
|
23520
|
-
ns.m(type),
|
|
23520
|
+
ns.m(type || "primary"),
|
|
23521
23521
|
ns.m(tagSize.value),
|
|
23522
23522
|
ns.m(effect),
|
|
23523
23523
|
ns.is("hit", hit),
|
|
@@ -24259,6 +24259,11 @@
|
|
|
24259
24259
|
checked: {
|
|
24260
24260
|
type: Boolean,
|
|
24261
24261
|
default: false
|
|
24262
|
+
},
|
|
24263
|
+
type: {
|
|
24264
|
+
type: String,
|
|
24265
|
+
values: ["primary", "success", "info", "warning", "danger"],
|
|
24266
|
+
default: "primary"
|
|
24262
24267
|
}
|
|
24263
24268
|
});
|
|
24264
24269
|
const checkTagEmits = {
|
|
@@ -24276,7 +24281,11 @@
|
|
|
24276
24281
|
setup(__props, { emit }) {
|
|
24277
24282
|
const props = __props;
|
|
24278
24283
|
const ns = useNamespace("check-tag");
|
|
24279
|
-
const containerKls = vue.computed(() => [
|
|
24284
|
+
const containerKls = vue.computed(() => [
|
|
24285
|
+
ns.b(),
|
|
24286
|
+
ns.is("checked", props.checked),
|
|
24287
|
+
ns.m(props.type || "primary")
|
|
24288
|
+
]);
|
|
24280
24289
|
const handleChange = () => {
|
|
24281
24290
|
const checked = !props.checked;
|
|
24282
24291
|
emit(CHANGE_EVENT, checked);
|
|
@@ -29011,7 +29020,7 @@
|
|
|
29011
29020
|
},
|
|
29012
29021
|
render() {
|
|
29013
29022
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
29014
|
-
const item = getNormalizedProps
|
|
29023
|
+
const item = getNormalizedProps(this.cell);
|
|
29015
29024
|
const directives = (((_a = this.cell) == null ? void 0 : _a.dirs) || []).map((dire) => {
|
|
29016
29025
|
const { dir, arg, modifiers, value } = dire;
|
|
29017
29026
|
return [dir, value, arg, modifiers];
|
|
@@ -29385,11 +29394,8 @@
|
|
|
29385
29394
|
closeIcon: {
|
|
29386
29395
|
type: iconPropType
|
|
29387
29396
|
},
|
|
29388
|
-
customClass: {
|
|
29389
|
-
type: String,
|
|
29390
|
-
default: ""
|
|
29391
|
-
},
|
|
29392
29397
|
draggable: Boolean,
|
|
29398
|
+
overflow: Boolean,
|
|
29393
29399
|
fullscreen: Boolean,
|
|
29394
29400
|
showClose: {
|
|
29395
29401
|
type: Boolean,
|
|
@@ -29427,12 +29433,12 @@
|
|
|
29427
29433
|
ns.is("fullscreen", props.fullscreen),
|
|
29428
29434
|
ns.is("draggable", props.draggable),
|
|
29429
29435
|
ns.is("align-center", props.alignCenter),
|
|
29430
|
-
{ [ns.m("center")]: props.center }
|
|
29431
|
-
props.customClass
|
|
29436
|
+
{ [ns.m("center")]: props.center }
|
|
29432
29437
|
]);
|
|
29433
29438
|
const composedDialogRef = composeRefs(focusTrapRef, dialogRef);
|
|
29434
29439
|
const draggable = vue.computed(() => props.draggable);
|
|
29435
|
-
|
|
29440
|
+
const overflow = vue.computed(() => props.overflow);
|
|
29441
|
+
useDraggable(dialogRef, headerRef, draggable, overflow);
|
|
29436
29442
|
return (_ctx, _cache) => {
|
|
29437
29443
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
29438
29444
|
ref: vue.unref(composedDialogRef),
|
|
@@ -29443,7 +29449,7 @@
|
|
|
29443
29449
|
vue.createElementVNode("header", {
|
|
29444
29450
|
ref_key: "headerRef",
|
|
29445
29451
|
ref: headerRef,
|
|
29446
|
-
class: vue.normalizeClass(vue.unref(ns).e("header"))
|
|
29452
|
+
class: vue.normalizeClass([vue.unref(ns).e("header"), { "show-close": _ctx.showClose }])
|
|
29447
29453
|
}, [
|
|
29448
29454
|
vue.renderSlot(_ctx.$slots, "header", {}, () => [
|
|
29449
29455
|
vue.createElementVNode("span", {
|
|
@@ -29740,14 +29746,6 @@
|
|
|
29740
29746
|
version: "3.0.0",
|
|
29741
29747
|
ref: "https://element-plus.org/en-US/component/dialog.html#slots"
|
|
29742
29748
|
}, vue.computed(() => !!slots.title));
|
|
29743
|
-
useDeprecated({
|
|
29744
|
-
scope: "el-dialog",
|
|
29745
|
-
from: "custom-class",
|
|
29746
|
-
replacement: "class",
|
|
29747
|
-
version: "2.3.0",
|
|
29748
|
-
ref: "https://element-plus.org/en-US/component/dialog.html#attributes",
|
|
29749
|
-
type: "Attribute"
|
|
29750
|
-
}, vue.computed(() => !!props.customClass));
|
|
29751
29749
|
const ns = useNamespace("dialog");
|
|
29752
29750
|
const dialogRef = vue.ref();
|
|
29753
29751
|
const headerRef = vue.ref();
|
|
@@ -29831,11 +29829,11 @@
|
|
|
29831
29829
|
ref_key: "dialogContentRef",
|
|
29832
29830
|
ref: dialogContentRef
|
|
29833
29831
|
}, _ctx.$attrs, {
|
|
29834
|
-
"custom-class": _ctx.customClass,
|
|
29835
29832
|
center: _ctx.center,
|
|
29836
29833
|
"align-center": _ctx.alignCenter,
|
|
29837
29834
|
"close-icon": _ctx.closeIcon,
|
|
29838
29835
|
draggable: vue.unref(draggable),
|
|
29836
|
+
overflow: _ctx.overflow,
|
|
29839
29837
|
fullscreen: _ctx.fullscreen,
|
|
29840
29838
|
"show-close": _ctx.showClose,
|
|
29841
29839
|
title: _ctx.title,
|
|
@@ -29861,7 +29859,7 @@
|
|
|
29861
29859
|
vue.renderSlot(_ctx.$slots, "footer")
|
|
29862
29860
|
])
|
|
29863
29861
|
} : void 0
|
|
29864
|
-
]), 1040, ["
|
|
29862
|
+
]), 1040, ["center", "align-center", "close-icon", "draggable", "overflow", "fullscreen", "show-close", "title", "aria-level", "onClose"])) : vue.createCommentVNode("v-if", true)
|
|
29865
29863
|
]),
|
|
29866
29864
|
_: 3
|
|
29867
29865
|
}, 8, ["trapped", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusoutPrevented", "onReleaseRequested"])
|
|
@@ -29981,14 +29979,6 @@
|
|
|
29981
29979
|
version: "3.0.0",
|
|
29982
29980
|
ref: "https://element-plus.org/en-US/component/drawer.html#slots"
|
|
29983
29981
|
}, vue.computed(() => !!slots.title));
|
|
29984
|
-
useDeprecated({
|
|
29985
|
-
scope: "el-drawer",
|
|
29986
|
-
from: "custom-class",
|
|
29987
|
-
replacement: "class",
|
|
29988
|
-
version: "2.3.0",
|
|
29989
|
-
ref: "https://element-plus.org/en-US/component/drawer.html#attributes",
|
|
29990
|
-
type: "Attribute"
|
|
29991
|
-
}, vue.computed(() => !!props.customClass));
|
|
29992
29982
|
const drawerRef = vue.ref();
|
|
29993
29983
|
const focusStartRef = vue.ref();
|
|
29994
29984
|
const ns = useNamespace("drawer");
|
|
@@ -30002,6 +29992,9 @@
|
|
|
30002
29992
|
titleId,
|
|
30003
29993
|
bodyId,
|
|
30004
29994
|
onModalClick,
|
|
29995
|
+
onOpenAutoFocus,
|
|
29996
|
+
onCloseAutoFocus,
|
|
29997
|
+
onFocusoutPrevented,
|
|
30005
29998
|
onCloseRequested,
|
|
30006
29999
|
handleClose
|
|
30007
30000
|
} = useDialog(props, drawerRef);
|
|
@@ -30037,6 +30030,9 @@
|
|
|
30037
30030
|
trapped: vue.unref(visible),
|
|
30038
30031
|
"focus-trap-el": drawerRef.value,
|
|
30039
30032
|
"focus-start-el": focusStartRef.value,
|
|
30033
|
+
onFocusAfterTrapped: vue.unref(onOpenAutoFocus),
|
|
30034
|
+
onFocusAfterReleased: vue.unref(onCloseAutoFocus),
|
|
30035
|
+
onFocusoutPrevented: vue.unref(onFocusoutPrevented),
|
|
30040
30036
|
onReleaseRequested: vue.unref(onCloseRequested)
|
|
30041
30037
|
}, {
|
|
30042
30038
|
default: vue.withCtx(() => [
|
|
@@ -30048,7 +30044,7 @@
|
|
|
30048
30044
|
"aria-labelledby": !_ctx.title ? vue.unref(titleId) : void 0,
|
|
30049
30045
|
"aria-describedby": vue.unref(bodyId)
|
|
30050
30046
|
}, _ctx.$attrs, {
|
|
30051
|
-
class: [vue.unref(ns).b(), _ctx.direction, vue.unref(visible) && "open"
|
|
30047
|
+
class: [vue.unref(ns).b(), _ctx.direction, vue.unref(visible) && "open"],
|
|
30052
30048
|
style: vue.unref(isHorizontal) ? "width: " + vue.unref(drawerSize) : "height: " + vue.unref(drawerSize),
|
|
30053
30049
|
role: "dialog",
|
|
30054
30050
|
onClick: _cache[1] || (_cache[1] = vue.withModifiers(() => {
|
|
@@ -30113,7 +30109,7 @@
|
|
|
30113
30109
|
], 16, _hoisted_1$C)
|
|
30114
30110
|
]),
|
|
30115
30111
|
_: 3
|
|
30116
|
-
}, 8, ["trapped", "focus-trap-el", "focus-start-el", "onReleaseRequested"])
|
|
30112
|
+
}, 8, ["trapped", "focus-trap-el", "focus-start-el", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusoutPrevented", "onReleaseRequested"])
|
|
30117
30113
|
]),
|
|
30118
30114
|
_: 3
|
|
30119
30115
|
}, 8, ["mask", "overlay-class", "z-index", "onClick"]), [
|
|
@@ -33221,19 +33217,26 @@
|
|
|
33221
33217
|
activeIndex.value = val;
|
|
33222
33218
|
}
|
|
33223
33219
|
};
|
|
33220
|
+
const calcMenuItemWidth = (menuItem) => {
|
|
33221
|
+
const computedStyle = getComputedStyle(menuItem);
|
|
33222
|
+
const marginLeft = Number.parseInt(computedStyle.marginLeft, 10);
|
|
33223
|
+
const marginRight = Number.parseInt(computedStyle.marginRight, 10);
|
|
33224
|
+
return menuItem.offsetWidth + marginLeft + marginRight || 0;
|
|
33225
|
+
};
|
|
33224
33226
|
const calcSliceIndex = () => {
|
|
33225
33227
|
var _a, _b;
|
|
33226
33228
|
if (!menu.value)
|
|
33227
33229
|
return -1;
|
|
33228
33230
|
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));
|
|
33229
33231
|
const moreItemWidth = 64;
|
|
33230
|
-
const
|
|
33231
|
-
const
|
|
33232
|
+
const computedMenuStyle = getComputedStyle(menu.value);
|
|
33233
|
+
const paddingLeft = Number.parseInt(computedMenuStyle.paddingLeft, 10);
|
|
33234
|
+
const paddingRight = Number.parseInt(computedMenuStyle.paddingRight, 10);
|
|
33232
33235
|
const menuWidth = menu.value.clientWidth - paddingLeft - paddingRight;
|
|
33233
33236
|
let calcWidth = 0;
|
|
33234
33237
|
let sliceIndex2 = 0;
|
|
33235
33238
|
items2.forEach((item, index) => {
|
|
33236
|
-
calcWidth += item
|
|
33239
|
+
calcWidth += calcMenuItemWidth(item);
|
|
33237
33240
|
if (calcWidth <= menuWidth - moreItemWidth) {
|
|
33238
33241
|
sliceIndex2 = index + 1;
|
|
33239
33242
|
}
|
|
@@ -33762,10 +33765,10 @@
|
|
|
33762
33765
|
const select = vue.inject(selectKey);
|
|
33763
33766
|
const selectGroup = vue.inject(selectGroupKey, { disabled: false });
|
|
33764
33767
|
const itemSelected = vue.computed(() => {
|
|
33765
|
-
if (
|
|
33766
|
-
return isEqual$1(props.value, select.props.modelValue);
|
|
33767
|
-
} else {
|
|
33768
|
+
if (select.props.multiple) {
|
|
33768
33769
|
return contains(select.props.modelValue, props.value);
|
|
33770
|
+
} else {
|
|
33771
|
+
return contains([select.props.modelValue], props.value);
|
|
33769
33772
|
}
|
|
33770
33773
|
});
|
|
33771
33774
|
const limitReached = vue.computed(() => {
|
|
@@ -34476,8 +34479,6 @@
|
|
|
34476
34479
|
const toggleMenu = () => {
|
|
34477
34480
|
if (selectDisabled.value)
|
|
34478
34481
|
return;
|
|
34479
|
-
if (props.filterable && props.remote && isFunction$1(props.remoteMethod))
|
|
34480
|
-
return;
|
|
34481
34482
|
if (states.menuVisibleOnFocus) {
|
|
34482
34483
|
states.menuVisibleOnFocus = false;
|
|
34483
34484
|
} else {
|
|
@@ -35151,11 +35152,13 @@
|
|
|
35151
35152
|
const children2 = [];
|
|
35152
35153
|
if (isArray$1(node.children)) {
|
|
35153
35154
|
node.children.forEach((child) => {
|
|
35154
|
-
var _a;
|
|
35155
|
+
var _a, _b;
|
|
35155
35156
|
if (child.type && child.type.name === "ElOption" && child.component && child.component.proxy) {
|
|
35156
35157
|
children2.push(child.component.proxy);
|
|
35157
35158
|
} else if ((_a = child.children) == null ? void 0 : _a.length) {
|
|
35158
35159
|
children2.push(...flattedChildren(child));
|
|
35160
|
+
} else if ((_b = child.component) == null ? void 0 : _b.subTree) {
|
|
35161
|
+
children2.push(...flattedChildren(child.component.subTree));
|
|
35159
35162
|
}
|
|
35160
35163
|
});
|
|
35161
35164
|
}
|
|
@@ -39447,8 +39450,6 @@
|
|
|
39447
39450
|
const toggleMenu = () => {
|
|
39448
39451
|
if (selectDisabled.value)
|
|
39449
39452
|
return;
|
|
39450
|
-
if (props.filterable && props.remote && isFunction$1(props.remoteMethod))
|
|
39451
|
-
return;
|
|
39452
39453
|
if (states.menuVisibleOnFocus) {
|
|
39453
39454
|
states.menuVisibleOnFocus = false;
|
|
39454
39455
|
} else {
|
|
@@ -42594,7 +42595,7 @@
|
|
|
42594
42595
|
removePopper == null ? void 0 : removePopper();
|
|
42595
42596
|
}
|
|
42596
42597
|
});
|
|
42597
|
-
vm.appContext = table.appContext;
|
|
42598
|
+
vm.appContext = { ...table.appContext, ...table };
|
|
42598
42599
|
const container = document.createElement("div");
|
|
42599
42600
|
vue.render(vm, container);
|
|
42600
42601
|
vm.component.exposed.onOpen();
|
|
@@ -49289,6 +49290,14 @@
|
|
|
49289
49290
|
ref: "https://element-plus.org/en-US/component/tabs.html#attributes",
|
|
49290
49291
|
type: "Attribute"
|
|
49291
49292
|
}, vue.computed(() => !!props.activeName));
|
|
49293
|
+
useDeprecated({
|
|
49294
|
+
from: '"addIcon"',
|
|
49295
|
+
replacement: '"add-icon"',
|
|
49296
|
+
scope: "ElTabs",
|
|
49297
|
+
version: "2.6.0",
|
|
49298
|
+
ref: "https://element-plus.org/en-US/component/tabs.html#slots",
|
|
49299
|
+
type: "Slot"
|
|
49300
|
+
}, vue.computed(() => !!slots.addIcon));
|
|
49292
49301
|
vue.watch(() => props.activeName, (modelValue) => setCurrentName(modelValue));
|
|
49293
49302
|
vue.watch(() => props.modelValue, (modelValue) => setCurrentName(modelValue));
|
|
49294
49303
|
vue.watch(currentName, async () => {
|
|
@@ -49306,7 +49315,8 @@
|
|
|
49306
49315
|
currentName
|
|
49307
49316
|
});
|
|
49308
49317
|
return () => {
|
|
49309
|
-
const addSlot = slots
|
|
49318
|
+
const addSlot = slots["add-icon"] || slots["addIcon"];
|
|
49319
|
+
const isCamelCase = addSlot && slots["addIcon"];
|
|
49310
49320
|
const newButton = props.editable || props.addable ? vue.createVNode("span", {
|
|
49311
49321
|
"class": ns.e("new-tab"),
|
|
49312
49322
|
"tabindex": "0",
|
|
@@ -49315,7 +49325,7 @@
|
|
|
49315
49325
|
if (ev.code === EVENT_CODE.enter)
|
|
49316
49326
|
handleTabAdd();
|
|
49317
49327
|
}
|
|
49318
|
-
}, [addSlot ? vue.renderSlot(slots, "addIcon") : vue.createVNode(ElIcon, {
|
|
49328
|
+
}, [addSlot ? vue.renderSlot(slots, isCamelCase ? "addIcon" : "add-icon") : vue.createVNode(ElIcon, {
|
|
49319
49329
|
"class": ns.is("icon-plus")
|
|
49320
49330
|
}, {
|
|
49321
49331
|
default: () => [vue.createVNode(plus_default, null, null)]
|
|
@@ -53934,6 +53944,9 @@
|
|
|
53934
53944
|
onExceed: {
|
|
53935
53945
|
type: definePropType(Function),
|
|
53936
53946
|
default: NOOP
|
|
53947
|
+
},
|
|
53948
|
+
crossorigin: {
|
|
53949
|
+
type: definePropType(String)
|
|
53937
53950
|
}
|
|
53938
53951
|
});
|
|
53939
53952
|
|
|
@@ -53954,6 +53967,9 @@
|
|
|
53954
53967
|
type: String,
|
|
53955
53968
|
values: uploadListTypes,
|
|
53956
53969
|
default: "text"
|
|
53970
|
+
},
|
|
53971
|
+
crossorigin: {
|
|
53972
|
+
type: definePropType(String)
|
|
53957
53973
|
}
|
|
53958
53974
|
});
|
|
53959
53975
|
const uploadListEmits = {
|
|
@@ -53961,7 +53977,7 @@
|
|
|
53961
53977
|
};
|
|
53962
53978
|
|
|
53963
53979
|
const _hoisted_1$7 = ["onKeydown"];
|
|
53964
|
-
const _hoisted_2$5 = ["src"];
|
|
53980
|
+
const _hoisted_2$5 = ["src", "crossorigin"];
|
|
53965
53981
|
const _hoisted_3$2 = ["onClick"];
|
|
53966
53982
|
const _hoisted_4$1 = ["title"];
|
|
53967
53983
|
const _hoisted_5 = ["onClick"];
|
|
@@ -54015,6 +54031,7 @@
|
|
|
54015
54031
|
key: 0,
|
|
54016
54032
|
class: vue.normalizeClass(vue.unref(nsUpload).be("list", "item-thumbnail")),
|
|
54017
54033
|
src: file.url,
|
|
54034
|
+
crossorigin: _ctx.crossorigin,
|
|
54018
54035
|
alt: ""
|
|
54019
54036
|
}, null, 10, _hoisted_2$5)) : vue.createCommentVNode("v-if", true),
|
|
54020
54037
|
file.status === "uploading" || _ctx.listType !== "picture-card" ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -54598,6 +54615,7 @@
|
|
|
54598
54615
|
disabled: vue.unref(disabled),
|
|
54599
54616
|
"list-type": _ctx.listType,
|
|
54600
54617
|
files: vue.unref(uploadFiles),
|
|
54618
|
+
crossorigin: _ctx.crossorigin,
|
|
54601
54619
|
"handle-preview": _ctx.onPreview,
|
|
54602
54620
|
onRemove: vue.unref(handleRemove)
|
|
54603
54621
|
}, vue.createSlots({
|
|
@@ -54621,7 +54639,7 @@
|
|
|
54621
54639
|
vue.renderSlot(_ctx.$slots, "file", { file })
|
|
54622
54640
|
])
|
|
54623
54641
|
} : void 0
|
|
54624
|
-
]), 1032, ["disabled", "list-type", "files", "handle-preview", "onRemove"])) : vue.createCommentVNode("v-if", true),
|
|
54642
|
+
]), 1032, ["disabled", "list-type", "files", "crossorigin", "handle-preview", "onRemove"])) : vue.createCommentVNode("v-if", true),
|
|
54625
54643
|
!vue.unref(isPictureCard) || vue.unref(isPictureCard) && !_ctx.showFileList ? (vue.openBlock(), vue.createBlock(UploadContent, vue.mergeProps({
|
|
54626
54644
|
key: 1,
|
|
54627
54645
|
ref_key: "uploadRef",
|
|
@@ -54640,6 +54658,7 @@
|
|
|
54640
54658
|
disabled: vue.unref(disabled),
|
|
54641
54659
|
"list-type": _ctx.listType,
|
|
54642
54660
|
files: vue.unref(uploadFiles),
|
|
54661
|
+
crossorigin: _ctx.crossorigin,
|
|
54643
54662
|
"handle-preview": _ctx.onPreview,
|
|
54644
54663
|
onRemove: vue.unref(handleRemove)
|
|
54645
54664
|
}, vue.createSlots({ _: 2 }, [
|
|
@@ -54649,7 +54668,7 @@
|
|
|
54649
54668
|
vue.renderSlot(_ctx.$slots, "file", { file })
|
|
54650
54669
|
])
|
|
54651
54670
|
} : void 0
|
|
54652
|
-
]), 1032, ["disabled", "list-type", "files", "handle-preview", "onRemove"])) : vue.createCommentVNode("v-if", true)
|
|
54671
|
+
]), 1032, ["disabled", "list-type", "files", "crossorigin", "handle-preview", "onRemove"])) : vue.createCommentVNode("v-if", true)
|
|
54653
54672
|
]);
|
|
54654
54673
|
};
|
|
54655
54674
|
}
|
|
@@ -55110,48 +55129,6 @@
|
|
|
55110
55129
|
const { top, right, bottom, left } = element.getBoundingClientRect();
|
|
55111
55130
|
return top >= 0 && left >= 0 && right <= viewWidth && bottom <= viewHeight;
|
|
55112
55131
|
}
|
|
55113
|
-
const isSameProps = (a, b) => {
|
|
55114
|
-
if (Object.keys(a).length !== Object.keys(b).length)
|
|
55115
|
-
return false;
|
|
55116
|
-
for (const key in a) {
|
|
55117
|
-
if (a[key] !== b[key]) {
|
|
55118
|
-
return false;
|
|
55119
|
-
}
|
|
55120
|
-
}
|
|
55121
|
-
return true;
|
|
55122
|
-
};
|
|
55123
|
-
function isSameSteps(a, b) {
|
|
55124
|
-
if (a.length !== b.length)
|
|
55125
|
-
return false;
|
|
55126
|
-
for (const [index] of a.entries()) {
|
|
55127
|
-
if (isSameProps(a[index], b[index])) {
|
|
55128
|
-
return false;
|
|
55129
|
-
}
|
|
55130
|
-
}
|
|
55131
|
-
return true;
|
|
55132
|
-
}
|
|
55133
|
-
const getNormalizedProps = (node, booleanKeys) => {
|
|
55134
|
-
var _a;
|
|
55135
|
-
if (!vue.isVNode(node)) {
|
|
55136
|
-
return {};
|
|
55137
|
-
}
|
|
55138
|
-
const raw = node.props || {};
|
|
55139
|
-
const type = ((_a = node.type) == null ? void 0 : _a.props) || {};
|
|
55140
|
-
const props = {};
|
|
55141
|
-
Object.keys(type).forEach((key) => {
|
|
55142
|
-
if (hasOwn(type[key], "default")) {
|
|
55143
|
-
props[key] = type[key].default;
|
|
55144
|
-
}
|
|
55145
|
-
});
|
|
55146
|
-
Object.keys(raw).forEach((key) => {
|
|
55147
|
-
const cameKey = vue.camelize(key);
|
|
55148
|
-
props[cameKey] = raw[key];
|
|
55149
|
-
if (booleanKeys.includes(cameKey) && props[cameKey] === "") {
|
|
55150
|
-
props[cameKey] = true;
|
|
55151
|
-
}
|
|
55152
|
-
});
|
|
55153
|
-
return props;
|
|
55154
|
-
};
|
|
55155
55132
|
const useFloating = (referenceRef, contentRef, arrowRef, placement, strategy, offset$1, zIndex, showArrow) => {
|
|
55156
55133
|
const x = vue.ref();
|
|
55157
55134
|
const y = vue.ref();
|
|
@@ -55443,14 +55420,14 @@
|
|
|
55443
55420
|
default: 0
|
|
55444
55421
|
}
|
|
55445
55422
|
},
|
|
55446
|
-
emits: ["update-
|
|
55423
|
+
emits: ["update-total"],
|
|
55447
55424
|
setup(props, { slots, emit }) {
|
|
55448
|
-
let
|
|
55425
|
+
let cacheTotal = 0;
|
|
55449
55426
|
return () => {
|
|
55450
55427
|
var _a, _b;
|
|
55451
55428
|
const children = (_a = slots.default) == null ? void 0 : _a.call(slots);
|
|
55452
|
-
const filteredSteps = [];
|
|
55453
55429
|
const result = [];
|
|
55430
|
+
let total = 0;
|
|
55454
55431
|
function filterSteps(children2) {
|
|
55455
55432
|
if (!isArray$1(children2))
|
|
55456
55433
|
return;
|
|
@@ -55458,18 +55435,17 @@
|
|
|
55458
55435
|
var _a2;
|
|
55459
55436
|
const name = (_a2 = (item == null ? void 0 : item.type) || {}) == null ? void 0 : _a2.name;
|
|
55460
55437
|
if (name === "ElTourStep") {
|
|
55461
|
-
const booleanKeys = ["showArrow", "mask", "scrollIntoViewOptions"];
|
|
55462
|
-
filteredSteps.push(getNormalizedProps(item, booleanKeys));
|
|
55463
55438
|
result.push(item);
|
|
55439
|
+
total += 1;
|
|
55464
55440
|
}
|
|
55465
55441
|
});
|
|
55466
55442
|
}
|
|
55467
55443
|
if (children.length) {
|
|
55468
55444
|
filterSteps(flattedChildren((_b = children[0]) == null ? void 0 : _b.children));
|
|
55469
55445
|
}
|
|
55470
|
-
if (
|
|
55471
|
-
|
|
55472
|
-
emit("update-
|
|
55446
|
+
if (cacheTotal !== total) {
|
|
55447
|
+
cacheTotal = total;
|
|
55448
|
+
emit("update-total", total);
|
|
55473
55449
|
}
|
|
55474
55450
|
if (result.length) {
|
|
55475
55451
|
return result[props.current];
|
|
@@ -55554,39 +55530,44 @@
|
|
|
55554
55530
|
setup(__props, { emit }) {
|
|
55555
55531
|
const props = __props;
|
|
55556
55532
|
const ns = useNamespace("tour");
|
|
55557
|
-
const
|
|
55533
|
+
const total = vue.ref(0);
|
|
55534
|
+
const currentStep = vue.ref();
|
|
55558
55535
|
const current = useVModel(props, "current", emit, {
|
|
55559
55536
|
passive: true
|
|
55560
55537
|
});
|
|
55561
|
-
const
|
|
55562
|
-
|
|
55563
|
-
|
|
55538
|
+
const currentTarget = vue.computed(() => {
|
|
55539
|
+
var _a;
|
|
55540
|
+
return (_a = currentStep.value) == null ? void 0 : _a.target;
|
|
55541
|
+
});
|
|
55564
55542
|
const kls = vue.computed(() => [
|
|
55565
55543
|
ns.b(),
|
|
55566
55544
|
mergedType.value === "primary" ? ns.m("primary") : ""
|
|
55567
55545
|
]);
|
|
55568
|
-
const mergedPlacement = vue.computed(() =>
|
|
55569
|
-
const mergedContentStyle = vue.computed(() => {
|
|
55546
|
+
const mergedPlacement = vue.computed(() => {
|
|
55570
55547
|
var _a;
|
|
55571
|
-
return (_a = currentStep.value
|
|
55548
|
+
return ((_a = currentStep.value) == null ? void 0 : _a.placement) || props.placement;
|
|
55549
|
+
});
|
|
55550
|
+
const mergedContentStyle = vue.computed(() => {
|
|
55551
|
+
var _a, _b;
|
|
55552
|
+
return (_b = (_a = currentStep.value) == null ? void 0 : _a.contentStyle) != null ? _b : props.contentStyle;
|
|
55572
55553
|
});
|
|
55573
55554
|
const mergedMask = vue.computed(() => {
|
|
55574
|
-
var _a;
|
|
55575
|
-
return (_a = currentStep.value.mask) != null ?
|
|
55555
|
+
var _a, _b;
|
|
55556
|
+
return (_b = (_a = currentStep.value) == null ? void 0 : _a.mask) != null ? _b : props.mask;
|
|
55576
55557
|
});
|
|
55577
55558
|
const mergedShowMask = vue.computed(() => !!mergedMask.value && props.modelValue);
|
|
55578
55559
|
const mergedMaskStyle = vue.computed(() => isBoolean(mergedMask.value) ? void 0 : mergedMask.value);
|
|
55579
55560
|
const mergedShowArrow = vue.computed(() => {
|
|
55580
|
-
var _a;
|
|
55581
|
-
return !!currentTarget.value && ((_a = currentStep.value.showArrow) != null ?
|
|
55561
|
+
var _a, _b;
|
|
55562
|
+
return !!currentTarget.value && ((_b = (_a = currentStep.value) == null ? void 0 : _a.showArrow) != null ? _b : props.showArrow);
|
|
55582
55563
|
});
|
|
55583
55564
|
const mergedScrollIntoViewOptions = vue.computed(() => {
|
|
55584
|
-
var _a;
|
|
55585
|
-
return (_a = currentStep.value.scrollIntoViewOptions) != null ?
|
|
55565
|
+
var _a, _b;
|
|
55566
|
+
return (_b = (_a = currentStep.value) == null ? void 0 : _a.scrollIntoViewOptions) != null ? _b : props.scrollIntoViewOptions;
|
|
55586
55567
|
});
|
|
55587
55568
|
const mergedType = vue.computed(() => {
|
|
55588
|
-
var _a;
|
|
55589
|
-
return (_a = currentStep.value.type) != null ?
|
|
55569
|
+
var _a, _b;
|
|
55570
|
+
return (_b = (_a = currentStep.value) == null ? void 0 : _a.type) != null ? _b : props.type;
|
|
55590
55571
|
});
|
|
55591
55572
|
const { nextZIndex } = useZIndex();
|
|
55592
55573
|
const nowZIndex = nextZIndex();
|
|
@@ -55600,17 +55581,18 @@
|
|
|
55600
55581
|
current.value = 0;
|
|
55601
55582
|
}
|
|
55602
55583
|
});
|
|
55603
|
-
const onUpdateSteps = (v) => {
|
|
55604
|
-
steps.value = v;
|
|
55605
|
-
};
|
|
55606
55584
|
const onEscClose = () => {
|
|
55607
55585
|
if (props.closeOnPressEscape) {
|
|
55608
55586
|
emit("update:modelValue", false);
|
|
55609
55587
|
emit("close", current.value);
|
|
55610
55588
|
}
|
|
55611
55589
|
};
|
|
55590
|
+
const onUpdateTotal = (val) => {
|
|
55591
|
+
total.value = val;
|
|
55592
|
+
};
|
|
55612
55593
|
const slots = vue.useSlots();
|
|
55613
55594
|
vue.provide(tourKey, {
|
|
55595
|
+
currentStep,
|
|
55614
55596
|
current,
|
|
55615
55597
|
total,
|
|
55616
55598
|
showClose: vue.toRef(props, "showClose"),
|
|
@@ -55656,7 +55638,7 @@
|
|
|
55656
55638
|
default: vue.withCtx(() => [
|
|
55657
55639
|
vue.createVNode(vue.unref(ElTourSteps), {
|
|
55658
55640
|
current: vue.unref(current),
|
|
55659
|
-
|
|
55641
|
+
onUpdateTotal
|
|
55660
55642
|
}, {
|
|
55661
55643
|
default: vue.withCtx(() => [
|
|
55662
55644
|
vue.renderSlot(_ctx.$slots, "default")
|
|
@@ -55684,18 +55666,19 @@
|
|
|
55684
55666
|
description: String,
|
|
55685
55667
|
showClose: {
|
|
55686
55668
|
type: Boolean,
|
|
55687
|
-
default:
|
|
55669
|
+
default: void 0
|
|
55688
55670
|
},
|
|
55689
55671
|
closeIcon: {
|
|
55690
55672
|
type: iconPropType
|
|
55691
55673
|
},
|
|
55692
55674
|
showArrow: {
|
|
55693
55675
|
type: Boolean,
|
|
55694
|
-
default:
|
|
55676
|
+
default: void 0
|
|
55695
55677
|
},
|
|
55696
55678
|
placement: tourContentProps.placement,
|
|
55697
55679
|
mask: {
|
|
55698
|
-
type: definePropType([Boolean, Object])
|
|
55680
|
+
type: definePropType([Boolean, Object]),
|
|
55681
|
+
default: void 0
|
|
55699
55682
|
},
|
|
55700
55683
|
contentStyle: {
|
|
55701
55684
|
type: definePropType([Object])
|
|
@@ -55707,7 +55690,8 @@
|
|
|
55707
55690
|
type: definePropType(Object)
|
|
55708
55691
|
},
|
|
55709
55692
|
scrollIntoViewOptions: {
|
|
55710
|
-
type: definePropType([Boolean, Object])
|
|
55693
|
+
type: definePropType([Boolean, Object]),
|
|
55694
|
+
default: void 0
|
|
55711
55695
|
},
|
|
55712
55696
|
type: {
|
|
55713
55697
|
type: definePropType(String)
|
|
@@ -55729,6 +55713,7 @@
|
|
|
55729
55713
|
const { Close } = CloseComponents;
|
|
55730
55714
|
const { t } = useLocale();
|
|
55731
55715
|
const {
|
|
55716
|
+
currentStep,
|
|
55732
55717
|
current,
|
|
55733
55718
|
total,
|
|
55734
55719
|
showClose,
|
|
@@ -55741,6 +55726,11 @@
|
|
|
55741
55726
|
onFinish: tourOnFinish,
|
|
55742
55727
|
onChange
|
|
55743
55728
|
} = vue.inject(tourKey);
|
|
55729
|
+
vue.watch(props, (val) => {
|
|
55730
|
+
currentStep.value = val;
|
|
55731
|
+
}, {
|
|
55732
|
+
immediate: true
|
|
55733
|
+
});
|
|
55744
55734
|
const mergedShowClose = vue.computed(() => {
|
|
55745
55735
|
var _a;
|
|
55746
55736
|
return (_a = props.showClose) != null ? _a : showClose.value;
|
|
@@ -55749,6 +55739,11 @@
|
|
|
55749
55739
|
var _a, _b;
|
|
55750
55740
|
return (_b = (_a = props.closeIcon) != null ? _a : closeIcon.value) != null ? _b : Close;
|
|
55751
55741
|
});
|
|
55742
|
+
const filterButtonProps = (btnProps) => {
|
|
55743
|
+
if (!btnProps)
|
|
55744
|
+
return;
|
|
55745
|
+
return omit(btnProps, ["children", "onClick"]);
|
|
55746
|
+
};
|
|
55752
55747
|
const onPrev = () => {
|
|
55753
55748
|
var _a, _b;
|
|
55754
55749
|
current.value -= 1;
|
|
@@ -55797,7 +55792,7 @@
|
|
|
55797
55792
|
}, 8, ["class"])
|
|
55798
55793
|
], 2)) : vue.createCommentVNode("v-if", true),
|
|
55799
55794
|
vue.createElementVNode("header", {
|
|
55800
|
-
class: vue.normalizeClass(vue.unref(ns).e("header"))
|
|
55795
|
+
class: vue.normalizeClass([vue.unref(ns).e("header"), { "show-close": vue.unref(showClose) }])
|
|
55801
55796
|
}, [
|
|
55802
55797
|
vue.renderSlot(_ctx.$slots, "header", {}, () => [
|
|
55803
55798
|
vue.createElementVNode("span", {
|
|
@@ -55837,7 +55832,7 @@
|
|
|
55837
55832
|
key: 0,
|
|
55838
55833
|
size: "small",
|
|
55839
55834
|
type: vue.unref(mergedType)
|
|
55840
|
-
}, _ctx.prevButtonProps, { onClick: onPrev }), {
|
|
55835
|
+
}, filterButtonProps(_ctx.prevButtonProps), { onClick: onPrev }), {
|
|
55841
55836
|
default: vue.withCtx(() => {
|
|
55842
55837
|
var _a, _b;
|
|
55843
55838
|
return [
|
|
@@ -55850,11 +55845,11 @@
|
|
|
55850
55845
|
key: 1,
|
|
55851
55846
|
size: "small",
|
|
55852
55847
|
type: vue.unref(mergedType) === "primary" ? "default" : "primary"
|
|
55853
|
-
}, _ctx.nextButtonProps, { onClick: onNext }), {
|
|
55848
|
+
}, filterButtonProps(_ctx.nextButtonProps), { onClick: onNext }), {
|
|
55854
55849
|
default: vue.withCtx(() => {
|
|
55855
55850
|
var _a, _b;
|
|
55856
55851
|
return [
|
|
55857
|
-
vue.createTextVNode(vue.toDisplayString((
|
|
55852
|
+
vue.createTextVNode(vue.toDisplayString((_b = (_a = _ctx.nextButtonProps) == null ? void 0 : _a.children) != null ? _b : vue.unref(current) === vue.unref(total) - 1 ? vue.unref(t)("el.tour.finish") : vue.unref(t)("el.tour.next")), 1)
|
|
55858
55853
|
];
|
|
55859
55854
|
}),
|
|
55860
55855
|
_: 1
|
|
@@ -56775,6 +56770,7 @@
|
|
|
56775
56770
|
},
|
|
56776
56771
|
center: Boolean,
|
|
56777
56772
|
draggable: Boolean,
|
|
56773
|
+
overflow: Boolean,
|
|
56778
56774
|
roundButton: {
|
|
56779
56775
|
default: false,
|
|
56780
56776
|
type: Boolean
|
|
@@ -56885,7 +56881,8 @@
|
|
|
56885
56881
|
}
|
|
56886
56882
|
});
|
|
56887
56883
|
const draggable = vue.computed(() => props.draggable);
|
|
56888
|
-
|
|
56884
|
+
const overflow = vue.computed(() => props.overflow);
|
|
56885
|
+
useDraggable(rootRef, headerRef, draggable, overflow);
|
|
56889
56886
|
vue.onMounted(async () => {
|
|
56890
56887
|
await vue.nextTick();
|
|
56891
56888
|
if (props.closeOnHashChange) {
|
|
@@ -57055,7 +57052,7 @@
|
|
|
57055
57052
|
_ctx.title !== null && _ctx.title !== void 0 ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
57056
57053
|
key: 0,
|
|
57057
57054
|
ref: "headerRef",
|
|
57058
|
-
class: vue.normalizeClass(_ctx.ns.e("header"))
|
|
57055
|
+
class: vue.normalizeClass([_ctx.ns.e("header"), { "show-close": _ctx.showClose }])
|
|
57059
57056
|
}, [
|
|
57060
57057
|
vue.createElementVNode("div", {
|
|
57061
57058
|
class: vue.normalizeClass(_ctx.ns.e("title"))
|