@element-plus/nightly 0.0.20220204 → 0.0.20220208
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/README.md +6 -12
- package/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/dist/index.full.js +47984 -48651
- package/dist/index.full.min.js +11 -11
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +11 -11
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +41639 -42306
- 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/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/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/src/alert2.mjs +4 -2
- package/es/components/alert/src/alert2.mjs.map +1 -1
- package/es/components/autocomplete/src/index.mjs +1 -1
- package/es/components/autocomplete/src/index.mjs.map +1 -1
- package/es/components/badge/src/badge2.mjs +4 -2
- package/es/components/badge/src/badge2.mjs.map +1 -1
- package/es/components/carousel/src/main.mjs +1 -1
- package/es/components/carousel/src/main.mjs.map +1 -1
- package/es/components/cascader/src/index.mjs +1 -1
- package/es/components/cascader/src/index.mjs.map +1 -1
- package/es/components/cascader-panel/src/index.mjs +1 -1
- package/es/components/cascader-panel/src/index.mjs.map +1 -1
- package/es/components/cascader-panel/src/store.mjs +1 -1
- package/es/components/cascader-panel/src/store.mjs.map +1 -1
- package/es/components/col/src/col.mjs +8 -5
- package/es/components/col/src/col.mjs.map +1 -1
- package/es/components/collapse/index.d.ts +33 -0
- package/es/components/collapse/src/collapse-item.mjs +26 -16
- package/es/components/collapse/src/collapse-item.mjs.map +1 -1
- package/es/components/collapse/src/collapse-item.vue.d.ts +11 -0
- package/es/components/collapse/src/collapse.mjs +11 -8
- package/es/components/collapse/src/collapse.mjs.map +1 -1
- package/es/components/collapse/src/collapse.vue.d.ts +11 -0
- package/es/components/collapse-transition/index.d.ts +22 -0
- package/es/components/collapse-transition/src/collapse-transition.mjs +8 -2
- package/es/components/collapse-transition/src/collapse-transition.mjs.map +1 -1
- package/es/components/collapse-transition/src/collapse-transition.vue.d.ts +11 -0
- package/es/components/color-picker/index.d.ts +24 -2
- package/es/components/color-picker/src/index.mjs +41 -34
- package/es/components/color-picker/src/index.mjs.map +1 -1
- package/es/components/color-picker/src/index.vue.d.ts +12 -1
- package/es/components/infinite-scroll/src/index.mjs +1 -1
- package/es/components/infinite-scroll/src/index.mjs.map +1 -1
- package/es/components/notification/src/notification.vue.d.ts +11 -0
- package/es/components/notification/src/notification2.mjs +24 -19
- package/es/components/notification/src/notification2.mjs.map +1 -1
- package/es/components/overlay/src/overlay.mjs +3 -1
- package/es/components/overlay/src/overlay.mjs.map +1 -1
- package/es/components/page-header/index.d.ts +11 -0
- package/es/components/page-header/src/page-header.vue.d.ts +11 -0
- package/es/components/page-header/src/page-header2.mjs +24 -19
- package/es/components/page-header/src/page-header2.mjs.map +1 -1
- package/es/components/pagination/src/components/sizes.mjs +1 -1
- package/es/components/pagination/src/components/sizes.mjs.map +1 -1
- package/es/components/pagination/src/pagination.mjs +5 -3
- package/es/components/pagination/src/pagination.mjs.map +1 -1
- package/es/components/popconfirm/index.d.ts +11 -0
- package/es/components/popconfirm/src/popconfirm.vue.d.ts +11 -0
- package/es/components/popconfirm/src/popconfirm2.mjs +21 -15
- package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
- package/es/components/progress/index.d.ts +11 -0
- package/es/components/progress/src/progress.vue.d.ts +11 -0
- package/es/components/progress/src/progress2.mjs +39 -36
- package/es/components/progress/src/progress2.mjs.map +1 -1
- package/es/components/select/src/useSelect.mjs +1 -2
- package/es/components/select/src/useSelect.mjs.map +1 -1
- package/es/components/select-v2/src/useSelect.mjs +1 -2
- package/es/components/select-v2/src/useSelect.mjs.map +1 -1
- package/es/components/slider/src/useSliderButton.mjs +1 -1
- package/es/components/slider/src/useSliderButton.mjs.map +1 -1
- package/es/components/table/src/store/helper.mjs +1 -1
- package/es/components/table/src/store/helper.mjs.map +1 -1
- package/es/components/table/src/table/style-helper.mjs +2 -0
- package/es/components/table/src/table/style-helper.mjs.map +1 -1
- package/es/components/table/src/table-body/events-helper.mjs +1 -1
- package/es/components/table/src/table-body/events-helper.mjs.map +1 -1
- package/es/components/table/src/table.mjs +1 -1
- package/es/components/table/src/table.mjs.map +1 -1
- package/es/components/teleport/index.d.ts +11 -0
- package/es/components/teleport/src/teleport.vue.d.ts +11 -0
- package/es/components/teleport/src/teleport2.mjs +7 -3
- package/es/components/teleport/src/teleport2.mjs.map +1 -1
- package/es/components/time-picker/src/common/picker.mjs +1 -1
- package/es/components/time-picker/src/common/picker.mjs.map +1 -1
- package/es/components/time-picker/src/time-picker-com/basic-time-spinner.mjs +1 -1
- package/es/components/time-picker/src/time-picker-com/basic-time-spinner.mjs.map +1 -1
- package/es/components/time-picker/src/time-picker-com/panel-time-range.mjs +1 -1
- package/es/components/time-picker/src/time-picker-com/panel-time-range.mjs.map +1 -1
- package/es/components/tree/index.d.ts +8 -8
- package/es/components/tree/src/tree.mjs +0 -1
- package/es/components/tree/src/tree.mjs.map +1 -1
- package/es/components/tree/src/tree.vue.d.ts +4 -4
- package/es/components/upload/src/useHandlers.mjs +1 -1
- package/es/components/upload/src/useHandlers.mjs.map +1 -1
- package/es/components/virtual-list/src/hooks/use-cache.mjs +2 -2
- package/es/components/virtual-list/src/hooks/use-cache.mjs.map +1 -1
- package/es/hooks/use-attrs/index.mjs +1 -1
- package/es/hooks/use-attrs/index.mjs.map +1 -1
- package/es/hooks/use-locale/index.mjs +1 -1
- package/es/hooks/use-locale/index.mjs.map +1 -1
- package/es/utils/props.mjs +1 -1
- package/es/utils/props.mjs.map +1 -1
- package/es/utils/util.mjs +1 -1
- package/es/utils/util.mjs.map +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/alert/src/alert2.js +4 -2
- package/lib/components/alert/src/alert2.js.map +1 -1
- package/lib/components/autocomplete/src/index.js +2 -6
- package/lib/components/autocomplete/src/index.js.map +1 -1
- package/lib/components/badge/src/badge2.js +4 -2
- package/lib/components/badge/src/badge2.js.map +1 -1
- package/lib/components/carousel/src/main.js +3 -7
- package/lib/components/carousel/src/main.js.map +1 -1
- package/lib/components/cascader/src/index.js +2 -6
- package/lib/components/cascader/src/index.js.map +1 -1
- package/lib/components/cascader-panel/src/index.js +3 -7
- package/lib/components/cascader-panel/src/index.js.map +1 -1
- package/lib/components/cascader-panel/src/store.js +3 -7
- package/lib/components/cascader-panel/src/store.js.map +1 -1
- package/lib/components/col/src/col.js +8 -5
- package/lib/components/col/src/col.js.map +1 -1
- package/lib/components/collapse/index.d.ts +33 -0
- package/lib/components/collapse/src/collapse-item.js +26 -16
- package/lib/components/collapse/src/collapse-item.js.map +1 -1
- package/lib/components/collapse/src/collapse-item.vue.d.ts +11 -0
- package/lib/components/collapse/src/collapse.js +10 -7
- package/lib/components/collapse/src/collapse.js.map +1 -1
- package/lib/components/collapse/src/collapse.vue.d.ts +11 -0
- package/lib/components/collapse-transition/index.d.ts +22 -0
- package/lib/components/collapse-transition/src/collapse-transition.js +8 -2
- package/lib/components/collapse-transition/src/collapse-transition.js.map +1 -1
- package/lib/components/collapse-transition/src/collapse-transition.vue.d.ts +11 -0
- package/lib/components/color-picker/index.d.ts +24 -2
- package/lib/components/color-picker/src/index.js +43 -40
- package/lib/components/color-picker/src/index.js.map +1 -1
- package/lib/components/color-picker/src/index.vue.d.ts +12 -1
- package/lib/components/infinite-scroll/src/index.js +3 -7
- package/lib/components/infinite-scroll/src/index.js.map +1 -1
- package/lib/components/notification/src/notification.vue.d.ts +11 -0
- package/lib/components/notification/src/notification2.js +24 -19
- package/lib/components/notification/src/notification2.js.map +1 -1
- package/lib/components/overlay/src/overlay.js +5 -3
- package/lib/components/overlay/src/overlay.js.map +1 -1
- package/lib/components/page-header/index.d.ts +11 -0
- package/lib/components/page-header/src/page-header.vue.d.ts +11 -0
- package/lib/components/page-header/src/page-header2.js +23 -18
- package/lib/components/page-header/src/page-header2.js.map +1 -1
- package/lib/components/pagination/src/components/sizes.js +2 -6
- package/lib/components/pagination/src/components/sizes.js.map +1 -1
- package/lib/components/pagination/src/pagination.js +5 -3
- package/lib/components/pagination/src/pagination.js.map +1 -1
- package/lib/components/popconfirm/index.d.ts +11 -0
- package/lib/components/popconfirm/src/popconfirm.vue.d.ts +11 -0
- package/lib/components/popconfirm/src/popconfirm2.js +20 -14
- package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
- package/lib/components/progress/index.d.ts +11 -0
- package/lib/components/progress/src/progress.vue.d.ts +11 -0
- package/lib/components/progress/src/progress2.js +39 -36
- package/lib/components/progress/src/progress2.js.map +1 -1
- package/lib/components/select/src/useSelect.js +5 -11
- package/lib/components/select/src/useSelect.js.map +1 -1
- package/lib/components/select-v2/src/useSelect.js +4 -10
- package/lib/components/select-v2/src/useSelect.js.map +1 -1
- package/lib/components/slider/src/useSliderButton.js +3 -7
- package/lib/components/slider/src/useSliderButton.js.map +1 -1
- package/lib/components/table/src/store/helper.js +2 -6
- package/lib/components/table/src/store/helper.js.map +1 -1
- package/lib/components/table/src/table/style-helper.js +2 -0
- package/lib/components/table/src/table/style-helper.js.map +1 -1
- package/lib/components/table/src/table-body/events-helper.js +3 -7
- package/lib/components/table/src/table-body/events-helper.js.map +1 -1
- package/lib/components/table/src/table.js +2 -6
- package/lib/components/table/src/table.js.map +1 -1
- package/lib/components/teleport/index.d.ts +11 -0
- package/lib/components/teleport/src/teleport.vue.d.ts +11 -0
- package/lib/components/teleport/src/teleport2.js +6 -2
- package/lib/components/teleport/src/teleport2.js.map +1 -1
- package/lib/components/time-picker/src/common/picker.js +2 -3
- package/lib/components/time-picker/src/common/picker.js.map +1 -1
- package/lib/components/time-picker/src/time-picker-com/basic-time-spinner.js +2 -6
- package/lib/components/time-picker/src/time-picker-com/basic-time-spinner.js.map +1 -1
- package/lib/components/time-picker/src/time-picker-com/panel-time-range.js +4 -5
- package/lib/components/time-picker/src/time-picker-com/panel-time-range.js.map +1 -1
- package/lib/components/tree/index.d.ts +8 -8
- package/lib/components/tree/src/tree.js +0 -1
- package/lib/components/tree/src/tree.js.map +1 -1
- package/lib/components/tree/src/tree.vue.d.ts +4 -4
- package/lib/components/upload/src/useHandlers.js +2 -6
- package/lib/components/upload/src/useHandlers.js.map +1 -1
- package/lib/components/virtual-list/src/hooks/use-cache.js +2 -3
- package/lib/components/virtual-list/src/hooks/use-cache.js.map +1 -1
- package/lib/hooks/use-attrs/index.js +2 -6
- package/lib/hooks/use-attrs/index.js.map +1 -1
- package/lib/hooks/use-locale/index.js +2 -6
- package/lib/hooks/use-locale/index.js.map +1 -1
- package/lib/utils/props.js +2 -6
- package/lib/utils/props.js.map +1 -1
- package/lib/utils/util.js +2 -6
- package/lib/utils/util.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +6 -2
- package/theme-chalk/el-pagination.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/pagination.scss +4 -1
- package/web-types.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, unref, computed, resolveComponent, openBlock, createBlock, mergeProps, withCtx, createElementVNode, normalizeStyle, resolveDynamicComponent, createCommentVNode, createTextVNode, toDisplayString, createVNode, renderSlot } from 'vue';
|
|
1
|
+
import { defineComponent, ref, unref, computed, resolveComponent, openBlock, createBlock, mergeProps, withCtx, createElementVNode, normalizeClass, normalizeStyle, resolveDynamicComponent, createCommentVNode, createTextVNode, toDisplayString, createVNode, renderSlot } from 'vue';
|
|
2
2
|
import { ElButton } from '../../button/index.mjs';
|
|
3
3
|
import { ElIcon } from '../../icon/index.mjs';
|
|
4
4
|
import { ElTooltip } from '../../tooltip/index.mjs';
|
|
@@ -8,8 +8,9 @@ import { popconfirmProps } from './popconfirm.mjs';
|
|
|
8
8
|
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
9
9
|
import { useDeprecateAppendToBody } from '../../popper/src/deprecation.mjs';
|
|
10
10
|
import { useLocale } from '../../../hooks/use-locale/index.mjs';
|
|
11
|
+
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
11
12
|
|
|
12
|
-
const COMPONENT_NAME = "
|
|
13
|
+
const COMPONENT_NAME = "ElPopconfirm";
|
|
13
14
|
const _sfc_main = defineComponent({
|
|
14
15
|
name: COMPONENT_NAME,
|
|
15
16
|
components: {
|
|
@@ -21,6 +22,7 @@ const _sfc_main = defineComponent({
|
|
|
21
22
|
setup(props) {
|
|
22
23
|
const { compatTeleported } = useDeprecateAppendToBody(COMPONENT_NAME, "appendToBody");
|
|
23
24
|
const { t } = useLocale();
|
|
25
|
+
const ns = useNamespace("popconfirm");
|
|
24
26
|
const tooltipRef = ref();
|
|
25
27
|
const hidePopper = () => {
|
|
26
28
|
var _a, _b;
|
|
@@ -45,15 +47,13 @@ const _sfc_main = defineComponent({
|
|
|
45
47
|
finalConfirmButtonText,
|
|
46
48
|
finalCancelButtonText,
|
|
47
49
|
tooltipRef,
|
|
50
|
+
ns,
|
|
48
51
|
compatTeleported,
|
|
49
52
|
confirm,
|
|
50
53
|
cancel
|
|
51
54
|
};
|
|
52
55
|
}
|
|
53
56
|
});
|
|
54
|
-
const _hoisted_1 = { class: "el-popconfirm" };
|
|
55
|
-
const _hoisted_2 = { class: "el-popconfirm__main" };
|
|
56
|
-
const _hoisted_3 = { class: "el-popconfirm__action" };
|
|
57
57
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
58
58
|
const _component_el_icon = resolveComponent("el-icon");
|
|
59
59
|
const _component_el_button = resolveComponent("el-button");
|
|
@@ -61,28 +61,34 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
61
61
|
return openBlock(), createBlock(_component_el_tooltip, mergeProps({ ref: "tooltipRef" }, _ctx.$attrs, {
|
|
62
62
|
trigger: "click",
|
|
63
63
|
effect: "light",
|
|
64
|
-
"popper-class":
|
|
64
|
+
"popper-class": `${_ctx.ns.namespace.value}-popover`,
|
|
65
65
|
teleported: _ctx.compatTeleported,
|
|
66
66
|
"fallback-placements": ["bottom", "top", "right", "left"],
|
|
67
67
|
"hide-after": _ctx.hideAfter,
|
|
68
68
|
persistent: ""
|
|
69
69
|
}), {
|
|
70
70
|
content: withCtx(() => [
|
|
71
|
-
createElementVNode("div",
|
|
72
|
-
|
|
71
|
+
createElementVNode("div", {
|
|
72
|
+
class: normalizeClass(_ctx.ns.b())
|
|
73
|
+
}, [
|
|
74
|
+
createElementVNode("div", {
|
|
75
|
+
class: normalizeClass(_ctx.ns.e("main"))
|
|
76
|
+
}, [
|
|
73
77
|
!_ctx.hideIcon && _ctx.icon ? (openBlock(), createBlock(_component_el_icon, {
|
|
74
78
|
key: 0,
|
|
75
|
-
class: "
|
|
79
|
+
class: normalizeClass(_ctx.ns.e("icon")),
|
|
76
80
|
style: normalizeStyle({ color: _ctx.iconColor })
|
|
77
81
|
}, {
|
|
78
82
|
default: withCtx(() => [
|
|
79
83
|
(openBlock(), createBlock(resolveDynamicComponent(_ctx.icon)))
|
|
80
84
|
]),
|
|
81
85
|
_: 1
|
|
82
|
-
}, 8, ["style"])) : createCommentVNode("v-if", true),
|
|
86
|
+
}, 8, ["class", "style"])) : createCommentVNode("v-if", true),
|
|
83
87
|
createTextVNode(" " + toDisplayString(_ctx.title), 1)
|
|
84
|
-
]),
|
|
85
|
-
createElementVNode("div",
|
|
88
|
+
], 2),
|
|
89
|
+
createElementVNode("div", {
|
|
90
|
+
class: normalizeClass(_ctx.ns.e("action"))
|
|
91
|
+
}, [
|
|
86
92
|
createVNode(_component_el_button, {
|
|
87
93
|
size: "small",
|
|
88
94
|
type: _ctx.cancelButtonType,
|
|
@@ -103,14 +109,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
103
109
|
]),
|
|
104
110
|
_: 1
|
|
105
111
|
}, 8, ["type", "onClick"])
|
|
106
|
-
])
|
|
107
|
-
])
|
|
112
|
+
], 2)
|
|
113
|
+
], 2)
|
|
108
114
|
]),
|
|
109
115
|
default: withCtx(() => [
|
|
110
116
|
_ctx.$slots.reference ? renderSlot(_ctx.$slots, "reference", { key: 0 }) : createCommentVNode("v-if", true)
|
|
111
117
|
]),
|
|
112
118
|
_: 3
|
|
113
|
-
}, 16, ["teleported", "hide-after"]);
|
|
119
|
+
}, 16, ["popper-class", "teleported", "hide-after"]);
|
|
114
120
|
}
|
|
115
121
|
var Popconfirm = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
116
122
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popconfirm2.mjs","sources":["../../../../../../packages/components/popconfirm/src/popconfirm.vue"],"sourcesContent":["<template>\n <el-tooltip\n ref=\"tooltipRef\"\n v-bind=\"$attrs\"\n trigger=\"click\"\n effect=\"light\"\n popper-class=\"
|
|
1
|
+
{"version":3,"file":"popconfirm2.mjs","sources":["../../../../../../packages/components/popconfirm/src/popconfirm.vue"],"sourcesContent":["<template>\n <el-tooltip\n ref=\"tooltipRef\"\n v-bind=\"$attrs\"\n trigger=\"click\"\n effect=\"light\"\n :popper-class=\"`${ns.namespace.value}-popover`\"\n :teleported=\"compatTeleported\"\n :fallback-placements=\"['bottom', 'top', 'right', 'left']\"\n :hide-after=\"hideAfter\"\n persistent\n >\n <template #content>\n <div :class=\"ns.b()\">\n <div :class=\"ns.e('main')\">\n <el-icon\n v-if=\"!hideIcon && icon\"\n :class=\"ns.e('icon')\"\n :style=\"{ color: iconColor }\"\n >\n <component :is=\"icon\" />\n </el-icon>\n {{ title }}\n </div>\n <div :class=\"ns.e('action')\">\n <el-button size=\"small\" :type=\"cancelButtonType\" @click=\"cancel\">\n {{ finalCancelButtonText }}\n </el-button>\n <el-button size=\"small\" :type=\"confirmButtonType\" @click=\"confirm\">\n {{ finalConfirmButtonText }}\n </el-button>\n </div>\n </div>\n </template>\n <template v-if=\"$slots.reference\">\n <slot name=\"reference\" />\n </template>\n </el-tooltip>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent, ref, computed, unref } from 'vue'\nimport ElButton from '@element-plus/components/button'\nimport ElIcon from '@element-plus/components/icon'\nimport ElTooltip from '@element-plus/components/tooltip'\nimport { useDeprecateAppendToBody } from '@element-plus/components/popper'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport { popconfirmProps } from './popconfirm'\n\nconst COMPONENT_NAME = 'ElPopconfirm'\nexport default defineComponent({\n name: COMPONENT_NAME,\n\n components: {\n ElButton,\n ElTooltip,\n ElIcon,\n },\n\n props: popconfirmProps,\n\n setup(props) {\n const { compatTeleported } = useDeprecateAppendToBody(\n COMPONENT_NAME,\n 'appendToBody'\n )\n const { t } = useLocale()\n const ns = useNamespace('popconfirm')\n const tooltipRef = ref<{ onClose: () => void }>()\n\n const hidePopper = () => {\n unref(tooltipRef)?.onClose?.()\n }\n\n const handleCallback = () => {\n hidePopper()\n }\n\n const confirm = (e: Event) => {\n props.onConfirm?.(e)\n handleCallback()\n }\n const cancel = (e: Event) => {\n props.onCancel?.(e)\n handleCallback()\n }\n\n const finalConfirmButtonText = computed(\n () => props.confirmButtonText || t('el.popconfirm.confirmButtonText')\n )\n const finalCancelButtonText = computed(\n () => props.cancelButtonText || t('el.popconfirm.cancelButtonText')\n )\n\n return {\n finalConfirmButtonText,\n finalCancelButtonText,\n tooltipRef,\n ns,\n\n // Deprecation in 2.1.0\n compatTeleported,\n\n confirm,\n cancel,\n }\n },\n})\n</script>\n"],"names":["_normalizeClass"],"mappings":";;;;;;;;;;;;AAiDA,MAAM,iBAAiB;AACvB,MAAK,YAAa,gBAAa;AAAA,EAC7B,MAAM;AAAA,EAEN,YAAY;AAAA,IACV;AAAA,IACA;AAAA,IACA;AAAA;AAAA,EAGF,OAAO;AAAA,EAEP,MAAM,OAAO;AACX,UAAM,EAAE,qBAAqB,yBAC3B,gBACA;AAEF,UAAM,EAAE,MAAM;AACd,UAAM,KAAK,aAAa;AACxB,UAAM,aAAa;AAEnB,UAAM,aAAa,MAAM;AACvB,YAAM;AAAa;AAGrB;AACE;AAAA;AAGF;AACE;AACA;AAAA;AAEF,oBAAgB;AACd;AACA;AAAA;AAGF,mCAA+B,SAC7B,MAAM;AAER;AAIA;AAAO;AACL;AACA;AACA,MACA;AAAA,MAGA;AAAA,MAEA;AAAA,MACA;AAAA;AAAA;AAAA;;;;;;AApGa;AACR;AACN;AAC4B,IAC5B;AAAA,IACA;AAAqB,IACtB,cAAU;AAAA;;AAEC;AAoBH;AAnBO;;AACX;AAAa;;2BACX;iBAEQA;AAAA;AACW;;;AAEjB;;;;AAEF;;AAEF,mCAAa;AAAA;WACX;AAAA;AAAuB;AAAQ;AAA0B;;;;;;;AAK7C;AAFW,YAAE;AAAM,uBAA2B;AAAA;;;;;;;;;;aAMhD;AAAgB,WAC9B;;;;;;;;;;;;"}
|
|
@@ -15,6 +15,17 @@ export declare const ElProgress: import("../../utils/types").SFCWithInstall<impo
|
|
|
15
15
|
}[]>, "", unknown, unknown, unknown>;
|
|
16
16
|
readonly format: import("../../utils/props").BuildPropReturn<import("../../utils/props").PropWrapper<(percentage: number) => string>, (percentage: number) => string, unknown, unknown, unknown>;
|
|
17
17
|
}, {
|
|
18
|
+
ns: {
|
|
19
|
+
namespace: import("vue").ComputedRef<string>;
|
|
20
|
+
b: (blockSuffix?: string) => string;
|
|
21
|
+
e: (element?: string | undefined) => string;
|
|
22
|
+
m: (modifier?: string | undefined) => string;
|
|
23
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
24
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
25
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
26
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
27
|
+
is: (name: string, state?: boolean) => string;
|
|
28
|
+
};
|
|
18
29
|
barStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
19
30
|
relativeStrokeWidth: import("vue").ComputedRef<string>;
|
|
20
31
|
radius: import("vue").ComputedRef<number>;
|
|
@@ -16,6 +16,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
16
16
|
}[]>, "", unknown, unknown, unknown>;
|
|
17
17
|
readonly format: import("../../../utils/props").BuildPropReturn<import("../../../utils/props").PropWrapper<(percentage: number) => string>, (percentage: number) => string, unknown, unknown, unknown>;
|
|
18
18
|
}, {
|
|
19
|
+
ns: {
|
|
20
|
+
namespace: import("vue").ComputedRef<string>;
|
|
21
|
+
b: (blockSuffix?: string) => string;
|
|
22
|
+
e: (element?: string | undefined) => string;
|
|
23
|
+
m: (modifier?: string | undefined) => string;
|
|
24
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
25
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
26
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
27
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
28
|
+
is: (name: string, state?: boolean) => string;
|
|
29
|
+
};
|
|
19
30
|
barStyle: import("vue").ComputedRef<CSSProperties>;
|
|
20
31
|
relativeStrokeWidth: import("vue").ComputedRef<string>;
|
|
21
32
|
radius: import("vue").ComputedRef<number>;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, renderSlot, normalizeProps, guardReactiveProps, toDisplayString, createCommentVNode, createBlock, withCtx, resolveDynamicComponent } from 'vue';
|
|
2
2
|
import { ElIcon } from '../../icon/index.mjs';
|
|
3
3
|
import { CircleCheck, CircleClose, Check, Close, WarningFilled } from '@element-plus/icons-vue';
|
|
4
|
+
import '../../../hooks/index.mjs';
|
|
4
5
|
import { progressProps } from './progress.mjs';
|
|
5
6
|
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
7
|
+
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
6
8
|
|
|
7
9
|
const _sfc_main = defineComponent({
|
|
8
10
|
name: "ElProgress",
|
|
@@ -16,6 +18,7 @@ const _sfc_main = defineComponent({
|
|
|
16
18
|
},
|
|
17
19
|
props: progressProps,
|
|
18
20
|
setup(props) {
|
|
21
|
+
const ns = useNamespace("progress");
|
|
19
22
|
const barStyle = computed(() => ({
|
|
20
23
|
width: `${props.percentage}%`,
|
|
21
24
|
animationDuration: `${props.duration}s`,
|
|
@@ -121,6 +124,7 @@ const _sfc_main = defineComponent({
|
|
|
121
124
|
};
|
|
122
125
|
});
|
|
123
126
|
return {
|
|
127
|
+
ns,
|
|
124
128
|
barStyle,
|
|
125
129
|
relativeStrokeWidth,
|
|
126
130
|
radius,
|
|
@@ -139,92 +143,91 @@ const _sfc_main = defineComponent({
|
|
|
139
143
|
}
|
|
140
144
|
});
|
|
141
145
|
const _hoisted_1 = ["aria-valuenow"];
|
|
142
|
-
const _hoisted_2 = {
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
};
|
|
146
|
-
const _hoisted_3 = {
|
|
147
|
-
key: 0,
|
|
148
|
-
class: "el-progress-bar__innerText"
|
|
149
|
-
};
|
|
150
|
-
const _hoisted_4 = { viewBox: "0 0 100 100" };
|
|
151
|
-
const _hoisted_5 = ["d", "stroke-width"];
|
|
152
|
-
const _hoisted_6 = ["d", "stroke", "stroke-linecap", "stroke-width"];
|
|
153
|
-
const _hoisted_7 = { key: 0 };
|
|
146
|
+
const _hoisted_2 = { viewBox: "0 0 100 100" };
|
|
147
|
+
const _hoisted_3 = ["d", "stroke-width"];
|
|
148
|
+
const _hoisted_4 = ["d", "stroke", "stroke-linecap", "stroke-width"];
|
|
149
|
+
const _hoisted_5 = { key: 0 };
|
|
154
150
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
155
151
|
const _component_el_icon = resolveComponent("el-icon");
|
|
156
152
|
return openBlock(), createElementBlock("div", {
|
|
157
|
-
class: normalizeClass([
|
|
158
|
-
|
|
159
|
-
_ctx.
|
|
153
|
+
class: normalizeClass([
|
|
154
|
+
_ctx.ns.b(),
|
|
155
|
+
_ctx.ns.m(_ctx.type),
|
|
156
|
+
_ctx.ns.is(_ctx.status),
|
|
160
157
|
{
|
|
161
|
-
"
|
|
162
|
-
"
|
|
158
|
+
[_ctx.ns.m("without-text")]: !_ctx.showText,
|
|
159
|
+
[_ctx.ns.m("text-inside")]: _ctx.textInside
|
|
163
160
|
}
|
|
164
|
-
]
|
|
161
|
+
]),
|
|
165
162
|
role: "progressbar",
|
|
166
163
|
"aria-valuenow": _ctx.percentage,
|
|
167
164
|
"aria-valuemin": "0",
|
|
168
165
|
"aria-valuemax": "100"
|
|
169
166
|
}, [
|
|
170
|
-
_ctx.type === "line" ? (openBlock(), createElementBlock("div",
|
|
167
|
+
_ctx.type === "line" ? (openBlock(), createElementBlock("div", {
|
|
168
|
+
key: 0,
|
|
169
|
+
class: normalizeClass(_ctx.ns.b("bar"))
|
|
170
|
+
}, [
|
|
171
171
|
createElementVNode("div", {
|
|
172
|
-
class: "
|
|
172
|
+
class: normalizeClass(_ctx.ns.be("bar", "outer")),
|
|
173
173
|
style: normalizeStyle({ height: `${_ctx.strokeWidth}px` })
|
|
174
174
|
}, [
|
|
175
175
|
createElementVNode("div", {
|
|
176
176
|
class: normalizeClass([
|
|
177
|
-
"
|
|
178
|
-
{ "
|
|
177
|
+
_ctx.ns.be("bar", "inner"),
|
|
178
|
+
{ [_ctx.ns.bem("bar", "inner", "indeterminate")]: _ctx.indeterminate }
|
|
179
179
|
]),
|
|
180
180
|
style: normalizeStyle(_ctx.barStyle)
|
|
181
181
|
}, [
|
|
182
|
-
(_ctx.showText || _ctx.$slots.default) && _ctx.textInside ? (openBlock(), createElementBlock("div",
|
|
182
|
+
(_ctx.showText || _ctx.$slots.default) && _ctx.textInside ? (openBlock(), createElementBlock("div", {
|
|
183
|
+
key: 0,
|
|
184
|
+
class: normalizeClass(_ctx.ns.be("bar", "innerText"))
|
|
185
|
+
}, [
|
|
183
186
|
renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(_ctx.slotData)), () => [
|
|
184
187
|
createElementVNode("span", null, toDisplayString(_ctx.content), 1)
|
|
185
188
|
])
|
|
186
|
-
])) : createCommentVNode("v-if", true)
|
|
189
|
+
], 2)) : createCommentVNode("v-if", true)
|
|
187
190
|
], 6)
|
|
188
|
-
],
|
|
189
|
-
])) : (openBlock(), createElementBlock("div", {
|
|
191
|
+
], 6)
|
|
192
|
+
], 2)) : (openBlock(), createElementBlock("div", {
|
|
190
193
|
key: 1,
|
|
191
|
-
class: "
|
|
194
|
+
class: normalizeClass(_ctx.ns.b("circle")),
|
|
192
195
|
style: normalizeStyle({ height: `${_ctx.width}px`, width: `${_ctx.width}px` })
|
|
193
196
|
}, [
|
|
194
|
-
(openBlock(), createElementBlock("svg",
|
|
197
|
+
(openBlock(), createElementBlock("svg", _hoisted_2, [
|
|
195
198
|
createElementVNode("path", {
|
|
196
|
-
class: "
|
|
199
|
+
class: normalizeClass(_ctx.ns.be("circle", "track")),
|
|
197
200
|
d: _ctx.trackPath,
|
|
198
201
|
stroke: "#e5e9f2",
|
|
199
202
|
"stroke-width": _ctx.relativeStrokeWidth,
|
|
200
203
|
fill: "none",
|
|
201
204
|
style: normalizeStyle(_ctx.trailPathStyle)
|
|
202
|
-
}, null,
|
|
205
|
+
}, null, 14, _hoisted_3),
|
|
203
206
|
createElementVNode("path", {
|
|
204
|
-
class: "
|
|
207
|
+
class: normalizeClass(_ctx.ns.be("circle", "path")),
|
|
205
208
|
d: _ctx.trackPath,
|
|
206
209
|
stroke: _ctx.stroke,
|
|
207
210
|
fill: "none",
|
|
208
211
|
"stroke-linecap": _ctx.strokeLinecap,
|
|
209
212
|
"stroke-width": _ctx.percentage ? _ctx.relativeStrokeWidth : 0,
|
|
210
213
|
style: normalizeStyle(_ctx.circlePathStyle)
|
|
211
|
-
}, null,
|
|
214
|
+
}, null, 14, _hoisted_4)
|
|
212
215
|
]))
|
|
213
|
-
],
|
|
216
|
+
], 6)),
|
|
214
217
|
(_ctx.showText || _ctx.$slots.default) && !_ctx.textInside ? (openBlock(), createElementBlock("div", {
|
|
215
218
|
key: 2,
|
|
216
|
-
class: "
|
|
219
|
+
class: normalizeClass(_ctx.ns.e("text")),
|
|
217
220
|
style: normalizeStyle({ fontSize: `${_ctx.progressTextSize}px` })
|
|
218
221
|
}, [
|
|
219
222
|
renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(_ctx.slotData)), () => [
|
|
220
|
-
!_ctx.status ? (openBlock(), createElementBlock("span",
|
|
223
|
+
!_ctx.status ? (openBlock(), createElementBlock("span", _hoisted_5, toDisplayString(_ctx.content), 1)) : (openBlock(), createBlock(_component_el_icon, { key: 1 }, {
|
|
221
224
|
default: withCtx(() => [
|
|
222
225
|
(openBlock(), createBlock(resolveDynamicComponent(_ctx.statusIcon)))
|
|
223
226
|
]),
|
|
224
227
|
_: 1
|
|
225
228
|
}))
|
|
226
229
|
])
|
|
227
|
-
],
|
|
230
|
+
], 6)) : createCommentVNode("v-if", true)
|
|
228
231
|
], 10, _hoisted_1);
|
|
229
232
|
}
|
|
230
233
|
var Progress = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progress2.mjs","sources":["../../../../../../packages/components/progress/src/progress.vue"],"sourcesContent":["<template>\n <div\n
|
|
1
|
+
{"version":3,"file":"progress2.mjs","sources":["../../../../../../packages/components/progress/src/progress.vue"],"sourcesContent":["<template>\n <div\n :class=\"[\n ns.b(),\n ns.m(type),\n ns.is(status),\n {\n [ns.m('without-text')]: !showText,\n [ns.m('text-inside')]: textInside,\n },\n ]\"\n role=\"progressbar\"\n :aria-valuenow=\"percentage\"\n aria-valuemin=\"0\"\n aria-valuemax=\"100\"\n >\n <div v-if=\"type === 'line'\" :class=\"ns.b('bar')\">\n <div\n :class=\"ns.be('bar', 'outer')\"\n :style=\"{ height: `${strokeWidth}px` }\"\n >\n <div\n :class=\"[\n ns.be('bar', 'inner'),\n { [ns.bem('bar', 'inner', 'indeterminate')]: indeterminate },\n ]\"\n :style=\"barStyle\"\n >\n <div\n v-if=\"(showText || $slots.default) && textInside\"\n :class=\"ns.be('bar', 'innerText')\"\n >\n <slot v-bind=\"slotData\">\n <span>{{ content }}</span>\n </slot>\n </div>\n </div>\n </div>\n </div>\n <div\n v-else\n :class=\"ns.b('circle')\"\n :style=\"{ height: `${width}px`, width: `${width}px` }\"\n >\n <svg viewBox=\"0 0 100 100\">\n <path\n :class=\"ns.be('circle', 'track')\"\n :d=\"trackPath\"\n stroke=\"#e5e9f2\"\n :stroke-width=\"relativeStrokeWidth\"\n fill=\"none\"\n :style=\"trailPathStyle\"\n />\n <path\n :class=\"ns.be('circle', 'path')\"\n :d=\"trackPath\"\n :stroke=\"stroke\"\n fill=\"none\"\n :stroke-linecap=\"strokeLinecap\"\n :stroke-width=\"percentage ? relativeStrokeWidth : 0\"\n :style=\"circlePathStyle\"\n />\n </svg>\n </div>\n <div\n v-if=\"(showText || $slots.default) && !textInside\"\n :class=\"ns.e('text')\"\n :style=\"{ fontSize: `${progressTextSize}px` }\"\n >\n <slot v-bind=\"slotData\">\n <span v-if=\"!status\">{{ content }}</span>\n <el-icon v-else><component :is=\"statusIcon\" /></el-icon>\n </slot>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { computed, defineComponent } from 'vue'\nimport { ElIcon } from '@element-plus/components/icon'\nimport {\n WarningFilled,\n CircleCheck,\n CircleClose,\n Check,\n Close,\n} from '@element-plus/icons-vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { progressProps } from './progress'\nimport type { CSSProperties } from 'vue'\n\nexport default defineComponent({\n name: 'ElProgress',\n components: {\n ElIcon,\n CircleCheck,\n CircleClose,\n Check,\n Close,\n WarningFilled,\n },\n props: progressProps,\n\n setup(props) {\n const ns = useNamespace('progress')\n\n const barStyle = computed(\n (): CSSProperties => ({\n width: `${props.percentage}%`,\n animationDuration: `${props.duration}s`,\n backgroundColor: getCurrentColor(props.percentage),\n })\n )\n\n const relativeStrokeWidth = computed(() =>\n ((props.strokeWidth / props.width) * 100).toFixed(1)\n )\n\n const radius = computed(() => {\n if (props.type === 'circle' || props.type === 'dashboard') {\n return parseInt(`${50 - parseFloat(relativeStrokeWidth.value) / 2}`, 10)\n } else {\n return 0\n }\n })\n\n const trackPath = computed(() => {\n const r = radius.value\n const isDashboard = props.type === 'dashboard'\n return `\n M 50 50\n m 0 ${isDashboard ? '' : '-'}${r}\n a ${r} ${r} 0 1 1 0 ${isDashboard ? '-' : ''}${r * 2}\n a ${r} ${r} 0 1 1 0 ${isDashboard ? '' : '-'}${r * 2}\n `\n })\n\n const perimeter = computed(() => 2 * Math.PI * radius.value)\n\n const rate = computed(() => (props.type === 'dashboard' ? 0.75 : 1))\n\n const strokeDashoffset = computed(() => {\n const offset = (-1 * perimeter.value * (1 - rate.value)) / 2\n return `${offset}px`\n })\n\n const trailPathStyle = computed(\n (): CSSProperties => ({\n strokeDasharray: `${perimeter.value * rate.value}px, ${\n perimeter.value\n }px`,\n strokeDashoffset: strokeDashoffset.value,\n })\n )\n\n const circlePathStyle = computed(\n (): CSSProperties => ({\n strokeDasharray: `${\n perimeter.value * rate.value * (props.percentage / 100)\n }px, ${perimeter.value}px`,\n strokeDashoffset: strokeDashoffset.value,\n transition: 'stroke-dasharray 0.6s ease 0s, stroke 0.6s ease',\n })\n )\n\n const stroke = computed(() => {\n let ret: string\n if (props.color) {\n ret = getCurrentColor(props.percentage)\n } else {\n switch (props.status) {\n case 'success':\n ret = '#13ce66'\n break\n case 'exception':\n ret = '#ff4949'\n break\n case 'warning':\n ret = '#e6a23c'\n break\n default:\n ret = '#20a0ff'\n }\n }\n return ret\n })\n\n const statusIcon = computed(() => {\n if (props.status === 'warning') {\n return WarningFilled\n }\n if (props.type === 'line') {\n return props.status === 'success' ? CircleCheck : CircleClose\n } else {\n return props.status === 'success' ? Check : Close\n }\n })\n\n const progressTextSize = computed(() => {\n return props.type === 'line'\n ? 12 + props.strokeWidth * 0.4\n : props.width * 0.111111 + 2\n })\n\n const content = computed(() => props.format(props.percentage))\n\n const getCurrentColor = (percentage: number) => {\n const { color } = props\n if (typeof color === 'function') {\n return color(percentage)\n } else if (typeof color === 'string') {\n return color\n } else {\n const span = 100 / color.length\n const seriesColors = color.map((seriesColor, index) => {\n if (typeof seriesColor === 'string') {\n return {\n color: seriesColor,\n percentage: (index + 1) * span,\n }\n }\n return seriesColor\n })\n const colors = seriesColors.sort((a, b) => a.percentage - b.percentage)\n\n for (const color of colors) {\n if (color.percentage > percentage) return color.color\n }\n return colors[colors.length - 1]?.color\n }\n }\n\n const slotData = computed(() => {\n return {\n percentage: props.percentage,\n }\n })\n\n return {\n ns,\n barStyle,\n relativeStrokeWidth,\n radius,\n trackPath,\n perimeter,\n rate,\n strokeDashoffset,\n trailPathStyle,\n circlePathStyle,\n stroke,\n statusIcon,\n progressTextSize,\n content,\n slotData,\n }\n },\n})\n</script>\n"],"names":["_normalizeClass","_guardReactiveProps"],"mappings":";;;;;;;;AA2FA,MAAK,YAAa,gBAAa;AAAA,EAC7B,MAAM;AAAA,EACN,YAAY;AAAA,IACV;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA;AAAA,EAEF,OAAO;AAAA,EAEP,MAAM,OAAO;AACX,UAAM,KAAK,aAAa;AAExB,UAAM,WAAW,SACf;AAAsB,MACpB,OAAO,GAAG,MAAM;AAAA,MAChB,mBAAmB,GAAG,MAAM;AAAA,MAC5B,iBAAiB,gBAAgB,MAAM;AAAA;AAI3C,UAAM,sBAAsB,SAAS,MACjC,OAAM,cAAc,MAAM,QAAS,KAAK,QAAQ;AAGpD,UAAM,SAAS,SAAS,MAAM;AAC5B,UAAI,MAAM,SAAS,YAAY,MAAM,SAAS,aAAa;AACzD,eAAO,SAAS,GAAG,KAAK,WAAW,oBAAoB,SAAS,KAAK;AAAA,aAChE;AACL,eAAO;AAAA;AAAA;AAIX,UAAM,YAAY,SAAS,MAAM;AAC/B,YAAM,IAAI,OAAO;AACjB,YAAM,cAAc,MAAM,SAAS;AACnC,aAAO;AAAA;AAAA,gBAEG,cAAc,KAAK,MAAM;AAAA,cAC3B,KAAK,aAAa,cAAc,MAAM,KAAK,IAAI;AAAA,cAC/C,KAAK,aAAa,cAAc,KAAK,MAAM,IAAI;AAAA;AAAA;AAIzD,UAAM,YAAY,SAAS,MAAM,IAAI,KAAK,KAAK,OAAO;AAEtD,UAAM,OAAO,SAAS,MAAO,MAAM,SAAS,cAAc,OAAO;AAEjE,UAAM,mBAAmB,SAAS,MAAM;AACtC,YAAM,SAAU,KAAK,UAAU,aAAa,KAAK,SAAU;AAC3D,aAAO,GAAG;AAAA;AAGZ,UAAM,iBAAiB,SACrB;AAAsB,MACpB,iBAAiB,GAAG,UAAU,QAAQ,KAAK,YACzC,UAAU;AAAA,MAEZ,kBAAkB,iBAAiB;AAAA;AAIvC,UAAM,kBAAkB,SACtB;AAAsB,MACpB,iBAAiB,GACf,UAAU,QAAQ,KAAK,eAAe,aAAa,WAC9C,UAAU;AAAA,MACjB,kBAAkB,iBAAiB;AAAA,MACnC,YAAY;AAAA;AAIhB,UAAM,SAAS,SAAS,MAAM;AAC5B,UAAI;AACJ,UAAI,MAAM,OAAO;AACf,cAAM,gBAAgB,MAAM;AAAA,aACvB;AACL,gBAAQ,MAAM;AAAA,eACP;AACH,kBAAM;AACN;AAAA,eACG;AACH,kBAAM;AACN;AAAA,eACG;AACH,kBAAM;AACN;AAAA;AAEA,kBAAM;AAAA;AAAA;AAGZ,aAAO;AAAA;AAGT,UAAM,aAAa,SAAS,MAAM;AAChC,UAAI,MAAM,WAAW,WAAW;AAC9B,eAAO;AAAA;AAET,UAAI,MAAM,SAAS,QAAQ;AACzB,eAAO,MAAM,WAAW,YAAY,cAAc;AAAA,aAC7C;AACL,eAAO,MAAM,WAAW,YAAY,QAAQ;AAAA;AAAA;AAIhD,UAAM,mBAAmB,SAAS,MAAM;AACtC,aAAO,MAAM,SAAS,SAClB,KAAK,MAAM,cAAc,MACzB,MAAM,QAAQ,WAAW;AAAA;AAG/B,UAAM,UAAU,SAAS,MAAM,MAAM,OAAO,MAAM;AAElD,UAAM,kBAAkB,CAAC,eAAuB;AAC9C,YAAM;AACN;AACE;AAAa;AAEb;AAAO;AAEP;AACA,cAAM,yBAAyB,CAAC;AAC9B,cAAI;AACF;AAAO;AACE,cACP;AAA0B;AAAA;AAG9B;AAAO;AAET;AAEA;AACE;AAAmC;AAAa;AAElD;AAAkC;AAAA;AAItC;AACE;AAAO;AACa;AAAA;AAItB;AAAO;AACL,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA;AAAA;AAAA;;;;;;;;;AA3PI;AAAc;AAAa,MAAe,QAAG;AAAG;;;AAA2F;;;;AAUhJ,IACD;AAAiB,IACjB,iBAAc;AAAA;;AAEH;;AAAuB;;AAChC;AACU;AACa;;AAErB;AACQ,gCAAqB;AAAA,iBAAiCA;AAAM;;;;;;AAQ1D;;AAEN;AACkB;;;;;;;AAQlB,MACL;AAAK;;;AAUF;AANQ;AACK,UACb;AAAO,UACN;AAAA,UACD;AAAW,UACV;AAAK;;AAUN;AAPQ;AACK,UACZ;AAAQ,UACT,QAAK;AAAM,UACV;AAAA,UACA;AAAc,UACd,gBAAK;AAAiB;;;OAKpB;AAAA;;AACD,MACL;AAAK;;AAEN;AACqB,wDACqCC;AAAV;AAA9B;;;;;;;;;;;;;"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { reactive, ref, shallowRef, inject, computed, watch, nextTick, triggerRef } from 'vue';
|
|
2
2
|
import { toRawType, isObject } from '@vue/shared';
|
|
3
|
-
import debounce from 'lodash
|
|
4
|
-
import isEqual from 'lodash/isEqual';
|
|
3
|
+
import { isEqual, debounce } from 'lodash-unified';
|
|
5
4
|
import { isClient } from '@vueuse/core';
|
|
6
5
|
import { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '../../../utils/constants.mjs';
|
|
7
6
|
import { EVENT_CODE } from '../../../utils/aria.mjs';
|