@element-plus/nightly 0.0.20241025 → 0.0.20241027
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 +353 -283
- package/dist/index.full.min.js +22 -22
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +22 -22
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +354 -285
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar-eg.js +1 -1
- package/dist/locale/ar-eg.min.js +1 -1
- package/dist/locale/ar-eg.min.mjs +1 -1
- package/dist/locale/ar-eg.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/az.js +1 -1
- package/dist/locale/az.min.js +1 -1
- package/dist/locale/az.min.mjs +1 -1
- package/dist/locale/az.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/ckb.js +1 -1
- package/dist/locale/ckb.min.js +1 -1
- package/dist/locale/ckb.min.mjs +1 -1
- package/dist/locale/ckb.mjs +1 -1
- package/dist/locale/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/my.js +1 -1
- package/dist/locale/my.min.js +1 -1
- package/dist/locale/my.min.mjs +1 -1
- package/dist/locale/my.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/sw.js +1 -1
- package/dist/locale/sw.min.js +1 -1
- package/dist/locale/sw.min.mjs +1 -1
- package/dist/locale/sw.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/autocomplete/src/autocomplete.vue.d.ts +3 -3
- package/es/components/button/src/button.vue.d.ts +1 -1
- package/es/components/carousel/index.mjs +2 -2
- package/es/components/carousel/src/carousel.mjs +62 -205
- package/es/components/carousel/src/carousel.mjs.map +1 -1
- package/es/components/carousel/src/carousel2.mjs +205 -62
- package/es/components/carousel/src/carousel2.mjs.map +1 -1
- package/es/components/cascader/src/cascader.vue.d.ts +1 -1
- package/es/components/checkbox/src/checkbox-button.vue.d.ts +1 -1
- package/es/components/checkbox/src/checkbox.vue.d.ts +1 -1
- package/es/components/col/index.mjs +2 -2
- package/es/components/col/src/col.mjs +66 -43
- package/es/components/col/src/col.mjs.map +1 -1
- package/es/components/col/src/col2.mjs +43 -66
- package/es/components/col/src/col2.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker.d.ts +12 -3
- package/es/components/date-picker/src/date-picker.mjs +6 -2
- package/es/components/date-picker/src/date-picker.mjs.map +1 -1
- package/es/components/date-picker/src/instance.d.ts +2 -1
- package/es/components/date-picker/src/props/date-picker.d.ts +6 -1
- package/es/components/dropdown/src/dropdown-item.vue.d.ts +1 -1
- package/es/components/dropdown/src/dropdown.vue.d.ts +4 -4
- package/es/components/form/src/form.vue.d.ts +1 -1
- package/es/components/index.mjs +5 -5
- package/es/components/input/src/input2.mjs +12 -24
- package/es/components/input/src/input2.mjs.map +1 -1
- package/es/components/link/src/link.vue.d.ts +1 -1
- package/es/components/mention/src/mention.vue.d.ts +4 -4
- package/es/components/pagination/src/components/total.mjs +27 -7
- package/es/components/pagination/src/components/total.mjs.map +1 -1
- package/es/components/pagination/src/components/total2.mjs +7 -27
- package/es/components/pagination/src/components/total2.mjs.map +1 -1
- package/es/components/pagination/src/pagination.d.ts +1 -1
- package/es/components/pagination/src/pagination.mjs +1 -1
- package/es/components/popover/src/popover.vue.d.ts +1 -1
- package/es/components/popper/src/trigger2.mjs +15 -12
- package/es/components/popper/src/trigger2.mjs.map +1 -1
- package/es/components/radio/src/radio-group.vue.d.ts +1 -1
- package/es/components/radio/src/radio.vue.d.ts +1 -1
- package/es/components/segmented/index.d.ts +4 -4
- package/es/components/segmented/src/segmented.vue.d.ts +1 -1
- package/es/components/select/src/select.vue.d.ts +7 -7
- package/es/components/select/src/useSelect.d.ts +6 -6
- package/es/components/select-v2/src/select.vue.d.ts +7 -7
- package/es/components/select-v2/src/useSelect.d.ts +6 -6
- package/es/components/slider/src/button2.mjs +2 -2
- package/es/components/slider/src/button2.mjs.map +1 -1
- package/es/components/slider/src/composables/use-slider-button.d.ts +3 -3
- package/es/components/slider/src/slider.vue.d.ts +1 -1
- package/es/components/statistic/index.mjs +2 -2
- package/es/components/statistic/src/statistic.mjs +25 -70
- package/es/components/statistic/src/statistic.mjs.map +1 -1
- package/es/components/statistic/src/statistic2.mjs +70 -25
- package/es/components/statistic/src/statistic2.mjs.map +1 -1
- package/es/components/switch/src/switch.vue.d.ts +1 -1
- package/es/components/table/src/filter-panel.vue.d.ts +3 -3
- package/es/components/time-picker/index.mjs +1 -1
- package/es/components/time-picker/src/common/picker-range-trigger.mjs +115 -0
- package/es/components/time-picker/src/common/picker-range-trigger.mjs.map +1 -0
- package/es/components/time-picker/src/common/picker-range-trigger.vue.d.ts +78 -0
- package/es/components/time-picker/src/common/picker.mjs +97 -140
- package/es/components/time-picker/src/common/picker.mjs.map +1 -1
- package/es/components/time-picker/src/common/picker.vue.d.ts +15 -11
- package/es/components/time-picker/src/common/props.d.ts +28 -1
- package/es/components/time-picker/src/common/props.mjs +15 -3
- package/es/components/time-picker/src/common/props.mjs.map +1 -1
- package/es/components/time-picker/src/time-picker-com/basic-time-spinner.mjs +5 -2
- package/es/components/time-picker/src/time-picker-com/basic-time-spinner.mjs.map +1 -1
- package/es/components/time-picker/src/time-picker.d.ts +12 -3
- package/es/components/time-picker/src/time-picker.mjs +4 -4
- package/es/components/time-picker/src/time-picker.mjs.map +1 -1
- package/es/components/time-select/src/time-select.vue.d.ts +1 -1
- package/es/components/tooltip/src/content.vue.d.ts +1 -1
- package/es/components/tooltip/src/tooltip.vue.d.ts +1 -1
- package/es/components/tooltip/src/trigger.vue.d.ts +1 -1
- package/es/components/tour/src/helper.mjs +1 -1
- package/es/components/tour/src/helper.mjs.map +1 -1
- package/es/components/transfer/index.mjs +2 -2
- package/es/components/transfer/src/composables/use-checked-change.mjs +1 -1
- package/es/components/transfer/src/transfer-panel.mjs +1 -1
- package/es/components/transfer/src/transfer.mjs +161 -69
- package/es/components/transfer/src/transfer.mjs.map +1 -1
- package/es/components/transfer/src/transfer2.mjs +69 -161
- package/es/components/transfer/src/transfer2.mjs.map +1 -1
- package/es/components/tree-v2/src/tree-node.vue.d.ts +1 -1
- package/es/components/upload/src/upload-content.vue.d.ts +1 -1
- package/es/components/upload/src/upload.vue.d.ts +1 -1
- package/es/hooks/use-id/index.d.ts +1 -1
- package/es/hooks/use-id/index.mjs +3 -3
- package/es/hooks/use-id/index.mjs.map +1 -1
- package/es/index.mjs +5 -5
- package/es/utils/dom/aria.mjs +1 -1
- package/es/utils/dom/aria.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/src/autocomplete.vue.d.ts +3 -3
- package/lib/components/button/src/button.vue.d.ts +1 -1
- package/lib/components/carousel/index.js +2 -2
- package/lib/components/carousel/src/carousel.js +63 -205
- package/lib/components/carousel/src/carousel.js.map +1 -1
- package/lib/components/carousel/src/carousel2.js +205 -63
- package/lib/components/carousel/src/carousel2.js.map +1 -1
- package/lib/components/cascader/src/cascader.vue.d.ts +1 -1
- package/lib/components/checkbox/src/checkbox-button.vue.d.ts +1 -1
- package/lib/components/checkbox/src/checkbox.vue.d.ts +1 -1
- package/lib/components/col/index.js +2 -2
- package/lib/components/col/src/col.js +66 -43
- package/lib/components/col/src/col.js.map +1 -1
- package/lib/components/col/src/col2.js +43 -66
- package/lib/components/col/src/col2.js.map +1 -1
- package/lib/components/date-picker/src/date-picker.d.ts +12 -3
- package/lib/components/date-picker/src/date-picker.js +6 -2
- package/lib/components/date-picker/src/date-picker.js.map +1 -1
- package/lib/components/date-picker/src/instance.d.ts +2 -1
- package/lib/components/date-picker/src/props/date-picker.d.ts +6 -1
- package/lib/components/dropdown/src/dropdown-item.vue.d.ts +1 -1
- package/lib/components/dropdown/src/dropdown.vue.d.ts +4 -4
- package/lib/components/form/src/form.vue.d.ts +1 -1
- package/lib/components/index.js +5 -4
- package/lib/components/index.js.map +1 -1
- package/lib/components/input/src/input2.js +11 -23
- package/lib/components/input/src/input2.js.map +1 -1
- package/lib/components/link/src/link.vue.d.ts +1 -1
- package/lib/components/mention/src/mention.vue.d.ts +4 -4
- package/lib/components/pagination/src/components/total.js +27 -7
- package/lib/components/pagination/src/components/total.js.map +1 -1
- package/lib/components/pagination/src/components/total2.js +7 -27
- package/lib/components/pagination/src/components/total2.js.map +1 -1
- package/lib/components/pagination/src/pagination.d.ts +1 -1
- package/lib/components/pagination/src/pagination.js +1 -1
- package/lib/components/popover/src/popover.vue.d.ts +1 -1
- package/lib/components/popper/src/trigger2.js +15 -12
- package/lib/components/popper/src/trigger2.js.map +1 -1
- package/lib/components/radio/src/radio-group.vue.d.ts +1 -1
- package/lib/components/radio/src/radio.vue.d.ts +1 -1
- package/lib/components/segmented/index.d.ts +4 -4
- package/lib/components/segmented/src/segmented.vue.d.ts +1 -1
- package/lib/components/select/src/select.vue.d.ts +7 -7
- package/lib/components/select/src/useSelect.d.ts +6 -6
- package/lib/components/select-v2/src/select.vue.d.ts +7 -7
- package/lib/components/select-v2/src/useSelect.d.ts +6 -6
- package/lib/components/slider/src/button2.js +2 -2
- package/lib/components/slider/src/button2.js.map +1 -1
- package/lib/components/slider/src/composables/use-slider-button.d.ts +3 -3
- package/lib/components/slider/src/slider.vue.d.ts +1 -1
- package/lib/components/statistic/index.js +2 -2
- package/lib/components/statistic/src/statistic.js +25 -70
- package/lib/components/statistic/src/statistic.js.map +1 -1
- package/lib/components/statistic/src/statistic2.js +70 -25
- package/lib/components/statistic/src/statistic2.js.map +1 -1
- package/lib/components/switch/src/switch.vue.d.ts +1 -1
- package/lib/components/table/src/filter-panel.vue.d.ts +3 -3
- package/lib/components/time-picker/index.js +1 -0
- package/lib/components/time-picker/index.js.map +1 -1
- package/lib/components/time-picker/src/common/picker-range-trigger.js +119 -0
- package/lib/components/time-picker/src/common/picker-range-trigger.js.map +1 -0
- package/lib/components/time-picker/src/common/picker-range-trigger.vue.d.ts +78 -0
- package/lib/components/time-picker/src/common/picker.js +101 -144
- package/lib/components/time-picker/src/common/picker.js.map +1 -1
- package/lib/components/time-picker/src/common/picker.vue.d.ts +15 -11
- package/lib/components/time-picker/src/common/props.d.ts +28 -1
- package/lib/components/time-picker/src/common/props.js +15 -2
- package/lib/components/time-picker/src/common/props.js.map +1 -1
- package/lib/components/time-picker/src/time-picker-com/basic-time-spinner.js +5 -2
- package/lib/components/time-picker/src/time-picker-com/basic-time-spinner.js.map +1 -1
- package/lib/components/time-picker/src/time-picker.d.ts +12 -3
- package/lib/components/time-picker/src/time-picker.js +4 -4
- package/lib/components/time-picker/src/time-picker.js.map +1 -1
- package/lib/components/time-select/src/time-select.vue.d.ts +1 -1
- package/lib/components/tooltip/src/content.vue.d.ts +1 -1
- package/lib/components/tooltip/src/tooltip.vue.d.ts +1 -1
- package/lib/components/tooltip/src/trigger.vue.d.ts +1 -1
- package/lib/components/tour/src/helper.js +1 -1
- package/lib/components/tour/src/helper.js.map +1 -1
- package/lib/components/transfer/index.js +2 -2
- package/lib/components/transfer/src/composables/use-checked-change.js +1 -1
- package/lib/components/transfer/src/transfer-panel.js +1 -1
- package/lib/components/transfer/src/transfer.js +161 -73
- package/lib/components/transfer/src/transfer.js.map +1 -1
- package/lib/components/transfer/src/transfer2.js +73 -161
- package/lib/components/transfer/src/transfer2.js.map +1 -1
- package/lib/components/tree-v2/src/tree-node.vue.d.ts +1 -1
- package/lib/components/upload/src/upload-content.vue.d.ts +1 -1
- package/lib/components/upload/src/upload.vue.d.ts +1 -1
- package/lib/hooks/use-id/index.d.ts +1 -1
- package/lib/hooks/use-id/index.js +2 -2
- package/lib/hooks/use-id/index.js.map +1 -1
- package/lib/index.js +5 -4
- package/lib/index.js.map +1 -1
- package/lib/utils/dom/aria.js +1 -1
- package/lib/utils/dom/aria.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-popper.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/popper.scss +1 -1
- package/web-types.json +1 -1
|
@@ -1,66 +1,209 @@
|
|
|
1
|
-
import '
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { defineComponent, computed, unref, openBlock, createElementBlock, normalizeClass, withModifiers, createBlock, Transition, withCtx, withDirectives, createElementVNode, createVNode, vShow, createCommentVNode, normalizeStyle, renderSlot, Fragment, renderList, toDisplayString } from 'vue';
|
|
2
|
+
import { ElIcon } from '../../icon/index.mjs';
|
|
3
|
+
import { ArrowLeft, ArrowRight } from '@element-plus/icons-vue';
|
|
4
|
+
import '../../../hooks/index.mjs';
|
|
5
|
+
import { carouselProps, carouselEmits } from './carousel.mjs';
|
|
6
|
+
import { useCarousel } from './use-carousel.mjs';
|
|
7
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
8
|
+
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
9
|
+
import { useLocale } from '../../../hooks/use-locale/index.mjs';
|
|
4
10
|
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
default: 0
|
|
9
|
-
},
|
|
10
|
-
height: {
|
|
11
|
-
type: String,
|
|
12
|
-
default: ""
|
|
13
|
-
},
|
|
14
|
-
trigger: {
|
|
15
|
-
type: String,
|
|
16
|
-
values: ["hover", "click"],
|
|
17
|
-
default: "hover"
|
|
18
|
-
},
|
|
19
|
-
autoplay: {
|
|
20
|
-
type: Boolean,
|
|
21
|
-
default: true
|
|
22
|
-
},
|
|
23
|
-
interval: {
|
|
24
|
-
type: Number,
|
|
25
|
-
default: 3e3
|
|
26
|
-
},
|
|
27
|
-
indicatorPosition: {
|
|
28
|
-
type: String,
|
|
29
|
-
values: ["", "none", "outside"],
|
|
30
|
-
default: ""
|
|
31
|
-
},
|
|
32
|
-
arrow: {
|
|
33
|
-
type: String,
|
|
34
|
-
values: ["always", "hover", "never"],
|
|
35
|
-
default: "hover"
|
|
36
|
-
},
|
|
37
|
-
type: {
|
|
38
|
-
type: String,
|
|
39
|
-
values: ["", "card"],
|
|
40
|
-
default: ""
|
|
41
|
-
},
|
|
42
|
-
cardScale: {
|
|
43
|
-
type: Number,
|
|
44
|
-
default: 0.83
|
|
45
|
-
},
|
|
46
|
-
loop: {
|
|
47
|
-
type: Boolean,
|
|
48
|
-
default: true
|
|
49
|
-
},
|
|
50
|
-
direction: {
|
|
51
|
-
type: String,
|
|
52
|
-
values: ["horizontal", "vertical"],
|
|
53
|
-
default: "horizontal"
|
|
54
|
-
},
|
|
55
|
-
pauseOnHover: {
|
|
56
|
-
type: Boolean,
|
|
57
|
-
default: true
|
|
58
|
-
},
|
|
59
|
-
motionBlur: Boolean
|
|
11
|
+
const COMPONENT_NAME = "ElCarousel";
|
|
12
|
+
const __default__ = defineComponent({
|
|
13
|
+
name: COMPONENT_NAME
|
|
60
14
|
});
|
|
61
|
-
const
|
|
62
|
-
|
|
63
|
-
|
|
15
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
16
|
+
...__default__,
|
|
17
|
+
props: carouselProps,
|
|
18
|
+
emits: carouselEmits,
|
|
19
|
+
setup(__props, { expose, emit }) {
|
|
20
|
+
const props = __props;
|
|
21
|
+
const {
|
|
22
|
+
root,
|
|
23
|
+
activeIndex,
|
|
24
|
+
arrowDisplay,
|
|
25
|
+
hasLabel,
|
|
26
|
+
hover,
|
|
27
|
+
isCardType,
|
|
28
|
+
items,
|
|
29
|
+
isVertical,
|
|
30
|
+
containerStyle,
|
|
31
|
+
handleButtonEnter,
|
|
32
|
+
handleButtonLeave,
|
|
33
|
+
isTransitioning,
|
|
34
|
+
handleIndicatorClick,
|
|
35
|
+
handleMouseEnter,
|
|
36
|
+
handleMouseLeave,
|
|
37
|
+
handleTransitionEnd,
|
|
38
|
+
setActiveItem,
|
|
39
|
+
prev,
|
|
40
|
+
next,
|
|
41
|
+
PlaceholderItem,
|
|
42
|
+
isTwoLengthShow,
|
|
43
|
+
throttledArrowClick,
|
|
44
|
+
throttledIndicatorHover
|
|
45
|
+
} = useCarousel(props, emit, COMPONENT_NAME);
|
|
46
|
+
const ns = useNamespace("carousel");
|
|
47
|
+
const { t } = useLocale();
|
|
48
|
+
const carouselClasses = computed(() => {
|
|
49
|
+
const classes = [ns.b(), ns.m(props.direction)];
|
|
50
|
+
if (unref(isCardType)) {
|
|
51
|
+
classes.push(ns.m("card"));
|
|
52
|
+
}
|
|
53
|
+
return classes;
|
|
54
|
+
});
|
|
55
|
+
const carouselContainer = computed(() => {
|
|
56
|
+
const classes = [ns.e("container")];
|
|
57
|
+
if (props.motionBlur && unref(isTransitioning) && items.value.length > 1) {
|
|
58
|
+
classes.push(unref(isVertical) ? `${ns.namespace.value}-transitioning-vertical` : `${ns.namespace.value}-transitioning`);
|
|
59
|
+
}
|
|
60
|
+
return classes;
|
|
61
|
+
});
|
|
62
|
+
const indicatorsClasses = computed(() => {
|
|
63
|
+
const classes = [ns.e("indicators"), ns.em("indicators", props.direction)];
|
|
64
|
+
if (unref(hasLabel)) {
|
|
65
|
+
classes.push(ns.em("indicators", "labels"));
|
|
66
|
+
}
|
|
67
|
+
if (props.indicatorPosition === "outside") {
|
|
68
|
+
classes.push(ns.em("indicators", "outside"));
|
|
69
|
+
}
|
|
70
|
+
if (unref(isVertical)) {
|
|
71
|
+
classes.push(ns.em("indicators", "right"));
|
|
72
|
+
}
|
|
73
|
+
return classes;
|
|
74
|
+
});
|
|
75
|
+
expose({
|
|
76
|
+
activeIndex,
|
|
77
|
+
setActiveItem,
|
|
78
|
+
prev,
|
|
79
|
+
next
|
|
80
|
+
});
|
|
81
|
+
return (_ctx, _cache) => {
|
|
82
|
+
return openBlock(), createElementBlock("div", {
|
|
83
|
+
ref_key: "root",
|
|
84
|
+
ref: root,
|
|
85
|
+
class: normalizeClass(unref(carouselClasses)),
|
|
86
|
+
onMouseenter: withModifiers(unref(handleMouseEnter), ["stop"]),
|
|
87
|
+
onMouseleave: withModifiers(unref(handleMouseLeave), ["stop"])
|
|
88
|
+
}, [
|
|
89
|
+
unref(arrowDisplay) ? (openBlock(), createBlock(Transition, {
|
|
90
|
+
key: 0,
|
|
91
|
+
name: "carousel-arrow-left",
|
|
92
|
+
persisted: ""
|
|
93
|
+
}, {
|
|
94
|
+
default: withCtx(() => [
|
|
95
|
+
withDirectives(createElementVNode("button", {
|
|
96
|
+
type: "button",
|
|
97
|
+
class: normalizeClass([unref(ns).e("arrow"), unref(ns).em("arrow", "left")]),
|
|
98
|
+
"aria-label": unref(t)("el.carousel.leftArrow"),
|
|
99
|
+
onMouseenter: ($event) => unref(handleButtonEnter)("left"),
|
|
100
|
+
onMouseleave: unref(handleButtonLeave),
|
|
101
|
+
onClick: withModifiers(($event) => unref(throttledArrowClick)(unref(activeIndex) - 1), ["stop"])
|
|
102
|
+
}, [
|
|
103
|
+
createVNode(unref(ElIcon), null, {
|
|
104
|
+
default: withCtx(() => [
|
|
105
|
+
createVNode(unref(ArrowLeft))
|
|
106
|
+
]),
|
|
107
|
+
_: 1
|
|
108
|
+
})
|
|
109
|
+
], 42, ["aria-label", "onMouseenter", "onMouseleave", "onClick"]), [
|
|
110
|
+
[
|
|
111
|
+
vShow,
|
|
112
|
+
(_ctx.arrow === "always" || unref(hover)) && (props.loop || unref(activeIndex) > 0)
|
|
113
|
+
]
|
|
114
|
+
])
|
|
115
|
+
]),
|
|
116
|
+
_: 1
|
|
117
|
+
})) : createCommentVNode("v-if", true),
|
|
118
|
+
unref(arrowDisplay) ? (openBlock(), createBlock(Transition, {
|
|
119
|
+
key: 1,
|
|
120
|
+
name: "carousel-arrow-right",
|
|
121
|
+
persisted: ""
|
|
122
|
+
}, {
|
|
123
|
+
default: withCtx(() => [
|
|
124
|
+
withDirectives(createElementVNode("button", {
|
|
125
|
+
type: "button",
|
|
126
|
+
class: normalizeClass([unref(ns).e("arrow"), unref(ns).em("arrow", "right")]),
|
|
127
|
+
"aria-label": unref(t)("el.carousel.rightArrow"),
|
|
128
|
+
onMouseenter: ($event) => unref(handleButtonEnter)("right"),
|
|
129
|
+
onMouseleave: unref(handleButtonLeave),
|
|
130
|
+
onClick: withModifiers(($event) => unref(throttledArrowClick)(unref(activeIndex) + 1), ["stop"])
|
|
131
|
+
}, [
|
|
132
|
+
createVNode(unref(ElIcon), null, {
|
|
133
|
+
default: withCtx(() => [
|
|
134
|
+
createVNode(unref(ArrowRight))
|
|
135
|
+
]),
|
|
136
|
+
_: 1
|
|
137
|
+
})
|
|
138
|
+
], 42, ["aria-label", "onMouseenter", "onMouseleave", "onClick"]), [
|
|
139
|
+
[
|
|
140
|
+
vShow,
|
|
141
|
+
(_ctx.arrow === "always" || unref(hover)) && (props.loop || unref(activeIndex) < unref(items).length - 1)
|
|
142
|
+
]
|
|
143
|
+
])
|
|
144
|
+
]),
|
|
145
|
+
_: 1
|
|
146
|
+
})) : createCommentVNode("v-if", true),
|
|
147
|
+
createElementVNode("div", {
|
|
148
|
+
class: normalizeClass(unref(carouselContainer)),
|
|
149
|
+
style: normalizeStyle(unref(containerStyle)),
|
|
150
|
+
onTransitionend: unref(handleTransitionEnd)
|
|
151
|
+
}, [
|
|
152
|
+
createVNode(unref(PlaceholderItem)),
|
|
153
|
+
renderSlot(_ctx.$slots, "default")
|
|
154
|
+
], 46, ["onTransitionend"]),
|
|
155
|
+
_ctx.indicatorPosition !== "none" ? (openBlock(), createElementBlock("ul", {
|
|
156
|
+
key: 2,
|
|
157
|
+
class: normalizeClass(unref(indicatorsClasses))
|
|
158
|
+
}, [
|
|
159
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(items), (item, index) => {
|
|
160
|
+
return withDirectives((openBlock(), createElementBlock("li", {
|
|
161
|
+
key: index,
|
|
162
|
+
class: normalizeClass([
|
|
163
|
+
unref(ns).e("indicator"),
|
|
164
|
+
unref(ns).em("indicator", _ctx.direction),
|
|
165
|
+
unref(ns).is("active", index === unref(activeIndex))
|
|
166
|
+
]),
|
|
167
|
+
onMouseenter: ($event) => unref(throttledIndicatorHover)(index),
|
|
168
|
+
onClick: withModifiers(($event) => unref(handleIndicatorClick)(index), ["stop"])
|
|
169
|
+
}, [
|
|
170
|
+
createElementVNode("button", {
|
|
171
|
+
class: normalizeClass(unref(ns).e("button")),
|
|
172
|
+
"aria-label": unref(t)("el.carousel.indicator", { index: index + 1 })
|
|
173
|
+
}, [
|
|
174
|
+
unref(hasLabel) ? (openBlock(), createElementBlock("span", { key: 0 }, toDisplayString(item.props.label), 1)) : createCommentVNode("v-if", true)
|
|
175
|
+
], 10, ["aria-label"])
|
|
176
|
+
], 42, ["onMouseenter", "onClick"])), [
|
|
177
|
+
[vShow, unref(isTwoLengthShow)(index)]
|
|
178
|
+
]);
|
|
179
|
+
}), 128))
|
|
180
|
+
], 2)) : createCommentVNode("v-if", true),
|
|
181
|
+
props.motionBlur ? (openBlock(), createElementBlock("svg", {
|
|
182
|
+
key: 3,
|
|
183
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
184
|
+
version: "1.1",
|
|
185
|
+
style: { "display": "none" }
|
|
186
|
+
}, [
|
|
187
|
+
createElementVNode("defs", null, [
|
|
188
|
+
createElementVNode("filter", { id: "elCarouselHorizontal" }, [
|
|
189
|
+
createElementVNode("feGaussianBlur", {
|
|
190
|
+
in: "SourceGraphic",
|
|
191
|
+
stdDeviation: "12,0"
|
|
192
|
+
})
|
|
193
|
+
]),
|
|
194
|
+
createElementVNode("filter", { id: "elCarouselVertical" }, [
|
|
195
|
+
createElementVNode("feGaussianBlur", {
|
|
196
|
+
in: "SourceGraphic",
|
|
197
|
+
stdDeviation: "0,10"
|
|
198
|
+
})
|
|
199
|
+
])
|
|
200
|
+
])
|
|
201
|
+
])) : createCommentVNode("v-if", true)
|
|
202
|
+
], 42, ["onMouseenter", "onMouseleave"]);
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
});
|
|
206
|
+
var Carousel = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "carousel.vue"]]);
|
|
64
207
|
|
|
65
|
-
export {
|
|
208
|
+
export { Carousel as default };
|
|
66
209
|
//# sourceMappingURL=carousel2.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carousel2.mjs","sources":["../../../../../../packages/components/carousel/src/carousel.
|
|
1
|
+
{"version":3,"file":"carousel2.mjs","sources":["../../../../../../packages/components/carousel/src/carousel.vue"],"sourcesContent":["<template>\n <div\n ref=\"root\"\n :class=\"carouselClasses\"\n @mouseenter.stop=\"handleMouseEnter\"\n @mouseleave.stop=\"handleMouseLeave\"\n >\n <transition v-if=\"arrowDisplay\" name=\"carousel-arrow-left\">\n <button\n v-show=\"\n (arrow === 'always' || hover) && (props.loop || activeIndex > 0)\n \"\n type=\"button\"\n :class=\"[ns.e('arrow'), ns.em('arrow', 'left')]\"\n :aria-label=\"t('el.carousel.leftArrow')\"\n @mouseenter=\"handleButtonEnter('left')\"\n @mouseleave=\"handleButtonLeave\"\n @click.stop=\"throttledArrowClick(activeIndex - 1)\"\n >\n <ElIcon>\n <ArrowLeft />\n </ElIcon>\n </button>\n </transition>\n <transition v-if=\"arrowDisplay\" name=\"carousel-arrow-right\">\n <button\n v-show=\"\n (arrow === 'always' || hover) &&\n (props.loop || activeIndex < items.length - 1)\n \"\n type=\"button\"\n :class=\"[ns.e('arrow'), ns.em('arrow', 'right')]\"\n :aria-label=\"t('el.carousel.rightArrow')\"\n @mouseenter=\"handleButtonEnter('right')\"\n @mouseleave=\"handleButtonLeave\"\n @click.stop=\"throttledArrowClick(activeIndex + 1)\"\n >\n <ElIcon>\n <ArrowRight />\n </ElIcon>\n </button>\n </transition>\n <div\n :class=\"carouselContainer\"\n :style=\"containerStyle\"\n @transitionend=\"handleTransitionEnd\"\n >\n <PlaceholderItem />\n <slot />\n </div>\n <ul v-if=\"indicatorPosition !== 'none'\" :class=\"indicatorsClasses\">\n <li\n v-for=\"(item, index) in items\"\n v-show=\"isTwoLengthShow(index)\"\n :key=\"index\"\n :class=\"[\n ns.e('indicator'),\n ns.em('indicator', direction),\n ns.is('active', index === activeIndex),\n ]\"\n @mouseenter=\"throttledIndicatorHover(index)\"\n @click.stop=\"handleIndicatorClick(index)\"\n >\n <button\n :class=\"ns.e('button')\"\n :aria-label=\"t('el.carousel.indicator', { index: index + 1 })\"\n >\n <span v-if=\"hasLabel\">{{ item.props.label }}</span>\n </button>\n </li>\n </ul>\n <svg\n v-if=\"props.motionBlur\"\n xmlns=\"http://www.w3.org/2000/svg\"\n version=\"1.1\"\n style=\"display: none\"\n >\n <defs>\n <filter id=\"elCarouselHorizontal\">\n <feGaussianBlur in=\"SourceGraphic\" stdDeviation=\"12,0\" />\n </filter>\n <filter id=\"elCarouselVertical\">\n <feGaussianBlur in=\"SourceGraphic\" stdDeviation=\"0,10\" />\n </filter>\n </defs>\n </svg>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, unref } from 'vue'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { ArrowLeft, ArrowRight } from '@element-plus/icons-vue'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport { carouselEmits, carouselProps } from './carousel'\nimport { useCarousel } from './use-carousel'\n\nconst COMPONENT_NAME = 'ElCarousel'\ndefineOptions({\n name: COMPONENT_NAME,\n})\n\nconst props = defineProps(carouselProps)\nconst emit = defineEmits(carouselEmits)\nconst {\n root,\n activeIndex,\n arrowDisplay,\n hasLabel,\n hover,\n isCardType,\n items,\n isVertical,\n containerStyle,\n handleButtonEnter,\n handleButtonLeave,\n isTransitioning,\n handleIndicatorClick,\n handleMouseEnter,\n handleMouseLeave,\n handleTransitionEnd,\n setActiveItem,\n prev,\n next,\n PlaceholderItem,\n isTwoLengthShow,\n throttledArrowClick,\n throttledIndicatorHover,\n} = useCarousel(props, emit, COMPONENT_NAME)\nconst ns = useNamespace('carousel')\n\nconst { t } = useLocale()\n\nconst carouselClasses = computed(() => {\n const classes = [ns.b(), ns.m(props.direction)]\n if (unref(isCardType)) {\n classes.push(ns.m('card'))\n }\n return classes\n})\n\nconst carouselContainer = computed(() => {\n const classes = [ns.e('container')]\n if (props.motionBlur && unref(isTransitioning) && items.value.length > 1) {\n classes.push(\n unref(isVertical)\n ? `${ns.namespace.value}-transitioning-vertical`\n : `${ns.namespace.value}-transitioning`\n )\n }\n return classes\n})\n\nconst indicatorsClasses = computed(() => {\n const classes = [ns.e('indicators'), ns.em('indicators', props.direction)]\n if (unref(hasLabel)) {\n classes.push(ns.em('indicators', 'labels'))\n }\n if (props.indicatorPosition === 'outside') {\n classes.push(ns.em('indicators', 'outside'))\n }\n if (unref(isVertical)) {\n classes.push(ns.em('indicators', 'right'))\n }\n return classes\n})\n\ndefineExpose({\n /** @description active slide index */\n activeIndex,\n /** @description manually switch slide, index of the slide to be switched to, starting from 0; or the `name` of corresponding `el-carousel-item` */\n setActiveItem,\n /** @description switch to the previous slide */\n prev,\n /** @description switch to the next slide */\n next,\n})\n</script>\n"],"names":["_openBlock","_createElementBlock","_normalizeClass","_unref","_withModifiers"],"mappings":";;;;;;;;;;;mCAkGc,CAAA;AAAA,EACZ,IAAM,EAAA,cAAA;AACR;;;;;;;AAIA,IAAM,MAAA;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;AAAA,QAEA,KAAA,EAAAC,cAAA,CAAAC,KAAA,CAAA,eAAA,CAAA,CAAA;AAAA,QACD,YAAA,EAAAC,aAAA,CAAAD,KAAA,CAAA,gBAAA,CAAA,EAAA,CAAA,MAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -559,8 +559,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
559
559
|
onExpandChange?: ((val: CascaderValue) => any) | undefined;
|
|
560
560
|
onRemoveTag?: ((val: import("../../cascader-panel/src/node").CascaderNodeValue | import("../../cascader-panel/src/node").CascaderNodePathValue) => any) | undefined;
|
|
561
561
|
}, {
|
|
562
|
-
separator: string;
|
|
563
562
|
disabled: boolean;
|
|
563
|
+
separator: string;
|
|
564
564
|
props: import("@element-plus/nightly/es/components/cascader-panel").CascaderProps;
|
|
565
565
|
placement: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => import("@element-plus/nightly/es/components/popper").Placement & {}) | (() => import("@element-plus/nightly/es/components/popper").Placement) | ((new (...args: any[]) => import("@element-plus/nightly/es/components/popper").Placement & {}) | (() => import("@element-plus/nightly/es/components/popper").Placement))[], import("@element-plus/nightly/es/components/popper").Placement, unknown>;
|
|
566
566
|
options: import("@element-plus/nightly/es/components/cascader-panel").CascaderOption[];
|
|
@@ -112,8 +112,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
112
112
|
onChange?: ((val: import("./checkbox").CheckboxValueType) => any) | undefined;
|
|
113
113
|
}, {
|
|
114
114
|
label: string | number | boolean | Record<string, any>;
|
|
115
|
-
border: boolean;
|
|
116
115
|
disabled: boolean;
|
|
116
|
+
border: boolean;
|
|
117
117
|
value: string | number | boolean | Record<string, any>;
|
|
118
118
|
id: string;
|
|
119
119
|
name: string;
|
|
@@ -112,8 +112,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
112
112
|
onChange?: ((val: import("./checkbox").CheckboxValueType) => any) | undefined;
|
|
113
113
|
}, {
|
|
114
114
|
label: string | number | boolean | Record<string, any>;
|
|
115
|
-
border: boolean;
|
|
116
115
|
disabled: boolean;
|
|
116
|
+
border: boolean;
|
|
117
117
|
value: string | number | boolean | Record<string, any>;
|
|
118
118
|
id: string;
|
|
119
119
|
name: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../utils/index.mjs';
|
|
2
|
-
import Col from './src/
|
|
3
|
-
export { colProps } from './src/
|
|
2
|
+
import Col from './src/col.mjs';
|
|
3
|
+
export { colProps } from './src/col2.mjs';
|
|
4
4
|
import { withInstall } from '../../utils/vue/install.mjs';
|
|
5
5
|
|
|
6
6
|
const ElCol = withInstall(Col);
|
|
@@ -1,49 +1,72 @@
|
|
|
1
|
+
import { defineComponent, inject, computed, openBlock, createBlock, resolveDynamicComponent, normalizeClass, unref, normalizeStyle, withCtx, renderSlot } from 'vue';
|
|
1
2
|
import '../../../utils/index.mjs';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
3
|
+
import '../../../hooks/index.mjs';
|
|
4
|
+
import '../../row/index.mjs';
|
|
5
|
+
import { colProps } from './col2.mjs';
|
|
6
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
7
|
+
import { rowContextKey } from '../../row/src/constants.mjs';
|
|
8
|
+
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
9
|
+
import { isNumber } from '../../../utils/types.mjs';
|
|
10
|
+
import { isObject } from '@vue/shared';
|
|
4
11
|
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
12
|
+
const __default__ = defineComponent({
|
|
13
|
+
name: "ElCol"
|
|
14
|
+
});
|
|
15
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
16
|
+
...__default__,
|
|
17
|
+
props: colProps,
|
|
18
|
+
setup(__props) {
|
|
19
|
+
const props = __props;
|
|
20
|
+
const { gutter } = inject(rowContextKey, { gutter: computed(() => 0) });
|
|
21
|
+
const ns = useNamespace("col");
|
|
22
|
+
const style = computed(() => {
|
|
23
|
+
const styles = {};
|
|
24
|
+
if (gutter.value) {
|
|
25
|
+
styles.paddingLeft = styles.paddingRight = `${gutter.value / 2}px`;
|
|
26
|
+
}
|
|
27
|
+
return styles;
|
|
28
|
+
});
|
|
29
|
+
const colKls = computed(() => {
|
|
30
|
+
const classes = [];
|
|
31
|
+
const pos = ["span", "offset", "pull", "push"];
|
|
32
|
+
pos.forEach((prop) => {
|
|
33
|
+
const size = props[prop];
|
|
34
|
+
if (isNumber(size)) {
|
|
35
|
+
if (prop === "span")
|
|
36
|
+
classes.push(ns.b(`${props[prop]}`));
|
|
37
|
+
else if (size > 0)
|
|
38
|
+
classes.push(ns.b(`${prop}-${props[prop]}`));
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
const sizes = ["xs", "sm", "md", "lg", "xl"];
|
|
42
|
+
sizes.forEach((size) => {
|
|
43
|
+
if (isNumber(props[size])) {
|
|
44
|
+
classes.push(ns.b(`${size}-${props[size]}`));
|
|
45
|
+
} else if (isObject(props[size])) {
|
|
46
|
+
Object.entries(props[size]).forEach(([prop, sizeProp]) => {
|
|
47
|
+
classes.push(prop !== "span" ? ns.b(`${size}-${prop}-${sizeProp}`) : ns.b(`${size}-${sizeProp}`));
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
if (gutter.value) {
|
|
52
|
+
classes.push(ns.is("guttered"));
|
|
53
|
+
}
|
|
54
|
+
return [ns.b(), classes];
|
|
55
|
+
});
|
|
56
|
+
return (_ctx, _cache) => {
|
|
57
|
+
return openBlock(), createBlock(resolveDynamicComponent(_ctx.tag), {
|
|
58
|
+
class: normalizeClass(unref(colKls)),
|
|
59
|
+
style: normalizeStyle(unref(style))
|
|
60
|
+
}, {
|
|
61
|
+
default: withCtx(() => [
|
|
62
|
+
renderSlot(_ctx.$slots, "default")
|
|
63
|
+
]),
|
|
64
|
+
_: 3
|
|
65
|
+
}, 8, ["class", "style"]);
|
|
66
|
+
};
|
|
45
67
|
}
|
|
46
68
|
});
|
|
69
|
+
var Col = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "col.vue"]]);
|
|
47
70
|
|
|
48
|
-
export {
|
|
71
|
+
export { Col as default };
|
|
49
72
|
//# sourceMappingURL=col.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"col.mjs","sources":["../../../../../../packages/components/col/src/col.
|
|
1
|
+
{"version":3,"file":"col.mjs","sources":["../../../../../../packages/components/col/src/col.vue"],"sourcesContent":["<template>\n <component :is=\"tag\" :class=\"colKls\" :style=\"style\">\n <slot />\n </component>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, inject } from 'vue'\nimport { isNumber, isObject } from '@element-plus/utils'\nimport { useNamespace } from '@element-plus/hooks'\nimport { rowContextKey } from '@element-plus/components/row'\nimport { colProps } from './col'\nimport type { CSSProperties } from 'vue'\n\ndefineOptions({\n name: 'ElCol',\n})\n\nconst props = defineProps(colProps)\n\nconst { gutter } = inject(rowContextKey, { gutter: computed(() => 0) })\nconst ns = useNamespace('col')\n\nconst style = computed(() => {\n const styles: CSSProperties = {}\n if (gutter.value) {\n styles.paddingLeft = styles.paddingRight = `${gutter.value / 2}px`\n }\n return styles\n})\n\nconst colKls = computed(() => {\n const classes: string[] = []\n const pos = ['span', 'offset', 'pull', 'push'] as const\n\n pos.forEach((prop) => {\n const size = props[prop]\n if (isNumber(size)) {\n if (prop === 'span') classes.push(ns.b(`${props[prop]}`))\n else if (size > 0) classes.push(ns.b(`${prop}-${props[prop]}`))\n }\n })\n\n const sizes = ['xs', 'sm', 'md', 'lg', 'xl'] as const\n sizes.forEach((size) => {\n if (isNumber(props[size])) {\n classes.push(ns.b(`${size}-${props[size]}`))\n } else if (isObject(props[size])) {\n Object.entries(props[size]).forEach(([prop, sizeProp]) => {\n classes.push(\n prop !== 'span'\n ? ns.b(`${size}-${prop}-${sizeProp}`)\n : ns.b(`${size}-${sizeProp}`)\n )\n })\n }\n })\n\n // this is for the fix\n if (gutter.value) {\n classes.push(ns.is('guttered'))\n }\n return [ns.b(), classes]\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;mCAcc,CAAA;AAAA,EACZ,IAAM,EAAA,OAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAIA,IAAM,MAAA,EAAE,MAAO,EAAA,GAAI,MAAO,CAAA,aAAA,EAAe,EAAE,MAAA,EAAQ,QAAS,CAAA,MAAM,CAAC,CAAA,EAAG,CAAA,CAAA;AACtE,IAAM,MAAA,EAAA,GAAK,aAAa,KAAK,CAAA,CAAA;AAE7B,IAAM,MAAA,KAAA,GAAQ,SAAS,MAAM;AAC3B,MAAA,MAAM,SAAwB,EAAC,CAAA;AAC/B,MAAA,IAAI,OAAO,KAAO,EAAA;AAChB,QAAA,MAAA,CAAO,cAAc,MAAO,CAAA,YAAA,GAAe,CAAG,EAAA,MAAA,CAAO,QAAQ,CAAC,CAAA,EAAA,CAAA,CAAA;AAAA,OAChE;AACA,MAAO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AG,EAAE,CAAG,UAAQ,IAAI,EAAA,QAAY,CAAA;AACN,YAChC,OAAA,CAAA,IAAA,CAAA,IAAA,KAAA,MAAA,GAAA,EAAA,CAAA,CAAA,CAAA,CAAA,EAAA,IAAA,CAAA,CAAA,EAAA,IAAA,CAAA,CAAA,EAAA,QAAA,CAAA,CAAA,CAAA,GAAA,EAAA,CAAA,CAAA,CAAA,CAAA,EAAA,IAAA,CAAA,CAAA,EAAA,QAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,WACD,CAAA,CAAA;AAAA,SACH;AAAA,OACD,CAAA,CAAA;AAGD,MAAA,IAAI,OAAO,KAAO,EAAA;AAChB,QAAA,OAAA,CAAQ,IAAK,CAAA,EAAA,CAAG,EAAG,CAAA,UAAU,CAAC,CAAA,CAAA;AAAA,OAChC;AACA,MAAA,OAAO,CAAC,EAAA,CAAG,CAAE,EAAA,EAAG,OAAO,CAAA,CAAA;AAAA,KACxB,CAAA,CAAA;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,72 +1,49 @@
|
|
|
1
|
-
import { defineComponent, inject, computed, openBlock, createBlock, resolveDynamicComponent, normalizeClass, unref, normalizeStyle, withCtx, renderSlot } from 'vue';
|
|
2
1
|
import '../../../utils/index.mjs';
|
|
3
|
-
import '../../../
|
|
4
|
-
import '
|
|
5
|
-
import { colProps } from './col.mjs';
|
|
6
|
-
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
7
|
-
import { rowContextKey } from '../../row/src/constants.mjs';
|
|
8
|
-
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
9
|
-
import { isNumber } from '../../../utils/types.mjs';
|
|
10
|
-
import { isObject } from '@vue/shared';
|
|
2
|
+
import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
|
|
3
|
+
import { mutable } from '../../../utils/typescript.mjs';
|
|
11
4
|
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
classes.push(ns.is("guttered"));
|
|
53
|
-
}
|
|
54
|
-
return [ns.b(), classes];
|
|
55
|
-
});
|
|
56
|
-
return (_ctx, _cache) => {
|
|
57
|
-
return openBlock(), createBlock(resolveDynamicComponent(_ctx.tag), {
|
|
58
|
-
class: normalizeClass(unref(colKls)),
|
|
59
|
-
style: normalizeStyle(unref(style))
|
|
60
|
-
}, {
|
|
61
|
-
default: withCtx(() => [
|
|
62
|
-
renderSlot(_ctx.$slots, "default")
|
|
63
|
-
]),
|
|
64
|
-
_: 3
|
|
65
|
-
}, 8, ["class", "style"]);
|
|
66
|
-
};
|
|
5
|
+
const colProps = buildProps({
|
|
6
|
+
tag: {
|
|
7
|
+
type: String,
|
|
8
|
+
default: "div"
|
|
9
|
+
},
|
|
10
|
+
span: {
|
|
11
|
+
type: Number,
|
|
12
|
+
default: 24
|
|
13
|
+
},
|
|
14
|
+
offset: {
|
|
15
|
+
type: Number,
|
|
16
|
+
default: 0
|
|
17
|
+
},
|
|
18
|
+
pull: {
|
|
19
|
+
type: Number,
|
|
20
|
+
default: 0
|
|
21
|
+
},
|
|
22
|
+
push: {
|
|
23
|
+
type: Number,
|
|
24
|
+
default: 0
|
|
25
|
+
},
|
|
26
|
+
xs: {
|
|
27
|
+
type: definePropType([Number, Object]),
|
|
28
|
+
default: () => mutable({})
|
|
29
|
+
},
|
|
30
|
+
sm: {
|
|
31
|
+
type: definePropType([Number, Object]),
|
|
32
|
+
default: () => mutable({})
|
|
33
|
+
},
|
|
34
|
+
md: {
|
|
35
|
+
type: definePropType([Number, Object]),
|
|
36
|
+
default: () => mutable({})
|
|
37
|
+
},
|
|
38
|
+
lg: {
|
|
39
|
+
type: definePropType([Number, Object]),
|
|
40
|
+
default: () => mutable({})
|
|
41
|
+
},
|
|
42
|
+
xl: {
|
|
43
|
+
type: definePropType([Number, Object]),
|
|
44
|
+
default: () => mutable({})
|
|
67
45
|
}
|
|
68
46
|
});
|
|
69
|
-
var Col = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "col.vue"]]);
|
|
70
47
|
|
|
71
|
-
export {
|
|
48
|
+
export { colProps };
|
|
72
49
|
//# sourceMappingURL=col2.mjs.map
|