@element-plus/nightly 0.0.20220722 → 0.0.20220726
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/dist/index.css +1 -1
- package/dist/index.full.js +332 -143
- package/dist/index.full.min.js +14 -14
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +14 -14
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +942 -753
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/az.js +1 -1
- package/dist/locale/az.min.js +1 -1
- package/dist/locale/az.min.mjs +1 -1
- package/dist/locale/az.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/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/calendar/index.mjs +2 -2
- package/es/components/calendar/src/calendar.mjs +16 -230
- package/es/components/calendar/src/calendar.mjs.map +1 -1
- package/es/components/calendar/src/calendar2.mjs +230 -16
- package/es/components/calendar/src/calendar2.mjs.map +1 -1
- package/es/components/carousel/index.d.ts +1 -0
- package/es/components/carousel/src/carousel.vue.d.ts +1 -0
- package/es/components/carousel/src/carousel2.mjs +3 -2
- package/es/components/carousel/src/carousel2.mjs.map +1 -1
- package/es/components/cascader/src/index.mjs +0 -1
- package/es/components/cascader/src/index.mjs.map +1 -1
- package/es/components/checkbox/index.d.ts +4 -4
- package/es/components/checkbox/src/checkbox-group.mjs +1 -1
- package/es/components/checkbox/src/checkbox-group.mjs.map +1 -1
- package/es/components/checkbox/src/checkbox-group.vue.d.ts +10 -9
- package/es/components/color-picker/src/draggable.mjs +10 -12
- package/es/components/color-picker/src/draggable.mjs.map +1 -1
- package/es/components/color-picker/src/index.mjs +0 -1
- package/es/components/color-picker/src/index.mjs.map +1 -1
- package/es/components/dropdown/src/useDropdown.mjs +3 -3
- package/es/components/dropdown/src/useDropdown.mjs.map +1 -1
- package/es/components/dropdown/style/css.d.ts +2 -1
- package/es/components/dropdown/style/css.mjs +2 -1
- package/es/components/dropdown/style/css.mjs.map +1 -1
- package/es/components/dropdown/style/index.d.ts +2 -1
- package/es/components/dropdown/style/index.mjs +2 -1
- package/es/components/dropdown/style/index.mjs.map +1 -1
- package/es/components/image/index.d.ts +4 -1
- package/es/components/image/src/image.d.ts +1 -0
- package/es/components/image/src/image.mjs +2 -1
- package/es/components/image/src/image.mjs.map +1 -1
- package/es/components/image/src/image.vue.d.ts +4 -1
- package/es/components/image/src/image2.mjs +1 -0
- package/es/components/image/src/image2.mjs.map +1 -1
- package/es/components/index.mjs +3 -3
- package/es/components/menu/src/menu.mjs +0 -5
- package/es/components/menu/src/menu.mjs.map +1 -1
- package/es/components/message-box/src/index.mjs +2 -3
- package/es/components/message-box/src/index.mjs.map +1 -1
- package/es/components/popper/index.mjs +2 -2
- package/es/components/popper/src/content.mjs +87 -207
- package/es/components/popper/src/content.mjs.map +1 -1
- package/es/components/popper/src/content2.mjs +207 -87
- package/es/components/popper/src/content2.mjs.map +1 -1
- package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs +4 -10
- package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs.map +1 -1
- package/es/components/select/src/select.mjs +1 -2
- package/es/components/select/src/select.mjs.map +1 -1
- package/es/components/select-v2/src/select.mjs +4 -5
- package/es/components/select-v2/src/select.mjs.map +1 -1
- package/es/components/slider/src/button2.mjs +8 -9
- package/es/components/slider/src/button2.mjs.map +1 -1
- package/es/components/table/src/filter-panel.mjs +0 -1
- package/es/components/table/src/filter-panel.mjs.map +1 -1
- package/es/components/table/src/table/style-helper.mjs +12 -9
- package/es/components/table/src/table/style-helper.mjs.map +1 -1
- package/es/components/table/src/table.mjs +1 -0
- package/es/components/table/src/table.mjs.map +1 -1
- package/es/components/time-picker/src/common/picker.mjs +2 -1
- package/es/components/time-picker/src/common/picker.mjs.map +1 -1
- package/es/components/tooltip/src/content.mjs +1 -1
- package/es/components/tooltip/src/tooltip.mjs +1 -1
- package/es/components/transfer/index.d.ts +20 -20
- package/es/components/transfer/src/transfer-panel.vue.d.ts +4 -4
- package/es/components/transfer/src/transfer.vue.d.ts +20 -20
- package/es/components/tree/src/model/useKeydown.mjs +3 -7
- package/es/components/tree/src/model/useKeydown.mjs.map +1 -1
- package/es/components/virtual-list/src/builders/build-grid.mjs +1 -1
- package/es/components/virtual-list/src/builders/build-grid.mjs.map +1 -1
- package/es/hooks/use-lockscreen/index.mjs +9 -5
- package/es/hooks/use-lockscreen/index.mjs.map +1 -1
- package/es/index.mjs +3 -3
- package/es/make-installer.mjs.map +1 -1
- package/es/utils/dom/event.d.ts +0 -6
- package/es/utils/dom/event.mjs +1 -20
- package/es/utils/dom/event.mjs.map +1 -1
- package/es/utils/dom/index.mjs +1 -1
- package/es/utils/dom/scroll.d.ts +1 -1
- package/es/utils/dom/scroll.mjs +2 -2
- package/es/utils/dom/scroll.mjs.map +1 -1
- package/es/utils/index.mjs +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/calendar/index.js +2 -2
- package/lib/components/calendar/src/calendar.js +16 -233
- package/lib/components/calendar/src/calendar.js.map +1 -1
- package/lib/components/calendar/src/calendar2.js +233 -16
- package/lib/components/calendar/src/calendar2.js.map +1 -1
- package/lib/components/carousel/index.d.ts +1 -0
- package/lib/components/carousel/src/carousel.vue.d.ts +1 -0
- package/lib/components/carousel/src/carousel2.js +3 -2
- package/lib/components/carousel/src/carousel2.js.map +1 -1
- package/lib/components/cascader/src/index.js +0 -1
- package/lib/components/cascader/src/index.js.map +1 -1
- package/lib/components/checkbox/index.d.ts +4 -4
- package/lib/components/checkbox/src/checkbox-group.js +1 -1
- package/lib/components/checkbox/src/checkbox-group.js.map +1 -1
- package/lib/components/checkbox/src/checkbox-group.vue.d.ts +10 -9
- package/lib/components/color-picker/src/draggable.js +15 -17
- package/lib/components/color-picker/src/draggable.js.map +1 -1
- package/lib/components/color-picker/src/index.js +0 -1
- package/lib/components/color-picker/src/index.js.map +1 -1
- package/lib/components/dropdown/src/useDropdown.js +3 -3
- package/lib/components/dropdown/src/useDropdown.js.map +1 -1
- package/lib/components/dropdown/style/css.d.ts +2 -1
- package/lib/components/dropdown/style/css.js +2 -1
- package/lib/components/dropdown/style/css.js.map +1 -1
- package/lib/components/dropdown/style/index.d.ts +2 -1
- package/lib/components/dropdown/style/index.js +2 -1
- package/lib/components/dropdown/style/index.js.map +1 -1
- package/lib/components/image/index.d.ts +4 -1
- package/lib/components/image/src/image.d.ts +1 -0
- package/lib/components/image/src/image.js +2 -1
- package/lib/components/image/src/image.js.map +1 -1
- package/lib/components/image/src/image.vue.d.ts +4 -1
- package/lib/components/image/src/image2.js +1 -0
- package/lib/components/image/src/image2.js.map +1 -1
- package/lib/components/index.js +3 -3
- package/lib/components/menu/src/menu.js +0 -5
- package/lib/components/menu/src/menu.js.map +1 -1
- package/lib/components/message-box/src/index.js +2 -3
- package/lib/components/message-box/src/index.js.map +1 -1
- package/lib/components/popper/index.js +2 -2
- package/lib/components/popper/src/content.js +88 -206
- package/lib/components/popper/src/content.js.map +1 -1
- package/lib/components/popper/src/content2.js +206 -88
- package/lib/components/popper/src/content2.js.map +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-group-impl.js +2 -8
- package/lib/components/roving-focus-group/src/roving-focus-group-impl.js.map +1 -1
- package/lib/components/select/src/select.js +1 -2
- package/lib/components/select/src/select.js.map +1 -1
- package/lib/components/select-v2/src/select.js +4 -5
- package/lib/components/select-v2/src/select.js.map +1 -1
- package/lib/components/slider/src/button2.js +7 -8
- package/lib/components/slider/src/button2.js.map +1 -1
- package/lib/components/table/src/filter-panel.js +0 -1
- package/lib/components/table/src/filter-panel.js.map +1 -1
- package/lib/components/table/src/table/style-helper.js +12 -9
- package/lib/components/table/src/table/style-helper.js.map +1 -1
- package/lib/components/table/src/table.js +1 -0
- package/lib/components/table/src/table.js.map +1 -1
- package/lib/components/time-picker/src/common/picker.js +2 -1
- package/lib/components/time-picker/src/common/picker.js.map +1 -1
- package/lib/components/tooltip/src/content.js +1 -1
- package/lib/components/tooltip/src/tooltip.js +1 -1
- package/lib/components/transfer/index.d.ts +20 -20
- package/lib/components/transfer/src/transfer-panel.vue.d.ts +4 -4
- package/lib/components/transfer/src/transfer.vue.d.ts +20 -20
- package/lib/components/tree/src/model/useKeydown.js +2 -6
- package/lib/components/tree/src/model/useKeydown.js.map +1 -1
- package/lib/components/virtual-list/src/builders/build-grid.js +1 -1
- package/lib/components/virtual-list/src/builders/build-grid.js.map +1 -1
- package/lib/hooks/use-lockscreen/index.js +9 -5
- package/lib/hooks/use-lockscreen/index.js.map +1 -1
- package/lib/index.js +3 -3
- package/lib/make-installer.js.map +1 -1
- package/lib/utils/dom/event.d.ts +0 -6
- package/lib/utils/dom/event.js +0 -22
- package/lib/utils/dom/event.js.map +1 -1
- package/lib/utils/dom/index.js +0 -3
- package/lib/utils/dom/index.js.map +1 -1
- package/lib/utils/dom/scroll.d.ts +1 -1
- package/lib/utils/dom/scroll.js +2 -2
- package/lib/utils/dom/scroll.js.map +1 -1
- package/lib/utils/index.js +0 -3
- package/lib/utils/index.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-date-picker.css +1 -1
- package/theme-chalk/el-table-v2.css +1 -1
- package/theme-chalk/el-time-picker.css +1 -1
- package/theme-chalk/el-time-select.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/date-picker/picker.scss +4 -5
- package/theme-chalk/src/table-v2.scss +3 -0
- package/web-types.json +1 -1
package/dist/index.full.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Element Plus v0.0.
|
|
1
|
+
/*! Element Plus v0.0.20220726 */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
|
|
@@ -6878,16 +6878,6 @@
|
|
|
6878
6878
|
!isLeaf(el) && el.click();
|
|
6879
6879
|
};
|
|
6880
6880
|
|
|
6881
|
-
const on$1 = (element, event, handler, useCapture = false) => {
|
|
6882
|
-
if (element && event && handler) {
|
|
6883
|
-
element == null ? void 0 : element.addEventListener(event, handler, useCapture);
|
|
6884
|
-
}
|
|
6885
|
-
};
|
|
6886
|
-
const off = (element, event, handler, useCapture = false) => {
|
|
6887
|
-
if (element && event && handler) {
|
|
6888
|
-
element == null ? void 0 : element.removeEventListener(event, handler, useCapture);
|
|
6889
|
-
}
|
|
6890
|
-
};
|
|
6891
6881
|
const composeEventHandlers = (theirsHandler, oursHandler, { checkForDefaultPrevented = true } = {}) => {
|
|
6892
6882
|
const handleEvent = (event) => {
|
|
6893
6883
|
const shouldPrevent = theirsHandler == null ? void 0 : theirsHandler(event);
|
|
@@ -7555,14 +7545,14 @@
|
|
|
7555
7545
|
return parent;
|
|
7556
7546
|
};
|
|
7557
7547
|
let scrollBarWidth;
|
|
7558
|
-
const getScrollBarWidth = () => {
|
|
7548
|
+
const getScrollBarWidth = (namespace) => {
|
|
7559
7549
|
var _a;
|
|
7560
7550
|
if (!isClient)
|
|
7561
7551
|
return 0;
|
|
7562
7552
|
if (scrollBarWidth !== void 0)
|
|
7563
7553
|
return scrollBarWidth;
|
|
7564
7554
|
const outer = document.createElement("div");
|
|
7565
|
-
outer.className =
|
|
7555
|
+
outer.className = `${namespace}-scrollbar__wrap`;
|
|
7566
7556
|
outer.style.visibility = "hidden";
|
|
7567
7557
|
outer.style.width = "100px";
|
|
7568
7558
|
outer.style.position = "absolute";
|
|
@@ -9087,11 +9077,285 @@
|
|
|
9087
9077
|
return buildLocaleContext(vue.computed(() => locale.value || English));
|
|
9088
9078
|
};
|
|
9089
9079
|
|
|
9080
|
+
let activeEffectScope;
|
|
9081
|
+
function recordEffectScope(effect2, scope = activeEffectScope) {
|
|
9082
|
+
if (scope && scope.active) {
|
|
9083
|
+
scope.effects.push(effect2);
|
|
9084
|
+
}
|
|
9085
|
+
}
|
|
9086
|
+
const createDep = (effects) => {
|
|
9087
|
+
const dep = new Set(effects);
|
|
9088
|
+
dep.w = 0;
|
|
9089
|
+
dep.n = 0;
|
|
9090
|
+
return dep;
|
|
9091
|
+
};
|
|
9092
|
+
const wasTracked = (dep) => (dep.w & trackOpBit) > 0;
|
|
9093
|
+
const newTracked = (dep) => (dep.n & trackOpBit) > 0;
|
|
9094
|
+
const initDepMarkers = ({ deps }) => {
|
|
9095
|
+
if (deps.length) {
|
|
9096
|
+
for (let i = 0; i < deps.length; i++) {
|
|
9097
|
+
deps[i].w |= trackOpBit;
|
|
9098
|
+
}
|
|
9099
|
+
}
|
|
9100
|
+
};
|
|
9101
|
+
const finalizeDepMarkers = (effect2) => {
|
|
9102
|
+
const { deps } = effect2;
|
|
9103
|
+
if (deps.length) {
|
|
9104
|
+
let ptr = 0;
|
|
9105
|
+
for (let i = 0; i < deps.length; i++) {
|
|
9106
|
+
const dep = deps[i];
|
|
9107
|
+
if (wasTracked(dep) && !newTracked(dep)) {
|
|
9108
|
+
dep.delete(effect2);
|
|
9109
|
+
} else {
|
|
9110
|
+
deps[ptr++] = dep;
|
|
9111
|
+
}
|
|
9112
|
+
dep.w &= ~trackOpBit;
|
|
9113
|
+
dep.n &= ~trackOpBit;
|
|
9114
|
+
}
|
|
9115
|
+
deps.length = ptr;
|
|
9116
|
+
}
|
|
9117
|
+
};
|
|
9118
|
+
let effectTrackDepth = 0;
|
|
9119
|
+
let trackOpBit = 1;
|
|
9120
|
+
const maxMarkerBits = 30;
|
|
9121
|
+
let activeEffect;
|
|
9122
|
+
class ReactiveEffect {
|
|
9123
|
+
constructor(fn, scheduler2 = null, scope) {
|
|
9124
|
+
this.fn = fn;
|
|
9125
|
+
this.scheduler = scheduler2;
|
|
9126
|
+
this.active = true;
|
|
9127
|
+
this.deps = [];
|
|
9128
|
+
this.parent = void 0;
|
|
9129
|
+
recordEffectScope(this, scope);
|
|
9130
|
+
}
|
|
9131
|
+
run() {
|
|
9132
|
+
if (!this.active) {
|
|
9133
|
+
return this.fn();
|
|
9134
|
+
}
|
|
9135
|
+
let parent = activeEffect;
|
|
9136
|
+
let lastShouldTrack = shouldTrack;
|
|
9137
|
+
while (parent) {
|
|
9138
|
+
if (parent === this) {
|
|
9139
|
+
return;
|
|
9140
|
+
}
|
|
9141
|
+
parent = parent.parent;
|
|
9142
|
+
}
|
|
9143
|
+
try {
|
|
9144
|
+
this.parent = activeEffect;
|
|
9145
|
+
activeEffect = this;
|
|
9146
|
+
shouldTrack = true;
|
|
9147
|
+
trackOpBit = 1 << ++effectTrackDepth;
|
|
9148
|
+
if (effectTrackDepth <= maxMarkerBits) {
|
|
9149
|
+
initDepMarkers(this);
|
|
9150
|
+
} else {
|
|
9151
|
+
cleanupEffect(this);
|
|
9152
|
+
}
|
|
9153
|
+
return this.fn();
|
|
9154
|
+
} finally {
|
|
9155
|
+
if (effectTrackDepth <= maxMarkerBits) {
|
|
9156
|
+
finalizeDepMarkers(this);
|
|
9157
|
+
}
|
|
9158
|
+
trackOpBit = 1 << --effectTrackDepth;
|
|
9159
|
+
activeEffect = this.parent;
|
|
9160
|
+
shouldTrack = lastShouldTrack;
|
|
9161
|
+
this.parent = void 0;
|
|
9162
|
+
if (this.deferStop) {
|
|
9163
|
+
this.stop();
|
|
9164
|
+
}
|
|
9165
|
+
}
|
|
9166
|
+
}
|
|
9167
|
+
stop() {
|
|
9168
|
+
if (activeEffect === this) {
|
|
9169
|
+
this.deferStop = true;
|
|
9170
|
+
} else if (this.active) {
|
|
9171
|
+
cleanupEffect(this);
|
|
9172
|
+
if (this.onStop) {
|
|
9173
|
+
this.onStop();
|
|
9174
|
+
}
|
|
9175
|
+
this.active = false;
|
|
9176
|
+
}
|
|
9177
|
+
}
|
|
9178
|
+
}
|
|
9179
|
+
function cleanupEffect(effect2) {
|
|
9180
|
+
const { deps } = effect2;
|
|
9181
|
+
if (deps.length) {
|
|
9182
|
+
for (let i = 0; i < deps.length; i++) {
|
|
9183
|
+
deps[i].delete(effect2);
|
|
9184
|
+
}
|
|
9185
|
+
deps.length = 0;
|
|
9186
|
+
}
|
|
9187
|
+
}
|
|
9188
|
+
let shouldTrack = true;
|
|
9189
|
+
function trackEffects(dep, debuggerEventExtraInfo) {
|
|
9190
|
+
let shouldTrack2 = false;
|
|
9191
|
+
if (effectTrackDepth <= maxMarkerBits) {
|
|
9192
|
+
if (!newTracked(dep)) {
|
|
9193
|
+
dep.n |= trackOpBit;
|
|
9194
|
+
shouldTrack2 = !wasTracked(dep);
|
|
9195
|
+
}
|
|
9196
|
+
} else {
|
|
9197
|
+
shouldTrack2 = !dep.has(activeEffect);
|
|
9198
|
+
}
|
|
9199
|
+
if (shouldTrack2) {
|
|
9200
|
+
dep.add(activeEffect);
|
|
9201
|
+
activeEffect.deps.push(dep);
|
|
9202
|
+
}
|
|
9203
|
+
}
|
|
9204
|
+
function triggerEffects(dep, debuggerEventExtraInfo) {
|
|
9205
|
+
const effects = isArray(dep) ? dep : [...dep];
|
|
9206
|
+
for (const effect2 of effects) {
|
|
9207
|
+
if (effect2.computed) {
|
|
9208
|
+
triggerEffect(effect2);
|
|
9209
|
+
}
|
|
9210
|
+
}
|
|
9211
|
+
for (const effect2 of effects) {
|
|
9212
|
+
if (!effect2.computed) {
|
|
9213
|
+
triggerEffect(effect2);
|
|
9214
|
+
}
|
|
9215
|
+
}
|
|
9216
|
+
}
|
|
9217
|
+
function triggerEffect(effect2, debuggerEventExtraInfo) {
|
|
9218
|
+
if (effect2 !== activeEffect || effect2.allowRecurse) {
|
|
9219
|
+
if (effect2.scheduler) {
|
|
9220
|
+
effect2.scheduler();
|
|
9221
|
+
} else {
|
|
9222
|
+
effect2.run();
|
|
9223
|
+
}
|
|
9224
|
+
}
|
|
9225
|
+
}
|
|
9226
|
+
function toRaw(observed) {
|
|
9227
|
+
const raw = observed && observed["__v_raw"];
|
|
9228
|
+
return raw ? toRaw(raw) : observed;
|
|
9229
|
+
}
|
|
9230
|
+
function trackRefValue(ref2) {
|
|
9231
|
+
if (shouldTrack && activeEffect) {
|
|
9232
|
+
ref2 = toRaw(ref2);
|
|
9233
|
+
{
|
|
9234
|
+
trackEffects(ref2.dep || (ref2.dep = createDep()));
|
|
9235
|
+
}
|
|
9236
|
+
}
|
|
9237
|
+
}
|
|
9238
|
+
function triggerRefValue(ref2, newVal) {
|
|
9239
|
+
ref2 = toRaw(ref2);
|
|
9240
|
+
if (ref2.dep) {
|
|
9241
|
+
{
|
|
9242
|
+
triggerEffects(ref2.dep);
|
|
9243
|
+
}
|
|
9244
|
+
}
|
|
9245
|
+
}
|
|
9246
|
+
class ComputedRefImpl {
|
|
9247
|
+
constructor(getter, _setter, isReadonly2, isSSR) {
|
|
9248
|
+
this._setter = _setter;
|
|
9249
|
+
this.dep = void 0;
|
|
9250
|
+
this.__v_isRef = true;
|
|
9251
|
+
this._dirty = true;
|
|
9252
|
+
this.effect = new ReactiveEffect(getter, () => {
|
|
9253
|
+
if (!this._dirty) {
|
|
9254
|
+
this._dirty = true;
|
|
9255
|
+
triggerRefValue(this);
|
|
9256
|
+
}
|
|
9257
|
+
});
|
|
9258
|
+
this.effect.computed = this;
|
|
9259
|
+
this.effect.active = this._cacheable = !isSSR;
|
|
9260
|
+
this["__v_isReadonly"] = isReadonly2;
|
|
9261
|
+
}
|
|
9262
|
+
get value() {
|
|
9263
|
+
const self = toRaw(this);
|
|
9264
|
+
trackRefValue(self);
|
|
9265
|
+
if (self._dirty || !self._cacheable) {
|
|
9266
|
+
self._dirty = false;
|
|
9267
|
+
self._value = self.effect.run();
|
|
9268
|
+
}
|
|
9269
|
+
return self._value;
|
|
9270
|
+
}
|
|
9271
|
+
set value(newValue) {
|
|
9272
|
+
this._setter(newValue);
|
|
9273
|
+
}
|
|
9274
|
+
}
|
|
9275
|
+
function computed(getterOrOptions, debugOptions, isSSR = false) {
|
|
9276
|
+
let getter;
|
|
9277
|
+
let setter;
|
|
9278
|
+
const onlyGetter = isFunction(getterOrOptions);
|
|
9279
|
+
if (onlyGetter) {
|
|
9280
|
+
getter = getterOrOptions;
|
|
9281
|
+
setter = NOOP;
|
|
9282
|
+
} else {
|
|
9283
|
+
getter = getterOrOptions.get;
|
|
9284
|
+
setter = getterOrOptions.set;
|
|
9285
|
+
}
|
|
9286
|
+
const cRef = new ComputedRefImpl(getter, setter, onlyGetter || !setter, isSSR);
|
|
9287
|
+
return cRef;
|
|
9288
|
+
}
|
|
9289
|
+
|
|
9290
|
+
const defaultNamespace = "el";
|
|
9291
|
+
const statePrefix = "is-";
|
|
9292
|
+
const _bem = (namespace, block, blockSuffix, element, modifier) => {
|
|
9293
|
+
let cls = `${namespace}-${block}`;
|
|
9294
|
+
if (blockSuffix) {
|
|
9295
|
+
cls += `-${blockSuffix}`;
|
|
9296
|
+
}
|
|
9297
|
+
if (element) {
|
|
9298
|
+
cls += `__${element}`;
|
|
9299
|
+
}
|
|
9300
|
+
if (modifier) {
|
|
9301
|
+
cls += `--${modifier}`;
|
|
9302
|
+
}
|
|
9303
|
+
return cls;
|
|
9304
|
+
};
|
|
9305
|
+
const useNamespace = (block) => {
|
|
9306
|
+
const globalConfig = useGlobalConfig("namespace");
|
|
9307
|
+
const namespace = vue.computed(() => globalConfig.value || defaultNamespace);
|
|
9308
|
+
const b = (blockSuffix = "") => _bem(vue.unref(namespace), block, blockSuffix, "", "");
|
|
9309
|
+
const e = (element) => element ? _bem(vue.unref(namespace), block, "", element, "") : "";
|
|
9310
|
+
const m = (modifier) => modifier ? _bem(vue.unref(namespace), block, "", "", modifier) : "";
|
|
9311
|
+
const be = (blockSuffix, element) => blockSuffix && element ? _bem(vue.unref(namespace), block, blockSuffix, element, "") : "";
|
|
9312
|
+
const em = (element, modifier) => element && modifier ? _bem(vue.unref(namespace), block, "", element, modifier) : "";
|
|
9313
|
+
const bm = (blockSuffix, modifier) => blockSuffix && modifier ? _bem(vue.unref(namespace), block, blockSuffix, "", modifier) : "";
|
|
9314
|
+
const bem = (blockSuffix, element, modifier) => blockSuffix && element && modifier ? _bem(vue.unref(namespace), block, blockSuffix, element, modifier) : "";
|
|
9315
|
+
const is = (name, ...args) => {
|
|
9316
|
+
const state = args.length >= 1 ? args[0] : true;
|
|
9317
|
+
return name && state ? `${statePrefix}${name}` : "";
|
|
9318
|
+
};
|
|
9319
|
+
const cssVar = (object) => {
|
|
9320
|
+
const styles = {};
|
|
9321
|
+
for (const key in object) {
|
|
9322
|
+
styles[`--${namespace.value}-${key}`] = object[key];
|
|
9323
|
+
}
|
|
9324
|
+
return styles;
|
|
9325
|
+
};
|
|
9326
|
+
const cssVarBlock = (object) => {
|
|
9327
|
+
const styles = {};
|
|
9328
|
+
for (const key in object) {
|
|
9329
|
+
styles[`--${namespace.value}-${block}-${key}`] = object[key];
|
|
9330
|
+
}
|
|
9331
|
+
return styles;
|
|
9332
|
+
};
|
|
9333
|
+
const cssVarName = (name) => `--${namespace.value}-${name}`;
|
|
9334
|
+
const cssVarBlockName = (name) => `--${namespace.value}-${block}-${name}`;
|
|
9335
|
+
return {
|
|
9336
|
+
namespace,
|
|
9337
|
+
b,
|
|
9338
|
+
e,
|
|
9339
|
+
m,
|
|
9340
|
+
be,
|
|
9341
|
+
em,
|
|
9342
|
+
bm,
|
|
9343
|
+
bem,
|
|
9344
|
+
is,
|
|
9345
|
+
cssVar,
|
|
9346
|
+
cssVarName,
|
|
9347
|
+
cssVarBlock,
|
|
9348
|
+
cssVarBlockName
|
|
9349
|
+
};
|
|
9350
|
+
};
|
|
9351
|
+
|
|
9090
9352
|
const useLockscreen = (trigger) => {
|
|
9091
9353
|
if (!vue.isRef(trigger)) {
|
|
9092
9354
|
throwError("[useLockscreen]", "You need to pass a ref param to this function");
|
|
9093
9355
|
}
|
|
9094
|
-
|
|
9356
|
+
const ns = useNamespace("popup");
|
|
9357
|
+
const hiddenCls = computed(() => ns.bm("parent", "hidden"));
|
|
9358
|
+
if (!isClient || hasClass(document.body, hiddenCls.value)) {
|
|
9095
9359
|
return;
|
|
9096
9360
|
}
|
|
9097
9361
|
let scrollBarWidth = 0;
|
|
@@ -9099,7 +9363,7 @@
|
|
|
9099
9363
|
let bodyPaddingRight = "0";
|
|
9100
9364
|
let computedBodyPaddingRight = 0;
|
|
9101
9365
|
const cleanup = () => {
|
|
9102
|
-
removeClass(document.body,
|
|
9366
|
+
removeClass(document.body, hiddenCls.value);
|
|
9103
9367
|
if (withoutHiddenClass) {
|
|
9104
9368
|
document.body.style.paddingRight = bodyPaddingRight;
|
|
9105
9369
|
}
|
|
@@ -9109,18 +9373,18 @@
|
|
|
9109
9373
|
cleanup();
|
|
9110
9374
|
return;
|
|
9111
9375
|
}
|
|
9112
|
-
withoutHiddenClass = !hasClass(document.body,
|
|
9376
|
+
withoutHiddenClass = !hasClass(document.body, hiddenCls.value);
|
|
9113
9377
|
if (withoutHiddenClass) {
|
|
9114
9378
|
bodyPaddingRight = document.body.style.paddingRight;
|
|
9115
9379
|
computedBodyPaddingRight = Number.parseInt(getStyle(document.body, "paddingRight"), 10);
|
|
9116
9380
|
}
|
|
9117
|
-
scrollBarWidth = getScrollBarWidth();
|
|
9381
|
+
scrollBarWidth = getScrollBarWidth(ns.namespace.value);
|
|
9118
9382
|
const bodyHasOverflow = document.documentElement.clientHeight < document.body.scrollHeight;
|
|
9119
9383
|
const bodyOverflowY = getStyle(document.body, "overflowY");
|
|
9120
9384
|
if (scrollBarWidth > 0 && (bodyHasOverflow || bodyOverflowY === "scroll") && withoutHiddenClass) {
|
|
9121
9385
|
document.body.style.paddingRight = `${computedBodyPaddingRight + scrollBarWidth}px`;
|
|
9122
9386
|
}
|
|
9123
|
-
addClass(document.body,
|
|
9387
|
+
addClass(document.body, hiddenCls.value);
|
|
9124
9388
|
});
|
|
9125
9389
|
vue.onScopeDispose(() => cleanup());
|
|
9126
9390
|
};
|
|
@@ -9596,68 +9860,6 @@
|
|
|
9596
9860
|
};
|
|
9597
9861
|
};
|
|
9598
9862
|
|
|
9599
|
-
const defaultNamespace = "el";
|
|
9600
|
-
const statePrefix = "is-";
|
|
9601
|
-
const _bem = (namespace, block, blockSuffix, element, modifier) => {
|
|
9602
|
-
let cls = `${namespace}-${block}`;
|
|
9603
|
-
if (blockSuffix) {
|
|
9604
|
-
cls += `-${blockSuffix}`;
|
|
9605
|
-
}
|
|
9606
|
-
if (element) {
|
|
9607
|
-
cls += `__${element}`;
|
|
9608
|
-
}
|
|
9609
|
-
if (modifier) {
|
|
9610
|
-
cls += `--${modifier}`;
|
|
9611
|
-
}
|
|
9612
|
-
return cls;
|
|
9613
|
-
};
|
|
9614
|
-
const useNamespace = (block) => {
|
|
9615
|
-
const globalConfig = useGlobalConfig("namespace");
|
|
9616
|
-
const namespace = vue.computed(() => globalConfig.value || defaultNamespace);
|
|
9617
|
-
const b = (blockSuffix = "") => _bem(vue.unref(namespace), block, blockSuffix, "", "");
|
|
9618
|
-
const e = (element) => element ? _bem(vue.unref(namespace), block, "", element, "") : "";
|
|
9619
|
-
const m = (modifier) => modifier ? _bem(vue.unref(namespace), block, "", "", modifier) : "";
|
|
9620
|
-
const be = (blockSuffix, element) => blockSuffix && element ? _bem(vue.unref(namespace), block, blockSuffix, element, "") : "";
|
|
9621
|
-
const em = (element, modifier) => element && modifier ? _bem(vue.unref(namespace), block, "", element, modifier) : "";
|
|
9622
|
-
const bm = (blockSuffix, modifier) => blockSuffix && modifier ? _bem(vue.unref(namespace), block, blockSuffix, "", modifier) : "";
|
|
9623
|
-
const bem = (blockSuffix, element, modifier) => blockSuffix && element && modifier ? _bem(vue.unref(namespace), block, blockSuffix, element, modifier) : "";
|
|
9624
|
-
const is = (name, ...args) => {
|
|
9625
|
-
const state = args.length >= 1 ? args[0] : true;
|
|
9626
|
-
return name && state ? `${statePrefix}${name}` : "";
|
|
9627
|
-
};
|
|
9628
|
-
const cssVar = (object) => {
|
|
9629
|
-
const styles = {};
|
|
9630
|
-
for (const key in object) {
|
|
9631
|
-
styles[`--${namespace.value}-${key}`] = object[key];
|
|
9632
|
-
}
|
|
9633
|
-
return styles;
|
|
9634
|
-
};
|
|
9635
|
-
const cssVarBlock = (object) => {
|
|
9636
|
-
const styles = {};
|
|
9637
|
-
for (const key in object) {
|
|
9638
|
-
styles[`--${namespace.value}-${block}-${key}`] = object[key];
|
|
9639
|
-
}
|
|
9640
|
-
return styles;
|
|
9641
|
-
};
|
|
9642
|
-
const cssVarName = (name) => `--${namespace.value}-${name}`;
|
|
9643
|
-
const cssVarBlockName = (name) => `--${namespace.value}-${block}-${name}`;
|
|
9644
|
-
return {
|
|
9645
|
-
namespace,
|
|
9646
|
-
b,
|
|
9647
|
-
e,
|
|
9648
|
-
m,
|
|
9649
|
-
be,
|
|
9650
|
-
em,
|
|
9651
|
-
bm,
|
|
9652
|
-
bem,
|
|
9653
|
-
is,
|
|
9654
|
-
cssVar,
|
|
9655
|
-
cssVarName,
|
|
9656
|
-
cssVarBlock,
|
|
9657
|
-
cssVarBlockName
|
|
9658
|
-
};
|
|
9659
|
-
};
|
|
9660
|
-
|
|
9661
9863
|
const zIndex = vue.ref(0);
|
|
9662
9864
|
const useZIndex = () => {
|
|
9663
9865
|
const initialZIndex = useGlobalConfig("zIndex", 2e3);
|
|
@@ -10696,7 +10898,7 @@
|
|
|
10696
10898
|
return [recordCursor, setCursor];
|
|
10697
10899
|
}
|
|
10698
10900
|
|
|
10699
|
-
const version$1 = "0.0.
|
|
10901
|
+
const version$1 = "0.0.20220726";
|
|
10700
10902
|
|
|
10701
10903
|
const makeInstaller = (components = []) => {
|
|
10702
10904
|
const install = (app, options) => {
|
|
@@ -16545,7 +16747,6 @@
|
|
|
16545
16747
|
]),
|
|
16546
16748
|
style: vue.normalizeStyle(_ctx.$attrs.style),
|
|
16547
16749
|
onClick: handleFocusInput,
|
|
16548
|
-
onMousedown: onMouseDownInput,
|
|
16549
16750
|
onMouseenter: onMouseEnter,
|
|
16550
16751
|
onMouseleave: onMouseLeave,
|
|
16551
16752
|
onTouchstart: onTouchStartInput,
|
|
@@ -16571,6 +16772,7 @@
|
|
|
16571
16772
|
disabled: vue.unref(pickerDisabled),
|
|
16572
16773
|
readonly: !_ctx.editable || _ctx.readonly,
|
|
16573
16774
|
class: vue.normalizeClass(vue.unref(nsRange).b("input")),
|
|
16775
|
+
onMousedown: onMouseDownInput,
|
|
16574
16776
|
onInput: handleStartInput,
|
|
16575
16777
|
onChange: handleStartChange,
|
|
16576
16778
|
onFocus: handleFocusInput,
|
|
@@ -16590,6 +16792,7 @@
|
|
|
16590
16792
|
disabled: vue.unref(pickerDisabled),
|
|
16591
16793
|
readonly: !_ctx.editable || _ctx.readonly,
|
|
16592
16794
|
class: vue.normalizeClass(vue.unref(nsRange).b("input")),
|
|
16795
|
+
onMousedown: onMouseDownInput,
|
|
16593
16796
|
onFocus: handleFocusInput,
|
|
16594
16797
|
onBlur: handleBlurInput,
|
|
16595
16798
|
onInput: handleEndInput,
|
|
@@ -18231,6 +18434,7 @@
|
|
|
18231
18434
|
const root = vue.ref();
|
|
18232
18435
|
const items = vue.ref([]);
|
|
18233
18436
|
const arrowDisplay = vue.computed(() => props.arrow !== "never" && !vue.unref(isVertical));
|
|
18437
|
+
const interval = vue.computed(() => props.interval);
|
|
18234
18438
|
const hasLabel = vue.computed(() => {
|
|
18235
18439
|
return items.value.some((item) => item.props.label.toString().length > 0);
|
|
18236
18440
|
});
|
|
@@ -18266,9 +18470,9 @@
|
|
|
18266
18470
|
}
|
|
18267
18471
|
}
|
|
18268
18472
|
function startTimer() {
|
|
18269
|
-
if (
|
|
18473
|
+
if (interval.value <= 0 || !props.autoplay || timer.value)
|
|
18270
18474
|
return;
|
|
18271
|
-
timer.value = setInterval(() => playSlides(),
|
|
18475
|
+
timer.value = setInterval(() => playSlides(), interval.value);
|
|
18272
18476
|
}
|
|
18273
18477
|
const playSlides = () => {
|
|
18274
18478
|
if (activeIndex.value < items.value.length - 1) {
|
|
@@ -19171,8 +19375,8 @@
|
|
|
19171
19375
|
});
|
|
19172
19376
|
vue.provide("CheckboxGroup", {
|
|
19173
19377
|
name: "ElCheckboxGroup",
|
|
19174
|
-
modelValue,
|
|
19175
19378
|
...vue.toRefs(props),
|
|
19379
|
+
modelValue,
|
|
19176
19380
|
checkboxGroupSize,
|
|
19177
19381
|
changeEvent
|
|
19178
19382
|
});
|
|
@@ -20937,7 +21141,6 @@
|
|
|
20937
21141
|
return vue.openBlock(), vue.createBlock(_component_el_tooltip, {
|
|
20938
21142
|
ref: "tooltipRef",
|
|
20939
21143
|
visible: _ctx.popperVisible,
|
|
20940
|
-
"onUpdate:visible": _cache[17] || (_cache[17] = ($event) => _ctx.popperVisible = $event),
|
|
20941
21144
|
teleported: _ctx.teleported,
|
|
20942
21145
|
"popper-class": [_ctx.nsCascader.e("dropdown"), _ctx.popperClass],
|
|
20943
21146
|
"popper-options": _ctx.popperOptions,
|
|
@@ -21582,10 +21785,10 @@
|
|
|
21582
21785
|
};
|
|
21583
21786
|
const upFn = function(event) {
|
|
21584
21787
|
var _a;
|
|
21585
|
-
|
|
21586
|
-
|
|
21587
|
-
|
|
21588
|
-
|
|
21788
|
+
document.removeEventListener("mousemove", moveFn);
|
|
21789
|
+
document.removeEventListener("mouseup", upFn);
|
|
21790
|
+
document.removeEventListener("touchmove", moveFn);
|
|
21791
|
+
document.removeEventListener("touchend", upFn);
|
|
21589
21792
|
document.onselectstart = null;
|
|
21590
21793
|
document.ondragstart = null;
|
|
21591
21794
|
isDragging = false;
|
|
@@ -21598,15 +21801,15 @@
|
|
|
21598
21801
|
event.preventDefault();
|
|
21599
21802
|
document.onselectstart = () => false;
|
|
21600
21803
|
document.ondragstart = () => false;
|
|
21601
|
-
|
|
21602
|
-
|
|
21603
|
-
|
|
21604
|
-
|
|
21804
|
+
document.addEventListener("mousemove", moveFn);
|
|
21805
|
+
document.addEventListener("mouseup", upFn);
|
|
21806
|
+
document.addEventListener("touchmove", moveFn);
|
|
21807
|
+
document.addEventListener("touchend", upFn);
|
|
21605
21808
|
isDragging = true;
|
|
21606
21809
|
(_a = options.start) == null ? void 0 : _a.call(options, event);
|
|
21607
21810
|
};
|
|
21608
|
-
|
|
21609
|
-
|
|
21811
|
+
document.addEventListener("mousedown", downFn);
|
|
21812
|
+
document.addEventListener("touchstart", downFn);
|
|
21610
21813
|
}
|
|
21611
21814
|
|
|
21612
21815
|
const _sfc_main$1v = vue.defineComponent({
|
|
@@ -22517,7 +22720,6 @@
|
|
|
22517
22720
|
return vue.openBlock(), vue.createBlock(_component_el_tooltip, {
|
|
22518
22721
|
ref: "popper",
|
|
22519
22722
|
visible: _ctx.showPicker,
|
|
22520
|
-
"onUpdate:visible": _cache[3] || (_cache[3] = ($event) => _ctx.showPicker = $event),
|
|
22521
22723
|
"show-arrow": false,
|
|
22522
22724
|
"fallback-placements": ["bottom", "top", "right", "left"],
|
|
22523
22725
|
offset: 0,
|
|
@@ -26895,14 +27097,7 @@
|
|
|
26895
27097
|
vue.watch(() => props.currentTabId, (val) => {
|
|
26896
27098
|
currentTabbedId.value = val != null ? val : null;
|
|
26897
27099
|
});
|
|
26898
|
-
|
|
26899
|
-
const rovingFocusGroupEl = vue.unref(rovingFocusGroupRef);
|
|
26900
|
-
on$1(rovingFocusGroupEl, ENTRY_FOCUS_EVT, handleEntryFocus);
|
|
26901
|
-
});
|
|
26902
|
-
vue.onBeforeUnmount(() => {
|
|
26903
|
-
const rovingFocusGroupEl = vue.unref(rovingFocusGroupRef);
|
|
26904
|
-
off(rovingFocusGroupEl, ENTRY_FOCUS_EVT, handleEntryFocus);
|
|
26905
|
-
});
|
|
27100
|
+
useEventListener(rovingFocusGroupRef, ENTRY_FOCUS_EVT, handleEntryFocus);
|
|
26906
27101
|
}
|
|
26907
27102
|
});
|
|
26908
27103
|
function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -30068,7 +30263,8 @@
|
|
|
30068
30263
|
load: (evt) => evt instanceof Event,
|
|
30069
30264
|
error: (evt) => evt instanceof Event,
|
|
30070
30265
|
switch: (val) => isNumber(val),
|
|
30071
|
-
close: () => true
|
|
30266
|
+
close: () => true,
|
|
30267
|
+
show: () => true
|
|
30072
30268
|
};
|
|
30073
30269
|
|
|
30074
30270
|
const _hoisted_1$r = ["src", "loading"];
|
|
@@ -30190,6 +30386,7 @@
|
|
|
30190
30386
|
prevOverflow = document.body.style.overflow;
|
|
30191
30387
|
document.body.style.overflow = "hidden";
|
|
30192
30388
|
showViewer.value = true;
|
|
30389
|
+
emit("show");
|
|
30193
30390
|
}
|
|
30194
30391
|
function closeViewer() {
|
|
30195
30392
|
stopWheelListener == null ? void 0 : stopWheelListener();
|
|
@@ -31321,11 +31518,6 @@
|
|
|
31321
31518
|
}
|
|
31322
31519
|
updateActiveIndex(currentActive);
|
|
31323
31520
|
});
|
|
31324
|
-
vue.watch(items.value, () => {
|
|
31325
|
-
initMenu();
|
|
31326
|
-
if (props.mode === "horizontal" && props.ellipsis)
|
|
31327
|
-
handleResize();
|
|
31328
|
-
});
|
|
31329
31521
|
vue.watch(() => props.collapse, (value) => {
|
|
31330
31522
|
if (value)
|
|
31331
31523
|
openedMenus.value = [];
|
|
@@ -32970,12 +33162,11 @@
|
|
|
32970
33162
|
return vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
|
32971
33163
|
ref: "selectWrapper",
|
|
32972
33164
|
class: vue.normalizeClass(_ctx.wrapperKls),
|
|
32973
|
-
onClick: _cache[
|
|
33165
|
+
onClick: _cache[22] || (_cache[22] = vue.withModifiers((...args) => _ctx.toggleMenu && _ctx.toggleMenu(...args), ["stop"]))
|
|
32974
33166
|
}, [
|
|
32975
33167
|
vue.createVNode(_component_el_tooltip, {
|
|
32976
33168
|
ref: "tooltipRef",
|
|
32977
33169
|
visible: _ctx.dropMenuVisible,
|
|
32978
|
-
"onUpdate:visible": _cache[22] || (_cache[22] = ($event) => _ctx.dropMenuVisible = $event),
|
|
32979
33170
|
placement: "bottom-start",
|
|
32980
33171
|
teleported: _ctx.teleported,
|
|
32981
33172
|
"popper-class": [_ctx.nsSelect.e("popper"), _ctx.popperClass],
|
|
@@ -36294,7 +36485,7 @@
|
|
|
36294
36485
|
const _states = vue.unref(states);
|
|
36295
36486
|
columnIdx = Math.max(0, Math.min(columnIdx, props.totalColumn - 1));
|
|
36296
36487
|
rowIndex = Math.max(0, Math.min(rowIndex, props.totalRow - 1));
|
|
36297
|
-
const scrollBarWidth = getScrollBarWidth();
|
|
36488
|
+
const scrollBarWidth = getScrollBarWidth(ns.namespace.value);
|
|
36298
36489
|
const _cache = vue.unref(cache);
|
|
36299
36490
|
const estimatedHeight = getEstimatedTotalHeight(props, _cache);
|
|
36300
36491
|
const estimatedWidth = getEstimatedTotalWidth(props, _cache);
|
|
@@ -38035,14 +38226,13 @@
|
|
|
38035
38226
|
return vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
|
38036
38227
|
ref: "selectRef",
|
|
38037
38228
|
class: vue.normalizeClass([_ctx.nsSelectV2.b(), _ctx.nsSelectV2.m(_ctx.selectSize)]),
|
|
38038
|
-
onClick: _cache[
|
|
38039
|
-
onMouseenter: _cache[
|
|
38040
|
-
onMouseleave: _cache[
|
|
38229
|
+
onClick: _cache[23] || (_cache[23] = vue.withModifiers((...args) => _ctx.toggleMenu && _ctx.toggleMenu(...args), ["stop"])),
|
|
38230
|
+
onMouseenter: _cache[24] || (_cache[24] = ($event) => _ctx.states.comboBoxHovering = true),
|
|
38231
|
+
onMouseleave: _cache[25] || (_cache[25] = ($event) => _ctx.states.comboBoxHovering = false)
|
|
38041
38232
|
}, [
|
|
38042
38233
|
vue.createVNode(_component_el_tooltip, {
|
|
38043
38234
|
ref: "popper",
|
|
38044
38235
|
visible: _ctx.dropdownMenuVisible,
|
|
38045
|
-
"onUpdate:visible": _cache[22] || (_cache[22] = ($event) => _ctx.dropdownMenuVisible = $event),
|
|
38046
38236
|
teleported: _ctx.teleported,
|
|
38047
38237
|
"popper-class": [_ctx.nsSelectV2.e("popper"), _ctx.popperClass],
|
|
38048
38238
|
"gpu-acceleration": false,
|
|
@@ -38056,7 +38246,7 @@
|
|
|
38056
38246
|
trigger: "click",
|
|
38057
38247
|
persistent: _ctx.persistent,
|
|
38058
38248
|
onBeforeShow: _ctx.handleMenuEnter,
|
|
38059
|
-
onHide: _cache[
|
|
38249
|
+
onHide: _cache[22] || (_cache[22] = ($event) => _ctx.states.inputValue = _ctx.states.displayInputValue)
|
|
38060
38250
|
}, {
|
|
38061
38251
|
default: vue.withCtx(() => {
|
|
38062
38252
|
var _a;
|
|
@@ -39136,19 +39326,18 @@
|
|
|
39136
39326
|
class: vue.normalizeClass([vue.unref(ns).e("button-wrapper"), { hover: vue.unref(hovering), dragging: vue.unref(dragging) }]),
|
|
39137
39327
|
style: vue.normalizeStyle(vue.unref(wrapperStyle)),
|
|
39138
39328
|
tabindex: "0",
|
|
39139
|
-
onMouseenter: _cache[
|
|
39140
|
-
onMouseleave: _cache[
|
|
39141
|
-
onMousedown: _cache[
|
|
39142
|
-
onTouchstart: _cache[
|
|
39143
|
-
onFocus: _cache[
|
|
39144
|
-
onBlur: _cache[
|
|
39145
|
-
onKeydown: _cache[
|
|
39329
|
+
onMouseenter: _cache[0] || (_cache[0] = (...args) => vue.unref(handleMouseEnter) && vue.unref(handleMouseEnter)(...args)),
|
|
39330
|
+
onMouseleave: _cache[1] || (_cache[1] = (...args) => vue.unref(handleMouseLeave) && vue.unref(handleMouseLeave)(...args)),
|
|
39331
|
+
onMousedown: _cache[2] || (_cache[2] = (...args) => vue.unref(onButtonDown) && vue.unref(onButtonDown)(...args)),
|
|
39332
|
+
onTouchstart: _cache[3] || (_cache[3] = (...args) => vue.unref(onButtonDown) && vue.unref(onButtonDown)(...args)),
|
|
39333
|
+
onFocus: _cache[4] || (_cache[4] = (...args) => vue.unref(handleMouseEnter) && vue.unref(handleMouseEnter)(...args)),
|
|
39334
|
+
onBlur: _cache[5] || (_cache[5] = (...args) => vue.unref(handleMouseLeave) && vue.unref(handleMouseLeave)(...args)),
|
|
39335
|
+
onKeydown: _cache[6] || (_cache[6] = (...args) => vue.unref(onKeyDown) && vue.unref(onKeyDown)(...args))
|
|
39146
39336
|
}, [
|
|
39147
39337
|
vue.createVNode(vue.unref(ElTooltip), {
|
|
39148
39338
|
ref_key: "tooltip",
|
|
39149
39339
|
ref: tooltip,
|
|
39150
39340
|
visible: vue.unref(tooltipVisible),
|
|
39151
|
-
"onUpdate:visible": _cache[0] || (_cache[0] = ($event) => vue.isRef(tooltipVisible) ? tooltipVisible.value = $event : null),
|
|
39152
39341
|
placement: _ctx.placement,
|
|
39153
39342
|
"fallback-placements": ["top", "bottom", "right", "left"],
|
|
39154
39343
|
"stop-popper-mouse-event": false,
|
|
@@ -41928,7 +42117,6 @@
|
|
|
41928
42117
|
return vue.openBlock(), vue.createBlock(_component_el_tooltip, {
|
|
41929
42118
|
ref: "tooltip",
|
|
41930
42119
|
visible: _ctx.tooltipVisible,
|
|
41931
|
-
"onUpdate:visible": _cache[5] || (_cache[5] = ($event) => _ctx.tooltipVisible = $event),
|
|
41932
42120
|
offset: 0,
|
|
41933
42121
|
placement: _ctx.placement,
|
|
41934
42122
|
"show-arrow": false,
|
|
@@ -43298,6 +43486,7 @@
|
|
|
43298
43486
|
const tableScrollHeight = vue.ref(0);
|
|
43299
43487
|
const bodyScrollHeight = vue.ref(0);
|
|
43300
43488
|
const headerScrollHeight = vue.ref(0);
|
|
43489
|
+
const footerScrollHeight = vue.ref(0);
|
|
43301
43490
|
vue.watchEffect(() => {
|
|
43302
43491
|
layout.setHeight(props.height);
|
|
43303
43492
|
});
|
|
@@ -43432,7 +43621,7 @@
|
|
|
43432
43621
|
}
|
|
43433
43622
|
};
|
|
43434
43623
|
const resizeListener = () => {
|
|
43435
|
-
var _a;
|
|
43624
|
+
var _a, _b;
|
|
43436
43625
|
if (!table.$ready)
|
|
43437
43626
|
return;
|
|
43438
43627
|
let shouldUpdateLayout = false;
|
|
@@ -43451,17 +43640,18 @@
|
|
|
43451
43640
|
shouldUpdateLayout = true;
|
|
43452
43641
|
}
|
|
43453
43642
|
const tableHeader = table.refs.headerWrapper;
|
|
43454
|
-
if (props.showHeader && tableHeader.offsetHeight !== oldHeaderHeight) {
|
|
43643
|
+
if (props.showHeader && (tableHeader == null ? void 0 : tableHeader.offsetHeight) !== oldHeaderHeight) {
|
|
43455
43644
|
shouldUpdateLayout = true;
|
|
43456
43645
|
}
|
|
43457
|
-
tableScrollHeight.value = table.refs.tableWrapper.scrollHeight;
|
|
43458
|
-
headerScrollHeight.value = (
|
|
43459
|
-
|
|
43646
|
+
tableScrollHeight.value = ((_a = table.refs.tableWrapper) == null ? void 0 : _a.scrollHeight) || 0;
|
|
43647
|
+
headerScrollHeight.value = (tableHeader == null ? void 0 : tableHeader.scrollHeight) || 0;
|
|
43648
|
+
footerScrollHeight.value = ((_b = table.refs.footerWrapper) == null ? void 0 : _b.scrollHeight) || 0;
|
|
43649
|
+
bodyScrollHeight.value = tableScrollHeight.value - headerScrollHeight.value - footerScrollHeight.value;
|
|
43460
43650
|
if (shouldUpdateLayout) {
|
|
43461
43651
|
resizeState.value = {
|
|
43462
43652
|
width,
|
|
43463
43653
|
height,
|
|
43464
|
-
headerHeight: props.showHeader ? tableHeader.offsetHeight
|
|
43654
|
+
headerHeight: props.showHeader && (tableHeader == null ? void 0 : tableHeader.offsetHeight) || 0
|
|
43465
43655
|
};
|
|
43466
43656
|
doLayout();
|
|
43467
43657
|
}
|
|
@@ -43503,7 +43693,7 @@
|
|
|
43503
43693
|
return {};
|
|
43504
43694
|
});
|
|
43505
43695
|
const scrollbarStyle = vue.computed(() => {
|
|
43506
|
-
var _a;
|
|
43696
|
+
var _a, _b;
|
|
43507
43697
|
if (props.height) {
|
|
43508
43698
|
return {
|
|
43509
43699
|
height: "100%"
|
|
@@ -43512,16 +43702,17 @@
|
|
|
43512
43702
|
if (props.maxHeight) {
|
|
43513
43703
|
if (!Number.isNaN(Number(props.maxHeight))) {
|
|
43514
43704
|
const headerHeight = ((_a = table.refs.headerWrapper) == null ? void 0 : _a.scrollHeight) || 0;
|
|
43705
|
+
const footerHeight = ((_b = table.refs.footerWrapper) == null ? void 0 : _b.scrollHeight) || 0;
|
|
43515
43706
|
const maxHeight = props.maxHeight;
|
|
43516
43707
|
const reachMaxHeight = tableScrollHeight.value >= Number(maxHeight);
|
|
43517
43708
|
if (reachMaxHeight) {
|
|
43518
43709
|
return {
|
|
43519
|
-
maxHeight: `${tableScrollHeight.value - headerHeight}px`
|
|
43710
|
+
maxHeight: `${tableScrollHeight.value - headerHeight - footerHeight}px`
|
|
43520
43711
|
};
|
|
43521
43712
|
}
|
|
43522
43713
|
} else {
|
|
43523
43714
|
return {
|
|
43524
|
-
maxHeight: `calc(${props.maxHeight} - ${headerScrollHeight.value}px)`
|
|
43715
|
+
maxHeight: `calc(${props.maxHeight} - ${headerScrollHeight.value + footerScrollHeight.value}px)`
|
|
43525
43716
|
};
|
|
43526
43717
|
}
|
|
43527
43718
|
}
|
|
@@ -43906,6 +44097,7 @@
|
|
|
43906
44097
|
}, null, 8, ["columns", "table-layout"]),
|
|
43907
44098
|
_ctx.showHeader && _ctx.tableLayout === "auto" ? (vue.openBlock(), vue.createBlock(_component_table_header, {
|
|
43908
44099
|
key: 0,
|
|
44100
|
+
ref: "tableHeaderRef",
|
|
43909
44101
|
border: _ctx.border,
|
|
43910
44102
|
"default-sort": _ctx.defaultSort,
|
|
43911
44103
|
store: _ctx.store,
|
|
@@ -49859,10 +50051,6 @@
|
|
|
49859
50051
|
const checkboxItems = vue.shallowRef([]);
|
|
49860
50052
|
vue.onMounted(() => {
|
|
49861
50053
|
initTabIndex();
|
|
49862
|
-
on$1(el$.value, "keydown", handleKeydown);
|
|
49863
|
-
});
|
|
49864
|
-
vue.onBeforeUnmount(() => {
|
|
49865
|
-
off(el$.value, "keydown", handleKeydown);
|
|
49866
50054
|
});
|
|
49867
50055
|
vue.onUpdated(() => {
|
|
49868
50056
|
treeItems.value = Array.from(el$.value.querySelectorAll("[role=treeitem]"));
|
|
@@ -49926,6 +50114,7 @@
|
|
|
49926
50114
|
hasInput.click();
|
|
49927
50115
|
}
|
|
49928
50116
|
};
|
|
50117
|
+
useEventListener(el$, "keydown", handleKeydown);
|
|
49929
50118
|
const initTabIndex = () => {
|
|
49930
50119
|
var _a;
|
|
49931
50120
|
treeItems.value = Array.from(el$.value.querySelectorAll(`.${ns.is("focusable")}[role=treeitem]`));
|
|
@@ -53245,12 +53434,12 @@
|
|
|
53245
53434
|
vue.onMounted(async () => {
|
|
53246
53435
|
await vue.nextTick();
|
|
53247
53436
|
if (props.closeOnHashChange) {
|
|
53248
|
-
|
|
53437
|
+
window.addEventListener("hashchange", doClose);
|
|
53249
53438
|
}
|
|
53250
53439
|
});
|
|
53251
53440
|
vue.onBeforeUnmount(() => {
|
|
53252
53441
|
if (props.closeOnHashChange) {
|
|
53253
|
-
|
|
53442
|
+
window.removeEventListener("hashchange", doClose);
|
|
53254
53443
|
}
|
|
53255
53444
|
});
|
|
53256
53445
|
function doClose() {
|