@element-plus/nightly 0.0.20221013 → 0.0.20221014
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.full.js +7 -35
- package/dist/index.full.min.js +12 -12
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +13 -13
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +8 -36
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/az.js +1 -1
- package/dist/locale/az.min.js +1 -1
- package/dist/locale/az.min.mjs +1 -1
- package/dist/locale/az.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/alert/index.mjs +2 -2
- package/es/components/alert/src/alert.mjs +96 -36
- package/es/components/alert/src/alert.mjs.map +1 -1
- package/es/components/alert/src/alert2.mjs +36 -96
- package/es/components/alert/src/alert2.mjs.map +1 -1
- package/es/components/autocomplete/index.d.ts +49 -33
- package/es/components/autocomplete/src/autocomplete.vue.d.ts +49 -33
- package/es/components/avatar/index.mjs +2 -2
- package/es/components/avatar/src/avatar.mjs +67 -32
- package/es/components/avatar/src/avatar.mjs.map +1 -1
- package/es/components/avatar/src/avatar2.mjs +32 -67
- package/es/components/avatar/src/avatar2.mjs.map +1 -1
- package/es/components/badge/index.mjs +2 -2
- package/es/components/badge/src/badge.mjs +55 -17
- package/es/components/badge/src/badge.mjs.map +1 -1
- package/es/components/badge/src/badge2.mjs +17 -55
- package/es/components/badge/src/badge2.mjs.map +1 -1
- package/es/components/card/index.mjs +2 -2
- package/es/components/card/src/card.mjs +35 -16
- package/es/components/card/src/card.mjs.map +1 -1
- package/es/components/card/src/card2.mjs +16 -35
- package/es/components/card/src/card2.mjs.map +1 -1
- package/es/components/cascader/index.d.ts +62 -44
- package/es/components/cascader/src/index.vue.d.ts +31 -22
- package/es/components/color-picker/index.d.ts +18 -11
- package/es/components/color-picker/src/color-picker.vue.d.ts +18 -11
- package/es/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +18 -11
- package/es/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +18 -11
- package/es/components/date-picker/src/panel-utils.d.ts +36 -22
- package/es/components/descriptions/src/description2.mjs +1 -1
- package/es/components/descriptions/src/descriptions-row.mjs +64 -7
- package/es/components/descriptions/src/descriptions-row.mjs.map +1 -1
- package/es/components/descriptions/src/descriptions-row2.mjs +7 -64
- package/es/components/descriptions/src/descriptions-row2.mjs.map +1 -1
- package/es/components/index.mjs +10 -10
- package/es/components/input/index.d.ts +18 -11
- package/es/components/input/src/input.d.ts +6 -1
- package/es/components/input/src/input.mjs +1 -2
- package/es/components/input/src/input.mjs.map +1 -1
- package/es/components/input/src/input.vue.d.ts +18 -11
- package/es/components/input/src/input2.mjs +5 -32
- package/es/components/input/src/input2.mjs.map +1 -1
- package/es/components/input-number/index.d.ts +49 -33
- package/es/components/input-number/index.mjs +2 -2
- package/es/components/input-number/src/input-number.mjs +298 -57
- package/es/components/input-number/src/input-number.mjs.map +1 -1
- package/es/components/input-number/src/input-number.vue.d.ts +49 -33
- package/es/components/input-number/src/input-number2.mjs +57 -298
- package/es/components/input-number/src/input-number2.mjs.map +1 -1
- package/es/components/menu/index.mjs +2 -2
- package/es/components/menu/src/menu-item.mjs +100 -14
- package/es/components/menu/src/menu-item.mjs.map +1 -1
- package/es/components/menu/src/menu-item2.mjs +14 -100
- package/es/components/menu/src/menu-item2.mjs.map +1 -1
- package/es/components/page-header/index.mjs +2 -2
- package/es/components/page-header/src/page-header.mjs +102 -17
- package/es/components/page-header/src/page-header.mjs.map +1 -1
- package/es/components/page-header/src/page-header2.mjs +17 -102
- package/es/components/page-header/src/page-header2.mjs.map +1 -1
- package/es/components/pagination/src/components/jumper.vue.d.ts +18 -11
- package/es/components/pagination/src/components/prev.mjs +34 -18
- package/es/components/pagination/src/components/prev.mjs.map +1 -1
- package/es/components/pagination/src/components/prev2.mjs +18 -34
- package/es/components/pagination/src/components/prev2.mjs.map +1 -1
- package/es/components/pagination/src/pagination.mjs +1 -1
- package/es/components/radio/index.mjs +2 -2
- package/es/components/radio/src/radio-button.mjs +64 -9
- package/es/components/radio/src/radio-button.mjs.map +1 -1
- package/es/components/radio/src/radio-button2.mjs +9 -64
- package/es/components/radio/src/radio-button2.mjs.map +1 -1
- package/es/components/slider/index.d.ts +49 -33
- package/es/components/slider/src/slider.vue.d.ts +49 -33
- package/es/components/steps/index.mjs +2 -2
- package/es/components/steps/src/item.mjs +191 -20
- package/es/components/steps/src/item.mjs.map +1 -1
- package/es/components/steps/src/item2.mjs +20 -191
- package/es/components/steps/src/item2.mjs.map +1 -1
- package/es/components/tabs/index.mjs +2 -2
- package/es/components/tabs/src/tab-pane.mjs +73 -13
- package/es/components/tabs/src/tab-pane.mjs.map +1 -1
- package/es/components/tabs/src/tab-pane2.mjs +13 -73
- package/es/components/tabs/src/tab-pane2.mjs.map +1 -1
- package/es/components/time-picker/src/common/picker.vue.d.ts +18 -11
- package/es/components/transfer/index.d.ts +90 -55
- package/es/components/transfer/src/composables/use-check.mjs +1 -1
- package/es/components/transfer/src/transfer-panel.mjs +131 -19
- package/es/components/transfer/src/transfer-panel.mjs.map +1 -1
- package/es/components/transfer/src/transfer-panel.vue.d.ts +18 -11
- package/es/components/transfer/src/transfer-panel2.mjs +19 -131
- package/es/components/transfer/src/transfer-panel2.mjs.map +1 -1
- package/es/components/transfer/src/transfer.vue.d.ts +90 -55
- package/es/components/transfer/src/transfer2.mjs +1 -1
- package/es/index.mjs +10 -10
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/alert/index.js +2 -2
- package/lib/components/alert/src/alert.js +95 -37
- package/lib/components/alert/src/alert.js.map +1 -1
- package/lib/components/alert/src/alert2.js +37 -95
- package/lib/components/alert/src/alert2.js.map +1 -1
- package/lib/components/autocomplete/index.d.ts +49 -33
- package/lib/components/autocomplete/src/autocomplete.vue.d.ts +49 -33
- package/lib/components/avatar/index.js +2 -2
- package/lib/components/avatar/src/avatar.js +67 -33
- package/lib/components/avatar/src/avatar.js.map +1 -1
- package/lib/components/avatar/src/avatar2.js +33 -67
- package/lib/components/avatar/src/avatar2.js.map +1 -1
- package/lib/components/badge/index.js +2 -2
- package/lib/components/badge/src/badge.js +55 -17
- package/lib/components/badge/src/badge.js.map +1 -1
- package/lib/components/badge/src/badge2.js +17 -55
- package/lib/components/badge/src/badge2.js.map +1 -1
- package/lib/components/card/index.js +2 -2
- package/lib/components/card/src/card.js +35 -16
- package/lib/components/card/src/card.js.map +1 -1
- package/lib/components/card/src/card2.js +16 -35
- package/lib/components/card/src/card2.js.map +1 -1
- package/lib/components/cascader/index.d.ts +62 -44
- package/lib/components/cascader/src/index.vue.d.ts +31 -22
- package/lib/components/color-picker/index.d.ts +18 -11
- package/lib/components/color-picker/src/color-picker.vue.d.ts +18 -11
- package/lib/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +18 -11
- package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +18 -11
- package/lib/components/date-picker/src/panel-utils.d.ts +36 -22
- package/lib/components/descriptions/src/description2.js +1 -1
- package/lib/components/descriptions/src/descriptions-row.js +64 -7
- package/lib/components/descriptions/src/descriptions-row.js.map +1 -1
- package/lib/components/descriptions/src/descriptions-row2.js +7 -64
- package/lib/components/descriptions/src/descriptions-row2.js.map +1 -1
- package/lib/components/index.js +10 -10
- package/lib/components/input/index.d.ts +18 -11
- package/lib/components/input/src/input.d.ts +6 -1
- package/lib/components/input/src/input.js +1 -2
- package/lib/components/input/src/input.js.map +1 -1
- package/lib/components/input/src/input.vue.d.ts +18 -11
- package/lib/components/input/src/input2.js +4 -31
- package/lib/components/input/src/input2.js.map +1 -1
- package/lib/components/input-number/index.d.ts +49 -33
- package/lib/components/input-number/index.js +2 -2
- package/lib/components/input-number/src/input-number.js +297 -57
- package/lib/components/input-number/src/input-number.js.map +1 -1
- package/lib/components/input-number/src/input-number.vue.d.ts +49 -33
- package/lib/components/input-number/src/input-number2.js +57 -297
- package/lib/components/input-number/src/input-number2.js.map +1 -1
- package/lib/components/menu/index.js +2 -2
- package/lib/components/menu/src/menu-item.js +100 -15
- package/lib/components/menu/src/menu-item.js.map +1 -1
- package/lib/components/menu/src/menu-item2.js +15 -100
- package/lib/components/menu/src/menu-item2.js.map +1 -1
- package/lib/components/page-header/index.js +2 -2
- package/lib/components/page-header/src/page-header.js +102 -18
- package/lib/components/page-header/src/page-header.js.map +1 -1
- package/lib/components/page-header/src/page-header2.js +18 -102
- package/lib/components/page-header/src/page-header2.js.map +1 -1
- package/lib/components/pagination/src/components/jumper.vue.d.ts +18 -11
- package/lib/components/pagination/src/components/prev.js +34 -19
- package/lib/components/pagination/src/components/prev.js.map +1 -1
- package/lib/components/pagination/src/components/prev2.js +19 -34
- package/lib/components/pagination/src/components/prev2.js.map +1 -1
- package/lib/components/pagination/src/pagination.js +1 -1
- package/lib/components/radio/index.js +2 -2
- package/lib/components/radio/src/radio-button.js +64 -9
- package/lib/components/radio/src/radio-button.js.map +1 -1
- package/lib/components/radio/src/radio-button2.js +9 -64
- package/lib/components/radio/src/radio-button2.js.map +1 -1
- package/lib/components/slider/index.d.ts +49 -33
- package/lib/components/slider/src/slider.vue.d.ts +49 -33
- package/lib/components/steps/index.js +2 -2
- package/lib/components/steps/src/item.js +191 -20
- package/lib/components/steps/src/item.js.map +1 -1
- package/lib/components/steps/src/item2.js +20 -191
- package/lib/components/steps/src/item2.js.map +1 -1
- package/lib/components/tabs/index.js +2 -2
- package/lib/components/tabs/src/tab-pane.js +73 -13
- package/lib/components/tabs/src/tab-pane.js.map +1 -1
- package/lib/components/tabs/src/tab-pane2.js +13 -73
- package/lib/components/tabs/src/tab-pane2.js.map +1 -1
- package/lib/components/time-picker/src/common/picker.vue.d.ts +18 -11
- package/lib/components/transfer/index.d.ts +90 -55
- package/lib/components/transfer/src/composables/use-check.js +1 -1
- package/lib/components/transfer/src/transfer-panel.js +131 -21
- package/lib/components/transfer/src/transfer-panel.js.map +1 -1
- package/lib/components/transfer/src/transfer-panel.vue.d.ts +18 -11
- package/lib/components/transfer/src/transfer-panel2.js +21 -131
- package/lib/components/transfer/src/transfer-panel2.js.map +1 -1
- package/lib/components/transfer/src/transfer.vue.d.ts +90 -55
- package/lib/components/transfer/src/transfer2.js +1 -1
- package/lib/index.js +10 -10
- 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/web-types.json +1 -1
|
@@ -1,196 +1,25 @@
|
|
|
1
|
-
import
|
|
2
|
-
import '../../../
|
|
3
|
-
import {
|
|
4
|
-
import { Check, Close } from '@element-plus/icons-vue';
|
|
5
|
-
import { stepProps } from './item.mjs';
|
|
6
|
-
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
7
|
-
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
1
|
+
import '../../../utils/index.mjs';
|
|
2
|
+
import { buildProps } from '../../../utils/vue/props/runtime.mjs';
|
|
3
|
+
import { iconPropType } from '../../../utils/vue/icon.mjs';
|
|
8
4
|
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
() => parent.props.active,
|
|
26
|
-
() => parent.props.processStatus,
|
|
27
|
-
() => parent.props.finishStatus
|
|
28
|
-
], ([active]) => {
|
|
29
|
-
updateStatus(active);
|
|
30
|
-
}, { immediate: true });
|
|
31
|
-
});
|
|
32
|
-
onBeforeUnmount(() => {
|
|
33
|
-
parent.steps.value = parent.steps.value.filter((instance) => instance.uid !== (currentInstance == null ? void 0 : currentInstance.uid));
|
|
34
|
-
});
|
|
35
|
-
const currentStatus = computed(() => {
|
|
36
|
-
return props.status || internalStatus.value;
|
|
37
|
-
});
|
|
38
|
-
const prevStatus = computed(() => {
|
|
39
|
-
const prevStep = parent.steps.value[index.value - 1];
|
|
40
|
-
return prevStep ? prevStep.currentStatus : "wait";
|
|
41
|
-
});
|
|
42
|
-
const isCenter = computed(() => {
|
|
43
|
-
return parent.props.alignCenter;
|
|
44
|
-
});
|
|
45
|
-
const isVertical = computed(() => {
|
|
46
|
-
return parent.props.direction === "vertical";
|
|
47
|
-
});
|
|
48
|
-
const isSimple = computed(() => {
|
|
49
|
-
return parent.props.simple;
|
|
50
|
-
});
|
|
51
|
-
const stepsCount = computed(() => {
|
|
52
|
-
return parent.steps.value.length;
|
|
53
|
-
});
|
|
54
|
-
const isLast = computed(() => {
|
|
55
|
-
var _a;
|
|
56
|
-
return ((_a = parent.steps.value[stepsCount.value - 1]) == null ? void 0 : _a.uid) === (currentInstance == null ? void 0 : currentInstance.uid);
|
|
57
|
-
});
|
|
58
|
-
const space = computed(() => {
|
|
59
|
-
return isSimple.value ? "" : parent.props.space;
|
|
60
|
-
});
|
|
61
|
-
const style = computed(() => {
|
|
62
|
-
const style2 = {
|
|
63
|
-
flexBasis: typeof space.value === "number" ? `${space.value}px` : space.value ? space.value : `${100 / (stepsCount.value - (isCenter.value ? 0 : 1))}%`
|
|
64
|
-
};
|
|
65
|
-
if (isVertical.value)
|
|
66
|
-
return style2;
|
|
67
|
-
if (isLast.value) {
|
|
68
|
-
style2.maxWidth = `${100 / stepsCount.value}%`;
|
|
69
|
-
}
|
|
70
|
-
return style2;
|
|
71
|
-
});
|
|
72
|
-
const setIndex = (val) => {
|
|
73
|
-
index.value = val;
|
|
74
|
-
};
|
|
75
|
-
const calcProgress = (status) => {
|
|
76
|
-
let step = 100;
|
|
77
|
-
const style2 = {};
|
|
78
|
-
style2.transitionDelay = `${150 * index.value}ms`;
|
|
79
|
-
if (status === parent.props.processStatus) {
|
|
80
|
-
step = 0;
|
|
81
|
-
} else if (status === "wait") {
|
|
82
|
-
step = 0;
|
|
83
|
-
style2.transitionDelay = `${-150 * index.value}ms`;
|
|
84
|
-
}
|
|
85
|
-
style2.borderWidth = step && !isSimple.value ? "1px" : 0;
|
|
86
|
-
style2[parent.props.direction === "vertical" ? "height" : "width"] = `${step}%`;
|
|
87
|
-
lineStyle.value = style2;
|
|
88
|
-
};
|
|
89
|
-
const updateStatus = (activeIndex) => {
|
|
90
|
-
if (activeIndex > index.value) {
|
|
91
|
-
internalStatus.value = parent.props.finishStatus;
|
|
92
|
-
} else if (activeIndex === index.value && prevStatus.value !== "error") {
|
|
93
|
-
internalStatus.value = parent.props.processStatus;
|
|
94
|
-
} else {
|
|
95
|
-
internalStatus.value = "wait";
|
|
96
|
-
}
|
|
97
|
-
const prevChild = parent.steps.value[index.value - 1];
|
|
98
|
-
if (prevChild)
|
|
99
|
-
prevChild.calcProgress(internalStatus.value);
|
|
100
|
-
};
|
|
101
|
-
const stepItemState = reactive({
|
|
102
|
-
uid: computed(() => currentInstance == null ? void 0 : currentInstance.uid),
|
|
103
|
-
currentStatus,
|
|
104
|
-
setIndex,
|
|
105
|
-
calcProgress
|
|
106
|
-
});
|
|
107
|
-
parent.steps.value = [...parent.steps.value, stepItemState];
|
|
108
|
-
return (_ctx, _cache) => {
|
|
109
|
-
return openBlock(), createElementBlock("div", {
|
|
110
|
-
style: normalizeStyle(unref(style)),
|
|
111
|
-
class: normalizeClass([
|
|
112
|
-
unref(ns).b(),
|
|
113
|
-
unref(ns).is(unref(isSimple) ? "simple" : unref(parent).props.direction),
|
|
114
|
-
unref(ns).is("flex", unref(isLast) && !unref(space) && !unref(isCenter)),
|
|
115
|
-
unref(ns).is("center", unref(isCenter) && !unref(isVertical) && !unref(isSimple))
|
|
116
|
-
])
|
|
117
|
-
}, [
|
|
118
|
-
createCommentVNode(" icon & line "),
|
|
119
|
-
createElementVNode("div", {
|
|
120
|
-
class: normalizeClass([unref(ns).e("head"), unref(ns).is(unref(currentStatus))])
|
|
121
|
-
}, [
|
|
122
|
-
!unref(isSimple) ? (openBlock(), createElementBlock("div", {
|
|
123
|
-
key: 0,
|
|
124
|
-
class: normalizeClass(unref(ns).e("line"))
|
|
125
|
-
}, [
|
|
126
|
-
createElementVNode("i", {
|
|
127
|
-
class: normalizeClass(unref(ns).e("line-inner")),
|
|
128
|
-
style: normalizeStyle(lineStyle.value)
|
|
129
|
-
}, null, 6)
|
|
130
|
-
], 2)) : createCommentVNode("v-if", true),
|
|
131
|
-
createElementVNode("div", {
|
|
132
|
-
class: normalizeClass([unref(ns).e("icon"), unref(ns).is(_ctx.icon || _ctx.$slots.icon ? "icon" : "text")])
|
|
133
|
-
}, [
|
|
134
|
-
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
135
|
-
_ctx.icon ? (openBlock(), createBlock(unref(ElIcon), {
|
|
136
|
-
key: 0,
|
|
137
|
-
class: normalizeClass(unref(ns).e("icon-inner"))
|
|
138
|
-
}, {
|
|
139
|
-
default: withCtx(() => [
|
|
140
|
-
(openBlock(), createBlock(resolveDynamicComponent(_ctx.icon)))
|
|
141
|
-
]),
|
|
142
|
-
_: 1
|
|
143
|
-
}, 8, ["class"])) : unref(currentStatus) === "success" ? (openBlock(), createBlock(unref(ElIcon), {
|
|
144
|
-
key: 1,
|
|
145
|
-
class: normalizeClass([unref(ns).e("icon-inner"), unref(ns).is("status")])
|
|
146
|
-
}, {
|
|
147
|
-
default: withCtx(() => [
|
|
148
|
-
createVNode(unref(Check))
|
|
149
|
-
]),
|
|
150
|
-
_: 1
|
|
151
|
-
}, 8, ["class"])) : unref(currentStatus) === "error" ? (openBlock(), createBlock(unref(ElIcon), {
|
|
152
|
-
key: 2,
|
|
153
|
-
class: normalizeClass([unref(ns).e("icon-inner"), unref(ns).is("status")])
|
|
154
|
-
}, {
|
|
155
|
-
default: withCtx(() => [
|
|
156
|
-
createVNode(unref(Close))
|
|
157
|
-
]),
|
|
158
|
-
_: 1
|
|
159
|
-
}, 8, ["class"])) : !unref(isSimple) ? (openBlock(), createElementBlock("div", {
|
|
160
|
-
key: 3,
|
|
161
|
-
class: normalizeClass(unref(ns).e("icon-inner"))
|
|
162
|
-
}, toDisplayString(index.value + 1), 3)) : createCommentVNode("v-if", true)
|
|
163
|
-
])
|
|
164
|
-
], 2)
|
|
165
|
-
], 2),
|
|
166
|
-
createCommentVNode(" title & description "),
|
|
167
|
-
createElementVNode("div", {
|
|
168
|
-
class: normalizeClass(unref(ns).e("main"))
|
|
169
|
-
}, [
|
|
170
|
-
createElementVNode("div", {
|
|
171
|
-
class: normalizeClass([unref(ns).e("title"), unref(ns).is(unref(currentStatus))])
|
|
172
|
-
}, [
|
|
173
|
-
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
174
|
-
createTextVNode(toDisplayString(_ctx.title), 1)
|
|
175
|
-
])
|
|
176
|
-
], 2),
|
|
177
|
-
unref(isSimple) ? (openBlock(), createElementBlock("div", {
|
|
178
|
-
key: 0,
|
|
179
|
-
class: normalizeClass(unref(ns).e("arrow"))
|
|
180
|
-
}, null, 2)) : (openBlock(), createElementBlock("div", {
|
|
181
|
-
key: 1,
|
|
182
|
-
class: normalizeClass([unref(ns).e("description"), unref(ns).is(unref(currentStatus))])
|
|
183
|
-
}, [
|
|
184
|
-
renderSlot(_ctx.$slots, "description", {}, () => [
|
|
185
|
-
createTextVNode(toDisplayString(_ctx.description), 1)
|
|
186
|
-
])
|
|
187
|
-
], 2))
|
|
188
|
-
], 2)
|
|
189
|
-
], 6);
|
|
190
|
-
};
|
|
5
|
+
const stepProps = buildProps({
|
|
6
|
+
title: {
|
|
7
|
+
type: String,
|
|
8
|
+
default: ""
|
|
9
|
+
},
|
|
10
|
+
icon: {
|
|
11
|
+
type: iconPropType
|
|
12
|
+
},
|
|
13
|
+
description: {
|
|
14
|
+
type: String,
|
|
15
|
+
default: ""
|
|
16
|
+
},
|
|
17
|
+
status: {
|
|
18
|
+
type: String,
|
|
19
|
+
values: ["", "wait", "process", "finish", "error", "success"],
|
|
20
|
+
default: ""
|
|
191
21
|
}
|
|
192
22
|
});
|
|
193
|
-
var Step = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/steps/src/item.vue"]]);
|
|
194
23
|
|
|
195
|
-
export {
|
|
24
|
+
export { stepProps };
|
|
196
25
|
//# sourceMappingURL=item2.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item2.mjs","sources":["../../../../../../packages/components/steps/src/item.
|
|
1
|
+
{"version":3,"file":"item2.mjs","sources":["../../../../../../packages/components/steps/src/item.ts"],"sourcesContent":["import { buildProps, iconPropType } from '@element-plus/utils'\nimport type Step from './item.vue'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const stepProps = buildProps({\n title: {\n type: String,\n default: '',\n },\n icon: {\n type: iconPropType,\n },\n description: {\n type: String,\n default: '',\n },\n status: {\n type: String,\n values: ['', 'wait', 'process', 'finish', 'error', 'success'],\n default: '',\n },\n} as const)\n\nexport type StepProps = ExtractPropTypes<typeof stepProps>\n\nexport type StepInstance = InstanceType<typeof Step>\n"],"names":[],"mappings":";;;;AACY,MAAC,SAAS,GAAG,UAAU,CAAC;AACpC,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,YAAY;AACtB,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC;AACjE,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,CAAC;;;;"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import '../../utils/index.mjs';
|
|
2
2
|
import Tabs from './src/tabs.mjs';
|
|
3
3
|
export { tabsEmits, tabsProps } from './src/tabs.mjs';
|
|
4
|
-
import TabPane from './src/tab-
|
|
4
|
+
import TabPane from './src/tab-pane.mjs';
|
|
5
5
|
export { tabBarProps } from './src/tab-bar.mjs';
|
|
6
6
|
export { tabNavEmits, tabNavProps } from './src/tab-nav.mjs';
|
|
7
|
-
export { tabPaneProps } from './src/tab-
|
|
7
|
+
export { tabPaneProps } from './src/tab-pane2.mjs';
|
|
8
8
|
import { withInstall, withNoopInstall } from '../../utils/vue/install.mjs';
|
|
9
9
|
|
|
10
10
|
const ElTabs = withInstall(Tabs, {
|
|
@@ -1,18 +1,78 @@
|
|
|
1
|
+
import { defineComponent, getCurrentInstance, useSlots, inject, ref, computed, watch, reactive, onMounted, onUnmounted, unref, withDirectives, openBlock, createElementBlock, normalizeClass, renderSlot, vShow, createCommentVNode } from 'vue';
|
|
2
|
+
import { eagerComputed } from '@vueuse/core';
|
|
3
|
+
import '../../../tokens/index.mjs';
|
|
1
4
|
import '../../../utils/index.mjs';
|
|
2
|
-
import
|
|
5
|
+
import '../../../hooks/index.mjs';
|
|
6
|
+
import { tabPaneProps } from './tab-pane2.mjs';
|
|
7
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
8
|
+
import { tabsRootContextKey } from '../../../tokens/tabs.mjs';
|
|
9
|
+
import { throwError } from '../../../utils/error.mjs';
|
|
10
|
+
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
3
11
|
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
},
|
|
9
|
-
name: {
|
|
10
|
-
type: [String, Number]
|
|
11
|
-
},
|
|
12
|
-
closable: Boolean,
|
|
13
|
-
disabled: Boolean,
|
|
14
|
-
lazy: Boolean
|
|
12
|
+
const _hoisted_1 = ["id", "aria-hidden", "aria-labelledby"];
|
|
13
|
+
const COMPONENT_NAME = "ElTabPane";
|
|
14
|
+
const __default__ = defineComponent({
|
|
15
|
+
name: COMPONENT_NAME
|
|
15
16
|
});
|
|
17
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
18
|
+
...__default__,
|
|
19
|
+
props: tabPaneProps,
|
|
20
|
+
setup(__props) {
|
|
21
|
+
const props = __props;
|
|
22
|
+
const instance = getCurrentInstance();
|
|
23
|
+
const slots = useSlots();
|
|
24
|
+
const tabsRoot = inject(tabsRootContextKey);
|
|
25
|
+
if (!tabsRoot)
|
|
26
|
+
throwError(COMPONENT_NAME, "usage: <el-tabs><el-tab-pane /></el-tabs/>");
|
|
27
|
+
const ns = useNamespace("tab-pane");
|
|
28
|
+
const index = ref();
|
|
29
|
+
const isClosable = computed(() => props.closable || tabsRoot.props.closable);
|
|
30
|
+
const active = eagerComputed(() => {
|
|
31
|
+
var _a;
|
|
32
|
+
return tabsRoot.currentName.value === ((_a = props.name) != null ? _a : index.value);
|
|
33
|
+
});
|
|
34
|
+
const loaded = ref(active.value);
|
|
35
|
+
const paneName = computed(() => {
|
|
36
|
+
var _a;
|
|
37
|
+
return (_a = props.name) != null ? _a : index.value;
|
|
38
|
+
});
|
|
39
|
+
const shouldBeRender = eagerComputed(() => !props.lazy || loaded.value || active.value);
|
|
40
|
+
watch(active, (val) => {
|
|
41
|
+
if (val)
|
|
42
|
+
loaded.value = true;
|
|
43
|
+
});
|
|
44
|
+
const pane = reactive({
|
|
45
|
+
uid: instance.uid,
|
|
46
|
+
slots,
|
|
47
|
+
props,
|
|
48
|
+
paneName,
|
|
49
|
+
active,
|
|
50
|
+
index,
|
|
51
|
+
isClosable
|
|
52
|
+
});
|
|
53
|
+
onMounted(() => {
|
|
54
|
+
tabsRoot.registerPane(pane);
|
|
55
|
+
});
|
|
56
|
+
onUnmounted(() => {
|
|
57
|
+
tabsRoot.unregisterPane(pane.uid);
|
|
58
|
+
});
|
|
59
|
+
return (_ctx, _cache) => {
|
|
60
|
+
return unref(shouldBeRender) ? withDirectives((openBlock(), createElementBlock("div", {
|
|
61
|
+
key: 0,
|
|
62
|
+
id: `pane-${unref(paneName)}`,
|
|
63
|
+
class: normalizeClass(unref(ns).b()),
|
|
64
|
+
role: "tabpanel",
|
|
65
|
+
"aria-hidden": !unref(active),
|
|
66
|
+
"aria-labelledby": `tab-${unref(paneName)}`
|
|
67
|
+
}, [
|
|
68
|
+
renderSlot(_ctx.$slots, "default")
|
|
69
|
+
], 10, _hoisted_1)), [
|
|
70
|
+
[vShow, unref(active)]
|
|
71
|
+
]) : createCommentVNode("v-if", true);
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
var TabPane = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);
|
|
16
76
|
|
|
17
|
-
export {
|
|
77
|
+
export { TabPane as default };
|
|
18
78
|
//# sourceMappingURL=tab-pane.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tab-pane.mjs","sources":["../../../../../../packages/components/tabs/src/tab-pane.
|
|
1
|
+
{"version":3,"file":"tab-pane.mjs","sources":["../../../../../../packages/components/tabs/src/tab-pane.vue"],"sourcesContent":["<template>\n <div\n v-if=\"shouldBeRender\"\n v-show=\"active\"\n :id=\"`pane-${paneName}`\"\n :class=\"ns.b()\"\n role=\"tabpanel\"\n :aria-hidden=\"!active\"\n :aria-labelledby=\"`tab-${paneName}`\"\n >\n <slot />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport {\n computed,\n getCurrentInstance,\n inject,\n onMounted,\n onUnmounted,\n reactive,\n ref,\n useSlots,\n watch,\n} from 'vue'\nimport { eagerComputed } from '@vueuse/core'\nimport { tabsRootContextKey } from '@element-plus/tokens'\nimport { throwError } from '@element-plus/utils'\nimport { useNamespace } from '@element-plus/hooks'\nimport { tabPaneProps } from './tab-pane'\n\nconst COMPONENT_NAME = 'ElTabPane'\ndefineOptions({\n name: COMPONENT_NAME,\n})\nconst props = defineProps(tabPaneProps)\n\nconst instance = getCurrentInstance()!\nconst slots = useSlots()\n\nconst tabsRoot = inject(tabsRootContextKey)\nif (!tabsRoot)\n throwError(COMPONENT_NAME, 'usage: <el-tabs><el-tab-pane /></el-tabs/>')\n\nconst ns = useNamespace('tab-pane')\n\nconst index = ref<string>()\nconst isClosable = computed(() => props.closable || tabsRoot.props.closable)\nconst active = eagerComputed(\n () => tabsRoot.currentName.value === (props.name ?? index.value)\n)\nconst loaded = ref(active.value)\nconst paneName = computed(() => props.name ?? index.value)\nconst shouldBeRender = eagerComputed(\n () => !props.lazy || loaded.value || active.value\n)\n\nwatch(active, (val) => {\n if (val) loaded.value = true\n})\n\nconst pane = reactive({\n uid: instance.uid,\n slots,\n props,\n paneName,\n active,\n index,\n isClosable,\n})\n\nonMounted(() => {\n tabsRoot.registerPane(pane)\n})\n\nonUnmounted(() => {\n tabsRoot.unregisterPane(pane.uid)\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;mCAiCc,CAAA;AAAA,EACZ,IAAM,EAAA,cAAA;AACR;;;;;;AAGA,IAAA,MAAM,WAAW,kBAAmB,EAAA,CAAA;AACpC,IAAA,MAAM,QAAQ,QAAS,EAAA,CAAA;AAEvB,IAAM,MAAA,QAAA,GAAW,OAAO,kBAAkB,CAAA,CAAA;AAC1C,IAAA,IAAI,CAAC,QAAA;AACH,MAAA,UAAA,CAAW,gBAAgB,4CAA4C,CAAA,CAAA;AAEzE,IAAM,MAAA,EAAA,GAAK,aAAa,UAAU,CAAA,CAAA;AAElC,IAAA,MAAM,QAAQ,GAAY,EAAA,CAAA;AAC1B,IAAA,MAAM,aAAa,QAAS,CAAA,MAAM,MAAM,QAAY,IAAA,QAAA,CAAS,MAAM,QAAQ,CAAA,CAAA;AAC3E,IAAM,MAAA,MAAA,GAAS,cACb,MAAM;AAER,MAAM,IAAA,EAAA,CAAA;AACN,MAAA,eAAiB,CAAS,WAAA,CAAA,KAAY,MAAA,CAAA,EAAA,QAAc,CAAK,IAAA,KAAA,IAAA,GAAA,EAAA,GAAA,KAAA,CAAA,KAAA,CAAA,CAAA;AACzD,KAAM,CAAA,CAAA;AAIN,IAAM,MAAA,MAAA,GAAS,GAAQ,CAAA,MAAA,CAAA,KAAA,CAAA,CAAA;AACrB,IAAI,MAAA,QAAA,GAAA,QAAA,CAAA,MAAA;AAAK,MAAA,IAAA,EAAA,CAAA;AAAe,MACzB,OAAA,CAAA,EAAA,GAAA,KAAA,CAAA,IAAA,KAAA,IAAA,GAAA,EAAA,GAAA,KAAA,CAAA,KAAA,CAAA;AAED,KAAA,CAAA,CAAA;AAAsB,IAAA,oBACN,GAAA,aAAA,CAAA,MAAA,CAAA,KAAA,CAAA,IAAA,IAAA,MAAA,CAAA,KAAA,IAAA,MAAA,CAAA,KAAA,CAAA,CAAA;AAAA,IACd,KAAA,CAAA,MAAA,EAAA,CAAA,GAAA,KAAA;AAAA,MACA,IAAA,GAAA;AAAA,QACA,MAAA,CAAA,KAAA,GAAA,IAAA,CAAA;AAAA,KACA,CAAA,CAAA;AAAA,IACA,MAAA,IAAA,GAAA,QAAA,CAAA;AAAA,MACA,GAAA,EAAA,QAAA,CAAA,GAAA;AAAA,MACD,KAAA;AAED,MAAA,KAAA;AACE,MAAA,QAAA;AAA0B,MAC3B,MAAA;AAED,MAAA,KAAA;AACE,MAAS,UAAA;AAAuB,KACjC,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,78 +1,18 @@
|
|
|
1
|
-
import { defineComponent, getCurrentInstance, useSlots, inject, ref, computed, watch, reactive, onMounted, onUnmounted, unref, withDirectives, openBlock, createElementBlock, normalizeClass, renderSlot, vShow, createCommentVNode } from 'vue';
|
|
2
|
-
import { eagerComputed } from '@vueuse/core';
|
|
3
|
-
import '../../../tokens/index.mjs';
|
|
4
1
|
import '../../../utils/index.mjs';
|
|
5
|
-
import '../../../
|
|
6
|
-
import { tabPaneProps } from './tab-pane.mjs';
|
|
7
|
-
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
8
|
-
import { tabsRootContextKey } from '../../../tokens/tabs.mjs';
|
|
9
|
-
import { throwError } from '../../../utils/error.mjs';
|
|
10
|
-
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
2
|
+
import { buildProps } from '../../../utils/vue/props/runtime.mjs';
|
|
11
3
|
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
4
|
+
const tabPaneProps = buildProps({
|
|
5
|
+
label: {
|
|
6
|
+
type: String,
|
|
7
|
+
default: ""
|
|
8
|
+
},
|
|
9
|
+
name: {
|
|
10
|
+
type: [String, Number]
|
|
11
|
+
},
|
|
12
|
+
closable: Boolean,
|
|
13
|
+
disabled: Boolean,
|
|
14
|
+
lazy: Boolean
|
|
16
15
|
});
|
|
17
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
18
|
-
...__default__,
|
|
19
|
-
props: tabPaneProps,
|
|
20
|
-
setup(__props) {
|
|
21
|
-
const props = __props;
|
|
22
|
-
const instance = getCurrentInstance();
|
|
23
|
-
const slots = useSlots();
|
|
24
|
-
const tabsRoot = inject(tabsRootContextKey);
|
|
25
|
-
if (!tabsRoot)
|
|
26
|
-
throwError(COMPONENT_NAME, "usage: <el-tabs><el-tab-pane /></el-tabs/>");
|
|
27
|
-
const ns = useNamespace("tab-pane");
|
|
28
|
-
const index = ref();
|
|
29
|
-
const isClosable = computed(() => props.closable || tabsRoot.props.closable);
|
|
30
|
-
const active = eagerComputed(() => {
|
|
31
|
-
var _a;
|
|
32
|
-
return tabsRoot.currentName.value === ((_a = props.name) != null ? _a : index.value);
|
|
33
|
-
});
|
|
34
|
-
const loaded = ref(active.value);
|
|
35
|
-
const paneName = computed(() => {
|
|
36
|
-
var _a;
|
|
37
|
-
return (_a = props.name) != null ? _a : index.value;
|
|
38
|
-
});
|
|
39
|
-
const shouldBeRender = eagerComputed(() => !props.lazy || loaded.value || active.value);
|
|
40
|
-
watch(active, (val) => {
|
|
41
|
-
if (val)
|
|
42
|
-
loaded.value = true;
|
|
43
|
-
});
|
|
44
|
-
const pane = reactive({
|
|
45
|
-
uid: instance.uid,
|
|
46
|
-
slots,
|
|
47
|
-
props,
|
|
48
|
-
paneName,
|
|
49
|
-
active,
|
|
50
|
-
index,
|
|
51
|
-
isClosable
|
|
52
|
-
});
|
|
53
|
-
onMounted(() => {
|
|
54
|
-
tabsRoot.registerPane(pane);
|
|
55
|
-
});
|
|
56
|
-
onUnmounted(() => {
|
|
57
|
-
tabsRoot.unregisterPane(pane.uid);
|
|
58
|
-
});
|
|
59
|
-
return (_ctx, _cache) => {
|
|
60
|
-
return unref(shouldBeRender) ? withDirectives((openBlock(), createElementBlock("div", {
|
|
61
|
-
key: 0,
|
|
62
|
-
id: `pane-${unref(paneName)}`,
|
|
63
|
-
class: normalizeClass(unref(ns).b()),
|
|
64
|
-
role: "tabpanel",
|
|
65
|
-
"aria-hidden": !unref(active),
|
|
66
|
-
"aria-labelledby": `tab-${unref(paneName)}`
|
|
67
|
-
}, [
|
|
68
|
-
renderSlot(_ctx.$slots, "default")
|
|
69
|
-
], 10, _hoisted_1)), [
|
|
70
|
-
[vShow, unref(active)]
|
|
71
|
-
]) : createCommentVNode("v-if", true);
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
var TabPane = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);
|
|
76
16
|
|
|
77
|
-
export {
|
|
17
|
+
export { tabPaneProps };
|
|
78
18
|
//# sourceMappingURL=tab-pane2.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tab-pane2.mjs","sources":["../../../../../../packages/components/tabs/src/tab-pane.
|
|
1
|
+
{"version":3,"file":"tab-pane2.mjs","sources":["../../../../../../packages/components/tabs/src/tab-pane.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type TabPane from './tab-pane.vue'\n\nexport const tabPaneProps = buildProps({\n label: {\n type: String,\n default: '',\n },\n name: {\n type: [String, Number],\n },\n closable: Boolean,\n disabled: Boolean,\n lazy: Boolean,\n} as const)\n\nexport type TabPaneProps = ExtractPropTypes<typeof tabPaneProps>\n\nexport type TabPaneInstance = InstanceType<typeof TabPane>\n"],"names":[],"mappings":";;;AACY,MAAC,YAAY,GAAG,UAAU,CAAC;AACvC,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,IAAI,EAAE,OAAO;AACf,CAAC;;;;"}
|
|
@@ -6576,7 +6576,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6576
6576
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
6577
6577
|
__epPropKey: true;
|
|
6578
6578
|
};
|
|
6579
|
-
readonly form:
|
|
6579
|
+
readonly form: {
|
|
6580
|
+
readonly type: import("vue").PropType<string>;
|
|
6581
|
+
readonly required: false;
|
|
6582
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
6583
|
+
__epPropKey: true;
|
|
6584
|
+
};
|
|
6580
6585
|
readonly readonly: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
6581
6586
|
readonly clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
6582
6587
|
readonly showPassword: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
@@ -6599,10 +6604,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6599
6604
|
readonly validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
6600
6605
|
readonly inputStyle: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("vue").StyleValue & {}) | (() => import("vue").StyleValue) | ((new (...args: any[]) => import("vue").StyleValue & {}) | (() => import("vue").StyleValue))[], unknown, unknown, () => import("element-plus/es/utils").Mutable<{}>, boolean>;
|
|
6601
6606
|
}, {
|
|
6602
|
-
PENDANT_MAP: {
|
|
6603
|
-
readonly suffix: "append";
|
|
6604
|
-
readonly prefix: "prepend";
|
|
6605
|
-
};
|
|
6606
6607
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
6607
6608
|
readonly id: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
6608
6609
|
readonly size: {
|
|
@@ -6640,7 +6641,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6640
6641
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
6641
6642
|
__epPropKey: true;
|
|
6642
6643
|
};
|
|
6643
|
-
readonly form:
|
|
6644
|
+
readonly form: {
|
|
6645
|
+
readonly type: import("vue").PropType<string>;
|
|
6646
|
+
readonly required: false;
|
|
6647
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
6648
|
+
__epPropKey: true;
|
|
6649
|
+
};
|
|
6644
6650
|
readonly readonly: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
6645
6651
|
readonly clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
6646
6652
|
readonly showPassword: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
@@ -6677,7 +6683,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6677
6683
|
onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
|
|
6678
6684
|
}>>;
|
|
6679
6685
|
emit: ((event: "update:modelValue", value: string) => void) & ((event: "change", value: string) => void) & ((event: "input", value: string) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "clear") => void) & ((event: "mouseleave", evt: MouseEvent) => void) & ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "keydown", evt: Event | KeyboardEvent) => void) & ((event: "compositionstart", evt: CompositionEvent) => void) & ((event: "compositionupdate", evt: CompositionEvent) => void) & ((event: "compositionend", evt: CompositionEvent) => void);
|
|
6680
|
-
instance: import("vue").ComponentInternalInstance;
|
|
6681
6686
|
rawAttrs: {
|
|
6682
6687
|
[x: string]: unknown;
|
|
6683
6688
|
};
|
|
@@ -6753,8 +6758,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6753
6758
|
setCursor: () => void;
|
|
6754
6759
|
resizeTextarea: () => void;
|
|
6755
6760
|
setNativeInputValue: () => void;
|
|
6756
|
-
calcIconOffset: (place: "suffix" | "prefix") => void;
|
|
6757
|
-
updateIconOffset: () => void;
|
|
6758
6761
|
handleInput: (event: Event) => Promise<void>;
|
|
6759
6762
|
handleChange: (event: Event) => void;
|
|
6760
6763
|
handleCompositionStart: (event: CompositionEvent) => void;
|
|
@@ -6885,7 +6888,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6885
6888
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
6886
6889
|
__epPropKey: true;
|
|
6887
6890
|
};
|
|
6888
|
-
readonly form:
|
|
6891
|
+
readonly form: {
|
|
6892
|
+
readonly type: import("vue").PropType<string>;
|
|
6893
|
+
readonly required: false;
|
|
6894
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
6895
|
+
__epPropKey: true;
|
|
6896
|
+
};
|
|
6889
6897
|
readonly readonly: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
6890
6898
|
readonly clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
6891
6899
|
readonly showPassword: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
@@ -6929,7 +6937,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6929
6937
|
readonly id: string;
|
|
6930
6938
|
readonly autosize: import("element-plus/es/components/input").InputAutoSize;
|
|
6931
6939
|
readonly autocomplete: string;
|
|
6932
|
-
readonly form: string;
|
|
6933
6940
|
readonly readonly: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
6934
6941
|
readonly clearable: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
6935
6942
|
readonly showPassword: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|