@element-plus/nightly 0.0.20220228 → 0.0.20220303
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/dist/index.css +1 -1
- package/dist/index.full.js +1358 -1301
- package/dist/index.full.min.js +18 -18
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +18 -18
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +1352 -1303
- 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/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/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/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/affix/index.d.ts +20 -5
- package/es/components/affix/src/affix.vue.d.ts +20 -5
- package/es/components/affix/src/affix2.mjs +35 -39
- package/es/components/affix/src/affix2.mjs.map +1 -1
- package/es/components/autocomplete/index.d.ts +1227 -282
- package/es/components/autocomplete/index.mjs +6 -7
- package/es/components/autocomplete/index.mjs.map +1 -1
- package/es/components/autocomplete/src/autocomplete.d.ts +31 -0
- package/es/components/autocomplete/src/autocomplete.mjs +75 -0
- package/es/components/autocomplete/src/autocomplete.mjs.map +1 -0
- package/es/components/autocomplete/src/autocomplete.vue.d.ts +1270 -0
- package/es/components/autocomplete/src/autocomplete2.mjs +313 -0
- package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -0
- package/es/components/badge/index.d.ts +1 -1
- package/es/components/badge/src/badge.vue.d.ts +1 -1
- package/es/components/button/src/button2.mjs +1 -1
- package/es/components/button/src/button2.mjs.map +1 -1
- package/es/components/cascader/index.d.ts +110 -110
- package/es/components/cascader/src/index.vue.d.ts +55 -55
- package/es/components/check-tag/index.d.ts +8 -1
- package/es/components/check-tag/index.mjs +2 -2
- package/es/components/check-tag/index.mjs.map +1 -1
- package/es/components/check-tag/src/check-tag.vue.d.ts +8 -1
- package/es/components/check-tag/src/check-tag2.mjs +17 -19
- package/es/components/check-tag/src/check-tag2.mjs.map +1 -1
- package/es/components/col/index.d.ts +17 -64
- package/es/components/col/src/col.d.ts +40 -42
- package/es/components/col/src/col.mjs +23 -15
- package/es/components/col/src/col.mjs.map +1 -1
- package/es/components/collapse/index.d.ts +176 -75
- package/es/components/collapse/index.mjs +7 -5
- package/es/components/collapse/index.mjs.map +1 -1
- package/es/components/collapse/src/collapse-item.d.ts +10 -0
- package/es/components/collapse/src/collapse-item.mjs +11 -140
- package/es/components/collapse/src/collapse-item.mjs.map +1 -1
- package/es/components/collapse/src/collapse-item.vue.d.ts +76 -31
- package/es/components/collapse/src/collapse-item2.mjs +119 -0
- package/es/components/collapse/src/collapse-item2.mjs.map +1 -0
- package/es/components/collapse/src/collapse.d.ts +17 -0
- package/es/components/collapse/src/collapse.mjs +15 -63
- package/es/components/collapse/src/collapse.mjs.map +1 -1
- package/es/components/collapse/src/collapse.vue.d.ts +23 -17
- package/es/components/collapse/src/collapse2.mjs +67 -0
- package/es/components/collapse/src/collapse2.mjs.map +1 -0
- package/es/components/date-picker/index.d.ts +2 -2
- package/es/components/date-picker/src/date-picker.d.ts +1 -1
- package/es/components/descriptions/index.d.ts +4 -4
- package/es/components/descriptions/src/description-item.d.ts +1 -1
- package/es/components/descriptions/src/index.vue.d.ts +2 -2
- package/es/components/dialog/index.d.ts +19 -48
- package/es/components/dialog/src/dialog-content.vue.d.ts +2 -5
- package/es/components/dialog/src/dialog-content2.mjs +8 -12
- package/es/components/dialog/src/dialog-content2.mjs.map +1 -1
- package/es/components/dialog/src/dialog.d.ts +5 -1
- package/es/components/dialog/src/dialog.mjs +6 -1
- package/es/components/dialog/src/dialog.mjs.map +1 -1
- package/es/components/dialog/src/dialog.vue.d.ts +20 -50
- package/es/components/dialog/src/dialog2.mjs +37 -44
- package/es/components/dialog/src/dialog2.mjs.map +1 -1
- package/es/components/dialog/src/use-dialog.d.ts +3 -3
- package/es/components/dialog/src/use-dialog.mjs +12 -11
- package/es/components/dialog/src/use-dialog.mjs.map +1 -1
- package/es/components/drawer/index.d.ts +8 -5
- package/es/components/drawer/src/drawer.d.ts +2 -1
- package/es/components/drawer/src/drawer.vue.d.ts +8 -5
- package/es/components/dropdown/index.d.ts +32 -32
- package/es/components/dropdown/src/dropdown.vue.d.ts +32 -32
- package/es/components/focus-trap/src/tokens.d.ts +1 -1
- package/es/components/focus-trap/src/tokens.mjs.map +1 -1
- package/es/components/image-viewer/index.d.ts +1 -1
- package/es/components/image-viewer/src/image-viewer.vue.d.ts +1 -1
- package/es/components/index.mjs +3 -0
- package/es/components/index.mjs.map +1 -1
- package/es/components/input/index.d.ts +5 -5
- package/es/components/input/src/input.vue.d.ts +5 -5
- package/es/components/input-number/index.d.ts +12 -12
- package/es/components/input-number/src/input-number.vue.d.ts +12 -12
- package/es/components/menu/index.d.ts +1 -1
- package/es/components/menu/src/menu-item2.mjs +1 -10
- package/es/components/menu/src/menu-item2.mjs.map +1 -1
- package/es/components/menu/src/menu.d.ts +1 -1
- package/es/components/message/src/message-method.mjs +2 -2
- package/es/components/message/src/message-method.mjs.map +1 -1
- package/es/components/message-box/src/message-box.type.d.ts +3 -0
- package/es/components/notification/src/notify.mjs +3 -1
- package/es/components/notification/src/notify.mjs.map +1 -1
- package/es/components/page-header/index.d.ts +39 -18
- package/es/components/page-header/index.mjs +2 -2
- package/es/components/page-header/index.mjs.map +1 -1
- package/es/components/page-header/src/page-header.d.ts +5 -9
- package/es/components/page-header/src/page-header.mjs +7 -4
- package/es/components/page-header/src/page-header.mjs.map +1 -1
- package/es/components/page-header/src/page-header.vue.d.ts +39 -18
- package/es/components/page-header/src/page-header2.mjs +45 -53
- package/es/components/page-header/src/page-header2.mjs.map +1 -1
- package/es/components/pagination/index.d.ts +1 -1
- package/es/components/pagination/src/pagination.d.ts +1 -1
- package/es/components/popover/index.d.ts +74 -74
- package/es/components/popover/src/index.vue.d.ts +37 -37
- package/es/components/popper/src/content.vue.d.ts +11 -11
- package/es/components/popper/src/trigger.mjs +1 -1
- package/es/components/roving-focus-group/src/roving-focus-item.vue.d.ts +1 -1
- package/es/components/row/index.d.ts +1 -1
- package/es/components/row/src/row.d.ts +1 -1
- package/es/components/scrollbar/index.d.ts +1 -1
- package/es/components/scrollbar/src/bar.vue.d.ts +2 -2
- package/es/components/scrollbar/src/scrollbar.vue.d.ts +1 -1
- package/es/components/select/index.d.ts +36 -36
- package/es/components/select/src/select.vue.d.ts +36 -36
- package/es/components/select/src/useSelect.d.ts +31 -31
- package/es/components/select-v2/index.d.ts +76 -76
- package/es/components/select-v2/src/option-item.vue.d.ts +1 -1
- package/es/components/select-v2/src/select.vue.d.ts +38 -38
- package/es/components/select-v2/src/useSelect.d.ts +31 -31
- package/es/components/slider/index.d.ts +4 -4
- package/es/components/slider/src/index.vue.d.ts +2 -2
- package/es/components/slot/index.d.ts +2 -5
- package/es/components/slot/index.mjs +1 -1
- package/es/components/slot/src/only-child.d.ts +5 -3
- package/es/components/slot/src/only-child.mjs +13 -10
- package/es/components/slot/src/only-child.mjs.map +1 -1
- package/es/components/space/index.d.ts +1 -1
- package/es/components/space/src/space.d.ts +1 -1
- package/es/components/steps/index.d.ts +1 -1
- package/es/components/steps/src/index.vue.d.ts +1 -1
- package/es/components/switch/index.d.ts +1 -1
- package/es/components/switch/src/switch.vue.d.ts +1 -1
- package/es/components/table/index.d.ts +2 -2
- package/es/components/table/src/filter-panel.vue.d.ts +31 -31
- package/es/components/table/src/table-body/index.d.ts +1 -1
- package/es/components/table/src/table.vue.d.ts +2 -2
- package/es/components/tabs/index.d.ts +2 -2
- package/es/components/tabs/src/tabs.d.ts +2 -2
- package/es/components/teleport/index.d.ts +17 -9
- package/es/components/teleport/index.mjs +3 -3
- package/es/components/teleport/index.mjs.map +1 -1
- package/es/components/teleport/src/teleport.d.ts +8 -6
- package/es/components/teleport/src/teleport.mjs +2 -2
- package/es/components/teleport/src/teleport.mjs.map +1 -1
- package/es/components/teleport/src/teleport.vue.d.ts +19 -10
- package/es/components/teleport/src/teleport2.mjs +25 -27
- package/es/components/teleport/src/teleport2.mjs.map +1 -1
- package/es/components/time-picker/index.d.ts +2 -2
- package/es/components/time-picker/src/common/picker.vue.d.ts +34 -34
- package/es/components/time-picker/src/time-picker.d.ts +1 -1
- package/es/components/time-select/index.d.ts +4 -4
- package/es/components/time-select/src/time-select.vue.d.ts +2 -2
- package/es/components/tooltip/index.d.ts +15 -15
- package/es/components/tooltip/src/content.mjs +21 -13
- package/es/components/tooltip/src/content.mjs.map +1 -1
- package/es/components/tooltip/src/content.vue.d.ts +38 -37
- package/es/components/tooltip/src/tooltip.d.ts +2 -0
- package/es/components/tooltip/src/tooltip.mjs.map +1 -1
- package/es/components/tooltip/src/tooltip.vue.d.ts +15 -15
- package/es/components/tooltip/src/trigger.mjs.map +1 -1
- package/es/components/virtual-list/src/builders/build-grid.d.ts +1 -1
- package/es/components/virtual-list/src/builders/build-list.d.ts +2 -2
- package/es/components/virtual-list/src/components/dynamic-size-grid.d.ts +1 -1
- package/es/components/virtual-list/src/components/dynamic-size-list.d.ts +2 -2
- package/es/components/virtual-list/src/components/fixed-size-grid.d.ts +1 -1
- package/es/components/virtual-list/src/components/fixed-size-list.d.ts +2 -2
- package/es/hooks/use-draggable/index.mjs.map +1 -1
- package/es/index.mjs +9 -4
- package/es/index.mjs.map +1 -1
- package/es/tokens/collapse.d.ts +7 -0
- package/es/tokens/collapse.mjs +4 -0
- package/es/tokens/collapse.mjs.map +1 -0
- package/es/{components/dialog/src/token.d.ts → tokens/dialog.d.ts} +3 -3
- package/es/tokens/dialog.mjs +4 -0
- package/es/tokens/dialog.mjs.map +1 -0
- package/es/tokens/index.d.ts +6 -4
- package/es/tokens/index.mjs +6 -4
- package/es/tokens/index.mjs.map +1 -1
- package/es/utils/arrays.d.ts +1 -0
- package/es/utils/arrays.mjs +2 -0
- package/es/utils/arrays.mjs.map +1 -1
- package/es/utils/index.mjs +1 -0
- package/es/utils/index.mjs.map +1 -1
- package/es/utils/typescript.d.ts +1 -0
- package/es/utils/typescript.mjs.map +1 -1
- package/es/utils/vue/refs.d.ts +1 -1
- package/es/utils/vue/refs.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/affix/index.d.ts +20 -5
- package/lib/components/affix/src/affix.vue.d.ts +20 -5
- package/lib/components/affix/src/affix2.js +33 -37
- package/lib/components/affix/src/affix2.js.map +1 -1
- package/lib/components/autocomplete/index.d.ts +1227 -282
- package/lib/components/autocomplete/index.js +8 -7
- package/lib/components/autocomplete/index.js.map +1 -1
- package/lib/components/autocomplete/src/autocomplete.d.ts +31 -0
- package/lib/components/autocomplete/src/autocomplete.js +80 -0
- package/lib/components/autocomplete/src/autocomplete.js.map +1 -0
- package/lib/components/autocomplete/src/autocomplete.vue.d.ts +1270 -0
- package/lib/components/autocomplete/src/autocomplete2.js +317 -0
- package/lib/components/autocomplete/src/autocomplete2.js.map +1 -0
- package/lib/components/badge/index.d.ts +1 -1
- package/lib/components/badge/src/badge.vue.d.ts +1 -1
- package/lib/components/button/src/button2.js +1 -1
- package/lib/components/button/src/button2.js.map +1 -1
- package/lib/components/cascader/index.d.ts +110 -110
- package/lib/components/cascader/src/index.vue.d.ts +55 -55
- package/lib/components/check-tag/index.d.ts +8 -1
- package/lib/components/check-tag/src/check-tag.vue.d.ts +8 -1
- package/lib/components/check-tag/src/check-tag2.js +16 -18
- package/lib/components/check-tag/src/check-tag2.js.map +1 -1
- package/lib/components/col/index.d.ts +17 -64
- package/lib/components/col/src/col.d.ts +40 -42
- package/lib/components/col/src/col.js +22 -14
- package/lib/components/col/src/col.js.map +1 -1
- package/lib/components/collapse/index.d.ts +176 -75
- package/lib/components/collapse/index.js +9 -3
- package/lib/components/collapse/index.js.map +1 -1
- package/lib/components/collapse/src/collapse-item.d.ts +10 -0
- package/lib/components/collapse/src/collapse-item.js +11 -140
- package/lib/components/collapse/src/collapse-item.js.map +1 -1
- package/lib/components/collapse/src/collapse-item.vue.d.ts +76 -31
- package/lib/components/collapse/src/collapse-item2.js +123 -0
- package/lib/components/collapse/src/collapse-item2.js.map +1 -0
- package/lib/components/collapse/src/collapse.d.ts +17 -0
- package/lib/components/collapse/src/collapse.js +17 -63
- package/lib/components/collapse/src/collapse.js.map +1 -1
- package/lib/components/collapse/src/collapse.vue.d.ts +23 -17
- package/lib/components/collapse/src/collapse2.js +71 -0
- package/lib/components/collapse/src/collapse2.js.map +1 -0
- package/lib/components/date-picker/index.d.ts +2 -2
- package/lib/components/date-picker/src/date-picker.d.ts +1 -1
- package/lib/components/descriptions/index.d.ts +4 -4
- package/lib/components/descriptions/src/description-item.d.ts +1 -1
- package/lib/components/descriptions/src/index.vue.d.ts +2 -2
- package/lib/components/dialog/index.d.ts +19 -48
- package/lib/components/dialog/src/dialog-content.vue.d.ts +2 -5
- package/lib/components/dialog/src/dialog-content2.js +7 -11
- package/lib/components/dialog/src/dialog-content2.js.map +1 -1
- package/lib/components/dialog/src/dialog.d.ts +5 -1
- package/lib/components/dialog/src/dialog.js +6 -1
- package/lib/components/dialog/src/dialog.js.map +1 -1
- package/lib/components/dialog/src/dialog.vue.d.ts +20 -50
- package/lib/components/dialog/src/dialog2.js +37 -44
- package/lib/components/dialog/src/dialog2.js.map +1 -1
- package/lib/components/dialog/src/use-dialog.d.ts +3 -3
- package/lib/components/dialog/src/use-dialog.js +11 -10
- package/lib/components/dialog/src/use-dialog.js.map +1 -1
- package/lib/components/drawer/index.d.ts +8 -5
- package/lib/components/drawer/src/drawer.d.ts +2 -1
- package/lib/components/drawer/src/drawer.vue.d.ts +8 -5
- package/lib/components/dropdown/index.d.ts +32 -32
- package/lib/components/dropdown/src/dropdown.vue.d.ts +32 -32
- package/lib/components/focus-trap/src/tokens.d.ts +1 -1
- package/lib/components/focus-trap/src/tokens.js.map +1 -1
- package/lib/components/image-viewer/index.d.ts +1 -1
- package/lib/components/image-viewer/src/image-viewer.vue.d.ts +1 -1
- package/lib/components/index.js +9 -0
- package/lib/components/index.js.map +1 -1
- package/lib/components/input/index.d.ts +5 -5
- package/lib/components/input/src/input.vue.d.ts +5 -5
- package/lib/components/input-number/index.d.ts +12 -12
- package/lib/components/input-number/src/input-number.vue.d.ts +12 -12
- package/lib/components/menu/index.d.ts +1 -1
- package/lib/components/menu/src/menu-item2.js +1 -10
- package/lib/components/menu/src/menu-item2.js.map +1 -1
- package/lib/components/menu/src/menu.d.ts +1 -1
- package/lib/components/message/src/message-method.js +2 -2
- package/lib/components/message/src/message-method.js.map +1 -1
- package/lib/components/message-box/src/message-box.type.d.ts +3 -0
- package/lib/components/notification/src/notify.js +3 -1
- package/lib/components/notification/src/notify.js.map +1 -1
- package/lib/components/page-header/index.d.ts +39 -18
- package/lib/components/page-header/src/page-header.d.ts +5 -9
- package/lib/components/page-header/src/page-header.js +7 -4
- package/lib/components/page-header/src/page-header.js.map +1 -1
- package/lib/components/page-header/src/page-header.vue.d.ts +39 -18
- package/lib/components/page-header/src/page-header2.js +49 -57
- package/lib/components/page-header/src/page-header2.js.map +1 -1
- package/lib/components/pagination/index.d.ts +1 -1
- package/lib/components/pagination/src/pagination.d.ts +1 -1
- package/lib/components/popover/index.d.ts +74 -74
- package/lib/components/popover/src/index.vue.d.ts +37 -37
- package/lib/components/popper/src/content.vue.d.ts +11 -11
- package/lib/components/popper/src/trigger.js +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-item.vue.d.ts +1 -1
- package/lib/components/row/index.d.ts +1 -1
- package/lib/components/row/src/row.d.ts +1 -1
- package/lib/components/scrollbar/index.d.ts +1 -1
- package/lib/components/scrollbar/src/bar.vue.d.ts +2 -2
- package/lib/components/scrollbar/src/scrollbar.vue.d.ts +1 -1
- package/lib/components/select/index.d.ts +36 -36
- package/lib/components/select/src/select.vue.d.ts +36 -36
- package/lib/components/select/src/useSelect.d.ts +31 -31
- package/lib/components/select-v2/index.d.ts +76 -76
- package/lib/components/select-v2/src/option-item.vue.d.ts +1 -1
- package/lib/components/select-v2/src/select.vue.d.ts +38 -38
- package/lib/components/select-v2/src/useSelect.d.ts +31 -31
- package/lib/components/slider/index.d.ts +4 -4
- package/lib/components/slider/src/index.vue.d.ts +2 -2
- package/lib/components/slot/index.d.ts +2 -5
- package/lib/components/slot/index.js +2 -1
- package/lib/components/slot/index.js.map +1 -1
- package/lib/components/slot/src/only-child.d.ts +5 -3
- package/lib/components/slot/src/only-child.js +12 -9
- package/lib/components/slot/src/only-child.js.map +1 -1
- package/lib/components/space/index.d.ts +1 -1
- package/lib/components/space/src/space.d.ts +1 -1
- package/lib/components/steps/index.d.ts +1 -1
- package/lib/components/steps/src/index.vue.d.ts +1 -1
- package/lib/components/switch/index.d.ts +1 -1
- package/lib/components/switch/src/switch.vue.d.ts +1 -1
- package/lib/components/table/index.d.ts +2 -2
- package/lib/components/table/src/filter-panel.vue.d.ts +31 -31
- package/lib/components/table/src/table-body/index.d.ts +1 -1
- package/lib/components/table/src/table.vue.d.ts +2 -2
- package/lib/components/tabs/index.d.ts +2 -2
- package/lib/components/tabs/src/tabs.d.ts +2 -2
- package/lib/components/teleport/index.d.ts +17 -9
- package/lib/components/teleport/index.js +1 -1
- package/lib/components/teleport/src/teleport.d.ts +8 -6
- package/lib/components/teleport/src/teleport.js +2 -2
- package/lib/components/teleport/src/teleport.js.map +1 -1
- package/lib/components/teleport/src/teleport.vue.d.ts +19 -10
- package/lib/components/teleport/src/teleport2.js +23 -25
- package/lib/components/teleport/src/teleport2.js.map +1 -1
- package/lib/components/time-picker/index.d.ts +2 -2
- package/lib/components/time-picker/src/common/picker.vue.d.ts +34 -34
- package/lib/components/time-picker/src/time-picker.d.ts +1 -1
- package/lib/components/time-select/index.d.ts +4 -4
- package/lib/components/time-select/src/time-select.vue.d.ts +2 -2
- package/lib/components/tooltip/index.d.ts +15 -15
- package/lib/components/tooltip/src/content.js +20 -12
- package/lib/components/tooltip/src/content.js.map +1 -1
- package/lib/components/tooltip/src/content.vue.d.ts +38 -37
- package/lib/components/tooltip/src/tooltip.d.ts +2 -0
- package/lib/components/tooltip/src/tooltip.js.map +1 -1
- package/lib/components/tooltip/src/tooltip.vue.d.ts +15 -15
- package/lib/components/tooltip/src/trigger.js.map +1 -1
- package/lib/components/virtual-list/src/builders/build-grid.d.ts +1 -1
- package/lib/components/virtual-list/src/builders/build-list.d.ts +2 -2
- package/lib/components/virtual-list/src/components/dynamic-size-grid.d.ts +1 -1
- package/lib/components/virtual-list/src/components/dynamic-size-list.d.ts +2 -2
- package/lib/components/virtual-list/src/components/fixed-size-grid.d.ts +1 -1
- package/lib/components/virtual-list/src/components/fixed-size-list.d.ts +2 -2
- package/lib/hooks/use-draggable/index.js.map +1 -1
- package/lib/index.js +21 -8
- package/lib/index.js.map +1 -1
- package/lib/tokens/collapse.d.ts +7 -0
- package/lib/tokens/collapse.js +8 -0
- package/lib/tokens/collapse.js.map +1 -0
- package/lib/{components/dialog/src/token.d.ts → tokens/dialog.d.ts} +3 -3
- package/lib/tokens/dialog.js +8 -0
- package/lib/tokens/dialog.js.map +1 -0
- package/lib/tokens/index.d.ts +6 -4
- package/lib/tokens/index.js +12 -8
- package/lib/tokens/index.js.map +1 -1
- package/lib/utils/arrays.d.ts +1 -0
- package/lib/utils/arrays.js +6 -0
- package/lib/utils/arrays.js.map +1 -1
- package/lib/utils/index.js +5 -0
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/typescript.d.ts +1 -0
- package/lib/utils/typescript.js.map +1 -1
- package/lib/utils/vue/refs.d.ts +1 -1
- package/lib/utils/vue/refs.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/theme-chalk/el-dropdown.css +1 -1
- package/theme-chalk/el-menu.css +1 -1
- package/theme-chalk/el-message-box.css +1 -1
- package/theme-chalk/el-tabs.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/dropdown.scss +1 -0
- package/theme-chalk/src/menu.scss +15 -1
- package/theme-chalk/src/message-box.scss +4 -2
- package/theme-chalk/src/tabs.scss +8 -5
- package/web-types.json +1 -1
- package/es/components/autocomplete/src/index.mjs +0 -397
- package/es/components/autocomplete/src/index.mjs.map +0 -1
- package/es/components/autocomplete/src/index.vue.d.ts +0 -164
- package/es/components/collapse/src/collapse.type.d.ts +0 -5
- package/es/components/collapse/src/collapse.type.mjs +0 -2
- package/es/components/collapse/src/collapse.type.mjs.map +0 -1
- package/es/components/dialog/src/token.mjs +0 -4
- package/es/components/dialog/src/token.mjs.map +0 -1
- package/lib/components/autocomplete/src/index.js +0 -401
- package/lib/components/autocomplete/src/index.js.map +0 -1
- package/lib/components/autocomplete/src/index.vue.d.ts +0 -164
- package/lib/components/collapse/src/collapse.type.d.ts +0 -5
- package/lib/components/collapse/src/collapse.type.js +0 -3
- package/lib/components/collapse/src/collapse.type.js.map +0 -1
- package/lib/components/dialog/src/token.js +0 -8
- package/lib/components/dialog/src/token.js.map +0 -1
package/dist/index.full.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! Element Plus v0.0.
|
|
1
|
+
/*! Element Plus v0.0.20220303 */
|
|
2
2
|
|
|
3
|
-
import { getCurrentScope, onScopeDispose, readonly, shallowRef, watchEffect, ref, unref, watch, defineComponent, openBlock, createElementBlock, createElementVNode, warn, isVNode, Fragment, Comment, camelize as camelize$1,
|
|
3
|
+
import { getCurrentScope, onScopeDispose, readonly, shallowRef, watchEffect, ref, unref, getCurrentInstance, onMounted, nextTick, watch, defineComponent, openBlock, createElementBlock, createElementVNode, warn, isVNode, Fragment, Comment, camelize as camelize$1, computed, inject, provide, onBeforeUnmount, isRef, onUnmounted, h as h$1, Teleport, onBeforeMount, normalizeClass, normalizeStyle, renderSlot, mergeProps, useSlots, createBlock, Transition, withCtx, withDirectives, resolveDynamicComponent, createCommentVNode, createTextVNode, toDisplayString, createVNode, vShow, onUpdated, resolveComponent, withModifiers, toRef, reactive, cloneVNode, Text, useAttrs as useAttrs$1, renderList, withKeys, createSlots, resolveDirective, normalizeProps, guardReactiveProps, toRefs, vModelCheckbox, vModelRadio, onBeforeUpdate, vModelText, toHandlers, markRaw, effectScope, toRaw, triggerRef, TransitionGroup, createApp, render } from 'vue';
|
|
4
4
|
|
|
5
5
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
6
6
|
var freeGlobal$1 = freeGlobal;
|
|
@@ -861,6 +861,14 @@ function baseFlatten(array, depth, predicate, isStrict, result) {
|
|
|
861
861
|
var getPrototype = overArg(Object.getPrototypeOf, Object);
|
|
862
862
|
var getPrototype$1 = getPrototype;
|
|
863
863
|
|
|
864
|
+
function castArray$1() {
|
|
865
|
+
if (!arguments.length) {
|
|
866
|
+
return [];
|
|
867
|
+
}
|
|
868
|
+
var value = arguments[0];
|
|
869
|
+
return isArray$2(value) ? value : [value];
|
|
870
|
+
}
|
|
871
|
+
|
|
864
872
|
function stackClear() {
|
|
865
873
|
this.__data__ = new ListCache();
|
|
866
874
|
this.size = 0;
|
|
@@ -1815,6 +1823,15 @@ function useThrottleFn(fn, ms = 200, trailing = true, leading = true) {
|
|
|
1815
1823
|
return createFilterWrapper(throttleFilter(ms, trailing, leading), fn);
|
|
1816
1824
|
}
|
|
1817
1825
|
|
|
1826
|
+
function tryOnMounted(fn, sync = true) {
|
|
1827
|
+
if (getCurrentInstance())
|
|
1828
|
+
onMounted(fn);
|
|
1829
|
+
else if (sync)
|
|
1830
|
+
fn();
|
|
1831
|
+
else
|
|
1832
|
+
nextTick(fn);
|
|
1833
|
+
}
|
|
1834
|
+
|
|
1818
1835
|
function useTimeoutFn(cb, interval, options = {}) {
|
|
1819
1836
|
const {
|
|
1820
1837
|
immediate = true
|
|
@@ -1982,6 +1999,54 @@ function useResizeObserver(target, callback, options = {}) {
|
|
|
1982
1999
|
};
|
|
1983
2000
|
}
|
|
1984
2001
|
|
|
2002
|
+
function useElementBounding(target) {
|
|
2003
|
+
const height = ref(0);
|
|
2004
|
+
const bottom = ref(0);
|
|
2005
|
+
const left = ref(0);
|
|
2006
|
+
const right = ref(0);
|
|
2007
|
+
const top = ref(0);
|
|
2008
|
+
const width = ref(0);
|
|
2009
|
+
const x = ref(0);
|
|
2010
|
+
const y = ref(0);
|
|
2011
|
+
function update() {
|
|
2012
|
+
const el = unrefElement(target);
|
|
2013
|
+
if (!el) {
|
|
2014
|
+
height.value = 0;
|
|
2015
|
+
bottom.value = 0;
|
|
2016
|
+
left.value = 0;
|
|
2017
|
+
right.value = 0;
|
|
2018
|
+
top.value = 0;
|
|
2019
|
+
width.value = 0;
|
|
2020
|
+
x.value = 0;
|
|
2021
|
+
y.value = 0;
|
|
2022
|
+
return;
|
|
2023
|
+
}
|
|
2024
|
+
const rect = el.getBoundingClientRect();
|
|
2025
|
+
height.value = rect.height;
|
|
2026
|
+
bottom.value = rect.bottom;
|
|
2027
|
+
left.value = rect.left;
|
|
2028
|
+
right.value = rect.right;
|
|
2029
|
+
top.value = rect.top;
|
|
2030
|
+
width.value = rect.width;
|
|
2031
|
+
x.value = rect.x;
|
|
2032
|
+
y.value = rect.y;
|
|
2033
|
+
}
|
|
2034
|
+
useEventListener("scroll", update, true);
|
|
2035
|
+
useResizeObserver(target, update);
|
|
2036
|
+
watch(() => unrefElement(target), (ele) => !ele && update());
|
|
2037
|
+
return {
|
|
2038
|
+
height,
|
|
2039
|
+
bottom,
|
|
2040
|
+
left,
|
|
2041
|
+
right,
|
|
2042
|
+
top,
|
|
2043
|
+
width,
|
|
2044
|
+
x,
|
|
2045
|
+
y,
|
|
2046
|
+
update
|
|
2047
|
+
};
|
|
2048
|
+
}
|
|
2049
|
+
|
|
1985
2050
|
var _a, _b;
|
|
1986
2051
|
isClient && (window == null ? void 0 : window.navigator) && ((_a = window == null ? void 0 : window.navigator) == null ? void 0 : _a.platform) && /iP(ad|hone|od)/.test((_b = window == null ? void 0 : window.navigator) == null ? void 0 : _b.platform);
|
|
1987
2052
|
|
|
@@ -2026,6 +2091,21 @@ function useWindowFocus({ window = defaultWindow } = {}) {
|
|
|
2026
2091
|
return focused;
|
|
2027
2092
|
}
|
|
2028
2093
|
|
|
2094
|
+
function useWindowSize({ window = defaultWindow, initialWidth = Infinity, initialHeight = Infinity } = {}) {
|
|
2095
|
+
const width = ref(initialWidth);
|
|
2096
|
+
const height = ref(initialHeight);
|
|
2097
|
+
const update = () => {
|
|
2098
|
+
if (window) {
|
|
2099
|
+
width.value = window.innerWidth;
|
|
2100
|
+
height.value = window.innerHeight;
|
|
2101
|
+
}
|
|
2102
|
+
};
|
|
2103
|
+
update();
|
|
2104
|
+
tryOnMounted(update);
|
|
2105
|
+
useEventListener("resize", update, { passive: true });
|
|
2106
|
+
return { width, height };
|
|
2107
|
+
}
|
|
2108
|
+
|
|
2029
2109
|
const isInContainer = (el, container) => {
|
|
2030
2110
|
if (!isClient || !el || !container)
|
|
2031
2111
|
return false;
|
|
@@ -2333,10 +2413,10 @@ const _hoisted_2$1i = /* @__PURE__ */ createElementVNode("path", {
|
|
|
2333
2413
|
const _hoisted_3$10 = [
|
|
2334
2414
|
_hoisted_2$1i
|
|
2335
2415
|
];
|
|
2336
|
-
function _sfc_render$
|
|
2416
|
+
function _sfc_render$2r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2337
2417
|
return openBlock(), createElementBlock("svg", _hoisted_1$1C, _hoisted_3$10);
|
|
2338
2418
|
}
|
|
2339
|
-
var arrowDown = /* @__PURE__ */ _export_sfc$1(_sfc_main$2N, [["render", _sfc_render$
|
|
2419
|
+
var arrowDown = /* @__PURE__ */ _export_sfc$1(_sfc_main$2N, [["render", _sfc_render$2r]]);
|
|
2340
2420
|
|
|
2341
2421
|
const _sfc_main$2M = defineComponent({
|
|
2342
2422
|
name: "ArrowLeft"
|
|
@@ -2355,10 +2435,10 @@ const _hoisted_2$1h = /* @__PURE__ */ createElementVNode("path", {
|
|
|
2355
2435
|
const _hoisted_3$$ = [
|
|
2356
2436
|
_hoisted_2$1h
|
|
2357
2437
|
];
|
|
2358
|
-
function _sfc_render$
|
|
2438
|
+
function _sfc_render$2q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2359
2439
|
return openBlock(), createElementBlock("svg", _hoisted_1$1B, _hoisted_3$$);
|
|
2360
2440
|
}
|
|
2361
|
-
var arrowLeft = /* @__PURE__ */ _export_sfc$1(_sfc_main$2M, [["render", _sfc_render$
|
|
2441
|
+
var arrowLeft = /* @__PURE__ */ _export_sfc$1(_sfc_main$2M, [["render", _sfc_render$2q]]);
|
|
2362
2442
|
|
|
2363
2443
|
const _sfc_main$2L = defineComponent({
|
|
2364
2444
|
name: "ArrowRight"
|
|
@@ -2377,10 +2457,10 @@ const _hoisted_2$1g = /* @__PURE__ */ createElementVNode("path", {
|
|
|
2377
2457
|
const _hoisted_3$_ = [
|
|
2378
2458
|
_hoisted_2$1g
|
|
2379
2459
|
];
|
|
2380
|
-
function _sfc_render$
|
|
2460
|
+
function _sfc_render$2p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2381
2461
|
return openBlock(), createElementBlock("svg", _hoisted_1$1A, _hoisted_3$_);
|
|
2382
2462
|
}
|
|
2383
|
-
var arrowRight = /* @__PURE__ */ _export_sfc$1(_sfc_main$2L, [["render", _sfc_render$
|
|
2463
|
+
var arrowRight = /* @__PURE__ */ _export_sfc$1(_sfc_main$2L, [["render", _sfc_render$2p]]);
|
|
2384
2464
|
|
|
2385
2465
|
const _sfc_main$2K = defineComponent({
|
|
2386
2466
|
name: "ArrowUp"
|
|
@@ -2399,10 +2479,10 @@ const _hoisted_2$1f = /* @__PURE__ */ createElementVNode("path", {
|
|
|
2399
2479
|
const _hoisted_3$Z = [
|
|
2400
2480
|
_hoisted_2$1f
|
|
2401
2481
|
];
|
|
2402
|
-
function _sfc_render$
|
|
2482
|
+
function _sfc_render$2o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2403
2483
|
return openBlock(), createElementBlock("svg", _hoisted_1$1z, _hoisted_3$Z);
|
|
2404
2484
|
}
|
|
2405
|
-
var arrowUp = /* @__PURE__ */ _export_sfc$1(_sfc_main$2K, [["render", _sfc_render$
|
|
2485
|
+
var arrowUp = /* @__PURE__ */ _export_sfc$1(_sfc_main$2K, [["render", _sfc_render$2o]]);
|
|
2406
2486
|
|
|
2407
2487
|
const _sfc_main$2J = defineComponent({
|
|
2408
2488
|
name: "Back"
|
|
@@ -2426,10 +2506,10 @@ const _hoisted_4$j = [
|
|
|
2426
2506
|
_hoisted_2$1e,
|
|
2427
2507
|
_hoisted_3$Y
|
|
2428
2508
|
];
|
|
2429
|
-
function _sfc_render$
|
|
2509
|
+
function _sfc_render$2n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2430
2510
|
return openBlock(), createElementBlock("svg", _hoisted_1$1y, _hoisted_4$j);
|
|
2431
2511
|
}
|
|
2432
|
-
var back = /* @__PURE__ */ _export_sfc$1(_sfc_main$2J, [["render", _sfc_render$
|
|
2512
|
+
var back = /* @__PURE__ */ _export_sfc$1(_sfc_main$2J, [["render", _sfc_render$2n]]);
|
|
2433
2513
|
|
|
2434
2514
|
const _sfc_main$2I = defineComponent({
|
|
2435
2515
|
name: "Calendar"
|
|
@@ -2448,10 +2528,10 @@ const _hoisted_2$1d = /* @__PURE__ */ createElementVNode("path", {
|
|
|
2448
2528
|
const _hoisted_3$X = [
|
|
2449
2529
|
_hoisted_2$1d
|
|
2450
2530
|
];
|
|
2451
|
-
function _sfc_render$
|
|
2531
|
+
function _sfc_render$2m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2452
2532
|
return openBlock(), createElementBlock("svg", _hoisted_1$1x, _hoisted_3$X);
|
|
2453
2533
|
}
|
|
2454
|
-
var calendar = /* @__PURE__ */ _export_sfc$1(_sfc_main$2I, [["render", _sfc_render$
|
|
2534
|
+
var calendar = /* @__PURE__ */ _export_sfc$1(_sfc_main$2I, [["render", _sfc_render$2m]]);
|
|
2455
2535
|
|
|
2456
2536
|
const _sfc_main$2H = defineComponent({
|
|
2457
2537
|
name: "CaretRight"
|
|
@@ -2470,10 +2550,10 @@ const _hoisted_2$1c = /* @__PURE__ */ createElementVNode("path", {
|
|
|
2470
2550
|
const _hoisted_3$W = [
|
|
2471
2551
|
_hoisted_2$1c
|
|
2472
2552
|
];
|
|
2473
|
-
function _sfc_render$
|
|
2553
|
+
function _sfc_render$2l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2474
2554
|
return openBlock(), createElementBlock("svg", _hoisted_1$1w, _hoisted_3$W);
|
|
2475
2555
|
}
|
|
2476
|
-
var caretRight = /* @__PURE__ */ _export_sfc$1(_sfc_main$2H, [["render", _sfc_render$
|
|
2556
|
+
var caretRight = /* @__PURE__ */ _export_sfc$1(_sfc_main$2H, [["render", _sfc_render$2l]]);
|
|
2477
2557
|
|
|
2478
2558
|
const _sfc_main$2G = defineComponent({
|
|
2479
2559
|
name: "CaretTop"
|
|
@@ -2492,10 +2572,10 @@ const _hoisted_2$1b = /* @__PURE__ */ createElementVNode("path", {
|
|
|
2492
2572
|
const _hoisted_3$V = [
|
|
2493
2573
|
_hoisted_2$1b
|
|
2494
2574
|
];
|
|
2495
|
-
function _sfc_render$
|
|
2575
|
+
function _sfc_render$2k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2496
2576
|
return openBlock(), createElementBlock("svg", _hoisted_1$1v, _hoisted_3$V);
|
|
2497
2577
|
}
|
|
2498
|
-
var caretTop = /* @__PURE__ */ _export_sfc$1(_sfc_main$2G, [["render", _sfc_render$
|
|
2578
|
+
var caretTop = /* @__PURE__ */ _export_sfc$1(_sfc_main$2G, [["render", _sfc_render$2k]]);
|
|
2499
2579
|
|
|
2500
2580
|
const _sfc_main$2F = defineComponent({
|
|
2501
2581
|
name: "Check"
|
|
@@ -2514,10 +2594,10 @@ const _hoisted_2$1a = /* @__PURE__ */ createElementVNode("path", {
|
|
|
2514
2594
|
const _hoisted_3$U = [
|
|
2515
2595
|
_hoisted_2$1a
|
|
2516
2596
|
];
|
|
2517
|
-
function _sfc_render$
|
|
2597
|
+
function _sfc_render$2j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2518
2598
|
return openBlock(), createElementBlock("svg", _hoisted_1$1u, _hoisted_3$U);
|
|
2519
2599
|
}
|
|
2520
|
-
var check = /* @__PURE__ */ _export_sfc$1(_sfc_main$2F, [["render", _sfc_render$
|
|
2600
|
+
var check = /* @__PURE__ */ _export_sfc$1(_sfc_main$2F, [["render", _sfc_render$2j]]);
|
|
2521
2601
|
|
|
2522
2602
|
const _sfc_main$2E = defineComponent({
|
|
2523
2603
|
name: "CircleCheckFilled"
|
|
@@ -2536,10 +2616,10 @@ const _hoisted_2$19 = /* @__PURE__ */ createElementVNode("path", {
|
|
|
2536
2616
|
const _hoisted_3$T = [
|
|
2537
2617
|
_hoisted_2$19
|
|
2538
2618
|
];
|
|
2539
|
-
function _sfc_render$
|
|
2619
|
+
function _sfc_render$2i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2540
2620
|
return openBlock(), createElementBlock("svg", _hoisted_1$1t, _hoisted_3$T);
|
|
2541
2621
|
}
|
|
2542
|
-
var circleCheckFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$2E, [["render", _sfc_render$
|
|
2622
|
+
var circleCheckFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$2E, [["render", _sfc_render$2i]]);
|
|
2543
2623
|
|
|
2544
2624
|
const _sfc_main$2D = defineComponent({
|
|
2545
2625
|
name: "CircleCheck"
|
|
@@ -2563,10 +2643,10 @@ const _hoisted_4$i = [
|
|
|
2563
2643
|
_hoisted_2$18,
|
|
2564
2644
|
_hoisted_3$S
|
|
2565
2645
|
];
|
|
2566
|
-
function _sfc_render$
|
|
2646
|
+
function _sfc_render$2h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2567
2647
|
return openBlock(), createElementBlock("svg", _hoisted_1$1s, _hoisted_4$i);
|
|
2568
2648
|
}
|
|
2569
|
-
var circleCheck = /* @__PURE__ */ _export_sfc$1(_sfc_main$2D, [["render", _sfc_render$
|
|
2649
|
+
var circleCheck = /* @__PURE__ */ _export_sfc$1(_sfc_main$2D, [["render", _sfc_render$2h]]);
|
|
2570
2650
|
|
|
2571
2651
|
const _sfc_main$2C = defineComponent({
|
|
2572
2652
|
name: "CircleCloseFilled"
|
|
@@ -2585,10 +2665,10 @@ const _hoisted_2$17 = /* @__PURE__ */ createElementVNode("path", {
|
|
|
2585
2665
|
const _hoisted_3$R = [
|
|
2586
2666
|
_hoisted_2$17
|
|
2587
2667
|
];
|
|
2588
|
-
function _sfc_render$
|
|
2668
|
+
function _sfc_render$2g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2589
2669
|
return openBlock(), createElementBlock("svg", _hoisted_1$1r, _hoisted_3$R);
|
|
2590
2670
|
}
|
|
2591
|
-
var circleCloseFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$2C, [["render", _sfc_render$
|
|
2671
|
+
var circleCloseFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$2C, [["render", _sfc_render$2g]]);
|
|
2592
2672
|
|
|
2593
2673
|
const _sfc_main$2B = defineComponent({
|
|
2594
2674
|
name: "CircleClose"
|
|
@@ -2612,10 +2692,10 @@ const _hoisted_4$h = [
|
|
|
2612
2692
|
_hoisted_2$16,
|
|
2613
2693
|
_hoisted_3$Q
|
|
2614
2694
|
];
|
|
2615
|
-
function _sfc_render$
|
|
2695
|
+
function _sfc_render$2f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2616
2696
|
return openBlock(), createElementBlock("svg", _hoisted_1$1q, _hoisted_4$h);
|
|
2617
2697
|
}
|
|
2618
|
-
var circleClose = /* @__PURE__ */ _export_sfc$1(_sfc_main$2B, [["render", _sfc_render$
|
|
2698
|
+
var circleClose = /* @__PURE__ */ _export_sfc$1(_sfc_main$2B, [["render", _sfc_render$2f]]);
|
|
2619
2699
|
|
|
2620
2700
|
const _sfc_main$2A = defineComponent({
|
|
2621
2701
|
name: "Clock"
|
|
@@ -2644,10 +2724,10 @@ const _hoisted_5$b = [
|
|
|
2644
2724
|
_hoisted_3$P,
|
|
2645
2725
|
_hoisted_4$g
|
|
2646
2726
|
];
|
|
2647
|
-
function _sfc_render$
|
|
2727
|
+
function _sfc_render$2e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2648
2728
|
return openBlock(), createElementBlock("svg", _hoisted_1$1p, _hoisted_5$b);
|
|
2649
2729
|
}
|
|
2650
|
-
var clock = /* @__PURE__ */ _export_sfc$1(_sfc_main$2A, [["render", _sfc_render$
|
|
2730
|
+
var clock = /* @__PURE__ */ _export_sfc$1(_sfc_main$2A, [["render", _sfc_render$2e]]);
|
|
2651
2731
|
|
|
2652
2732
|
const _sfc_main$2z = defineComponent({
|
|
2653
2733
|
name: "Close"
|
|
@@ -2666,10 +2746,10 @@ const _hoisted_2$14 = /* @__PURE__ */ createElementVNode("path", {
|
|
|
2666
2746
|
const _hoisted_3$O = [
|
|
2667
2747
|
_hoisted_2$14
|
|
2668
2748
|
];
|
|
2669
|
-
function _sfc_render$
|
|
2749
|
+
function _sfc_render$2d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2670
2750
|
return openBlock(), createElementBlock("svg", _hoisted_1$1o, _hoisted_3$O);
|
|
2671
2751
|
}
|
|
2672
|
-
var close$2 = /* @__PURE__ */ _export_sfc$1(_sfc_main$2z, [["render", _sfc_render$
|
|
2752
|
+
var close$2 = /* @__PURE__ */ _export_sfc$1(_sfc_main$2z, [["render", _sfc_render$2d]]);
|
|
2673
2753
|
|
|
2674
2754
|
const _sfc_main$2y = defineComponent({
|
|
2675
2755
|
name: "DArrowLeft"
|
|
@@ -2688,10 +2768,10 @@ const _hoisted_2$13 = /* @__PURE__ */ createElementVNode("path", {
|
|
|
2688
2768
|
const _hoisted_3$N = [
|
|
2689
2769
|
_hoisted_2$13
|
|
2690
2770
|
];
|
|
2691
|
-
function _sfc_render$
|
|
2771
|
+
function _sfc_render$2c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2692
2772
|
return openBlock(), createElementBlock("svg", _hoisted_1$1n, _hoisted_3$N);
|
|
2693
2773
|
}
|
|
2694
|
-
var dArrowLeft = /* @__PURE__ */ _export_sfc$1(_sfc_main$2y, [["render", _sfc_render$
|
|
2774
|
+
var dArrowLeft = /* @__PURE__ */ _export_sfc$1(_sfc_main$2y, [["render", _sfc_render$2c]]);
|
|
2695
2775
|
|
|
2696
2776
|
const _sfc_main$2x = defineComponent({
|
|
2697
2777
|
name: "DArrowRight"
|
|
@@ -2710,10 +2790,10 @@ const _hoisted_2$12 = /* @__PURE__ */ createElementVNode("path", {
|
|
|
2710
2790
|
const _hoisted_3$M = [
|
|
2711
2791
|
_hoisted_2$12
|
|
2712
2792
|
];
|
|
2713
|
-
function _sfc_render$
|
|
2793
|
+
function _sfc_render$2b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2714
2794
|
return openBlock(), createElementBlock("svg", _hoisted_1$1m, _hoisted_3$M);
|
|
2715
2795
|
}
|
|
2716
|
-
var dArrowRight = /* @__PURE__ */ _export_sfc$1(_sfc_main$2x, [["render", _sfc_render$
|
|
2796
|
+
var dArrowRight = /* @__PURE__ */ _export_sfc$1(_sfc_main$2x, [["render", _sfc_render$2b]]);
|
|
2717
2797
|
|
|
2718
2798
|
const _sfc_main$2w = defineComponent({
|
|
2719
2799
|
name: "Delete"
|
|
@@ -2732,10 +2812,10 @@ const _hoisted_2$11 = /* @__PURE__ */ createElementVNode("path", {
|
|
|
2732
2812
|
const _hoisted_3$L = [
|
|
2733
2813
|
_hoisted_2$11
|
|
2734
2814
|
];
|
|
2735
|
-
function _sfc_render$
|
|
2815
|
+
function _sfc_render$2a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2736
2816
|
return openBlock(), createElementBlock("svg", _hoisted_1$1l, _hoisted_3$L);
|
|
2737
2817
|
}
|
|
2738
|
-
var _delete = /* @__PURE__ */ _export_sfc$1(_sfc_main$2w, [["render", _sfc_render$
|
|
2818
|
+
var _delete = /* @__PURE__ */ _export_sfc$1(_sfc_main$2w, [["render", _sfc_render$2a]]);
|
|
2739
2819
|
|
|
2740
2820
|
const _sfc_main$2v = defineComponent({
|
|
2741
2821
|
name: "Document"
|
|
@@ -2754,10 +2834,10 @@ const _hoisted_2$10 = /* @__PURE__ */ createElementVNode("path", {
|
|
|
2754
2834
|
const _hoisted_3$K = [
|
|
2755
2835
|
_hoisted_2$10
|
|
2756
2836
|
];
|
|
2757
|
-
function _sfc_render$
|
|
2837
|
+
function _sfc_render$29(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2758
2838
|
return openBlock(), createElementBlock("svg", _hoisted_1$1k, _hoisted_3$K);
|
|
2759
2839
|
}
|
|
2760
|
-
var document$1 = /* @__PURE__ */ _export_sfc$1(_sfc_main$2v, [["render", _sfc_render$
|
|
2840
|
+
var document$1 = /* @__PURE__ */ _export_sfc$1(_sfc_main$2v, [["render", _sfc_render$29]]);
|
|
2761
2841
|
|
|
2762
2842
|
const _sfc_main$2u = defineComponent({
|
|
2763
2843
|
name: "FullScreen"
|
|
@@ -2776,10 +2856,10 @@ const _hoisted_2$$ = /* @__PURE__ */ createElementVNode("path", {
|
|
|
2776
2856
|
const _hoisted_3$J = [
|
|
2777
2857
|
_hoisted_2$$
|
|
2778
2858
|
];
|
|
2779
|
-
function _sfc_render$
|
|
2859
|
+
function _sfc_render$28(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2780
2860
|
return openBlock(), createElementBlock("svg", _hoisted_1$1j, _hoisted_3$J);
|
|
2781
2861
|
}
|
|
2782
|
-
var fullScreen = /* @__PURE__ */ _export_sfc$1(_sfc_main$2u, [["render", _sfc_render$
|
|
2862
|
+
var fullScreen = /* @__PURE__ */ _export_sfc$1(_sfc_main$2u, [["render", _sfc_render$28]]);
|
|
2783
2863
|
|
|
2784
2864
|
const _sfc_main$2t = defineComponent({
|
|
2785
2865
|
name: "InfoFilled"
|
|
@@ -2798,10 +2878,10 @@ const _hoisted_2$_ = /* @__PURE__ */ createElementVNode("path", {
|
|
|
2798
2878
|
const _hoisted_3$I = [
|
|
2799
2879
|
_hoisted_2$_
|
|
2800
2880
|
];
|
|
2801
|
-
function _sfc_render$
|
|
2881
|
+
function _sfc_render$27(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2802
2882
|
return openBlock(), createElementBlock("svg", _hoisted_1$1i, _hoisted_3$I);
|
|
2803
2883
|
}
|
|
2804
|
-
var infoFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$2t, [["render", _sfc_render$
|
|
2884
|
+
var infoFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$2t, [["render", _sfc_render$27]]);
|
|
2805
2885
|
|
|
2806
2886
|
const _sfc_main$2s = defineComponent({
|
|
2807
2887
|
name: "Loading"
|
|
@@ -2820,10 +2900,10 @@ const _hoisted_2$Z = /* @__PURE__ */ createElementVNode("path", {
|
|
|
2820
2900
|
const _hoisted_3$H = [
|
|
2821
2901
|
_hoisted_2$Z
|
|
2822
2902
|
];
|
|
2823
|
-
function _sfc_render$
|
|
2903
|
+
function _sfc_render$26(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2824
2904
|
return openBlock(), createElementBlock("svg", _hoisted_1$1h, _hoisted_3$H);
|
|
2825
2905
|
}
|
|
2826
|
-
var loading = /* @__PURE__ */ _export_sfc$1(_sfc_main$2s, [["render", _sfc_render$
|
|
2906
|
+
var loading = /* @__PURE__ */ _export_sfc$1(_sfc_main$2s, [["render", _sfc_render$26]]);
|
|
2827
2907
|
|
|
2828
2908
|
const _sfc_main$2r = defineComponent({
|
|
2829
2909
|
name: "Minus"
|
|
@@ -2842,10 +2922,10 @@ const _hoisted_2$Y = /* @__PURE__ */ createElementVNode("path", {
|
|
|
2842
2922
|
const _hoisted_3$G = [
|
|
2843
2923
|
_hoisted_2$Y
|
|
2844
2924
|
];
|
|
2845
|
-
function _sfc_render$
|
|
2925
|
+
function _sfc_render$25(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2846
2926
|
return openBlock(), createElementBlock("svg", _hoisted_1$1g, _hoisted_3$G);
|
|
2847
2927
|
}
|
|
2848
|
-
var minus = /* @__PURE__ */ _export_sfc$1(_sfc_main$2r, [["render", _sfc_render$
|
|
2928
|
+
var minus = /* @__PURE__ */ _export_sfc$1(_sfc_main$2r, [["render", _sfc_render$25]]);
|
|
2849
2929
|
|
|
2850
2930
|
const _sfc_main$2q = defineComponent({
|
|
2851
2931
|
name: "MoreFilled"
|
|
@@ -2864,10 +2944,10 @@ const _hoisted_2$X = /* @__PURE__ */ createElementVNode("path", {
|
|
|
2864
2944
|
const _hoisted_3$F = [
|
|
2865
2945
|
_hoisted_2$X
|
|
2866
2946
|
];
|
|
2867
|
-
function _sfc_render$
|
|
2947
|
+
function _sfc_render$24(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2868
2948
|
return openBlock(), createElementBlock("svg", _hoisted_1$1f, _hoisted_3$F);
|
|
2869
2949
|
}
|
|
2870
|
-
var moreFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$2q, [["render", _sfc_render$
|
|
2950
|
+
var moreFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$2q, [["render", _sfc_render$24]]);
|
|
2871
2951
|
|
|
2872
2952
|
const _sfc_main$2p = defineComponent({
|
|
2873
2953
|
name: "More"
|
|
@@ -2886,10 +2966,10 @@ const _hoisted_2$W = /* @__PURE__ */ createElementVNode("path", {
|
|
|
2886
2966
|
const _hoisted_3$E = [
|
|
2887
2967
|
_hoisted_2$W
|
|
2888
2968
|
];
|
|
2889
|
-
function _sfc_render$
|
|
2969
|
+
function _sfc_render$23(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2890
2970
|
return openBlock(), createElementBlock("svg", _hoisted_1$1e, _hoisted_3$E);
|
|
2891
2971
|
}
|
|
2892
|
-
var more = /* @__PURE__ */ _export_sfc$1(_sfc_main$2p, [["render", _sfc_render$
|
|
2972
|
+
var more = /* @__PURE__ */ _export_sfc$1(_sfc_main$2p, [["render", _sfc_render$23]]);
|
|
2893
2973
|
|
|
2894
2974
|
const _sfc_main$2o = defineComponent({
|
|
2895
2975
|
name: "Plus"
|
|
@@ -2908,10 +2988,10 @@ const _hoisted_2$V = /* @__PURE__ */ createElementVNode("path", {
|
|
|
2908
2988
|
const _hoisted_3$D = [
|
|
2909
2989
|
_hoisted_2$V
|
|
2910
2990
|
];
|
|
2911
|
-
function _sfc_render$
|
|
2991
|
+
function _sfc_render$22(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2912
2992
|
return openBlock(), createElementBlock("svg", _hoisted_1$1d, _hoisted_3$D);
|
|
2913
2993
|
}
|
|
2914
|
-
var plus = /* @__PURE__ */ _export_sfc$1(_sfc_main$2o, [["render", _sfc_render$
|
|
2994
|
+
var plus = /* @__PURE__ */ _export_sfc$1(_sfc_main$2o, [["render", _sfc_render$22]]);
|
|
2915
2995
|
|
|
2916
2996
|
const _sfc_main$2n = defineComponent({
|
|
2917
2997
|
name: "QuestionFilled"
|
|
@@ -2930,10 +3010,10 @@ const _hoisted_2$U = /* @__PURE__ */ createElementVNode("path", {
|
|
|
2930
3010
|
const _hoisted_3$C = [
|
|
2931
3011
|
_hoisted_2$U
|
|
2932
3012
|
];
|
|
2933
|
-
function _sfc_render$
|
|
3013
|
+
function _sfc_render$21(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2934
3014
|
return openBlock(), createElementBlock("svg", _hoisted_1$1c, _hoisted_3$C);
|
|
2935
3015
|
}
|
|
2936
|
-
var questionFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$2n, [["render", _sfc_render$
|
|
3016
|
+
var questionFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$2n, [["render", _sfc_render$21]]);
|
|
2937
3017
|
|
|
2938
3018
|
const _sfc_main$2m = defineComponent({
|
|
2939
3019
|
name: "RefreshLeft"
|
|
@@ -2952,10 +3032,10 @@ const _hoisted_2$T = /* @__PURE__ */ createElementVNode("path", {
|
|
|
2952
3032
|
const _hoisted_3$B = [
|
|
2953
3033
|
_hoisted_2$T
|
|
2954
3034
|
];
|
|
2955
|
-
function _sfc_render$
|
|
3035
|
+
function _sfc_render$20(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2956
3036
|
return openBlock(), createElementBlock("svg", _hoisted_1$1b, _hoisted_3$B);
|
|
2957
3037
|
}
|
|
2958
|
-
var refreshLeft = /* @__PURE__ */ _export_sfc$1(_sfc_main$2m, [["render", _sfc_render$
|
|
3038
|
+
var refreshLeft = /* @__PURE__ */ _export_sfc$1(_sfc_main$2m, [["render", _sfc_render$20]]);
|
|
2959
3039
|
|
|
2960
3040
|
const _sfc_main$2l = defineComponent({
|
|
2961
3041
|
name: "RefreshRight"
|
|
@@ -2974,10 +3054,10 @@ const _hoisted_2$S = /* @__PURE__ */ createElementVNode("path", {
|
|
|
2974
3054
|
const _hoisted_3$A = [
|
|
2975
3055
|
_hoisted_2$S
|
|
2976
3056
|
];
|
|
2977
|
-
function _sfc_render$
|
|
3057
|
+
function _sfc_render$1$(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2978
3058
|
return openBlock(), createElementBlock("svg", _hoisted_1$1a, _hoisted_3$A);
|
|
2979
3059
|
}
|
|
2980
|
-
var refreshRight = /* @__PURE__ */ _export_sfc$1(_sfc_main$2l, [["render", _sfc_render$
|
|
3060
|
+
var refreshRight = /* @__PURE__ */ _export_sfc$1(_sfc_main$2l, [["render", _sfc_render$1$]]);
|
|
2981
3061
|
|
|
2982
3062
|
const _sfc_main$2k = defineComponent({
|
|
2983
3063
|
name: "ScaleToOriginal"
|
|
@@ -2996,10 +3076,10 @@ const _hoisted_2$R = /* @__PURE__ */ createElementVNode("path", {
|
|
|
2996
3076
|
const _hoisted_3$z = [
|
|
2997
3077
|
_hoisted_2$R
|
|
2998
3078
|
];
|
|
2999
|
-
function _sfc_render$
|
|
3079
|
+
function _sfc_render$1_(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3000
3080
|
return openBlock(), createElementBlock("svg", _hoisted_1$19, _hoisted_3$z);
|
|
3001
3081
|
}
|
|
3002
|
-
var scaleToOriginal = /* @__PURE__ */ _export_sfc$1(_sfc_main$2k, [["render", _sfc_render$
|
|
3082
|
+
var scaleToOriginal = /* @__PURE__ */ _export_sfc$1(_sfc_main$2k, [["render", _sfc_render$1_]]);
|
|
3003
3083
|
|
|
3004
3084
|
const _sfc_main$2j = defineComponent({
|
|
3005
3085
|
name: "Search"
|
|
@@ -3018,10 +3098,10 @@ const _hoisted_2$Q = /* @__PURE__ */ createElementVNode("path", {
|
|
|
3018
3098
|
const _hoisted_3$y = [
|
|
3019
3099
|
_hoisted_2$Q
|
|
3020
3100
|
];
|
|
3021
|
-
function _sfc_render$
|
|
3101
|
+
function _sfc_render$1Z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3022
3102
|
return openBlock(), createElementBlock("svg", _hoisted_1$18, _hoisted_3$y);
|
|
3023
3103
|
}
|
|
3024
|
-
var search = /* @__PURE__ */ _export_sfc$1(_sfc_main$2j, [["render", _sfc_render$
|
|
3104
|
+
var search = /* @__PURE__ */ _export_sfc$1(_sfc_main$2j, [["render", _sfc_render$1Z]]);
|
|
3025
3105
|
|
|
3026
3106
|
const _sfc_main$2i = defineComponent({
|
|
3027
3107
|
name: "StarFilled"
|
|
@@ -3040,10 +3120,10 @@ const _hoisted_2$P = /* @__PURE__ */ createElementVNode("path", {
|
|
|
3040
3120
|
const _hoisted_3$x = [
|
|
3041
3121
|
_hoisted_2$P
|
|
3042
3122
|
];
|
|
3043
|
-
function _sfc_render$
|
|
3123
|
+
function _sfc_render$1Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3044
3124
|
return openBlock(), createElementBlock("svg", _hoisted_1$17, _hoisted_3$x);
|
|
3045
3125
|
}
|
|
3046
|
-
var starFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$2i, [["render", _sfc_render$
|
|
3126
|
+
var starFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$2i, [["render", _sfc_render$1Y]]);
|
|
3047
3127
|
|
|
3048
3128
|
const _sfc_main$2h = defineComponent({
|
|
3049
3129
|
name: "Star"
|
|
@@ -3062,10 +3142,10 @@ const _hoisted_2$O = /* @__PURE__ */ createElementVNode("path", {
|
|
|
3062
3142
|
const _hoisted_3$w = [
|
|
3063
3143
|
_hoisted_2$O
|
|
3064
3144
|
];
|
|
3065
|
-
function _sfc_render$
|
|
3145
|
+
function _sfc_render$1X(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3066
3146
|
return openBlock(), createElementBlock("svg", _hoisted_1$16, _hoisted_3$w);
|
|
3067
3147
|
}
|
|
3068
|
-
var star = /* @__PURE__ */ _export_sfc$1(_sfc_main$2h, [["render", _sfc_render$
|
|
3148
|
+
var star = /* @__PURE__ */ _export_sfc$1(_sfc_main$2h, [["render", _sfc_render$1X]]);
|
|
3069
3149
|
|
|
3070
3150
|
const _sfc_main$2g = defineComponent({
|
|
3071
3151
|
name: "SuccessFilled"
|
|
@@ -3084,10 +3164,10 @@ const _hoisted_2$N = /* @__PURE__ */ createElementVNode("path", {
|
|
|
3084
3164
|
const _hoisted_3$v = [
|
|
3085
3165
|
_hoisted_2$N
|
|
3086
3166
|
];
|
|
3087
|
-
function _sfc_render$
|
|
3167
|
+
function _sfc_render$1W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3088
3168
|
return openBlock(), createElementBlock("svg", _hoisted_1$15, _hoisted_3$v);
|
|
3089
3169
|
}
|
|
3090
|
-
var successFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$2g, [["render", _sfc_render$
|
|
3170
|
+
var successFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$2g, [["render", _sfc_render$1W]]);
|
|
3091
3171
|
|
|
3092
3172
|
const _sfc_main$2f = defineComponent({
|
|
3093
3173
|
name: "View"
|
|
@@ -3106,10 +3186,10 @@ const _hoisted_2$M = /* @__PURE__ */ createElementVNode("path", {
|
|
|
3106
3186
|
const _hoisted_3$u = [
|
|
3107
3187
|
_hoisted_2$M
|
|
3108
3188
|
];
|
|
3109
|
-
function _sfc_render$
|
|
3189
|
+
function _sfc_render$1V(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3110
3190
|
return openBlock(), createElementBlock("svg", _hoisted_1$14, _hoisted_3$u);
|
|
3111
3191
|
}
|
|
3112
|
-
var view = /* @__PURE__ */ _export_sfc$1(_sfc_main$2f, [["render", _sfc_render$
|
|
3192
|
+
var view = /* @__PURE__ */ _export_sfc$1(_sfc_main$2f, [["render", _sfc_render$1V]]);
|
|
3113
3193
|
|
|
3114
3194
|
const _sfc_main$2e = defineComponent({
|
|
3115
3195
|
name: "WarningFilled"
|
|
@@ -3128,10 +3208,10 @@ const _hoisted_2$L = /* @__PURE__ */ createElementVNode("path", {
|
|
|
3128
3208
|
const _hoisted_3$t = [
|
|
3129
3209
|
_hoisted_2$L
|
|
3130
3210
|
];
|
|
3131
|
-
function _sfc_render$
|
|
3211
|
+
function _sfc_render$1U(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3132
3212
|
return openBlock(), createElementBlock("svg", _hoisted_1$13, _hoisted_3$t);
|
|
3133
3213
|
}
|
|
3134
|
-
var warningFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$2e, [["render", _sfc_render$
|
|
3214
|
+
var warningFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$2e, [["render", _sfc_render$1U]]);
|
|
3135
3215
|
|
|
3136
3216
|
const _sfc_main$2d = defineComponent({
|
|
3137
3217
|
name: "ZoomIn"
|
|
@@ -3150,10 +3230,10 @@ const _hoisted_2$K = /* @__PURE__ */ createElementVNode("path", {
|
|
|
3150
3230
|
const _hoisted_3$s = [
|
|
3151
3231
|
_hoisted_2$K
|
|
3152
3232
|
];
|
|
3153
|
-
function _sfc_render$
|
|
3233
|
+
function _sfc_render$1T(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3154
3234
|
return openBlock(), createElementBlock("svg", _hoisted_1$12, _hoisted_3$s);
|
|
3155
3235
|
}
|
|
3156
|
-
var zoomIn = /* @__PURE__ */ _export_sfc$1(_sfc_main$2d, [["render", _sfc_render$
|
|
3236
|
+
var zoomIn = /* @__PURE__ */ _export_sfc$1(_sfc_main$2d, [["render", _sfc_render$1T]]);
|
|
3157
3237
|
|
|
3158
3238
|
const _sfc_main$2c = defineComponent({
|
|
3159
3239
|
name: "ZoomOut"
|
|
@@ -3172,10 +3252,10 @@ const _hoisted_2$J = /* @__PURE__ */ createElementVNode("path", {
|
|
|
3172
3252
|
const _hoisted_3$r = [
|
|
3173
3253
|
_hoisted_2$J
|
|
3174
3254
|
];
|
|
3175
|
-
function _sfc_render$
|
|
3255
|
+
function _sfc_render$1S(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3176
3256
|
return openBlock(), createElementBlock("svg", _hoisted_1$11, _hoisted_3$r);
|
|
3177
3257
|
}
|
|
3178
|
-
var zoomOut = /* @__PURE__ */ _export_sfc$1(_sfc_main$2c, [["render", _sfc_render$
|
|
3258
|
+
var zoomOut = /* @__PURE__ */ _export_sfc$1(_sfc_main$2c, [["render", _sfc_render$1S]]);
|
|
3179
3259
|
|
|
3180
3260
|
const wrapperKey = Symbol();
|
|
3181
3261
|
const propKey = "__elPropsReservedKey";
|
|
@@ -3405,23 +3485,27 @@ const useAttrs = (params = {}) => {
|
|
|
3405
3485
|
});
|
|
3406
3486
|
};
|
|
3407
3487
|
|
|
3408
|
-
const
|
|
3409
|
-
const elFormItemKey = Symbol("elFormItem");
|
|
3488
|
+
const elBreadcrumbKey = Symbol("elBreadcrumbKey");
|
|
3410
3489
|
|
|
3411
3490
|
const buttonGroupContextKey = Symbol("buttonGroupContextKey");
|
|
3412
3491
|
|
|
3413
|
-
const
|
|
3414
|
-
|
|
3415
|
-
const elPaginationKey = Symbol("elPaginationKey");
|
|
3492
|
+
const collapseContextKey = Symbol("collapseContextKey");
|
|
3416
3493
|
|
|
3417
3494
|
const configProviderContextKey = Symbol();
|
|
3418
3495
|
|
|
3419
|
-
const
|
|
3496
|
+
const dialogInjectionKey = Symbol("dialogInjectionKey");
|
|
3420
3497
|
|
|
3421
|
-
const
|
|
3498
|
+
const elFormKey = Symbol("elForm");
|
|
3499
|
+
const elFormItemKey = Symbol("elFormItem");
|
|
3500
|
+
|
|
3501
|
+
const elPaginationKey = Symbol("elPaginationKey");
|
|
3502
|
+
|
|
3503
|
+
const radioGroupKey = Symbol("radioGroupKey");
|
|
3422
3504
|
|
|
3423
3505
|
const scrollbarContextKey = Symbol("scrollbarContextKey");
|
|
3424
3506
|
|
|
3507
|
+
const tabsRootContextKey = Symbol("tabsRootContextKey");
|
|
3508
|
+
|
|
3425
3509
|
const useProp = (name) => {
|
|
3426
3510
|
const vm = getCurrentInstance();
|
|
3427
3511
|
return computed(() => {
|
|
@@ -4274,7 +4358,7 @@ const useZIndex = () => {
|
|
|
4274
4358
|
};
|
|
4275
4359
|
};
|
|
4276
4360
|
|
|
4277
|
-
const version$1 = "0.0.
|
|
4361
|
+
const version$1 = "0.0.20220303";
|
|
4278
4362
|
|
|
4279
4363
|
const INSTALLED_KEY = Symbol("INSTALLED_KEY");
|
|
4280
4364
|
const makeInstaller = (components = []) => {
|
|
@@ -4315,97 +4399,92 @@ const affixEmits = {
|
|
|
4315
4399
|
change: (fixed) => typeof fixed === "boolean"
|
|
4316
4400
|
};
|
|
4317
4401
|
|
|
4318
|
-
const __default__$
|
|
4402
|
+
const __default__$g = {
|
|
4319
4403
|
name: "ElAffix"
|
|
4320
4404
|
};
|
|
4321
4405
|
const _sfc_main$2b = /* @__PURE__ */ defineComponent({
|
|
4322
|
-
...__default__$
|
|
4406
|
+
...__default__$g,
|
|
4323
4407
|
props: affixProps,
|
|
4324
4408
|
emits: affixEmits,
|
|
4325
4409
|
setup(__props, { expose, emit }) {
|
|
4326
4410
|
const props = __props;
|
|
4411
|
+
const COMPONENT_NAME = "ElAffix";
|
|
4327
4412
|
const ns = useNamespace("affix");
|
|
4328
4413
|
const target = shallowRef();
|
|
4329
4414
|
const root = shallowRef();
|
|
4330
4415
|
const scrollContainer = shallowRef();
|
|
4416
|
+
const { height: windowHeight } = useWindowSize();
|
|
4417
|
+
const {
|
|
4418
|
+
height: rootHeight,
|
|
4419
|
+
width: rootWidth,
|
|
4420
|
+
top: rootTop,
|
|
4421
|
+
bottom: rootBottom,
|
|
4422
|
+
update: updateRoot
|
|
4423
|
+
} = useElementBounding(root);
|
|
4424
|
+
const targetRect = useElementBounding(target);
|
|
4331
4425
|
const fixed = ref(false);
|
|
4332
|
-
const height = ref(0);
|
|
4333
|
-
const width = ref(0);
|
|
4334
4426
|
const scrollTop = ref(0);
|
|
4335
|
-
const clientHeight = ref(0);
|
|
4336
4427
|
const transform = ref(0);
|
|
4337
4428
|
const rootStyle = computed(() => {
|
|
4338
4429
|
return {
|
|
4339
|
-
height: fixed.value ? `${
|
|
4340
|
-
width: fixed.value ? `${
|
|
4430
|
+
height: fixed.value ? `${rootHeight.value}px` : "",
|
|
4431
|
+
width: fixed.value ? `${rootWidth.value}px` : ""
|
|
4341
4432
|
};
|
|
4342
4433
|
});
|
|
4343
4434
|
const affixStyle = computed(() => {
|
|
4344
4435
|
if (!fixed.value)
|
|
4345
|
-
return;
|
|
4436
|
+
return {};
|
|
4346
4437
|
const offset = props.offset ? `${props.offset}px` : 0;
|
|
4347
|
-
const _transform = transform.value ? `translateY(${transform.value}px)` : "";
|
|
4348
4438
|
return {
|
|
4349
|
-
height: `${
|
|
4350
|
-
width: `${
|
|
4439
|
+
height: `${rootHeight.value}px`,
|
|
4440
|
+
width: `${rootWidth.value}px`,
|
|
4351
4441
|
top: props.position === "top" ? offset : "",
|
|
4352
4442
|
bottom: props.position === "bottom" ? offset : "",
|
|
4353
|
-
transform:
|
|
4443
|
+
transform: transform.value ? `translateY(${transform.value}px)` : "",
|
|
4354
4444
|
zIndex: props.zIndex
|
|
4355
4445
|
};
|
|
4356
4446
|
});
|
|
4357
4447
|
const update = () => {
|
|
4358
|
-
if (!
|
|
4448
|
+
if (!scrollContainer.value)
|
|
4359
4449
|
return;
|
|
4360
|
-
const rootRect = root.value.getBoundingClientRect();
|
|
4361
|
-
const targetRect = target.value.getBoundingClientRect();
|
|
4362
|
-
height.value = rootRect.height;
|
|
4363
|
-
width.value = rootRect.width;
|
|
4364
4450
|
scrollTop.value = scrollContainer.value instanceof Window ? document.documentElement.scrollTop : scrollContainer.value.scrollTop || 0;
|
|
4365
|
-
clientHeight.value = document.documentElement.clientHeight;
|
|
4366
4451
|
if (props.position === "top") {
|
|
4367
4452
|
if (props.target) {
|
|
4368
|
-
const difference = targetRect.bottom - props.offset -
|
|
4369
|
-
fixed.value = props.offset >
|
|
4453
|
+
const difference = targetRect.bottom.value - props.offset - rootHeight.value;
|
|
4454
|
+
fixed.value = props.offset > rootTop.value && targetRect.bottom.value > 0;
|
|
4370
4455
|
transform.value = difference < 0 ? difference : 0;
|
|
4371
4456
|
} else {
|
|
4372
|
-
fixed.value = props.offset >
|
|
4457
|
+
fixed.value = props.offset > rootTop.value;
|
|
4373
4458
|
}
|
|
4459
|
+
} else if (props.target) {
|
|
4460
|
+
const difference = windowHeight.value - targetRect.top.value - props.offset - rootHeight.value;
|
|
4461
|
+
fixed.value = windowHeight.value - props.offset < rootBottom.value && windowHeight.value > targetRect.top.value;
|
|
4462
|
+
transform.value = difference < 0 ? -difference : 0;
|
|
4374
4463
|
} else {
|
|
4375
|
-
|
|
4376
|
-
const difference = clientHeight.value - targetRect.top - props.offset - height.value;
|
|
4377
|
-
fixed.value = clientHeight.value - props.offset < rootRect.bottom && clientHeight.value > targetRect.top;
|
|
4378
|
-
transform.value = difference < 0 ? -difference : 0;
|
|
4379
|
-
} else {
|
|
4380
|
-
fixed.value = clientHeight.value - props.offset < rootRect.bottom;
|
|
4381
|
-
}
|
|
4464
|
+
fixed.value = windowHeight.value - props.offset < rootBottom.value;
|
|
4382
4465
|
}
|
|
4383
4466
|
};
|
|
4384
|
-
const
|
|
4385
|
-
update();
|
|
4467
|
+
const handleScroll = () => {
|
|
4386
4468
|
emit("scroll", {
|
|
4387
4469
|
scrollTop: scrollTop.value,
|
|
4388
4470
|
fixed: fixed.value
|
|
4389
4471
|
});
|
|
4390
4472
|
};
|
|
4391
|
-
watch(fixed, (
|
|
4392
|
-
emit("change", fixed2);
|
|
4393
|
-
});
|
|
4473
|
+
watch(fixed, (val) => emit("change", val));
|
|
4394
4474
|
onMounted(() => {
|
|
4395
4475
|
var _a;
|
|
4396
4476
|
if (props.target) {
|
|
4397
4477
|
target.value = (_a = document.querySelector(props.target)) != null ? _a : void 0;
|
|
4398
|
-
if (!target.value)
|
|
4399
|
-
|
|
4400
|
-
}
|
|
4478
|
+
if (!target.value)
|
|
4479
|
+
throwError(COMPONENT_NAME, `Target is not existed: ${props.target}`);
|
|
4401
4480
|
} else {
|
|
4402
4481
|
target.value = document.documentElement;
|
|
4403
4482
|
}
|
|
4404
4483
|
scrollContainer.value = getScrollContainer(root.value, true);
|
|
4484
|
+
updateRoot();
|
|
4405
4485
|
});
|
|
4406
|
-
useEventListener(scrollContainer, "scroll",
|
|
4407
|
-
|
|
4408
|
-
useResizeObserver(target, () => update());
|
|
4486
|
+
useEventListener(scrollContainer, "scroll", handleScroll);
|
|
4487
|
+
watchEffect(update);
|
|
4409
4488
|
expose({
|
|
4410
4489
|
update
|
|
4411
4490
|
});
|
|
@@ -4439,12 +4518,12 @@ const iconProps = buildProps({
|
|
|
4439
4518
|
}
|
|
4440
4519
|
});
|
|
4441
4520
|
|
|
4442
|
-
const __default__$
|
|
4521
|
+
const __default__$f = {
|
|
4443
4522
|
name: "ElIcon",
|
|
4444
4523
|
inheritAttrs: false
|
|
4445
4524
|
};
|
|
4446
4525
|
const _sfc_main$2a = /* @__PURE__ */ defineComponent({
|
|
4447
|
-
...__default__$
|
|
4526
|
+
...__default__$f,
|
|
4448
4527
|
props: iconProps,
|
|
4449
4528
|
setup(__props) {
|
|
4450
4529
|
const props = __props;
|
|
@@ -4506,11 +4585,11 @@ const alertEmits = {
|
|
|
4506
4585
|
close: (evt) => evt instanceof MouseEvent
|
|
4507
4586
|
};
|
|
4508
4587
|
|
|
4509
|
-
const __default__$
|
|
4588
|
+
const __default__$e = {
|
|
4510
4589
|
name: "ElAlert"
|
|
4511
4590
|
};
|
|
4512
4591
|
const _sfc_main$29 = /* @__PURE__ */ defineComponent({
|
|
4513
|
-
...__default__$
|
|
4592
|
+
...__default__$e,
|
|
4514
4593
|
props: alertProps,
|
|
4515
4594
|
emits: alertEmits,
|
|
4516
4595
|
setup(__props, { emit }) {
|
|
@@ -4593,190 +4672,6 @@ var Alert = _sfc_main$29;
|
|
|
4593
4672
|
|
|
4594
4673
|
const ElAlert = withInstall(Alert);
|
|
4595
4674
|
|
|
4596
|
-
const nodeList = /* @__PURE__ */ new Map();
|
|
4597
|
-
let startClick;
|
|
4598
|
-
if (isClient) {
|
|
4599
|
-
document.addEventListener("mousedown", (e) => startClick = e);
|
|
4600
|
-
document.addEventListener("mouseup", (e) => {
|
|
4601
|
-
for (const handlers of nodeList.values()) {
|
|
4602
|
-
for (const { documentHandler } of handlers) {
|
|
4603
|
-
documentHandler(e, startClick);
|
|
4604
|
-
}
|
|
4605
|
-
}
|
|
4606
|
-
});
|
|
4607
|
-
}
|
|
4608
|
-
function createDocumentHandler(el, binding) {
|
|
4609
|
-
let excludes = [];
|
|
4610
|
-
if (Array.isArray(binding.arg)) {
|
|
4611
|
-
excludes = binding.arg;
|
|
4612
|
-
} else if (isElement$1(binding.arg)) {
|
|
4613
|
-
excludes.push(binding.arg);
|
|
4614
|
-
}
|
|
4615
|
-
return function(mouseup, mousedown) {
|
|
4616
|
-
const popperRef = binding.instance.popperRef;
|
|
4617
|
-
const mouseUpTarget = mouseup.target;
|
|
4618
|
-
const mouseDownTarget = mousedown == null ? void 0 : mousedown.target;
|
|
4619
|
-
const isBound = !binding || !binding.instance;
|
|
4620
|
-
const isTargetExists = !mouseUpTarget || !mouseDownTarget;
|
|
4621
|
-
const isContainedByEl = el.contains(mouseUpTarget) || el.contains(mouseDownTarget);
|
|
4622
|
-
const isSelf = el === mouseUpTarget;
|
|
4623
|
-
const isTargetExcluded = excludes.length && excludes.some((item) => item == null ? void 0 : item.contains(mouseUpTarget)) || excludes.length && excludes.includes(mouseDownTarget);
|
|
4624
|
-
const isContainedByPopper = popperRef && (popperRef.contains(mouseUpTarget) || popperRef.contains(mouseDownTarget));
|
|
4625
|
-
if (isBound || isTargetExists || isContainedByEl || isSelf || isTargetExcluded || isContainedByPopper) {
|
|
4626
|
-
return;
|
|
4627
|
-
}
|
|
4628
|
-
binding.value(mouseup, mousedown);
|
|
4629
|
-
};
|
|
4630
|
-
}
|
|
4631
|
-
const ClickOutside = {
|
|
4632
|
-
beforeMount(el, binding) {
|
|
4633
|
-
if (!nodeList.has(el)) {
|
|
4634
|
-
nodeList.set(el, []);
|
|
4635
|
-
}
|
|
4636
|
-
nodeList.get(el).push({
|
|
4637
|
-
documentHandler: createDocumentHandler(el, binding),
|
|
4638
|
-
bindingFn: binding.value
|
|
4639
|
-
});
|
|
4640
|
-
},
|
|
4641
|
-
updated(el, binding) {
|
|
4642
|
-
if (!nodeList.has(el)) {
|
|
4643
|
-
nodeList.set(el, []);
|
|
4644
|
-
}
|
|
4645
|
-
const handlers = nodeList.get(el);
|
|
4646
|
-
const oldHandlerIndex = handlers.findIndex((item) => item.bindingFn === binding.oldValue);
|
|
4647
|
-
const newHandler = {
|
|
4648
|
-
documentHandler: createDocumentHandler(el, binding),
|
|
4649
|
-
bindingFn: binding.value
|
|
4650
|
-
};
|
|
4651
|
-
if (oldHandlerIndex >= 0) {
|
|
4652
|
-
handlers.splice(oldHandlerIndex, 1, newHandler);
|
|
4653
|
-
} else {
|
|
4654
|
-
handlers.push(newHandler);
|
|
4655
|
-
}
|
|
4656
|
-
},
|
|
4657
|
-
unmounted(el) {
|
|
4658
|
-
nodeList.delete(el);
|
|
4659
|
-
}
|
|
4660
|
-
};
|
|
4661
|
-
|
|
4662
|
-
var RepeatClick = {
|
|
4663
|
-
beforeMount(el, binding) {
|
|
4664
|
-
let interval = null;
|
|
4665
|
-
let startTime;
|
|
4666
|
-
const handler = () => binding.value && binding.value();
|
|
4667
|
-
const clear = () => {
|
|
4668
|
-
if (Date.now() - startTime < 100) {
|
|
4669
|
-
handler();
|
|
4670
|
-
}
|
|
4671
|
-
clearInterval(interval);
|
|
4672
|
-
interval = null;
|
|
4673
|
-
};
|
|
4674
|
-
on(el, "mousedown", (e) => {
|
|
4675
|
-
if (e.button !== 0)
|
|
4676
|
-
return;
|
|
4677
|
-
startTime = Date.now();
|
|
4678
|
-
once(document, "mouseup", clear);
|
|
4679
|
-
clearInterval(interval);
|
|
4680
|
-
interval = setInterval(handler, 100);
|
|
4681
|
-
});
|
|
4682
|
-
}
|
|
4683
|
-
};
|
|
4684
|
-
|
|
4685
|
-
const FOCUSABLE_CHILDREN = "_trap-focus-children";
|
|
4686
|
-
const FOCUS_STACK = [];
|
|
4687
|
-
const FOCUS_HANDLER = (e) => {
|
|
4688
|
-
if (FOCUS_STACK.length === 0)
|
|
4689
|
-
return;
|
|
4690
|
-
const focusableElement = FOCUS_STACK[FOCUS_STACK.length - 1][FOCUSABLE_CHILDREN];
|
|
4691
|
-
if (focusableElement.length > 0 && e.code === EVENT_CODE.tab) {
|
|
4692
|
-
if (focusableElement.length === 1) {
|
|
4693
|
-
e.preventDefault();
|
|
4694
|
-
if (document.activeElement !== focusableElement[0]) {
|
|
4695
|
-
focusableElement[0].focus();
|
|
4696
|
-
}
|
|
4697
|
-
return;
|
|
4698
|
-
}
|
|
4699
|
-
const goingBackward = e.shiftKey;
|
|
4700
|
-
const isFirst = e.target === focusableElement[0];
|
|
4701
|
-
const isLast = e.target === focusableElement[focusableElement.length - 1];
|
|
4702
|
-
if (isFirst && goingBackward) {
|
|
4703
|
-
e.preventDefault();
|
|
4704
|
-
focusableElement[focusableElement.length - 1].focus();
|
|
4705
|
-
}
|
|
4706
|
-
if (isLast && !goingBackward) {
|
|
4707
|
-
e.preventDefault();
|
|
4708
|
-
focusableElement[0].focus();
|
|
4709
|
-
}
|
|
4710
|
-
}
|
|
4711
|
-
};
|
|
4712
|
-
const TrapFocus = {
|
|
4713
|
-
beforeMount(el) {
|
|
4714
|
-
el[FOCUSABLE_CHILDREN] = obtainAllFocusableElements$1(el);
|
|
4715
|
-
FOCUS_STACK.push(el);
|
|
4716
|
-
if (FOCUS_STACK.length <= 1) {
|
|
4717
|
-
on(document, "keydown", FOCUS_HANDLER);
|
|
4718
|
-
}
|
|
4719
|
-
},
|
|
4720
|
-
updated(el) {
|
|
4721
|
-
nextTick(() => {
|
|
4722
|
-
el[FOCUSABLE_CHILDREN] = obtainAllFocusableElements$1(el);
|
|
4723
|
-
});
|
|
4724
|
-
},
|
|
4725
|
-
unmounted() {
|
|
4726
|
-
FOCUS_STACK.shift();
|
|
4727
|
-
if (FOCUS_STACK.length === 0) {
|
|
4728
|
-
off(document, "keydown", FOCUS_HANDLER);
|
|
4729
|
-
}
|
|
4730
|
-
}
|
|
4731
|
-
};
|
|
4732
|
-
|
|
4733
|
-
var h=!1,o,s,f,u,d,D,l,p,m,w,N,E,x,A,M;function a(){if(!h){h=!0;var e=navigator.userAgent,n=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),i=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(E=/\b(iPhone|iP[ao]d)/.exec(e),x=/\b(iP[ao]d)/.exec(e),w=/Android/i.exec(e),A=/FBAN\/\w+;/i.exec(e),M=/Mobile/i.exec(e),N=!!/Win64/.exec(e),n){o=n[1]?parseFloat(n[1]):n[5]?parseFloat(n[5]):NaN,o&&document&&document.documentMode&&(o=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);D=r?parseFloat(r[1])+4:o,s=n[2]?parseFloat(n[2]):NaN,f=n[3]?parseFloat(n[3]):NaN,u=n[4]?parseFloat(n[4]):NaN,u?(n=/(?:Chrome\/(\d+\.\d+))/.exec(e),d=n&&n[1]?parseFloat(n[1]):NaN):d=NaN;}else { o=s=f=d=u=NaN; }if(i){if(i[1]){var t=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);l=t?parseFloat(t[1].replace("_",".")):!0;}else { l=!1; }p=!!i[2],m=!!i[3];}else { l=p=m=!1; }}}var _={ie:function(){return a()||o},ieCompatibilityMode:function(){return a()||D>o},ie64:function(){return _.ie()&&N},firefox:function(){return a()||s},opera:function(){return a()||f},webkit:function(){return a()||u},safari:function(){return _.webkit()},chrome:function(){return a()||d},windows:function(){return a()||p},osx:function(){return a()||l},linux:function(){return a()||m},iphone:function(){return a()||E},mobile:function(){return a()||E||x||w||M},nativeApp:function(){return a()||A},android:function(){return a()||w},ipad:function(){return a()||x}},F=_;var c=!!(typeof window!="undefined"&&window.document&&window.document.createElement),I={canUseDOM:c,canUseWorkers:typeof Worker!="undefined",canUseEventListeners:c&&!!(window.addEventListener||window.attachEvent),canUseViewport:c&&!!window.screen,isInWorker:!c},v=I;var X;v.canUseDOM&&(X=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function S(e,n){if(!v.canUseDOM||n&&!("addEventListener"in document)){ return !1; }var i="on"+e,r=i in document;if(!r){var t=document.createElement("div");t.setAttribute(i,"return;"),r=typeof t[i]=="function";}return !r&&X&&e==="wheel"&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var b=S;var O=10,P=40,T=800;function U(e){var n=0,i=0,r=0,t=0;return "detail"in e&&(i=e.detail),"wheelDelta"in e&&(i=-e.wheelDelta/120),"wheelDeltaY"in e&&(i=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(n=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(n=i,i=0),r=n*O,t=i*O,"deltaY"in e&&(t=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||t)&&e.deltaMode&&(e.deltaMode==1?(r*=P,t*=P):(r*=T,t*=T)),r&&!n&&(n=r<1?-1:1),t&&!i&&(i=t<1?-1:1),{spinX:n,spinY:i,pixelX:r,pixelY:t}}U.getEventType=function(){return F.firefox()?"DOMMouseScroll":b("wheel")?"wheel":"mousewheel"};var W=U;/**
|
|
4734
|
-
* Checks if an event is supported in the current execution environment.
|
|
4735
|
-
*
|
|
4736
|
-
* NOTE: This will not work correctly for non-generic events such as `change`,
|
|
4737
|
-
* `reset`, `load`, `error`, and `select`.
|
|
4738
|
-
*
|
|
4739
|
-
* Borrows from Modernizr.
|
|
4740
|
-
*
|
|
4741
|
-
* @param {string} eventNameSuffix Event name, e.g. "click".
|
|
4742
|
-
* @param {?boolean} capture Check if the capture phase is supported.
|
|
4743
|
-
* @return {boolean} True if the event is supported.
|
|
4744
|
-
* @internal
|
|
4745
|
-
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
4746
|
-
*/
|
|
4747
|
-
|
|
4748
|
-
const mousewheel = function(element, callback) {
|
|
4749
|
-
if (element && element.addEventListener) {
|
|
4750
|
-
const fn = function(event) {
|
|
4751
|
-
const normalized = W(event);
|
|
4752
|
-
callback && callback.apply(this, [event, normalized]);
|
|
4753
|
-
};
|
|
4754
|
-
if (isFirefox()) {
|
|
4755
|
-
element.addEventListener("DOMMouseScroll", fn);
|
|
4756
|
-
} else {
|
|
4757
|
-
element.onmousewheel = fn;
|
|
4758
|
-
}
|
|
4759
|
-
}
|
|
4760
|
-
};
|
|
4761
|
-
const Mousewheel = {
|
|
4762
|
-
beforeMount(el, binding) {
|
|
4763
|
-
mousewheel(el, binding.value);
|
|
4764
|
-
}
|
|
4765
|
-
};
|
|
4766
|
-
|
|
4767
|
-
const Resize = {
|
|
4768
|
-
beforeMount(el, binding) {
|
|
4769
|
-
el._handleResize = () => {
|
|
4770
|
-
var _a;
|
|
4771
|
-
el && ((_a = binding.value) == null ? void 0 : _a.call(binding, el));
|
|
4772
|
-
};
|
|
4773
|
-
addResizeListener(el, el._handleResize);
|
|
4774
|
-
},
|
|
4775
|
-
beforeUnmount(el) {
|
|
4776
|
-
removeResizeListener(el, el._handleResize);
|
|
4777
|
-
}
|
|
4778
|
-
};
|
|
4779
|
-
|
|
4780
4675
|
let hiddenTextarea = void 0;
|
|
4781
4676
|
const HIDDEN_STYLE = `
|
|
4782
4677
|
height:0 !important;
|
|
@@ -5173,7 +5068,7 @@ const _sfc_main$28 = defineComponent({
|
|
|
5173
5068
|
});
|
|
5174
5069
|
const _hoisted_1$10 = ["type", "disabled", "readonly", "autocomplete", "tabindex", "aria-label", "placeholder"];
|
|
5175
5070
|
const _hoisted_2$I = ["tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder"];
|
|
5176
|
-
function _sfc_render$
|
|
5071
|
+
function _sfc_render$1R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5177
5072
|
const _component_el_icon = resolveComponent("el-icon");
|
|
5178
5073
|
const _component_circle_close = resolveComponent("circle-close");
|
|
5179
5074
|
const _component_icon_view = resolveComponent("icon-view");
|
|
@@ -5346,7 +5241,7 @@ function _sfc_render$1W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5346
5241
|
[vShow, _ctx.type !== "hidden"]
|
|
5347
5242
|
]);
|
|
5348
5243
|
}
|
|
5349
|
-
var Input = /* @__PURE__ */ _export_sfc(_sfc_main$28, [["render", _sfc_render$
|
|
5244
|
+
var Input = /* @__PURE__ */ _export_sfc(_sfc_main$28, [["render", _sfc_render$1R]]);
|
|
5350
5245
|
|
|
5351
5246
|
const ElInput = withInstall(Input);
|
|
5352
5247
|
|
|
@@ -5388,15 +5283,15 @@ const thumbProps = buildProps({
|
|
|
5388
5283
|
always: Boolean
|
|
5389
5284
|
});
|
|
5390
5285
|
|
|
5391
|
-
const COMPONENT_NAME$
|
|
5286
|
+
const COMPONENT_NAME$d = "Thumb";
|
|
5392
5287
|
const _sfc_main$27 = defineComponent({
|
|
5393
|
-
name: COMPONENT_NAME$
|
|
5288
|
+
name: COMPONENT_NAME$d,
|
|
5394
5289
|
props: thumbProps,
|
|
5395
5290
|
setup(props) {
|
|
5396
5291
|
const scrollbar = inject(scrollbarContextKey);
|
|
5397
5292
|
const ns = useNamespace("scrollbar");
|
|
5398
5293
|
if (!scrollbar)
|
|
5399
|
-
throwError(COMPONENT_NAME$
|
|
5294
|
+
throwError(COMPONENT_NAME$d, "can not inject scrollbar context");
|
|
5400
5295
|
const instance = ref();
|
|
5401
5296
|
const thumb = ref();
|
|
5402
5297
|
const thumbState = ref({});
|
|
@@ -5491,7 +5386,7 @@ const _sfc_main$27 = defineComponent({
|
|
|
5491
5386
|
};
|
|
5492
5387
|
}
|
|
5493
5388
|
});
|
|
5494
|
-
function _sfc_render$
|
|
5389
|
+
function _sfc_render$1Q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5495
5390
|
return openBlock(), createBlock(Transition, {
|
|
5496
5391
|
name: _ctx.ns.b("fade")
|
|
5497
5392
|
}, {
|
|
@@ -5514,7 +5409,7 @@ function _sfc_render$1V(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5514
5409
|
_: 1
|
|
5515
5410
|
}, 8, ["name"]);
|
|
5516
5411
|
}
|
|
5517
|
-
var Thumb = /* @__PURE__ */ _export_sfc(_sfc_main$27, [["render", _sfc_render$
|
|
5412
|
+
var Thumb = /* @__PURE__ */ _export_sfc(_sfc_main$27, [["render", _sfc_render$1Q]]);
|
|
5518
5413
|
|
|
5519
5414
|
const barProps = buildProps({
|
|
5520
5415
|
always: {
|
|
@@ -5563,7 +5458,7 @@ const _sfc_main$26 = defineComponent({
|
|
|
5563
5458
|
};
|
|
5564
5459
|
}
|
|
5565
5460
|
});
|
|
5566
|
-
function _sfc_render$
|
|
5461
|
+
function _sfc_render$1P(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5567
5462
|
const _component_thumb = resolveComponent("thumb");
|
|
5568
5463
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
5569
5464
|
createVNode(_component_thumb, {
|
|
@@ -5581,7 +5476,7 @@ function _sfc_render$1U(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5581
5476
|
}, null, 8, ["move", "ratio", "size", "always"])
|
|
5582
5477
|
], 64);
|
|
5583
5478
|
}
|
|
5584
|
-
var Bar = /* @__PURE__ */ _export_sfc(_sfc_main$26, [["render", _sfc_render$
|
|
5479
|
+
var Bar = /* @__PURE__ */ _export_sfc(_sfc_main$26, [["render", _sfc_render$1P]]);
|
|
5585
5480
|
|
|
5586
5481
|
const scrollbarProps = buildProps({
|
|
5587
5482
|
height: {
|
|
@@ -5746,7 +5641,7 @@ const _sfc_main$25 = defineComponent({
|
|
|
5746
5641
|
};
|
|
5747
5642
|
}
|
|
5748
5643
|
});
|
|
5749
|
-
function _sfc_render$
|
|
5644
|
+
function _sfc_render$1O(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5750
5645
|
const _component_bar = resolveComponent("bar");
|
|
5751
5646
|
return openBlock(), createElementBlock("div", {
|
|
5752
5647
|
ref: "scrollbar$",
|
|
@@ -5784,7 +5679,7 @@ function _sfc_render$1T(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5784
5679
|
}, null, 8, ["height", "width", "always", "ratio-x", "ratio-y"])) : createCommentVNode("v-if", true)
|
|
5785
5680
|
], 2);
|
|
5786
5681
|
}
|
|
5787
|
-
var Scrollbar$1 = /* @__PURE__ */ _export_sfc(_sfc_main$25, [["render", _sfc_render$
|
|
5682
|
+
var Scrollbar$1 = /* @__PURE__ */ _export_sfc(_sfc_main$25, [["render", _sfc_render$1O]]);
|
|
5788
5683
|
|
|
5789
5684
|
const ElScrollbar = withInstall(Scrollbar$1);
|
|
5790
5685
|
|
|
@@ -5804,10 +5699,10 @@ const _sfc_main$24 = defineComponent({
|
|
|
5804
5699
|
return popperProvides;
|
|
5805
5700
|
}
|
|
5806
5701
|
});
|
|
5807
|
-
function _sfc_render$
|
|
5702
|
+
function _sfc_render$1N(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5808
5703
|
return renderSlot(_ctx.$slots, "default");
|
|
5809
5704
|
}
|
|
5810
|
-
var Popper = /* @__PURE__ */ _export_sfc(_sfc_main$24, [["render", _sfc_render$
|
|
5705
|
+
var Popper = /* @__PURE__ */ _export_sfc(_sfc_main$24, [["render", _sfc_render$1N]]);
|
|
5811
5706
|
|
|
5812
5707
|
var top = "top";
|
|
5813
5708
|
var bottom = "bottom";
|
|
@@ -7282,22 +7177,25 @@ const _sfc_main$23 = defineComponent({
|
|
|
7282
7177
|
};
|
|
7283
7178
|
}
|
|
7284
7179
|
});
|
|
7285
|
-
function _sfc_render$
|
|
7180
|
+
function _sfc_render$1M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7286
7181
|
return openBlock(), createElementBlock("span", {
|
|
7287
7182
|
ref: "arrowRef",
|
|
7288
7183
|
class: normalizeClass(_ctx.ns.e("arrow")),
|
|
7289
7184
|
"data-popper-arrow": ""
|
|
7290
7185
|
}, null, 2);
|
|
7291
7186
|
}
|
|
7292
|
-
var ElPopperArrow = /* @__PURE__ */ _export_sfc(_sfc_main$23, [["render", _sfc_render$
|
|
7187
|
+
var ElPopperArrow = /* @__PURE__ */ _export_sfc(_sfc_main$23, [["render", _sfc_render$1M]]);
|
|
7293
7188
|
|
|
7294
7189
|
const NAME = "ElOnlyChild";
|
|
7295
7190
|
const OnlyChild = defineComponent({
|
|
7296
7191
|
name: NAME,
|
|
7297
|
-
setup(_, {
|
|
7192
|
+
setup(_, {
|
|
7193
|
+
slots,
|
|
7194
|
+
attrs
|
|
7195
|
+
}) {
|
|
7298
7196
|
var _a;
|
|
7299
|
-
const forwardRefInjection = inject(FORWARD_REF_INJECTION_KEY
|
|
7300
|
-
const forwardRefDirective = useForwardRefDirective((_a = forwardRefInjection.setForwardRef) != null ? _a : NOOP);
|
|
7197
|
+
const forwardRefInjection = inject(FORWARD_REF_INJECTION_KEY);
|
|
7198
|
+
const forwardRefDirective = useForwardRefDirective((_a = forwardRefInjection == null ? void 0 : forwardRefInjection.setForwardRef) != null ? _a : NOOP);
|
|
7301
7199
|
return () => {
|
|
7302
7200
|
var _a2;
|
|
7303
7201
|
const defaultSlot = (_a2 = slots.default) == null ? void 0 : _a2.call(slots, attrs);
|
|
@@ -7310,9 +7208,7 @@ const OnlyChild = defineComponent({
|
|
|
7310
7208
|
if (!firstLegitNode) {
|
|
7311
7209
|
return null;
|
|
7312
7210
|
}
|
|
7313
|
-
return withDirectives(cloneVNode(firstLegitNode, attrs), [
|
|
7314
|
-
[forwardRefDirective]
|
|
7315
|
-
]);
|
|
7211
|
+
return withDirectives(cloneVNode(firstLegitNode, attrs), [[forwardRefDirective]]);
|
|
7316
7212
|
};
|
|
7317
7213
|
}
|
|
7318
7214
|
});
|
|
@@ -7341,9 +7237,10 @@ function findFirstLegitChild(node) {
|
|
|
7341
7237
|
return null;
|
|
7342
7238
|
}
|
|
7343
7239
|
function wrapTextContent(s) {
|
|
7344
|
-
return
|
|
7240
|
+
return createVNode("span", {
|
|
7241
|
+
"class": "el-only-child__content"
|
|
7242
|
+
}, [s]);
|
|
7345
7243
|
}
|
|
7346
|
-
var ElOnlyChild = OnlyChild;
|
|
7347
7244
|
|
|
7348
7245
|
const buildPopperOptions = (props, arrowProps) => {
|
|
7349
7246
|
const { placement, strategy, popperOptions } = props;
|
|
@@ -7421,7 +7318,7 @@ function deriveExtraModifiers(options, modifiers) {
|
|
|
7421
7318
|
|
|
7422
7319
|
const _sfc_main$22 = defineComponent({
|
|
7423
7320
|
name: "ElPopperTrigger",
|
|
7424
|
-
components: { ElOnlyChild },
|
|
7321
|
+
components: { ElOnlyChild: OnlyChild },
|
|
7425
7322
|
inheritAttrs: false,
|
|
7426
7323
|
props: {
|
|
7427
7324
|
...usePopperTriggerProps,
|
|
@@ -7471,7 +7368,7 @@ const _sfc_main$22 = defineComponent({
|
|
|
7471
7368
|
};
|
|
7472
7369
|
}
|
|
7473
7370
|
});
|
|
7474
|
-
function _sfc_render$
|
|
7371
|
+
function _sfc_render$1L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7475
7372
|
const _component_el_only_child = resolveComponent("el-only-child");
|
|
7476
7373
|
return !_ctx.virtualTriggering ? (openBlock(), createBlock(_component_el_only_child, mergeProps({ key: 0 }, _ctx.$attrs, {
|
|
7477
7374
|
"aria-describedby": _ctx.open ? _ctx.id : void 0
|
|
@@ -7482,7 +7379,7 @@ function _sfc_render$1Q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7482
7379
|
_: 3
|
|
7483
7380
|
}, 16, ["aria-describedby"])) : createCommentVNode("v-if", true);
|
|
7484
7381
|
}
|
|
7485
|
-
var ElPopperTrigger = /* @__PURE__ */ _export_sfc(_sfc_main$22, [["render", _sfc_render$
|
|
7382
|
+
var ElPopperTrigger = /* @__PURE__ */ _export_sfc(_sfc_main$22, [["render", _sfc_render$1L]]);
|
|
7486
7383
|
|
|
7487
7384
|
const _sfc_main$21 = defineComponent({
|
|
7488
7385
|
name: "ElPopperContent",
|
|
@@ -7577,7 +7474,7 @@ const _sfc_main$21 = defineComponent({
|
|
|
7577
7474
|
};
|
|
7578
7475
|
}
|
|
7579
7476
|
});
|
|
7580
|
-
function _sfc_render$
|
|
7477
|
+
function _sfc_render$1K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7581
7478
|
return openBlock(), createElementBlock("div", {
|
|
7582
7479
|
ref: "popperContentRef",
|
|
7583
7480
|
style: normalizeStyle(_ctx.contentStyle),
|
|
@@ -7589,7 +7486,7 @@ function _sfc_render$1P(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7589
7486
|
renderSlot(_ctx.$slots, "default")
|
|
7590
7487
|
], 38);
|
|
7591
7488
|
}
|
|
7592
|
-
var ElPopperContent = /* @__PURE__ */ _export_sfc(_sfc_main$21, [["render", _sfc_render$
|
|
7489
|
+
var ElPopperContent = /* @__PURE__ */ _export_sfc(_sfc_main$21, [["render", _sfc_render$1K]]);
|
|
7593
7490
|
|
|
7594
7491
|
function useDeprecateAppendToBody(scope, from) {
|
|
7595
7492
|
const vm = getCurrentInstance();
|
|
@@ -7639,10 +7536,10 @@ const _sfc_main$20 = defineComponent({
|
|
|
7639
7536
|
};
|
|
7640
7537
|
}
|
|
7641
7538
|
});
|
|
7642
|
-
function _sfc_render$
|
|
7539
|
+
function _sfc_render$1J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7643
7540
|
return openBlock(), createElementBlock("span", mergeProps(_ctx.$attrs, { style: _ctx.computedStyle }), null, 16);
|
|
7644
7541
|
}
|
|
7645
|
-
var ElVisuallyHidden = /* @__PURE__ */ _export_sfc(_sfc_main$20, [["render", _sfc_render$
|
|
7542
|
+
var ElVisuallyHidden = /* @__PURE__ */ _export_sfc(_sfc_main$20, [["render", _sfc_render$1J]]);
|
|
7646
7543
|
|
|
7647
7544
|
const useTooltipContentProps = buildProps({
|
|
7648
7545
|
...useDelayedToggleProps,
|
|
@@ -7718,6 +7615,7 @@ const _sfc_main$1$ = defineComponent({
|
|
|
7718
7615
|
const intermediateOpen = ref(false);
|
|
7719
7616
|
const entering = ref(false);
|
|
7720
7617
|
const leaving = ref(false);
|
|
7618
|
+
const destroyed = ref(false);
|
|
7721
7619
|
const {
|
|
7722
7620
|
controlled,
|
|
7723
7621
|
id,
|
|
@@ -7733,6 +7631,9 @@ const _sfc_main$1$ = defineComponent({
|
|
|
7733
7631
|
const persistentRef = computed(() => {
|
|
7734
7632
|
return props.persistent;
|
|
7735
7633
|
});
|
|
7634
|
+
onBeforeUnmount(() => {
|
|
7635
|
+
destroyed.value = true;
|
|
7636
|
+
});
|
|
7736
7637
|
const shouldRender = computed(() => {
|
|
7737
7638
|
return unref(persistentRef) ? true : unref(open);
|
|
7738
7639
|
});
|
|
@@ -7765,10 +7666,10 @@ const _sfc_main$1$ = defineComponent({
|
|
|
7765
7666
|
const onBeforeEnter = () => {
|
|
7766
7667
|
var _a, _b;
|
|
7767
7668
|
(_b = (_a = contentRef.value) == null ? void 0 : _a.updatePopper) == null ? void 0 : _b.call(_a);
|
|
7768
|
-
onBeforeShow();
|
|
7669
|
+
onBeforeShow == null ? void 0 : onBeforeShow();
|
|
7769
7670
|
};
|
|
7770
7671
|
const onBeforeLeave = () => {
|
|
7771
|
-
onBeforeHide();
|
|
7672
|
+
onBeforeHide == null ? void 0 : onBeforeHide();
|
|
7772
7673
|
};
|
|
7773
7674
|
const onAfterShow = () => {
|
|
7774
7675
|
onShow();
|
|
@@ -7801,6 +7702,7 @@ const _sfc_main$1$ = defineComponent({
|
|
|
7801
7702
|
intermediateOpen,
|
|
7802
7703
|
contentStyle,
|
|
7803
7704
|
contentRef,
|
|
7705
|
+
destroyed,
|
|
7804
7706
|
shouldRender,
|
|
7805
7707
|
shouldShow,
|
|
7806
7708
|
open,
|
|
@@ -7813,7 +7715,7 @@ const _sfc_main$1$ = defineComponent({
|
|
|
7813
7715
|
};
|
|
7814
7716
|
}
|
|
7815
7717
|
});
|
|
7816
|
-
function _sfc_render$
|
|
7718
|
+
function _sfc_render$1I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7817
7719
|
const _component_el_visually_hidden = resolveComponent("el-visually-hidden");
|
|
7818
7720
|
const _component_el_popper_content = resolveComponent("el-popper-content");
|
|
7819
7721
|
return openBlock(), createBlock(Teleport, {
|
|
@@ -7852,16 +7754,19 @@ function _sfc_render$1N(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7852
7754
|
onMouseleave: _ctx.onContentLeave
|
|
7853
7755
|
}), {
|
|
7854
7756
|
default: withCtx(() => [
|
|
7855
|
-
|
|
7856
|
-
|
|
7857
|
-
|
|
7858
|
-
|
|
7859
|
-
|
|
7860
|
-
|
|
7861
|
-
|
|
7862
|
-
|
|
7863
|
-
|
|
7864
|
-
|
|
7757
|
+
createCommentVNode(" Workaround bug #6378 "),
|
|
7758
|
+
!_ctx.destroyed ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
7759
|
+
renderSlot(_ctx.$slots, "default"),
|
|
7760
|
+
createVNode(_component_el_visually_hidden, {
|
|
7761
|
+
id: _ctx.id,
|
|
7762
|
+
role: "tooltip"
|
|
7763
|
+
}, {
|
|
7764
|
+
default: withCtx(() => [
|
|
7765
|
+
createTextVNode(toDisplayString(_ctx.ariaLabel), 1)
|
|
7766
|
+
]),
|
|
7767
|
+
_: 1
|
|
7768
|
+
}, 8, ["id"])
|
|
7769
|
+
], 64)) : createCommentVNode("v-if", true)
|
|
7865
7770
|
]),
|
|
7866
7771
|
_: 3
|
|
7867
7772
|
}, 16, ["aria-hidden", "boundaries-padding", "fallback-placements", "gpu-acceleration", "offset", "placement", "popper-options", "strategy", "effect", "enterable", "pure", "popper-class", "popper-style", "reference-el", "visible", "z-index", "onMouseenter", "onMouseleave"])), [
|
|
@@ -7872,7 +7777,7 @@ function _sfc_render$1N(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7872
7777
|
}, 8, ["name", "onAfterLeave", "onBeforeEnter", "onAfterEnter", "onBeforeLeave"])
|
|
7873
7778
|
], 8, ["disabled", "to"]);
|
|
7874
7779
|
}
|
|
7875
|
-
var ElTooltipContent = /* @__PURE__ */ _export_sfc(_sfc_main$1$, [["render", _sfc_render$
|
|
7780
|
+
var ElTooltipContent = /* @__PURE__ */ _export_sfc(_sfc_main$1$, [["render", _sfc_render$1I]]);
|
|
7876
7781
|
|
|
7877
7782
|
const isTriggerType = (trigger, type) => {
|
|
7878
7783
|
if (isArray(trigger)) {
|
|
@@ -7936,7 +7841,7 @@ const _sfc_main$1_ = defineComponent({
|
|
|
7936
7841
|
};
|
|
7937
7842
|
}
|
|
7938
7843
|
});
|
|
7939
|
-
function _sfc_render$
|
|
7844
|
+
function _sfc_render$1H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7940
7845
|
const _component_el_popper_trigger = resolveComponent("el-popper-trigger");
|
|
7941
7846
|
return openBlock(), createBlock(_component_el_popper_trigger, {
|
|
7942
7847
|
id: _ctx.id,
|
|
@@ -7958,7 +7863,7 @@ function _sfc_render$1M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7958
7863
|
_: 3
|
|
7959
7864
|
}, 8, ["id", "virtual-ref", "open", "virtual-triggering", "class", "onBlur", "onClick", "onContextmenu", "onFocus", "onMouseenter", "onMouseleave", "onKeydown"]);
|
|
7960
7865
|
}
|
|
7961
|
-
var ElTooltipTrigger = /* @__PURE__ */ _export_sfc(_sfc_main$1_, [["render", _sfc_render$
|
|
7866
|
+
var ElTooltipTrigger = /* @__PURE__ */ _export_sfc(_sfc_main$1_, [["render", _sfc_render$1H]]);
|
|
7962
7867
|
|
|
7963
7868
|
const { useModelToggleProps, useModelToggle, useModelToggleEmits } = createModelToggleComposable("visible");
|
|
7964
7869
|
const _sfc_main$1Z = defineComponent({
|
|
@@ -8049,7 +7954,7 @@ const _sfc_main$1Z = defineComponent({
|
|
|
8049
7954
|
});
|
|
8050
7955
|
const _hoisted_1$$ = ["innerHTML"];
|
|
8051
7956
|
const _hoisted_2$H = { key: 1 };
|
|
8052
|
-
function _sfc_render$
|
|
7957
|
+
function _sfc_render$1G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8053
7958
|
const _component_el_tooltip_trigger = resolveComponent("el-tooltip-trigger");
|
|
8054
7959
|
const _component_el_popper_arrow = resolveComponent("el-popper-arrow");
|
|
8055
7960
|
const _component_el_tooltip_content = resolveComponent("el-tooltip-content");
|
|
@@ -8111,112 +8016,113 @@ function _sfc_render$1L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8111
8016
|
_: 3
|
|
8112
8017
|
}, 512);
|
|
8113
8018
|
}
|
|
8114
|
-
var Tooltip = /* @__PURE__ */ _export_sfc(_sfc_main$1Z, [["render", _sfc_render$
|
|
8019
|
+
var Tooltip = /* @__PURE__ */ _export_sfc(_sfc_main$1Z, [["render", _sfc_render$1G]]);
|
|
8115
8020
|
|
|
8116
8021
|
const ElTooltip = withInstall(Tooltip);
|
|
8117
8022
|
|
|
8118
|
-
const
|
|
8119
|
-
|
|
8120
|
-
|
|
8121
|
-
|
|
8122
|
-
ElTooltip,
|
|
8123
|
-
ElInput,
|
|
8124
|
-
ElScrollbar,
|
|
8125
|
-
ElIcon,
|
|
8126
|
-
Loading: loading
|
|
8023
|
+
const autocompleteProps = buildProps({
|
|
8024
|
+
valueKey: {
|
|
8025
|
+
type: String,
|
|
8026
|
+
default: "value"
|
|
8127
8027
|
},
|
|
8128
|
-
|
|
8129
|
-
|
|
8028
|
+
modelValue: {
|
|
8029
|
+
type: [String, Number],
|
|
8030
|
+
default: ""
|
|
8130
8031
|
},
|
|
8131
|
-
|
|
8132
|
-
|
|
8133
|
-
|
|
8134
|
-
type: String,
|
|
8135
|
-
default: "value"
|
|
8136
|
-
},
|
|
8137
|
-
modelValue: {
|
|
8138
|
-
type: [String, Number],
|
|
8139
|
-
default: ""
|
|
8140
|
-
},
|
|
8141
|
-
debounce: {
|
|
8142
|
-
type: Number,
|
|
8143
|
-
default: 300
|
|
8144
|
-
},
|
|
8145
|
-
placement: {
|
|
8146
|
-
type: String,
|
|
8147
|
-
validator: (val) => {
|
|
8148
|
-
return [
|
|
8149
|
-
"top",
|
|
8150
|
-
"top-start",
|
|
8151
|
-
"top-end",
|
|
8152
|
-
"bottom",
|
|
8153
|
-
"bottom-start",
|
|
8154
|
-
"bottom-end"
|
|
8155
|
-
].includes(val);
|
|
8156
|
-
},
|
|
8157
|
-
default: "bottom-start"
|
|
8158
|
-
},
|
|
8159
|
-
fetchSuggestions: {
|
|
8160
|
-
type: Function,
|
|
8161
|
-
default: NOOP
|
|
8162
|
-
},
|
|
8163
|
-
popperClass: {
|
|
8164
|
-
type: String,
|
|
8165
|
-
default: ""
|
|
8166
|
-
},
|
|
8167
|
-
triggerOnFocus: {
|
|
8168
|
-
type: Boolean,
|
|
8169
|
-
default: true
|
|
8170
|
-
},
|
|
8171
|
-
selectWhenUnmatched: {
|
|
8172
|
-
type: Boolean,
|
|
8173
|
-
default: false
|
|
8174
|
-
},
|
|
8175
|
-
hideLoading: {
|
|
8176
|
-
type: Boolean,
|
|
8177
|
-
default: false
|
|
8178
|
-
},
|
|
8179
|
-
popperAppendToBody: {
|
|
8180
|
-
type: Boolean,
|
|
8181
|
-
default: void 0
|
|
8182
|
-
},
|
|
8183
|
-
teleported: useTooltipContentProps.teleported,
|
|
8184
|
-
highlightFirstItem: {
|
|
8185
|
-
type: Boolean,
|
|
8186
|
-
default: false
|
|
8187
|
-
}
|
|
8032
|
+
debounce: {
|
|
8033
|
+
type: Number,
|
|
8034
|
+
default: 300
|
|
8188
8035
|
},
|
|
8189
|
-
|
|
8190
|
-
|
|
8191
|
-
|
|
8192
|
-
|
|
8193
|
-
|
|
8194
|
-
|
|
8195
|
-
|
|
8196
|
-
|
|
8197
|
-
|
|
8198
|
-
|
|
8036
|
+
placement: {
|
|
8037
|
+
type: definePropType(String),
|
|
8038
|
+
values: [
|
|
8039
|
+
"top",
|
|
8040
|
+
"top-start",
|
|
8041
|
+
"top-end",
|
|
8042
|
+
"bottom",
|
|
8043
|
+
"bottom-start",
|
|
8044
|
+
"bottom-end"
|
|
8045
|
+
],
|
|
8046
|
+
default: "bottom-start"
|
|
8047
|
+
},
|
|
8048
|
+
fetchSuggestions: {
|
|
8049
|
+
type: definePropType(Function),
|
|
8050
|
+
default: NOOP
|
|
8051
|
+
},
|
|
8052
|
+
popperClass: {
|
|
8053
|
+
type: String,
|
|
8054
|
+
default: ""
|
|
8055
|
+
},
|
|
8056
|
+
triggerOnFocus: {
|
|
8057
|
+
type: Boolean,
|
|
8058
|
+
default: true
|
|
8059
|
+
},
|
|
8060
|
+
selectWhenUnmatched: {
|
|
8061
|
+
type: Boolean,
|
|
8062
|
+
default: false
|
|
8063
|
+
},
|
|
8064
|
+
hideLoading: {
|
|
8065
|
+
type: Boolean,
|
|
8066
|
+
default: false
|
|
8067
|
+
},
|
|
8068
|
+
popperAppendToBody: {
|
|
8069
|
+
type: Boolean,
|
|
8070
|
+
default: void 0
|
|
8071
|
+
},
|
|
8072
|
+
teleported: useTooltipContentProps.teleported,
|
|
8073
|
+
highlightFirstItem: {
|
|
8074
|
+
type: Boolean,
|
|
8075
|
+
default: false
|
|
8076
|
+
}
|
|
8077
|
+
});
|
|
8078
|
+
const autocompleteEmits = {
|
|
8079
|
+
[UPDATE_MODEL_EVENT]: (value) => isString(value),
|
|
8080
|
+
input: (value) => isString(value),
|
|
8081
|
+
change: (value) => isString(value),
|
|
8082
|
+
focus: (evt) => evt instanceof FocusEvent,
|
|
8083
|
+
blur: (evt) => evt instanceof FocusEvent,
|
|
8084
|
+
clear: () => true,
|
|
8085
|
+
select: (item) => isObject$1(item)
|
|
8086
|
+
};
|
|
8087
|
+
|
|
8088
|
+
const _hoisted_1$_ = ["aria-expanded", "aria-owns"];
|
|
8089
|
+
const _hoisted_2$G = { key: 0 };
|
|
8090
|
+
const _hoisted_3$q = ["id", "aria-selected", "onClick"];
|
|
8091
|
+
const __default__$d = {
|
|
8092
|
+
name: "ElAutocomplete",
|
|
8093
|
+
inheritAttrs: false
|
|
8094
|
+
};
|
|
8095
|
+
const _sfc_main$1Y = /* @__PURE__ */ defineComponent({
|
|
8096
|
+
...__default__$d,
|
|
8097
|
+
props: autocompleteProps,
|
|
8098
|
+
emits: autocompleteEmits,
|
|
8099
|
+
setup(__props, { expose, emit }) {
|
|
8100
|
+
const props = __props;
|
|
8101
|
+
const COMPONENT_NAME = "ElAutocomplete";
|
|
8199
8102
|
const ns = useNamespace("autocomplete");
|
|
8200
|
-
const { compatTeleported } = useDeprecateAppendToBody(COMPONENT_NAME
|
|
8103
|
+
const { compatTeleported } = useDeprecateAppendToBody(COMPONENT_NAME, "popperAppendToBody");
|
|
8201
8104
|
const attrs = useAttrs();
|
|
8105
|
+
const compAttrs = useAttrs$1();
|
|
8202
8106
|
const suggestions = ref([]);
|
|
8203
8107
|
const highlightedIndex = ref(-1);
|
|
8204
8108
|
const dropdownWidth = ref("");
|
|
8205
8109
|
const activated = ref(false);
|
|
8206
8110
|
const suggestionDisabled = ref(false);
|
|
8207
|
-
const loading = ref(false);
|
|
8208
|
-
const inputRef = ref(
|
|
8209
|
-
const regionRef = ref(
|
|
8210
|
-
const
|
|
8111
|
+
const loading$1 = ref(false);
|
|
8112
|
+
const inputRef = ref();
|
|
8113
|
+
const regionRef = ref();
|
|
8114
|
+
const popperRef = ref();
|
|
8115
|
+
const listboxRef = ref();
|
|
8211
8116
|
const id = computed(() => {
|
|
8212
8117
|
return ns.b(String(generateId()));
|
|
8213
8118
|
});
|
|
8119
|
+
const styles = computed(() => compAttrs.style);
|
|
8214
8120
|
const suggestionVisible = computed(() => {
|
|
8215
8121
|
const isValidData = isArray(suggestions.value) && suggestions.value.length > 0;
|
|
8216
|
-
return (isValidData || loading.value) && activated.value;
|
|
8122
|
+
return (isValidData || loading$1.value) && activated.value;
|
|
8217
8123
|
});
|
|
8218
8124
|
const suggestionLoading = computed(() => {
|
|
8219
|
-
return !props.hideLoading && loading.value;
|
|
8125
|
+
return !props.hideLoading && loading$1.value;
|
|
8220
8126
|
});
|
|
8221
8127
|
const onSuggestionShow = () => {
|
|
8222
8128
|
nextTick(() => {
|
|
@@ -8225,19 +8131,13 @@ const _sfc_main$1Y = defineComponent({
|
|
|
8225
8131
|
}
|
|
8226
8132
|
});
|
|
8227
8133
|
};
|
|
8228
|
-
onMounted(() => {
|
|
8229
|
-
inputRef.value.inputOrTextarea.setAttribute("role", "textbox");
|
|
8230
|
-
inputRef.value.inputOrTextarea.setAttribute("aria-autocomplete", "list");
|
|
8231
|
-
inputRef.value.inputOrTextarea.setAttribute("aria-controls", "id");
|
|
8232
|
-
inputRef.value.inputOrTextarea.setAttribute("aria-activedescendant", `${id.value}-item-${highlightedIndex.value}`);
|
|
8233
|
-
});
|
|
8234
8134
|
const getData = (queryString) => {
|
|
8235
8135
|
if (suggestionDisabled.value) {
|
|
8236
8136
|
return;
|
|
8237
8137
|
}
|
|
8238
|
-
loading.value = true;
|
|
8138
|
+
loading$1.value = true;
|
|
8239
8139
|
props.fetchSuggestions(queryString, (suggestionsArg) => {
|
|
8240
|
-
loading.value = false;
|
|
8140
|
+
loading$1.value = false;
|
|
8241
8141
|
if (suggestionDisabled.value) {
|
|
8242
8142
|
return;
|
|
8243
8143
|
}
|
|
@@ -8245,14 +8145,14 @@ const _sfc_main$1Y = defineComponent({
|
|
|
8245
8145
|
suggestions.value = suggestionsArg;
|
|
8246
8146
|
highlightedIndex.value = props.highlightFirstItem ? 0 : -1;
|
|
8247
8147
|
} else {
|
|
8248
|
-
throwError(
|
|
8148
|
+
throwError(COMPONENT_NAME, "autocomplete suggestions must be an array");
|
|
8249
8149
|
}
|
|
8250
8150
|
});
|
|
8251
8151
|
};
|
|
8252
8152
|
const debouncedGetData = debounce$1(getData, props.debounce);
|
|
8253
8153
|
const handleInput = (value) => {
|
|
8254
|
-
|
|
8255
|
-
|
|
8154
|
+
emit("input", value);
|
|
8155
|
+
emit(UPDATE_MODEL_EVENT, value);
|
|
8256
8156
|
suggestionDisabled.value = false;
|
|
8257
8157
|
if (!props.triggerOnFocus && !value) {
|
|
8258
8158
|
suggestionDisabled.value = true;
|
|
@@ -8262,28 +8162,28 @@ const _sfc_main$1Y = defineComponent({
|
|
|
8262
8162
|
debouncedGetData(value);
|
|
8263
8163
|
};
|
|
8264
8164
|
const handleChange = (value) => {
|
|
8265
|
-
|
|
8165
|
+
emit("change", value);
|
|
8266
8166
|
};
|
|
8267
|
-
const handleFocus = (
|
|
8167
|
+
const handleFocus = (evt) => {
|
|
8268
8168
|
activated.value = true;
|
|
8269
|
-
|
|
8169
|
+
emit("focus", evt);
|
|
8270
8170
|
if (props.triggerOnFocus) {
|
|
8271
8171
|
debouncedGetData(String(props.modelValue));
|
|
8272
8172
|
}
|
|
8273
8173
|
};
|
|
8274
|
-
const handleBlur = (
|
|
8275
|
-
|
|
8174
|
+
const handleBlur = (evt) => {
|
|
8175
|
+
emit("blur", evt);
|
|
8276
8176
|
};
|
|
8277
8177
|
const handleClear = () => {
|
|
8278
8178
|
activated.value = false;
|
|
8279
|
-
|
|
8280
|
-
|
|
8179
|
+
emit(UPDATE_MODEL_EVENT, "");
|
|
8180
|
+
emit("clear");
|
|
8281
8181
|
};
|
|
8282
8182
|
const handleKeyEnter = () => {
|
|
8283
8183
|
if (suggestionVisible.value && highlightedIndex.value >= 0 && highlightedIndex.value < suggestions.value.length) {
|
|
8284
|
-
|
|
8184
|
+
handleSelect(suggestions.value[highlightedIndex.value]);
|
|
8285
8185
|
} else if (props.selectWhenUnmatched) {
|
|
8286
|
-
|
|
8186
|
+
emit("select", { value: props.modelValue });
|
|
8287
8187
|
nextTick(() => {
|
|
8288
8188
|
suggestions.value = [];
|
|
8289
8189
|
highlightedIndex.value = -1;
|
|
@@ -8297,17 +8197,17 @@ const _sfc_main$1Y = defineComponent({
|
|
|
8297
8197
|
var _a;
|
|
8298
8198
|
(_a = inputRef.value) == null ? void 0 : _a.focus();
|
|
8299
8199
|
};
|
|
8300
|
-
const
|
|
8301
|
-
|
|
8302
|
-
|
|
8303
|
-
|
|
8200
|
+
const handleSelect = (item) => {
|
|
8201
|
+
emit("input", item[props.valueKey]);
|
|
8202
|
+
emit(UPDATE_MODEL_EVENT, item[props.valueKey]);
|
|
8203
|
+
emit("select", item);
|
|
8304
8204
|
nextTick(() => {
|
|
8305
8205
|
suggestions.value = [];
|
|
8306
8206
|
highlightedIndex.value = -1;
|
|
8307
8207
|
});
|
|
8308
8208
|
};
|
|
8309
8209
|
const highlight = (index) => {
|
|
8310
|
-
if (!suggestionVisible.value || loading.value) {
|
|
8210
|
+
if (!suggestionVisible.value || loading$1.value) {
|
|
8311
8211
|
return;
|
|
8312
8212
|
}
|
|
8313
8213
|
if (index < 0) {
|
|
@@ -8331,167 +8231,152 @@ const _sfc_main$1Y = defineComponent({
|
|
|
8331
8231
|
highlightedIndex.value = index;
|
|
8332
8232
|
inputRef.value.inputOrTextarea.setAttribute("aria-activedescendant", `${id.value}-item-${highlightedIndex.value}`);
|
|
8333
8233
|
};
|
|
8334
|
-
|
|
8335
|
-
|
|
8336
|
-
|
|
8234
|
+
onClickOutside(listboxRef, close);
|
|
8235
|
+
onMounted(() => {
|
|
8236
|
+
inputRef.value.inputOrTextarea.setAttribute("role", "textbox");
|
|
8237
|
+
inputRef.value.inputOrTextarea.setAttribute("aria-autocomplete", "list");
|
|
8238
|
+
inputRef.value.inputOrTextarea.setAttribute("aria-controls", "id");
|
|
8239
|
+
inputRef.value.inputOrTextarea.setAttribute("aria-activedescendant", `${id.value}-item-${highlightedIndex.value}`);
|
|
8240
|
+
});
|
|
8241
|
+
expose({
|
|
8337
8242
|
highlightedIndex,
|
|
8338
|
-
dropdownWidth,
|
|
8339
8243
|
activated,
|
|
8340
|
-
|
|
8341
|
-
loading,
|
|
8244
|
+
loading: loading$1,
|
|
8342
8245
|
inputRef,
|
|
8343
|
-
|
|
8344
|
-
|
|
8345
|
-
|
|
8346
|
-
suggestionVisible,
|
|
8347
|
-
suggestionLoading,
|
|
8348
|
-
compatTeleported,
|
|
8349
|
-
getData,
|
|
8350
|
-
handleInput,
|
|
8351
|
-
handleChange,
|
|
8352
|
-
handleFocus,
|
|
8353
|
-
handleBlur,
|
|
8354
|
-
handleClear,
|
|
8246
|
+
popperRef,
|
|
8247
|
+
suggestions,
|
|
8248
|
+
handleSelect,
|
|
8355
8249
|
handleKeyEnter,
|
|
8356
|
-
close,
|
|
8357
8250
|
focus,
|
|
8358
|
-
|
|
8359
|
-
highlight
|
|
8360
|
-
|
|
8361
|
-
|
|
8251
|
+
close,
|
|
8252
|
+
highlight
|
|
8253
|
+
});
|
|
8254
|
+
return (_ctx, _cache) => {
|
|
8255
|
+
return openBlock(), createBlock(unref(ElTooltip), {
|
|
8256
|
+
ref_key: "popperRef",
|
|
8257
|
+
ref: popperRef,
|
|
8258
|
+
visible: unref(suggestionVisible),
|
|
8259
|
+
"onUpdate:visible": _cache[2] || (_cache[2] = ($event) => isRef(suggestionVisible) ? suggestionVisible.value = $event : null),
|
|
8260
|
+
placement: _ctx.placement,
|
|
8261
|
+
"fallback-placements": ["bottom-start", "top-start"],
|
|
8262
|
+
"popper-class": [unref(ns).e("popper"), _ctx.popperClass],
|
|
8263
|
+
teleported: unref(compatTeleported),
|
|
8264
|
+
"gpu-acceleration": false,
|
|
8265
|
+
pure: "",
|
|
8266
|
+
"manual-mode": "",
|
|
8267
|
+
effect: "light",
|
|
8268
|
+
trigger: "click",
|
|
8269
|
+
transition: `${unref(ns).namespace.value}-zoom-in-top`,
|
|
8270
|
+
persistent: "",
|
|
8271
|
+
onShow: onSuggestionShow
|
|
8272
|
+
}, {
|
|
8273
|
+
content: withCtx(() => [
|
|
8274
|
+
createElementVNode("div", {
|
|
8275
|
+
ref_key: "regionRef",
|
|
8276
|
+
ref: regionRef,
|
|
8277
|
+
class: normalizeClass([unref(ns).b("suggestion"), unref(ns).is("loading", unref(suggestionLoading))]),
|
|
8278
|
+
style: normalizeStyle({ minWidth: dropdownWidth.value, outline: "none" }),
|
|
8279
|
+
role: "region"
|
|
8280
|
+
}, [
|
|
8281
|
+
createVNode(unref(ElScrollbar), {
|
|
8282
|
+
id: unref(id),
|
|
8283
|
+
tag: "ul",
|
|
8284
|
+
"wrap-class": unref(ns).be("suggestion", "wrap"),
|
|
8285
|
+
"view-class": unref(ns).be("suggestion", "list"),
|
|
8286
|
+
role: "listbox"
|
|
8287
|
+
}, {
|
|
8288
|
+
default: withCtx(() => [
|
|
8289
|
+
unref(suggestionLoading) ? (openBlock(), createElementBlock("li", _hoisted_2$G, [
|
|
8290
|
+
createVNode(unref(ElIcon), {
|
|
8291
|
+
class: normalizeClass(unref(ns).is("loading"))
|
|
8292
|
+
}, {
|
|
8293
|
+
default: withCtx(() => [
|
|
8294
|
+
createVNode(unref(loading))
|
|
8295
|
+
]),
|
|
8296
|
+
_: 1
|
|
8297
|
+
}, 8, ["class"])
|
|
8298
|
+
])) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(suggestions.value, (item, index) => {
|
|
8299
|
+
return openBlock(), createElementBlock("li", {
|
|
8300
|
+
id: `${unref(id)}-item-${index}`,
|
|
8301
|
+
key: index,
|
|
8302
|
+
class: normalizeClass({ highlighted: highlightedIndex.value === index }),
|
|
8303
|
+
role: "option",
|
|
8304
|
+
"aria-selected": highlightedIndex.value === index,
|
|
8305
|
+
onClick: ($event) => handleSelect(item)
|
|
8306
|
+
}, [
|
|
8307
|
+
renderSlot(_ctx.$slots, "default", { item }, () => [
|
|
8308
|
+
createTextVNode(toDisplayString(item[_ctx.valueKey]), 1)
|
|
8309
|
+
])
|
|
8310
|
+
], 10, _hoisted_3$q);
|
|
8311
|
+
}), 128))
|
|
8312
|
+
]),
|
|
8313
|
+
_: 3
|
|
8314
|
+
}, 8, ["id", "wrap-class", "view-class"])
|
|
8315
|
+
], 6)
|
|
8316
|
+
]),
|
|
8317
|
+
default: withCtx(() => [
|
|
8318
|
+
createElementVNode("div", {
|
|
8319
|
+
ref_key: "listboxRef",
|
|
8320
|
+
ref: listboxRef,
|
|
8321
|
+
class: normalizeClass([unref(ns).b(), _ctx.$attrs.class]),
|
|
8322
|
+
style: normalizeStyle(unref(styles)),
|
|
8323
|
+
role: "combobox",
|
|
8324
|
+
"aria-haspopup": "listbox",
|
|
8325
|
+
"aria-expanded": unref(suggestionVisible),
|
|
8326
|
+
"aria-owns": unref(id)
|
|
8327
|
+
}, [
|
|
8328
|
+
createVNode(unref(ElInput), mergeProps({
|
|
8329
|
+
ref_key: "inputRef",
|
|
8330
|
+
ref: inputRef
|
|
8331
|
+
}, unref(attrs), {
|
|
8332
|
+
"model-value": _ctx.modelValue,
|
|
8333
|
+
onInput: handleInput,
|
|
8334
|
+
onChange: handleChange,
|
|
8335
|
+
onFocus: handleFocus,
|
|
8336
|
+
onBlur: handleBlur,
|
|
8337
|
+
onClear: handleClear,
|
|
8338
|
+
onKeydown: [
|
|
8339
|
+
_cache[0] || (_cache[0] = withKeys(withModifiers(($event) => highlight(highlightedIndex.value - 1), ["prevent"]), ["up"])),
|
|
8340
|
+
_cache[1] || (_cache[1] = withKeys(withModifiers(($event) => highlight(highlightedIndex.value + 1), ["prevent"]), ["down"])),
|
|
8341
|
+
withKeys(handleKeyEnter, ["enter"]),
|
|
8342
|
+
withKeys(close, ["tab"])
|
|
8343
|
+
]
|
|
8344
|
+
}), createSlots({ _: 2 }, [
|
|
8345
|
+
_ctx.$slots.prepend ? {
|
|
8346
|
+
name: "prepend",
|
|
8347
|
+
fn: withCtx(() => [
|
|
8348
|
+
renderSlot(_ctx.$slots, "prepend")
|
|
8349
|
+
])
|
|
8350
|
+
} : void 0,
|
|
8351
|
+
_ctx.$slots.append ? {
|
|
8352
|
+
name: "append",
|
|
8353
|
+
fn: withCtx(() => [
|
|
8354
|
+
renderSlot(_ctx.$slots, "append")
|
|
8355
|
+
])
|
|
8356
|
+
} : void 0,
|
|
8357
|
+
_ctx.$slots.prefix ? {
|
|
8358
|
+
name: "prefix",
|
|
8359
|
+
fn: withCtx(() => [
|
|
8360
|
+
renderSlot(_ctx.$slots, "prefix")
|
|
8361
|
+
])
|
|
8362
|
+
} : void 0,
|
|
8363
|
+
_ctx.$slots.suffix ? {
|
|
8364
|
+
name: "suffix",
|
|
8365
|
+
fn: withCtx(() => [
|
|
8366
|
+
renderSlot(_ctx.$slots, "suffix")
|
|
8367
|
+
])
|
|
8368
|
+
} : void 0
|
|
8369
|
+
]), 1040, ["model-value", "onKeydown"])
|
|
8370
|
+
], 14, _hoisted_1$_)
|
|
8371
|
+
]),
|
|
8372
|
+
_: 3
|
|
8373
|
+
}, 8, ["visible", "placement", "popper-class", "teleported", "transition"]);
|
|
8362
8374
|
};
|
|
8363
8375
|
}
|
|
8364
8376
|
});
|
|
8365
|
-
|
|
8366
|
-
const _hoisted_2$G = { key: 0 };
|
|
8367
|
-
const _hoisted_3$q = ["id", "aria-selected", "onClick"];
|
|
8368
|
-
function _sfc_render$1K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8369
|
-
const _component_el_input = resolveComponent("el-input");
|
|
8370
|
-
const _component_loading = resolveComponent("loading");
|
|
8371
|
-
const _component_el_icon = resolveComponent("el-icon");
|
|
8372
|
-
const _component_el_scrollbar = resolveComponent("el-scrollbar");
|
|
8373
|
-
const _component_el_tooltip = resolveComponent("el-tooltip");
|
|
8374
|
-
const _directive_clickoutside = resolveDirective("clickoutside");
|
|
8375
|
-
return openBlock(), createBlock(_component_el_tooltip, {
|
|
8376
|
-
ref: "popper",
|
|
8377
|
-
visible: _ctx.suggestionVisible,
|
|
8378
|
-
"onUpdate:visible": _cache[2] || (_cache[2] = ($event) => _ctx.suggestionVisible = $event),
|
|
8379
|
-
placement: _ctx.placement,
|
|
8380
|
-
"fallback-placements": ["bottom-start", "top-start"],
|
|
8381
|
-
"popper-class": `${_ctx.ns.e("popper")} ${_ctx.popperClass}`,
|
|
8382
|
-
teleported: _ctx.compatTeleported,
|
|
8383
|
-
"gpu-acceleration": false,
|
|
8384
|
-
pure: "",
|
|
8385
|
-
"manual-mode": "",
|
|
8386
|
-
effect: "light",
|
|
8387
|
-
trigger: "click",
|
|
8388
|
-
transition: `${_ctx.ns.namespace.value}-zoom-in-top`,
|
|
8389
|
-
persistent: "",
|
|
8390
|
-
onShow: _ctx.onSuggestionShow
|
|
8391
|
-
}, {
|
|
8392
|
-
content: withCtx(() => [
|
|
8393
|
-
createElementVNode("div", {
|
|
8394
|
-
ref: "regionRef",
|
|
8395
|
-
class: normalizeClass([_ctx.ns.b("suggestion"), _ctx.ns.is("loading", _ctx.suggestionLoading)]),
|
|
8396
|
-
style: normalizeStyle({ minWidth: _ctx.dropdownWidth, outline: "none" }),
|
|
8397
|
-
role: "region"
|
|
8398
|
-
}, [
|
|
8399
|
-
createVNode(_component_el_scrollbar, {
|
|
8400
|
-
id: _ctx.id,
|
|
8401
|
-
tag: "ul",
|
|
8402
|
-
"wrap-class": _ctx.ns.be("suggestion", "wrap"),
|
|
8403
|
-
"view-class": _ctx.ns.be("suggestion", "list"),
|
|
8404
|
-
role: "listbox"
|
|
8405
|
-
}, {
|
|
8406
|
-
default: withCtx(() => [
|
|
8407
|
-
_ctx.suggestionLoading ? (openBlock(), createElementBlock("li", _hoisted_2$G, [
|
|
8408
|
-
createVNode(_component_el_icon, { class: "is-loading" }, {
|
|
8409
|
-
default: withCtx(() => [
|
|
8410
|
-
createVNode(_component_loading)
|
|
8411
|
-
]),
|
|
8412
|
-
_: 1
|
|
8413
|
-
})
|
|
8414
|
-
])) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.suggestions, (item, index) => {
|
|
8415
|
-
return openBlock(), createElementBlock("li", {
|
|
8416
|
-
id: `${_ctx.id}-item-${index}`,
|
|
8417
|
-
key: index,
|
|
8418
|
-
class: normalizeClass({ highlighted: _ctx.highlightedIndex === index }),
|
|
8419
|
-
role: "option",
|
|
8420
|
-
"aria-selected": _ctx.highlightedIndex === index,
|
|
8421
|
-
onClick: ($event) => _ctx.select(item)
|
|
8422
|
-
}, [
|
|
8423
|
-
renderSlot(_ctx.$slots, "default", { item }, () => [
|
|
8424
|
-
createTextVNode(toDisplayString(item[_ctx.valueKey]), 1)
|
|
8425
|
-
])
|
|
8426
|
-
], 10, _hoisted_3$q);
|
|
8427
|
-
}), 128))
|
|
8428
|
-
]),
|
|
8429
|
-
_: 3
|
|
8430
|
-
}, 8, ["id", "wrap-class", "view-class"])
|
|
8431
|
-
], 6)
|
|
8432
|
-
]),
|
|
8433
|
-
default: withCtx(() => [
|
|
8434
|
-
withDirectives((openBlock(), createElementBlock("div", {
|
|
8435
|
-
class: normalizeClass([_ctx.ns.b(), _ctx.$attrs.class]),
|
|
8436
|
-
style: normalizeStyle(_ctx.$attrs.style),
|
|
8437
|
-
role: "combobox",
|
|
8438
|
-
"aria-haspopup": "listbox",
|
|
8439
|
-
"aria-expanded": _ctx.suggestionVisible,
|
|
8440
|
-
"aria-owns": _ctx.id
|
|
8441
|
-
}, [
|
|
8442
|
-
createVNode(_component_el_input, mergeProps({ ref: "inputRef" }, _ctx.attrs, {
|
|
8443
|
-
"model-value": _ctx.modelValue,
|
|
8444
|
-
onInput: _ctx.handleInput,
|
|
8445
|
-
onChange: _ctx.handleChange,
|
|
8446
|
-
onFocus: _ctx.handleFocus,
|
|
8447
|
-
onBlur: _ctx.handleBlur,
|
|
8448
|
-
onClear: _ctx.handleClear,
|
|
8449
|
-
onKeydown: [
|
|
8450
|
-
_cache[0] || (_cache[0] = withKeys(withModifiers(($event) => _ctx.highlight(_ctx.highlightedIndex - 1), ["prevent"]), ["up"])),
|
|
8451
|
-
_cache[1] || (_cache[1] = withKeys(withModifiers(($event) => _ctx.highlight(_ctx.highlightedIndex + 1), ["prevent"]), ["down"])),
|
|
8452
|
-
withKeys(_ctx.handleKeyEnter, ["enter"]),
|
|
8453
|
-
withKeys(_ctx.close, ["tab"])
|
|
8454
|
-
]
|
|
8455
|
-
}), createSlots({ _: 2 }, [
|
|
8456
|
-
_ctx.$slots.prepend ? {
|
|
8457
|
-
name: "prepend",
|
|
8458
|
-
fn: withCtx(() => [
|
|
8459
|
-
renderSlot(_ctx.$slots, "prepend")
|
|
8460
|
-
])
|
|
8461
|
-
} : void 0,
|
|
8462
|
-
_ctx.$slots.append ? {
|
|
8463
|
-
name: "append",
|
|
8464
|
-
fn: withCtx(() => [
|
|
8465
|
-
renderSlot(_ctx.$slots, "append")
|
|
8466
|
-
])
|
|
8467
|
-
} : void 0,
|
|
8468
|
-
_ctx.$slots.prefix ? {
|
|
8469
|
-
name: "prefix",
|
|
8470
|
-
fn: withCtx(() => [
|
|
8471
|
-
renderSlot(_ctx.$slots, "prefix")
|
|
8472
|
-
])
|
|
8473
|
-
} : void 0,
|
|
8474
|
-
_ctx.$slots.suffix ? {
|
|
8475
|
-
name: "suffix",
|
|
8476
|
-
fn: withCtx(() => [
|
|
8477
|
-
renderSlot(_ctx.$slots, "suffix")
|
|
8478
|
-
])
|
|
8479
|
-
} : void 0
|
|
8480
|
-
]), 1040, ["model-value", "onInput", "onChange", "onFocus", "onBlur", "onClear", "onKeydown"])
|
|
8481
|
-
], 14, _hoisted_1$_)), [
|
|
8482
|
-
[_directive_clickoutside, _ctx.close]
|
|
8483
|
-
])
|
|
8484
|
-
]),
|
|
8485
|
-
_: 3
|
|
8486
|
-
}, 8, ["visible", "placement", "popper-class", "teleported", "transition", "onShow"]);
|
|
8487
|
-
}
|
|
8488
|
-
var Autocomplete = /* @__PURE__ */ _export_sfc(_sfc_main$1Y, [["render", _sfc_render$1K]]);
|
|
8377
|
+
var Autocomplete = _sfc_main$1Y;
|
|
8489
8378
|
|
|
8490
|
-
|
|
8491
|
-
app.component(Autocomplete.name, Autocomplete);
|
|
8492
|
-
};
|
|
8493
|
-
const _Autocomplete = Autocomplete;
|
|
8494
|
-
const ElAutocomplete = _Autocomplete;
|
|
8379
|
+
const ElAutocomplete = withInstall(Autocomplete);
|
|
8495
8380
|
|
|
8496
8381
|
const avatarProps = buildProps({
|
|
8497
8382
|
size: {
|
|
@@ -8524,11 +8409,11 @@ const avatarEmits = {
|
|
|
8524
8409
|
};
|
|
8525
8410
|
|
|
8526
8411
|
const _hoisted_1$Z = ["src", "alt", "srcset"];
|
|
8527
|
-
const __default__$
|
|
8412
|
+
const __default__$c = {
|
|
8528
8413
|
name: "ElAvatar"
|
|
8529
8414
|
};
|
|
8530
8415
|
const _sfc_main$1X = /* @__PURE__ */ defineComponent({
|
|
8531
|
-
...__default__$
|
|
8416
|
+
...__default__$c,
|
|
8532
8417
|
props: avatarProps,
|
|
8533
8418
|
emits: avatarEmits,
|
|
8534
8419
|
setup(__props, { emit }) {
|
|
@@ -8609,11 +8494,11 @@ const backtopEmits = {
|
|
|
8609
8494
|
};
|
|
8610
8495
|
|
|
8611
8496
|
const _hoisted_1$Y = ["onClick"];
|
|
8612
|
-
const __default__$
|
|
8497
|
+
const __default__$b = {
|
|
8613
8498
|
name: "ElBacktop"
|
|
8614
8499
|
};
|
|
8615
8500
|
const _sfc_main$1W = /* @__PURE__ */ defineComponent({
|
|
8616
|
-
...__default__$
|
|
8501
|
+
...__default__$b,
|
|
8617
8502
|
props: backtopProps,
|
|
8618
8503
|
emits: backtopEmits,
|
|
8619
8504
|
setup(__props, { emit }) {
|
|
@@ -8717,11 +8602,11 @@ const badgeProps = buildProps({
|
|
|
8717
8602
|
});
|
|
8718
8603
|
|
|
8719
8604
|
const _hoisted_1$X = ["textContent"];
|
|
8720
|
-
const __default__$
|
|
8605
|
+
const __default__$a = {
|
|
8721
8606
|
name: "ElBadge"
|
|
8722
8607
|
};
|
|
8723
8608
|
const _sfc_main$1V = /* @__PURE__ */ defineComponent({
|
|
8724
|
-
...__default__$
|
|
8609
|
+
...__default__$a,
|
|
8725
8610
|
props: badgeProps,
|
|
8726
8611
|
setup(__props, { expose }) {
|
|
8727
8612
|
const props = __props;
|
|
@@ -8798,7 +8683,7 @@ const _sfc_main$1U = defineComponent({
|
|
|
8798
8683
|
};
|
|
8799
8684
|
}
|
|
8800
8685
|
});
|
|
8801
|
-
function _sfc_render$
|
|
8686
|
+
function _sfc_render$1F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8802
8687
|
return openBlock(), createElementBlock("div", {
|
|
8803
8688
|
ref: "breadcrumb",
|
|
8804
8689
|
class: normalizeClass(_ctx.ns.b()),
|
|
@@ -8808,7 +8693,7 @@ function _sfc_render$1J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8808
8693
|
renderSlot(_ctx.$slots, "default")
|
|
8809
8694
|
], 2);
|
|
8810
8695
|
}
|
|
8811
|
-
var Breadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main$1U, [["render", _sfc_render$
|
|
8696
|
+
var Breadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main$1U, [["render", _sfc_render$1F]]);
|
|
8812
8697
|
|
|
8813
8698
|
const breadcrumbItemProps = buildProps({
|
|
8814
8699
|
to: {
|
|
@@ -8850,7 +8735,7 @@ const _sfc_main$1T = defineComponent({
|
|
|
8850
8735
|
};
|
|
8851
8736
|
}
|
|
8852
8737
|
});
|
|
8853
|
-
function _sfc_render$
|
|
8738
|
+
function _sfc_render$1E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8854
8739
|
const _component_el_icon = resolveComponent("el-icon");
|
|
8855
8740
|
return openBlock(), createElementBlock("span", {
|
|
8856
8741
|
class: normalizeClass(_ctx.ns.e("item"))
|
|
@@ -8877,7 +8762,7 @@ function _sfc_render$1I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8877
8762
|
}, toDisplayString(_ctx.separator), 3))
|
|
8878
8763
|
], 2);
|
|
8879
8764
|
}
|
|
8880
|
-
var BreadcrumbItem = /* @__PURE__ */ _export_sfc(_sfc_main$1T, [["render", _sfc_render$
|
|
8765
|
+
var BreadcrumbItem = /* @__PURE__ */ _export_sfc(_sfc_main$1T, [["render", _sfc_render$1E]]);
|
|
8881
8766
|
|
|
8882
8767
|
const ElBreadcrumb = withInstall(Breadcrumb, {
|
|
8883
8768
|
BreadcrumbItem
|
|
@@ -9805,11 +9690,11 @@ const buttonEmits = {
|
|
|
9805
9690
|
};
|
|
9806
9691
|
|
|
9807
9692
|
const _hoisted_1$W = ["disabled", "autofocus", "type"];
|
|
9808
|
-
const __default__$
|
|
9693
|
+
const __default__$9 = {
|
|
9809
9694
|
name: "ElButton"
|
|
9810
9695
|
};
|
|
9811
9696
|
const _sfc_main$1S = /* @__PURE__ */ defineComponent({
|
|
9812
|
-
...__default__$
|
|
9697
|
+
...__default__$9,
|
|
9813
9698
|
props: buttonProps,
|
|
9814
9699
|
emits: buttonEmits,
|
|
9815
9700
|
setup(__props, { expose, emit }) {
|
|
@@ -9834,7 +9719,7 @@ const _sfc_main$1S = /* @__PURE__ */ defineComponent({
|
|
|
9834
9719
|
const slot = defaultSlot[0];
|
|
9835
9720
|
if ((slot == null ? void 0 : slot.type) === Text) {
|
|
9836
9721
|
const text = slot.children;
|
|
9837
|
-
return /^\p{Unified_Ideograph}{2}$/u.test(text);
|
|
9722
|
+
return /^\p{Unified_Ideograph}{2}$/u.test(text.trim());
|
|
9838
9723
|
}
|
|
9839
9724
|
}
|
|
9840
9725
|
return false;
|
|
@@ -9941,11 +9826,11 @@ const buttonGroupProps = {
|
|
|
9941
9826
|
type: buttonProps.type
|
|
9942
9827
|
};
|
|
9943
9828
|
|
|
9944
|
-
const __default__$
|
|
9829
|
+
const __default__$8 = {
|
|
9945
9830
|
name: "ElButtonGroup"
|
|
9946
9831
|
};
|
|
9947
9832
|
const _sfc_main$1R = /* @__PURE__ */ defineComponent({
|
|
9948
|
-
...__default__$
|
|
9833
|
+
...__default__$8,
|
|
9949
9834
|
props: buttonGroupProps,
|
|
9950
9835
|
setup(__props) {
|
|
9951
9836
|
const props = __props;
|
|
@@ -10946,7 +10831,7 @@ const _sfc_main$1Q = defineComponent({
|
|
|
10946
10831
|
const _hoisted_1$V = ["id", "name", "placeholder", "value", "disabled", "readonly"];
|
|
10947
10832
|
const _hoisted_2$F = { class: "el-range-separator" };
|
|
10948
10833
|
const _hoisted_3$p = ["id", "name", "placeholder", "value", "disabled", "readonly"];
|
|
10949
|
-
function _sfc_render$
|
|
10834
|
+
function _sfc_render$1D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10950
10835
|
const _component_el_icon = resolveComponent("el-icon");
|
|
10951
10836
|
const _component_el_input = resolveComponent("el-input");
|
|
10952
10837
|
const _component_el_tooltip = resolveComponent("el-tooltip");
|
|
@@ -11108,7 +10993,191 @@ function _sfc_render$1H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11108
10993
|
_: 3
|
|
11109
10994
|
}, 16, ["visible", "popper-class", "popper-options", "onBeforeShow", "onShow", "onHide"]);
|
|
11110
10995
|
}
|
|
11111
|
-
var CommonPicker = /* @__PURE__ */ _export_sfc(_sfc_main$1Q, [["render", _sfc_render$
|
|
10996
|
+
var CommonPicker = /* @__PURE__ */ _export_sfc(_sfc_main$1Q, [["render", _sfc_render$1D]]);
|
|
10997
|
+
|
|
10998
|
+
const nodeList = /* @__PURE__ */ new Map();
|
|
10999
|
+
let startClick;
|
|
11000
|
+
if (isClient) {
|
|
11001
|
+
document.addEventListener("mousedown", (e) => startClick = e);
|
|
11002
|
+
document.addEventListener("mouseup", (e) => {
|
|
11003
|
+
for (const handlers of nodeList.values()) {
|
|
11004
|
+
for (const { documentHandler } of handlers) {
|
|
11005
|
+
documentHandler(e, startClick);
|
|
11006
|
+
}
|
|
11007
|
+
}
|
|
11008
|
+
});
|
|
11009
|
+
}
|
|
11010
|
+
function createDocumentHandler(el, binding) {
|
|
11011
|
+
let excludes = [];
|
|
11012
|
+
if (Array.isArray(binding.arg)) {
|
|
11013
|
+
excludes = binding.arg;
|
|
11014
|
+
} else if (isElement$1(binding.arg)) {
|
|
11015
|
+
excludes.push(binding.arg);
|
|
11016
|
+
}
|
|
11017
|
+
return function(mouseup, mousedown) {
|
|
11018
|
+
const popperRef = binding.instance.popperRef;
|
|
11019
|
+
const mouseUpTarget = mouseup.target;
|
|
11020
|
+
const mouseDownTarget = mousedown == null ? void 0 : mousedown.target;
|
|
11021
|
+
const isBound = !binding || !binding.instance;
|
|
11022
|
+
const isTargetExists = !mouseUpTarget || !mouseDownTarget;
|
|
11023
|
+
const isContainedByEl = el.contains(mouseUpTarget) || el.contains(mouseDownTarget);
|
|
11024
|
+
const isSelf = el === mouseUpTarget;
|
|
11025
|
+
const isTargetExcluded = excludes.length && excludes.some((item) => item == null ? void 0 : item.contains(mouseUpTarget)) || excludes.length && excludes.includes(mouseDownTarget);
|
|
11026
|
+
const isContainedByPopper = popperRef && (popperRef.contains(mouseUpTarget) || popperRef.contains(mouseDownTarget));
|
|
11027
|
+
if (isBound || isTargetExists || isContainedByEl || isSelf || isTargetExcluded || isContainedByPopper) {
|
|
11028
|
+
return;
|
|
11029
|
+
}
|
|
11030
|
+
binding.value(mouseup, mousedown);
|
|
11031
|
+
};
|
|
11032
|
+
}
|
|
11033
|
+
const ClickOutside = {
|
|
11034
|
+
beforeMount(el, binding) {
|
|
11035
|
+
if (!nodeList.has(el)) {
|
|
11036
|
+
nodeList.set(el, []);
|
|
11037
|
+
}
|
|
11038
|
+
nodeList.get(el).push({
|
|
11039
|
+
documentHandler: createDocumentHandler(el, binding),
|
|
11040
|
+
bindingFn: binding.value
|
|
11041
|
+
});
|
|
11042
|
+
},
|
|
11043
|
+
updated(el, binding) {
|
|
11044
|
+
if (!nodeList.has(el)) {
|
|
11045
|
+
nodeList.set(el, []);
|
|
11046
|
+
}
|
|
11047
|
+
const handlers = nodeList.get(el);
|
|
11048
|
+
const oldHandlerIndex = handlers.findIndex((item) => item.bindingFn === binding.oldValue);
|
|
11049
|
+
const newHandler = {
|
|
11050
|
+
documentHandler: createDocumentHandler(el, binding),
|
|
11051
|
+
bindingFn: binding.value
|
|
11052
|
+
};
|
|
11053
|
+
if (oldHandlerIndex >= 0) {
|
|
11054
|
+
handlers.splice(oldHandlerIndex, 1, newHandler);
|
|
11055
|
+
} else {
|
|
11056
|
+
handlers.push(newHandler);
|
|
11057
|
+
}
|
|
11058
|
+
},
|
|
11059
|
+
unmounted(el) {
|
|
11060
|
+
nodeList.delete(el);
|
|
11061
|
+
}
|
|
11062
|
+
};
|
|
11063
|
+
|
|
11064
|
+
var RepeatClick = {
|
|
11065
|
+
beforeMount(el, binding) {
|
|
11066
|
+
let interval = null;
|
|
11067
|
+
let startTime;
|
|
11068
|
+
const handler = () => binding.value && binding.value();
|
|
11069
|
+
const clear = () => {
|
|
11070
|
+
if (Date.now() - startTime < 100) {
|
|
11071
|
+
handler();
|
|
11072
|
+
}
|
|
11073
|
+
clearInterval(interval);
|
|
11074
|
+
interval = null;
|
|
11075
|
+
};
|
|
11076
|
+
on(el, "mousedown", (e) => {
|
|
11077
|
+
if (e.button !== 0)
|
|
11078
|
+
return;
|
|
11079
|
+
startTime = Date.now();
|
|
11080
|
+
once(document, "mouseup", clear);
|
|
11081
|
+
clearInterval(interval);
|
|
11082
|
+
interval = setInterval(handler, 100);
|
|
11083
|
+
});
|
|
11084
|
+
}
|
|
11085
|
+
};
|
|
11086
|
+
|
|
11087
|
+
const FOCUSABLE_CHILDREN = "_trap-focus-children";
|
|
11088
|
+
const FOCUS_STACK = [];
|
|
11089
|
+
const FOCUS_HANDLER = (e) => {
|
|
11090
|
+
if (FOCUS_STACK.length === 0)
|
|
11091
|
+
return;
|
|
11092
|
+
const focusableElement = FOCUS_STACK[FOCUS_STACK.length - 1][FOCUSABLE_CHILDREN];
|
|
11093
|
+
if (focusableElement.length > 0 && e.code === EVENT_CODE.tab) {
|
|
11094
|
+
if (focusableElement.length === 1) {
|
|
11095
|
+
e.preventDefault();
|
|
11096
|
+
if (document.activeElement !== focusableElement[0]) {
|
|
11097
|
+
focusableElement[0].focus();
|
|
11098
|
+
}
|
|
11099
|
+
return;
|
|
11100
|
+
}
|
|
11101
|
+
const goingBackward = e.shiftKey;
|
|
11102
|
+
const isFirst = e.target === focusableElement[0];
|
|
11103
|
+
const isLast = e.target === focusableElement[focusableElement.length - 1];
|
|
11104
|
+
if (isFirst && goingBackward) {
|
|
11105
|
+
e.preventDefault();
|
|
11106
|
+
focusableElement[focusableElement.length - 1].focus();
|
|
11107
|
+
}
|
|
11108
|
+
if (isLast && !goingBackward) {
|
|
11109
|
+
e.preventDefault();
|
|
11110
|
+
focusableElement[0].focus();
|
|
11111
|
+
}
|
|
11112
|
+
}
|
|
11113
|
+
};
|
|
11114
|
+
const TrapFocus = {
|
|
11115
|
+
beforeMount(el) {
|
|
11116
|
+
el[FOCUSABLE_CHILDREN] = obtainAllFocusableElements$1(el);
|
|
11117
|
+
FOCUS_STACK.push(el);
|
|
11118
|
+
if (FOCUS_STACK.length <= 1) {
|
|
11119
|
+
on(document, "keydown", FOCUS_HANDLER);
|
|
11120
|
+
}
|
|
11121
|
+
},
|
|
11122
|
+
updated(el) {
|
|
11123
|
+
nextTick(() => {
|
|
11124
|
+
el[FOCUSABLE_CHILDREN] = obtainAllFocusableElements$1(el);
|
|
11125
|
+
});
|
|
11126
|
+
},
|
|
11127
|
+
unmounted() {
|
|
11128
|
+
FOCUS_STACK.shift();
|
|
11129
|
+
if (FOCUS_STACK.length === 0) {
|
|
11130
|
+
off(document, "keydown", FOCUS_HANDLER);
|
|
11131
|
+
}
|
|
11132
|
+
}
|
|
11133
|
+
};
|
|
11134
|
+
|
|
11135
|
+
var h=!1,o,s,f,u,d,D,l,p,m,w,N,E,x,A,M;function a(){if(!h){h=!0;var e=navigator.userAgent,n=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),i=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(E=/\b(iPhone|iP[ao]d)/.exec(e),x=/\b(iP[ao]d)/.exec(e),w=/Android/i.exec(e),A=/FBAN\/\w+;/i.exec(e),M=/Mobile/i.exec(e),N=!!/Win64/.exec(e),n){o=n[1]?parseFloat(n[1]):n[5]?parseFloat(n[5]):NaN,o&&document&&document.documentMode&&(o=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);D=r?parseFloat(r[1])+4:o,s=n[2]?parseFloat(n[2]):NaN,f=n[3]?parseFloat(n[3]):NaN,u=n[4]?parseFloat(n[4]):NaN,u?(n=/(?:Chrome\/(\d+\.\d+))/.exec(e),d=n&&n[1]?parseFloat(n[1]):NaN):d=NaN;}else { o=s=f=d=u=NaN; }if(i){if(i[1]){var t=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);l=t?parseFloat(t[1].replace("_",".")):!0;}else { l=!1; }p=!!i[2],m=!!i[3];}else { l=p=m=!1; }}}var _={ie:function(){return a()||o},ieCompatibilityMode:function(){return a()||D>o},ie64:function(){return _.ie()&&N},firefox:function(){return a()||s},opera:function(){return a()||f},webkit:function(){return a()||u},safari:function(){return _.webkit()},chrome:function(){return a()||d},windows:function(){return a()||p},osx:function(){return a()||l},linux:function(){return a()||m},iphone:function(){return a()||E},mobile:function(){return a()||E||x||w||M},nativeApp:function(){return a()||A},android:function(){return a()||w},ipad:function(){return a()||x}},F=_;var c=!!(typeof window!="undefined"&&window.document&&window.document.createElement),I={canUseDOM:c,canUseWorkers:typeof Worker!="undefined",canUseEventListeners:c&&!!(window.addEventListener||window.attachEvent),canUseViewport:c&&!!window.screen,isInWorker:!c},v=I;var X;v.canUseDOM&&(X=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function S(e,n){if(!v.canUseDOM||n&&!("addEventListener"in document)){ return !1; }var i="on"+e,r=i in document;if(!r){var t=document.createElement("div");t.setAttribute(i,"return;"),r=typeof t[i]=="function";}return !r&&X&&e==="wheel"&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var b=S;var O=10,P=40,T=800;function U(e){var n=0,i=0,r=0,t=0;return "detail"in e&&(i=e.detail),"wheelDelta"in e&&(i=-e.wheelDelta/120),"wheelDeltaY"in e&&(i=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(n=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(n=i,i=0),r=n*O,t=i*O,"deltaY"in e&&(t=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||t)&&e.deltaMode&&(e.deltaMode==1?(r*=P,t*=P):(r*=T,t*=T)),r&&!n&&(n=r<1?-1:1),t&&!i&&(i=t<1?-1:1),{spinX:n,spinY:i,pixelX:r,pixelY:t}}U.getEventType=function(){return F.firefox()?"DOMMouseScroll":b("wheel")?"wheel":"mousewheel"};var W=U;/**
|
|
11136
|
+
* Checks if an event is supported in the current execution environment.
|
|
11137
|
+
*
|
|
11138
|
+
* NOTE: This will not work correctly for non-generic events such as `change`,
|
|
11139
|
+
* `reset`, `load`, `error`, and `select`.
|
|
11140
|
+
*
|
|
11141
|
+
* Borrows from Modernizr.
|
|
11142
|
+
*
|
|
11143
|
+
* @param {string} eventNameSuffix Event name, e.g. "click".
|
|
11144
|
+
* @param {?boolean} capture Check if the capture phase is supported.
|
|
11145
|
+
* @return {boolean} True if the event is supported.
|
|
11146
|
+
* @internal
|
|
11147
|
+
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
11148
|
+
*/
|
|
11149
|
+
|
|
11150
|
+
const mousewheel = function(element, callback) {
|
|
11151
|
+
if (element && element.addEventListener) {
|
|
11152
|
+
const fn = function(event) {
|
|
11153
|
+
const normalized = W(event);
|
|
11154
|
+
callback && callback.apply(this, [event, normalized]);
|
|
11155
|
+
};
|
|
11156
|
+
if (isFirefox()) {
|
|
11157
|
+
element.addEventListener("DOMMouseScroll", fn);
|
|
11158
|
+
} else {
|
|
11159
|
+
element.onmousewheel = fn;
|
|
11160
|
+
}
|
|
11161
|
+
}
|
|
11162
|
+
};
|
|
11163
|
+
const Mousewheel = {
|
|
11164
|
+
beforeMount(el, binding) {
|
|
11165
|
+
mousewheel(el, binding.value);
|
|
11166
|
+
}
|
|
11167
|
+
};
|
|
11168
|
+
|
|
11169
|
+
const Resize = {
|
|
11170
|
+
beforeMount(el, binding) {
|
|
11171
|
+
el._handleResize = () => {
|
|
11172
|
+
var _a;
|
|
11173
|
+
el && ((_a = binding.value) == null ? void 0 : _a.call(binding, el));
|
|
11174
|
+
};
|
|
11175
|
+
addResizeListener(el, el._handleResize);
|
|
11176
|
+
},
|
|
11177
|
+
beforeUnmount(el) {
|
|
11178
|
+
removeResizeListener(el, el._handleResize);
|
|
11179
|
+
}
|
|
11180
|
+
};
|
|
11112
11181
|
|
|
11113
11182
|
const makeList = (total, method, methodFunc) => {
|
|
11114
11183
|
const arr = [];
|
|
@@ -11433,7 +11502,7 @@ const _sfc_main$1P = defineComponent({
|
|
|
11433
11502
|
const _hoisted_1$U = ["onClick"];
|
|
11434
11503
|
const _hoisted_2$E = ["onMouseenter"];
|
|
11435
11504
|
const _hoisted_3$o = { class: "el-time-spinner__list" };
|
|
11436
|
-
function _sfc_render$
|
|
11505
|
+
function _sfc_render$1C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11437
11506
|
const _component_el_scrollbar = resolveComponent("el-scrollbar");
|
|
11438
11507
|
const _component_arrow_up = resolveComponent("arrow-up");
|
|
11439
11508
|
const _component_el_icon = resolveComponent("el-icon");
|
|
@@ -11518,7 +11587,7 @@ function _sfc_render$1G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11518
11587
|
}), 128)) : createCommentVNode("v-if", true)
|
|
11519
11588
|
], 2);
|
|
11520
11589
|
}
|
|
11521
|
-
var TimeSpinner = /* @__PURE__ */ _export_sfc(_sfc_main$1P, [["render", _sfc_render$
|
|
11590
|
+
var TimeSpinner = /* @__PURE__ */ _export_sfc(_sfc_main$1P, [["render", _sfc_render$1C]]);
|
|
11522
11591
|
|
|
11523
11592
|
const _sfc_main$1O = defineComponent({
|
|
11524
11593
|
components: {
|
|
@@ -11687,7 +11756,7 @@ const _hoisted_1$T = {
|
|
|
11687
11756
|
class: "el-time-panel"
|
|
11688
11757
|
};
|
|
11689
11758
|
const _hoisted_2$D = { class: "el-time-panel__footer" };
|
|
11690
|
-
function _sfc_render$
|
|
11759
|
+
function _sfc_render$1B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11691
11760
|
const _component_time_spinner = resolveComponent("time-spinner");
|
|
11692
11761
|
return openBlock(), createBlock(Transition, { name: _ctx.transitionName }, {
|
|
11693
11762
|
default: withCtx(() => [
|
|
@@ -11727,7 +11796,7 @@ function _sfc_render$1F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11727
11796
|
_: 1
|
|
11728
11797
|
}, 8, ["name"]);
|
|
11729
11798
|
}
|
|
11730
|
-
var TimePickPanel = /* @__PURE__ */ _export_sfc(_sfc_main$1O, [["render", _sfc_render$
|
|
11799
|
+
var TimePickPanel = /* @__PURE__ */ _export_sfc(_sfc_main$1O, [["render", _sfc_render$1B]]);
|
|
11731
11800
|
|
|
11732
11801
|
const makeSelectRange = (start, end) => {
|
|
11733
11802
|
const result = [];
|
|
@@ -11971,7 +12040,7 @@ const _hoisted_5$a = { class: "el-time-range-picker__cell" };
|
|
|
11971
12040
|
const _hoisted_6$7 = { class: "el-time-range-picker__header" };
|
|
11972
12041
|
const _hoisted_7$6 = { class: "el-time-panel__footer" };
|
|
11973
12042
|
const _hoisted_8$6 = ["disabled"];
|
|
11974
|
-
function _sfc_render$
|
|
12043
|
+
function _sfc_render$1A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11975
12044
|
const _component_time_spinner = resolveComponent("time-spinner");
|
|
11976
12045
|
return _ctx.actualVisible ? (openBlock(), createElementBlock("div", _hoisted_1$S, [
|
|
11977
12046
|
createElementVNode("div", _hoisted_2$C, [
|
|
@@ -12033,7 +12102,7 @@ function _sfc_render$1E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12033
12102
|
])
|
|
12034
12103
|
])) : createCommentVNode("v-if", true);
|
|
12035
12104
|
}
|
|
12036
|
-
var TimeRangePanel = /* @__PURE__ */ _export_sfc(_sfc_main$1N, [["render", _sfc_render$
|
|
12105
|
+
var TimeRangePanel = /* @__PURE__ */ _export_sfc(_sfc_main$1N, [["render", _sfc_render$1A]]);
|
|
12037
12106
|
|
|
12038
12107
|
dayjs.extend(customParseFormat);
|
|
12039
12108
|
var TimePicker = defineComponent({
|
|
@@ -12229,7 +12298,7 @@ const _sfc_main$1M = defineComponent({
|
|
|
12229
12298
|
});
|
|
12230
12299
|
const _hoisted_1$R = { key: 0 };
|
|
12231
12300
|
const _hoisted_2$B = ["onClick"];
|
|
12232
|
-
function _sfc_render$
|
|
12301
|
+
function _sfc_render$1z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12233
12302
|
return openBlock(), createElementBlock("table", {
|
|
12234
12303
|
class: normalizeClass([_ctx.nsTable.b(), _ctx.nsTable.is("range", _ctx.isInRange)]),
|
|
12235
12304
|
cellspacing: "0",
|
|
@@ -12271,7 +12340,7 @@ function _sfc_render$1D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12271
12340
|
])
|
|
12272
12341
|
], 2);
|
|
12273
12342
|
}
|
|
12274
|
-
var DateTable$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1M, [["render", _sfc_render$
|
|
12343
|
+
var DateTable$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1M, [["render", _sfc_render$1z]]);
|
|
12275
12344
|
|
|
12276
12345
|
const calendarProps = buildProps({
|
|
12277
12346
|
modelValue: {
|
|
@@ -12430,7 +12499,7 @@ const _sfc_main$1L = defineComponent({
|
|
|
12430
12499
|
};
|
|
12431
12500
|
}
|
|
12432
12501
|
});
|
|
12433
|
-
function _sfc_render$
|
|
12502
|
+
function _sfc_render$1y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12434
12503
|
const _component_el_button = resolveComponent("el-button");
|
|
12435
12504
|
const _component_el_button_group = resolveComponent("el-button-group");
|
|
12436
12505
|
const _component_date_table = resolveComponent("date-table");
|
|
@@ -12523,7 +12592,7 @@ function _sfc_render$1C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12523
12592
|
], 2))
|
|
12524
12593
|
], 2);
|
|
12525
12594
|
}
|
|
12526
|
-
var Calendar = /* @__PURE__ */ _export_sfc(_sfc_main$1L, [["render", _sfc_render$
|
|
12595
|
+
var Calendar = /* @__PURE__ */ _export_sfc(_sfc_main$1L, [["render", _sfc_render$1y]]);
|
|
12527
12596
|
|
|
12528
12597
|
const ElCalendar = withInstall(Calendar);
|
|
12529
12598
|
|
|
@@ -12542,11 +12611,11 @@ const cardProps = buildProps({
|
|
|
12542
12611
|
}
|
|
12543
12612
|
});
|
|
12544
12613
|
|
|
12545
|
-
const __default__$
|
|
12614
|
+
const __default__$7 = {
|
|
12546
12615
|
name: "ElCard"
|
|
12547
12616
|
};
|
|
12548
12617
|
const _sfc_main$1K = /* @__PURE__ */ defineComponent({
|
|
12549
|
-
...__default__$
|
|
12618
|
+
...__default__$7,
|
|
12550
12619
|
props: cardProps,
|
|
12551
12620
|
setup(__props) {
|
|
12552
12621
|
const ns = useNamespace("card");
|
|
@@ -12833,7 +12902,7 @@ const _sfc_main$1J = defineComponent({
|
|
|
12833
12902
|
});
|
|
12834
12903
|
const _hoisted_1$Q = ["onMouseenter", "onClick"];
|
|
12835
12904
|
const _hoisted_2$A = { key: 0 };
|
|
12836
|
-
function _sfc_render$
|
|
12905
|
+
function _sfc_render$1x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12837
12906
|
const _component_arrow_left = resolveComponent("arrow-left");
|
|
12838
12907
|
const _component_el_icon = resolveComponent("el-icon");
|
|
12839
12908
|
const _component_arrow_right = resolveComponent("arrow-right");
|
|
@@ -12928,7 +12997,7 @@ function _sfc_render$1B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12928
12997
|
], 2)) : createCommentVNode("v-if", true)
|
|
12929
12998
|
], 34);
|
|
12930
12999
|
}
|
|
12931
|
-
var Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$1J, [["render", _sfc_render$
|
|
13000
|
+
var Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$1J, [["render", _sfc_render$1x]]);
|
|
12932
13001
|
|
|
12933
13002
|
const CARD_SCALE = 0.83;
|
|
12934
13003
|
const _sfc_main$1I = defineComponent({
|
|
@@ -13045,7 +13114,7 @@ const _sfc_main$1I = defineComponent({
|
|
|
13045
13114
|
};
|
|
13046
13115
|
}
|
|
13047
13116
|
});
|
|
13048
|
-
function _sfc_render$
|
|
13117
|
+
function _sfc_render$1w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
13049
13118
|
return withDirectives((openBlock(), createElementBlock("div", {
|
|
13050
13119
|
class: normalizeClass([
|
|
13051
13120
|
_ctx.ns.e("item"),
|
|
@@ -13069,7 +13138,7 @@ function _sfc_render$1A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13069
13138
|
[vShow, _ctx.data.ready]
|
|
13070
13139
|
]);
|
|
13071
13140
|
}
|
|
13072
|
-
var CarouselItem = /* @__PURE__ */ _export_sfc(_sfc_main$1I, [["render", _sfc_render$
|
|
13141
|
+
var CarouselItem = /* @__PURE__ */ _export_sfc(_sfc_main$1I, [["render", _sfc_render$1w]]);
|
|
13073
13142
|
|
|
13074
13143
|
const ElCarousel = withInstall(Carousel, {
|
|
13075
13144
|
CarouselItem
|
|
@@ -13293,7 +13362,7 @@ const _hoisted_1$P = ["id", "aria-controls"];
|
|
|
13293
13362
|
const _hoisted_2$z = ["tabindex", "role", "aria-checked"];
|
|
13294
13363
|
const _hoisted_3$m = ["aria-hidden", "name", "tabindex", "disabled", "true-value", "false-value"];
|
|
13295
13364
|
const _hoisted_4$e = ["aria-hidden", "disabled", "value", "name", "tabindex"];
|
|
13296
|
-
function _sfc_render$
|
|
13365
|
+
function _sfc_render$1v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
13297
13366
|
return openBlock(), createElementBlock("label", {
|
|
13298
13367
|
id: _ctx.id,
|
|
13299
13368
|
class: normalizeClass([
|
|
@@ -13364,7 +13433,7 @@ function _sfc_render$1z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13364
13433
|
], 2)) : createCommentVNode("v-if", true)
|
|
13365
13434
|
], 10, _hoisted_1$P);
|
|
13366
13435
|
}
|
|
13367
|
-
var Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$1H, [["render", _sfc_render$
|
|
13436
|
+
var Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$1H, [["render", _sfc_render$1v]]);
|
|
13368
13437
|
|
|
13369
13438
|
const _sfc_main$1G = defineComponent({
|
|
13370
13439
|
name: "ElCheckboxButton",
|
|
@@ -13399,7 +13468,7 @@ const _sfc_main$1G = defineComponent({
|
|
|
13399
13468
|
const _hoisted_1$O = ["aria-checked", "aria-disabled"];
|
|
13400
13469
|
const _hoisted_2$y = ["name", "tabindex", "disabled", "true-value", "false-value"];
|
|
13401
13470
|
const _hoisted_3$l = ["name", "tabindex", "disabled", "value"];
|
|
13402
|
-
function _sfc_render$
|
|
13471
|
+
function _sfc_render$1u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
13403
13472
|
return openBlock(), createElementBlock("label", {
|
|
13404
13473
|
class: normalizeClass([
|
|
13405
13474
|
_ctx.ns.b("button"),
|
|
@@ -13453,7 +13522,7 @@ function _sfc_render$1y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13453
13522
|
], 6)) : createCommentVNode("v-if", true)
|
|
13454
13523
|
], 10, _hoisted_1$O);
|
|
13455
13524
|
}
|
|
13456
|
-
var CheckboxButton = /* @__PURE__ */ _export_sfc(_sfc_main$1G, [["render", _sfc_render$
|
|
13525
|
+
var CheckboxButton = /* @__PURE__ */ _export_sfc(_sfc_main$1G, [["render", _sfc_render$1u]]);
|
|
13457
13526
|
|
|
13458
13527
|
const _sfc_main$1F = defineComponent({
|
|
13459
13528
|
name: "ElCheckboxGroup",
|
|
@@ -13620,7 +13689,7 @@ const _sfc_main$1E = defineComponent({
|
|
|
13620
13689
|
});
|
|
13621
13690
|
const _hoisted_1$N = ["aria-checked", "aria-disabled", "tabindex"];
|
|
13622
13691
|
const _hoisted_2$x = ["value", "name", "disabled"];
|
|
13623
|
-
function _sfc_render$
|
|
13692
|
+
function _sfc_render$1t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
13624
13693
|
return openBlock(), createElementBlock("label", {
|
|
13625
13694
|
class: normalizeClass([
|
|
13626
13695
|
_ctx.ns.b(),
|
|
@@ -13674,7 +13743,7 @@ function _sfc_render$1x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13674
13743
|
], 34)
|
|
13675
13744
|
], 42, _hoisted_1$N);
|
|
13676
13745
|
}
|
|
13677
|
-
var Radio = /* @__PURE__ */ _export_sfc(_sfc_main$1E, [["render", _sfc_render$
|
|
13746
|
+
var Radio = /* @__PURE__ */ _export_sfc(_sfc_main$1E, [["render", _sfc_render$1t]]);
|
|
13678
13747
|
|
|
13679
13748
|
const radioButtonProps = buildProps({
|
|
13680
13749
|
...radioPropsBase,
|
|
@@ -13722,7 +13791,7 @@ const _sfc_main$1D = defineComponent({
|
|
|
13722
13791
|
});
|
|
13723
13792
|
const _hoisted_1$M = ["aria-checked", "aria-disabled", "tabindex"];
|
|
13724
13793
|
const _hoisted_2$w = ["value", "name", "disabled"];
|
|
13725
|
-
function _sfc_render$
|
|
13794
|
+
function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
13726
13795
|
return openBlock(), createElementBlock("label", {
|
|
13727
13796
|
class: normalizeClass([
|
|
13728
13797
|
_ctx.ns.b("button"),
|
|
@@ -13763,7 +13832,7 @@ function _sfc_render$1w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13763
13832
|
], 38)
|
|
13764
13833
|
], 42, _hoisted_1$M);
|
|
13765
13834
|
}
|
|
13766
|
-
var RadioButton = /* @__PURE__ */ _export_sfc(_sfc_main$1D, [["render", _sfc_render$
|
|
13835
|
+
var RadioButton = /* @__PURE__ */ _export_sfc(_sfc_main$1D, [["render", _sfc_render$1s]]);
|
|
13767
13836
|
|
|
13768
13837
|
const radioGroupProps = buildProps({
|
|
13769
13838
|
size: useSizeProp,
|
|
@@ -13843,7 +13912,7 @@ const _sfc_main$1C = defineComponent({
|
|
|
13843
13912
|
};
|
|
13844
13913
|
}
|
|
13845
13914
|
});
|
|
13846
|
-
function _sfc_render$
|
|
13915
|
+
function _sfc_render$1r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
13847
13916
|
return openBlock(), createElementBlock("div", {
|
|
13848
13917
|
ref: "radioGroupRef",
|
|
13849
13918
|
class: normalizeClass(_ctx.ns.b("group")),
|
|
@@ -13853,7 +13922,7 @@ function _sfc_render$1v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13853
13922
|
renderSlot(_ctx.$slots, "default")
|
|
13854
13923
|
], 34);
|
|
13855
13924
|
}
|
|
13856
|
-
var RadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$1C, [["render", _sfc_render$
|
|
13925
|
+
var RadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$1C, [["render", _sfc_render$1r]]);
|
|
13857
13926
|
|
|
13858
13927
|
const ElRadio = withInstall(Radio, {
|
|
13859
13928
|
RadioButton,
|
|
@@ -13994,7 +14063,7 @@ const _sfc_main$1B = defineComponent({
|
|
|
13994
14063
|
});
|
|
13995
14064
|
const _hoisted_1$L = ["id", "aria-haspopup", "aria-owns", "aria-expanded", "tabindex"];
|
|
13996
14065
|
const _hoisted_2$v = /* @__PURE__ */ createElementVNode("span", null, null, -1);
|
|
13997
|
-
function _sfc_render$
|
|
14066
|
+
function _sfc_render$1q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
13998
14067
|
const _component_el_checkbox = resolveComponent("el-checkbox");
|
|
13999
14068
|
const _component_el_radio = resolveComponent("el-radio");
|
|
14000
14069
|
const _component_check = resolveComponent("check");
|
|
@@ -14077,7 +14146,7 @@ function _sfc_render$1u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
14077
14146
|
], 2112)) : createCommentVNode("v-if", true)
|
|
14078
14147
|
], 42, _hoisted_1$L);
|
|
14079
14148
|
}
|
|
14080
|
-
var ElCascaderNode = /* @__PURE__ */ _export_sfc(_sfc_main$1B, [["render", _sfc_render$
|
|
14149
|
+
var ElCascaderNode = /* @__PURE__ */ _export_sfc(_sfc_main$1B, [["render", _sfc_render$1q]]);
|
|
14081
14150
|
|
|
14082
14151
|
const _sfc_main$1A = defineComponent({
|
|
14083
14152
|
name: "ElCascaderMenu",
|
|
@@ -14168,7 +14237,7 @@ const _hoisted_3$k = {
|
|
|
14168
14237
|
ref: "hoverZone",
|
|
14169
14238
|
class: "el-cascader-menu__hover-zone"
|
|
14170
14239
|
};
|
|
14171
|
-
function _sfc_render$
|
|
14240
|
+
function _sfc_render$1p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
14172
14241
|
const _component_el_cascader_node = resolveComponent("el-cascader-node");
|
|
14173
14242
|
const _component_loading = resolveComponent("loading");
|
|
14174
14243
|
const _component_el_icon = resolveComponent("el-icon");
|
|
@@ -14211,7 +14280,7 @@ function _sfc_render$1t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
14211
14280
|
_: 1
|
|
14212
14281
|
}, 8, ["view-class", "onMousemove", "onMouseleave"]);
|
|
14213
14282
|
}
|
|
14214
|
-
var ElCascaderMenu = /* @__PURE__ */ _export_sfc(_sfc_main$1A, [["render", _sfc_render$
|
|
14283
|
+
var ElCascaderMenu = /* @__PURE__ */ _export_sfc(_sfc_main$1A, [["render", _sfc_render$1p]]);
|
|
14215
14284
|
|
|
14216
14285
|
var ExpandTrigger = /* @__PURE__ */ ((ExpandTrigger2) => {
|
|
14217
14286
|
ExpandTrigger2["CLICK"] = "click";
|
|
@@ -14688,7 +14757,7 @@ const _sfc_main$1z = defineComponent({
|
|
|
14688
14757
|
};
|
|
14689
14758
|
}
|
|
14690
14759
|
});
|
|
14691
|
-
function _sfc_render$
|
|
14760
|
+
function _sfc_render$1o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
14692
14761
|
const _component_el_cascader_menu = resolveComponent("el-cascader-menu");
|
|
14693
14762
|
return openBlock(), createElementBlock("div", {
|
|
14694
14763
|
class: normalizeClass(["el-cascader-panel", _ctx.border && "is-bordered"]),
|
|
@@ -14705,7 +14774,7 @@ function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
14705
14774
|
}), 128))
|
|
14706
14775
|
], 34);
|
|
14707
14776
|
}
|
|
14708
|
-
var CascaderPanel = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["render", _sfc_render$
|
|
14777
|
+
var CascaderPanel = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["render", _sfc_render$1o]]);
|
|
14709
14778
|
|
|
14710
14779
|
CascaderPanel.install = (app) => {
|
|
14711
14780
|
app.component(CascaderPanel.name, CascaderPanel);
|
|
@@ -14741,11 +14810,11 @@ const tagEmits = {
|
|
|
14741
14810
|
click: (evt) => evt instanceof MouseEvent
|
|
14742
14811
|
};
|
|
14743
14812
|
|
|
14744
|
-
const __default__$
|
|
14813
|
+
const __default__$6 = {
|
|
14745
14814
|
name: "ElTag"
|
|
14746
14815
|
};
|
|
14747
14816
|
const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
14748
|
-
...__default__$
|
|
14817
|
+
...__default__$6,
|
|
14749
14818
|
props: tagProps,
|
|
14750
14819
|
emits: tagEmits,
|
|
14751
14820
|
setup(__props, { emit }) {
|
|
@@ -15262,7 +15331,7 @@ const _hoisted_1$J = {
|
|
|
15262
15331
|
const _hoisted_2$t = ["placeholder"];
|
|
15263
15332
|
const _hoisted_3$j = ["onClick"];
|
|
15264
15333
|
const _hoisted_4$d = { class: "el-cascader__empty-text" };
|
|
15265
|
-
function _sfc_render$
|
|
15334
|
+
function _sfc_render$1n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
15266
15335
|
const _component_circle_close = resolveComponent("circle-close");
|
|
15267
15336
|
const _component_el_icon = resolveComponent("el-icon");
|
|
15268
15337
|
const _component_arrow_down = resolveComponent("arrow-down");
|
|
@@ -15445,7 +15514,7 @@ function _sfc_render$1r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
15445
15514
|
_: 3
|
|
15446
15515
|
}, 8, ["visible", "teleported", "popper-class", "popper-options", "onHide"]);
|
|
15447
15516
|
}
|
|
15448
|
-
var Cascader = /* @__PURE__ */ _export_sfc(_sfc_main$1x, [["render", _sfc_render$
|
|
15517
|
+
var Cascader = /* @__PURE__ */ _export_sfc(_sfc_main$1x, [["render", _sfc_render$1n]]);
|
|
15449
15518
|
|
|
15450
15519
|
Cascader.install = (app) => {
|
|
15451
15520
|
app.component(Cascader.name, Cascader);
|
|
@@ -15464,32 +15533,32 @@ const checkTagEmits = {
|
|
|
15464
15533
|
change: (value) => isBoolean(value)
|
|
15465
15534
|
};
|
|
15466
15535
|
|
|
15467
|
-
const
|
|
15468
|
-
name: "ElCheckTag"
|
|
15536
|
+
const __default__$5 = {
|
|
15537
|
+
name: "ElCheckTag"
|
|
15538
|
+
};
|
|
15539
|
+
const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
15540
|
+
...__default__$5,
|
|
15469
15541
|
props: checkTagProps,
|
|
15470
15542
|
emits: checkTagEmits,
|
|
15471
|
-
setup(
|
|
15543
|
+
setup(__props, { emit }) {
|
|
15544
|
+
const props = __props;
|
|
15472
15545
|
const ns = useNamespace("check-tag");
|
|
15473
|
-
const
|
|
15546
|
+
const handleChange = () => {
|
|
15474
15547
|
const checked = !props.checked;
|
|
15475
15548
|
emit("change", checked);
|
|
15476
15549
|
emit("update:checked", checked);
|
|
15477
15550
|
};
|
|
15478
|
-
return {
|
|
15479
|
-
|
|
15480
|
-
|
|
15551
|
+
return (_ctx, _cache) => {
|
|
15552
|
+
return openBlock(), createElementBlock("span", {
|
|
15553
|
+
class: normalizeClass([unref(ns).b(), unref(ns).is("checked", _ctx.checked)]),
|
|
15554
|
+
onClick: handleChange
|
|
15555
|
+
}, [
|
|
15556
|
+
renderSlot(_ctx.$slots, "default")
|
|
15557
|
+
], 2);
|
|
15481
15558
|
};
|
|
15482
15559
|
}
|
|
15483
15560
|
});
|
|
15484
|
-
|
|
15485
|
-
return openBlock(), createElementBlock("span", {
|
|
15486
|
-
class: normalizeClass([_ctx.ns.b(), _ctx.ns.is("checked", _ctx.checked)]),
|
|
15487
|
-
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onChange && _ctx.onChange(...args))
|
|
15488
|
-
}, [
|
|
15489
|
-
renderSlot(_ctx.$slots, "default")
|
|
15490
|
-
], 2);
|
|
15491
|
-
}
|
|
15492
|
-
var CheckTag = /* @__PURE__ */ _export_sfc(_sfc_main$1w, [["render", _sfc_render$1q]]);
|
|
15561
|
+
var CheckTag = _sfc_main$1w;
|
|
15493
15562
|
|
|
15494
15563
|
const ElCheckTag = withInstall(CheckTag);
|
|
15495
15564
|
|
|
@@ -15538,8 +15607,16 @@ const colProps = buildProps({
|
|
|
15538
15607
|
var Col = defineComponent({
|
|
15539
15608
|
name: "ElCol",
|
|
15540
15609
|
props: colProps,
|
|
15541
|
-
setup(props, {
|
|
15542
|
-
|
|
15610
|
+
setup(props, {
|
|
15611
|
+
slots
|
|
15612
|
+
}) {
|
|
15613
|
+
const {
|
|
15614
|
+
gutter
|
|
15615
|
+
} = inject("ElRow", {
|
|
15616
|
+
gutter: {
|
|
15617
|
+
value: 0
|
|
15618
|
+
}
|
|
15619
|
+
});
|
|
15543
15620
|
const ns = useNamespace("col");
|
|
15544
15621
|
const style = computed(() => {
|
|
15545
15622
|
if (gutter.value) {
|
|
@@ -15550,67 +15627,80 @@ var Col = defineComponent({
|
|
|
15550
15627
|
}
|
|
15551
15628
|
return {};
|
|
15552
15629
|
});
|
|
15553
|
-
const
|
|
15554
|
-
const
|
|
15630
|
+
const classes = computed(() => {
|
|
15631
|
+
const classes2 = [];
|
|
15555
15632
|
const pos = ["span", "offset", "pull", "push"];
|
|
15556
15633
|
pos.forEach((prop) => {
|
|
15557
15634
|
const size = props[prop];
|
|
15558
15635
|
if (typeof size === "number") {
|
|
15559
15636
|
if (prop === "span")
|
|
15560
|
-
|
|
15637
|
+
classes2.push(ns.b(`${props[prop]}`));
|
|
15561
15638
|
else if (size > 0)
|
|
15562
|
-
|
|
15639
|
+
classes2.push(ns.b(`${prop}-${props[prop]}`));
|
|
15563
15640
|
}
|
|
15564
15641
|
});
|
|
15565
15642
|
const sizes = ["xs", "sm", "md", "lg", "xl"];
|
|
15566
15643
|
sizes.forEach((size) => {
|
|
15567
15644
|
if (typeof props[size] === "number") {
|
|
15568
|
-
|
|
15645
|
+
classes2.push(ns.b(`${size}-${props[size]}`));
|
|
15569
15646
|
} else if (typeof props[size] === "object") {
|
|
15570
15647
|
const sizeProps = props[size];
|
|
15571
15648
|
Object.keys(sizeProps).forEach((prop) => {
|
|
15572
|
-
|
|
15649
|
+
classes2.push(prop !== "span" ? ns.b(`${size}-${prop}-${sizeProps[prop]}`) : ns.b(`${size}-${sizeProps[prop]}`));
|
|
15573
15650
|
});
|
|
15574
15651
|
}
|
|
15575
15652
|
});
|
|
15576
15653
|
if (gutter.value) {
|
|
15577
|
-
|
|
15654
|
+
classes2.push(ns.is("guttered"));
|
|
15578
15655
|
}
|
|
15579
|
-
return
|
|
15656
|
+
return classes2;
|
|
15580
15657
|
});
|
|
15581
|
-
return () =>
|
|
15582
|
-
class: [ns.b(),
|
|
15583
|
-
style: style.value
|
|
15584
|
-
},
|
|
15658
|
+
return () => createVNode(props.tag, {
|
|
15659
|
+
"class": [ns.b(), classes.value],
|
|
15660
|
+
"style": style.value
|
|
15661
|
+
}, slots);
|
|
15585
15662
|
}
|
|
15586
15663
|
});
|
|
15587
15664
|
|
|
15588
15665
|
const ElCol = withInstall(Col);
|
|
15589
15666
|
|
|
15590
|
-
const
|
|
15591
|
-
|
|
15592
|
-
|
|
15593
|
-
|
|
15594
|
-
|
|
15595
|
-
|
|
15596
|
-
|
|
15597
|
-
|
|
15598
|
-
|
|
15599
|
-
|
|
15600
|
-
|
|
15667
|
+
const emitChangeFn = (value) => typeof isNumber(value);
|
|
15668
|
+
const collapseProps = buildProps({
|
|
15669
|
+
accordion: Boolean,
|
|
15670
|
+
modelValue: {
|
|
15671
|
+
type: definePropType([Array, String, Number]),
|
|
15672
|
+
default: () => mutable([])
|
|
15673
|
+
}
|
|
15674
|
+
});
|
|
15675
|
+
const collapseEmits = {
|
|
15676
|
+
[UPDATE_MODEL_EVENT]: emitChangeFn,
|
|
15677
|
+
[CHANGE_EVENT]: emitChangeFn
|
|
15678
|
+
};
|
|
15679
|
+
|
|
15680
|
+
const __default__$4 = {
|
|
15681
|
+
name: "ElCollapse"
|
|
15682
|
+
};
|
|
15683
|
+
const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
15684
|
+
...__default__$4,
|
|
15685
|
+
props: collapseProps,
|
|
15686
|
+
emits: collapseEmits,
|
|
15687
|
+
setup(__props, { expose, emit }) {
|
|
15688
|
+
const props = __props;
|
|
15601
15689
|
const ns = useNamespace("collapse");
|
|
15602
|
-
const activeNames = ref(
|
|
15690
|
+
const activeNames = ref(castArray$1(props.modelValue));
|
|
15603
15691
|
const setActiveNames = (_activeNames) => {
|
|
15604
|
-
activeNames.value =
|
|
15692
|
+
activeNames.value = _activeNames;
|
|
15605
15693
|
const value = props.accordion ? activeNames.value[0] : activeNames.value;
|
|
15606
15694
|
emit(UPDATE_MODEL_EVENT, value);
|
|
15607
15695
|
emit(CHANGE_EVENT, value);
|
|
15608
15696
|
};
|
|
15609
15697
|
const handleItemClick = (name) => {
|
|
15610
15698
|
if (props.accordion) {
|
|
15611
|
-
setActiveNames(
|
|
15699
|
+
setActiveNames([
|
|
15700
|
+
(activeNames.value[0] || activeNames.value[0] === 0) && activeNames.value[0] === name ? "" : name
|
|
15701
|
+
]);
|
|
15612
15702
|
} else {
|
|
15613
|
-
const _activeNames = activeNames.value
|
|
15703
|
+
const _activeNames = [...activeNames.value];
|
|
15614
15704
|
const index = _activeNames.indexOf(name);
|
|
15615
15705
|
if (index > -1) {
|
|
15616
15706
|
_activeNames.splice(index, 1);
|
|
@@ -15620,33 +15710,27 @@ const _sfc_main$1v = defineComponent({
|
|
|
15620
15710
|
setActiveNames(_activeNames);
|
|
15621
15711
|
}
|
|
15622
15712
|
};
|
|
15623
|
-
watch(() => props.modelValue, () => {
|
|
15624
|
-
|
|
15625
|
-
}, {
|
|
15626
|
-
deep: true
|
|
15627
|
-
});
|
|
15628
|
-
provide("collapse", {
|
|
15713
|
+
watch(() => props.modelValue, () => activeNames.value = castArray$1(props.modelValue), { deep: true });
|
|
15714
|
+
provide(collapseContextKey, {
|
|
15629
15715
|
activeNames,
|
|
15630
15716
|
handleItemClick
|
|
15631
15717
|
});
|
|
15632
|
-
|
|
15633
|
-
ns,
|
|
15718
|
+
expose({
|
|
15634
15719
|
activeNames,
|
|
15635
|
-
setActiveNames
|
|
15636
|
-
|
|
15720
|
+
setActiveNames
|
|
15721
|
+
});
|
|
15722
|
+
return (_ctx, _cache) => {
|
|
15723
|
+
return openBlock(), createElementBlock("div", {
|
|
15724
|
+
class: normalizeClass(unref(ns).b()),
|
|
15725
|
+
role: "tablist",
|
|
15726
|
+
"aria-multiselectable": "true"
|
|
15727
|
+
}, [
|
|
15728
|
+
renderSlot(_ctx.$slots, "default")
|
|
15729
|
+
], 2);
|
|
15637
15730
|
};
|
|
15638
15731
|
}
|
|
15639
15732
|
});
|
|
15640
|
-
|
|
15641
|
-
return openBlock(), createElementBlock("div", {
|
|
15642
|
-
class: normalizeClass(_ctx.ns.b()),
|
|
15643
|
-
role: "tablist",
|
|
15644
|
-
"aria-multiselectable": "true"
|
|
15645
|
-
}, [
|
|
15646
|
-
renderSlot(_ctx.$slots, "default")
|
|
15647
|
-
], 2);
|
|
15648
|
-
}
|
|
15649
|
-
var Collapse = /* @__PURE__ */ _export_sfc(_sfc_main$1v, [["render", _sfc_render$1p]]);
|
|
15733
|
+
var Collapse = _sfc_main$1v;
|
|
15650
15734
|
|
|
15651
15735
|
const _sfc_main$1u = defineComponent({
|
|
15652
15736
|
name: "ElCollapseTransition",
|
|
@@ -15707,7 +15791,7 @@ const _sfc_main$1u = defineComponent({
|
|
|
15707
15791
|
};
|
|
15708
15792
|
}
|
|
15709
15793
|
});
|
|
15710
|
-
function _sfc_render$
|
|
15794
|
+
function _sfc_render$1m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
15711
15795
|
return openBlock(), createBlock(Transition, mergeProps({
|
|
15712
15796
|
name: _ctx.ns.b()
|
|
15713
15797
|
}, toHandlers(_ctx.on)), {
|
|
@@ -15717,7 +15801,7 @@ function _sfc_render$1o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
15717
15801
|
_: 3
|
|
15718
15802
|
}, 16, ["name"]);
|
|
15719
15803
|
}
|
|
15720
|
-
var CollapseTransition = /* @__PURE__ */ _export_sfc(_sfc_main$1u, [["render", _sfc_render$
|
|
15804
|
+
var CollapseTransition = /* @__PURE__ */ _export_sfc(_sfc_main$1u, [["render", _sfc_render$1m]]);
|
|
15721
15805
|
|
|
15722
15806
|
CollapseTransition.install = (app) => {
|
|
15723
15807
|
app.component(CollapseTransition.name, CollapseTransition);
|
|
@@ -15725,36 +15809,35 @@ CollapseTransition.install = (app) => {
|
|
|
15725
15809
|
const _CollapseTransition = CollapseTransition;
|
|
15726
15810
|
const ElCollapseTransition = _CollapseTransition;
|
|
15727
15811
|
|
|
15728
|
-
const
|
|
15729
|
-
|
|
15730
|
-
|
|
15731
|
-
|
|
15732
|
-
title: {
|
|
15733
|
-
type: String,
|
|
15734
|
-
default: ""
|
|
15735
|
-
},
|
|
15736
|
-
name: {
|
|
15737
|
-
type: [String, Number],
|
|
15738
|
-
default: () => {
|
|
15739
|
-
return generateId();
|
|
15740
|
-
}
|
|
15741
|
-
},
|
|
15742
|
-
disabled: Boolean
|
|
15812
|
+
const collapseItemProps = buildProps({
|
|
15813
|
+
title: {
|
|
15814
|
+
type: String,
|
|
15815
|
+
default: ""
|
|
15743
15816
|
},
|
|
15744
|
-
|
|
15745
|
-
|
|
15817
|
+
name: {
|
|
15818
|
+
type: definePropType([String, Number]),
|
|
15819
|
+
default: () => generateId()
|
|
15820
|
+
},
|
|
15821
|
+
disabled: Boolean
|
|
15822
|
+
});
|
|
15823
|
+
|
|
15824
|
+
const _hoisted_1$I = ["aria-expanded", "aria-controls", "aria-describedby"];
|
|
15825
|
+
const _hoisted_2$s = ["id", "tabindex", "onKeyup"];
|
|
15826
|
+
const _hoisted_3$i = ["id", "aria-hidden", "aria-labelledby"];
|
|
15827
|
+
const __default__$3 = {
|
|
15828
|
+
name: "ElCollapseItem"
|
|
15829
|
+
};
|
|
15830
|
+
const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
15831
|
+
...__default__$3,
|
|
15832
|
+
props: collapseItemProps,
|
|
15833
|
+
setup(__props, { expose }) {
|
|
15834
|
+
const props = __props;
|
|
15835
|
+
const collapse = inject(collapseContextKey);
|
|
15746
15836
|
const ns = useNamespace("collapse");
|
|
15747
|
-
const contentWrapStyle = ref({
|
|
15748
|
-
height: "auto",
|
|
15749
|
-
display: "block"
|
|
15750
|
-
});
|
|
15751
|
-
const contentHeight = ref(0);
|
|
15752
15837
|
const focusing = ref(false);
|
|
15753
15838
|
const isClick = ref(false);
|
|
15754
15839
|
const id = ref(generateId());
|
|
15755
|
-
const isActive = computed(() =>
|
|
15756
|
-
return (collapse == null ? void 0 : collapse.activeNames.value.indexOf(props.name)) > -1;
|
|
15757
|
-
});
|
|
15840
|
+
const isActive = computed(() => collapse == null ? void 0 : collapse.activeNames.value.includes(props.name));
|
|
15758
15841
|
const handleFocus = () => {
|
|
15759
15842
|
setTimeout(() => {
|
|
15760
15843
|
if (!isClick.value) {
|
|
@@ -15774,91 +15857,75 @@ const _sfc_main$1t = defineComponent({
|
|
|
15774
15857
|
const handleEnterClick = () => {
|
|
15775
15858
|
collapse == null ? void 0 : collapse.handleItemClick(props.name);
|
|
15776
15859
|
};
|
|
15777
|
-
|
|
15778
|
-
isActive
|
|
15779
|
-
|
|
15780
|
-
|
|
15781
|
-
|
|
15782
|
-
isClick,
|
|
15783
|
-
id,
|
|
15784
|
-
ns,
|
|
15785
|
-
handleFocus,
|
|
15786
|
-
handleHeaderClick,
|
|
15787
|
-
handleEnterClick,
|
|
15788
|
-
collapse
|
|
15789
|
-
};
|
|
15790
|
-
}
|
|
15791
|
-
});
|
|
15792
|
-
const _hoisted_1$I = ["aria-expanded", "aria-controls", "aria-describedby"];
|
|
15793
|
-
const _hoisted_2$s = ["id", "tabindex"];
|
|
15794
|
-
const _hoisted_3$i = ["id", "aria-hidden", "aria-labelledby"];
|
|
15795
|
-
function _sfc_render$1n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
15796
|
-
const _component_arrow_right = resolveComponent("arrow-right");
|
|
15797
|
-
const _component_el_icon = resolveComponent("el-icon");
|
|
15798
|
-
const _component_el_collapse_transition = resolveComponent("el-collapse-transition");
|
|
15799
|
-
return openBlock(), createElementBlock("div", {
|
|
15800
|
-
class: normalizeClass([
|
|
15801
|
-
_ctx.ns.b("item"),
|
|
15802
|
-
_ctx.ns.is("active", _ctx.isActive),
|
|
15803
|
-
_ctx.ns.is("disabled", _ctx.disabled)
|
|
15804
|
-
])
|
|
15805
|
-
}, [
|
|
15806
|
-
createElementVNode("div", {
|
|
15807
|
-
role: "tab",
|
|
15808
|
-
"aria-expanded": _ctx.isActive,
|
|
15809
|
-
"aria-controls": _ctx.ns.b(`content-${_ctx.id}`),
|
|
15810
|
-
"aria-describedby": _ctx.ns.b(`content-${_ctx.id}`)
|
|
15811
|
-
}, [
|
|
15812
|
-
createElementVNode("div", {
|
|
15813
|
-
id: _ctx.ns.b(`head-${_ctx.id}`),
|
|
15860
|
+
expose({
|
|
15861
|
+
isActive
|
|
15862
|
+
});
|
|
15863
|
+
return (_ctx, _cache) => {
|
|
15864
|
+
return openBlock(), createElementBlock("div", {
|
|
15814
15865
|
class: normalizeClass([
|
|
15815
|
-
|
|
15816
|
-
|
|
15817
|
-
|
|
15818
|
-
])
|
|
15819
|
-
role: "button",
|
|
15820
|
-
tabindex: _ctx.disabled ? -1 : 0,
|
|
15821
|
-
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleHeaderClick && _ctx.handleHeaderClick(...args)),
|
|
15822
|
-
onKeyup: _cache[1] || (_cache[1] = withKeys(withModifiers((...args) => _ctx.handleEnterClick && _ctx.handleEnterClick(...args), ["stop"]), ["space", "enter"])),
|
|
15823
|
-
onFocus: _cache[2] || (_cache[2] = (...args) => _ctx.handleFocus && _ctx.handleFocus(...args)),
|
|
15824
|
-
onBlur: _cache[3] || (_cache[3] = ($event) => _ctx.focusing = false)
|
|
15866
|
+
unref(ns).b("item"),
|
|
15867
|
+
unref(ns).is("active", unref(isActive)),
|
|
15868
|
+
unref(ns).is("disabled", _ctx.disabled)
|
|
15869
|
+
])
|
|
15825
15870
|
}, [
|
|
15826
|
-
|
|
15827
|
-
|
|
15828
|
-
|
|
15829
|
-
|
|
15830
|
-
|
|
15831
|
-
}, {
|
|
15832
|
-
default: withCtx(() => [
|
|
15833
|
-
createVNode(_component_arrow_right)
|
|
15834
|
-
]),
|
|
15835
|
-
_: 1
|
|
15836
|
-
}, 8, ["class"])
|
|
15837
|
-
], 42, _hoisted_2$s)
|
|
15838
|
-
], 8, _hoisted_1$I),
|
|
15839
|
-
createVNode(_component_el_collapse_transition, null, {
|
|
15840
|
-
default: withCtx(() => [
|
|
15841
|
-
withDirectives(createElementVNode("div", {
|
|
15842
|
-
id: _ctx.ns.b(`content-${_ctx.id}`),
|
|
15843
|
-
class: normalizeClass(_ctx.ns.be("item", "wrap")),
|
|
15844
|
-
role: "tabpanel",
|
|
15845
|
-
"aria-hidden": !_ctx.isActive,
|
|
15846
|
-
"aria-labelledby": _ctx.ns.b(`head-${_ctx.id}`)
|
|
15871
|
+
createElementVNode("div", {
|
|
15872
|
+
role: "tab",
|
|
15873
|
+
"aria-expanded": unref(isActive),
|
|
15874
|
+
"aria-controls": unref(ns).b(`content-${id.value}`),
|
|
15875
|
+
"aria-describedby": unref(ns).b(`content-${id.value}`)
|
|
15847
15876
|
}, [
|
|
15848
15877
|
createElementVNode("div", {
|
|
15849
|
-
|
|
15878
|
+
id: unref(ns).b(`head-${id.value}`),
|
|
15879
|
+
class: normalizeClass([
|
|
15880
|
+
unref(ns).be("item", "header"),
|
|
15881
|
+
unref(ns).is("active", unref(isActive)),
|
|
15882
|
+
{ focusing: focusing.value }
|
|
15883
|
+
]),
|
|
15884
|
+
role: "button",
|
|
15885
|
+
tabindex: _ctx.disabled ? -1 : 0,
|
|
15886
|
+
onClick: handleHeaderClick,
|
|
15887
|
+
onKeyup: withKeys(withModifiers(handleEnterClick, ["stop"]), ["space", "enter"]),
|
|
15888
|
+
onFocus: handleFocus,
|
|
15889
|
+
onBlur: _cache[0] || (_cache[0] = ($event) => focusing.value = false)
|
|
15850
15890
|
}, [
|
|
15851
|
-
renderSlot(_ctx.$slots, "
|
|
15852
|
-
|
|
15853
|
-
|
|
15854
|
-
|
|
15855
|
-
|
|
15856
|
-
|
|
15857
|
-
|
|
15858
|
-
|
|
15859
|
-
|
|
15860
|
-
|
|
15861
|
-
|
|
15891
|
+
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
15892
|
+
createTextVNode(toDisplayString(_ctx.title), 1)
|
|
15893
|
+
]),
|
|
15894
|
+
createVNode(unref(ElIcon), {
|
|
15895
|
+
class: normalizeClass([unref(ns).be("item", "arrow"), unref(ns).is("active", unref(isActive))])
|
|
15896
|
+
}, {
|
|
15897
|
+
default: withCtx(() => [
|
|
15898
|
+
createVNode(unref(arrowRight))
|
|
15899
|
+
]),
|
|
15900
|
+
_: 1
|
|
15901
|
+
}, 8, ["class"])
|
|
15902
|
+
], 42, _hoisted_2$s)
|
|
15903
|
+
], 8, _hoisted_1$I),
|
|
15904
|
+
createVNode(unref(_CollapseTransition), null, {
|
|
15905
|
+
default: withCtx(() => [
|
|
15906
|
+
withDirectives(createElementVNode("div", {
|
|
15907
|
+
id: unref(ns).b(`content-${id.value}`),
|
|
15908
|
+
class: normalizeClass(unref(ns).be("item", "wrap")),
|
|
15909
|
+
role: "tabpanel",
|
|
15910
|
+
"aria-hidden": !unref(isActive),
|
|
15911
|
+
"aria-labelledby": unref(ns).b(`head-${id.value}`)
|
|
15912
|
+
}, [
|
|
15913
|
+
createElementVNode("div", {
|
|
15914
|
+
class: normalizeClass(unref(ns).be("item", "content"))
|
|
15915
|
+
}, [
|
|
15916
|
+
renderSlot(_ctx.$slots, "default")
|
|
15917
|
+
], 2)
|
|
15918
|
+
], 10, _hoisted_3$i), [
|
|
15919
|
+
[vShow, unref(isActive)]
|
|
15920
|
+
])
|
|
15921
|
+
]),
|
|
15922
|
+
_: 3
|
|
15923
|
+
})
|
|
15924
|
+
], 2);
|
|
15925
|
+
};
|
|
15926
|
+
}
|
|
15927
|
+
});
|
|
15928
|
+
var CollapseItem = _sfc_main$1t;
|
|
15862
15929
|
|
|
15863
15930
|
const ElCollapse = withInstall(Collapse, {
|
|
15864
15931
|
CollapseItem
|
|
@@ -16003,7 +16070,7 @@ const _sfc_main$1s = defineComponent({
|
|
|
16003
16070
|
};
|
|
16004
16071
|
}
|
|
16005
16072
|
});
|
|
16006
|
-
function _sfc_render$
|
|
16073
|
+
function _sfc_render$1l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
16007
16074
|
return openBlock(), createElementBlock("div", {
|
|
16008
16075
|
class: normalizeClass(["el-color-alpha-slider", { "is-vertical": _ctx.vertical }])
|
|
16009
16076
|
}, [
|
|
@@ -16025,7 +16092,7 @@ function _sfc_render$1m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16025
16092
|
}, null, 4)
|
|
16026
16093
|
], 2);
|
|
16027
16094
|
}
|
|
16028
|
-
var AlphaSlider = /* @__PURE__ */ _export_sfc(_sfc_main$1s, [["render", _sfc_render$
|
|
16095
|
+
var AlphaSlider = /* @__PURE__ */ _export_sfc(_sfc_main$1s, [["render", _sfc_render$1l]]);
|
|
16029
16096
|
|
|
16030
16097
|
const _sfc_main$1r = defineComponent({
|
|
16031
16098
|
name: "ElColorHueSlider",
|
|
@@ -16118,7 +16185,7 @@ const _sfc_main$1r = defineComponent({
|
|
|
16118
16185
|
};
|
|
16119
16186
|
}
|
|
16120
16187
|
});
|
|
16121
|
-
function _sfc_render$
|
|
16188
|
+
function _sfc_render$1k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
16122
16189
|
return openBlock(), createElementBlock("div", {
|
|
16123
16190
|
class: normalizeClass(["el-color-hue-slider", { "is-vertical": _ctx.vertical }])
|
|
16124
16191
|
}, [
|
|
@@ -16137,7 +16204,7 @@ function _sfc_render$1l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16137
16204
|
}, null, 4)
|
|
16138
16205
|
], 2);
|
|
16139
16206
|
}
|
|
16140
|
-
var HueSlider = /* @__PURE__ */ _export_sfc(_sfc_main$1r, [["render", _sfc_render$
|
|
16207
|
+
var HueSlider = /* @__PURE__ */ _export_sfc(_sfc_main$1r, [["render", _sfc_render$1k]]);
|
|
16141
16208
|
|
|
16142
16209
|
const OPTIONS_KEY = Symbol();
|
|
16143
16210
|
const useOptions = () => {
|
|
@@ -16458,7 +16525,7 @@ const _sfc_main$1q = defineComponent({
|
|
|
16458
16525
|
const _hoisted_1$H = { class: "el-color-predefine" };
|
|
16459
16526
|
const _hoisted_2$r = { class: "el-color-predefine__colors" };
|
|
16460
16527
|
const _hoisted_3$h = ["onClick"];
|
|
16461
|
-
function _sfc_render$
|
|
16528
|
+
function _sfc_render$1j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
16462
16529
|
return openBlock(), createElementBlock("div", _hoisted_1$H, [
|
|
16463
16530
|
createElementVNode("div", _hoisted_2$r, [
|
|
16464
16531
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.rgbaColors, (item, index) => {
|
|
@@ -16475,7 +16542,7 @@ function _sfc_render$1k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16475
16542
|
])
|
|
16476
16543
|
]);
|
|
16477
16544
|
}
|
|
16478
|
-
var Predefine = /* @__PURE__ */ _export_sfc(_sfc_main$1q, [["render", _sfc_render$
|
|
16545
|
+
var Predefine = /* @__PURE__ */ _export_sfc(_sfc_main$1q, [["render", _sfc_render$1j]]);
|
|
16479
16546
|
|
|
16480
16547
|
const _sfc_main$1p = defineComponent({
|
|
16481
16548
|
name: "ElSlPanel",
|
|
@@ -16551,7 +16618,7 @@ const _hoisted_3$g = /* @__PURE__ */ createElementVNode("div", null, null, -1);
|
|
|
16551
16618
|
const _hoisted_4$c = [
|
|
16552
16619
|
_hoisted_3$g
|
|
16553
16620
|
];
|
|
16554
|
-
function _sfc_render$
|
|
16621
|
+
function _sfc_render$1i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
16555
16622
|
return openBlock(), createElementBlock("div", {
|
|
16556
16623
|
class: "el-color-svpanel",
|
|
16557
16624
|
style: normalizeStyle({
|
|
@@ -16569,7 +16636,7 @@ function _sfc_render$1j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16569
16636
|
}, _hoisted_4$c, 4)
|
|
16570
16637
|
], 4);
|
|
16571
16638
|
}
|
|
16572
|
-
var SvPanel = /* @__PURE__ */ _export_sfc(_sfc_main$1p, [["render", _sfc_render$
|
|
16639
|
+
var SvPanel = /* @__PURE__ */ _export_sfc(_sfc_main$1p, [["render", _sfc_render$1i]]);
|
|
16573
16640
|
|
|
16574
16641
|
const _sfc_main$1o = defineComponent({
|
|
16575
16642
|
name: "ElColorPicker",
|
|
@@ -16745,7 +16812,7 @@ const _sfc_main$1o = defineComponent({
|
|
|
16745
16812
|
};
|
|
16746
16813
|
}
|
|
16747
16814
|
});
|
|
16748
|
-
function _sfc_render$
|
|
16815
|
+
function _sfc_render$1h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
16749
16816
|
const _component_hue_slider = resolveComponent("hue-slider");
|
|
16750
16817
|
const _component_sv_panel = resolveComponent("sv-panel");
|
|
16751
16818
|
const _component_alpha_slider = resolveComponent("alpha-slider");
|
|
@@ -16893,7 +16960,7 @@ function _sfc_render$1i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16893
16960
|
_: 1
|
|
16894
16961
|
}, 8, ["visible", "popper-class"]);
|
|
16895
16962
|
}
|
|
16896
|
-
var ColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$1o, [["render", _sfc_render$
|
|
16963
|
+
var ColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$1o, [["render", _sfc_render$1h]]);
|
|
16897
16964
|
|
|
16898
16965
|
ColorPicker.install = (app) => {
|
|
16899
16966
|
app.component(ColorPicker.name, ColorPicker);
|
|
@@ -16970,14 +17037,14 @@ const _sfc_main$1n = defineComponent({
|
|
|
16970
17037
|
};
|
|
16971
17038
|
}
|
|
16972
17039
|
});
|
|
16973
|
-
function _sfc_render$
|
|
17040
|
+
function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
16974
17041
|
return openBlock(), createElementBlock("section", {
|
|
16975
17042
|
class: normalizeClass([_ctx.ns.b(), _ctx.ns.is("vertical", _ctx.isVertical)])
|
|
16976
17043
|
}, [
|
|
16977
17044
|
renderSlot(_ctx.$slots, "default")
|
|
16978
17045
|
], 2);
|
|
16979
17046
|
}
|
|
16980
|
-
var Container = /* @__PURE__ */ _export_sfc(_sfc_main$1n, [["render", _sfc_render$
|
|
17047
|
+
var Container = /* @__PURE__ */ _export_sfc(_sfc_main$1n, [["render", _sfc_render$1g]]);
|
|
16981
17048
|
|
|
16982
17049
|
const _sfc_main$1m = defineComponent({
|
|
16983
17050
|
name: "ElAside",
|
|
@@ -16997,7 +17064,7 @@ const _sfc_main$1m = defineComponent({
|
|
|
16997
17064
|
};
|
|
16998
17065
|
}
|
|
16999
17066
|
});
|
|
17000
|
-
function _sfc_render$
|
|
17067
|
+
function _sfc_render$1f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
17001
17068
|
return openBlock(), createElementBlock("aside", {
|
|
17002
17069
|
class: normalizeClass(_ctx.ns.b()),
|
|
17003
17070
|
style: normalizeStyle(_ctx.style)
|
|
@@ -17005,7 +17072,7 @@ function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
17005
17072
|
renderSlot(_ctx.$slots, "default")
|
|
17006
17073
|
], 6);
|
|
17007
17074
|
}
|
|
17008
|
-
var Aside = /* @__PURE__ */ _export_sfc(_sfc_main$1m, [["render", _sfc_render$
|
|
17075
|
+
var Aside = /* @__PURE__ */ _export_sfc(_sfc_main$1m, [["render", _sfc_render$1f]]);
|
|
17009
17076
|
|
|
17010
17077
|
const _sfc_main$1l = defineComponent({
|
|
17011
17078
|
name: "ElFooter",
|
|
@@ -17025,7 +17092,7 @@ const _sfc_main$1l = defineComponent({
|
|
|
17025
17092
|
};
|
|
17026
17093
|
}
|
|
17027
17094
|
});
|
|
17028
|
-
function _sfc_render$
|
|
17095
|
+
function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
17029
17096
|
return openBlock(), createElementBlock("footer", {
|
|
17030
17097
|
class: normalizeClass(_ctx.ns.b()),
|
|
17031
17098
|
style: normalizeStyle(_ctx.style)
|
|
@@ -17033,7 +17100,7 @@ function _sfc_render$1f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
17033
17100
|
renderSlot(_ctx.$slots, "default")
|
|
17034
17101
|
], 6);
|
|
17035
17102
|
}
|
|
17036
|
-
var Footer = /* @__PURE__ */ _export_sfc(_sfc_main$1l, [["render", _sfc_render$
|
|
17103
|
+
var Footer = /* @__PURE__ */ _export_sfc(_sfc_main$1l, [["render", _sfc_render$1e]]);
|
|
17037
17104
|
|
|
17038
17105
|
const _sfc_main$1k = defineComponent({
|
|
17039
17106
|
name: "ElHeader",
|
|
@@ -17053,7 +17120,7 @@ const _sfc_main$1k = defineComponent({
|
|
|
17053
17120
|
};
|
|
17054
17121
|
}
|
|
17055
17122
|
});
|
|
17056
|
-
function _sfc_render$
|
|
17123
|
+
function _sfc_render$1d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
17057
17124
|
return openBlock(), createElementBlock("header", {
|
|
17058
17125
|
class: normalizeClass(_ctx.ns.b()),
|
|
17059
17126
|
style: normalizeStyle(_ctx.style)
|
|
@@ -17061,7 +17128,7 @@ function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
17061
17128
|
renderSlot(_ctx.$slots, "default")
|
|
17062
17129
|
], 6);
|
|
17063
17130
|
}
|
|
17064
|
-
var Header = /* @__PURE__ */ _export_sfc(_sfc_main$1k, [["render", _sfc_render$
|
|
17131
|
+
var Header = /* @__PURE__ */ _export_sfc(_sfc_main$1k, [["render", _sfc_render$1d]]);
|
|
17065
17132
|
|
|
17066
17133
|
const _sfc_main$1j = defineComponent({
|
|
17067
17134
|
name: "ElMain",
|
|
@@ -17072,14 +17139,14 @@ const _sfc_main$1j = defineComponent({
|
|
|
17072
17139
|
};
|
|
17073
17140
|
}
|
|
17074
17141
|
});
|
|
17075
|
-
function _sfc_render$
|
|
17142
|
+
function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
17076
17143
|
return openBlock(), createElementBlock("main", {
|
|
17077
17144
|
class: normalizeClass(_ctx.ns.b())
|
|
17078
17145
|
}, [
|
|
17079
17146
|
renderSlot(_ctx.$slots, "default")
|
|
17080
17147
|
], 2);
|
|
17081
17148
|
}
|
|
17082
|
-
var Main = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["render", _sfc_render$
|
|
17149
|
+
var Main = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["render", _sfc_render$1c]]);
|
|
17083
17150
|
|
|
17084
17151
|
const ElContainer = withInstall(Container, {
|
|
17085
17152
|
Aside,
|
|
@@ -17558,7 +17625,7 @@ const _sfc_main$1i = defineComponent({
|
|
|
17558
17625
|
}
|
|
17559
17626
|
});
|
|
17560
17627
|
const _hoisted_1$F = { key: 0 };
|
|
17561
|
-
function _sfc_render$
|
|
17628
|
+
function _sfc_render$1b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
17562
17629
|
const _component_el_date_picker_cell = resolveComponent("el-date-picker-cell");
|
|
17563
17630
|
return openBlock(), createElementBlock("table", {
|
|
17564
17631
|
cellspacing: "0",
|
|
@@ -17592,7 +17659,7 @@ function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
17592
17659
|
])
|
|
17593
17660
|
], 34);
|
|
17594
17661
|
}
|
|
17595
|
-
var DateTable = /* @__PURE__ */ _export_sfc(_sfc_main$1i, [["render", _sfc_render$
|
|
17662
|
+
var DateTable = /* @__PURE__ */ _export_sfc(_sfc_main$1i, [["render", _sfc_render$1b]]);
|
|
17596
17663
|
|
|
17597
17664
|
const datesInMonth = (year, month, lang) => {
|
|
17598
17665
|
const firstDay = dayjs().locale(lang).startOf("month").month(month).year(year);
|
|
@@ -17764,7 +17831,7 @@ const _sfc_main$1h = defineComponent({
|
|
|
17764
17831
|
}
|
|
17765
17832
|
});
|
|
17766
17833
|
const _hoisted_1$E = { class: "cell" };
|
|
17767
|
-
function _sfc_render$
|
|
17834
|
+
function _sfc_render$1a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
17768
17835
|
return openBlock(), createElementBlock("table", {
|
|
17769
17836
|
class: "el-month-table",
|
|
17770
17837
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleMonthTableClick && _ctx.handleMonthTableClick(...args)),
|
|
@@ -17788,7 +17855,7 @@ function _sfc_render$1b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
17788
17855
|
])
|
|
17789
17856
|
], 32);
|
|
17790
17857
|
}
|
|
17791
|
-
var MonthTable = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["render", _sfc_render$
|
|
17858
|
+
var MonthTable = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["render", _sfc_render$1a]]);
|
|
17792
17859
|
|
|
17793
17860
|
const datesInYear = (year, lang) => {
|
|
17794
17861
|
const firstDay = dayjs(String(year)).locale(lang).startOf("year");
|
|
@@ -17850,7 +17917,7 @@ const _hoisted_9$5 = { class: "cell" };
|
|
|
17850
17917
|
const _hoisted_10$5 = { class: "cell" };
|
|
17851
17918
|
const _hoisted_11$3 = /* @__PURE__ */ createElementVNode("td", null, null, -1);
|
|
17852
17919
|
const _hoisted_12$3 = /* @__PURE__ */ createElementVNode("td", null, null, -1);
|
|
17853
|
-
function _sfc_render$
|
|
17920
|
+
function _sfc_render$19(_ctx, _cache, $props, $setup, $data, $options) {
|
|
17854
17921
|
return openBlock(), createElementBlock("table", {
|
|
17855
17922
|
class: "el-year-table",
|
|
17856
17923
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleYearTableClick && _ctx.handleYearTableClick(...args))
|
|
@@ -17917,7 +17984,7 @@ function _sfc_render$1a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
17917
17984
|
])
|
|
17918
17985
|
]);
|
|
17919
17986
|
}
|
|
17920
|
-
var YearTable = /* @__PURE__ */ _export_sfc(_sfc_main$1g, [["render", _sfc_render$
|
|
17987
|
+
var YearTable = /* @__PURE__ */ _export_sfc(_sfc_main$1g, [["render", _sfc_render$19]]);
|
|
17921
17988
|
|
|
17922
17989
|
const timeWithinRange = (_, __, ___) => true;
|
|
17923
17990
|
const _sfc_main$1f = defineComponent({
|
|
@@ -18350,7 +18417,7 @@ const _hoisted_10$4 = ["aria-label"];
|
|
|
18350
18417
|
const _hoisted_11$2 = ["aria-label"];
|
|
18351
18418
|
const _hoisted_12$2 = { class: "el-picker-panel__content" };
|
|
18352
18419
|
const _hoisted_13$2 = { class: "el-picker-panel__footer" };
|
|
18353
|
-
function _sfc_render$
|
|
18420
|
+
function _sfc_render$18(_ctx, _cache, $props, $setup, $data, $options) {
|
|
18354
18421
|
const _component_el_input = resolveComponent("el-input");
|
|
18355
18422
|
const _component_time_pick_panel = resolveComponent("time-pick-panel");
|
|
18356
18423
|
const _component_d_arrow_left = resolveComponent("d-arrow-left");
|
|
@@ -18546,7 +18613,7 @@ function _sfc_render$19(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
18546
18613
|
])
|
|
18547
18614
|
], 2);
|
|
18548
18615
|
}
|
|
18549
|
-
var DatePickPanel = /* @__PURE__ */ _export_sfc(_sfc_main$1f, [["render", _sfc_render$
|
|
18616
|
+
var DatePickPanel = /* @__PURE__ */ _export_sfc(_sfc_main$1f, [["render", _sfc_render$18]]);
|
|
18550
18617
|
|
|
18551
18618
|
const _sfc_main$1e = defineComponent({
|
|
18552
18619
|
directives: { clickoutside: ClickOutside },
|
|
@@ -19012,7 +19079,7 @@ const _hoisted_20$1 = {
|
|
|
19012
19079
|
key: 0,
|
|
19013
19080
|
class: "el-picker-panel__footer"
|
|
19014
19081
|
};
|
|
19015
|
-
function _sfc_render$
|
|
19082
|
+
function _sfc_render$17(_ctx, _cache, $props, $setup, $data, $options) {
|
|
19016
19083
|
const _component_el_input = resolveComponent("el-input");
|
|
19017
19084
|
const _component_time_pick_panel = resolveComponent("time-pick-panel");
|
|
19018
19085
|
const _component_arrow_right = resolveComponent("arrow-right");
|
|
@@ -19294,7 +19361,7 @@ function _sfc_render$18(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
19294
19361
|
])) : createCommentVNode("v-if", true)
|
|
19295
19362
|
], 2);
|
|
19296
19363
|
}
|
|
19297
|
-
var DateRangePickPanel = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["render", _sfc_render$
|
|
19364
|
+
var DateRangePickPanel = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["render", _sfc_render$17]]);
|
|
19298
19365
|
|
|
19299
19366
|
const _sfc_main$1d = defineComponent({
|
|
19300
19367
|
components: { MonthTable, ElIcon, DArrowLeft: dArrowLeft, DArrowRight: dArrowRight },
|
|
@@ -19479,7 +19546,7 @@ const _hoisted_7$2 = ["disabled"];
|
|
|
19479
19546
|
const _hoisted_8$2 = { class: "el-picker-panel__content el-date-range-picker__content is-right" };
|
|
19480
19547
|
const _hoisted_9$2 = { class: "el-date-range-picker__header" };
|
|
19481
19548
|
const _hoisted_10$2 = ["disabled"];
|
|
19482
|
-
function _sfc_render$
|
|
19549
|
+
function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
|
|
19483
19550
|
const _component_d_arrow_left = resolveComponent("d-arrow-left");
|
|
19484
19551
|
const _component_el_icon = resolveComponent("el-icon");
|
|
19485
19552
|
const _component_d_arrow_right = resolveComponent("d-arrow-right");
|
|
@@ -19592,7 +19659,7 @@ function _sfc_render$17(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
19592
19659
|
])
|
|
19593
19660
|
], 2);
|
|
19594
19661
|
}
|
|
19595
|
-
var MonthRangePickPanel = /* @__PURE__ */ _export_sfc(_sfc_main$1d, [["render", _sfc_render$
|
|
19662
|
+
var MonthRangePickPanel = /* @__PURE__ */ _export_sfc(_sfc_main$1d, [["render", _sfc_render$16]]);
|
|
19596
19663
|
|
|
19597
19664
|
dayjs.extend(localeData);
|
|
19598
19665
|
dayjs.extend(advancedFormat);
|
|
@@ -19758,7 +19825,7 @@ const _sfc_main$1c = defineComponent({
|
|
|
19758
19825
|
}
|
|
19759
19826
|
});
|
|
19760
19827
|
const _hoisted_1$z = { key: 1 };
|
|
19761
|
-
function _sfc_render$
|
|
19828
|
+
function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) {
|
|
19762
19829
|
const _component_el_descriptions_cell = resolveComponent("el-descriptions-cell");
|
|
19763
19830
|
return _ctx.descriptions.direction === "vertical" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
19764
19831
|
createElementVNode("tr", null, [
|
|
@@ -19807,7 +19874,7 @@ function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
19807
19874
|
}), 128))
|
|
19808
19875
|
]));
|
|
19809
19876
|
}
|
|
19810
|
-
var DescriptionsRow = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["render", _sfc_render$
|
|
19877
|
+
var DescriptionsRow = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["render", _sfc_render$15]]);
|
|
19811
19878
|
|
|
19812
19879
|
const _sfc_main$1b = defineComponent({
|
|
19813
19880
|
name: "ElDescriptions",
|
|
@@ -19913,7 +19980,7 @@ const _sfc_main$1b = defineComponent({
|
|
|
19913
19980
|
};
|
|
19914
19981
|
}
|
|
19915
19982
|
});
|
|
19916
|
-
function _sfc_render$
|
|
19983
|
+
function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) {
|
|
19917
19984
|
const _component_el_descriptions_row = resolveComponent("el-descriptions-row");
|
|
19918
19985
|
return openBlock(), createElementBlock("div", {
|
|
19919
19986
|
class: normalizeClass(_ctx.descriptionKls)
|
|
@@ -19955,7 +20022,7 @@ function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
19955
20022
|
], 2)
|
|
19956
20023
|
], 2);
|
|
19957
20024
|
}
|
|
19958
|
-
var Descriptions = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["render", _sfc_render$
|
|
20025
|
+
var Descriptions = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["render", _sfc_render$14]]);
|
|
19959
20026
|
|
|
19960
20027
|
var DescriptionsItem = defineComponent({
|
|
19961
20028
|
name: "ElDescriptionsItem",
|
|
@@ -20059,243 +20126,6 @@ var Overlay = defineComponent({
|
|
|
20059
20126
|
|
|
20060
20127
|
const ElOverlay = Overlay;
|
|
20061
20128
|
|
|
20062
|
-
const obtainAllFocusableElements = (element) => {
|
|
20063
|
-
const nodes = [];
|
|
20064
|
-
const walker = document.createTreeWalker(element, NodeFilter.SHOW_ELEMENT, {
|
|
20065
|
-
acceptNode: (node) => {
|
|
20066
|
-
const isHiddenInput = node.tagName === "INPUT" && node.type === "hidden";
|
|
20067
|
-
if (node.disabled || node.hidden || isHiddenInput)
|
|
20068
|
-
return NodeFilter.FILTER_SKIP;
|
|
20069
|
-
return node.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
20070
|
-
}
|
|
20071
|
-
});
|
|
20072
|
-
while (walker.nextNode())
|
|
20073
|
-
nodes.push(walker.currentNode);
|
|
20074
|
-
return nodes;
|
|
20075
|
-
};
|
|
20076
|
-
const getVisibleElement = (elements, container) => {
|
|
20077
|
-
for (const element of elements) {
|
|
20078
|
-
if (!isHidden(element, container))
|
|
20079
|
-
return element;
|
|
20080
|
-
}
|
|
20081
|
-
};
|
|
20082
|
-
const isHidden = (element, container) => {
|
|
20083
|
-
if (getComputedStyle(element).visibility === "hidden")
|
|
20084
|
-
return true;
|
|
20085
|
-
while (element) {
|
|
20086
|
-
if (container && element === container)
|
|
20087
|
-
return false;
|
|
20088
|
-
if (getComputedStyle(element).display === "none")
|
|
20089
|
-
return true;
|
|
20090
|
-
element = element.parentElement;
|
|
20091
|
-
}
|
|
20092
|
-
return false;
|
|
20093
|
-
};
|
|
20094
|
-
const getEdges = (container) => {
|
|
20095
|
-
const focusable = obtainAllFocusableElements(container);
|
|
20096
|
-
const first = getVisibleElement(focusable, container);
|
|
20097
|
-
const last = getVisibleElement(focusable.reverse(), container);
|
|
20098
|
-
return [first, last];
|
|
20099
|
-
};
|
|
20100
|
-
const isSelectable = (element) => {
|
|
20101
|
-
return element instanceof HTMLInputElement && "select" in element;
|
|
20102
|
-
};
|
|
20103
|
-
const tryFocus = (element, shouldSelect) => {
|
|
20104
|
-
if (element && element.focus) {
|
|
20105
|
-
const prevFocusedElement = document.activeElement;
|
|
20106
|
-
element.focus({ preventScroll: true });
|
|
20107
|
-
if (element !== prevFocusedElement && isSelectable(element) && shouldSelect) {
|
|
20108
|
-
element.select();
|
|
20109
|
-
}
|
|
20110
|
-
}
|
|
20111
|
-
};
|
|
20112
|
-
function removeFromStack(list, item) {
|
|
20113
|
-
const copy = [...list];
|
|
20114
|
-
const idx = list.indexOf(item);
|
|
20115
|
-
if (idx !== -1) {
|
|
20116
|
-
copy.splice(idx, 1);
|
|
20117
|
-
}
|
|
20118
|
-
return copy;
|
|
20119
|
-
}
|
|
20120
|
-
const createFocusableStack = () => {
|
|
20121
|
-
let stack = [];
|
|
20122
|
-
const push = (layer) => {
|
|
20123
|
-
const currentLayer = stack[0];
|
|
20124
|
-
if (currentLayer && layer !== currentLayer) {
|
|
20125
|
-
currentLayer.pause();
|
|
20126
|
-
}
|
|
20127
|
-
stack = removeFromStack(stack, layer);
|
|
20128
|
-
stack.unshift(layer);
|
|
20129
|
-
};
|
|
20130
|
-
const remove = (layer) => {
|
|
20131
|
-
var _a, _b;
|
|
20132
|
-
stack = removeFromStack(stack, layer);
|
|
20133
|
-
(_b = (_a = stack[0]) == null ? void 0 : _a.resume) == null ? void 0 : _b.call(_a);
|
|
20134
|
-
};
|
|
20135
|
-
return {
|
|
20136
|
-
push,
|
|
20137
|
-
remove
|
|
20138
|
-
};
|
|
20139
|
-
};
|
|
20140
|
-
const focusFirstDescendant = (elements, shouldSelect = false) => {
|
|
20141
|
-
const prevFocusedElement = document.activeElement;
|
|
20142
|
-
for (const element of elements) {
|
|
20143
|
-
tryFocus(element, shouldSelect);
|
|
20144
|
-
if (document.activeElement !== prevFocusedElement)
|
|
20145
|
-
return;
|
|
20146
|
-
}
|
|
20147
|
-
};
|
|
20148
|
-
const focusableStack = createFocusableStack();
|
|
20149
|
-
|
|
20150
|
-
const FOCUS_ON_MOUNT = "focus-trap.focus-on-mount";
|
|
20151
|
-
const FOCUS_ON_UNMOUNT = "focus-trap.focus-on-unmount";
|
|
20152
|
-
const FOCUS_ON_MOUNT_OPTS = {
|
|
20153
|
-
cancelable: true,
|
|
20154
|
-
bubbles: false
|
|
20155
|
-
};
|
|
20156
|
-
const ON_MOUNT_FOCUS_EVT = "mountOnFocus";
|
|
20157
|
-
const ON_UNMOUNT_FOCUS_EVT = "unmountOnFocus";
|
|
20158
|
-
const FOCUS_TRAP_INJECTION_KEY = Symbol("elFocusTrap");
|
|
20159
|
-
|
|
20160
|
-
const _sfc_main$1a = defineComponent({
|
|
20161
|
-
name: "ElFocusTrap",
|
|
20162
|
-
inheritAttrs: false,
|
|
20163
|
-
props: {
|
|
20164
|
-
loop: Boolean,
|
|
20165
|
-
trapped: Boolean
|
|
20166
|
-
},
|
|
20167
|
-
emits: [ON_MOUNT_FOCUS_EVT, ON_UNMOUNT_FOCUS_EVT],
|
|
20168
|
-
setup(props, { emit }) {
|
|
20169
|
-
const focusTrapRef = ref();
|
|
20170
|
-
const forwardRef = ref(null);
|
|
20171
|
-
let lastFocusBeforeMounted;
|
|
20172
|
-
let lastFocusAfterMounted;
|
|
20173
|
-
const focusLayer = {
|
|
20174
|
-
paused: false,
|
|
20175
|
-
pause() {
|
|
20176
|
-
this.paused = true;
|
|
20177
|
-
},
|
|
20178
|
-
resume() {
|
|
20179
|
-
this.paused = false;
|
|
20180
|
-
}
|
|
20181
|
-
};
|
|
20182
|
-
const onKeydown = (e) => {
|
|
20183
|
-
if (!props.loop && !props.trapped)
|
|
20184
|
-
return;
|
|
20185
|
-
if (focusLayer.paused)
|
|
20186
|
-
return;
|
|
20187
|
-
const { key, altKey, ctrlKey, metaKey, currentTarget, shiftKey } = e;
|
|
20188
|
-
const { loop } = props;
|
|
20189
|
-
const isTabbing = key === EVENT_CODE.tab && !altKey && !ctrlKey && !metaKey;
|
|
20190
|
-
const currentFocusingEl = document.activeElement;
|
|
20191
|
-
if (isTabbing && currentFocusingEl) {
|
|
20192
|
-
const container = currentTarget;
|
|
20193
|
-
const [first, last] = getEdges(container);
|
|
20194
|
-
const isTabbable = first && last;
|
|
20195
|
-
if (!isTabbable) {
|
|
20196
|
-
if (currentFocusingEl === container)
|
|
20197
|
-
e.preventDefault();
|
|
20198
|
-
} else {
|
|
20199
|
-
if (!shiftKey && currentFocusingEl === last) {
|
|
20200
|
-
e.preventDefault();
|
|
20201
|
-
if (loop)
|
|
20202
|
-
tryFocus(first, true);
|
|
20203
|
-
} else if (shiftKey && currentFocusingEl === first) {
|
|
20204
|
-
e.preventDefault();
|
|
20205
|
-
if (loop)
|
|
20206
|
-
tryFocus(last, true);
|
|
20207
|
-
}
|
|
20208
|
-
}
|
|
20209
|
-
}
|
|
20210
|
-
};
|
|
20211
|
-
provide(FOCUS_TRAP_INJECTION_KEY, {
|
|
20212
|
-
focusTrapRef: forwardRef,
|
|
20213
|
-
onKeydown
|
|
20214
|
-
});
|
|
20215
|
-
const focusOnMount = (e) => {
|
|
20216
|
-
emit(ON_MOUNT_FOCUS_EVT, e);
|
|
20217
|
-
};
|
|
20218
|
-
const focusOnUnmount = (e) => emit(ON_UNMOUNT_FOCUS_EVT, e);
|
|
20219
|
-
const onFocusIn = (e) => {
|
|
20220
|
-
const trapContainer = unref(forwardRef);
|
|
20221
|
-
if (focusLayer.paused || !trapContainer)
|
|
20222
|
-
return;
|
|
20223
|
-
const target = e.target;
|
|
20224
|
-
if (target && trapContainer.contains(target)) {
|
|
20225
|
-
lastFocusAfterMounted = target;
|
|
20226
|
-
} else {
|
|
20227
|
-
tryFocus(lastFocusAfterMounted, true);
|
|
20228
|
-
}
|
|
20229
|
-
};
|
|
20230
|
-
const onFocusOut = (e) => {
|
|
20231
|
-
const trapContainer = unref(forwardRef);
|
|
20232
|
-
if (focusLayer.paused || !trapContainer)
|
|
20233
|
-
return;
|
|
20234
|
-
if (!trapContainer.contains(e.relatedTarget)) {
|
|
20235
|
-
tryFocus(lastFocusAfterMounted, true);
|
|
20236
|
-
}
|
|
20237
|
-
};
|
|
20238
|
-
const cleanupDocumentListeners = () => {
|
|
20239
|
-
document.removeEventListener("focusin", onFocusIn);
|
|
20240
|
-
document.removeEventListener("focusout", onFocusOut);
|
|
20241
|
-
};
|
|
20242
|
-
onMounted(() => {
|
|
20243
|
-
const trapContainer = unref(forwardRef);
|
|
20244
|
-
if (trapContainer) {
|
|
20245
|
-
focusableStack.push(focusLayer);
|
|
20246
|
-
const prevFocusedElement = document.activeElement;
|
|
20247
|
-
lastFocusBeforeMounted = prevFocusedElement;
|
|
20248
|
-
const isPrevFocusContained = trapContainer.contains(prevFocusedElement);
|
|
20249
|
-
if (!isPrevFocusContained) {
|
|
20250
|
-
const mountEvent = new Event(FOCUS_ON_MOUNT, FOCUS_ON_MOUNT_OPTS);
|
|
20251
|
-
trapContainer.addEventListener(FOCUS_ON_MOUNT, focusOnMount);
|
|
20252
|
-
trapContainer.dispatchEvent(mountEvent);
|
|
20253
|
-
if (!mountEvent.defaultPrevented) {
|
|
20254
|
-
nextTick(() => {
|
|
20255
|
-
focusFirstDescendant(obtainAllFocusableElements(trapContainer), true);
|
|
20256
|
-
if (document.activeElement === prevFocusedElement) {
|
|
20257
|
-
tryFocus(trapContainer);
|
|
20258
|
-
}
|
|
20259
|
-
});
|
|
20260
|
-
}
|
|
20261
|
-
}
|
|
20262
|
-
}
|
|
20263
|
-
watch(() => props.trapped, (trapped) => {
|
|
20264
|
-
if (trapped) {
|
|
20265
|
-
document.addEventListener("focusin", onFocusIn);
|
|
20266
|
-
document.addEventListener("focusout", onFocusOut);
|
|
20267
|
-
} else {
|
|
20268
|
-
cleanupDocumentListeners();
|
|
20269
|
-
}
|
|
20270
|
-
}, { immediate: true });
|
|
20271
|
-
});
|
|
20272
|
-
onBeforeUnmount(() => {
|
|
20273
|
-
cleanupDocumentListeners();
|
|
20274
|
-
const trapContainer = unref(forwardRef);
|
|
20275
|
-
if (trapContainer) {
|
|
20276
|
-
trapContainer.removeEventListener(FOCUS_ON_MOUNT, focusOnMount);
|
|
20277
|
-
const unmountEvent = new Event(FOCUS_ON_UNMOUNT, FOCUS_ON_MOUNT_OPTS);
|
|
20278
|
-
trapContainer.addEventListener(FOCUS_ON_UNMOUNT, focusOnUnmount);
|
|
20279
|
-
trapContainer.dispatchEvent(unmountEvent);
|
|
20280
|
-
if (!unmountEvent.defaultPrevented) {
|
|
20281
|
-
tryFocus(lastFocusBeforeMounted != null ? lastFocusBeforeMounted : document.body, true);
|
|
20282
|
-
}
|
|
20283
|
-
trapContainer.removeEventListener(FOCUS_ON_UNMOUNT, focusOnMount);
|
|
20284
|
-
focusableStack.remove(focusLayer);
|
|
20285
|
-
}
|
|
20286
|
-
});
|
|
20287
|
-
return {
|
|
20288
|
-
focusTrapRef,
|
|
20289
|
-
forwardRef,
|
|
20290
|
-
onKeydown
|
|
20291
|
-
};
|
|
20292
|
-
}
|
|
20293
|
-
});
|
|
20294
|
-
function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) {
|
|
20295
|
-
return renderSlot(_ctx.$slots, "default");
|
|
20296
|
-
}
|
|
20297
|
-
var ElFocusTrap = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["render", _sfc_render$14]]);
|
|
20298
|
-
|
|
20299
20129
|
const dialogContentProps = buildProps({
|
|
20300
20130
|
center: {
|
|
20301
20131
|
type: Boolean,
|
|
@@ -20330,22 +20160,19 @@ const dialogContentEmits = {
|
|
|
20330
20160
|
close: () => true
|
|
20331
20161
|
};
|
|
20332
20162
|
|
|
20333
|
-
const elDialogInjectionKey = Symbol("elDialogInjectionKey");
|
|
20334
|
-
|
|
20335
20163
|
const _hoisted_1$y = ["aria-label"];
|
|
20336
|
-
const __default__$
|
|
20337
|
-
const _sfc_main$
|
|
20338
|
-
...__default__$
|
|
20164
|
+
const __default__$2 = { name: "ElDialogContent" };
|
|
20165
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
20166
|
+
...__default__$2,
|
|
20339
20167
|
props: dialogContentProps,
|
|
20340
20168
|
emits: dialogContentEmits,
|
|
20341
20169
|
setup(__props) {
|
|
20342
20170
|
const { Close } = CloseComponents;
|
|
20343
|
-
const { dialogRef, headerRef, ns, style } = inject(
|
|
20344
|
-
const { focusTrapRef, onKeydown } = inject(FOCUS_TRAP_INJECTION_KEY);
|
|
20345
|
-
const composedDialogRef = composeRefs(focusTrapRef, dialogRef);
|
|
20171
|
+
const { dialogRef, headerRef, ns, style } = inject(dialogInjectionKey);
|
|
20346
20172
|
return (_ctx, _cache) => {
|
|
20347
20173
|
return openBlock(), createElementBlock("div", {
|
|
20348
|
-
|
|
20174
|
+
ref_key: "dialogRef",
|
|
20175
|
+
ref: dialogRef,
|
|
20349
20176
|
class: normalizeClass([
|
|
20350
20177
|
unref(ns).b(),
|
|
20351
20178
|
unref(ns).is("fullscreen", _ctx.fullscreen),
|
|
@@ -20358,8 +20185,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
20358
20185
|
"aria-label": _ctx.title || "dialog",
|
|
20359
20186
|
style: normalizeStyle(unref(style)),
|
|
20360
20187
|
onClick: _cache[1] || (_cache[1] = withModifiers(() => {
|
|
20361
|
-
}, ["stop"]))
|
|
20362
|
-
onKeydown: _cache[2] || (_cache[2] = (...args) => unref(onKeydown) && unref(onKeydown)(...args))
|
|
20188
|
+
}, ["stop"]))
|
|
20363
20189
|
}, [
|
|
20364
20190
|
createElementVNode("div", {
|
|
20365
20191
|
ref_key: "headerRef",
|
|
@@ -20399,11 +20225,11 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
20399
20225
|
_: 1
|
|
20400
20226
|
}, 8, ["class"])
|
|
20401
20227
|
], 2)) : createCommentVNode("v-if", true)
|
|
20402
|
-
],
|
|
20228
|
+
], 14, _hoisted_1$y);
|
|
20403
20229
|
};
|
|
20404
20230
|
}
|
|
20405
20231
|
});
|
|
20406
|
-
var ElDialogContent = _sfc_main$
|
|
20232
|
+
var ElDialogContent = _sfc_main$1a;
|
|
20407
20233
|
|
|
20408
20234
|
const dialogProps = buildProps({
|
|
20409
20235
|
...dialogContentProps,
|
|
@@ -20455,6 +20281,10 @@ const dialogProps = buildProps({
|
|
|
20455
20281
|
},
|
|
20456
20282
|
zIndex: {
|
|
20457
20283
|
type: Number
|
|
20284
|
+
},
|
|
20285
|
+
trapFocus: {
|
|
20286
|
+
type: Boolean,
|
|
20287
|
+
default: false
|
|
20458
20288
|
}
|
|
20459
20289
|
});
|
|
20460
20290
|
const dialogEmits = {
|
|
@@ -20462,17 +20292,19 @@ const dialogEmits = {
|
|
|
20462
20292
|
opened: () => true,
|
|
20463
20293
|
close: () => true,
|
|
20464
20294
|
closed: () => true,
|
|
20465
|
-
[UPDATE_MODEL_EVENT]: (value) =>
|
|
20295
|
+
[UPDATE_MODEL_EVENT]: (value) => isBoolean(value),
|
|
20466
20296
|
openAutoFocus: () => true,
|
|
20467
20297
|
closeAutoFocus: () => true
|
|
20468
20298
|
};
|
|
20469
20299
|
|
|
20470
|
-
const useDialog = (props,
|
|
20300
|
+
const useDialog = (props, targetRef) => {
|
|
20301
|
+
const instance = getCurrentInstance();
|
|
20302
|
+
const emit = instance.emit;
|
|
20303
|
+
const { nextZIndex } = useZIndex();
|
|
20471
20304
|
let lastPosition = "";
|
|
20472
20305
|
const visible = ref(false);
|
|
20473
20306
|
const closed = ref(false);
|
|
20474
20307
|
const rendered = ref(false);
|
|
20475
|
-
const { nextZIndex } = useZIndex();
|
|
20476
20308
|
const zIndex = ref(props.zIndex || nextZIndex());
|
|
20477
20309
|
let openTimer = void 0;
|
|
20478
20310
|
let closeTimer = void 0;
|
|
@@ -20521,13 +20353,13 @@ const useDialog = (props, { emit }, targetRef) => {
|
|
|
20521
20353
|
doClose();
|
|
20522
20354
|
}
|
|
20523
20355
|
}
|
|
20524
|
-
function hide(shouldCancel) {
|
|
20525
|
-
if (shouldCancel)
|
|
20526
|
-
return;
|
|
20527
|
-
closed.value = true;
|
|
20528
|
-
visible.value = false;
|
|
20529
|
-
}
|
|
20530
20356
|
function handleClose() {
|
|
20357
|
+
function hide(shouldCancel) {
|
|
20358
|
+
if (shouldCancel)
|
|
20359
|
+
return;
|
|
20360
|
+
closed.value = true;
|
|
20361
|
+
visible.value = false;
|
|
20362
|
+
}
|
|
20531
20363
|
if (props.beforeClose) {
|
|
20532
20364
|
props.beforeClose(hide);
|
|
20533
20365
|
} else {
|
|
@@ -20540,9 +20372,8 @@ const useDialog = (props, { emit }, targetRef) => {
|
|
|
20540
20372
|
}
|
|
20541
20373
|
}
|
|
20542
20374
|
function doOpen() {
|
|
20543
|
-
if (!isClient)
|
|
20375
|
+
if (!isClient)
|
|
20544
20376
|
return;
|
|
20545
|
-
}
|
|
20546
20377
|
visible.value = true;
|
|
20547
20378
|
}
|
|
20548
20379
|
function doClose() {
|
|
@@ -20608,38 +20439,42 @@ const useDialog = (props, { emit }, targetRef) => {
|
|
|
20608
20439
|
};
|
|
20609
20440
|
};
|
|
20610
20441
|
|
|
20611
|
-
const __default__ = {
|
|
20442
|
+
const __default__$1 = {
|
|
20612
20443
|
name: "ElDialog"
|
|
20613
20444
|
};
|
|
20614
|
-
const _sfc_main$
|
|
20615
|
-
...__default__,
|
|
20445
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
20446
|
+
...__default__$1,
|
|
20616
20447
|
props: dialogProps,
|
|
20617
20448
|
emits: dialogEmits,
|
|
20618
|
-
setup(__props, {
|
|
20449
|
+
setup(__props, { expose }) {
|
|
20619
20450
|
const props = __props;
|
|
20620
20451
|
const ns = useNamespace("dialog");
|
|
20621
|
-
const dialogRef = ref(
|
|
20622
|
-
const headerRef = ref(
|
|
20623
|
-
const dialog = useDialog(props, { emit }, dialogRef);
|
|
20452
|
+
const dialogRef = ref();
|
|
20453
|
+
const headerRef = ref();
|
|
20624
20454
|
const {
|
|
20625
20455
|
visible,
|
|
20456
|
+
style,
|
|
20457
|
+
rendered,
|
|
20458
|
+
zIndex,
|
|
20626
20459
|
afterEnter,
|
|
20627
20460
|
afterLeave,
|
|
20628
20461
|
beforeLeave,
|
|
20629
|
-
style,
|
|
20630
20462
|
handleClose,
|
|
20631
|
-
|
|
20632
|
-
} =
|
|
20633
|
-
provide(
|
|
20463
|
+
onModalClick
|
|
20464
|
+
} = useDialog(props, dialogRef);
|
|
20465
|
+
provide(dialogInjectionKey, {
|
|
20634
20466
|
dialogRef,
|
|
20635
20467
|
headerRef,
|
|
20636
20468
|
ns,
|
|
20637
20469
|
rendered,
|
|
20638
20470
|
style
|
|
20639
20471
|
});
|
|
20640
|
-
const overlayEvent = useSameTarget(
|
|
20472
|
+
const overlayEvent = useSameTarget(onModalClick);
|
|
20641
20473
|
const draggable = computed(() => props.draggable && !props.fullscreen);
|
|
20642
20474
|
useDraggable(dialogRef, headerRef, draggable);
|
|
20475
|
+
expose({
|
|
20476
|
+
visible
|
|
20477
|
+
});
|
|
20643
20478
|
return (_ctx, _cache) => {
|
|
20644
20479
|
return openBlock(), createBlock(Teleport, {
|
|
20645
20480
|
to: "body",
|
|
@@ -20656,48 +20491,38 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
20656
20491
|
"custom-mask-event": "",
|
|
20657
20492
|
mask: _ctx.modal,
|
|
20658
20493
|
"overlay-class": _ctx.modalClass,
|
|
20659
|
-
"z-index":
|
|
20494
|
+
"z-index": unref(zIndex)
|
|
20660
20495
|
}, {
|
|
20661
20496
|
default: withCtx(() => [
|
|
20662
20497
|
createElementVNode("div", {
|
|
20663
20498
|
class: normalizeClass(`${unref(ns).namespace.value}-overlay-dialog`),
|
|
20664
|
-
onClick: _cache[
|
|
20665
|
-
onMousedown: _cache[
|
|
20666
|
-
onMouseup: _cache[
|
|
20499
|
+
onClick: _cache[0] || (_cache[0] = (...args) => unref(overlayEvent).onClick && unref(overlayEvent).onClick(...args)),
|
|
20500
|
+
onMousedown: _cache[1] || (_cache[1] = (...args) => unref(overlayEvent).onMousedown && unref(overlayEvent).onMousedown(...args)),
|
|
20501
|
+
onMouseup: _cache[2] || (_cache[2] = (...args) => unref(overlayEvent).onMouseup && unref(overlayEvent).onMouseup(...args))
|
|
20667
20502
|
}, [
|
|
20668
|
-
unref(rendered) ? (openBlock(), createBlock(
|
|
20503
|
+
unref(rendered) ? (openBlock(), createBlock(ElDialogContent, {
|
|
20669
20504
|
key: 0,
|
|
20670
|
-
|
|
20671
|
-
|
|
20672
|
-
|
|
20673
|
-
|
|
20505
|
+
"custom-class": _ctx.customClass,
|
|
20506
|
+
center: _ctx.center,
|
|
20507
|
+
"close-icon": _ctx.closeIcon,
|
|
20508
|
+
draggable: unref(draggable),
|
|
20509
|
+
fullscreen: _ctx.fullscreen,
|
|
20510
|
+
"show-close": _ctx.showClose,
|
|
20511
|
+
style: normalizeStyle(unref(style)),
|
|
20512
|
+
title: _ctx.title,
|
|
20513
|
+
onClose: unref(handleClose)
|
|
20674
20514
|
}, {
|
|
20515
|
+
title: withCtx(() => [
|
|
20516
|
+
renderSlot(_ctx.$slots, "title")
|
|
20517
|
+
]),
|
|
20518
|
+
footer: withCtx(() => [
|
|
20519
|
+
renderSlot(_ctx.$slots, "footer")
|
|
20520
|
+
]),
|
|
20675
20521
|
default: withCtx(() => [
|
|
20676
|
-
|
|
20677
|
-
"custom-class": _ctx.customClass,
|
|
20678
|
-
center: _ctx.center,
|
|
20679
|
-
"close-icon": _ctx.closeIcon,
|
|
20680
|
-
draggable: unref(draggable),
|
|
20681
|
-
fullscreen: _ctx.fullscreen,
|
|
20682
|
-
"show-close": _ctx.showClose,
|
|
20683
|
-
style: normalizeStyle(unref(style)),
|
|
20684
|
-
title: _ctx.title,
|
|
20685
|
-
onClose: unref(handleClose)
|
|
20686
|
-
}, {
|
|
20687
|
-
title: withCtx(() => [
|
|
20688
|
-
renderSlot(_ctx.$slots, "title")
|
|
20689
|
-
]),
|
|
20690
|
-
footer: withCtx(() => [
|
|
20691
|
-
renderSlot(_ctx.$slots, "footer")
|
|
20692
|
-
]),
|
|
20693
|
-
default: withCtx(() => [
|
|
20694
|
-
renderSlot(_ctx.$slots, "default")
|
|
20695
|
-
]),
|
|
20696
|
-
_: 3
|
|
20697
|
-
}, 8, ["custom-class", "center", "close-icon", "draggable", "fullscreen", "show-close", "style", "title", "onClose"])
|
|
20522
|
+
renderSlot(_ctx.$slots, "default")
|
|
20698
20523
|
]),
|
|
20699
20524
|
_: 3
|
|
20700
|
-
})) : createCommentVNode("v-if", true)
|
|
20525
|
+
}, 8, ["custom-class", "center", "close-icon", "draggable", "fullscreen", "show-close", "style", "title", "onClose"])) : createCommentVNode("v-if", true)
|
|
20701
20526
|
], 34)
|
|
20702
20527
|
]),
|
|
20703
20528
|
_: 3
|
|
@@ -20711,7 +20536,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
20711
20536
|
};
|
|
20712
20537
|
}
|
|
20713
20538
|
});
|
|
20714
|
-
var Dialog = _sfc_main$
|
|
20539
|
+
var Dialog = _sfc_main$19;
|
|
20715
20540
|
|
|
20716
20541
|
const ElDialog = withInstall(Dialog);
|
|
20717
20542
|
|
|
@@ -20732,7 +20557,7 @@ const dividerProps = buildProps({
|
|
|
20732
20557
|
}
|
|
20733
20558
|
});
|
|
20734
20559
|
|
|
20735
|
-
const _sfc_main$
|
|
20560
|
+
const _sfc_main$18 = defineComponent({
|
|
20736
20561
|
name: "ElDivider",
|
|
20737
20562
|
props: dividerProps,
|
|
20738
20563
|
setup(props) {
|
|
@@ -20761,7 +20586,7 @@ function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
20761
20586
|
], 2)) : createCommentVNode("v-if", true)
|
|
20762
20587
|
], 6);
|
|
20763
20588
|
}
|
|
20764
|
-
var Divider = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20589
|
+
var Divider = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["render", _sfc_render$13]]);
|
|
20765
20590
|
|
|
20766
20591
|
const ElDivider = withInstall(Divider);
|
|
20767
20592
|
|
|
@@ -20787,7 +20612,7 @@ const drawerProps = buildProps({
|
|
|
20787
20612
|
});
|
|
20788
20613
|
const drawerEmits = dialogEmits;
|
|
20789
20614
|
|
|
20790
|
-
const _sfc_main$
|
|
20615
|
+
const _sfc_main$17 = defineComponent({
|
|
20791
20616
|
name: "ElDrawer",
|
|
20792
20617
|
components: {
|
|
20793
20618
|
ElOverlay,
|
|
@@ -20805,7 +20630,7 @@ const _sfc_main$16 = defineComponent({
|
|
|
20805
20630
|
const isHorizontal = computed(() => props.direction === "rtl" || props.direction === "ltr");
|
|
20806
20631
|
const drawerSize = computed(() => typeof props.size === "number" ? `${props.size}px` : props.size);
|
|
20807
20632
|
return {
|
|
20808
|
-
...useDialog(props, ctx
|
|
20633
|
+
...useDialog(props, ctx),
|
|
20809
20634
|
drawerRef,
|
|
20810
20635
|
isHorizontal,
|
|
20811
20636
|
drawerSize,
|
|
@@ -20904,26 +20729,263 @@ function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
20904
20729
|
}, 8, ["name", "onAfterEnter", "onAfterLeave", "onBeforeLeave"])
|
|
20905
20730
|
], 8, ["disabled"]);
|
|
20906
20731
|
}
|
|
20907
|
-
var Drawer = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20732
|
+
var Drawer = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["render", _sfc_render$12]]);
|
|
20908
20733
|
|
|
20909
20734
|
const ElDrawer = withInstall(Drawer);
|
|
20910
20735
|
|
|
20736
|
+
const obtainAllFocusableElements = (element) => {
|
|
20737
|
+
const nodes = [];
|
|
20738
|
+
const walker = document.createTreeWalker(element, NodeFilter.SHOW_ELEMENT, {
|
|
20739
|
+
acceptNode: (node) => {
|
|
20740
|
+
const isHiddenInput = node.tagName === "INPUT" && node.type === "hidden";
|
|
20741
|
+
if (node.disabled || node.hidden || isHiddenInput)
|
|
20742
|
+
return NodeFilter.FILTER_SKIP;
|
|
20743
|
+
return node.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
20744
|
+
}
|
|
20745
|
+
});
|
|
20746
|
+
while (walker.nextNode())
|
|
20747
|
+
nodes.push(walker.currentNode);
|
|
20748
|
+
return nodes;
|
|
20749
|
+
};
|
|
20750
|
+
const getVisibleElement = (elements, container) => {
|
|
20751
|
+
for (const element of elements) {
|
|
20752
|
+
if (!isHidden(element, container))
|
|
20753
|
+
return element;
|
|
20754
|
+
}
|
|
20755
|
+
};
|
|
20756
|
+
const isHidden = (element, container) => {
|
|
20757
|
+
if (getComputedStyle(element).visibility === "hidden")
|
|
20758
|
+
return true;
|
|
20759
|
+
while (element) {
|
|
20760
|
+
if (container && element === container)
|
|
20761
|
+
return false;
|
|
20762
|
+
if (getComputedStyle(element).display === "none")
|
|
20763
|
+
return true;
|
|
20764
|
+
element = element.parentElement;
|
|
20765
|
+
}
|
|
20766
|
+
return false;
|
|
20767
|
+
};
|
|
20768
|
+
const getEdges = (container) => {
|
|
20769
|
+
const focusable = obtainAllFocusableElements(container);
|
|
20770
|
+
const first = getVisibleElement(focusable, container);
|
|
20771
|
+
const last = getVisibleElement(focusable.reverse(), container);
|
|
20772
|
+
return [first, last];
|
|
20773
|
+
};
|
|
20774
|
+
const isSelectable = (element) => {
|
|
20775
|
+
return element instanceof HTMLInputElement && "select" in element;
|
|
20776
|
+
};
|
|
20777
|
+
const tryFocus = (element, shouldSelect) => {
|
|
20778
|
+
if (element && element.focus) {
|
|
20779
|
+
const prevFocusedElement = document.activeElement;
|
|
20780
|
+
element.focus({ preventScroll: true });
|
|
20781
|
+
if (element !== prevFocusedElement && isSelectable(element) && shouldSelect) {
|
|
20782
|
+
element.select();
|
|
20783
|
+
}
|
|
20784
|
+
}
|
|
20785
|
+
};
|
|
20786
|
+
function removeFromStack(list, item) {
|
|
20787
|
+
const copy = [...list];
|
|
20788
|
+
const idx = list.indexOf(item);
|
|
20789
|
+
if (idx !== -1) {
|
|
20790
|
+
copy.splice(idx, 1);
|
|
20791
|
+
}
|
|
20792
|
+
return copy;
|
|
20793
|
+
}
|
|
20794
|
+
const createFocusableStack = () => {
|
|
20795
|
+
let stack = [];
|
|
20796
|
+
const push = (layer) => {
|
|
20797
|
+
const currentLayer = stack[0];
|
|
20798
|
+
if (currentLayer && layer !== currentLayer) {
|
|
20799
|
+
currentLayer.pause();
|
|
20800
|
+
}
|
|
20801
|
+
stack = removeFromStack(stack, layer);
|
|
20802
|
+
stack.unshift(layer);
|
|
20803
|
+
};
|
|
20804
|
+
const remove = (layer) => {
|
|
20805
|
+
var _a, _b;
|
|
20806
|
+
stack = removeFromStack(stack, layer);
|
|
20807
|
+
(_b = (_a = stack[0]) == null ? void 0 : _a.resume) == null ? void 0 : _b.call(_a);
|
|
20808
|
+
};
|
|
20809
|
+
return {
|
|
20810
|
+
push,
|
|
20811
|
+
remove
|
|
20812
|
+
};
|
|
20813
|
+
};
|
|
20814
|
+
const focusFirstDescendant = (elements, shouldSelect = false) => {
|
|
20815
|
+
const prevFocusedElement = document.activeElement;
|
|
20816
|
+
for (const element of elements) {
|
|
20817
|
+
tryFocus(element, shouldSelect);
|
|
20818
|
+
if (document.activeElement !== prevFocusedElement)
|
|
20819
|
+
return;
|
|
20820
|
+
}
|
|
20821
|
+
};
|
|
20822
|
+
const focusableStack = createFocusableStack();
|
|
20823
|
+
|
|
20824
|
+
const FOCUS_ON_MOUNT = "focus-trap.focus-on-mount";
|
|
20825
|
+
const FOCUS_ON_UNMOUNT = "focus-trap.focus-on-unmount";
|
|
20826
|
+
const FOCUS_ON_MOUNT_OPTS = {
|
|
20827
|
+
cancelable: true,
|
|
20828
|
+
bubbles: false
|
|
20829
|
+
};
|
|
20830
|
+
const ON_MOUNT_FOCUS_EVT = "mountOnFocus";
|
|
20831
|
+
const ON_UNMOUNT_FOCUS_EVT = "unmountOnFocus";
|
|
20832
|
+
const FOCUS_TRAP_INJECTION_KEY = Symbol("elFocusTrap");
|
|
20833
|
+
|
|
20834
|
+
const _sfc_main$16 = defineComponent({
|
|
20835
|
+
name: "ElFocusTrap",
|
|
20836
|
+
inheritAttrs: false,
|
|
20837
|
+
props: {
|
|
20838
|
+
loop: Boolean,
|
|
20839
|
+
trapped: Boolean
|
|
20840
|
+
},
|
|
20841
|
+
emits: [ON_MOUNT_FOCUS_EVT, ON_UNMOUNT_FOCUS_EVT],
|
|
20842
|
+
setup(props, { emit }) {
|
|
20843
|
+
const focusTrapRef = ref();
|
|
20844
|
+
const forwardRef = ref(null);
|
|
20845
|
+
let lastFocusBeforeMounted;
|
|
20846
|
+
let lastFocusAfterMounted;
|
|
20847
|
+
const focusLayer = {
|
|
20848
|
+
paused: false,
|
|
20849
|
+
pause() {
|
|
20850
|
+
this.paused = true;
|
|
20851
|
+
},
|
|
20852
|
+
resume() {
|
|
20853
|
+
this.paused = false;
|
|
20854
|
+
}
|
|
20855
|
+
};
|
|
20856
|
+
const onKeydown = (e) => {
|
|
20857
|
+
if (!props.loop && !props.trapped)
|
|
20858
|
+
return;
|
|
20859
|
+
if (focusLayer.paused)
|
|
20860
|
+
return;
|
|
20861
|
+
const { key, altKey, ctrlKey, metaKey, currentTarget, shiftKey } = e;
|
|
20862
|
+
const { loop } = props;
|
|
20863
|
+
const isTabbing = key === EVENT_CODE.tab && !altKey && !ctrlKey && !metaKey;
|
|
20864
|
+
const currentFocusingEl = document.activeElement;
|
|
20865
|
+
if (isTabbing && currentFocusingEl) {
|
|
20866
|
+
const container = currentTarget;
|
|
20867
|
+
const [first, last] = getEdges(container);
|
|
20868
|
+
const isTabbable = first && last;
|
|
20869
|
+
if (!isTabbable) {
|
|
20870
|
+
if (currentFocusingEl === container)
|
|
20871
|
+
e.preventDefault();
|
|
20872
|
+
} else {
|
|
20873
|
+
if (!shiftKey && currentFocusingEl === last) {
|
|
20874
|
+
e.preventDefault();
|
|
20875
|
+
if (loop)
|
|
20876
|
+
tryFocus(first, true);
|
|
20877
|
+
} else if (shiftKey && currentFocusingEl === first) {
|
|
20878
|
+
e.preventDefault();
|
|
20879
|
+
if (loop)
|
|
20880
|
+
tryFocus(last, true);
|
|
20881
|
+
}
|
|
20882
|
+
}
|
|
20883
|
+
}
|
|
20884
|
+
};
|
|
20885
|
+
provide(FOCUS_TRAP_INJECTION_KEY, {
|
|
20886
|
+
focusTrapRef: forwardRef,
|
|
20887
|
+
onKeydown
|
|
20888
|
+
});
|
|
20889
|
+
const focusOnMount = (e) => {
|
|
20890
|
+
emit(ON_MOUNT_FOCUS_EVT, e);
|
|
20891
|
+
};
|
|
20892
|
+
const focusOnUnmount = (e) => emit(ON_UNMOUNT_FOCUS_EVT, e);
|
|
20893
|
+
const onFocusIn = (e) => {
|
|
20894
|
+
const trapContainer = unref(forwardRef);
|
|
20895
|
+
if (focusLayer.paused || !trapContainer)
|
|
20896
|
+
return;
|
|
20897
|
+
const target = e.target;
|
|
20898
|
+
if (target && trapContainer.contains(target)) {
|
|
20899
|
+
lastFocusAfterMounted = target;
|
|
20900
|
+
} else {
|
|
20901
|
+
tryFocus(lastFocusAfterMounted, true);
|
|
20902
|
+
}
|
|
20903
|
+
};
|
|
20904
|
+
const onFocusOut = (e) => {
|
|
20905
|
+
const trapContainer = unref(forwardRef);
|
|
20906
|
+
if (focusLayer.paused || !trapContainer)
|
|
20907
|
+
return;
|
|
20908
|
+
if (!trapContainer.contains(e.relatedTarget)) {
|
|
20909
|
+
tryFocus(lastFocusAfterMounted, true);
|
|
20910
|
+
}
|
|
20911
|
+
};
|
|
20912
|
+
const cleanupDocumentListeners = () => {
|
|
20913
|
+
document.removeEventListener("focusin", onFocusIn);
|
|
20914
|
+
document.removeEventListener("focusout", onFocusOut);
|
|
20915
|
+
};
|
|
20916
|
+
onMounted(() => {
|
|
20917
|
+
const trapContainer = unref(forwardRef);
|
|
20918
|
+
if (trapContainer) {
|
|
20919
|
+
focusableStack.push(focusLayer);
|
|
20920
|
+
const prevFocusedElement = document.activeElement;
|
|
20921
|
+
lastFocusBeforeMounted = prevFocusedElement;
|
|
20922
|
+
const isPrevFocusContained = trapContainer.contains(prevFocusedElement);
|
|
20923
|
+
if (!isPrevFocusContained) {
|
|
20924
|
+
const mountEvent = new Event(FOCUS_ON_MOUNT, FOCUS_ON_MOUNT_OPTS);
|
|
20925
|
+
trapContainer.addEventListener(FOCUS_ON_MOUNT, focusOnMount);
|
|
20926
|
+
trapContainer.dispatchEvent(mountEvent);
|
|
20927
|
+
if (!mountEvent.defaultPrevented) {
|
|
20928
|
+
nextTick(() => {
|
|
20929
|
+
focusFirstDescendant(obtainAllFocusableElements(trapContainer), true);
|
|
20930
|
+
if (document.activeElement === prevFocusedElement) {
|
|
20931
|
+
tryFocus(trapContainer);
|
|
20932
|
+
}
|
|
20933
|
+
});
|
|
20934
|
+
}
|
|
20935
|
+
}
|
|
20936
|
+
}
|
|
20937
|
+
watch(() => props.trapped, (trapped) => {
|
|
20938
|
+
if (trapped) {
|
|
20939
|
+
document.addEventListener("focusin", onFocusIn);
|
|
20940
|
+
document.addEventListener("focusout", onFocusOut);
|
|
20941
|
+
} else {
|
|
20942
|
+
cleanupDocumentListeners();
|
|
20943
|
+
}
|
|
20944
|
+
}, { immediate: true });
|
|
20945
|
+
});
|
|
20946
|
+
onBeforeUnmount(() => {
|
|
20947
|
+
cleanupDocumentListeners();
|
|
20948
|
+
const trapContainer = unref(forwardRef);
|
|
20949
|
+
if (trapContainer) {
|
|
20950
|
+
trapContainer.removeEventListener(FOCUS_ON_MOUNT, focusOnMount);
|
|
20951
|
+
const unmountEvent = new Event(FOCUS_ON_UNMOUNT, FOCUS_ON_MOUNT_OPTS);
|
|
20952
|
+
trapContainer.addEventListener(FOCUS_ON_UNMOUNT, focusOnUnmount);
|
|
20953
|
+
trapContainer.dispatchEvent(unmountEvent);
|
|
20954
|
+
if (!unmountEvent.defaultPrevented) {
|
|
20955
|
+
tryFocus(lastFocusBeforeMounted != null ? lastFocusBeforeMounted : document.body, true);
|
|
20956
|
+
}
|
|
20957
|
+
trapContainer.removeEventListener(FOCUS_ON_UNMOUNT, focusOnMount);
|
|
20958
|
+
focusableStack.remove(focusLayer);
|
|
20959
|
+
}
|
|
20960
|
+
});
|
|
20961
|
+
return {
|
|
20962
|
+
focusTrapRef,
|
|
20963
|
+
forwardRef,
|
|
20964
|
+
onKeydown
|
|
20965
|
+
};
|
|
20966
|
+
}
|
|
20967
|
+
});
|
|
20968
|
+
function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
|
|
20969
|
+
return renderSlot(_ctx.$slots, "default");
|
|
20970
|
+
}
|
|
20971
|
+
var ElFocusTrap = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["render", _sfc_render$11]]);
|
|
20972
|
+
|
|
20911
20973
|
const _sfc_main$15 = defineComponent({
|
|
20912
20974
|
inheritAttrs: false
|
|
20913
20975
|
});
|
|
20914
|
-
function _sfc_render$
|
|
20976
|
+
function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
|
|
20915
20977
|
return renderSlot(_ctx.$slots, "default");
|
|
20916
20978
|
}
|
|
20917
|
-
var Collection = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["render", _sfc_render$
|
|
20979
|
+
var Collection = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["render", _sfc_render$10]]);
|
|
20918
20980
|
|
|
20919
20981
|
const _sfc_main$14 = defineComponent({
|
|
20920
20982
|
name: "ElCollectionItem",
|
|
20921
20983
|
inheritAttrs: false
|
|
20922
20984
|
});
|
|
20923
|
-
function _sfc_render
|
|
20985
|
+
function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
|
|
20924
20986
|
return renderSlot(_ctx.$slots, "default");
|
|
20925
20987
|
}
|
|
20926
|
-
var CollectionItem = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["render", _sfc_render
|
|
20988
|
+
var CollectionItem = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["render", _sfc_render$$]]);
|
|
20927
20989
|
|
|
20928
20990
|
const COLLECTION_ITEM_SIGN = `data-el-collection-item`;
|
|
20929
20991
|
const createCollectionWithScope = (name) => {
|
|
@@ -21151,10 +21213,10 @@ const _sfc_main$13 = defineComponent({
|
|
|
21151
21213
|
});
|
|
21152
21214
|
}
|
|
21153
21215
|
});
|
|
21154
|
-
function _sfc_render
|
|
21216
|
+
function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
|
|
21155
21217
|
return renderSlot(_ctx.$slots, "default");
|
|
21156
21218
|
}
|
|
21157
|
-
var ElRovingFocusGroupImpl = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["render", _sfc_render
|
|
21219
|
+
var ElRovingFocusGroupImpl = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["render", _sfc_render$_]]);
|
|
21158
21220
|
|
|
21159
21221
|
const _sfc_main$12 = defineComponent({
|
|
21160
21222
|
name: "ElRovingFocusGroup",
|
|
@@ -21163,7 +21225,7 @@ const _sfc_main$12 = defineComponent({
|
|
|
21163
21225
|
ElRovingFocusGroupImpl
|
|
21164
21226
|
}
|
|
21165
21227
|
});
|
|
21166
|
-
function _sfc_render$
|
|
21228
|
+
function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
21167
21229
|
const _component_el_roving_focus_group_impl = resolveComponent("el-roving-focus-group-impl");
|
|
21168
21230
|
const _component_el_focus_group_collection = resolveComponent("el-focus-group-collection");
|
|
21169
21231
|
return openBlock(), createBlock(_component_el_focus_group_collection, null, {
|
|
@@ -21178,7 +21240,7 @@ function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
21178
21240
|
_: 3
|
|
21179
21241
|
});
|
|
21180
21242
|
}
|
|
21181
|
-
var ElRovingFocusGroup = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["render", _sfc_render$
|
|
21243
|
+
var ElRovingFocusGroup = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["render", _sfc_render$Z]]);
|
|
21182
21244
|
|
|
21183
21245
|
const _sfc_main$11 = defineComponent({
|
|
21184
21246
|
components: {
|
|
@@ -21265,7 +21327,7 @@ const _sfc_main$11 = defineComponent({
|
|
|
21265
21327
|
};
|
|
21266
21328
|
}
|
|
21267
21329
|
});
|
|
21268
|
-
function _sfc_render$
|
|
21330
|
+
function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
21269
21331
|
const _component_el_roving_focus_collection_item = resolveComponent("el-roving-focus-collection-item");
|
|
21270
21332
|
return openBlock(), createBlock(_component_el_roving_focus_collection_item, {
|
|
21271
21333
|
id: _ctx.id,
|
|
@@ -21278,7 +21340,7 @@ function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
21278
21340
|
_: 3
|
|
21279
21341
|
}, 8, ["id", "focusable", "active"]);
|
|
21280
21342
|
}
|
|
21281
|
-
var ElRovingFocusItem = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["render", _sfc_render$
|
|
21343
|
+
var ElRovingFocusItem = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["render", _sfc_render$Y]]);
|
|
21282
21344
|
|
|
21283
21345
|
const dropdownProps = buildProps({
|
|
21284
21346
|
trigger: useTooltipTriggerProps.trigger,
|
|
@@ -21465,7 +21527,7 @@ const _sfc_main$10 = defineComponent({
|
|
|
21465
21527
|
};
|
|
21466
21528
|
}
|
|
21467
21529
|
});
|
|
21468
|
-
function _sfc_render$
|
|
21530
|
+
function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
|
|
21469
21531
|
var _a;
|
|
21470
21532
|
const _component_el_dropdown_collection = resolveComponent("el-dropdown-collection");
|
|
21471
21533
|
const _component_el_roving_focus_group = resolveComponent("el-roving-focus-group");
|
|
@@ -21588,7 +21650,7 @@ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
21588
21650
|
})) : createCommentVNode("v-if", true)
|
|
21589
21651
|
], 2);
|
|
21590
21652
|
}
|
|
21591
|
-
var Dropdown = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["render", _sfc_render$
|
|
21653
|
+
var Dropdown = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["render", _sfc_render$X]]);
|
|
21592
21654
|
|
|
21593
21655
|
const _sfc_main$$ = defineComponent({
|
|
21594
21656
|
name: "DropdownItemImpl",
|
|
@@ -21632,7 +21694,7 @@ const _sfc_main$$ = defineComponent({
|
|
|
21632
21694
|
}
|
|
21633
21695
|
});
|
|
21634
21696
|
const _hoisted_1$w = ["aria-disabled", "tabindex"];
|
|
21635
|
-
function _sfc_render$
|
|
21697
|
+
function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
21636
21698
|
const _component_el_icon = resolveComponent("el-icon");
|
|
21637
21699
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
21638
21700
|
_ctx.divided ? (openBlock(), createElementBlock("li", mergeProps({
|
|
@@ -21661,7 +21723,7 @@ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
21661
21723
|
], 16, _hoisted_1$w)
|
|
21662
21724
|
], 64);
|
|
21663
21725
|
}
|
|
21664
|
-
var ElDropdownItemImpl = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["render", _sfc_render$
|
|
21726
|
+
var ElDropdownItemImpl = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["render", _sfc_render$W]]);
|
|
21665
21727
|
|
|
21666
21728
|
const useDropdown = () => {
|
|
21667
21729
|
const elDropdown = inject("elDropdown", {});
|
|
@@ -21737,7 +21799,7 @@ const _sfc_main$_ = defineComponent({
|
|
|
21737
21799
|
};
|
|
21738
21800
|
}
|
|
21739
21801
|
});
|
|
21740
|
-
function _sfc_render$
|
|
21802
|
+
function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
|
|
21741
21803
|
var _a;
|
|
21742
21804
|
const _component_el_dropdown_item_impl = resolveComponent("el-dropdown-item-impl");
|
|
21743
21805
|
const _component_el_roving_focus_item = resolveComponent("el-roving-focus-item");
|
|
@@ -21768,7 +21830,7 @@ function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
21768
21830
|
_: 3
|
|
21769
21831
|
}, 8, ["disabled", "text-value"]);
|
|
21770
21832
|
}
|
|
21771
|
-
var DropdownItem = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["render", _sfc_render$
|
|
21833
|
+
var DropdownItem = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["render", _sfc_render$V]]);
|
|
21772
21834
|
|
|
21773
21835
|
const _sfc_main$Z = defineComponent({
|
|
21774
21836
|
name: "ElDropdownMenu",
|
|
@@ -21831,7 +21893,7 @@ const _sfc_main$Z = defineComponent({
|
|
|
21831
21893
|
};
|
|
21832
21894
|
}
|
|
21833
21895
|
});
|
|
21834
|
-
function _sfc_render$
|
|
21896
|
+
function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
|
|
21835
21897
|
return openBlock(), createElementBlock("ul", {
|
|
21836
21898
|
ref: _ctx.dropdownListWrapperRef,
|
|
21837
21899
|
class: normalizeClass(_ctx.dropdownKls),
|
|
@@ -21846,7 +21908,7 @@ function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
21846
21908
|
renderSlot(_ctx.$slots, "default")
|
|
21847
21909
|
], 38);
|
|
21848
21910
|
}
|
|
21849
|
-
var DropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["render", _sfc_render$
|
|
21911
|
+
var DropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["render", _sfc_render$U]]);
|
|
21850
21912
|
|
|
21851
21913
|
const ElDropdown = withInstall(Dropdown, {
|
|
21852
21914
|
DropdownItem,
|
|
@@ -21960,7 +22022,7 @@ const _hoisted_27 = /* @__PURE__ */ createElementVNode("polygon", {
|
|
|
21960
22022
|
transform: "translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",
|
|
21961
22023
|
points: "62 45 79 45 70 58 53 58"
|
|
21962
22024
|
}, null, -1);
|
|
21963
|
-
function _sfc_render$
|
|
22025
|
+
function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
|
|
21964
22026
|
return openBlock(), createElementBlock("svg", _hoisted_1$v, [
|
|
21965
22027
|
createElementVNode("defs", null, [
|
|
21966
22028
|
createElementVNode("linearGradient", {
|
|
@@ -22041,7 +22103,7 @@ function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
22041
22103
|
])
|
|
22042
22104
|
]);
|
|
22043
22105
|
}
|
|
22044
|
-
var ImgEmpty = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["render", _sfc_render$
|
|
22106
|
+
var ImgEmpty = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["render", _sfc_render$T]]);
|
|
22045
22107
|
|
|
22046
22108
|
const emptyProps = {
|
|
22047
22109
|
image: {
|
|
@@ -22077,7 +22139,7 @@ const _sfc_main$X = defineComponent({
|
|
|
22077
22139
|
});
|
|
22078
22140
|
const _hoisted_1$u = ["src"];
|
|
22079
22141
|
const _hoisted_2$j = { key: 1 };
|
|
22080
|
-
function _sfc_render$
|
|
22142
|
+
function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
|
|
22081
22143
|
const _component_img_empty = resolveComponent("img-empty");
|
|
22082
22144
|
return openBlock(), createElementBlock("div", {
|
|
22083
22145
|
class: normalizeClass(_ctx.ns.b())
|
|
@@ -22107,7 +22169,7 @@ function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
22107
22169
|
], 2)) : createCommentVNode("v-if", true)
|
|
22108
22170
|
], 2);
|
|
22109
22171
|
}
|
|
22110
|
-
var Empty = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["render", _sfc_render$
|
|
22172
|
+
var Empty = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["render", _sfc_render$S]]);
|
|
22111
22173
|
|
|
22112
22174
|
const ElEmpty = withInstall(Empty);
|
|
22113
22175
|
|
|
@@ -22299,14 +22361,14 @@ const _sfc_main$W = defineComponent({
|
|
|
22299
22361
|
};
|
|
22300
22362
|
}
|
|
22301
22363
|
});
|
|
22302
|
-
function _sfc_render$
|
|
22364
|
+
function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
22303
22365
|
return openBlock(), createElementBlock("form", {
|
|
22304
22366
|
class: normalizeClass(_ctx.formKls)
|
|
22305
22367
|
}, [
|
|
22306
22368
|
renderSlot(_ctx.$slots, "default")
|
|
22307
22369
|
], 2);
|
|
22308
22370
|
}
|
|
22309
|
-
var Form = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["render", _sfc_render$
|
|
22371
|
+
var Form = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["render", _sfc_render$R]]);
|
|
22310
22372
|
|
|
22311
22373
|
function _extends() {
|
|
22312
22374
|
_extends = Object.assign || function(target) {
|
|
@@ -23630,7 +23692,7 @@ const _sfc_main$V = defineComponent({
|
|
|
23630
23692
|
}
|
|
23631
23693
|
});
|
|
23632
23694
|
const _hoisted_1$t = ["for"];
|
|
23633
|
-
function _sfc_render$
|
|
23695
|
+
function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23634
23696
|
const _component_LabelWrap = resolveComponent("LabelWrap");
|
|
23635
23697
|
return openBlock(), createElementBlock("div", {
|
|
23636
23698
|
ref: "formItemRef",
|
|
@@ -23677,7 +23739,7 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23677
23739
|
], 4)
|
|
23678
23740
|
], 2);
|
|
23679
23741
|
}
|
|
23680
|
-
var FormItem = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["render", _sfc_render$
|
|
23742
|
+
var FormItem = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["render", _sfc_render$Q]]);
|
|
23681
23743
|
|
|
23682
23744
|
const ElForm = withInstall(Form, {
|
|
23683
23745
|
FormItem
|
|
@@ -23977,7 +24039,7 @@ const _sfc_main$U = defineComponent({
|
|
|
23977
24039
|
}
|
|
23978
24040
|
});
|
|
23979
24041
|
const _hoisted_1$s = ["src"];
|
|
23980
|
-
function _sfc_render$
|
|
24042
|
+
function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23981
24043
|
const _component_close = resolveComponent("close");
|
|
23982
24044
|
const _component_el_icon = resolveComponent("el-icon");
|
|
23983
24045
|
const _component_arrow_left = resolveComponent("arrow-left");
|
|
@@ -24130,7 +24192,7 @@ function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24130
24192
|
})
|
|
24131
24193
|
], 8, ["disabled"]);
|
|
24132
24194
|
}
|
|
24133
|
-
var ImageViewer = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["render", _sfc_render$
|
|
24195
|
+
var ImageViewer = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["render", _sfc_render$P]]);
|
|
24134
24196
|
|
|
24135
24197
|
const ElImageViewer = withInstall(ImageViewer);
|
|
24136
24198
|
|
|
@@ -24369,7 +24431,7 @@ const _sfc_main$T = defineComponent({
|
|
|
24369
24431
|
});
|
|
24370
24432
|
const _hoisted_1$r = ["src"];
|
|
24371
24433
|
const _hoisted_2$i = { key: 0 };
|
|
24372
|
-
function _sfc_render$
|
|
24434
|
+
function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
|
|
24373
24435
|
const _component_image_viewer = resolveComponent("image-viewer");
|
|
24374
24436
|
return openBlock(), createElementBlock("div", {
|
|
24375
24437
|
ref: "container",
|
|
@@ -24411,7 +24473,7 @@ function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24411
24473
|
], 2112)) : createCommentVNode("v-if", true)
|
|
24412
24474
|
], 6);
|
|
24413
24475
|
}
|
|
24414
|
-
var Image$1 = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["render", _sfc_render$
|
|
24476
|
+
var Image$1 = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["render", _sfc_render$O]]);
|
|
24415
24477
|
|
|
24416
24478
|
const ElImage = withInstall(Image$1);
|
|
24417
24479
|
|
|
@@ -24680,7 +24742,7 @@ const _sfc_main$S = defineComponent({
|
|
|
24680
24742
|
};
|
|
24681
24743
|
}
|
|
24682
24744
|
});
|
|
24683
|
-
function _sfc_render$
|
|
24745
|
+
function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
|
|
24684
24746
|
const _component_arrow_down = resolveComponent("arrow-down");
|
|
24685
24747
|
const _component_minus = resolveComponent("minus");
|
|
24686
24748
|
const _component_el_icon = resolveComponent("el-icon");
|
|
@@ -24753,7 +24815,7 @@ function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24753
24815
|
}, null, 8, ["step", "model-value", "placeholder", "disabled", "size", "max", "min", "name", "label", "onKeydown", "onBlur", "onFocus", "onInput", "onChange"])
|
|
24754
24816
|
], 34);
|
|
24755
24817
|
}
|
|
24756
|
-
var InputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["render", _sfc_render$
|
|
24818
|
+
var InputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["render", _sfc_render$N]]);
|
|
24757
24819
|
|
|
24758
24820
|
const ElInputNumber = withInstall(InputNumber);
|
|
24759
24821
|
|
|
@@ -24796,7 +24858,7 @@ const _sfc_main$R = defineComponent({
|
|
|
24796
24858
|
}
|
|
24797
24859
|
});
|
|
24798
24860
|
const _hoisted_1$q = ["href"];
|
|
24799
|
-
function _sfc_render$
|
|
24861
|
+
function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
24800
24862
|
const _component_el_icon = resolveComponent("el-icon");
|
|
24801
24863
|
return openBlock(), createElementBlock("a", {
|
|
24802
24864
|
class: normalizeClass([
|
|
@@ -24823,7 +24885,7 @@ function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24823
24885
|
_ctx.$slots.icon ? renderSlot(_ctx.$slots, "icon", { key: 2 }) : createCommentVNode("v-if", true)
|
|
24824
24886
|
], 10, _hoisted_1$q);
|
|
24825
24887
|
}
|
|
24826
|
-
var Link = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["render", _sfc_render$
|
|
24888
|
+
var Link = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["render", _sfc_render$M]]);
|
|
24827
24889
|
|
|
24828
24890
|
const ElLink = withInstall(Link);
|
|
24829
24891
|
|
|
@@ -24994,7 +25056,7 @@ const _sfc_main$Q = defineComponent({
|
|
|
24994
25056
|
};
|
|
24995
25057
|
}
|
|
24996
25058
|
});
|
|
24997
|
-
function _sfc_render$
|
|
25059
|
+
function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
24998
25060
|
return openBlock(), createBlock(Transition, mergeProps({ mode: "out-in" }, _ctx.listeners), {
|
|
24999
25061
|
default: withCtx(() => [
|
|
25000
25062
|
renderSlot(_ctx.$slots, "default")
|
|
@@ -25002,7 +25064,7 @@ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
25002
25064
|
_: 3
|
|
25003
25065
|
}, 16);
|
|
25004
25066
|
}
|
|
25005
|
-
var ElMenuCollapseTransition = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["render", _sfc_render$
|
|
25067
|
+
var ElMenuCollapseTransition = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["render", _sfc_render$L]]);
|
|
25006
25068
|
|
|
25007
25069
|
function useMenu(instance, currentIndex) {
|
|
25008
25070
|
const rootMenu = inject("rootMenu");
|
|
@@ -25676,17 +25738,8 @@ const _sfc_main$P = defineComponent({
|
|
|
25676
25738
|
};
|
|
25677
25739
|
}
|
|
25678
25740
|
});
|
|
25679
|
-
const _hoisted_1$p = {
|
|
25680
|
-
|
|
25681
|
-
left: 0,
|
|
25682
|
-
top: 0,
|
|
25683
|
-
height: "100%",
|
|
25684
|
-
width: "100%",
|
|
25685
|
-
display: "inline-block",
|
|
25686
|
-
boxSizing: "border-box",
|
|
25687
|
-
padding: "0 20px"
|
|
25688
|
-
} };
|
|
25689
|
-
function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
25741
|
+
const _hoisted_1$p = { class: "el-menu-tooltip__trigger" };
|
|
25742
|
+
function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
25690
25743
|
const _component_el_tooltip = resolveComponent("el-tooltip");
|
|
25691
25744
|
return openBlock(), createElementBlock("li", {
|
|
25692
25745
|
class: normalizeClass(["el-menu-item", {
|
|
@@ -25719,7 +25772,7 @@ function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
25719
25772
|
], 64))
|
|
25720
25773
|
], 6);
|
|
25721
25774
|
}
|
|
25722
|
-
var MenuItem = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["render", _sfc_render$
|
|
25775
|
+
var MenuItem = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["render", _sfc_render$K]]);
|
|
25723
25776
|
|
|
25724
25777
|
const menuItemGroupProps = {
|
|
25725
25778
|
title: String
|
|
@@ -25753,7 +25806,7 @@ const _sfc_main$O = defineComponent({
|
|
|
25753
25806
|
}
|
|
25754
25807
|
});
|
|
25755
25808
|
const _hoisted_1$o = { class: "el-menu-item-group" };
|
|
25756
|
-
function _sfc_render$
|
|
25809
|
+
function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
25757
25810
|
return openBlock(), createElementBlock("li", _hoisted_1$o, [
|
|
25758
25811
|
createElementVNode("div", {
|
|
25759
25812
|
class: "el-menu-item-group__title",
|
|
@@ -25768,7 +25821,7 @@ function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
25768
25821
|
])
|
|
25769
25822
|
]);
|
|
25770
25823
|
}
|
|
25771
|
-
var MenuItemGroup = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["render", _sfc_render$
|
|
25824
|
+
var MenuItemGroup = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["render", _sfc_render$J]]);
|
|
25772
25825
|
|
|
25773
25826
|
const ElMenu = withInstall(Menu, {
|
|
25774
25827
|
MenuItem,
|
|
@@ -25779,81 +25832,75 @@ const ElMenuItem = withNoopInstall(MenuItem);
|
|
|
25779
25832
|
const ElMenuItemGroup = withNoopInstall(MenuItemGroup);
|
|
25780
25833
|
const ElSubMenu = withNoopInstall(SubMenu);
|
|
25781
25834
|
|
|
25782
|
-
const pageHeaderProps = {
|
|
25835
|
+
const pageHeaderProps = buildProps({
|
|
25783
25836
|
icon: {
|
|
25784
|
-
type:
|
|
25785
|
-
default: back
|
|
25837
|
+
type: iconPropType,
|
|
25838
|
+
default: () => back
|
|
25786
25839
|
},
|
|
25787
25840
|
title: String,
|
|
25788
25841
|
content: {
|
|
25789
25842
|
type: String,
|
|
25790
25843
|
default: ""
|
|
25791
25844
|
}
|
|
25792
|
-
};
|
|
25845
|
+
});
|
|
25793
25846
|
const pageHeaderEmits = {
|
|
25794
25847
|
back: () => true
|
|
25795
25848
|
};
|
|
25796
25849
|
|
|
25797
|
-
const
|
|
25798
|
-
name: "ElPageHeader"
|
|
25799
|
-
|
|
25800
|
-
|
|
25801
|
-
|
|
25850
|
+
const __default__ = {
|
|
25851
|
+
name: "ElPageHeader"
|
|
25852
|
+
};
|
|
25853
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
25854
|
+
...__default__,
|
|
25802
25855
|
props: pageHeaderProps,
|
|
25803
25856
|
emits: pageHeaderEmits,
|
|
25804
|
-
setup(
|
|
25857
|
+
setup(__props, { emit }) {
|
|
25805
25858
|
const { t } = useLocale();
|
|
25806
25859
|
const ns = useNamespace("page-header");
|
|
25807
25860
|
function handleClick() {
|
|
25808
25861
|
emit("back");
|
|
25809
25862
|
}
|
|
25810
|
-
return {
|
|
25811
|
-
|
|
25812
|
-
|
|
25813
|
-
|
|
25863
|
+
return (_ctx, _cache) => {
|
|
25864
|
+
return openBlock(), createElementBlock("div", {
|
|
25865
|
+
class: normalizeClass(unref(ns).b())
|
|
25866
|
+
}, [
|
|
25867
|
+
createElementVNode("div", {
|
|
25868
|
+
class: normalizeClass(unref(ns).e("left")),
|
|
25869
|
+
onClick: handleClick
|
|
25870
|
+
}, [
|
|
25871
|
+
_ctx.icon || _ctx.$slots.icon ? (openBlock(), createElementBlock("div", {
|
|
25872
|
+
key: 0,
|
|
25873
|
+
class: normalizeClass(unref(ns).e("icon"))
|
|
25874
|
+
}, [
|
|
25875
|
+
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
25876
|
+
_ctx.icon ? (openBlock(), createBlock(unref(ElIcon), { key: 0 }, {
|
|
25877
|
+
default: withCtx(() => [
|
|
25878
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.icon)))
|
|
25879
|
+
]),
|
|
25880
|
+
_: 1
|
|
25881
|
+
})) : createCommentVNode("v-if", true)
|
|
25882
|
+
])
|
|
25883
|
+
], 2)) : createCommentVNode("v-if", true),
|
|
25884
|
+
createElementVNode("div", {
|
|
25885
|
+
class: normalizeClass(unref(ns).e("title"))
|
|
25886
|
+
}, [
|
|
25887
|
+
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
25888
|
+
createTextVNode(toDisplayString(_ctx.title || unref(t)("el.pageHeader.title")), 1)
|
|
25889
|
+
])
|
|
25890
|
+
], 2)
|
|
25891
|
+
], 2),
|
|
25892
|
+
createElementVNode("div", {
|
|
25893
|
+
class: normalizeClass(unref(ns).e("content"))
|
|
25894
|
+
}, [
|
|
25895
|
+
renderSlot(_ctx.$slots, "content", {}, () => [
|
|
25896
|
+
createTextVNode(toDisplayString(_ctx.content), 1)
|
|
25897
|
+
])
|
|
25898
|
+
], 2)
|
|
25899
|
+
], 2);
|
|
25814
25900
|
};
|
|
25815
25901
|
}
|
|
25816
25902
|
});
|
|
25817
|
-
|
|
25818
|
-
const _component_el_icon = resolveComponent("el-icon");
|
|
25819
|
-
return openBlock(), createElementBlock("div", {
|
|
25820
|
-
class: normalizeClass(_ctx.ns.b())
|
|
25821
|
-
}, [
|
|
25822
|
-
createElementVNode("div", {
|
|
25823
|
-
class: normalizeClass(_ctx.ns.e("left")),
|
|
25824
|
-
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
25825
|
-
}, [
|
|
25826
|
-
_ctx.icon || _ctx.$slots.icon ? (openBlock(), createElementBlock("div", {
|
|
25827
|
-
key: 0,
|
|
25828
|
-
class: normalizeClass(_ctx.ns.e("icon"))
|
|
25829
|
-
}, [
|
|
25830
|
-
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
25831
|
-
_ctx.icon ? (openBlock(), createBlock(_component_el_icon, { key: 0 }, {
|
|
25832
|
-
default: withCtx(() => [
|
|
25833
|
-
(openBlock(), createBlock(resolveDynamicComponent(_ctx.icon)))
|
|
25834
|
-
]),
|
|
25835
|
-
_: 1
|
|
25836
|
-
})) : createCommentVNode("v-if", true)
|
|
25837
|
-
])
|
|
25838
|
-
], 2)) : createCommentVNode("v-if", true),
|
|
25839
|
-
createElementVNode("div", {
|
|
25840
|
-
class: normalizeClass(_ctx.ns.e("title"))
|
|
25841
|
-
}, [
|
|
25842
|
-
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
25843
|
-
createTextVNode(toDisplayString(_ctx.title || _ctx.t("el.pageHeader.title")), 1)
|
|
25844
|
-
])
|
|
25845
|
-
], 2)
|
|
25846
|
-
], 2),
|
|
25847
|
-
createElementVNode("div", {
|
|
25848
|
-
class: normalizeClass(_ctx.ns.e("content"))
|
|
25849
|
-
}, [
|
|
25850
|
-
renderSlot(_ctx.$slots, "content", {}, () => [
|
|
25851
|
-
createTextVNode(toDisplayString(_ctx.content), 1)
|
|
25852
|
-
])
|
|
25853
|
-
], 2)
|
|
25854
|
-
], 2);
|
|
25855
|
-
}
|
|
25856
|
-
var PageHeader = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["render", _sfc_render$J]]);
|
|
25903
|
+
var PageHeader = _sfc_main$N;
|
|
25857
25904
|
|
|
25858
25905
|
const ElPageHeader = withInstall(PageHeader);
|
|
25859
25906
|
|
|
@@ -44142,7 +44189,7 @@ const message = function(options = {}, context) {
|
|
|
44142
44189
|
};
|
|
44143
44190
|
};
|
|
44144
44191
|
messageTypes.forEach((type) => {
|
|
44145
|
-
message[type] = (options = {}) => {
|
|
44192
|
+
message[type] = (options = {}, appContext) => {
|
|
44146
44193
|
if (isString(options) || isVNode(options)) {
|
|
44147
44194
|
options = {
|
|
44148
44195
|
message: options
|
|
@@ -44151,7 +44198,7 @@ messageTypes.forEach((type) => {
|
|
|
44151
44198
|
return message({
|
|
44152
44199
|
...options,
|
|
44153
44200
|
type
|
|
44154
|
-
});
|
|
44201
|
+
}, appContext);
|
|
44155
44202
|
};
|
|
44156
44203
|
});
|
|
44157
44204
|
function close$1(id, userOnClose) {
|
|
@@ -44972,7 +45019,7 @@ const notifications = {
|
|
|
44972
45019
|
};
|
|
44973
45020
|
const GAP_SIZE = 16;
|
|
44974
45021
|
let seed = 1;
|
|
44975
|
-
const notify = function(options = {}) {
|
|
45022
|
+
const notify = function(options = {}, context = null) {
|
|
44976
45023
|
if (!isClient)
|
|
44977
45024
|
return { close: () => void 0 };
|
|
44978
45025
|
if (typeof options === "string" || isVNode(options)) {
|
|
@@ -45010,6 +45057,7 @@ const notify = function(options = {}) {
|
|
|
45010
45057
|
const vm = createVNode(NotificationConstructor, props, isVNode(props.message) ? {
|
|
45011
45058
|
default: () => props.message
|
|
45012
45059
|
} : null);
|
|
45060
|
+
vm.appContext = context != null ? context : notify._context;
|
|
45013
45061
|
vm.props.onDestroy = () => {
|
|
45014
45062
|
render(null, container);
|
|
45015
45063
|
};
|
|
@@ -45067,6 +45115,7 @@ function closeAll() {
|
|
|
45067
45115
|
}
|
|
45068
45116
|
}
|
|
45069
45117
|
notify.closeAll = closeAll;
|
|
45118
|
+
notify._context = null;
|
|
45070
45119
|
var Notify = notify;
|
|
45071
45120
|
|
|
45072
45121
|
const ElNotification = withInstallFunction(Notify, "$notify");
|
|
@@ -45085,4 +45134,4 @@ var installer = makeInstaller([...Components, ...Plugins]);
|
|
|
45085
45134
|
const install = installer.install;
|
|
45086
45135
|
const version = installer.version;
|
|
45087
45136
|
|
|
45088
|
-
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, FixedSizeGrid$1 as DynamicSizeGrid, DynamicSizeList$1 as DynamicSizeList, Effect, ElAffix, ElAlert, ElAside, 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, ElDatePicker, ElDescriptions, ElDescriptionsItem, ElDialog, ElDivider, ElDrawer, ElDropdown, ElDropdownItem, ElDropdownMenu, ElEmpty, ElFooter, ElForm, ElFormItem, ElHeader, ElIcon, ElImage, ElImageViewer, ElInfiniteScroll, ElInput, ElInputNumber, ElLink, ElLoading, ElLoadingDirective, ElLoadingService, ElMain, ElMenu, ElMenuItem, ElMenuItemGroup, ElMessage, ElMessageBox, ElNotification, ElOption$1 as 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, ElStep, ElSteps, ElSubMenu, ElSwitch, ElTabPane, ElTable, ElTableColumn, ElTabs, ElTag, ElTimePicker, ElTimeSelect, ElTimeline, ElTimelineItem, ElTooltip, ElTransfer, ElTree, ElTreeV2, ElUpload, ExpandTrigger$1 as ExpandTrigger, FIRST_KEYS, FIRST_LAST_KEYS, FORWARD_REF_INJECTION_KEY, FixedSizeGrid$3 as FixedSizeGrid, FixedSizeList$1 as FixedSizeList, ID_INJECTION_KEY, IconComponentMap, IconMap, LAST_KEYS, Mousewheel, POPPER_CONTAINER_ID, POPPER_CONTAINER_SELECTOR, POPPER_CONTENT_INJECTION_KEY, POPPER_INJECTION_KEY, RepeatClick, Resize, TOOLTIP_INJECTION_KEY, TimePickPanel, TrapFocus, affixEmits, affixProps, alertEffects, alertEmits, alertProps, avatarEmits, avatarProps, backtopEmits, backtopProps, badgeProps, breadcrumbItemProps, breadcrumbProps, buildLocaleContext, buildTranslator, buttonEmits, buttonGroupContextKey, buttonNativeTypes, buttonProps, buttonTypes, calendarEmits, calendarProps, cardProps, checkTagEmits, checkTagProps, colProps, configProviderContextKey, configProviderProps, createModelToggleComposable, installer as default, dialogEmits, dialogProps, dividerProps, drawerEmits, drawerProps, dropdownItemProps, dropdownMenuProps, dropdownProps, elBreadcrumbKey, elFormItemKey, elFormKey, elPaginationKey, emptyProps, extractDateFormat, extractTimeFormat, iconProps, imageEmits, imageProps, imageViewerEmits, imageViewerProps, inputEmits, inputNumberEmits, inputNumberProps, inputProps, install, linkEmits, linkProps, makeInstaller, menuEmits, menuItemEmits, menuItemGroupProps, menuItemProps, menuProps, messageConfig, messageEmits, messageProps, messageTypes, notificationEmits, notificationProps, notificationTypes, overlayEmits, overlayProps, pageHeaderEmits, pageHeaderProps, paginationEmits, paginationProps, popconfirmProps, progressProps, provideGlobalConfig, radioButtonProps, radioEmits, radioGroupEmits, radioGroupKey, radioGroupProps, radioProps, radioPropsBase, rangeArr, rateEmits, rateProps, renderThumbStyle$1 as renderThumbStyle, resultProps, rowProps, scrollbarContextKey, scrollbarEmits, scrollbarProps, selectGroupKey, selectKey, selectV2InjectionKey, skeletonItemProps, skeletonProps, spaceProps, subMenuProps, switchEmits, switchProps, tabBar, tabNavProps, tabPaneProps, tabsEmits, tabsProps, tabsRootContextKey, tagEmits, tagProps, thumbProps, timePickerDefaultProps, timelineItemProps, translate, useAttrs, useCascaderConfig, useDelayedRender, useDelayedToggle, useDelayedToggleProps, useDeprecateAppendToBody, useDeprecated, useDialog, useDisabled$1 as useDisabled, useDraggable, useEscapeKeydown, useFocus, useFormItem, useForwardRef, useForwardRefDirective, useGlobalConfig, useId, useLocale, useLockscreen, useModal, useModelToggle$1 as useModelToggle, useModelToggleEmits$1 as useModelToggleEmits, useModelToggleProps$1 as useModelToggleProps, useNamespace, usePopperArrowProps, usePopperContainer, usePopperContentProps, usePopperCoreConfigProps, usePopperProps, usePopperTriggerProps, usePreventGlobal, useProp, useRadio, useRestoreActive, useSameTarget, useSize, useSizeProp, useSpace, useTeleport, useThrottleRender, useTimeout, useTooltipContentProps, useTooltipProps, useTooltipTriggerProps, useTransitionFallthrough, useTransitionFallthroughEmits, useZIndex, version, virtualizedGridProps, virtualizedListProps, virtualizedProps, virtualizedScrollbarProps };
|
|
45137
|
+
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, FixedSizeGrid$1 as DynamicSizeGrid, DynamicSizeList$1 as DynamicSizeList, Effect, ElAffix, ElAlert, ElAside, 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, ElDatePicker, ElDescriptions, ElDescriptionsItem, ElDialog, ElDivider, ElDrawer, ElDropdown, ElDropdownItem, ElDropdownMenu, ElEmpty, ElFooter, ElForm, ElFormItem, ElHeader, ElIcon, ElImage, ElImageViewer, ElInfiniteScroll, ElInput, ElInputNumber, ElLink, ElLoading, ElLoadingDirective, ElLoadingService, ElMain, ElMenu, ElMenuItem, ElMenuItemGroup, ElMessage, ElMessageBox, ElNotification, ElOption$1 as 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, ElStep, ElSteps, ElSubMenu, ElSwitch, ElTabPane, ElTable, ElTableColumn, ElTabs, ElTag, ElTimePicker, ElTimeSelect, ElTimeline, ElTimelineItem, ElTooltip, ElTransfer, ElTree, ElTreeV2, ElUpload, ExpandTrigger$1 as ExpandTrigger, FIRST_KEYS, FIRST_LAST_KEYS, FORWARD_REF_INJECTION_KEY, FixedSizeGrid$3 as FixedSizeGrid, FixedSizeList$1 as FixedSizeList, ID_INJECTION_KEY, IconComponentMap, IconMap, LAST_KEYS, Mousewheel, POPPER_CONTAINER_ID, POPPER_CONTAINER_SELECTOR, POPPER_CONTENT_INJECTION_KEY, POPPER_INJECTION_KEY, RepeatClick, Resize, TOOLTIP_INJECTION_KEY, TimePickPanel, TrapFocus, affixEmits, affixProps, alertEffects, alertEmits, alertProps, autocompleteEmits, autocompleteProps, avatarEmits, avatarProps, backtopEmits, backtopProps, badgeProps, breadcrumbItemProps, breadcrumbProps, buildLocaleContext, buildTranslator, buttonEmits, buttonGroupContextKey, buttonNativeTypes, buttonProps, buttonTypes, calendarEmits, calendarProps, cardProps, checkTagEmits, checkTagProps, colProps, collapseContextKey, collapseEmits, collapseItemProps, collapseProps, configProviderContextKey, configProviderProps, createModelToggleComposable, installer as default, dialogEmits, dialogInjectionKey, dialogProps, dividerProps, drawerEmits, drawerProps, dropdownItemProps, dropdownMenuProps, dropdownProps, elBreadcrumbKey, elFormItemKey, elFormKey, elPaginationKey, emitChangeFn, emptyProps, extractDateFormat, extractTimeFormat, iconProps, imageEmits, imageProps, imageViewerEmits, imageViewerProps, inputEmits, inputNumberEmits, inputNumberProps, inputProps, install, linkEmits, linkProps, makeInstaller, menuEmits, menuItemEmits, menuItemGroupProps, menuItemProps, menuProps, messageConfig, messageEmits, messageProps, messageTypes, notificationEmits, notificationProps, notificationTypes, overlayEmits, overlayProps, pageHeaderEmits, pageHeaderProps, paginationEmits, paginationProps, popconfirmProps, progressProps, provideGlobalConfig, radioButtonProps, radioEmits, radioGroupEmits, radioGroupKey, radioGroupProps, radioProps, radioPropsBase, rangeArr, rateEmits, rateProps, renderThumbStyle$1 as renderThumbStyle, resultProps, rowProps, scrollbarContextKey, scrollbarEmits, scrollbarProps, selectGroupKey, selectKey, selectV2InjectionKey, skeletonItemProps, skeletonProps, spaceProps, subMenuProps, switchEmits, switchProps, tabBar, tabNavProps, tabPaneProps, tabsEmits, tabsProps, tabsRootContextKey, tagEmits, tagProps, thumbProps, timePickerDefaultProps, timelineItemProps, translate, useAttrs, useCascaderConfig, useDelayedRender, useDelayedToggle, useDelayedToggleProps, useDeprecateAppendToBody, useDeprecated, useDialog, useDisabled$1 as useDisabled, useDraggable, useEscapeKeydown, useFocus, useFormItem, useForwardRef, useForwardRefDirective, useGlobalConfig, useId, useLocale, useLockscreen, useModal, useModelToggle$1 as useModelToggle, useModelToggleEmits$1 as useModelToggleEmits, useModelToggleProps$1 as useModelToggleProps, useNamespace, usePopperArrowProps, usePopperContainer, usePopperContentProps, usePopperCoreConfigProps, usePopperProps, usePopperTriggerProps, usePreventGlobal, useProp, useRadio, useRestoreActive, useSameTarget, useSize, useSizeProp, useSpace, useTeleport, useThrottleRender, useTimeout, useTooltipContentProps, useTooltipProps, useTooltipTriggerProps, useTransitionFallthrough, useTransitionFallthroughEmits, useZIndex, version, virtualizedGridProps, virtualizedListProps, virtualizedProps, virtualizedScrollbarProps };
|