element-plus 2.7.3 → 2.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/dist/index.full.js +106 -301
- package/dist/index.full.min.js +14 -14
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +14 -14
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +886 -1081
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar-eg.js +1 -1
- package/dist/locale/ar-eg.min.js +1 -1
- package/dist/locale/ar-eg.min.mjs +1 -1
- package/dist/locale/ar-eg.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/az.js +1 -1
- package/dist/locale/az.min.js +1 -1
- package/dist/locale/az.min.mjs +1 -1
- package/dist/locale/az.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/ckb.js +1 -1
- package/dist/locale/ckb.min.js +1 -1
- package/dist/locale/ckb.min.mjs +1 -1
- package/dist/locale/ckb.mjs +1 -1
- package/dist/locale/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/sw.js +1 -1
- package/dist/locale/sw.min.js +1 -1
- package/dist/locale/sw.min.mjs +1 -1
- package/dist/locale/sw.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/affix/index.mjs +2 -2
- package/es/components/affix/src/affix.mjs +117 -26
- package/es/components/affix/src/affix.mjs.map +1 -1
- package/es/components/affix/src/affix2.mjs +26 -117
- package/es/components/affix/src/affix2.mjs.map +1 -1
- package/es/components/cascader/index.mjs.map +1 -1
- package/es/components/cascader/src/cascader.mjs +1 -1
- package/es/components/cascader-panel/index.mjs.map +1 -1
- package/es/components/collapse-transition/index.mjs.map +1 -1
- package/es/components/color-picker/src/color-picker2.mjs +7 -6
- package/es/components/color-picker/src/color-picker2.mjs.map +1 -1
- package/es/components/date-picker/index.mjs.map +1 -1
- package/es/components/descriptions/src/description2.mjs +1 -1
- package/es/components/descriptions/src/descriptions-row.mjs +7 -64
- package/es/components/descriptions/src/descriptions-row.mjs.map +1 -1
- package/es/components/descriptions/src/descriptions-row2.mjs +64 -7
- package/es/components/descriptions/src/descriptions-row2.mjs.map +1 -1
- package/es/components/index.mjs +4 -4
- package/es/components/pagination/src/components/sizes.mjs +23 -69
- package/es/components/pagination/src/components/sizes.mjs.map +1 -1
- package/es/components/pagination/src/components/sizes2.mjs +69 -23
- package/es/components/pagination/src/components/sizes2.mjs.map +1 -1
- package/es/components/pagination/src/pagination.mjs +1 -1
- package/es/components/popper/src/content2.mjs +1 -1
- package/es/components/popper/src/content2.mjs.map +1 -1
- package/es/components/select/src/select.mjs +1 -1
- package/es/components/select/src/select2.mjs +26 -5
- package/es/components/select/src/select2.mjs.map +1 -1
- package/es/components/select/src/useSelect.mjs +2 -0
- package/es/components/select/src/useSelect.mjs.map +1 -1
- package/es/components/select-v2/index.mjs.map +1 -1
- package/es/components/select-v2/src/defaults.mjs +1 -1
- package/es/components/select-v2/src/group-item.mjs +3 -13
- package/es/components/select-v2/src/group-item.mjs.map +1 -1
- package/es/components/select-v2/src/select.mjs +26 -5
- package/es/components/select-v2/src/select.mjs.map +1 -1
- package/es/components/select-v2/src/useSelect.mjs +3 -2
- package/es/components/select-v2/src/useSelect.mjs.map +1 -1
- package/es/components/skeleton/index.mjs +4 -4
- package/es/components/skeleton/src/skeleton-item.mjs +18 -23
- package/es/components/skeleton/src/skeleton-item.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton-item2.mjs +23 -18
- package/es/components/skeleton/src/skeleton-item2.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton.mjs +49 -22
- package/es/components/skeleton/src/skeleton.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton2.mjs +22 -49
- package/es/components/skeleton/src/skeleton2.mjs.map +1 -1
- package/es/components/table/src/table-body/events-helper.mjs +5 -3
- package/es/components/table/src/table-body/events-helper.mjs.map +1 -1
- package/es/components/tag/index.mjs +2 -2
- package/es/components/tag/src/tag.mjs +94 -29
- package/es/components/tag/src/tag.mjs.map +1 -1
- package/es/components/tag/src/tag2.mjs +29 -94
- package/es/components/tag/src/tag2.mjs.map +1 -1
- package/es/components/time-picker/index.mjs.map +1 -1
- package/es/components/time-picker/src/common/picker.vue.d.ts +1 -1
- package/es/components/time-picker/src/common/props.d.ts +1 -31
- package/es/components/time-picker/src/common/props.mjs.map +1 -1
- package/es/components/time-select/index.mjs.map +1 -1
- package/es/components/tooltip-v2/index.mjs +2 -2
- package/es/components/tooltip-v2/src/tooltip.mjs +73 -20
- package/es/components/tooltip-v2/src/tooltip.mjs.map +1 -1
- package/es/components/tooltip-v2/src/tooltip2.mjs +20 -73
- package/es/components/tooltip-v2/src/tooltip2.mjs.map +1 -1
- package/es/components/tour/src/mask.mjs +78 -19
- package/es/components/tour/src/mask.mjs.map +1 -1
- package/es/components/tour/src/mask2.mjs +19 -78
- package/es/components/tour/src/mask2.mjs.map +1 -1
- package/es/components/tour/src/tour2.mjs +1 -1
- package/es/components/transfer/src/composables/use-check.mjs +1 -1
- package/es/components/transfer/src/transfer-panel.mjs +128 -19
- package/es/components/transfer/src/transfer-panel.mjs.map +1 -1
- package/es/components/transfer/src/transfer-panel2.mjs +19 -128
- package/es/components/transfer/src/transfer-panel2.mjs.map +1 -1
- package/es/components/transfer/src/transfer2.mjs +1 -1
- package/es/components/tree/index.mjs.map +1 -1
- package/es/components/tree/src/tree.mjs +5 -2
- package/es/components/tree/src/tree.mjs.map +1 -1
- package/es/components/tree-select/index.mjs.map +1 -1
- package/es/components/virtual-list/src/hooks/use-wheel.mjs.map +1 -1
- package/es/hooks/use-lockscreen/index.mjs +1 -2
- package/es/hooks/use-lockscreen/index.mjs.map +1 -1
- package/es/index.mjs +4 -4
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/affix/index.js +2 -2
- package/lib/components/affix/src/affix.js +117 -27
- package/lib/components/affix/src/affix.js.map +1 -1
- package/lib/components/affix/src/affix2.js +27 -117
- package/lib/components/affix/src/affix2.js.map +1 -1
- package/lib/components/cascader/index.js.map +1 -1
- package/lib/components/cascader/src/cascader.js +1 -1
- package/lib/components/cascader-panel/index.js.map +1 -1
- package/lib/components/collapse-transition/index.js.map +1 -1
- package/lib/components/color-picker/src/color-picker2.js +6 -5
- package/lib/components/color-picker/src/color-picker2.js.map +1 -1
- package/lib/components/date-picker/index.js.map +1 -1
- package/lib/components/descriptions/src/description2.js +1 -1
- package/lib/components/descriptions/src/descriptions-row.js +7 -64
- package/lib/components/descriptions/src/descriptions-row.js.map +1 -1
- package/lib/components/descriptions/src/descriptions-row2.js +64 -7
- package/lib/components/descriptions/src/descriptions-row2.js.map +1 -1
- package/lib/components/index.js +4 -4
- package/lib/components/pagination/src/components/sizes.js +23 -69
- package/lib/components/pagination/src/components/sizes.js.map +1 -1
- package/lib/components/pagination/src/components/sizes2.js +69 -23
- package/lib/components/pagination/src/components/sizes2.js.map +1 -1
- package/lib/components/pagination/src/pagination.js +1 -1
- package/lib/components/popper/src/content2.js +1 -1
- package/lib/components/popper/src/content2.js.map +1 -1
- package/lib/components/select/src/select.js +1 -1
- package/lib/components/select/src/select2.js +25 -4
- package/lib/components/select/src/select2.js.map +1 -1
- package/lib/components/select/src/useSelect.js +2 -0
- package/lib/components/select/src/useSelect.js.map +1 -1
- package/lib/components/select-v2/index.js.map +1 -1
- package/lib/components/select-v2/src/defaults.js +1 -1
- package/lib/components/select-v2/src/group-item.js +2 -12
- package/lib/components/select-v2/src/group-item.js.map +1 -1
- package/lib/components/select-v2/src/select.js +25 -4
- package/lib/components/select-v2/src/select.js.map +1 -1
- package/lib/components/select-v2/src/useSelect.js +3 -2
- package/lib/components/select-v2/src/useSelect.js.map +1 -1
- package/lib/components/skeleton/index.js +4 -4
- package/lib/components/skeleton/src/skeleton-item.js +18 -23
- package/lib/components/skeleton/src/skeleton-item.js.map +1 -1
- package/lib/components/skeleton/src/skeleton-item2.js +23 -18
- package/lib/components/skeleton/src/skeleton-item2.js.map +1 -1
- package/lib/components/skeleton/src/skeleton.js +49 -22
- package/lib/components/skeleton/src/skeleton.js.map +1 -1
- package/lib/components/skeleton/src/skeleton2.js +22 -49
- package/lib/components/skeleton/src/skeleton2.js.map +1 -1
- package/lib/components/table/src/table-body/events-helper.js +5 -3
- package/lib/components/table/src/table-body/events-helper.js.map +1 -1
- package/lib/components/tag/index.js +2 -2
- package/lib/components/tag/src/tag.js +94 -30
- package/lib/components/tag/src/tag.js.map +1 -1
- package/lib/components/tag/src/tag2.js +30 -94
- package/lib/components/tag/src/tag2.js.map +1 -1
- package/lib/components/time-picker/index.js.map +1 -1
- package/lib/components/time-picker/src/common/picker.vue.d.ts +1 -1
- package/lib/components/time-picker/src/common/props.d.ts +1 -31
- package/lib/components/time-picker/src/common/props.js.map +1 -1
- package/lib/components/time-select/index.js.map +1 -1
- package/lib/components/tooltip-v2/index.js +2 -2
- package/lib/components/tooltip-v2/src/tooltip.js +73 -20
- package/lib/components/tooltip-v2/src/tooltip.js.map +1 -1
- package/lib/components/tooltip-v2/src/tooltip2.js +20 -73
- package/lib/components/tooltip-v2/src/tooltip2.js.map +1 -1
- package/lib/components/tour/src/mask.js +78 -19
- package/lib/components/tour/src/mask.js.map +1 -1
- package/lib/components/tour/src/mask2.js +19 -78
- package/lib/components/tour/src/mask2.js.map +1 -1
- package/lib/components/tour/src/tour2.js +1 -1
- package/lib/components/transfer/src/composables/use-check.js +1 -1
- package/lib/components/transfer/src/transfer-panel.js +128 -21
- package/lib/components/transfer/src/transfer-panel.js.map +1 -1
- package/lib/components/transfer/src/transfer-panel2.js +21 -128
- package/lib/components/transfer/src/transfer-panel2.js.map +1 -1
- package/lib/components/transfer/src/transfer2.js +1 -1
- package/lib/components/tree/index.js.map +1 -1
- package/lib/components/tree/src/tree.js +4 -1
- package/lib/components/tree/src/tree.js.map +1 -1
- package/lib/components/tree-select/index.js.map +1 -1
- package/lib/components/virtual-list/src/hooks/use-wheel.js.map +1 -1
- package/lib/hooks/use-lockscreen/index.js +1 -2
- package/lib/hooks/use-lockscreen/index.js.map +1 -1
- package/lib/index.js +4 -4
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/theme-chalk/el-dropdown.css +1 -1
- package/theme-chalk/el-option-group.css +1 -1
- package/theme-chalk/el-select-v2.css +1 -1
- package/theme-chalk/el-select.css +1 -1
- package/theme-chalk/el-tree-select.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/common/var.scss +1 -1
- package/theme-chalk/src/dropdown.scss +1 -0
- package/theme-chalk/src/option-group.scss +0 -25
- package/theme-chalk/src/tree-select.scss +5 -0
- package/web-types.json +1 -1
|
@@ -2,101 +2,37 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var
|
|
8
|
-
require('../../../
|
|
9
|
-
require('../../form/index.js');
|
|
10
|
-
var tag = require('./tag.js');
|
|
11
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
12
|
-
var useFormCommonProps = require('../../form/src/hooks/use-form-common-props.js');
|
|
13
|
-
var index = require('../../../hooks/use-namespace/index.js');
|
|
5
|
+
require('../../../utils/index.js');
|
|
6
|
+
require('../../../constants/index.js');
|
|
7
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
8
|
+
var size = require('../../../constants/size.js');
|
|
14
9
|
|
|
15
|
-
const
|
|
16
|
-
|
|
10
|
+
const tagProps = runtime.buildProps({
|
|
11
|
+
type: {
|
|
12
|
+
type: String,
|
|
13
|
+
values: ["primary", "success", "info", "warning", "danger"],
|
|
14
|
+
default: "primary"
|
|
15
|
+
},
|
|
16
|
+
closable: Boolean,
|
|
17
|
+
disableTransitions: Boolean,
|
|
18
|
+
hit: Boolean,
|
|
19
|
+
color: String,
|
|
20
|
+
size: {
|
|
21
|
+
type: String,
|
|
22
|
+
values: size.componentSizes
|
|
23
|
+
},
|
|
24
|
+
effect: {
|
|
25
|
+
type: String,
|
|
26
|
+
values: ["dark", "light", "plain"],
|
|
27
|
+
default: "light"
|
|
28
|
+
},
|
|
29
|
+
round: Boolean
|
|
17
30
|
});
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
setup(__props, { emit }) {
|
|
23
|
-
const props = __props;
|
|
24
|
-
const tagSize = useFormCommonProps.useFormSize();
|
|
25
|
-
const ns = index.useNamespace("tag");
|
|
26
|
-
const containerKls = vue.computed(() => {
|
|
27
|
-
const { type, hit, effect, closable, round } = props;
|
|
28
|
-
return [
|
|
29
|
-
ns.b(),
|
|
30
|
-
ns.is("closable", closable),
|
|
31
|
-
ns.m(type || "primary"),
|
|
32
|
-
ns.m(tagSize.value),
|
|
33
|
-
ns.m(effect),
|
|
34
|
-
ns.is("hit", hit),
|
|
35
|
-
ns.is("round", round)
|
|
36
|
-
];
|
|
37
|
-
});
|
|
38
|
-
const handleClose = (event) => {
|
|
39
|
-
emit("close", event);
|
|
40
|
-
};
|
|
41
|
-
const handleClick = (event) => {
|
|
42
|
-
emit("click", event);
|
|
43
|
-
};
|
|
44
|
-
return (_ctx, _cache) => {
|
|
45
|
-
return _ctx.disableTransitions ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
46
|
-
key: 0,
|
|
47
|
-
class: vue.normalizeClass(vue.unref(containerKls)),
|
|
48
|
-
style: vue.normalizeStyle({ backgroundColor: _ctx.color }),
|
|
49
|
-
onClick: handleClick
|
|
50
|
-
}, [
|
|
51
|
-
vue.createElementVNode("span", {
|
|
52
|
-
class: vue.normalizeClass(vue.unref(ns).e("content"))
|
|
53
|
-
}, [
|
|
54
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
55
|
-
], 2),
|
|
56
|
-
_ctx.closable ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), {
|
|
57
|
-
key: 0,
|
|
58
|
-
class: vue.normalizeClass(vue.unref(ns).e("close")),
|
|
59
|
-
onClick: vue.withModifiers(handleClose, ["stop"])
|
|
60
|
-
}, {
|
|
61
|
-
default: vue.withCtx(() => [
|
|
62
|
-
vue.createVNode(vue.unref(iconsVue.Close))
|
|
63
|
-
]),
|
|
64
|
-
_: 1
|
|
65
|
-
}, 8, ["class", "onClick"])) : vue.createCommentVNode("v-if", true)
|
|
66
|
-
], 6)) : (vue.openBlock(), vue.createBlock(vue.Transition, {
|
|
67
|
-
key: 1,
|
|
68
|
-
name: `${vue.unref(ns).namespace.value}-zoom-in-center`,
|
|
69
|
-
appear: ""
|
|
70
|
-
}, {
|
|
71
|
-
default: vue.withCtx(() => [
|
|
72
|
-
vue.createElementVNode("span", {
|
|
73
|
-
class: vue.normalizeClass(vue.unref(containerKls)),
|
|
74
|
-
style: vue.normalizeStyle({ backgroundColor: _ctx.color }),
|
|
75
|
-
onClick: handleClick
|
|
76
|
-
}, [
|
|
77
|
-
vue.createElementVNode("span", {
|
|
78
|
-
class: vue.normalizeClass(vue.unref(ns).e("content"))
|
|
79
|
-
}, [
|
|
80
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
81
|
-
], 2),
|
|
82
|
-
_ctx.closable ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), {
|
|
83
|
-
key: 0,
|
|
84
|
-
class: vue.normalizeClass(vue.unref(ns).e("close")),
|
|
85
|
-
onClick: vue.withModifiers(handleClose, ["stop"])
|
|
86
|
-
}, {
|
|
87
|
-
default: vue.withCtx(() => [
|
|
88
|
-
vue.createVNode(vue.unref(iconsVue.Close))
|
|
89
|
-
]),
|
|
90
|
-
_: 1
|
|
91
|
-
}, 8, ["class", "onClick"])) : vue.createCommentVNode("v-if", true)
|
|
92
|
-
], 6)
|
|
93
|
-
]),
|
|
94
|
-
_: 3
|
|
95
|
-
}, 8, ["name"]));
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
});
|
|
99
|
-
var Tag = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "tag.vue"]]);
|
|
31
|
+
const tagEmits = {
|
|
32
|
+
close: (evt) => evt instanceof MouseEvent,
|
|
33
|
+
click: (evt) => evt instanceof MouseEvent
|
|
34
|
+
};
|
|
100
35
|
|
|
101
|
-
exports
|
|
36
|
+
exports.tagEmits = tagEmits;
|
|
37
|
+
exports.tagProps = tagProps;
|
|
102
38
|
//# sourceMappingURL=tag2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag2.js","sources":["../../../../../../packages/components/tag/src/tag.
|
|
1
|
+
{"version":3,"file":"tag2.js","sources":["../../../../../../packages/components/tag/src/tag.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport { componentSizes } from '@element-plus/constants'\nimport type Tag from './tag.vue'\n\nimport type { ExtractPropTypes } from 'vue'\n\nexport const tagProps = buildProps({\n /**\n * @description type of Tag\n */\n type: {\n type: String,\n values: ['primary', 'success', 'info', 'warning', 'danger'],\n default: 'primary',\n },\n /**\n * @description whether Tag can be removed\n */\n closable: Boolean,\n /**\n * @description whether to disable animations\n */\n disableTransitions: Boolean,\n /**\n * @description whether Tag has a highlighted border\n */\n hit: Boolean,\n /**\n * @description background color of the Tag\n */\n color: String,\n /**\n * @description size of Tag\n */\n size: {\n type: String,\n values: componentSizes,\n },\n /**\n * @description theme of Tag\n */\n effect: {\n type: String,\n values: ['dark', 'light', 'plain'],\n default: 'light',\n },\n /**\n * @description whether Tag is rounded\n */\n round: Boolean,\n} as const)\nexport type TagProps = ExtractPropTypes<typeof tagProps>\n\nexport const tagEmits = {\n close: (evt: MouseEvent) => evt instanceof MouseEvent,\n click: (evt: MouseEvent) => evt instanceof MouseEvent,\n}\nexport type TagEmits = typeof tagEmits\n\nexport type TagInstance = InstanceType<typeof Tag>\n"],"names":["buildProps","componentSizes"],"mappings":";;;;;;;;;AAEY,MAAC,QAAQ,GAAGA,kBAAU,CAAC;AACnC,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,CAAC;AAC/D,IAAI,OAAO,EAAE,SAAS;AACtB,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,kBAAkB,EAAE,OAAO;AAC7B,EAAE,GAAG,EAAE,OAAO;AACd,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAEC,mBAAc;AAC1B,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC;AACtC,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,KAAK,EAAE,OAAO;AAChB,CAAC,EAAE;AACS,MAAC,QAAQ,GAAG;AACxB,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../packages/components/time-picker/index.ts"],"sourcesContent":["import TimePicker from './src/time-picker'\nimport CommonPicker from './src/common/picker.vue'\nimport TimePickPanel from './src/time-picker-com/panel-time-pick.vue'\n\nimport type { App } from 'vue'\nimport type { SFCWithInstall } from '@element-plus/utils'\n\nexport * from './src/utils'\nexport * from './src/constants'\nexport * from './src/common/props'\n\nconst _TimePicker = TimePicker as SFCWithInstall<typeof TimePicker>\n\n_TimePicker.install = (app: App) => {\n app.component(_TimePicker.name
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../packages/components/time-picker/index.ts"],"sourcesContent":["import TimePicker from './src/time-picker'\nimport CommonPicker from './src/common/picker.vue'\nimport TimePickPanel from './src/time-picker-com/panel-time-pick.vue'\n\nimport type { App } from 'vue'\nimport type { SFCWithInstall } from '@element-plus/utils'\n\nexport * from './src/utils'\nexport * from './src/constants'\nexport * from './src/common/props'\n\nconst _TimePicker = TimePicker as SFCWithInstall<typeof TimePicker>\n\n_TimePicker.install = (app: App) => {\n app.component(_TimePicker.name!, _TimePicker)\n}\n\nexport { CommonPicker, TimePickPanel }\nexport default _TimePicker\nexport const ElTimePicker = _TimePicker\n"],"names":["TimePicker"],"mappings":";;;;;;;;;;;AAMK,MAAC,WAAW,GAAGA,sBAAW;AAC/B,WAAW,CAAC,OAAO,GAAG,CAAC,GAAG,KAAK;AAC/B,EAAE,GAAG,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;AAC/C,CAAC,CAAC;AAGU,MAAC,YAAY,GAAG;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -6484,7 +6484,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6484
6484
|
inputRef: import("vue").Ref<HTMLElement | ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | undefined>;
|
|
6485
6485
|
pickerVisible: import("vue").Ref<boolean>;
|
|
6486
6486
|
pickerActualVisible: import("vue").Ref<boolean>;
|
|
6487
|
-
valueOnOpen: import("vue").Ref<string | number | {
|
|
6487
|
+
valueOnOpen: import("vue").Ref<string | number | string[] | {
|
|
6488
6488
|
toString: () => string;
|
|
6489
6489
|
toDateString: () => string;
|
|
6490
6490
|
toTimeString: () => string;
|
|
@@ -3,7 +3,7 @@ import type { Options } from '@popperjs/core';
|
|
|
3
3
|
import type { Dayjs } from 'dayjs';
|
|
4
4
|
export declare type SingleOrRange<T> = T | [T, T];
|
|
5
5
|
export declare type DateModelType = number | string | Date;
|
|
6
|
-
export declare type ModelValueType = SingleOrRange<DateModelType
|
|
6
|
+
export declare type ModelValueType = SingleOrRange<DateModelType> | string[];
|
|
7
7
|
export declare type DayOrDays = SingleOrRange<Dayjs>;
|
|
8
8
|
export declare type DateOrDates = SingleOrRange<Date>;
|
|
9
9
|
export declare type UserInput = SingleOrRange<string | null>;
|
|
@@ -15,18 +15,12 @@ export declare const timePickerDefaultProps: {
|
|
|
15
15
|
readonly emptyValues: ArrayConstructor;
|
|
16
16
|
readonly valueOnClear: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor, BooleanConstructor, FunctionConstructor], unknown, unknown, undefined, boolean>;
|
|
17
17
|
readonly disabledDate: {
|
|
18
|
-
/**
|
|
19
|
-
* @description binding value, if it is an array, the length should be 2
|
|
20
|
-
*/
|
|
21
18
|
readonly type: import("vue").PropType<Function>;
|
|
22
19
|
readonly required: false;
|
|
23
20
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
24
21
|
__epPropKey: true;
|
|
25
22
|
};
|
|
26
23
|
readonly cellClassName: {
|
|
27
|
-
/**
|
|
28
|
-
* @description binding value, if it is an array, the length should be 2
|
|
29
|
-
*/
|
|
30
24
|
readonly type: import("vue").PropType<Function>;
|
|
31
25
|
readonly required: false;
|
|
32
26
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
@@ -39,36 +33,24 @@ export declare const timePickerDefaultProps: {
|
|
|
39
33
|
readonly validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
40
34
|
readonly unlinkPanels: BooleanConstructor;
|
|
41
35
|
readonly disabledHours: {
|
|
42
|
-
/**
|
|
43
|
-
* @description binding value, if it is an array, the length should be 2
|
|
44
|
-
*/
|
|
45
36
|
readonly type: import("vue").PropType<import("../props/shared").GetDisabledHours>;
|
|
46
37
|
readonly required: false;
|
|
47
38
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
48
39
|
__epPropKey: true;
|
|
49
40
|
};
|
|
50
41
|
readonly disabledMinutes: {
|
|
51
|
-
/**
|
|
52
|
-
* @description binding value, if it is an array, the length should be 2
|
|
53
|
-
*/
|
|
54
42
|
readonly type: import("vue").PropType<import("../props/shared").GetDisabledMinutes>;
|
|
55
43
|
readonly required: false;
|
|
56
44
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
57
45
|
__epPropKey: true;
|
|
58
46
|
};
|
|
59
47
|
readonly disabledSeconds: {
|
|
60
|
-
/**
|
|
61
|
-
* @description binding value, if it is an array, the length should be 2
|
|
62
|
-
*/
|
|
63
48
|
readonly type: import("vue").PropType<import("../props/shared").GetDisabledSeconds>;
|
|
64
49
|
readonly required: false;
|
|
65
50
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
66
51
|
__epPropKey: true;
|
|
67
52
|
};
|
|
68
53
|
readonly id: {
|
|
69
|
-
/**
|
|
70
|
-
* @description binding value, if it is an array, the length should be 2
|
|
71
|
-
*/
|
|
72
54
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => SingleOrRange<string> & {}) | (() => SingleOrRange<string>) | ((new (...args: any[]) => SingleOrRange<string> & {}) | (() => SingleOrRange<string>))[], unknown, unknown>>;
|
|
73
55
|
readonly required: false;
|
|
74
56
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
@@ -83,9 +65,6 @@ export declare const timePickerDefaultProps: {
|
|
|
83
65
|
readonly type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
84
66
|
readonly clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
85
67
|
readonly clearIcon: {
|
|
86
|
-
/**
|
|
87
|
-
* @description binding value, if it is an array, the length should be 2
|
|
88
|
-
*/
|
|
89
68
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>>;
|
|
90
69
|
readonly required: false;
|
|
91
70
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
@@ -94,9 +73,6 @@ export declare const timePickerDefaultProps: {
|
|
|
94
73
|
readonly editable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
95
74
|
readonly prefixIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, "", boolean>;
|
|
96
75
|
readonly size: {
|
|
97
|
-
/**
|
|
98
|
-
* @description binding value, if it is an array, the length should be 2
|
|
99
|
-
*/
|
|
100
76
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
101
77
|
readonly required: false;
|
|
102
78
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
@@ -111,18 +87,12 @@ export declare const timePickerDefaultProps: {
|
|
|
111
87
|
readonly startPlaceholder: StringConstructor;
|
|
112
88
|
readonly endPlaceholder: StringConstructor;
|
|
113
89
|
readonly defaultValue: {
|
|
114
|
-
/**
|
|
115
|
-
* @description binding value, if it is an array, the length should be 2
|
|
116
|
-
*/
|
|
117
90
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => SingleOrRange<Date>))[], unknown, unknown>>;
|
|
118
91
|
readonly required: false;
|
|
119
92
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
120
93
|
__epPropKey: true;
|
|
121
94
|
};
|
|
122
95
|
readonly defaultTime: {
|
|
123
|
-
/**
|
|
124
|
-
* @description binding value, if it is an array, the length should be 2
|
|
125
|
-
*/
|
|
126
96
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => SingleOrRange<Date>))[], unknown, unknown>>;
|
|
127
97
|
readonly required: false;
|
|
128
98
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.js","sources":["../../../../../../../packages/components/time-picker/src/common/props.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport {\n useAriaProps,\n useEmptyValuesProps,\n useSizeProp,\n} from '@element-plus/hooks'\nimport { CircleClose } from '@element-plus/icons-vue'\nimport { disabledTimeListsProps } from '../props/shared'\n\nimport type { Component, ExtractPropTypes } from 'vue'\nimport type { Options } from '@popperjs/core'\nimport type { Dayjs } from 'dayjs'\n\nexport type SingleOrRange<T> = T | [T, T]\nexport type DateModelType = number | string | Date\nexport type ModelValueType = SingleOrRange<DateModelType
|
|
1
|
+
{"version":3,"file":"props.js","sources":["../../../../../../../packages/components/time-picker/src/common/props.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport {\n useAriaProps,\n useEmptyValuesProps,\n useSizeProp,\n} from '@element-plus/hooks'\nimport { CircleClose } from '@element-plus/icons-vue'\nimport { disabledTimeListsProps } from '../props/shared'\n\nimport type { Component, ExtractPropTypes } from 'vue'\nimport type { Options } from '@popperjs/core'\nimport type { Dayjs } from 'dayjs'\n\nexport type SingleOrRange<T> = T | [T, T]\nexport type DateModelType = number | string | Date\nexport type ModelValueType = SingleOrRange<DateModelType> | string[]\nexport type DayOrDays = SingleOrRange<Dayjs>\nexport type DateOrDates = SingleOrRange<Date>\nexport type UserInput = SingleOrRange<string | null>\nexport type GetDisabledHours = (role: string, comparingDate?: Dayjs) => number[]\nexport type GetDisabledMinutes = (\n hour: number,\n role: string,\n comparingDate?: Dayjs\n) => number[]\nexport type GetDisabledSeconds = (\n hour: number,\n minute: number,\n role: string,\n comparingDate?: Dayjs\n) => number[]\n\nexport const timePickerDefaultProps = buildProps({\n /**\n * @description same as `id` in native input\n */\n id: {\n type: definePropType<SingleOrRange<string>>([Array, String]),\n },\n /**\n * @description same as `name` in native input\n */\n name: {\n type: definePropType<SingleOrRange<string>>([Array, String]),\n default: '',\n },\n /**\n * @description custom class name for TimePicker's dropdown\n */\n popperClass: {\n type: String,\n default: '',\n },\n /**\n * @description format of the displayed value in the input box\n */\n format: String,\n /**\n * @description optional, format of binding value. If not specified, the binding value will be a Date object\n */\n valueFormat: String,\n /**\n * @description optional, format of the date displayed value in TimePicker's dropdown\n */\n dateFormat: String,\n /**\n * @description optional, format of the time displayed value in TimePicker's dropdown\n */\n timeFormat: String,\n /**\n * @description type of the picker\n */\n type: {\n type: String,\n default: '',\n },\n /**\n * @description whether to show clear button\n */\n clearable: {\n type: Boolean,\n default: true,\n },\n /**\n * @description Custom clear icon component\n */\n clearIcon: {\n type: definePropType<string | Component>([String, Object]),\n default: CircleClose,\n },\n /**\n * @description whether the input is editable\n */\n editable: {\n type: Boolean,\n default: true,\n },\n /**\n * @description Custom prefix icon component\n */\n prefixIcon: {\n type: definePropType<string | Component>([String, Object]),\n default: '',\n },\n /**\n * @description size of Input\n */\n size: useSizeProp,\n /**\n * @description whether TimePicker is read only\n */\n readonly: Boolean,\n /**\n * @description whether TimePicker is disabled\n */\n disabled: Boolean,\n /**\n * @description placeholder in non-range mode\n */\n placeholder: {\n type: String,\n default: '',\n },\n /**\n * @description [popper.js](https://popper.js.org/docs/v2/) parameters\n */\n popperOptions: {\n type: definePropType<Partial<Options>>(Object),\n default: () => ({}),\n },\n /**\n * @description binding value, if it is an array, the length should be 2\n */\n modelValue: {\n type: definePropType<ModelValueType>([Date, Array, String, Number]),\n default: '',\n },\n /**\n * @description range separator\n */\n rangeSeparator: {\n type: String,\n default: '-',\n },\n /**\n * @description placeholder for the start date in range mode\n */\n startPlaceholder: String,\n /**\n * @description placeholder for the end date in range mode\n */\n endPlaceholder: String,\n /**\n * @description optional, default date of the calendar\n */\n defaultValue: {\n type: definePropType<SingleOrRange<Date>>([Date, Array]),\n },\n /**\n * @description optional, the time value to use when selecting date range\n */\n defaultTime: {\n type: definePropType<SingleOrRange<Date>>([Date, Array]),\n },\n /**\n * @description whether to pick a time range\n */\n isRange: Boolean,\n ...disabledTimeListsProps,\n /**\n * @description a function determining if a date is disabled with that date as its parameter. Should return a Boolean\n */\n disabledDate: {\n type: Function,\n },\n /**\n * @description set custom className\n */\n cellClassName: {\n type: Function,\n },\n /**\n * @description an object array to set shortcut options\n */\n shortcuts: {\n type: Array,\n default: () => [],\n },\n /**\n * @description whether to pick time using arrow buttons\n */\n arrowControl: Boolean,\n /**\n * @deprecated same as `aria-label` in native input\n */\n label: {\n type: String,\n default: undefined,\n },\n /**\n * @description input tabindex\n */\n tabindex: {\n type: definePropType<string | number>([String, Number]),\n default: 0,\n },\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n /**\n * @description unlink two date-panels in range-picker\n */\n unlinkPanels: Boolean,\n ...useEmptyValuesProps,\n ...useAriaProps(['ariaLabel']),\n} as const)\n\nexport type TimePickerDefaultProps = ExtractPropTypes<\n typeof timePickerDefaultProps\n>\n\nexport interface PickerOptions {\n isValidValue: (date: DayOrDays) => boolean\n handleKeydownInput: (event: KeyboardEvent) => void\n parseUserInput: (value: UserInput) => DayOrDays\n formatToString: (value: DayOrDays) => UserInput\n getRangeAvailableTime: (date: DayOrDays) => DayOrDays\n getDefaultValue: () => DayOrDays\n panelReady: boolean\n handleClear: () => void\n handleFocusPicker?: () => void\n}\n"],"names":["buildProps","definePropType","CircleClose","useSizeProp","disabledTimeListsProps","useEmptyValuesProps","useAriaProps"],"mappings":";;;;;;;;;;;;;AAQY,MAAC,sBAAsB,GAAGA,kBAAU,CAAC;AACjD,EAAE,EAAE,EAAE;AACN,IAAI,IAAI,EAAEC,sBAAc,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;AACzC,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAEA,sBAAc,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;AACzC,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE,MAAM;AAChB,EAAE,WAAW,EAAE,MAAM;AACrB,EAAE,UAAU,EAAE,MAAM;AACpB,EAAE,UAAU,EAAE,MAAM;AACpB,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAEA,sBAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAEC,oBAAW;AACxB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAED,sBAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAEE,iBAAW;AACnB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAEF,sBAAc,CAAC,MAAM,CAAC;AAChC,IAAI,OAAO,EAAE,OAAO,EAAE,CAAC;AACvB,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAEA,sBAAc,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AACvD,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,cAAc,EAAE;AAClB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,gBAAgB,EAAE,MAAM;AAC1B,EAAE,cAAc,EAAE,MAAM;AACxB,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAEA,sBAAc,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvC,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAEA,sBAAc,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvC,GAAG;AACH,EAAE,OAAO,EAAE,OAAO;AAClB,EAAE,GAAGG,6BAAsB;AAC3B,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,QAAQ;AAClB,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,QAAQ;AAClB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,KAAK;AACf,IAAI,OAAO,EAAE,MAAM,EAAE;AACrB,GAAG;AACH,EAAE,YAAY,EAAE,OAAO;AACvB,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAEH,sBAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,YAAY,EAAE,OAAO;AACvB,EAAE,GAAGI,2BAAmB;AACxB,EAAE,GAAGC,oBAAY,CAAC,CAAC,WAAW,CAAC,CAAC;AAChC,CAAC;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../packages/components/time-select/index.ts"],"sourcesContent":["import TimeSelect from './src/time-select.vue'\n\nimport type { App } from 'vue'\nimport type { SFCWithInstall } from '@element-plus/utils'\n\nTimeSelect.install = (app: App): void => {\n app.component(TimeSelect.name
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../packages/components/time-select/index.ts"],"sourcesContent":["import TimeSelect from './src/time-select.vue'\n\nimport type { App } from 'vue'\nimport type { SFCWithInstall } from '@element-plus/utils'\n\nTimeSelect.install = (app: App): void => {\n app.component(TimeSelect.name!, TimeSelect)\n}\n\nconst _TimeSelect = TimeSelect as SFCWithInstall<typeof TimeSelect>\n\nexport default _TimeSelect\nexport const ElTimeSelect = _TimeSelect\n"],"names":["TimeSelect"],"mappings":";;;;;;AACAA,qBAAU,CAAC,OAAO,GAAG,CAAC,GAAG,KAAK;AAC9B,EAAE,GAAG,CAAC,SAAS,CAACA,qBAAU,CAAC,IAAI,EAAEA,qBAAU,CAAC,CAAC;AAC7C,CAAC,CAAC;AACG,MAAC,WAAW,GAAGA,sBAAW;AAEnB,MAAC,YAAY,GAAG;;;;;"}
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
require('../../utils/index.js');
|
|
6
|
-
var tooltip$1 = require('./src/
|
|
6
|
+
var tooltip$1 = require('./src/tooltip.js');
|
|
7
7
|
var arrow = require('./src/arrow.js');
|
|
8
8
|
var content = require('./src/content.js');
|
|
9
9
|
var root = require('./src/root.js');
|
|
10
|
-
var tooltip = require('./src/
|
|
10
|
+
var tooltip = require('./src/tooltip2.js');
|
|
11
11
|
var trigger = require('./src/trigger.js');
|
|
12
12
|
var constants = require('./src/constants.js');
|
|
13
13
|
var install = require('../../utils/vue/install.js');
|
|
@@ -2,30 +2,83 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
require('
|
|
6
|
-
var
|
|
7
|
-
var trigger = require('./trigger.js');
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var lodashUnified = require('lodash-unified');
|
|
8
7
|
var arrow = require('./arrow.js');
|
|
9
8
|
var content = require('./content.js');
|
|
10
|
-
var
|
|
9
|
+
var root = require('./root.js');
|
|
10
|
+
var tooltip = require('./tooltip2.js');
|
|
11
|
+
var trigger = require('./trigger.js');
|
|
12
|
+
var root$1 = require('./root2.js');
|
|
13
|
+
var arrow$1 = require('./arrow2.js');
|
|
14
|
+
var content$1 = require('./content2.js');
|
|
15
|
+
var trigger$1 = require('./trigger2.js');
|
|
16
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
11
17
|
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
...
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
18
|
+
const __default__ = vue.defineComponent({
|
|
19
|
+
name: "ElTooltipV2"
|
|
20
|
+
});
|
|
21
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
22
|
+
...__default__,
|
|
23
|
+
props: tooltip.tooltipV2Props,
|
|
24
|
+
setup(__props) {
|
|
25
|
+
const props = __props;
|
|
26
|
+
const refedProps = vue.toRefs(props);
|
|
27
|
+
const arrowProps = vue.reactive(lodashUnified.pick(refedProps, Object.keys(arrow.tooltipV2ArrowProps)));
|
|
28
|
+
const contentProps = vue.reactive(lodashUnified.pick(refedProps, Object.keys(content.tooltipV2ContentProps)));
|
|
29
|
+
const rootProps = vue.reactive(lodashUnified.pick(refedProps, Object.keys(root.tooltipV2RootProps)));
|
|
30
|
+
const triggerProps = vue.reactive(lodashUnified.pick(refedProps, Object.keys(trigger.tooltipV2TriggerProps)));
|
|
31
|
+
return (_ctx, _cache) => {
|
|
32
|
+
return vue.openBlock(), vue.createBlock(root$1["default"], vue.normalizeProps(vue.guardReactiveProps(rootProps)), {
|
|
33
|
+
default: vue.withCtx(({ open }) => [
|
|
34
|
+
vue.createVNode(trigger$1["default"], vue.mergeProps(triggerProps, { nowrap: "" }), {
|
|
35
|
+
default: vue.withCtx(() => [
|
|
36
|
+
vue.renderSlot(_ctx.$slots, "trigger")
|
|
37
|
+
]),
|
|
38
|
+
_: 3
|
|
39
|
+
}, 16),
|
|
40
|
+
(vue.openBlock(), vue.createBlock(vue.Teleport, {
|
|
41
|
+
to: _ctx.to,
|
|
42
|
+
disabled: !_ctx.teleported
|
|
43
|
+
}, [
|
|
44
|
+
_ctx.fullTransition ? (vue.openBlock(), vue.createBlock(vue.Transition, vue.normalizeProps(vue.mergeProps({ key: 0 }, _ctx.transitionProps)), {
|
|
45
|
+
default: vue.withCtx(() => [
|
|
46
|
+
_ctx.alwaysOn || open ? (vue.openBlock(), vue.createBlock(content$1["default"], vue.normalizeProps(vue.mergeProps({ key: 0 }, contentProps)), {
|
|
47
|
+
arrow: vue.withCtx(({ style, side }) => [
|
|
48
|
+
_ctx.showArrow ? (vue.openBlock(), vue.createBlock(arrow$1["default"], vue.mergeProps({ key: 0 }, arrowProps, {
|
|
49
|
+
style,
|
|
50
|
+
side
|
|
51
|
+
}), null, 16, ["style", "side"])) : vue.createCommentVNode("v-if", true)
|
|
52
|
+
]),
|
|
53
|
+
default: vue.withCtx(() => [
|
|
54
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
55
|
+
]),
|
|
56
|
+
_: 3
|
|
57
|
+
}, 16)) : vue.createCommentVNode("v-if", true)
|
|
58
|
+
]),
|
|
59
|
+
_: 2
|
|
60
|
+
}, 1040)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
61
|
+
_ctx.alwaysOn || open ? (vue.openBlock(), vue.createBlock(content$1["default"], vue.normalizeProps(vue.mergeProps({ key: 0 }, contentProps)), {
|
|
62
|
+
arrow: vue.withCtx(({ style, side }) => [
|
|
63
|
+
_ctx.showArrow ? (vue.openBlock(), vue.createBlock(arrow$1["default"], vue.mergeProps({ key: 0 }, arrowProps, {
|
|
64
|
+
style,
|
|
65
|
+
side
|
|
66
|
+
}), null, 16, ["style", "side"])) : vue.createCommentVNode("v-if", true)
|
|
67
|
+
]),
|
|
68
|
+
default: vue.withCtx(() => [
|
|
69
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
70
|
+
]),
|
|
71
|
+
_: 3
|
|
72
|
+
}, 16)) : vue.createCommentVNode("v-if", true)
|
|
73
|
+
], 64))
|
|
74
|
+
], 8, ["to", "disabled"]))
|
|
75
|
+
]),
|
|
76
|
+
_: 3
|
|
77
|
+
}, 16);
|
|
78
|
+
};
|
|
27
79
|
}
|
|
28
80
|
});
|
|
81
|
+
var TooltipV2 = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "tooltip.vue"]]);
|
|
29
82
|
|
|
30
|
-
exports
|
|
83
|
+
exports["default"] = TooltipV2;
|
|
31
84
|
//# sourceMappingURL=tooltip.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.js","sources":["../../../../../../packages/components/tooltip-v2/src/tooltip.
|
|
1
|
+
{"version":3,"file":"tooltip.js","sources":["../../../../../../packages/components/tooltip-v2/src/tooltip.vue"],"sourcesContent":["<template>\n <tooltip-v2-root v-bind=\"rootProps\">\n <template #default=\"{ open }\">\n <tooltip-v2-trigger v-bind=\"triggerProps\" nowrap>\n <slot name=\"trigger\" />\n </tooltip-v2-trigger>\n <teleport :to=\"to\" :disabled=\"!teleported\">\n <template v-if=\"fullTransition\">\n <transition v-bind=\"transitionProps\">\n <tooltip-v2-content v-if=\"alwaysOn || open\" v-bind=\"contentProps\">\n <slot />\n <template #arrow=\"{ style, side }\">\n <tooltip-v2-arrow\n v-if=\"showArrow\"\n v-bind=\"arrowProps\"\n :style=\"style\"\n :side=\"side\"\n />\n </template>\n </tooltip-v2-content>\n </transition>\n </template>\n <template v-else>\n <tooltip-v2-content v-if=\"alwaysOn || open\" v-bind=\"contentProps\">\n <slot />\n <template #arrow=\"{ style, side }\">\n <tooltip-v2-arrow\n v-if=\"showArrow\"\n v-bind=\"arrowProps\"\n :style=\"style\"\n :side=\"side\"\n />\n </template>\n </tooltip-v2-content>\n </template>\n </teleport>\n </template>\n </tooltip-v2-root>\n</template>\n\n<script setup lang=\"ts\">\n// @ts-nocheck\nimport { reactive, toRefs } from 'vue'\nimport { pick } from 'lodash-unified'\nimport { tooltipV2ArrowProps } from './arrow'\nimport { tooltipV2ContentProps } from './content'\nimport { tooltipV2RootProps } from './root'\nimport { tooltipV2Props } from './tooltip'\nimport { tooltipV2TriggerProps } from './trigger'\nimport TooltipV2Root from './root.vue'\nimport TooltipV2Arrow from './arrow.vue'\nimport TooltipV2Content from './content.vue'\nimport TooltipV2Trigger from './trigger.vue'\n\ndefineOptions({\n name: 'ElTooltipV2',\n})\n\nconst props = defineProps(tooltipV2Props)\n\nconst refedProps = toRefs(props)\n\nconst arrowProps = reactive(pick(refedProps, Object.keys(tooltipV2ArrowProps)))\n\nconst contentProps = reactive(\n pick(refedProps, Object.keys(tooltipV2ContentProps))\n)\n\nconst rootProps = reactive(pick(refedProps, Object.keys(tooltipV2RootProps)))\n\nconst triggerProps = reactive(\n pick(refedProps, Object.keys(tooltipV2TriggerProps))\n)\n</script>\n"],"names":["toRefs","reactive","pick","tooltipV2ArrowProps","tooltipV2ContentProps","tooltipV2RootProps","tooltipV2TriggerProps"],"mappings":";;;;;;;;;;;;;;;;;uCAsDc,CAAA;AAAA,EACZ,IAAM,EAAA,aAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAIA,IAAM,MAAA,UAAA,GAAaA,WAAO,KAAK,CAAA,CAAA;AAE/B,IAAM,MAAA,UAAA,GAAaC,aAASC,kBAAK,CAAA,UAAA,EAAY,OAAO,IAAK,CAAAC,yBAAmB,CAAC,CAAC,CAAA,CAAA;AAE9E,IAAM,MAAA,YAAA,GAAeF,aACnBC,kBAAK,CAAA,UAAA,EAAY,OAAO,IAAK,CAAAE,6BAAqB,CAAC,CACrD,CAAA,CAAA;AAEA,IAAM,MAAA,SAAA,GAAYH,aAASC,kBAAK,CAAA,UAAA,EAAY,OAAO,IAAK,CAAAG,uBAAkB,CAAC,CAAC,CAAA,CAAA;AAE5E,IAAM,MAAA,YAAA,GAAeJ,aACnBC,kBAAK,CAAA,UAAA,EAAY,OAAO,IAAK,CAAAI,6BAAqB,CAAC,CACrD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -2,83 +2,30 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
var lodashUnified = require('lodash-unified');
|
|
7
|
-
var arrow = require('./arrow.js');
|
|
8
|
-
var content = require('./content.js');
|
|
5
|
+
require('../../../utils/index.js');
|
|
9
6
|
var root = require('./root.js');
|
|
10
|
-
var tooltip = require('./tooltip.js');
|
|
11
7
|
var trigger = require('./trigger.js');
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var trigger$1 = require('./trigger2.js');
|
|
16
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
8
|
+
var arrow = require('./arrow.js');
|
|
9
|
+
var content = require('./content.js');
|
|
10
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
17
11
|
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
...
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
default: vue.withCtx(({ open }) => [
|
|
34
|
-
vue.createVNode(trigger$1["default"], vue.mergeProps(triggerProps, { nowrap: "" }), {
|
|
35
|
-
default: vue.withCtx(() => [
|
|
36
|
-
vue.renderSlot(_ctx.$slots, "trigger")
|
|
37
|
-
]),
|
|
38
|
-
_: 3
|
|
39
|
-
}, 16),
|
|
40
|
-
(vue.openBlock(), vue.createBlock(vue.Teleport, {
|
|
41
|
-
to: _ctx.to,
|
|
42
|
-
disabled: !_ctx.teleported
|
|
43
|
-
}, [
|
|
44
|
-
_ctx.fullTransition ? (vue.openBlock(), vue.createBlock(vue.Transition, vue.normalizeProps(vue.mergeProps({ key: 0 }, _ctx.transitionProps)), {
|
|
45
|
-
default: vue.withCtx(() => [
|
|
46
|
-
_ctx.alwaysOn || open ? (vue.openBlock(), vue.createBlock(content$1["default"], vue.normalizeProps(vue.mergeProps({ key: 0 }, contentProps)), {
|
|
47
|
-
arrow: vue.withCtx(({ style, side }) => [
|
|
48
|
-
_ctx.showArrow ? (vue.openBlock(), vue.createBlock(arrow$1["default"], vue.mergeProps({ key: 0 }, arrowProps, {
|
|
49
|
-
style,
|
|
50
|
-
side
|
|
51
|
-
}), null, 16, ["style", "side"])) : vue.createCommentVNode("v-if", true)
|
|
52
|
-
]),
|
|
53
|
-
default: vue.withCtx(() => [
|
|
54
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
55
|
-
]),
|
|
56
|
-
_: 3
|
|
57
|
-
}, 16)) : vue.createCommentVNode("v-if", true)
|
|
58
|
-
]),
|
|
59
|
-
_: 2
|
|
60
|
-
}, 1040)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
61
|
-
_ctx.alwaysOn || open ? (vue.openBlock(), vue.createBlock(content$1["default"], vue.normalizeProps(vue.mergeProps({ key: 0 }, contentProps)), {
|
|
62
|
-
arrow: vue.withCtx(({ style, side }) => [
|
|
63
|
-
_ctx.showArrow ? (vue.openBlock(), vue.createBlock(arrow$1["default"], vue.mergeProps({ key: 0 }, arrowProps, {
|
|
64
|
-
style,
|
|
65
|
-
side
|
|
66
|
-
}), null, 16, ["style", "side"])) : vue.createCommentVNode("v-if", true)
|
|
67
|
-
]),
|
|
68
|
-
default: vue.withCtx(() => [
|
|
69
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
70
|
-
]),
|
|
71
|
-
_: 3
|
|
72
|
-
}, 16)) : vue.createCommentVNode("v-if", true)
|
|
73
|
-
], 64))
|
|
74
|
-
], 8, ["to", "disabled"]))
|
|
75
|
-
]),
|
|
76
|
-
_: 3
|
|
77
|
-
}, 16);
|
|
78
|
-
};
|
|
12
|
+
const tooltipV2Props = runtime.buildProps({
|
|
13
|
+
...root.tooltipV2RootProps,
|
|
14
|
+
...arrow.tooltipV2ArrowProps,
|
|
15
|
+
...trigger.tooltipV2TriggerProps,
|
|
16
|
+
...content.tooltipV2ContentProps,
|
|
17
|
+
alwaysOn: Boolean,
|
|
18
|
+
fullTransition: Boolean,
|
|
19
|
+
transitionProps: {
|
|
20
|
+
type: runtime.definePropType(Object),
|
|
21
|
+
default: null
|
|
22
|
+
},
|
|
23
|
+
teleported: Boolean,
|
|
24
|
+
to: {
|
|
25
|
+
type: runtime.definePropType(String),
|
|
26
|
+
default: "body"
|
|
79
27
|
}
|
|
80
28
|
});
|
|
81
|
-
var TooltipV2 = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "tooltip.vue"]]);
|
|
82
29
|
|
|
83
|
-
exports
|
|
30
|
+
exports.tooltipV2Props = tooltipV2Props;
|
|
84
31
|
//# sourceMappingURL=tooltip2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip2.js","sources":["../../../../../../packages/components/tooltip-v2/src/tooltip.
|
|
1
|
+
{"version":3,"file":"tooltip2.js","sources":["../../../../../../packages/components/tooltip-v2/src/tooltip.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport { tooltipV2RootProps } from './root'\nimport { tooltipV2TriggerProps } from './trigger'\nimport { tooltipV2ArrowProps } from './arrow'\nimport { tooltipV2ContentProps } from './content'\n\nimport type { ExtractPropTypes, TeleportProps, TransitionProps } from 'vue'\n\nexport const tooltipV2Props = buildProps({\n ...tooltipV2RootProps,\n ...tooltipV2ArrowProps,\n ...tooltipV2TriggerProps,\n ...tooltipV2ContentProps,\n alwaysOn: Boolean,\n fullTransition: Boolean,\n transitionProps: {\n type: definePropType<TransitionProps | null>(Object),\n default: null,\n },\n teleported: Boolean,\n to: {\n type: definePropType<TeleportProps['to']>(String),\n default: 'body',\n },\n} as const)\n\nexport type TooltipV2Props = ExtractPropTypes<typeof tooltipV2Props>\n"],"names":["buildProps","tooltipV2RootProps","tooltipV2ArrowProps","tooltipV2TriggerProps","tooltipV2ContentProps","definePropType"],"mappings":";;;;;;;;;;;AAKY,MAAC,cAAc,GAAGA,kBAAU,CAAC;AACzC,EAAE,GAAGC,uBAAkB;AACvB,EAAE,GAAGC,yBAAmB;AACxB,EAAE,GAAGC,6BAAqB;AAC1B,EAAE,GAAGC,6BAAqB;AAC1B,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,cAAc,EAAE,OAAO;AACzB,EAAE,eAAe,EAAE;AACnB,IAAI,IAAI,EAAEC,sBAAc,CAAC,MAAM,CAAC;AAChC,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,UAAU,EAAE,OAAO;AACrB,EAAE,EAAE,EAAE;AACN,IAAI,IAAI,EAAEA,sBAAc,CAAC,MAAM,CAAC;AAChC,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,CAAC;;;;"}
|