@element-plus/nightly 0.0.20221211 → 0.0.20221212
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/dist/index.full.js +303 -341
- package/dist/index.full.min.js +13 -13
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +12 -12
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +303 -339
- 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/ckb.js +168 -0
- package/dist/locale/ckb.min.js +2 -0
- package/dist/locale/ckb.min.js.map +1 -0
- package/dist/locale/ckb.min.mjs +2 -0
- package/dist/locale/ckb.min.mjs.map +1 -0
- package/dist/locale/ckb.mjs +160 -0
- 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/component.mjs +4 -3
- package/es/component.mjs.map +1 -1
- package/es/components/config-provider/src/config-provider.mjs.map +1 -1
- package/es/components/countdown/index.d.ts +134 -0
- package/es/components/countdown/index.mjs +9 -0
- package/es/components/countdown/index.mjs.map +1 -0
- package/es/components/{statistic → countdown}/src/countdown.d.ts +3 -2
- package/es/components/countdown/src/countdown.mjs +29 -0
- package/es/components/countdown/src/countdown.mjs.map +1 -0
- package/es/components/countdown/src/countdown.vue.d.ts +133 -0
- package/es/components/countdown/src/countdown2.mjs +80 -0
- package/es/components/countdown/src/countdown2.mjs.map +1 -0
- package/es/components/countdown/src/utils.d.ts +3 -0
- package/es/components/countdown/src/utils.mjs +32 -0
- package/es/components/countdown/src/utils.mjs.map +1 -0
- package/es/components/countdown/style/css.d.ts +2 -0
- package/es/components/countdown/style/css.mjs +3 -0
- package/es/components/countdown/style/css.mjs.map +1 -0
- package/es/components/countdown/style/index.d.ts +2 -0
- package/es/components/countdown/style/index.mjs +3 -0
- package/es/components/countdown/style/index.mjs.map +1 -0
- package/es/components/date-picker/src/composables/use-range-picker.d.ts +1 -1
- package/es/components/date-picker/src/date-picker-com/basic-date-table.vue.d.ts +4 -4
- package/es/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +7 -7
- package/es/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +9 -9
- package/es/components/date-picker/src/date-picker-com/panel-month-range.vue.d.ts +3 -3
- package/es/components/date-picker/src/panel-utils.d.ts +19 -19
- package/es/components/image/index.d.ts +8 -0
- package/es/components/image/src/image.d.ts +1 -0
- package/es/components/image/src/image.mjs +4 -0
- package/es/components/image/src/image.mjs.map +1 -1
- package/es/components/image/src/image.vue.d.ts +8 -0
- package/es/components/image/src/image2.mjs +2 -1
- package/es/components/image/src/image2.mjs.map +1 -1
- package/es/components/image-viewer/index.d.ts +4 -0
- package/es/components/image-viewer/src/image-viewer.d.ts +1 -0
- package/es/components/image-viewer/src/image-viewer.mjs +4 -0
- package/es/components/image-viewer/src/image-viewer.mjs.map +1 -1
- package/es/components/image-viewer/src/image-viewer.vue.d.ts +4 -0
- package/es/components/image-viewer/src/image-viewer2.mjs +3 -3
- package/es/components/image-viewer/src/image-viewer2.mjs.map +1 -1
- package/es/components/index.d.ts +2 -1
- package/es/components/index.mjs +5 -4
- package/es/components/index.mjs.map +1 -1
- package/es/components/statistic/index.d.ts +10 -103
- package/es/components/statistic/index.mjs +2 -5
- package/es/components/statistic/index.mjs.map +1 -1
- package/es/components/statistic/src/statistic.d.ts +5 -9
- package/es/components/statistic/src/statistic.mjs +3 -9
- package/es/components/statistic/src/statistic.mjs.map +1 -1
- package/es/components/statistic/src/statistic.vue.d.ts +9 -25
- package/es/components/statistic/src/statistic2.mjs +11 -17
- package/es/components/statistic/src/statistic2.mjs.map +1 -1
- package/es/components/tabs/index.mjs +1 -1
- package/es/components/tabs/src/tab-bar.mjs +81 -7
- package/es/components/tabs/src/tab-bar.mjs.map +1 -1
- package/es/components/tabs/src/tab-bar2.mjs +7 -81
- package/es/components/tabs/src/tab-bar2.mjs.map +1 -1
- package/es/components/tabs/src/tab-nav.mjs +1 -1
- package/es/components/time-picker/src/composables/use-time-picker.d.ts +2 -2
- package/es/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +2 -2
- package/es/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +2 -2
- package/es/components/time-select/index.d.ts +2 -2
- package/es/components/time-select/src/time-select.vue.d.ts +1 -1
- package/es/index.mjs +5 -4
- package/es/index.mjs.map +1 -1
- package/es/locale/lang/ckb.d.ts +157 -0
- package/es/locale/lang/ckb.mjs +159 -0
- package/es/locale/lang/ckb.mjs.map +1 -0
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/component.js +166 -165
- package/lib/component.js.map +1 -1
- package/lib/components/config-provider/src/config-provider.js.map +1 -1
- package/lib/components/countdown/index.d.ts +134 -0
- package/lib/components/countdown/index.js +16 -0
- package/lib/components/countdown/index.js.map +1 -0
- package/lib/components/{statistic → countdown}/src/countdown.d.ts +3 -2
- package/lib/components/countdown/src/countdown.js +34 -0
- package/lib/components/countdown/src/countdown.js.map +1 -0
- package/lib/components/countdown/src/countdown.vue.d.ts +133 -0
- package/lib/components/countdown/src/countdown2.js +84 -0
- package/lib/components/countdown/src/countdown2.js.map +1 -0
- package/lib/components/countdown/src/utils.d.ts +3 -0
- package/lib/components/countdown/src/utils.js +37 -0
- package/lib/components/countdown/src/utils.js.map +1 -0
- package/lib/components/countdown/style/css.d.ts +2 -0
- package/lib/components/countdown/style/css.js +6 -0
- package/lib/components/countdown/style/css.js.map +1 -0
- package/lib/components/countdown/style/index.d.ts +2 -0
- package/lib/components/countdown/style/index.js +6 -0
- package/lib/components/countdown/style/index.js.map +1 -0
- package/lib/components/date-picker/src/composables/use-range-picker.d.ts +1 -1
- package/lib/components/date-picker/src/date-picker-com/basic-date-table.vue.d.ts +4 -4
- package/lib/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +7 -7
- package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +9 -9
- package/lib/components/date-picker/src/date-picker-com/panel-month-range.vue.d.ts +3 -3
- package/lib/components/date-picker/src/panel-utils.d.ts +19 -19
- package/lib/components/image/index.d.ts +8 -0
- package/lib/components/image/src/image.d.ts +1 -0
- package/lib/components/image/src/image.js +4 -0
- package/lib/components/image/src/image.js.map +1 -1
- package/lib/components/image/src/image.vue.d.ts +8 -0
- package/lib/components/image/src/image2.js +2 -1
- package/lib/components/image/src/image2.js.map +1 -1
- package/lib/components/image-viewer/index.d.ts +4 -0
- package/lib/components/image-viewer/src/image-viewer.d.ts +1 -0
- package/lib/components/image-viewer/src/image-viewer.js +4 -0
- package/lib/components/image-viewer/src/image-viewer.js.map +1 -1
- package/lib/components/image-viewer/src/image-viewer.vue.d.ts +4 -0
- package/lib/components/image-viewer/src/image-viewer2.js +3 -3
- package/lib/components/image-viewer/src/image-viewer2.js.map +1 -1
- package/lib/components/index.d.ts +2 -1
- package/lib/components/index.js +132 -133
- package/lib/components/index.js.map +1 -1
- package/lib/components/statistic/index.d.ts +10 -103
- package/lib/components/statistic/index.js +0 -8
- package/lib/components/statistic/index.js.map +1 -1
- package/lib/components/statistic/src/statistic.d.ts +5 -9
- package/lib/components/statistic/src/statistic.js +2 -9
- package/lib/components/statistic/src/statistic.js.map +1 -1
- package/lib/components/statistic/src/statistic.vue.d.ts +9 -25
- package/lib/components/statistic/src/statistic2.js +10 -16
- package/lib/components/statistic/src/statistic2.js.map +1 -1
- package/lib/components/tabs/index.js +1 -1
- package/lib/components/tabs/src/tab-bar.js +81 -7
- package/lib/components/tabs/src/tab-bar.js.map +1 -1
- package/lib/components/tabs/src/tab-bar2.js +7 -81
- package/lib/components/tabs/src/tab-bar2.js.map +1 -1
- package/lib/components/tabs/src/tab-nav.js +1 -1
- package/lib/components/time-picker/src/composables/use-time-picker.d.ts +2 -2
- package/lib/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +2 -2
- package/lib/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +2 -2
- package/lib/components/time-select/index.d.ts +2 -2
- package/lib/components/time-select/src/time-select.vue.d.ts +1 -1
- package/lib/index.js +221 -222
- package/lib/index.js.map +1 -1
- package/lib/locale/lang/ckb.d.ts +157 -0
- package/lib/locale/lang/ckb.js +163 -0
- package/lib/locale/lang/ckb.js.map +1 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/tags.json +1 -1
- package/theme-chalk/el-menu.css +1 -1
- package/theme-chalk/el-statistic.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/common/var.scss +6 -6
- package/theme-chalk/src/menu.scss +4 -15
- package/theme-chalk/src/statistic.scss +21 -32
- package/web-types.json +1 -1
- package/es/components/statistic/src/countdown.mjs +0 -65
- package/es/components/statistic/src/countdown.mjs.map +0 -1
- package/es/components/statistic/src/countdown.vue.d.ts +0 -77
- package/es/components/statistic/src/countdown2.mjs +0 -106
- package/es/components/statistic/src/countdown2.mjs.map +0 -1
- package/lib/components/statistic/src/countdown.js +0 -71
- package/lib/components/statistic/src/countdown.js.map +0 -1
- package/lib/components/statistic/src/countdown.vue.d.ts +0 -77
- package/lib/components/statistic/src/countdown2.js +0 -110
- package/lib/components/statistic/src/countdown2.js.map +0 -1
|
@@ -2,7 +2,7 @@ import '../../utils/index.mjs';
|
|
|
2
2
|
import Tabs from './src/tabs.mjs';
|
|
3
3
|
export { tabsEmits, tabsProps } from './src/tabs.mjs';
|
|
4
4
|
import TabPane from './src/tab-pane2.mjs';
|
|
5
|
-
export { tabBarProps } from './src/tab-
|
|
5
|
+
export { tabBarProps } from './src/tab-bar2.mjs';
|
|
6
6
|
export { tabNavEmits, tabNavProps } from './src/tab-nav.mjs';
|
|
7
7
|
export { tabPaneProps } from './src/tab-pane.mjs';
|
|
8
8
|
import { withInstall, withNoopInstall } from '../../utils/vue/install.mjs';
|
|
@@ -1,13 +1,87 @@
|
|
|
1
|
+
import { defineComponent, getCurrentInstance, inject, ref, watch, nextTick, openBlock, createElementBlock, normalizeClass, unref, normalizeStyle } from 'vue';
|
|
2
|
+
import { useResizeObserver } from '@vueuse/core';
|
|
1
3
|
import '../../../utils/index.mjs';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
+
import '../../../tokens/index.mjs';
|
|
5
|
+
import '../../../hooks/index.mjs';
|
|
6
|
+
import { tabBarProps } from './tab-bar2.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';
|
|
11
|
+
import { capitalize } from '../../../utils/strings.mjs';
|
|
4
12
|
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
13
|
+
const COMPONENT_NAME = "ElTabBar";
|
|
14
|
+
const __default__ = defineComponent({
|
|
15
|
+
name: COMPONENT_NAME
|
|
16
|
+
});
|
|
17
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
18
|
+
...__default__,
|
|
19
|
+
props: tabBarProps,
|
|
20
|
+
setup(__props, { expose }) {
|
|
21
|
+
const props = __props;
|
|
22
|
+
const instance = getCurrentInstance();
|
|
23
|
+
const rootTabs = inject(tabsRootContextKey);
|
|
24
|
+
if (!rootTabs)
|
|
25
|
+
throwError(COMPONENT_NAME, "<el-tabs><el-tab-bar /></el-tabs>");
|
|
26
|
+
const ns = useNamespace("tabs");
|
|
27
|
+
const barRef = ref();
|
|
28
|
+
const barStyle = ref();
|
|
29
|
+
const getBarStyle = () => {
|
|
30
|
+
let offset = 0;
|
|
31
|
+
let tabSize = 0;
|
|
32
|
+
const sizeName = ["top", "bottom"].includes(rootTabs.props.tabPosition) ? "width" : "height";
|
|
33
|
+
const sizeDir = sizeName === "width" ? "x" : "y";
|
|
34
|
+
props.tabs.every((tab) => {
|
|
35
|
+
var _a, _b, _c, _d;
|
|
36
|
+
const $el = (_b = (_a = instance.parent) == null ? void 0 : _a.refs) == null ? void 0 : _b[`tab-${tab.uid}`];
|
|
37
|
+
if (!$el)
|
|
38
|
+
return false;
|
|
39
|
+
if (!tab.active) {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
tabSize = $el[`client${capitalize(sizeName)}`];
|
|
43
|
+
const position = sizeDir === "x" ? "left" : "top";
|
|
44
|
+
offset = $el[`offset${capitalize(position)}`] - ((_d = (_c = $el.parentElement) == null ? void 0 : _c[`offset${capitalize(position)}`]) != null ? _d : 0);
|
|
45
|
+
const scrollwrapEl = $el.closest(".is-scrollable");
|
|
46
|
+
if (scrollwrapEl) {
|
|
47
|
+
const scrollWrapStyle = window.getComputedStyle(scrollwrapEl);
|
|
48
|
+
offset += Number.parseFloat(scrollWrapStyle[`padding${capitalize(position)}`]);
|
|
49
|
+
}
|
|
50
|
+
const tabStyles = window.getComputedStyle($el);
|
|
51
|
+
if (sizeName === "width") {
|
|
52
|
+
if (props.tabs.length > 1) {
|
|
53
|
+
tabSize -= Number.parseFloat(tabStyles.paddingLeft) + Number.parseFloat(tabStyles.paddingRight);
|
|
54
|
+
}
|
|
55
|
+
offset += Number.parseFloat(tabStyles.paddingLeft);
|
|
56
|
+
}
|
|
57
|
+
return false;
|
|
58
|
+
});
|
|
59
|
+
return {
|
|
60
|
+
[sizeName]: `${tabSize}px`,
|
|
61
|
+
transform: `translate${capitalize(sizeDir)}(${offset}px)`
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
const update = () => barStyle.value = getBarStyle();
|
|
65
|
+
watch(() => props.tabs, async () => {
|
|
66
|
+
await nextTick();
|
|
67
|
+
update();
|
|
68
|
+
}, { immediate: true });
|
|
69
|
+
useResizeObserver(barRef, () => update());
|
|
70
|
+
expose({
|
|
71
|
+
ref: barRef,
|
|
72
|
+
update
|
|
73
|
+
});
|
|
74
|
+
return (_ctx, _cache) => {
|
|
75
|
+
return openBlock(), createElementBlock("div", {
|
|
76
|
+
ref_key: "barRef",
|
|
77
|
+
ref: barRef,
|
|
78
|
+
class: normalizeClass([unref(ns).e("active-bar"), unref(ns).is(unref(rootTabs).props.tabPosition)]),
|
|
79
|
+
style: normalizeStyle(barStyle.value)
|
|
80
|
+
}, null, 6);
|
|
81
|
+
};
|
|
9
82
|
}
|
|
10
83
|
});
|
|
84
|
+
var TabBar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-bar.vue"]]);
|
|
11
85
|
|
|
12
|
-
export {
|
|
86
|
+
export { TabBar as default };
|
|
13
87
|
//# sourceMappingURL=tab-bar.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tab-bar.mjs","sources":["../../../../../../packages/components/tabs/src/tab-bar.
|
|
1
|
+
{"version":3,"file":"tab-bar.mjs","sources":["../../../../../../packages/components/tabs/src/tab-bar.vue"],"sourcesContent":["<template>\n <div\n ref=\"barRef\"\n :class=\"[ns.e('active-bar'), ns.is(rootTabs.props.tabPosition)]\"\n :style=\"barStyle\"\n />\n</template>\n\n<script lang=\"ts\" setup>\nimport { getCurrentInstance, inject, nextTick, ref, watch } from 'vue'\nimport { useResizeObserver } from '@vueuse/core'\nimport { capitalize, throwError } from '@element-plus/utils'\nimport { tabsRootContextKey } from '@element-plus/tokens'\nimport { useNamespace } from '@element-plus/hooks'\nimport { tabBarProps } from './tab-bar'\n\nimport type { CSSProperties } from 'vue'\n\nconst COMPONENT_NAME = 'ElTabBar'\ndefineOptions({\n name: COMPONENT_NAME,\n})\nconst props = defineProps(tabBarProps)\n\nconst instance = getCurrentInstance()!\nconst rootTabs = inject(tabsRootContextKey)\nif (!rootTabs) throwError(COMPONENT_NAME, '<el-tabs><el-tab-bar /></el-tabs>')\n\nconst ns = useNamespace('tabs')\n\nconst barRef = ref<HTMLDivElement>()\nconst barStyle = ref<CSSProperties>()\n\nconst getBarStyle = (): CSSProperties => {\n let offset = 0\n let tabSize = 0\n\n const sizeName = ['top', 'bottom'].includes(rootTabs.props.tabPosition)\n ? 'width'\n : 'height'\n const sizeDir = sizeName === 'width' ? 'x' : 'y'\n\n props.tabs.every((tab) => {\n const $el = instance.parent?.refs?.[`tab-${tab.uid}`] as HTMLElement\n if (!$el) return false\n\n if (!tab.active) {\n return true\n }\n\n tabSize = $el[`client${capitalize(sizeName)}`]\n const position = sizeDir === 'x' ? 'left' : 'top'\n\n offset =\n $el[`offset${capitalize(position)}`] -\n ($el.parentElement?.[`offset${capitalize(position)}`] ?? 0)\n\n const scrollwrapEl = $el.closest('.is-scrollable')\n if (scrollwrapEl) {\n const scrollWrapStyle = window.getComputedStyle(scrollwrapEl)\n offset += Number.parseFloat(\n scrollWrapStyle[`padding${capitalize(position)}`]\n )\n }\n\n const tabStyles = window.getComputedStyle($el)\n\n if (sizeName === 'width') {\n if (props.tabs.length > 1) {\n tabSize -=\n Number.parseFloat(tabStyles.paddingLeft) +\n Number.parseFloat(tabStyles.paddingRight)\n }\n offset += Number.parseFloat(tabStyles.paddingLeft)\n }\n return false\n })\n\n return {\n [sizeName]: `${tabSize}px`,\n transform: `translate${capitalize(sizeDir)}(${offset}px)`,\n }\n}\n\nconst update = () => (barStyle.value = getBarStyle())\n\nwatch(\n () => props.tabs,\n async () => {\n await nextTick()\n update()\n },\n { immediate: true }\n)\nuseResizeObserver(barRef, () => update())\n\ndefineExpose({\n /** @description tab root html element */\n ref: barRef,\n /** @description method to manually update tab bar style */\n update,\n})\n</script>\n"],"names":[],"mappings":"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"}
|
|
@@ -1,87 +1,13 @@
|
|
|
1
|
-
import { defineComponent, getCurrentInstance, inject, ref, watch, nextTick, openBlock, createElementBlock, normalizeClass, unref, normalizeStyle } from 'vue';
|
|
2
|
-
import { useResizeObserver } from '@vueuse/core';
|
|
3
1
|
import '../../../utils/index.mjs';
|
|
4
|
-
import '../../../
|
|
5
|
-
import '../../../
|
|
6
|
-
import { tabBarProps } from './tab-bar.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';
|
|
11
|
-
import { capitalize } from '../../../utils/strings.mjs';
|
|
2
|
+
import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
|
|
3
|
+
import { mutable } from '../../../utils/typescript.mjs';
|
|
12
4
|
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
18
|
-
...__default__,
|
|
19
|
-
props: tabBarProps,
|
|
20
|
-
setup(__props, { expose }) {
|
|
21
|
-
const props = __props;
|
|
22
|
-
const instance = getCurrentInstance();
|
|
23
|
-
const rootTabs = inject(tabsRootContextKey);
|
|
24
|
-
if (!rootTabs)
|
|
25
|
-
throwError(COMPONENT_NAME, "<el-tabs><el-tab-bar /></el-tabs>");
|
|
26
|
-
const ns = useNamespace("tabs");
|
|
27
|
-
const barRef = ref();
|
|
28
|
-
const barStyle = ref();
|
|
29
|
-
const getBarStyle = () => {
|
|
30
|
-
let offset = 0;
|
|
31
|
-
let tabSize = 0;
|
|
32
|
-
const sizeName = ["top", "bottom"].includes(rootTabs.props.tabPosition) ? "width" : "height";
|
|
33
|
-
const sizeDir = sizeName === "width" ? "x" : "y";
|
|
34
|
-
props.tabs.every((tab) => {
|
|
35
|
-
var _a, _b, _c, _d;
|
|
36
|
-
const $el = (_b = (_a = instance.parent) == null ? void 0 : _a.refs) == null ? void 0 : _b[`tab-${tab.uid}`];
|
|
37
|
-
if (!$el)
|
|
38
|
-
return false;
|
|
39
|
-
if (!tab.active) {
|
|
40
|
-
return true;
|
|
41
|
-
}
|
|
42
|
-
tabSize = $el[`client${capitalize(sizeName)}`];
|
|
43
|
-
const position = sizeDir === "x" ? "left" : "top";
|
|
44
|
-
offset = $el[`offset${capitalize(position)}`] - ((_d = (_c = $el.parentElement) == null ? void 0 : _c[`offset${capitalize(position)}`]) != null ? _d : 0);
|
|
45
|
-
const scrollwrapEl = $el.closest(".is-scrollable");
|
|
46
|
-
if (scrollwrapEl) {
|
|
47
|
-
const scrollWrapStyle = window.getComputedStyle(scrollwrapEl);
|
|
48
|
-
offset += Number.parseFloat(scrollWrapStyle[`padding${capitalize(position)}`]);
|
|
49
|
-
}
|
|
50
|
-
const tabStyles = window.getComputedStyle($el);
|
|
51
|
-
if (sizeName === "width") {
|
|
52
|
-
if (props.tabs.length > 1) {
|
|
53
|
-
tabSize -= Number.parseFloat(tabStyles.paddingLeft) + Number.parseFloat(tabStyles.paddingRight);
|
|
54
|
-
}
|
|
55
|
-
offset += Number.parseFloat(tabStyles.paddingLeft);
|
|
56
|
-
}
|
|
57
|
-
return false;
|
|
58
|
-
});
|
|
59
|
-
return {
|
|
60
|
-
[sizeName]: `${tabSize}px`,
|
|
61
|
-
transform: `translate${capitalize(sizeDir)}(${offset}px)`
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
const update = () => barStyle.value = getBarStyle();
|
|
65
|
-
watch(() => props.tabs, async () => {
|
|
66
|
-
await nextTick();
|
|
67
|
-
update();
|
|
68
|
-
}, { immediate: true });
|
|
69
|
-
useResizeObserver(barRef, () => update());
|
|
70
|
-
expose({
|
|
71
|
-
ref: barRef,
|
|
72
|
-
update
|
|
73
|
-
});
|
|
74
|
-
return (_ctx, _cache) => {
|
|
75
|
-
return openBlock(), createElementBlock("div", {
|
|
76
|
-
ref_key: "barRef",
|
|
77
|
-
ref: barRef,
|
|
78
|
-
class: normalizeClass([unref(ns).e("active-bar"), unref(ns).is(unref(rootTabs).props.tabPosition)]),
|
|
79
|
-
style: normalizeStyle(barStyle.value)
|
|
80
|
-
}, null, 6);
|
|
81
|
-
};
|
|
5
|
+
const tabBarProps = buildProps({
|
|
6
|
+
tabs: {
|
|
7
|
+
type: definePropType(Array),
|
|
8
|
+
default: () => mutable([])
|
|
82
9
|
}
|
|
83
10
|
});
|
|
84
|
-
var TabBar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-bar.vue"]]);
|
|
85
11
|
|
|
86
|
-
export {
|
|
12
|
+
export { tabBarProps };
|
|
87
13
|
//# sourceMappingURL=tab-bar2.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tab-bar2.mjs","sources":["../../../../../../packages/components/tabs/src/tab-bar.
|
|
1
|
+
{"version":3,"file":"tab-bar2.mjs","sources":["../../../../../../packages/components/tabs/src/tab-bar.ts"],"sourcesContent":["import { buildProps, definePropType, mutable } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type { TabsPaneContext } from '@element-plus/tokens'\nimport type TabBar from './tab-bar.vue'\n\nexport const tabBarProps = buildProps({\n tabs: {\n type: definePropType<TabsPaneContext[]>(Array),\n default: () => mutable([] as const),\n },\n} as const)\n\nexport type TabBarProps = ExtractPropTypes<typeof tabBarProps>\nexport type TabBarInstance = InstanceType<typeof TabBar>\n"],"names":[],"mappings":";;;;AACY,MAAC,WAAW,GAAG,UAAU,CAAC;AACtC,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,cAAc,CAAC,KAAK,CAAC;AAC/B,IAAI,OAAO,EAAE,MAAM,OAAO,CAAC,EAAE,CAAC;AAC9B,GAAG;AACH,CAAC;;;;"}
|
|
@@ -6,7 +6,7 @@ import { ElIcon } from '../../icon/index.mjs';
|
|
|
6
6
|
import { ArrowLeft, ArrowRight, Close } from '@element-plus/icons-vue';
|
|
7
7
|
import '../../../tokens/index.mjs';
|
|
8
8
|
import '../../../hooks/index.mjs';
|
|
9
|
-
import TabBar from './tab-
|
|
9
|
+
import TabBar from './tab-bar.mjs';
|
|
10
10
|
import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
|
|
11
11
|
import { mutable } from '../../../utils/typescript.mjs';
|
|
12
12
|
import { tabsRootContextKey } from '../../../tokens/tabs.mjs';
|
|
@@ -56,7 +56,7 @@ export declare const useOldValue: (props: {
|
|
|
56
56
|
startOf: (unit: import("dayjs").OpUnitType) => Dayjs;
|
|
57
57
|
endOf: (unit: import("dayjs").OpUnitType) => Dayjs;
|
|
58
58
|
format: (template?: string | undefined) => string;
|
|
59
|
-
diff: (date?: string | number | Date | Dayjs | null | undefined, unit?: "year" | "month" | "date" | "dates" | "week" | "D" | "M" | "y" | "weeks" | "months" | "day" | "hour" | "minute" | "second" | "millisecond" | "hours" | "minutes" | "seconds" | "
|
|
59
|
+
diff: (date?: string | number | Date | Dayjs | null | undefined, unit?: "year" | "month" | "date" | "dates" | "week" | "D" | "M" | "y" | "weeks" | "months" | "m" | "s" | "day" | "hour" | "minute" | "second" | "millisecond" | "hours" | "minutes" | "seconds" | "milliseconds" | "days" | "years" | "d" | "h" | "ms" | "w" | "quarter" | "quarters" | "Q" | undefined, float?: boolean | undefined) => number;
|
|
60
60
|
valueOf: () => number;
|
|
61
61
|
unix: () => number;
|
|
62
62
|
daysInMonth: () => number;
|
|
@@ -126,7 +126,7 @@ export declare const useOldValue: (props: {
|
|
|
126
126
|
startOf: (unit: import("dayjs").OpUnitType) => Dayjs;
|
|
127
127
|
endOf: (unit: import("dayjs").OpUnitType) => Dayjs;
|
|
128
128
|
format: (template?: string | undefined) => string;
|
|
129
|
-
diff: (date?: string | number | Date | Dayjs | null | undefined, unit?: "year" | "month" | "date" | "dates" | "week" | "D" | "M" | "y" | "weeks" | "months" | "day" | "hour" | "minute" | "second" | "millisecond" | "hours" | "minutes" | "seconds" | "
|
|
129
|
+
diff: (date?: string | number | Date | Dayjs | null | undefined, unit?: "year" | "month" | "date" | "dates" | "week" | "D" | "M" | "y" | "weeks" | "months" | "m" | "s" | "day" | "hour" | "minute" | "second" | "millisecond" | "hours" | "minutes" | "seconds" | "milliseconds" | "days" | "years" | "d" | "h" | "ms" | "w" | "quarter" | "quarters" | "Q" | undefined, float?: boolean | undefined) => number;
|
|
130
130
|
valueOf: () => number;
|
|
131
131
|
unix: () => number;
|
|
132
132
|
daysInMonth: () => number;
|
|
@@ -101,7 +101,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
101
101
|
startOf: (unit: dayjs.OpUnitType) => dayjs.Dayjs;
|
|
102
102
|
endOf: (unit: dayjs.OpUnitType) => dayjs.Dayjs;
|
|
103
103
|
format: (template?: string | undefined) => string;
|
|
104
|
-
diff: (date?: string | number | Date | dayjs.Dayjs | null | undefined, unit?: "year" | "month" | "date" | "dates" | "week" | "D" | "M" | "y" | "weeks" | "months" | "day" | "hour" | "minute" | "second" | "millisecond" | "hours" | "minutes" | "seconds" | "
|
|
104
|
+
diff: (date?: string | number | Date | dayjs.Dayjs | null | undefined, unit?: "year" | "month" | "date" | "dates" | "week" | "D" | "M" | "y" | "weeks" | "months" | "m" | "s" | "day" | "hour" | "minute" | "second" | "millisecond" | "hours" | "minutes" | "seconds" | "milliseconds" | "days" | "years" | "d" | "h" | "ms" | "w" | "quarter" | "quarters" | "Q" | undefined, float?: boolean | undefined) => number;
|
|
105
105
|
valueOf: () => number;
|
|
106
106
|
unix: () => number;
|
|
107
107
|
daysInMonth: () => number;
|
|
@@ -171,7 +171,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
171
171
|
startOf: (unit: dayjs.OpUnitType) => dayjs.Dayjs;
|
|
172
172
|
endOf: (unit: dayjs.OpUnitType) => dayjs.Dayjs;
|
|
173
173
|
format: (template?: string | undefined) => string;
|
|
174
|
-
diff: (date?: string | number | Date | dayjs.Dayjs | null | undefined, unit?: "year" | "month" | "date" | "dates" | "week" | "D" | "M" | "y" | "weeks" | "months" | "day" | "hour" | "minute" | "second" | "millisecond" | "hours" | "minutes" | "seconds" | "
|
|
174
|
+
diff: (date?: string | number | Date | dayjs.Dayjs | null | undefined, unit?: "year" | "month" | "date" | "dates" | "week" | "D" | "M" | "y" | "weeks" | "months" | "m" | "s" | "day" | "hour" | "minute" | "second" | "millisecond" | "hours" | "minutes" | "seconds" | "milliseconds" | "days" | "years" | "d" | "h" | "ms" | "w" | "quarter" | "quarters" | "Q" | undefined, float?: boolean | undefined) => number;
|
|
175
175
|
valueOf: () => number;
|
|
176
176
|
unix: () => number;
|
|
177
177
|
daysInMonth: () => number;
|
|
@@ -116,7 +116,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
116
116
|
startOf: (unit: dayjs.OpUnitType) => dayjs.Dayjs;
|
|
117
117
|
endOf: (unit: dayjs.OpUnitType) => dayjs.Dayjs;
|
|
118
118
|
format: (template?: string | undefined) => string;
|
|
119
|
-
diff: (date?: string | number | Date | dayjs.Dayjs | null | undefined, unit?: "year" | "month" | "date" | "dates" | "week" | "D" | "M" | "y" | "weeks" | "months" | "day" | "hour" | "minute" | "second" | "millisecond" | "hours" | "minutes" | "seconds" | "
|
|
119
|
+
diff: (date?: string | number | Date | dayjs.Dayjs | null | undefined, unit?: "year" | "month" | "date" | "dates" | "week" | "D" | "M" | "y" | "weeks" | "months" | "m" | "s" | "day" | "hour" | "minute" | "second" | "millisecond" | "hours" | "minutes" | "seconds" | "milliseconds" | "days" | "years" | "d" | "h" | "ms" | "w" | "quarter" | "quarters" | "Q" | undefined, float?: boolean | undefined) => number;
|
|
120
120
|
valueOf: () => number;
|
|
121
121
|
unix: () => number;
|
|
122
122
|
daysInMonth: () => number;
|
|
@@ -186,7 +186,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
186
186
|
startOf: (unit: dayjs.OpUnitType) => dayjs.Dayjs;
|
|
187
187
|
endOf: (unit: dayjs.OpUnitType) => dayjs.Dayjs;
|
|
188
188
|
format: (template?: string | undefined) => string;
|
|
189
|
-
diff: (date?: string | number | Date | dayjs.Dayjs | null | undefined, unit?: "year" | "month" | "date" | "dates" | "week" | "D" | "M" | "y" | "weeks" | "months" | "day" | "hour" | "minute" | "second" | "millisecond" | "hours" | "minutes" | "seconds" | "
|
|
189
|
+
diff: (date?: string | number | Date | dayjs.Dayjs | null | undefined, unit?: "year" | "month" | "date" | "dates" | "week" | "D" | "M" | "y" | "weeks" | "months" | "m" | "s" | "day" | "hour" | "minute" | "second" | "millisecond" | "hours" | "minutes" | "seconds" | "milliseconds" | "days" | "years" | "d" | "h" | "ms" | "w" | "quarter" | "quarters" | "Q" | undefined, float?: boolean | undefined) => number;
|
|
190
190
|
valueOf: () => number;
|
|
191
191
|
unix: () => number;
|
|
192
192
|
daysInMonth: () => number;
|
|
@@ -13252,8 +13252,8 @@ declare const _TimeSelect: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
13252
13252
|
readonly prefixIcon: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>;
|
|
13253
13253
|
readonly end: string;
|
|
13254
13254
|
readonly start: string;
|
|
13255
|
-
readonly clearIcon: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>;
|
|
13256
13255
|
readonly format: string;
|
|
13256
|
+
readonly clearIcon: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>;
|
|
13257
13257
|
}>>;
|
|
13258
13258
|
export default _TimeSelect;
|
|
13259
13259
|
export declare const ElTimeSelect: SFCWithInstall<import("vue").DefineComponent<{
|
|
@@ -26509,6 +26509,6 @@ export declare const ElTimeSelect: SFCWithInstall<import("vue").DefineComponent<
|
|
|
26509
26509
|
readonly prefixIcon: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>;
|
|
26510
26510
|
readonly end: string;
|
|
26511
26511
|
readonly start: string;
|
|
26512
|
-
readonly clearIcon: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>;
|
|
26513
26512
|
readonly format: string;
|
|
26513
|
+
readonly clearIcon: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>;
|
|
26514
26514
|
}>>;
|
|
@@ -13251,7 +13251,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13251
13251
|
readonly prefixIcon: import("../../../utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>;
|
|
13252
13252
|
readonly end: string;
|
|
13253
13253
|
readonly start: string;
|
|
13254
|
-
readonly clearIcon: import("../../../utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>;
|
|
13255
13254
|
readonly format: string;
|
|
13255
|
+
readonly clearIcon: import("../../../utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>;
|
|
13256
13256
|
}>;
|
|
13257
13257
|
export default _default;
|
package/es/index.mjs
CHANGED
|
@@ -51,6 +51,8 @@ export { ElColorPicker } from './components/color-picker/index.mjs';
|
|
|
51
51
|
export { configProviderProps, messageConfig } from './components/config-provider/src/config-provider.mjs';
|
|
52
52
|
export { ElConfigProvider } from './components/config-provider/index.mjs';
|
|
53
53
|
export { ElAside, ElContainer, ElFooter, ElHeader, ElMain } from './components/container/index.mjs';
|
|
54
|
+
export { countdownEmits, countdownProps } from './components/countdown/src/countdown.mjs';
|
|
55
|
+
export { ElCountdown } from './components/countdown/index.mjs';
|
|
54
56
|
export { ElDatePicker } from './components/date-picker/index.mjs';
|
|
55
57
|
export { descriptionProps } from './components/descriptions/src/description.mjs';
|
|
56
58
|
export { ElDescriptions, ElDescriptionsItem } from './components/descriptions/index.mjs';
|
|
@@ -130,6 +132,8 @@ export { ElSlider } from './components/slider/index.mjs';
|
|
|
130
132
|
export { spaceProps } from './components/space/src/space.mjs';
|
|
131
133
|
export { useSpace } from './components/space/src/use-space.mjs';
|
|
132
134
|
export { ElSpace } from './components/space/index.mjs';
|
|
135
|
+
export { statisticProps } from './components/statistic/src/statistic.mjs';
|
|
136
|
+
export { ElStatistic } from './components/statistic/index.mjs';
|
|
133
137
|
export { stepProps } from './components/steps/src/item.mjs';
|
|
134
138
|
export { stepsEmits, stepsProps } from './components/steps/src/steps.mjs';
|
|
135
139
|
export { ElStep, ElSteps } from './components/steps/index.mjs';
|
|
@@ -144,7 +148,7 @@ export { tableV2Props } from './components/table-v2/src/table.mjs';
|
|
|
144
148
|
export { tableV2RowProps } from './components/table-v2/src/row.mjs';
|
|
145
149
|
export { ElAutoResizer, ElTableV2 } from './components/table-v2/index.mjs';
|
|
146
150
|
export { tabsEmits, tabsProps } from './components/tabs/src/tabs.mjs';
|
|
147
|
-
export { tabBarProps } from './components/tabs/src/tab-
|
|
151
|
+
export { tabBarProps } from './components/tabs/src/tab-bar2.mjs';
|
|
148
152
|
export { tabNavEmits, tabNavProps } from './components/tabs/src/tab-nav.mjs';
|
|
149
153
|
export { tabPaneProps } from './components/tabs/src/tab-pane.mjs';
|
|
150
154
|
export { ElTabPane, ElTabs } from './components/tabs/index.mjs';
|
|
@@ -178,9 +182,6 @@ export { default as DynamicSizeList } from './components/virtual-list/src/compon
|
|
|
178
182
|
export { default as FixedSizeGrid } from './components/virtual-list/src/components/fixed-size-grid.mjs';
|
|
179
183
|
export { default as DynamicSizeGrid } from './components/virtual-list/src/components/dynamic-size-grid.mjs';
|
|
180
184
|
export { virtualizedGridProps, virtualizedListProps, virtualizedProps, virtualizedScrollbarProps } from './components/virtual-list/src/props.mjs';
|
|
181
|
-
export { groupFormat, statisticProps } from './components/statistic/src/statistic.mjs';
|
|
182
|
-
export { countdownEmits, countdownProps, formatTimeStr } from './components/statistic/src/countdown.mjs';
|
|
183
|
-
export { ElCountdown, ElStatistic } from './components/statistic/index.mjs';
|
|
184
185
|
export { ElInfiniteScroll } from './components/infinite-scroll/index.mjs';
|
|
185
186
|
export { ElLoading } from './components/loading/index.mjs';
|
|
186
187
|
export { vLoading as ElLoadingDirective, vLoading } from './components/loading/src/directive.mjs';
|
package/es/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../packages/element-plus/index.ts"],"sourcesContent":["import installer from './defaults'\nexport * from '@element-plus/components'\nexport * from '@element-plus/constants'\nexport * from '@element-plus/directives'\nexport * from '@element-plus/hooks'\nexport * from '@element-plus/tokens'\nexport * from './make-installer'\n\nexport const install = installer.install\nexport const version = installer.version\nexport default installer\n\nexport { default as dayjs } from 'dayjs'\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../packages/element-plus/index.ts"],"sourcesContent":["import installer from './defaults'\nexport * from '@element-plus/components'\nexport * from '@element-plus/constants'\nexport * from '@element-plus/directives'\nexport * from '@element-plus/hooks'\nexport * from '@element-plus/tokens'\nexport * from './make-installer'\n\nexport const install = installer.install\nexport const version = installer.version\nexport default installer\n\nexport { default as dayjs } from 'dayjs'\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOY,MAAC,OAAO,GAAG,SAAS,CAAC,QAAQ;AAC7B,MAAC,OAAO,GAAG,SAAS,CAAC;;;;"}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
name: string;
|
|
3
|
+
el: {
|
|
4
|
+
colorpicker: {
|
|
5
|
+
confirm: string;
|
|
6
|
+
clear: string;
|
|
7
|
+
defaultLabel: string;
|
|
8
|
+
description: string;
|
|
9
|
+
};
|
|
10
|
+
datepicker: {
|
|
11
|
+
now: string;
|
|
12
|
+
today: string;
|
|
13
|
+
cancel: string;
|
|
14
|
+
clear: string;
|
|
15
|
+
confirm: string;
|
|
16
|
+
dateTablePrompt: string;
|
|
17
|
+
monthTablePrompt: string;
|
|
18
|
+
yearTablePrompt: string;
|
|
19
|
+
selectedDate: string;
|
|
20
|
+
selectDate: string;
|
|
21
|
+
selectTime: string;
|
|
22
|
+
startDate: string;
|
|
23
|
+
startTime: string;
|
|
24
|
+
endDate: string;
|
|
25
|
+
endTime: string;
|
|
26
|
+
prevYear: string;
|
|
27
|
+
nextYear: string;
|
|
28
|
+
prevMonth: string;
|
|
29
|
+
nextMonth: string;
|
|
30
|
+
year: string;
|
|
31
|
+
month1: string;
|
|
32
|
+
month2: string;
|
|
33
|
+
month3: string;
|
|
34
|
+
month4: string;
|
|
35
|
+
month5: string;
|
|
36
|
+
month6: string;
|
|
37
|
+
month7: string;
|
|
38
|
+
month8: string;
|
|
39
|
+
month9: string;
|
|
40
|
+
month10: string;
|
|
41
|
+
month11: string;
|
|
42
|
+
month12: string;
|
|
43
|
+
week: string;
|
|
44
|
+
weeks: {
|
|
45
|
+
sun: string;
|
|
46
|
+
mon: string;
|
|
47
|
+
tue: string;
|
|
48
|
+
wed: string;
|
|
49
|
+
thu: string;
|
|
50
|
+
fri: string;
|
|
51
|
+
sat: string;
|
|
52
|
+
};
|
|
53
|
+
weeksFull: {
|
|
54
|
+
sun: string;
|
|
55
|
+
mon: string;
|
|
56
|
+
tue: string;
|
|
57
|
+
wed: string;
|
|
58
|
+
thu: string;
|
|
59
|
+
fri: string;
|
|
60
|
+
sat: string;
|
|
61
|
+
};
|
|
62
|
+
months: {
|
|
63
|
+
jan: string;
|
|
64
|
+
feb: string;
|
|
65
|
+
mar: string;
|
|
66
|
+
apr: string;
|
|
67
|
+
may: string;
|
|
68
|
+
jun: string;
|
|
69
|
+
jul: string;
|
|
70
|
+
aug: string;
|
|
71
|
+
sep: string;
|
|
72
|
+
oct: string;
|
|
73
|
+
nov: string;
|
|
74
|
+
dec: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
inputNumber: {
|
|
78
|
+
decrease: string;
|
|
79
|
+
increase: string;
|
|
80
|
+
};
|
|
81
|
+
select: {
|
|
82
|
+
loading: string;
|
|
83
|
+
noMatch: string;
|
|
84
|
+
noData: string;
|
|
85
|
+
placeholder: string;
|
|
86
|
+
};
|
|
87
|
+
dropdown: {
|
|
88
|
+
toggleDropdown: string;
|
|
89
|
+
};
|
|
90
|
+
cascader: {
|
|
91
|
+
noMatch: string;
|
|
92
|
+
loading: string;
|
|
93
|
+
placeholder: string;
|
|
94
|
+
noData: string;
|
|
95
|
+
};
|
|
96
|
+
pagination: {
|
|
97
|
+
goto: string;
|
|
98
|
+
pagesize: string;
|
|
99
|
+
total: string;
|
|
100
|
+
pageClassifier: string;
|
|
101
|
+
deprecationWarning: string;
|
|
102
|
+
};
|
|
103
|
+
dialog: {
|
|
104
|
+
close: string;
|
|
105
|
+
};
|
|
106
|
+
drawer: {
|
|
107
|
+
close: string;
|
|
108
|
+
};
|
|
109
|
+
messagebox: {
|
|
110
|
+
title: string;
|
|
111
|
+
confirm: string;
|
|
112
|
+
cancel: string;
|
|
113
|
+
error: string;
|
|
114
|
+
close: string;
|
|
115
|
+
};
|
|
116
|
+
upload: {
|
|
117
|
+
deleteTip: string;
|
|
118
|
+
delete: string;
|
|
119
|
+
preview: string;
|
|
120
|
+
continue: string;
|
|
121
|
+
};
|
|
122
|
+
slider: {
|
|
123
|
+
defaultLabel: string;
|
|
124
|
+
defaultRangeStartLabel: string;
|
|
125
|
+
defaultRangeEndLabel: string;
|
|
126
|
+
};
|
|
127
|
+
table: {
|
|
128
|
+
emptyText: string;
|
|
129
|
+
confirmFilter: string;
|
|
130
|
+
resetFilter: string;
|
|
131
|
+
clearFilter: string;
|
|
132
|
+
sumText: string;
|
|
133
|
+
};
|
|
134
|
+
tree: {
|
|
135
|
+
emptyText: string;
|
|
136
|
+
};
|
|
137
|
+
transfer: {
|
|
138
|
+
noMatch: string;
|
|
139
|
+
noData: string;
|
|
140
|
+
titles: string[];
|
|
141
|
+
filterPlaceholder: string;
|
|
142
|
+
noCheckedFormat: string;
|
|
143
|
+
hasCheckedFormat: string;
|
|
144
|
+
};
|
|
145
|
+
image: {
|
|
146
|
+
error: string;
|
|
147
|
+
};
|
|
148
|
+
pageHeader: {
|
|
149
|
+
title: string;
|
|
150
|
+
};
|
|
151
|
+
popconfirm: {
|
|
152
|
+
confirmButtonText: string;
|
|
153
|
+
cancelButtonText: string;
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
export default _default;
|