@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
|
@@ -2,199 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
require('../../../
|
|
7
|
-
var
|
|
8
|
-
var iconsVue = require('@element-plus/icons-vue');
|
|
9
|
-
var item = require('./item.js');
|
|
10
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
11
|
-
var index = require('../../../hooks/use-namespace/index.js');
|
|
5
|
+
require('../../../utils/index.js');
|
|
6
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
7
|
+
var icon = require('../../../utils/vue/icon.js');
|
|
12
8
|
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
() => parent.props.active,
|
|
30
|
-
() => parent.props.processStatus,
|
|
31
|
-
() => parent.props.finishStatus
|
|
32
|
-
], ([active]) => {
|
|
33
|
-
updateStatus(active);
|
|
34
|
-
}, { immediate: true });
|
|
35
|
-
});
|
|
36
|
-
vue.onBeforeUnmount(() => {
|
|
37
|
-
parent.steps.value = parent.steps.value.filter((instance) => instance.uid !== (currentInstance == null ? void 0 : currentInstance.uid));
|
|
38
|
-
});
|
|
39
|
-
const currentStatus = vue.computed(() => {
|
|
40
|
-
return props.status || internalStatus.value;
|
|
41
|
-
});
|
|
42
|
-
const prevStatus = vue.computed(() => {
|
|
43
|
-
const prevStep = parent.steps.value[index$2.value - 1];
|
|
44
|
-
return prevStep ? prevStep.currentStatus : "wait";
|
|
45
|
-
});
|
|
46
|
-
const isCenter = vue.computed(() => {
|
|
47
|
-
return parent.props.alignCenter;
|
|
48
|
-
});
|
|
49
|
-
const isVertical = vue.computed(() => {
|
|
50
|
-
return parent.props.direction === "vertical";
|
|
51
|
-
});
|
|
52
|
-
const isSimple = vue.computed(() => {
|
|
53
|
-
return parent.props.simple;
|
|
54
|
-
});
|
|
55
|
-
const stepsCount = vue.computed(() => {
|
|
56
|
-
return parent.steps.value.length;
|
|
57
|
-
});
|
|
58
|
-
const isLast = vue.computed(() => {
|
|
59
|
-
var _a;
|
|
60
|
-
return ((_a = parent.steps.value[stepsCount.value - 1]) == null ? void 0 : _a.uid) === (currentInstance == null ? void 0 : currentInstance.uid);
|
|
61
|
-
});
|
|
62
|
-
const space = vue.computed(() => {
|
|
63
|
-
return isSimple.value ? "" : parent.props.space;
|
|
64
|
-
});
|
|
65
|
-
const style = vue.computed(() => {
|
|
66
|
-
const style2 = {
|
|
67
|
-
flexBasis: typeof space.value === "number" ? `${space.value}px` : space.value ? space.value : `${100 / (stepsCount.value - (isCenter.value ? 0 : 1))}%`
|
|
68
|
-
};
|
|
69
|
-
if (isVertical.value)
|
|
70
|
-
return style2;
|
|
71
|
-
if (isLast.value) {
|
|
72
|
-
style2.maxWidth = `${100 / stepsCount.value}%`;
|
|
73
|
-
}
|
|
74
|
-
return style2;
|
|
75
|
-
});
|
|
76
|
-
const setIndex = (val) => {
|
|
77
|
-
index$2.value = val;
|
|
78
|
-
};
|
|
79
|
-
const calcProgress = (status) => {
|
|
80
|
-
let step = 100;
|
|
81
|
-
const style2 = {};
|
|
82
|
-
style2.transitionDelay = `${150 * index$2.value}ms`;
|
|
83
|
-
if (status === parent.props.processStatus) {
|
|
84
|
-
step = 0;
|
|
85
|
-
} else if (status === "wait") {
|
|
86
|
-
step = 0;
|
|
87
|
-
style2.transitionDelay = `${-150 * index$2.value}ms`;
|
|
88
|
-
}
|
|
89
|
-
style2.borderWidth = step && !isSimple.value ? "1px" : 0;
|
|
90
|
-
style2[parent.props.direction === "vertical" ? "height" : "width"] = `${step}%`;
|
|
91
|
-
lineStyle.value = style2;
|
|
92
|
-
};
|
|
93
|
-
const updateStatus = (activeIndex) => {
|
|
94
|
-
if (activeIndex > index$2.value) {
|
|
95
|
-
internalStatus.value = parent.props.finishStatus;
|
|
96
|
-
} else if (activeIndex === index$2.value && prevStatus.value !== "error") {
|
|
97
|
-
internalStatus.value = parent.props.processStatus;
|
|
98
|
-
} else {
|
|
99
|
-
internalStatus.value = "wait";
|
|
100
|
-
}
|
|
101
|
-
const prevChild = parent.steps.value[index$2.value - 1];
|
|
102
|
-
if (prevChild)
|
|
103
|
-
prevChild.calcProgress(internalStatus.value);
|
|
104
|
-
};
|
|
105
|
-
const stepItemState = vue.reactive({
|
|
106
|
-
uid: vue.computed(() => currentInstance == null ? void 0 : currentInstance.uid),
|
|
107
|
-
currentStatus,
|
|
108
|
-
setIndex,
|
|
109
|
-
calcProgress
|
|
110
|
-
});
|
|
111
|
-
parent.steps.value = [...parent.steps.value, stepItemState];
|
|
112
|
-
return (_ctx, _cache) => {
|
|
113
|
-
return vue.openBlock(), vue.createElementBlock("div", {
|
|
114
|
-
style: vue.normalizeStyle(vue.unref(style)),
|
|
115
|
-
class: vue.normalizeClass([
|
|
116
|
-
vue.unref(ns).b(),
|
|
117
|
-
vue.unref(ns).is(vue.unref(isSimple) ? "simple" : vue.unref(parent).props.direction),
|
|
118
|
-
vue.unref(ns).is("flex", vue.unref(isLast) && !vue.unref(space) && !vue.unref(isCenter)),
|
|
119
|
-
vue.unref(ns).is("center", vue.unref(isCenter) && !vue.unref(isVertical) && !vue.unref(isSimple))
|
|
120
|
-
])
|
|
121
|
-
}, [
|
|
122
|
-
vue.createCommentVNode(" icon & line "),
|
|
123
|
-
vue.createElementVNode("div", {
|
|
124
|
-
class: vue.normalizeClass([vue.unref(ns).e("head"), vue.unref(ns).is(vue.unref(currentStatus))])
|
|
125
|
-
}, [
|
|
126
|
-
!vue.unref(isSimple) ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
127
|
-
key: 0,
|
|
128
|
-
class: vue.normalizeClass(vue.unref(ns).e("line"))
|
|
129
|
-
}, [
|
|
130
|
-
vue.createElementVNode("i", {
|
|
131
|
-
class: vue.normalizeClass(vue.unref(ns).e("line-inner")),
|
|
132
|
-
style: vue.normalizeStyle(lineStyle.value)
|
|
133
|
-
}, null, 6)
|
|
134
|
-
], 2)) : vue.createCommentVNode("v-if", true),
|
|
135
|
-
vue.createElementVNode("div", {
|
|
136
|
-
class: vue.normalizeClass([vue.unref(ns).e("icon"), vue.unref(ns).is(_ctx.icon || _ctx.$slots.icon ? "icon" : "text")])
|
|
137
|
-
}, [
|
|
138
|
-
vue.renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
139
|
-
_ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), {
|
|
140
|
-
key: 0,
|
|
141
|
-
class: vue.normalizeClass(vue.unref(ns).e("icon-inner"))
|
|
142
|
-
}, {
|
|
143
|
-
default: vue.withCtx(() => [
|
|
144
|
-
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.icon)))
|
|
145
|
-
]),
|
|
146
|
-
_: 1
|
|
147
|
-
}, 8, ["class"])) : vue.unref(currentStatus) === "success" ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), {
|
|
148
|
-
key: 1,
|
|
149
|
-
class: vue.normalizeClass([vue.unref(ns).e("icon-inner"), vue.unref(ns).is("status")])
|
|
150
|
-
}, {
|
|
151
|
-
default: vue.withCtx(() => [
|
|
152
|
-
vue.createVNode(vue.unref(iconsVue.Check))
|
|
153
|
-
]),
|
|
154
|
-
_: 1
|
|
155
|
-
}, 8, ["class"])) : vue.unref(currentStatus) === "error" ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), {
|
|
156
|
-
key: 2,
|
|
157
|
-
class: vue.normalizeClass([vue.unref(ns).e("icon-inner"), vue.unref(ns).is("status")])
|
|
158
|
-
}, {
|
|
159
|
-
default: vue.withCtx(() => [
|
|
160
|
-
vue.createVNode(vue.unref(iconsVue.Close))
|
|
161
|
-
]),
|
|
162
|
-
_: 1
|
|
163
|
-
}, 8, ["class"])) : !vue.unref(isSimple) ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
164
|
-
key: 3,
|
|
165
|
-
class: vue.normalizeClass(vue.unref(ns).e("icon-inner"))
|
|
166
|
-
}, vue.toDisplayString(index$2.value + 1), 3)) : vue.createCommentVNode("v-if", true)
|
|
167
|
-
])
|
|
168
|
-
], 2)
|
|
169
|
-
], 2),
|
|
170
|
-
vue.createCommentVNode(" title & description "),
|
|
171
|
-
vue.createElementVNode("div", {
|
|
172
|
-
class: vue.normalizeClass(vue.unref(ns).e("main"))
|
|
173
|
-
}, [
|
|
174
|
-
vue.createElementVNode("div", {
|
|
175
|
-
class: vue.normalizeClass([vue.unref(ns).e("title"), vue.unref(ns).is(vue.unref(currentStatus))])
|
|
176
|
-
}, [
|
|
177
|
-
vue.renderSlot(_ctx.$slots, "title", {}, () => [
|
|
178
|
-
vue.createTextVNode(vue.toDisplayString(_ctx.title), 1)
|
|
179
|
-
])
|
|
180
|
-
], 2),
|
|
181
|
-
vue.unref(isSimple) ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
182
|
-
key: 0,
|
|
183
|
-
class: vue.normalizeClass(vue.unref(ns).e("arrow"))
|
|
184
|
-
}, null, 2)) : (vue.openBlock(), vue.createElementBlock("div", {
|
|
185
|
-
key: 1,
|
|
186
|
-
class: vue.normalizeClass([vue.unref(ns).e("description"), vue.unref(ns).is(vue.unref(currentStatus))])
|
|
187
|
-
}, [
|
|
188
|
-
vue.renderSlot(_ctx.$slots, "description", {}, () => [
|
|
189
|
-
vue.createTextVNode(vue.toDisplayString(_ctx.description), 1)
|
|
190
|
-
])
|
|
191
|
-
], 2))
|
|
192
|
-
], 2)
|
|
193
|
-
], 6);
|
|
194
|
-
};
|
|
9
|
+
const stepProps = runtime.buildProps({
|
|
10
|
+
title: {
|
|
11
|
+
type: String,
|
|
12
|
+
default: ""
|
|
13
|
+
},
|
|
14
|
+
icon: {
|
|
15
|
+
type: icon.iconPropType
|
|
16
|
+
},
|
|
17
|
+
description: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: ""
|
|
20
|
+
},
|
|
21
|
+
status: {
|
|
22
|
+
type: String,
|
|
23
|
+
values: ["", "wait", "process", "finish", "error", "success"],
|
|
24
|
+
default: ""
|
|
195
25
|
}
|
|
196
26
|
});
|
|
197
|
-
var Step = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/steps/src/item.vue"]]);
|
|
198
27
|
|
|
199
|
-
exports
|
|
28
|
+
exports.stepProps = stepProps;
|
|
200
29
|
//# sourceMappingURL=item2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item2.js","sources":["../../../../../../packages/components/steps/src/item.vue"],"sourcesContent":["<template>\n <div\n :style=\"style\"\n :class=\"[\n ns.b(),\n ns.is(isSimple ? 'simple' : parent.props.direction),\n ns.is('flex', isLast && !space && !isCenter),\n ns.is('center', isCenter && !isVertical && !isSimple),\n ]\"\n >\n <!-- icon & line -->\n <div :class=\"[ns.e('head'), ns.is(currentStatus)]\">\n <div v-if=\"!isSimple\" :class=\"ns.e('line')\">\n <i :class=\"ns.e('line-inner')\" :style=\"lineStyle\" />\n </div>\n\n <div\n :class=\"[ns.e('icon'), ns.is(icon || $slots.icon ? 'icon' : 'text')]\"\n >\n <slot name=\"icon\">\n <el-icon v-if=\"icon\" :class=\"ns.e('icon-inner')\">\n <component :is=\"icon\" />\n </el-icon>\n <el-icon\n v-else-if=\"currentStatus === 'success'\"\n :class=\"[ns.e('icon-inner'), ns.is('status')]\"\n >\n <Check />\n </el-icon>\n <el-icon\n v-else-if=\"currentStatus === 'error'\"\n :class=\"[ns.e('icon-inner'), ns.is('status')]\"\n >\n <Close />\n </el-icon>\n <div v-else-if=\"!isSimple\" :class=\"ns.e('icon-inner')\">\n {{ index + 1 }}\n </div>\n </slot>\n </div>\n </div>\n <!-- title & description -->\n <div :class=\"ns.e('main')\">\n <div :class=\"[ns.e('title'), ns.is(currentStatus)]\">\n <slot name=\"title\">{{ title }}</slot>\n </div>\n <div v-if=\"isSimple\" :class=\"ns.e('arrow')\" />\n <div v-else :class=\"[ns.e('description'), ns.is(currentStatus)]\">\n <slot name=\"description\">{{ description }}</slot>\n </div>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport {\n computed,\n getCurrentInstance,\n inject,\n onBeforeUnmount,\n onMounted,\n reactive,\n ref,\n watch,\n} from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { Check, Close } from '@element-plus/icons-vue'\nimport { stepProps } from './item'\n\nimport type { CSSProperties, Ref } from 'vue'\n\nexport interface IStepsProps {\n space: number | string\n active: number\n direction: string\n alignCenter: boolean\n simple: boolean\n finishStatus: string\n processStatus: string\n}\n\nexport interface StepItemState {\n uid: number | undefined\n currentStatus: string\n setIndex: (val: number) => void\n calcProgress: (status: string) => void\n}\n\nexport interface IStepsInject {\n props: IStepsProps\n steps: Ref<StepItemState[]>\n}\n\ndefineOptions({\n name: 'ElStep',\n})\n\nconst props = defineProps(stepProps)\nconst ns = useNamespace('step')\nconst index = ref(-1)\nconst lineStyle = ref({})\nconst internalStatus = ref('')\nconst parent = inject('ElSteps') as IStepsInject\nconst currentInstance = getCurrentInstance()\n\nonMounted(() => {\n watch(\n [\n () => parent.props.active,\n () => parent.props.processStatus,\n () => parent.props.finishStatus,\n ],\n ([active]) => {\n updateStatus(active)\n },\n { immediate: true }\n )\n})\n\nonBeforeUnmount(() => {\n parent.steps.value = parent.steps.value.filter(\n (instance) => instance.uid !== currentInstance?.uid\n )\n})\n\nconst currentStatus = computed(() => {\n return props.status || internalStatus.value\n})\n\nconst prevStatus = computed(() => {\n const prevStep = parent.steps.value[index.value - 1]\n return prevStep ? prevStep.currentStatus : 'wait'\n})\n\nconst isCenter = computed(() => {\n return parent.props.alignCenter\n})\n\nconst isVertical = computed(() => {\n return parent.props.direction === 'vertical'\n})\n\nconst isSimple = computed(() => {\n return parent.props.simple\n})\n\nconst stepsCount = computed(() => {\n return parent.steps.value.length\n})\n\nconst isLast = computed(() => {\n return parent.steps.value[stepsCount.value - 1]?.uid === currentInstance?.uid\n})\n\nconst space = computed(() => {\n return isSimple.value ? '' : parent.props.space\n})\n\nconst style = computed(() => {\n const style: CSSProperties = {\n flexBasis:\n typeof space.value === 'number'\n ? `${space.value}px`\n : space.value\n ? space.value\n : `${100 / (stepsCount.value - (isCenter.value ? 0 : 1))}%`,\n }\n if (isVertical.value) return style\n if (isLast.value) {\n style.maxWidth = `${100 / stepsCount.value}%`\n }\n return style\n})\n\nconst setIndex = (val: number) => {\n index.value = val\n}\n\nconst calcProgress = (status: string) => {\n let step = 100\n const style: CSSProperties = {}\n style.transitionDelay = `${150 * index.value}ms`\n if (status === parent.props.processStatus) {\n step = 0\n } else if (status === 'wait') {\n step = 0\n style.transitionDelay = `${-150 * index.value}ms`\n }\n style.borderWidth = step && !isSimple.value ? '1px' : 0\n style[parent.props.direction === 'vertical' ? 'height' : 'width'] = `${step}%`\n lineStyle.value = style\n}\n\nconst updateStatus = (activeIndex: number) => {\n if (activeIndex > index.value) {\n internalStatus.value = parent.props.finishStatus\n } else if (activeIndex === index.value && prevStatus.value !== 'error') {\n internalStatus.value = parent.props.processStatus\n } else {\n internalStatus.value = 'wait'\n }\n const prevChild = parent.steps.value[index.value - 1]\n if (prevChild) prevChild.calcProgress(internalStatus.value)\n}\n\nconst stepItemState = reactive({\n uid: computed(() => currentInstance?.uid),\n currentStatus,\n setIndex,\n calcProgress,\n})\n\nparent.steps.value = [...parent.steps.value, stepItemState]\n</script>\n"],"names":["useNamespace","index","ref","inject","getCurrentInstance","onMounted","watch","onBeforeUnmount","computed","reactive"],"mappings":";;;;;;;;;;;;uCA8Fc,CAAA;AAAA,EACZ,IAAM,EAAA,QAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAGA,IAAM,MAAA,EAAA,GAAKA,mBAAa,MAAM,CAAA,CAAA;AAC9B,IAAM,MAAAC,OAAA,GAAQC,QAAI,CAAE,CAAA,CAAA,CAAA;AACpB,IAAM,MAAA,SAAA,GAAYA,OAAI,CAAA,EAAE,CAAA,CAAA;AACxB,IAAM,MAAA,cAAA,GAAiBA,QAAI,EAAE,CAAA,CAAA;AAC7B,IAAM,MAAA,MAAA,GAASC,WAAO,SAAS,CAAA,CAAA;AAC/B,IAAA,MAAM,kBAAkBC,sBAAmB,EAAA,CAAA;AAE3C,IAAAC,aAAA,CAAU,MAAM;AACd,MACEC,SAAA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,MAAA,IAAA,WAAA,YAAe,CAAM,KAAA,IAAA,UAAA,CAAA,KAAA,KAAA,OAAA,EAAA;AAAA,QAC/B,cAAA,CAAA,KAAA,GAAA,MAAA,CAAA,KAAA,CAAA,aAAA,CAAA;AACL,OAAA,MAAA;AAAuB,QACzB,cAAA,CAAA,KAAA,GAAA,MAAA,CAAA;AACA,OAAA;AACA,MAAI,MAAA,SAAA,GAAA,MAAA,CAAA,KAAA,CAAA,KAAA,CAAAA,OAAA,CAAA,KAAA,GAAA,CAAA,CAAA,CAAA;AAAW,MAAU,IAAA,SAAA;AAAiC,QAC5D,SAAA,CAAA,YAAA,CAAA,cAAA,CAAA,KAAA,CAAA,CAAA;AAEA,KAAA,CAAA;AAA+B,IAAA,MACxB,aAAe,GAAAQ,YAAA,CAAA;AAAoB,MACxC,GAAA,EAAAD,YAAA,CAAA,MAAA,eAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,eAAA,CAAA,GAAA,CAAA;AAAA,MACA,aAAA;AAAA,MACA,QAAA;AAAA,MACD,YAAA;AAED,KAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"item2.js","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":["buildProps","iconPropType"],"mappings":";;;;;;;;AACY,MAAC,SAAS,GAAGA,kBAAU,CAAC;AACpC,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAEC,iBAAY;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;;;;"}
|
|
@@ -4,10 +4,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
require('../../utils/index.js');
|
|
6
6
|
var tabs = require('./src/tabs.js');
|
|
7
|
-
var tabPane$1 = require('./src/tab-
|
|
7
|
+
var tabPane$1 = require('./src/tab-pane.js');
|
|
8
8
|
var tabBar = require('./src/tab-bar.js');
|
|
9
9
|
var tabNav = require('./src/tab-nav.js');
|
|
10
|
-
var tabPane = require('./src/tab-
|
|
10
|
+
var tabPane = require('./src/tab-pane2.js');
|
|
11
11
|
var install = require('../../utils/vue/install.js');
|
|
12
12
|
|
|
13
13
|
const ElTabs = install.withInstall(tabs["default"], {
|
|
@@ -2,21 +2,81 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var core = require('@vueuse/core');
|
|
7
|
+
require('../../../tokens/index.js');
|
|
5
8
|
require('../../../utils/index.js');
|
|
6
|
-
|
|
9
|
+
require('../../../hooks/index.js');
|
|
10
|
+
var tabPane = require('./tab-pane2.js');
|
|
11
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
12
|
+
var tabs = require('../../../tokens/tabs.js');
|
|
13
|
+
var error = require('../../../utils/error.js');
|
|
14
|
+
var index = require('../../../hooks/use-namespace/index.js');
|
|
7
15
|
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
},
|
|
13
|
-
name: {
|
|
14
|
-
type: [String, Number]
|
|
15
|
-
},
|
|
16
|
-
closable: Boolean,
|
|
17
|
-
disabled: Boolean,
|
|
18
|
-
lazy: Boolean
|
|
16
|
+
const _hoisted_1 = ["id", "aria-hidden", "aria-labelledby"];
|
|
17
|
+
const COMPONENT_NAME = "ElTabPane";
|
|
18
|
+
const __default__ = vue.defineComponent({
|
|
19
|
+
name: COMPONENT_NAME
|
|
19
20
|
});
|
|
21
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
22
|
+
...__default__,
|
|
23
|
+
props: tabPane.tabPaneProps,
|
|
24
|
+
setup(__props) {
|
|
25
|
+
const props = __props;
|
|
26
|
+
const instance = vue.getCurrentInstance();
|
|
27
|
+
const slots = vue.useSlots();
|
|
28
|
+
const tabsRoot = vue.inject(tabs.tabsRootContextKey);
|
|
29
|
+
if (!tabsRoot)
|
|
30
|
+
error.throwError(COMPONENT_NAME, "usage: <el-tabs><el-tab-pane /></el-tabs/>");
|
|
31
|
+
const ns = index.useNamespace("tab-pane");
|
|
32
|
+
const index$1 = vue.ref();
|
|
33
|
+
const isClosable = vue.computed(() => props.closable || tabsRoot.props.closable);
|
|
34
|
+
const active = core.eagerComputed(() => {
|
|
35
|
+
var _a;
|
|
36
|
+
return tabsRoot.currentName.value === ((_a = props.name) != null ? _a : index$1.value);
|
|
37
|
+
});
|
|
38
|
+
const loaded = vue.ref(active.value);
|
|
39
|
+
const paneName = vue.computed(() => {
|
|
40
|
+
var _a;
|
|
41
|
+
return (_a = props.name) != null ? _a : index$1.value;
|
|
42
|
+
});
|
|
43
|
+
const shouldBeRender = core.eagerComputed(() => !props.lazy || loaded.value || active.value);
|
|
44
|
+
vue.watch(active, (val) => {
|
|
45
|
+
if (val)
|
|
46
|
+
loaded.value = true;
|
|
47
|
+
});
|
|
48
|
+
const pane = vue.reactive({
|
|
49
|
+
uid: instance.uid,
|
|
50
|
+
slots,
|
|
51
|
+
props,
|
|
52
|
+
paneName,
|
|
53
|
+
active,
|
|
54
|
+
index: index$1,
|
|
55
|
+
isClosable
|
|
56
|
+
});
|
|
57
|
+
vue.onMounted(() => {
|
|
58
|
+
tabsRoot.registerPane(pane);
|
|
59
|
+
});
|
|
60
|
+
vue.onUnmounted(() => {
|
|
61
|
+
tabsRoot.unregisterPane(pane.uid);
|
|
62
|
+
});
|
|
63
|
+
return (_ctx, _cache) => {
|
|
64
|
+
return vue.unref(shouldBeRender) ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
|
65
|
+
key: 0,
|
|
66
|
+
id: `pane-${vue.unref(paneName)}`,
|
|
67
|
+
class: vue.normalizeClass(vue.unref(ns).b()),
|
|
68
|
+
role: "tabpanel",
|
|
69
|
+
"aria-hidden": !vue.unref(active),
|
|
70
|
+
"aria-labelledby": `tab-${vue.unref(paneName)}`
|
|
71
|
+
}, [
|
|
72
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
73
|
+
], 10, _hoisted_1)), [
|
|
74
|
+
[vue.vShow, vue.unref(active)]
|
|
75
|
+
]) : vue.createCommentVNode("v-if", true);
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
var TabPane = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);
|
|
20
80
|
|
|
21
|
-
exports
|
|
81
|
+
exports["default"] = TabPane;
|
|
22
82
|
//# sourceMappingURL=tab-pane.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tab-pane.js","sources":["../../../../../../packages/components/tabs/src/tab-pane.
|
|
1
|
+
{"version":3,"file":"tab-pane.js","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":["getCurrentInstance","useSlots","inject","tabsRootContextKey","throwError","useNamespace","index","ref","computed","eagerComputed","watch","reactive"],"mappings":";;;;;;;;;;;;;;;;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MAAA,CAAA,KAAA,GAAA,IAAA,CAAA;AAAA,KACA,CAAA,CAAA;AAAA,IACA,MAAA,IAAA,GAAAC,YAAA,CAAA;AAAA,MACA,GAAA,EAAA,QAAA,CAAA,GAAA;AAAA,MACD,KAAA;AAED,MAAA,KAAA;AACE,MAAA,QAAA;AAA0B,MAC3B,MAAA;AAED,aAAAL,OAAA;AACE,MAAS,UAAA;AAAuB,KACjC,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -2,81 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var vue = require('vue');
|
|
6
|
-
var core = require('@vueuse/core');
|
|
7
|
-
require('../../../tokens/index.js');
|
|
8
5
|
require('../../../utils/index.js');
|
|
9
|
-
require('../../../
|
|
10
|
-
var tabPane = require('./tab-pane.js');
|
|
11
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
12
|
-
var tabs = require('../../../tokens/tabs.js');
|
|
13
|
-
var error = require('../../../utils/error.js');
|
|
14
|
-
var index = require('../../../hooks/use-namespace/index.js');
|
|
6
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
15
7
|
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
8
|
+
const tabPaneProps = runtime.buildProps({
|
|
9
|
+
label: {
|
|
10
|
+
type: String,
|
|
11
|
+
default: ""
|
|
12
|
+
},
|
|
13
|
+
name: {
|
|
14
|
+
type: [String, Number]
|
|
15
|
+
},
|
|
16
|
+
closable: Boolean,
|
|
17
|
+
disabled: Boolean,
|
|
18
|
+
lazy: Boolean
|
|
20
19
|
});
|
|
21
|
-
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
22
|
-
...__default__,
|
|
23
|
-
props: tabPane.tabPaneProps,
|
|
24
|
-
setup(__props) {
|
|
25
|
-
const props = __props;
|
|
26
|
-
const instance = vue.getCurrentInstance();
|
|
27
|
-
const slots = vue.useSlots();
|
|
28
|
-
const tabsRoot = vue.inject(tabs.tabsRootContextKey);
|
|
29
|
-
if (!tabsRoot)
|
|
30
|
-
error.throwError(COMPONENT_NAME, "usage: <el-tabs><el-tab-pane /></el-tabs/>");
|
|
31
|
-
const ns = index.useNamespace("tab-pane");
|
|
32
|
-
const index$1 = vue.ref();
|
|
33
|
-
const isClosable = vue.computed(() => props.closable || tabsRoot.props.closable);
|
|
34
|
-
const active = core.eagerComputed(() => {
|
|
35
|
-
var _a;
|
|
36
|
-
return tabsRoot.currentName.value === ((_a = props.name) != null ? _a : index$1.value);
|
|
37
|
-
});
|
|
38
|
-
const loaded = vue.ref(active.value);
|
|
39
|
-
const paneName = vue.computed(() => {
|
|
40
|
-
var _a;
|
|
41
|
-
return (_a = props.name) != null ? _a : index$1.value;
|
|
42
|
-
});
|
|
43
|
-
const shouldBeRender = core.eagerComputed(() => !props.lazy || loaded.value || active.value);
|
|
44
|
-
vue.watch(active, (val) => {
|
|
45
|
-
if (val)
|
|
46
|
-
loaded.value = true;
|
|
47
|
-
});
|
|
48
|
-
const pane = vue.reactive({
|
|
49
|
-
uid: instance.uid,
|
|
50
|
-
slots,
|
|
51
|
-
props,
|
|
52
|
-
paneName,
|
|
53
|
-
active,
|
|
54
|
-
index: index$1,
|
|
55
|
-
isClosable
|
|
56
|
-
});
|
|
57
|
-
vue.onMounted(() => {
|
|
58
|
-
tabsRoot.registerPane(pane);
|
|
59
|
-
});
|
|
60
|
-
vue.onUnmounted(() => {
|
|
61
|
-
tabsRoot.unregisterPane(pane.uid);
|
|
62
|
-
});
|
|
63
|
-
return (_ctx, _cache) => {
|
|
64
|
-
return vue.unref(shouldBeRender) ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
|
65
|
-
key: 0,
|
|
66
|
-
id: `pane-${vue.unref(paneName)}`,
|
|
67
|
-
class: vue.normalizeClass(vue.unref(ns).b()),
|
|
68
|
-
role: "tabpanel",
|
|
69
|
-
"aria-hidden": !vue.unref(active),
|
|
70
|
-
"aria-labelledby": `tab-${vue.unref(paneName)}`
|
|
71
|
-
}, [
|
|
72
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
73
|
-
], 10, _hoisted_1)), [
|
|
74
|
-
[vue.vShow, vue.unref(active)]
|
|
75
|
-
]) : vue.createCommentVNode("v-if", true);
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
});
|
|
79
|
-
var TabPane = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);
|
|
80
20
|
|
|
81
|
-
exports
|
|
21
|
+
exports.tabPaneProps = tabPaneProps;
|
|
82
22
|
//# sourceMappingURL=tab-pane2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tab-pane2.js","sources":["../../../../../../packages/components/tabs/src/tab-pane.
|
|
1
|
+
{"version":3,"file":"tab-pane2.js","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":["buildProps"],"mappings":";;;;;;;AACY,MAAC,YAAY,GAAGA,kBAAU,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>;
|