@element-plus/nightly 0.0.20221025 → 0.0.20221027
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/dist/index.full.js +162 -176
- package/dist/index.full.min.js +19 -19
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +21 -21
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +163 -177
- 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/autocomplete/index.d.ts +1 -66
- package/es/components/autocomplete/src/autocomplete.vue.d.ts +1 -66
- package/es/components/carousel/index.d.ts +13 -27
- package/es/components/carousel/index.mjs.map +1 -1
- package/es/components/carousel/src/carousel-item.d.ts +0 -2
- package/es/components/carousel/src/carousel-item.mjs.map +1 -1
- package/es/components/carousel/src/carousel-item.vue.d.ts +13 -20
- package/es/components/carousel/src/carousel-item2.mjs +21 -114
- package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
- package/es/components/carousel/src/instance.d.ts +2 -0
- package/es/components/carousel/src/use-carousel-item.d.ts +13 -0
- package/es/components/carousel/src/use-carousel-item.mjs +125 -0
- package/es/components/carousel/src/use-carousel-item.mjs.map +1 -0
- package/es/components/cascader/index.d.ts +2 -84
- package/es/components/cascader/src/index.mjs +3 -10
- package/es/components/cascader/src/index.mjs.map +1 -1
- package/es/components/cascader/src/index.vue.d.ts +1 -42
- package/es/components/checkbox/src/composables/use-checkbox.mjs +4 -5
- package/es/components/checkbox/src/composables/use-checkbox.mjs.map +1 -1
- package/es/components/color-picker/index.d.ts +1 -66
- package/es/components/color-picker/src/color-picker.vue.d.ts +1 -66
- package/es/components/dialog/index.d.ts +1 -1
- package/es/components/dialog/src/dialog.vue.d.ts +1 -1
- package/es/components/drawer/index.d.ts +1 -1
- package/es/components/drawer/src/drawer.vue.d.ts +1 -1
- package/es/components/dropdown/index.d.ts +4 -42
- package/es/components/dropdown/src/dropdown.d.ts +1 -0
- package/es/components/dropdown/src/dropdown.mjs +2 -1
- package/es/components/dropdown/src/dropdown.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown.vue.d.ts +4 -42
- package/es/components/dropdown/src/dropdown2.mjs +2 -2
- package/es/components/dropdown/src/dropdown2.mjs.map +1 -1
- package/es/components/form/src/form2.mjs +2 -0
- package/es/components/form/src/form2.mjs.map +1 -1
- package/es/components/input-number/src/input-number2.mjs +2 -2
- package/es/components/input-number/src/input-number2.mjs.map +1 -1
- package/es/components/pagination/src/components/sizes.vue.d.ts +1 -42
- package/es/components/popconfirm/index.d.ts +1 -66
- package/es/components/popconfirm/src/popconfirm.vue.d.ts +1 -66
- package/es/components/popover/index.d.ts +1 -66
- package/es/components/popover/src/popover.vue.d.ts +1 -66
- package/es/components/popper/src/utils.d.ts +0 -4
- package/es/components/popper/src/utils.mjs +1 -2
- package/es/components/popper/src/utils.mjs.map +1 -1
- package/es/components/select/index.d.ts +1 -42
- package/es/components/select/src/select.vue.d.ts +1 -42
- package/es/components/select/src/useSelect.d.ts +1 -42
- package/es/components/select/src/useSelect.mjs +9 -9
- package/es/components/select/src/useSelect.mjs.map +1 -1
- package/es/components/select-v2/index.d.ts +2 -84
- package/es/components/select-v2/src/select.vue.d.ts +1 -42
- package/es/components/select-v2/src/useSelect.d.ts +1 -42
- package/es/components/slider/index.d.ts +0 -120
- package/es/components/slider/src/button.vue.d.ts +0 -24
- package/es/components/slider/src/composables/use-slide.d.ts +0 -96
- package/es/components/slider/src/slider.vue.d.ts +0 -120
- package/es/components/table/src/filter-panel.vue.d.ts +1 -42
- package/es/components/tabs/src/tabs.mjs +14 -22
- package/es/components/tabs/src/tabs.mjs.map +1 -1
- package/es/components/time-picker/src/common/picker.vue.d.ts +1 -66
- package/es/components/time-select/index.d.ts +4 -168
- package/es/components/time-select/src/time-select.vue.d.ts +2 -84
- package/es/components/tooltip/index.d.ts +0 -24
- package/es/components/tooltip/src/tooltip.d.ts +0 -7
- package/es/components/tooltip/src/tooltip.mjs +0 -7
- package/es/components/tooltip/src/tooltip.mjs.map +1 -1
- package/es/components/tooltip/src/tooltip.vue.d.ts +3 -25
- package/es/components/tooltip/src/tooltip2.mjs +5 -19
- package/es/components/tooltip/src/tooltip2.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/autocomplete/index.d.ts +1 -66
- package/lib/components/autocomplete/src/autocomplete.vue.d.ts +1 -66
- package/lib/components/carousel/index.d.ts +13 -27
- package/lib/components/carousel/index.js.map +1 -1
- package/lib/components/carousel/src/carousel-item.d.ts +0 -2
- package/lib/components/carousel/src/carousel-item.js.map +1 -1
- package/lib/components/carousel/src/carousel-item.vue.d.ts +13 -20
- package/lib/components/carousel/src/carousel-item2.js +20 -113
- package/lib/components/carousel/src/carousel-item2.js.map +1 -1
- package/lib/components/carousel/src/instance.d.ts +2 -0
- package/lib/components/carousel/src/use-carousel-item.d.ts +13 -0
- package/lib/components/carousel/src/use-carousel-item.js +129 -0
- package/lib/components/carousel/src/use-carousel-item.js.map +1 -0
- package/lib/components/cascader/index.d.ts +2 -84
- package/lib/components/cascader/src/index.js +3 -10
- package/lib/components/cascader/src/index.js.map +1 -1
- package/lib/components/cascader/src/index.vue.d.ts +1 -42
- package/lib/components/checkbox/src/composables/use-checkbox.js +4 -5
- package/lib/components/checkbox/src/composables/use-checkbox.js.map +1 -1
- package/lib/components/color-picker/index.d.ts +1 -66
- package/lib/components/color-picker/src/color-picker.vue.d.ts +1 -66
- package/lib/components/dialog/index.d.ts +1 -1
- package/lib/components/dialog/src/dialog.vue.d.ts +1 -1
- package/lib/components/drawer/index.d.ts +1 -1
- package/lib/components/drawer/src/drawer.vue.d.ts +1 -1
- package/lib/components/dropdown/index.d.ts +4 -42
- package/lib/components/dropdown/src/dropdown.d.ts +1 -0
- package/lib/components/dropdown/src/dropdown.js +2 -1
- package/lib/components/dropdown/src/dropdown.js.map +1 -1
- package/lib/components/dropdown/src/dropdown.vue.d.ts +4 -42
- package/lib/components/dropdown/src/dropdown2.js +2 -2
- package/lib/components/dropdown/src/dropdown2.js.map +1 -1
- package/lib/components/form/src/form2.js +2 -0
- package/lib/components/form/src/form2.js.map +1 -1
- package/lib/components/input-number/src/input-number2.js +2 -2
- package/lib/components/input-number/src/input-number2.js.map +1 -1
- package/lib/components/pagination/src/components/sizes.vue.d.ts +1 -42
- package/lib/components/popconfirm/index.d.ts +1 -66
- package/lib/components/popconfirm/src/popconfirm.vue.d.ts +1 -66
- package/lib/components/popover/index.d.ts +1 -66
- package/lib/components/popover/src/popover.vue.d.ts +1 -66
- package/lib/components/popper/src/utils.d.ts +0 -4
- package/lib/components/popper/src/utils.js +1 -2
- package/lib/components/popper/src/utils.js.map +1 -1
- package/lib/components/select/index.d.ts +1 -42
- package/lib/components/select/src/select.vue.d.ts +1 -42
- package/lib/components/select/src/useSelect.d.ts +1 -42
- package/lib/components/select/src/useSelect.js +7 -7
- package/lib/components/select/src/useSelect.js.map +1 -1
- package/lib/components/select-v2/index.d.ts +2 -84
- package/lib/components/select-v2/src/select.vue.d.ts +1 -42
- package/lib/components/select-v2/src/useSelect.d.ts +1 -42
- package/lib/components/slider/index.d.ts +0 -120
- package/lib/components/slider/src/button.vue.d.ts +0 -24
- package/lib/components/slider/src/composables/use-slide.d.ts +0 -96
- package/lib/components/slider/src/slider.vue.d.ts +0 -120
- package/lib/components/table/src/filter-panel.vue.d.ts +1 -42
- package/lib/components/tabs/src/tabs.js +17 -25
- package/lib/components/tabs/src/tabs.js.map +1 -1
- package/lib/components/time-picker/src/common/picker.vue.d.ts +1 -66
- package/lib/components/time-select/index.d.ts +4 -168
- package/lib/components/time-select/src/time-select.vue.d.ts +2 -84
- package/lib/components/tooltip/index.d.ts +0 -24
- package/lib/components/tooltip/src/tooltip.d.ts +0 -7
- package/lib/components/tooltip/src/tooltip.js +0 -7
- package/lib/components/tooltip/src/tooltip.js.map +1 -1
- package/lib/components/tooltip/src/tooltip.vue.d.ts +3 -25
- package/lib/components/tooltip/src/tooltip2.js +4 -18
- package/lib/components/tooltip/src/tooltip2.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/tags.json +1 -1
- package/theme-chalk/el-cascader.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/cascader.scss +2 -0
- package/web-types.json +1 -1
- package/es/components/tabs/src/utils/pane.d.ts +0 -22
- package/es/components/tabs/src/utils/pane.mjs +0 -19
- package/es/components/tabs/src/utils/pane.mjs.map +0 -1
- package/lib/components/tabs/src/utils/pane.d.ts +0 -22
- package/lib/components/tabs/src/utils/pane.js +0 -24
- package/lib/components/tabs/src/utils/pane.js.map +0 -1
|
@@ -3,18 +3,13 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
|
-
require('../../../utils/index.js');
|
|
7
6
|
require('../../../hooks/index.js');
|
|
8
|
-
require('../../../tokens/index.js');
|
|
9
7
|
var carouselItem = require('./carousel-item.js');
|
|
8
|
+
var useCarouselItem = require('./use-carousel-item.js');
|
|
10
9
|
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
11
10
|
var index = require('../../../hooks/use-namespace/index.js');
|
|
12
|
-
var carousel = require('../../../tokens/carousel.js');
|
|
13
|
-
var error = require('../../../utils/error.js');
|
|
14
|
-
var types = require('../../../utils/types.js');
|
|
15
11
|
|
|
16
12
|
const COMPONENT_NAME = "ElCarouselItem";
|
|
17
|
-
const CARD_SCALE = 0.83;
|
|
18
13
|
const __default__ = vue.defineComponent({
|
|
19
14
|
name: "ElCarouselItem"
|
|
20
15
|
});
|
|
@@ -24,22 +19,18 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
24
19
|
setup(__props) {
|
|
25
20
|
const props = __props;
|
|
26
21
|
const ns = index.useNamespace("carousel");
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
const ready = vue.ref(false);
|
|
40
|
-
const inStage = vue.ref(false);
|
|
41
|
-
const animating = vue.ref(false);
|
|
42
|
-
const { isCardType, isVertical } = carouselContext;
|
|
22
|
+
const {
|
|
23
|
+
active,
|
|
24
|
+
animating,
|
|
25
|
+
hover,
|
|
26
|
+
inStage,
|
|
27
|
+
isVertical,
|
|
28
|
+
translate,
|
|
29
|
+
isCardType,
|
|
30
|
+
scale,
|
|
31
|
+
ready,
|
|
32
|
+
handleItemClick
|
|
33
|
+
} = useCarouselItem.useCarouselItem(props, COMPONENT_NAME);
|
|
43
34
|
const itemStyle = vue.computed(() => {
|
|
44
35
|
const translateType = `translate${vue.unref(isVertical) ? "Y" : "X"}`;
|
|
45
36
|
const _translate = `${translateType}(${vue.unref(translate)}px)`;
|
|
@@ -49,112 +40,28 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
49
40
|
transform
|
|
50
41
|
};
|
|
51
42
|
});
|
|
52
|
-
function processIndex(index, activeIndex, length) {
|
|
53
|
-
const lastItemIndex = length - 1;
|
|
54
|
-
const prevItemIndex = activeIndex - 1;
|
|
55
|
-
const nextItemIndex = activeIndex + 1;
|
|
56
|
-
const halfItemIndex = length / 2;
|
|
57
|
-
if (activeIndex === 0 && index === lastItemIndex) {
|
|
58
|
-
return -1;
|
|
59
|
-
} else if (activeIndex === lastItemIndex && index === 0) {
|
|
60
|
-
return length;
|
|
61
|
-
} else if (index < prevItemIndex && activeIndex - index >= halfItemIndex) {
|
|
62
|
-
return length + 1;
|
|
63
|
-
} else if (index > nextItemIndex && index - activeIndex >= halfItemIndex) {
|
|
64
|
-
return -2;
|
|
65
|
-
}
|
|
66
|
-
return index;
|
|
67
|
-
}
|
|
68
|
-
function calcCardTranslate(index, activeIndex) {
|
|
69
|
-
var _a;
|
|
70
|
-
const parentWidth = ((_a = carouselContext.root.value) == null ? void 0 : _a.offsetWidth) || 0;
|
|
71
|
-
if (inStage.value) {
|
|
72
|
-
return parentWidth * ((2 - CARD_SCALE) * (index - activeIndex) + 1) / 4;
|
|
73
|
-
} else if (index < activeIndex) {
|
|
74
|
-
return -(1 + CARD_SCALE) * parentWidth / 4;
|
|
75
|
-
} else {
|
|
76
|
-
return (3 + CARD_SCALE) * parentWidth / 4;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
function calcTranslate(index, activeIndex, isVertical2) {
|
|
80
|
-
const rootEl = carouselContext.root.value;
|
|
81
|
-
if (!rootEl)
|
|
82
|
-
return 0;
|
|
83
|
-
const distance = (isVertical2 ? rootEl.offsetHeight : rootEl.offsetWidth) || 0;
|
|
84
|
-
return distance * (index - activeIndex);
|
|
85
|
-
}
|
|
86
|
-
const translateItem = (index, activeIndex, oldIndex) => {
|
|
87
|
-
var _a;
|
|
88
|
-
const _isCardType = vue.unref(isCardType);
|
|
89
|
-
const carouselItemLength = (_a = carouselContext.items.value.length) != null ? _a : Number.NaN;
|
|
90
|
-
const isActive = index === activeIndex;
|
|
91
|
-
if (!_isCardType && !types.isUndefined(oldIndex)) {
|
|
92
|
-
animating.value = isActive || index === oldIndex;
|
|
93
|
-
}
|
|
94
|
-
if (!isActive && carouselItemLength > 2 && carouselContext.loop) {
|
|
95
|
-
index = processIndex(index, activeIndex, carouselItemLength);
|
|
96
|
-
}
|
|
97
|
-
const _isVertical = vue.unref(isVertical);
|
|
98
|
-
active.value = isActive;
|
|
99
|
-
if (_isCardType) {
|
|
100
|
-
if (_isVertical) {
|
|
101
|
-
error.debugWarn("Carousel", "vertical direction is not supported for card mode");
|
|
102
|
-
}
|
|
103
|
-
inStage.value = Math.round(Math.abs(index - activeIndex)) <= 1;
|
|
104
|
-
translate.value = calcCardTranslate(index, activeIndex);
|
|
105
|
-
scale.value = vue.unref(active) ? 1 : CARD_SCALE;
|
|
106
|
-
} else {
|
|
107
|
-
translate.value = calcTranslate(index, activeIndex, _isVertical);
|
|
108
|
-
}
|
|
109
|
-
ready.value = true;
|
|
110
|
-
};
|
|
111
|
-
function handleItemClick() {
|
|
112
|
-
if (carouselContext && vue.unref(isCardType)) {
|
|
113
|
-
const index = carouselContext.items.value.findIndex(({ uid }) => uid === instance.uid);
|
|
114
|
-
carouselContext.setActiveItem(index);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
vue.onMounted(() => {
|
|
118
|
-
carouselContext.addItem({
|
|
119
|
-
props,
|
|
120
|
-
states: vue.reactive({
|
|
121
|
-
hover,
|
|
122
|
-
translate,
|
|
123
|
-
scale,
|
|
124
|
-
active,
|
|
125
|
-
ready,
|
|
126
|
-
inStage,
|
|
127
|
-
animating
|
|
128
|
-
}),
|
|
129
|
-
uid: instance.uid,
|
|
130
|
-
translateItem
|
|
131
|
-
});
|
|
132
|
-
});
|
|
133
|
-
vue.onUnmounted(() => {
|
|
134
|
-
carouselContext.removeItem(instance.uid);
|
|
135
|
-
});
|
|
136
43
|
return (_ctx, _cache) => {
|
|
137
44
|
return vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
|
138
45
|
class: vue.normalizeClass([
|
|
139
46
|
vue.unref(ns).e("item"),
|
|
140
|
-
vue.unref(ns).is("active", active
|
|
141
|
-
vue.unref(ns).is("in-stage", inStage
|
|
142
|
-
vue.unref(ns).is("hover", hover
|
|
143
|
-
vue.unref(ns).is("animating", animating
|
|
47
|
+
vue.unref(ns).is("active", vue.unref(active)),
|
|
48
|
+
vue.unref(ns).is("in-stage", vue.unref(inStage)),
|
|
49
|
+
vue.unref(ns).is("hover", vue.unref(hover)),
|
|
50
|
+
vue.unref(ns).is("animating", vue.unref(animating)),
|
|
144
51
|
{ [vue.unref(ns).em("item", "card")]: vue.unref(isCardType) }
|
|
145
52
|
]),
|
|
146
53
|
style: vue.normalizeStyle(vue.unref(itemStyle)),
|
|
147
|
-
onClick: handleItemClick
|
|
54
|
+
onClick: _cache[0] || (_cache[0] = (...args) => vue.unref(handleItemClick) && vue.unref(handleItemClick)(...args))
|
|
148
55
|
}, [
|
|
149
56
|
vue.unref(isCardType) ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
|
150
57
|
key: 0,
|
|
151
58
|
class: vue.normalizeClass(vue.unref(ns).e("mask"))
|
|
152
59
|
}, null, 2)), [
|
|
153
|
-
[vue.vShow, !active
|
|
60
|
+
[vue.vShow, !vue.unref(active)]
|
|
154
61
|
]) : vue.createCommentVNode("v-if", true),
|
|
155
62
|
vue.renderSlot(_ctx.$slots, "default")
|
|
156
63
|
], 6)), [
|
|
157
|
-
[vue.vShow, ready
|
|
64
|
+
[vue.vShow, vue.unref(ready)]
|
|
158
65
|
]);
|
|
159
66
|
};
|
|
160
67
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carousel-item2.js","sources":["../../../../../../packages/components/carousel/src/carousel-item.vue"],"sourcesContent":["<template>\n <div\n v-show=\"ready\"\n :class=\"[\n ns.e('item'),\n ns.is('active', active),\n ns.is('in-stage', inStage),\n ns.is('hover', hover),\n ns.is('animating', animating),\n { [ns.em('item', 'card')]: isCardType },\n ]\"\n :style=\"itemStyle\"\n @click=\"handleItemClick\"\n >\n <div v-if=\"isCardType\" v-show=\"!active\" :class=\"ns.e('mask')\" />\n <slot />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport {
|
|
1
|
+
{"version":3,"file":"carousel-item2.js","sources":["../../../../../../packages/components/carousel/src/carousel-item.vue"],"sourcesContent":["<template>\n <div\n v-show=\"ready\"\n :class=\"[\n ns.e('item'),\n ns.is('active', active),\n ns.is('in-stage', inStage),\n ns.is('hover', hover),\n ns.is('animating', animating),\n { [ns.em('item', 'card')]: isCardType },\n ]\"\n :style=\"itemStyle\"\n @click=\"handleItemClick\"\n >\n <div v-if=\"isCardType\" v-show=\"!active\" :class=\"ns.e('mask')\" />\n <slot />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, unref } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { carouselItemProps } from './carousel-item'\nimport { useCarouselItem } from './use-carousel-item'\n\nimport type { CSSProperties } from 'vue'\n\ndefineOptions({\n name: 'ElCarouselItem',\n})\n\nconst props = defineProps(carouselItemProps)\nconst ns = useNamespace('carousel')\nconst COMPONENT_NAME = 'ElCarouselItem'\n// inject\nconst {\n active,\n animating,\n hover,\n inStage,\n isVertical,\n translate,\n isCardType,\n scale,\n ready,\n handleItemClick,\n} = useCarouselItem(props, COMPONENT_NAME)\n\nconst itemStyle = computed<CSSProperties>(() => {\n const translateType = `translate${unref(isVertical) ? 'Y' : 'X'}`\n const _translate = `${translateType}(${unref(translate)}px)`\n const _scale = `scale(${unref(scale)})`\n const transform = [_translate, _scale].join(' ')\n\n return {\n transform,\n }\n})\n</script>\n"],"names":["useNamespace","useCarouselItem","computed","unref"],"mappings":";;;;;;;;;;;;uCA2Bc,CAAA;AAAA,EACZ,IAAM,EAAA,gBAAA;AACR;;;;;;AAGA,IAAM,MAAA,EAAA,GAAKA,mBAAa,UAAU,CAAA,CAAA;AAGlC,IAAM,MAAA;AAAA,MACJ,MAAA;AAAA,MACA,SAAA;AAAA,MACA,KAAA;AAAA,MACA,OAAA;AAAA,MACA,UAAA;AAAA,MACA,SAAA;AAAA,MACA,UAAA;AAAA,MACA,KAAA;AAAA,MACA,KAAA;AAAA,MACA,eAAA;AAAA,KACE,GAAAC,+BAAA,CAAgB,OAAO,cAAc,CAAA,CAAA;AAEzC,IAAM,MAAA,SAAA,GAAYC,aAAwB,MAAM;AAC9C,MAAA,MAAM,aAAgB,GAAA,CAAA,SAAA,EAAYC,SAAM,CAAA,UAAU,IAAI,GAAM,GAAA,GAAA,CAAA,CAAA,CAAA;AAC5D,MAAA,MAAM,UAAa,GAAA,CAAA,EAAG,aAAiB,CAAA,CAAA,EAAAA,SAAA,CAAM,SAAS,CAAA,CAAA,GAAA,CAAA,CAAA;AACtD,MAAM,MAAA,MAAA,GAAS,CAAS,MAAA,EAAAA,SAAA,CAAM,KAAK,CAAA,CAAA,CAAA,CAAA,CAAA;AACnC,MAAA,MAAM,YAAY,CAAC,UAAA,EAAY,MAAM,CAAA,CAAE,KAAK,GAAG,CAAA,CAAA;AAE/C,MAAO,OAAA;AAAA,QACL,SAAA;AAAA,OACF,CAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { CarouselItemProps } from './carousel-item';
|
|
2
|
+
export declare const useCarouselItem: (props: CarouselItemProps, componentName: string) => {
|
|
3
|
+
active: import("vue").Ref<boolean>;
|
|
4
|
+
animating: import("vue").Ref<boolean>;
|
|
5
|
+
hover: import("vue").Ref<boolean>;
|
|
6
|
+
inStage: import("vue").Ref<boolean>;
|
|
7
|
+
isVertical: import("vue").Ref<boolean>;
|
|
8
|
+
translate: import("vue").Ref<number>;
|
|
9
|
+
isCardType: import("vue").Ref<boolean>;
|
|
10
|
+
scale: import("vue").Ref<number>;
|
|
11
|
+
ready: import("vue").Ref<boolean>;
|
|
12
|
+
handleItemClick: () => void;
|
|
13
|
+
};
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
require('../../../utils/index.js');
|
|
7
|
+
require('../../../tokens/index.js');
|
|
8
|
+
var carousel = require('../../../tokens/carousel.js');
|
|
9
|
+
var error = require('../../../utils/error.js');
|
|
10
|
+
var types = require('../../../utils/types.js');
|
|
11
|
+
|
|
12
|
+
const useCarouselItem = (props, componentName) => {
|
|
13
|
+
const carouselContext = vue.inject(carousel.carouselContextKey);
|
|
14
|
+
const instance = vue.getCurrentInstance();
|
|
15
|
+
if (!carouselContext) {
|
|
16
|
+
error.debugWarn(componentName, "usage: <el-carousel></el-carousel-item></el-carousel>");
|
|
17
|
+
}
|
|
18
|
+
if (!instance) {
|
|
19
|
+
error.debugWarn(componentName, "compositional hook can only be invoked inside setups");
|
|
20
|
+
}
|
|
21
|
+
const CARD_SCALE = 0.83;
|
|
22
|
+
const hover = vue.ref(false);
|
|
23
|
+
const translate = vue.ref(0);
|
|
24
|
+
const scale = vue.ref(1);
|
|
25
|
+
const active = vue.ref(false);
|
|
26
|
+
const ready = vue.ref(false);
|
|
27
|
+
const inStage = vue.ref(false);
|
|
28
|
+
const animating = vue.ref(false);
|
|
29
|
+
const { isCardType, isVertical } = carouselContext;
|
|
30
|
+
function processIndex(index, activeIndex, length) {
|
|
31
|
+
const lastItemIndex = length - 1;
|
|
32
|
+
const prevItemIndex = activeIndex - 1;
|
|
33
|
+
const nextItemIndex = activeIndex + 1;
|
|
34
|
+
const halfItemIndex = length / 2;
|
|
35
|
+
if (activeIndex === 0 && index === lastItemIndex) {
|
|
36
|
+
return -1;
|
|
37
|
+
} else if (activeIndex === lastItemIndex && index === 0) {
|
|
38
|
+
return length;
|
|
39
|
+
} else if (index < prevItemIndex && activeIndex - index >= halfItemIndex) {
|
|
40
|
+
return length + 1;
|
|
41
|
+
} else if (index > nextItemIndex && index - activeIndex >= halfItemIndex) {
|
|
42
|
+
return -2;
|
|
43
|
+
}
|
|
44
|
+
return index;
|
|
45
|
+
}
|
|
46
|
+
function calcCardTranslate(index, activeIndex) {
|
|
47
|
+
var _a;
|
|
48
|
+
const parentWidth = ((_a = carouselContext.root.value) == null ? void 0 : _a.offsetWidth) || 0;
|
|
49
|
+
if (inStage.value) {
|
|
50
|
+
return parentWidth * ((2 - CARD_SCALE) * (index - activeIndex) + 1) / 4;
|
|
51
|
+
} else if (index < activeIndex) {
|
|
52
|
+
return -(1 + CARD_SCALE) * parentWidth / 4;
|
|
53
|
+
} else {
|
|
54
|
+
return (3 + CARD_SCALE) * parentWidth / 4;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
function calcTranslate(index, activeIndex, isVertical2) {
|
|
58
|
+
const rootEl = carouselContext.root.value;
|
|
59
|
+
if (!rootEl)
|
|
60
|
+
return 0;
|
|
61
|
+
const distance = (isVertical2 ? rootEl.offsetHeight : rootEl.offsetWidth) || 0;
|
|
62
|
+
return distance * (index - activeIndex);
|
|
63
|
+
}
|
|
64
|
+
const translateItem = (index, activeIndex, oldIndex) => {
|
|
65
|
+
var _a;
|
|
66
|
+
const _isCardType = vue.unref(isCardType);
|
|
67
|
+
const carouselItemLength = (_a = carouselContext.items.value.length) != null ? _a : Number.NaN;
|
|
68
|
+
const isActive = index === activeIndex;
|
|
69
|
+
if (!_isCardType && !types.isUndefined(oldIndex)) {
|
|
70
|
+
animating.value = isActive || index === oldIndex;
|
|
71
|
+
}
|
|
72
|
+
if (!isActive && carouselItemLength > 2 && carouselContext.loop) {
|
|
73
|
+
index = processIndex(index, activeIndex, carouselItemLength);
|
|
74
|
+
}
|
|
75
|
+
const _isVertical = vue.unref(isVertical);
|
|
76
|
+
active.value = isActive;
|
|
77
|
+
if (_isCardType) {
|
|
78
|
+
if (_isVertical) {
|
|
79
|
+
error.debugWarn("Carousel", "vertical direction is not supported for card mode");
|
|
80
|
+
}
|
|
81
|
+
inStage.value = Math.round(Math.abs(index - activeIndex)) <= 1;
|
|
82
|
+
translate.value = calcCardTranslate(index, activeIndex);
|
|
83
|
+
scale.value = vue.unref(active) ? 1 : CARD_SCALE;
|
|
84
|
+
} else {
|
|
85
|
+
translate.value = calcTranslate(index, activeIndex, _isVertical);
|
|
86
|
+
}
|
|
87
|
+
ready.value = true;
|
|
88
|
+
};
|
|
89
|
+
function handleItemClick() {
|
|
90
|
+
if (carouselContext && vue.unref(isCardType)) {
|
|
91
|
+
const index = carouselContext.items.value.findIndex(({ uid }) => uid === instance.uid);
|
|
92
|
+
carouselContext.setActiveItem(index);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
vue.onMounted(() => {
|
|
96
|
+
carouselContext.addItem({
|
|
97
|
+
props,
|
|
98
|
+
states: vue.reactive({
|
|
99
|
+
hover,
|
|
100
|
+
translate,
|
|
101
|
+
scale,
|
|
102
|
+
active,
|
|
103
|
+
ready,
|
|
104
|
+
inStage,
|
|
105
|
+
animating
|
|
106
|
+
}),
|
|
107
|
+
uid: instance.uid,
|
|
108
|
+
translateItem
|
|
109
|
+
});
|
|
110
|
+
});
|
|
111
|
+
vue.onUnmounted(() => {
|
|
112
|
+
carouselContext.removeItem(instance.uid);
|
|
113
|
+
});
|
|
114
|
+
return {
|
|
115
|
+
active,
|
|
116
|
+
animating,
|
|
117
|
+
hover,
|
|
118
|
+
inStage,
|
|
119
|
+
isVertical,
|
|
120
|
+
translate,
|
|
121
|
+
isCardType,
|
|
122
|
+
scale,
|
|
123
|
+
ready,
|
|
124
|
+
handleItemClick
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
exports.useCarouselItem = useCarouselItem;
|
|
129
|
+
//# sourceMappingURL=use-carousel-item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-carousel-item.js","sources":["../../../../../../packages/components/carousel/src/use-carousel-item.ts"],"sourcesContent":["import {\n getCurrentInstance,\n inject,\n onMounted,\n onUnmounted,\n reactive,\n ref,\n unref,\n} from 'vue'\nimport { debugWarn, isUndefined } from '@element-plus/utils'\nimport { carouselContextKey } from '@element-plus/tokens'\n\nimport type { CarouselItemProps } from './carousel-item'\n\nexport const useCarouselItem = (\n props: CarouselItemProps,\n componentName: string\n) => {\n const carouselContext = inject(carouselContextKey)!\n // instance\n const instance = getCurrentInstance()!\n if (!carouselContext) {\n debugWarn(\n componentName,\n 'usage: <el-carousel></el-carousel-item></el-carousel>'\n )\n }\n\n if (!instance) {\n debugWarn(\n componentName,\n 'compositional hook can only be invoked inside setups'\n )\n }\n\n const CARD_SCALE = 0.83\n\n const hover = ref(false)\n const translate = ref(0)\n const scale = ref(1)\n const active = ref(false)\n const ready = ref(false)\n const inStage = ref(false)\n const animating = ref(false)\n\n // computed\n const { isCardType, isVertical } = carouselContext\n\n // methods\n\n function processIndex(index: number, activeIndex: number, length: number) {\n const lastItemIndex = length - 1\n const prevItemIndex = activeIndex - 1\n const nextItemIndex = activeIndex + 1\n const halfItemIndex = length / 2\n\n if (activeIndex === 0 && index === lastItemIndex) {\n return -1\n } else if (activeIndex === lastItemIndex && index === 0) {\n return length\n } else if (index < prevItemIndex && activeIndex - index >= halfItemIndex) {\n return length + 1\n } else if (index > nextItemIndex && index - activeIndex >= halfItemIndex) {\n return -2\n }\n return index\n }\n\n function calcCardTranslate(index: number, activeIndex: number) {\n const parentWidth = carouselContext.root.value?.offsetWidth || 0\n if (inStage.value) {\n return (parentWidth * ((2 - CARD_SCALE) * (index - activeIndex) + 1)) / 4\n } else if (index < activeIndex) {\n return (-(1 + CARD_SCALE) * parentWidth) / 4\n } else {\n return ((3 + CARD_SCALE) * parentWidth) / 4\n }\n }\n\n function calcTranslate(\n index: number,\n activeIndex: number,\n isVertical: boolean\n ) {\n const rootEl = carouselContext.root.value\n if (!rootEl) return 0\n\n const distance =\n (isVertical ? rootEl.offsetHeight : rootEl.offsetWidth) || 0\n return distance * (index - activeIndex)\n }\n\n const translateItem = (\n index: number,\n activeIndex: number,\n oldIndex?: number\n ) => {\n const _isCardType = unref(isCardType)\n const carouselItemLength = carouselContext.items.value.length ?? Number.NaN\n\n const isActive = index === activeIndex\n if (!_isCardType && !isUndefined(oldIndex)) {\n animating.value = isActive || index === oldIndex\n }\n\n if (!isActive && carouselItemLength > 2 && carouselContext.loop) {\n index = processIndex(index, activeIndex, carouselItemLength)\n }\n\n const _isVertical = unref(isVertical)\n active.value = isActive\n\n if (_isCardType) {\n if (_isVertical) {\n debugWarn(\n 'Carousel',\n 'vertical direction is not supported for card mode'\n )\n }\n inStage.value = Math.round(Math.abs(index - activeIndex)) <= 1\n translate.value = calcCardTranslate(index, activeIndex)\n scale.value = unref(active) ? 1 : CARD_SCALE\n } else {\n translate.value = calcTranslate(index, activeIndex, _isVertical)\n }\n\n ready.value = true\n }\n\n function handleItemClick() {\n if (carouselContext && unref(isCardType)) {\n const index = carouselContext.items.value.findIndex(\n ({ uid }) => uid === instance.uid\n )\n carouselContext.setActiveItem(index)\n }\n }\n\n // lifecycle\n onMounted(() => {\n carouselContext.addItem({\n props,\n states: reactive({\n hover,\n translate,\n scale,\n active,\n ready,\n inStage,\n animating,\n }),\n uid: instance.uid,\n translateItem,\n })\n })\n\n onUnmounted(() => {\n carouselContext.removeItem(instance.uid)\n })\n\n return {\n active,\n animating,\n hover,\n inStage,\n isVertical,\n translate,\n isCardType,\n scale,\n ready,\n handleItemClick,\n }\n}\n"],"names":["inject","carouselContextKey","getCurrentInstance","debugWarn","ref","unref","isUndefined","on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,eAAW,CAAC,MAAM;AACpB,IAAI,eAAe,CAAC,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;AAC7C,GAAG,CAAC,CAAC;AACL,EAAE,OAAO;AACT,IAAI,MAAM;AACV,IAAI,SAAS;AACb,IAAI,KAAK;AACT,IAAI,OAAO;AACX,IAAI,UAAU;AACd,IAAI,SAAS;AACb,IAAI,UAAU;AACd,IAAI,KAAK;AACT,IAAI,KAAK;AACT,IAAI,eAAe;AACnB,GAAG,CAAC;AACJ;;;;"}
|
|
@@ -95,16 +95,8 @@ declare const _Cascader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
95
95
|
role: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "listbox" | "grid" | "menu" | "tooltip" | "dialog" | "group" | "navigation" | "tree", unknown>;
|
|
96
96
|
triggerKeys: string[];
|
|
97
97
|
arrowOffset: number;
|
|
98
|
-
visibleArrow: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
99
98
|
showArrow: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
100
99
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
101
|
-
openDelay: {
|
|
102
|
-
readonly type: import("vue").PropType<number>;
|
|
103
|
-
readonly required: false;
|
|
104
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
105
|
-
__epPropKey: true;
|
|
106
|
-
};
|
|
107
|
-
visibleArrow: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
108
100
|
showArrow: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
109
101
|
arrowOffset: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 5, boolean>;
|
|
110
102
|
disabled: BooleanConstructor;
|
|
@@ -422,7 +414,7 @@ declare const _Cascader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
422
414
|
role: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "listbox" | "grid" | "menu" | "tooltip" | "dialog" | "group" | "navigation" | "tree", unknown, "tooltip", boolean>;
|
|
423
415
|
}>> & {
|
|
424
416
|
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
425
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disabled" | "trigger" | "placement" | "offset" | "effect" | "showAfter" | "hideAfter" | "boundariesPadding" | "fallbackPlacements" | "gpuAcceleration" | "popperOptions" | "strategy" | "enterable" | "focusOnShow" | "trapping" | "stopPopperMouseEvent" | "visible" | "pure" | "virtualTriggering" | "appendTo" | "content" | "rawContent" | "transition" | "teleported" | "persistent" | "open" | "role" | "triggerKeys" | "arrowOffset" | "
|
|
417
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disabled" | "trigger" | "placement" | "offset" | "effect" | "showAfter" | "hideAfter" | "boundariesPadding" | "fallbackPlacements" | "gpuAcceleration" | "popperOptions" | "strategy" | "enterable" | "focusOnShow" | "trapping" | "stopPopperMouseEvent" | "visible" | "pure" | "virtualTriggering" | "appendTo" | "content" | "rawContent" | "transition" | "teleported" | "persistent" | "open" | "role" | "triggerKeys" | "arrowOffset" | "showArrow">;
|
|
426
418
|
$attrs: {
|
|
427
419
|
[x: string]: unknown;
|
|
428
420
|
};
|
|
@@ -437,13 +429,6 @@ declare const _Cascader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
437
429
|
$emit: (event: string, ...args: any[]) => void;
|
|
438
430
|
$el: any;
|
|
439
431
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
440
|
-
openDelay: {
|
|
441
|
-
readonly type: import("vue").PropType<number>;
|
|
442
|
-
readonly required: false;
|
|
443
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
444
|
-
__epPropKey: true;
|
|
445
|
-
};
|
|
446
|
-
visibleArrow: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
447
432
|
showArrow: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
448
433
|
arrowOffset: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 5, boolean>;
|
|
449
434
|
disabled: BooleanConstructor;
|
|
@@ -763,13 +748,6 @@ declare const _Cascader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
763
748
|
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
764
749
|
}, {
|
|
765
750
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
766
|
-
openDelay: {
|
|
767
|
-
readonly type: import("vue").PropType<number>;
|
|
768
|
-
readonly required: false;
|
|
769
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
770
|
-
__epPropKey: true;
|
|
771
|
-
};
|
|
772
|
-
visibleArrow: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
773
751
|
showArrow: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
774
752
|
arrowOffset: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 5, boolean>;
|
|
775
753
|
disabled: BooleanConstructor;
|
|
@@ -1089,8 +1067,6 @@ declare const _Cascader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1089
1067
|
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
1090
1068
|
}>>;
|
|
1091
1069
|
emit: (event: string, ...args: any[]) => void;
|
|
1092
|
-
compatShowAfter: import("vue").ComputedRef<number>;
|
|
1093
|
-
compatShowArrow: import("vue").ComputedRef<import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
|
|
1094
1070
|
id: import("vue").Ref<string>;
|
|
1095
1071
|
popperRef: import("vue").Ref<any>;
|
|
1096
1072
|
contentRef: import("vue").Ref<any>;
|
|
@@ -3285,7 +3261,6 @@ declare const _Cascader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3285
3261
|
role: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "listbox" | "grid" | "menu" | "tooltip" | "dialog" | "group" | "navigation" | "tree", unknown>;
|
|
3286
3262
|
triggerKeys: string[];
|
|
3287
3263
|
arrowOffset: number;
|
|
3288
|
-
visibleArrow: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
3289
3264
|
showArrow: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
3290
3265
|
}> & {
|
|
3291
3266
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -3308,13 +3283,6 @@ declare const _Cascader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3308
3283
|
$nextTick: typeof import("vue").nextTick;
|
|
3309
3284
|
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
3310
3285
|
} & Readonly<import("vue").ExtractPropTypes<{
|
|
3311
|
-
openDelay: {
|
|
3312
|
-
readonly type: import("vue").PropType<number>;
|
|
3313
|
-
readonly required: false;
|
|
3314
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
3315
|
-
__epPropKey: true;
|
|
3316
|
-
};
|
|
3317
|
-
visibleArrow: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
3318
3286
|
showArrow: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
3319
3287
|
arrowOffset: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 5, boolean>;
|
|
3320
3288
|
disabled: BooleanConstructor;
|
|
@@ -3634,13 +3602,6 @@ declare const _Cascader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3634
3602
|
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
3635
3603
|
} & import("vue").ShallowUnwrapRef<{
|
|
3636
3604
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
3637
|
-
openDelay: {
|
|
3638
|
-
readonly type: import("vue").PropType<number>;
|
|
3639
|
-
readonly required: false;
|
|
3640
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
3641
|
-
__epPropKey: true;
|
|
3642
|
-
};
|
|
3643
|
-
visibleArrow: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
3644
3605
|
showArrow: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
3645
3606
|
arrowOffset: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 5, boolean>;
|
|
3646
3607
|
disabled: BooleanConstructor;
|
|
@@ -3960,8 +3921,6 @@ declare const _Cascader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3960
3921
|
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
3961
3922
|
}>>;
|
|
3962
3923
|
emit: (event: string, ...args: any[]) => void;
|
|
3963
|
-
compatShowAfter: import("vue").ComputedRef<number>;
|
|
3964
|
-
compatShowArrow: import("vue").ComputedRef<import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
|
|
3965
3924
|
id: import("vue").Ref<string>;
|
|
3966
3925
|
popperRef: import("vue").Ref<any>;
|
|
3967
3926
|
contentRef: import("vue").Ref<any>;
|
|
@@ -8632,16 +8591,8 @@ export declare const ElCascader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
8632
8591
|
role: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "listbox" | "grid" | "menu" | "tooltip" | "dialog" | "group" | "navigation" | "tree", unknown>;
|
|
8633
8592
|
triggerKeys: string[];
|
|
8634
8593
|
arrowOffset: number;
|
|
8635
|
-
visibleArrow: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
8636
8594
|
showArrow: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
8637
8595
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
8638
|
-
openDelay: {
|
|
8639
|
-
readonly type: import("vue").PropType<number>;
|
|
8640
|
-
readonly required: false;
|
|
8641
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
8642
|
-
__epPropKey: true;
|
|
8643
|
-
};
|
|
8644
|
-
visibleArrow: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
8645
8596
|
showArrow: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
8646
8597
|
arrowOffset: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 5, boolean>;
|
|
8647
8598
|
disabled: BooleanConstructor;
|
|
@@ -8959,7 +8910,7 @@ export declare const ElCascader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
8959
8910
|
role: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "listbox" | "grid" | "menu" | "tooltip" | "dialog" | "group" | "navigation" | "tree", unknown, "tooltip", boolean>;
|
|
8960
8911
|
}>> & {
|
|
8961
8912
|
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
8962
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disabled" | "trigger" | "placement" | "offset" | "effect" | "showAfter" | "hideAfter" | "boundariesPadding" | "fallbackPlacements" | "gpuAcceleration" | "popperOptions" | "strategy" | "enterable" | "focusOnShow" | "trapping" | "stopPopperMouseEvent" | "visible" | "pure" | "virtualTriggering" | "appendTo" | "content" | "rawContent" | "transition" | "teleported" | "persistent" | "open" | "role" | "triggerKeys" | "arrowOffset" | "
|
|
8913
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disabled" | "trigger" | "placement" | "offset" | "effect" | "showAfter" | "hideAfter" | "boundariesPadding" | "fallbackPlacements" | "gpuAcceleration" | "popperOptions" | "strategy" | "enterable" | "focusOnShow" | "trapping" | "stopPopperMouseEvent" | "visible" | "pure" | "virtualTriggering" | "appendTo" | "content" | "rawContent" | "transition" | "teleported" | "persistent" | "open" | "role" | "triggerKeys" | "arrowOffset" | "showArrow">;
|
|
8963
8914
|
$attrs: {
|
|
8964
8915
|
[x: string]: unknown;
|
|
8965
8916
|
};
|
|
@@ -8974,13 +8925,6 @@ export declare const ElCascader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
8974
8925
|
$emit: (event: string, ...args: any[]) => void;
|
|
8975
8926
|
$el: any;
|
|
8976
8927
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
8977
|
-
openDelay: {
|
|
8978
|
-
readonly type: import("vue").PropType<number>;
|
|
8979
|
-
readonly required: false;
|
|
8980
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
8981
|
-
__epPropKey: true;
|
|
8982
|
-
};
|
|
8983
|
-
visibleArrow: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
8984
8928
|
showArrow: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
8985
8929
|
arrowOffset: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 5, boolean>;
|
|
8986
8930
|
disabled: BooleanConstructor;
|
|
@@ -9300,13 +9244,6 @@ export declare const ElCascader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
9300
9244
|
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
9301
9245
|
}, {
|
|
9302
9246
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
9303
|
-
openDelay: {
|
|
9304
|
-
readonly type: import("vue").PropType<number>;
|
|
9305
|
-
readonly required: false;
|
|
9306
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
9307
|
-
__epPropKey: true;
|
|
9308
|
-
};
|
|
9309
|
-
visibleArrow: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
9310
9247
|
showArrow: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
9311
9248
|
arrowOffset: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 5, boolean>;
|
|
9312
9249
|
disabled: BooleanConstructor;
|
|
@@ -9626,8 +9563,6 @@ export declare const ElCascader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
9626
9563
|
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
9627
9564
|
}>>;
|
|
9628
9565
|
emit: (event: string, ...args: any[]) => void;
|
|
9629
|
-
compatShowAfter: import("vue").ComputedRef<number>;
|
|
9630
|
-
compatShowArrow: import("vue").ComputedRef<import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
|
|
9631
9566
|
id: import("vue").Ref<string>;
|
|
9632
9567
|
popperRef: import("vue").Ref<any>;
|
|
9633
9568
|
contentRef: import("vue").Ref<any>;
|
|
@@ -11822,7 +11757,6 @@ export declare const ElCascader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
11822
11757
|
role: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "listbox" | "grid" | "menu" | "tooltip" | "dialog" | "group" | "navigation" | "tree", unknown>;
|
|
11823
11758
|
triggerKeys: string[];
|
|
11824
11759
|
arrowOffset: number;
|
|
11825
|
-
visibleArrow: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
11826
11760
|
showArrow: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
11827
11761
|
}> & {
|
|
11828
11762
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -11845,13 +11779,6 @@ export declare const ElCascader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
11845
11779
|
$nextTick: typeof import("vue").nextTick;
|
|
11846
11780
|
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
11847
11781
|
} & Readonly<import("vue").ExtractPropTypes<{
|
|
11848
|
-
openDelay: {
|
|
11849
|
-
readonly type: import("vue").PropType<number>;
|
|
11850
|
-
readonly required: false;
|
|
11851
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
11852
|
-
__epPropKey: true;
|
|
11853
|
-
};
|
|
11854
|
-
visibleArrow: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
11855
11782
|
showArrow: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
11856
11783
|
arrowOffset: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 5, boolean>;
|
|
11857
11784
|
disabled: BooleanConstructor;
|
|
@@ -12171,13 +12098,6 @@ export declare const ElCascader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
12171
12098
|
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
12172
12099
|
} & import("vue").ShallowUnwrapRef<{
|
|
12173
12100
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
12174
|
-
openDelay: {
|
|
12175
|
-
readonly type: import("vue").PropType<number>;
|
|
12176
|
-
readonly required: false;
|
|
12177
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
12178
|
-
__epPropKey: true;
|
|
12179
|
-
};
|
|
12180
|
-
visibleArrow: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
12181
12101
|
showArrow: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
12182
12102
|
arrowOffset: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 5, boolean>;
|
|
12183
12103
|
disabled: BooleanConstructor;
|
|
@@ -12497,8 +12417,6 @@ export declare const ElCascader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
12497
12417
|
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
12498
12418
|
}>>;
|
|
12499
12419
|
emit: (event: string, ...args: any[]) => void;
|
|
12500
|
-
compatShowAfter: import("vue").ComputedRef<number>;
|
|
12501
|
-
compatShowArrow: import("vue").ComputedRef<import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
|
|
12502
12420
|
id: import("vue").Ref<string>;
|
|
12503
12421
|
popperRef: import("vue").Ref<any>;
|
|
12504
12422
|
contentRef: import("vue").Ref<any>;
|
|
@@ -33,12 +33,6 @@ var i18n = require('../../../utils/i18n.js');
|
|
|
33
33
|
var aria = require('../../../constants/aria.js');
|
|
34
34
|
var aria$1 = require('../../../utils/dom/aria.js');
|
|
35
35
|
|
|
36
|
-
const DEFAULT_INPUT_HEIGHT = 40;
|
|
37
|
-
const INPUT_HEIGHT_MAP = {
|
|
38
|
-
large: 36,
|
|
39
|
-
default: 32,
|
|
40
|
-
small: 28
|
|
41
|
-
};
|
|
42
36
|
const popperOptions = {
|
|
43
37
|
modifiers: [
|
|
44
38
|
{
|
|
@@ -430,10 +424,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
430
424
|
});
|
|
431
425
|
vue.watch(presentText, syncPresentTextValue, { immediate: true });
|
|
432
426
|
vue.onMounted(() => {
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
core.useResizeObserver(inputEl, updateStyle);
|
|
427
|
+
const inputInner = input.value.input;
|
|
428
|
+
inputInitialHeight = inputInner.offsetHeight;
|
|
429
|
+
core.useResizeObserver(inputInner, updateStyle);
|
|
437
430
|
});
|
|
438
431
|
return {
|
|
439
432
|
popperOptions,
|