element-plus 2.1.8 → 2.1.9
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 +10 -11
- package/dist/index.css +1 -1
- package/dist/index.full.js +200 -119
- package/dist/index.full.min.js +10 -10
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +10 -10
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +199 -120
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/az.js +1 -1
- package/dist/locale/az.min.js +1 -1
- package/dist/locale/az.min.mjs +1 -1
- package/dist/locale/az.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/alert/index.d.ts +4 -4
- package/es/components/alert/src/alert.d.ts +1 -1
- package/es/components/alert/src/alert.vue.d.ts +4 -4
- package/es/components/autocomplete/index.d.ts +4599 -0
- package/es/components/autocomplete/src/autocomplete.vue.d.ts +4599 -0
- package/es/components/button/index.d.ts +4 -0
- package/es/components/button/src/button-custom.d.ts +4 -0
- package/es/components/button/src/button-custom.mjs +60 -0
- package/es/components/button/src/button-custom.mjs.map +1 -0
- package/es/components/button/src/button.d.ts +1 -0
- package/es/components/button/src/button.mjs +1 -0
- package/es/components/button/src/button.mjs.map +1 -1
- package/es/components/button/src/button.vue.d.ts +4 -0
- package/es/components/button/src/button2.mjs +2 -37
- package/es/components/button/src/button2.mjs.map +1 -1
- package/es/components/calendar/index.d.ts +4 -0
- package/es/components/calendar/src/calendar.vue.d.ts +4 -0
- package/es/components/cascader/index.d.ts +6132 -0
- package/es/components/cascader/src/index.vue.d.ts +3066 -0
- package/es/components/image/index.d.ts +4 -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 +4 -0
- package/es/components/image/src/image2.mjs +2 -1
- package/es/components/image/src/image2.mjs.map +1 -1
- package/es/components/input/index.d.ts +1533 -0
- package/es/components/input/src/input.vue.d.ts +1539 -6
- package/es/components/input/src/input2.mjs +28 -1
- package/es/components/input/src/input2.mjs.map +1 -1
- package/es/components/input-number/index.d.ts +3066 -0
- package/es/components/input-number/src/input-number.vue.d.ts +3066 -0
- package/es/components/popover/src/index.mjs +1 -0
- package/es/components/popover/src/index.mjs.map +1 -1
- package/es/components/popper/src/content2.mjs +1 -1
- package/es/components/popper/src/content2.mjs.map +1 -1
- package/es/components/progress/src/progress2.mjs +1 -1
- package/es/components/progress/src/progress2.mjs.map +1 -1
- package/es/components/scrollbar/src/scrollbar2.mjs +2 -1
- package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
- package/es/components/select/src/select.mjs +2 -6
- package/es/components/select/src/select.mjs.map +1 -1
- package/es/components/select/src/useSelect.mjs +2 -1
- package/es/components/select/src/useSelect.mjs.map +1 -1
- package/es/components/table/src/store/current.mjs +1 -0
- package/es/components/table/src/store/current.mjs.map +1 -1
- package/es/components/table/src/table-column/watcher-helper.mjs +8 -8
- package/es/components/table/src/table-column/watcher-helper.mjs.map +1 -1
- package/es/components/table-v2/index.d.ts +0 -0
- package/es/components/table-v2/index.mjs +2 -0
- package/es/components/table-v2/index.mjs.map +1 -0
- package/es/components/table-v2/src/cell.d.ts +11 -0
- package/es/components/table-v2/src/cell.mjs +20 -0
- package/es/components/table-v2/src/cell.mjs.map +1 -0
- package/es/components/table-v2/src/column.d.ts +21 -0
- package/es/components/table-v2/src/column.mjs +45 -0
- package/es/components/table-v2/src/column.mjs.map +1 -0
- package/es/components/table-v2/src/common.d.ts +43 -0
- package/es/components/table-v2/src/common.mjs +38 -0
- package/es/components/table-v2/src/common.mjs.map +1 -0
- package/es/components/table-v2/src/constants.d.ts +1 -0
- package/es/components/table-v2/src/constants.mjs +4 -0
- package/es/components/table-v2/src/constants.mjs.map +1 -0
- package/es/components/table-v2/src/grid.d.ts +40 -0
- package/es/components/table-v2/src/grid.mjs +35 -0
- package/es/components/table-v2/src/grid.mjs.map +1 -0
- package/es/components/table-v2/src/header-cell.d.ts +25 -0
- package/es/components/table-v2/src/header-cell.mjs +12 -0
- package/es/components/table-v2/src/header-cell.mjs.map +1 -0
- package/es/components/table-v2/src/header-row.d.ts +27 -0
- package/es/components/table-v2/src/header-row.mjs +14 -0
- package/es/components/table-v2/src/header-row.mjs.map +1 -0
- package/es/components/table-v2/src/header.d.ts +31 -0
- package/es/components/table-v2/src/header.mjs +33 -0
- package/es/components/table-v2/src/header.mjs.map +1 -0
- package/es/components/table-v2/src/row.d.ts +61 -0
- package/es/components/table-v2/src/row.mjs +41 -0
- package/es/components/table-v2/src/row.mjs.map +1 -0
- package/es/components/table-v2/src/table-cell.d.ts +19 -0
- package/es/components/table-v2/src/table-grid.d.ts +100 -0
- package/es/components/table-v2/src/table-header-cell.d.ts +48 -0
- package/es/components/table-v2/src/table-header-row.d.ts +52 -0
- package/es/components/table-v2/src/table-header.d.ts +69 -0
- package/es/components/table-v2/src/table-row.d.ts +79 -0
- package/es/components/table-v2/src/table.d.ts +93 -0
- package/es/components/table-v2/src/table.mjs +74 -0
- package/es/components/table-v2/src/table.mjs.map +1 -0
- package/es/components/table-v2/src/tokens.d.ts +9 -0
- package/es/components/table-v2/src/tokens.mjs +4 -0
- package/es/components/table-v2/src/tokens.mjs.map +1 -0
- package/es/components/table-v2/src/types.d.ts +78 -0
- package/es/components/table-v2/src/types.mjs +2 -0
- package/es/components/table-v2/src/types.mjs.map +1 -0
- package/es/components/table-v2/src/useTable.d.ts +13 -0
- package/es/components/table-v2/src/useTable.mjs +85 -0
- package/es/components/table-v2/src/useTable.mjs.map +1 -0
- package/es/components/tag/index.d.ts +4 -4
- package/es/components/tag/src/tag.d.ts +1 -1
- package/es/components/tag/src/tag.vue.d.ts +4 -4
- package/es/components/tree-select/style/css.d.ts +1 -1
- package/es/components/tree-select/style/css.mjs +1 -1
- package/es/components/virtual-list/index.d.ts +1 -0
- package/es/components/virtual-list/src/builders/build-grid.d.ts +23 -2
- package/es/components/virtual-list/src/builders/build-grid.mjs +10 -1
- package/es/components/virtual-list/src/builders/build-grid.mjs.map +1 -1
- package/es/components/virtual-list/src/types.d.ts +21 -0
- package/es/constants/index.mjs +1 -1
- package/es/constants/size.d.ts +6 -0
- package/es/constants/size.mjs +9 -1
- package/es/constants/size.mjs.map +1 -1
- package/es/hooks/use-namespace/index.d.ts +1 -0
- package/es/hooks/use-namespace/index.mjs.map +1 -1
- package/es/hooks/use-popper-container/index.mjs +8 -5
- package/es/hooks/use-popper-container/index.mjs.map +1 -1
- package/es/index.mjs +1 -1
- package/es/utils/vue/refs.mjs +1 -1
- package/es/utils/vue/refs.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/index.d.ts +4 -4
- package/lib/components/alert/src/alert.d.ts +1 -1
- package/lib/components/alert/src/alert.vue.d.ts +4 -4
- package/lib/components/autocomplete/index.d.ts +4599 -0
- package/lib/components/autocomplete/src/autocomplete.vue.d.ts +4599 -0
- package/lib/components/button/index.d.ts +4 -0
- package/lib/components/button/src/button-custom.d.ts +4 -0
- package/lib/components/button/src/button-custom.js +65 -0
- package/lib/components/button/src/button-custom.js.map +1 -0
- package/lib/components/button/src/button.d.ts +1 -0
- package/lib/components/button/src/button.js +1 -0
- package/lib/components/button/src/button.js.map +1 -1
- package/lib/components/button/src/button.vue.d.ts +4 -0
- package/lib/components/button/src/button2.js +2 -37
- package/lib/components/button/src/button2.js.map +1 -1
- package/lib/components/calendar/index.d.ts +4 -0
- package/lib/components/calendar/src/calendar.vue.d.ts +4 -0
- package/lib/components/cascader/index.d.ts +6132 -0
- package/lib/components/cascader/src/index.vue.d.ts +3066 -0
- package/lib/components/image/index.d.ts +4 -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 +4 -0
- package/lib/components/image/src/image2.js +2 -1
- package/lib/components/image/src/image2.js.map +1 -1
- package/lib/components/input/index.d.ts +1533 -0
- package/lib/components/input/src/input.vue.d.ts +1539 -6
- package/lib/components/input/src/input2.js +28 -1
- package/lib/components/input/src/input2.js.map +1 -1
- package/lib/components/input-number/index.d.ts +3066 -0
- package/lib/components/input-number/src/input-number.vue.d.ts +3066 -0
- package/lib/components/popover/src/index.js +1 -0
- package/lib/components/popover/src/index.js.map +1 -1
- package/lib/components/popper/src/content2.js +1 -1
- package/lib/components/popper/src/content2.js.map +1 -1
- package/lib/components/progress/src/progress2.js +1 -1
- package/lib/components/progress/src/progress2.js.map +1 -1
- package/lib/components/scrollbar/src/scrollbar2.js +1 -0
- package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
- package/lib/components/select/src/select.js +2 -6
- package/lib/components/select/src/select.js.map +1 -1
- package/lib/components/select/src/useSelect.js +2 -1
- package/lib/components/select/src/useSelect.js.map +1 -1
- package/lib/components/table/src/store/current.js +1 -0
- package/lib/components/table/src/store/current.js.map +1 -1
- package/lib/components/table/src/table-column/watcher-helper.js +8 -8
- package/lib/components/table/src/table-column/watcher-helper.js.map +1 -1
- package/lib/components/table-v2/index.d.ts +0 -0
- package/lib/components/table-v2/index.js +3 -0
- package/lib/components/table-v2/index.js.map +1 -0
- package/lib/components/table-v2/src/cell.d.ts +11 -0
- package/lib/components/table-v2/src/cell.js +24 -0
- package/lib/components/table-v2/src/cell.js.map +1 -0
- package/lib/components/table-v2/src/column.d.ts +21 -0
- package/lib/components/table-v2/src/column.js +49 -0
- package/lib/components/table-v2/src/column.js.map +1 -0
- package/lib/components/table-v2/src/common.d.ts +43 -0
- package/lib/components/table-v2/src/common.js +51 -0
- package/lib/components/table-v2/src/common.js.map +1 -0
- package/lib/components/table-v2/src/constants.d.ts +1 -0
- package/lib/components/table-v2/src/constants.js +8 -0
- package/lib/components/table-v2/src/constants.js.map +1 -0
- package/lib/components/table-v2/src/grid.d.ts +40 -0
- package/lib/components/table-v2/src/grid.js +39 -0
- package/lib/components/table-v2/src/grid.js.map +1 -0
- package/lib/components/table-v2/src/header-cell.d.ts +25 -0
- package/lib/components/table-v2/src/header-cell.js +16 -0
- package/lib/components/table-v2/src/header-cell.js.map +1 -0
- package/lib/components/table-v2/src/header-row.d.ts +27 -0
- package/lib/components/table-v2/src/header-row.js +18 -0
- package/lib/components/table-v2/src/header-row.js.map +1 -0
- package/lib/components/table-v2/src/header.d.ts +31 -0
- package/lib/components/table-v2/src/header.js +37 -0
- package/lib/components/table-v2/src/header.js.map +1 -0
- package/lib/components/table-v2/src/row.d.ts +61 -0
- package/lib/components/table-v2/src/row.js +45 -0
- package/lib/components/table-v2/src/row.js.map +1 -0
- package/lib/components/table-v2/src/table-cell.d.ts +19 -0
- package/lib/components/table-v2/src/table-grid.d.ts +100 -0
- package/lib/components/table-v2/src/table-header-cell.d.ts +48 -0
- package/lib/components/table-v2/src/table-header-row.d.ts +52 -0
- package/lib/components/table-v2/src/table-header.d.ts +69 -0
- package/lib/components/table-v2/src/table-row.d.ts +79 -0
- package/lib/components/table-v2/src/table.d.ts +93 -0
- package/lib/components/table-v2/src/table.js +78 -0
- package/lib/components/table-v2/src/table.js.map +1 -0
- package/lib/components/table-v2/src/tokens.d.ts +9 -0
- package/lib/components/table-v2/src/tokens.js +8 -0
- package/lib/components/table-v2/src/tokens.js.map +1 -0
- package/lib/components/table-v2/src/types.d.ts +78 -0
- package/lib/components/table-v2/src/types.js +3 -0
- package/lib/components/table-v2/src/types.js.map +1 -0
- package/lib/components/table-v2/src/useTable.d.ts +13 -0
- package/lib/components/table-v2/src/useTable.js +90 -0
- package/lib/components/table-v2/src/useTable.js.map +1 -0
- package/lib/components/tag/index.d.ts +4 -4
- package/lib/components/tag/src/tag.d.ts +1 -1
- package/lib/components/tag/src/tag.vue.d.ts +4 -4
- package/lib/components/tree-select/style/css.d.ts +1 -1
- package/lib/components/tree-select/style/css.js +1 -1
- package/lib/components/virtual-list/index.d.ts +1 -0
- package/lib/components/virtual-list/src/builders/build-grid.d.ts +23 -2
- package/lib/components/virtual-list/src/builders/build-grid.js +10 -1
- package/lib/components/virtual-list/src/builders/build-grid.js.map +1 -1
- package/lib/components/virtual-list/src/types.d.ts +21 -0
- package/lib/constants/index.js +2 -0
- package/lib/constants/index.js.map +1 -1
- package/lib/constants/size.d.ts +6 -0
- package/lib/constants/size.js +10 -0
- package/lib/constants/size.js.map +1 -1
- package/lib/hooks/use-namespace/index.d.ts +1 -0
- package/lib/hooks/use-namespace/index.js.map +1 -1
- package/lib/hooks/use-popper-container/index.js +8 -5
- package/lib/hooks/use-popper-container/index.js.map +1 -1
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -1
- package/lib/utils/vue/refs.js +1 -1
- package/lib/utils/vue/refs.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 +20 -17
- package/theme-chalk/base.css +1 -1
- package/theme-chalk/el-alert.css +1 -1
- package/theme-chalk/el-backtop.css +1 -1
- package/theme-chalk/el-button.css +1 -1
- package/theme-chalk/el-calendar.css +1 -1
- package/theme-chalk/el-cascader-panel.css +1 -1
- package/theme-chalk/el-cascader.css +1 -1
- package/theme-chalk/el-checkbox-button.css +1 -1
- package/theme-chalk/el-checkbox.css +1 -1
- package/theme-chalk/el-color-picker.css +1 -1
- package/theme-chalk/el-date-picker.css +1 -1
- package/theme-chalk/el-descriptions.css +1 -1
- package/theme-chalk/el-dialog.css +1 -1
- package/theme-chalk/el-divider.css +1 -1
- package/theme-chalk/el-drawer.css +1 -1
- package/theme-chalk/el-dropdown.css +1 -1
- package/theme-chalk/el-menu.css +1 -1
- package/theme-chalk/el-message-box.css +1 -1
- package/theme-chalk/el-notification.css +1 -1
- package/theme-chalk/el-option-item.css +1 -1
- package/theme-chalk/el-pagination.css +1 -1
- package/theme-chalk/el-popper.css +1 -1
- package/theme-chalk/el-radio-button.css +1 -1
- package/theme-chalk/el-radio.css +1 -1
- package/theme-chalk/el-select-dropdown.css +1 -1
- package/theme-chalk/el-select-v2.css +1 -1
- package/theme-chalk/el-select.css +1 -1
- package/theme-chalk/el-step.css +1 -1
- package/theme-chalk/el-table.css +1 -1
- package/theme-chalk/el-tabs.css +1 -1
- package/theme-chalk/el-time-picker.css +1 -1
- package/theme-chalk/el-time-select.css +1 -1
- package/theme-chalk/el-transfer.css +1 -1
- package/theme-chalk/el-tree.css +1 -1
- package/theme-chalk/el-upload.css +1 -1
- package/theme-chalk/el-var.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/alert.scss +18 -14
- package/theme-chalk/src/button.scss +2 -0
- package/theme-chalk/src/calendar.scss +2 -2
- package/theme-chalk/src/card.scss +11 -10
- package/theme-chalk/src/cascader.scss +1 -1
- package/theme-chalk/src/checkbox-button.scss +1 -4
- package/theme-chalk/src/checkbox.scss +1 -1
- package/theme-chalk/src/color-picker.scss +32 -44
- package/theme-chalk/src/common/var.scss +21 -35
- package/theme-chalk/src/dark/css-vars.scss +18 -2
- package/theme-chalk/src/dark/var.scss +111 -1
- package/theme-chalk/src/date-picker/date-picker.scss +1 -1
- package/theme-chalk/src/date-picker/month-table.scss +1 -1
- package/theme-chalk/src/date-picker/picker-panel.scss +3 -3
- package/theme-chalk/src/date-picker/picker.scss +4 -3
- package/theme-chalk/src/descriptions.scss +1 -1
- package/theme-chalk/src/dialog.scss +6 -6
- package/theme-chalk/src/divider.scss +1 -1
- package/theme-chalk/src/drawer.scss +1 -1
- package/theme-chalk/src/dropdown.scss +2 -2
- package/theme-chalk/src/input-number.scss +1 -1
- package/theme-chalk/src/input.scss +7 -7
- package/theme-chalk/src/menu.scss +1 -1
- package/theme-chalk/src/message-box.scss +1 -1
- package/theme-chalk/src/mixins/_var.scss +15 -17
- package/theme-chalk/src/mixins/mixins.scss +1 -1
- package/theme-chalk/src/notification.scss +2 -2
- package/theme-chalk/src/pagination.scss +13 -16
- package/theme-chalk/src/popper.scss +11 -11
- package/theme-chalk/src/radio-button.scss +1 -4
- package/theme-chalk/src/radio.scss +0 -1
- package/theme-chalk/src/select-v2.scss +1 -1
- package/theme-chalk/src/select.scss +10 -10
- package/theme-chalk/src/step.scss +1 -1
- package/theme-chalk/src/table-column.scss +1 -1
- package/theme-chalk/src/table.scss +1 -1
- package/theme-chalk/src/tabs.scss +5 -5
- package/theme-chalk/src/transfer.scss +2 -2
- package/theme-chalk/src/tree.scss +1 -1
- package/theme-chalk/src/upload.scss +19 -29
- package/theme-chalk/src/var.scss +32 -33
- package/web-types.json +1 -1
|
@@ -11,6 +11,7 @@ export declare const ElButton: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
11
11
|
readonly round: BooleanConstructor;
|
|
12
12
|
readonly circle: BooleanConstructor;
|
|
13
13
|
readonly color: StringConstructor;
|
|
14
|
+
readonly dark: BooleanConstructor;
|
|
14
15
|
readonly autoInsertSpace: import("element-plus/es/utils").BuildPropReturn<BooleanConstructor, undefined, unknown, unknown, unknown>;
|
|
15
16
|
}, {
|
|
16
17
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -26,6 +27,7 @@ export declare const ElButton: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
26
27
|
readonly round: BooleanConstructor;
|
|
27
28
|
readonly circle: BooleanConstructor;
|
|
28
29
|
readonly color: StringConstructor;
|
|
30
|
+
readonly dark: BooleanConstructor;
|
|
29
31
|
readonly autoInsertSpace: import("element-plus/es/utils").BuildPropReturn<BooleanConstructor, undefined, unknown, unknown, unknown>;
|
|
30
32
|
}>> & {
|
|
31
33
|
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
@@ -106,6 +108,7 @@ export declare const ElButton: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
106
108
|
readonly round: BooleanConstructor;
|
|
107
109
|
readonly circle: BooleanConstructor;
|
|
108
110
|
readonly color: StringConstructor;
|
|
111
|
+
readonly dark: BooleanConstructor;
|
|
109
112
|
readonly autoInsertSpace: import("element-plus/es/utils").BuildPropReturn<BooleanConstructor, undefined, unknown, unknown, unknown>;
|
|
110
113
|
}>> & {
|
|
111
114
|
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
@@ -122,6 +125,7 @@ export declare const ElButton: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
122
125
|
autofocus: boolean;
|
|
123
126
|
round: boolean;
|
|
124
127
|
circle: boolean;
|
|
128
|
+
dark: boolean;
|
|
125
129
|
}>> & {
|
|
126
130
|
ButtonGroup: import("vue").DefineComponent<{
|
|
127
131
|
readonly size: import("element-plus/es/utils").BuildPropReturn<StringConstructor, never, false, "" | "default" | "small" | "large", never>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { TinyColor } from '@ctrl/tinycolor';
|
|
2
|
+
import type { ButtonProps } from './button';
|
|
3
|
+
export declare function darken(color: TinyColor, amount?: number): string;
|
|
4
|
+
export declare function useButtonCustomStyle(props: ButtonProps): import("vue").ComputedRef<Record<string, string>>;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { computed } from 'vue';
|
|
2
|
+
import { TinyColor } from '@ctrl/tinycolor';
|
|
3
|
+
import '../../../hooks/index.mjs';
|
|
4
|
+
import { useDisabled } from '../../../hooks/use-common-props/index.mjs';
|
|
5
|
+
|
|
6
|
+
function darken(color, amount = 20) {
|
|
7
|
+
return color.mix("#141414", amount).toString();
|
|
8
|
+
}
|
|
9
|
+
function useButtonCustomStyle(props) {
|
|
10
|
+
const _disabled = useDisabled();
|
|
11
|
+
return computed(() => {
|
|
12
|
+
let styles = {};
|
|
13
|
+
const buttonColor = props.color;
|
|
14
|
+
if (buttonColor) {
|
|
15
|
+
const color = new TinyColor(buttonColor);
|
|
16
|
+
const activeBgColor = props.dark ? color.tint(20).toString() : darken(color, 20);
|
|
17
|
+
if (props.plain) {
|
|
18
|
+
styles = {
|
|
19
|
+
"--el-button-bg-color": props.dark ? darken(color, 90) : color.tint(90).toString(),
|
|
20
|
+
"--el-button-text-color": buttonColor,
|
|
21
|
+
"--el-button-border-color": props.dark ? darken(color, 50) : color.tint(50).toString(),
|
|
22
|
+
"--el-button-hover-text-color": "var(--el-color-white)",
|
|
23
|
+
"--el-button-hover-bg-color": buttonColor,
|
|
24
|
+
"--el-button-hover-border-color": buttonColor,
|
|
25
|
+
"--el-button-active-bg-color": activeBgColor,
|
|
26
|
+
"--el-button-active-text-color": "var(--el-color-white)",
|
|
27
|
+
"--el-button-active-border-color": activeBgColor
|
|
28
|
+
};
|
|
29
|
+
if (_disabled.value) {
|
|
30
|
+
styles["--el-button-disabled-bg-color"] = props.dark ? darken(color, 90) : color.tint(90).toString();
|
|
31
|
+
styles["--el-button-disabled-text-color"] = props.dark ? darken(color, 50) : color.tint(50).toString();
|
|
32
|
+
styles["--el-button-disabled-border-color"] = props.dark ? darken(color, 80) : color.tint(80).toString();
|
|
33
|
+
}
|
|
34
|
+
} else {
|
|
35
|
+
const hoverBgColor = props.dark ? darken(color, 30) : color.tint(30).toString();
|
|
36
|
+
const textColor = color.isDark() ? "var(--el-color-white)" : "var(--el-color-black)";
|
|
37
|
+
styles = {
|
|
38
|
+
"--el-button-bg-color": buttonColor,
|
|
39
|
+
"--el-button-text-color": textColor,
|
|
40
|
+
"--el-button-border-color": buttonColor,
|
|
41
|
+
"--el-button-hover-bg-color": hoverBgColor,
|
|
42
|
+
"--el-button-hover-text-color": textColor,
|
|
43
|
+
"--el-button-hover-border-color": hoverBgColor,
|
|
44
|
+
"--el-button-active-bg-color": activeBgColor,
|
|
45
|
+
"--el-button-active-border-color": activeBgColor
|
|
46
|
+
};
|
|
47
|
+
if (_disabled.value) {
|
|
48
|
+
const disabledButtonColor = props.dark ? darken(color, 50) : color.tint(50).toString();
|
|
49
|
+
styles["--el-button-disabled-bg-color"] = disabledButtonColor;
|
|
50
|
+
styles["--el-button-disabled-text-color"] = props.dark ? "rgba(255, 255, 255, 0.5)" : "var(--el-color-white)";
|
|
51
|
+
styles["--el-button-disabled-border-color"] = disabledButtonColor;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
return styles;
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export { darken, useButtonCustomStyle };
|
|
60
|
+
//# sourceMappingURL=button-custom.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button-custom.mjs","sources":["../../../../../../packages/components/button/src/button-custom.ts"],"sourcesContent":["import { computed } from 'vue'\nimport { TinyColor } from '@ctrl/tinycolor'\nimport { useDisabled } from '@element-plus/hooks'\nimport type { ButtonProps } from './button'\n\nexport function darken(color: TinyColor, amount = 20) {\n return color.mix('#141414', amount).toString()\n}\n\nexport function useButtonCustomStyle(props: ButtonProps) {\n const _disabled = useDisabled()\n\n // calculate hover & active color by custom color\n // only work when custom color\n return computed(() => {\n let styles: Record<string, string> = {}\n\n const buttonColor = props.color\n\n if (buttonColor) {\n const color = new TinyColor(buttonColor)\n const activeBgColor = props.dark\n ? color.tint(20).toString()\n : darken(color, 20)\n\n if (props.plain) {\n styles = {\n '--el-button-bg-color': props.dark\n ? darken(color, 90)\n : color.tint(90).toString(),\n '--el-button-text-color': buttonColor,\n '--el-button-border-color': props.dark\n ? darken(color, 50)\n : color.tint(50).toString(),\n '--el-button-hover-text-color': 'var(--el-color-white)',\n '--el-button-hover-bg-color': buttonColor,\n '--el-button-hover-border-color': buttonColor,\n '--el-button-active-bg-color': activeBgColor,\n '--el-button-active-text-color': 'var(--el-color-white)',\n '--el-button-active-border-color': activeBgColor,\n }\n\n if (_disabled.value) {\n styles['--el-button-disabled-bg-color'] = props.dark\n ? darken(color, 90)\n : color.tint(90).toString()\n styles['--el-button-disabled-text-color'] = props.dark\n ? darken(color, 50)\n : color.tint(50).toString()\n styles['--el-button-disabled-border-color'] = props.dark\n ? darken(color, 80)\n : color.tint(80).toString()\n }\n } else {\n const hoverBgColor = props.dark\n ? darken(color, 30)\n : color.tint(30).toString()\n const textColor = color.isDark()\n ? 'var(--el-color-white)'\n : 'var(--el-color-black)'\n styles = {\n '--el-button-bg-color': buttonColor,\n '--el-button-text-color': textColor,\n '--el-button-border-color': buttonColor,\n '--el-button-hover-bg-color': hoverBgColor,\n '--el-button-hover-text-color': textColor,\n '--el-button-hover-border-color': hoverBgColor,\n '--el-button-active-bg-color': activeBgColor,\n '--el-button-active-border-color': activeBgColor,\n }\n\n if (_disabled.value) {\n const disabledButtonColor = props.dark\n ? darken(color, 50)\n : color.tint(50).toString()\n styles['--el-button-disabled-bg-color'] = disabledButtonColor\n styles['--el-button-disabled-text-color'] = props.dark\n ? 'rgba(255, 255, 255, 0.5)'\n : 'var(--el-color-white)'\n styles['--el-button-disabled-border-color'] = disabledButtonColor\n }\n }\n }\n\n return styles\n })\n}\n"],"names":[],"mappings":";;;;;AAGO,SAAS,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,EAAE,EAAE;AAC3C,EAAE,OAAO,KAAK,CAAC,GAAG,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,QAAQ,EAA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jG,UAAU,MAAM,CAAC,+BAA+B,CAAC,GAAG,mBAAmB,CAAC;AACxE,UAAU,MAAM,CAAC,iCAAiC,CAAC,GAAG,KAAK,CAAC,IAAI,GAAG,0BAA0B,GAAG,uBAAuB,CAAC;AACxH,UAAU,MAAM,CAAC,mCAAmC,CAAC,GAAG,mBAAmB,CAAC;AAC5E,SAAS;AACT,OAAO;AACP,KAAK;AACL,IAAI,OAAO,MAAM,CAAC;AAClB,GAAG,CAAC,CAAC;AACL;;;;"}
|
|
@@ -15,6 +15,7 @@ export declare const buttonProps: {
|
|
|
15
15
|
readonly round: BooleanConstructor;
|
|
16
16
|
readonly circle: BooleanConstructor;
|
|
17
17
|
readonly color: StringConstructor;
|
|
18
|
+
readonly dark: BooleanConstructor;
|
|
18
19
|
readonly autoInsertSpace: import("element-plus/es/utils").BuildPropReturn<BooleanConstructor, undefined, unknown, unknown, unknown>;
|
|
19
20
|
};
|
|
20
21
|
export declare const buttonEmits: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.mjs","sources":["../../../../../../packages/components/button/src/button.ts"],"sourcesContent":["import { useSizeProp } from '@element-plus/hooks'\nimport { buildProps, iconPropType } from '@element-plus/utils'\nimport { Loading } from '@element-plus/icons-vue'\nimport type { ExtractPropTypes } from 'vue'\nimport type button from './button.vue'\n\nexport const buttonTypes = [\n 'default',\n 'primary',\n 'success',\n 'warning',\n 'info',\n 'danger',\n 'text',\n '',\n] as const\nexport const buttonNativeTypes = ['button', 'submit', 'reset'] as const\n\nexport const buttonProps = buildProps({\n size: useSizeProp,\n disabled: Boolean,\n type: {\n type: String,\n values: buttonTypes,\n default: '',\n },\n icon: {\n type: iconPropType,\n default: '',\n },\n nativeType: {\n type: String,\n values: buttonNativeTypes,\n default: 'button',\n },\n loading: Boolean,\n loadingIcon: {\n type: iconPropType,\n default: () => Loading,\n },\n plain: Boolean,\n autofocus: Boolean,\n round: Boolean,\n circle: Boolean,\n color: String,\n autoInsertSpace: {\n type: Boolean,\n default: undefined,\n },\n} as const)\nexport const buttonEmits = {\n click: (evt: MouseEvent) => evt instanceof MouseEvent,\n}\n\nexport type ButtonProps = ExtractPropTypes<typeof buttonProps>\nexport type ButtonEmits = typeof buttonEmits\n\nexport type ButtonType = ButtonProps['type']\nexport type ButtonNativeType = ButtonProps['nativeType']\n\nexport type ButtonInstance = InstanceType<typeof button>\n\nexport interface ButtonConfigContext {\n autoInsertSpace?: boolean\n}\n"],"names":[],"mappings":";;;;;;;AAGY,MAAC,WAAW,GAAG;AAC3B,EAAE,SAAS;AACX,EAAE,SAAS;AACX,EAAE,SAAS;AACX,EAAE,SAAS;AACX,EAAE,MAAM;AACR,EAAE,QAAQ;AACV,EAAE,MAAM;AACR,EAAE,EAAE;AACJ,EAAE;AACU,MAAC,iBAAiB,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE;AACnD,MAAC,WAAW,GAAG,UAAU,CAAC;AACtC,EAAE,IAAI,EAAE,WAAW;AACnB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,WAAW;AACvB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,YAAY;AACtB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,iBAAiB;AAC7B,IAAI,OAAO,EAAE,QAAQ;AACrB,GAAG;AACH,EAAE,OAAO,EAAE,OAAO;AAClB,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,YAAY;AACtB,IAAI,OAAO,EAAE,MAAM,OAAO;AAC1B,GAAG;AACH,EAAE,KAAK,EAAE,OAAO;AAChB,EAAE,SAAS,EAAE,OAAO;AACpB,EAAE,KAAK,EAAE,OAAO;AAChB,EAAE,MAAM,EAAE,OAAO;AACjB,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,eAAe,EAAE;AACnB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,WAAW,GAAG;AAC3B,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C;;;;"}
|
|
1
|
+
{"version":3,"file":"button.mjs","sources":["../../../../../../packages/components/button/src/button.ts"],"sourcesContent":["import { useSizeProp } from '@element-plus/hooks'\nimport { buildProps, iconPropType } from '@element-plus/utils'\nimport { Loading } from '@element-plus/icons-vue'\nimport type { ExtractPropTypes } from 'vue'\nimport type button from './button.vue'\n\nexport const buttonTypes = [\n 'default',\n 'primary',\n 'success',\n 'warning',\n 'info',\n 'danger',\n 'text',\n '',\n] as const\nexport const buttonNativeTypes = ['button', 'submit', 'reset'] as const\n\nexport const buttonProps = buildProps({\n size: useSizeProp,\n disabled: Boolean,\n type: {\n type: String,\n values: buttonTypes,\n default: '',\n },\n icon: {\n type: iconPropType,\n default: '',\n },\n nativeType: {\n type: String,\n values: buttonNativeTypes,\n default: 'button',\n },\n loading: Boolean,\n loadingIcon: {\n type: iconPropType,\n default: () => Loading,\n },\n plain: Boolean,\n autofocus: Boolean,\n round: Boolean,\n circle: Boolean,\n color: String,\n dark: Boolean,\n autoInsertSpace: {\n type: Boolean,\n default: undefined,\n },\n} as const)\nexport const buttonEmits = {\n click: (evt: MouseEvent) => evt instanceof MouseEvent,\n}\n\nexport type ButtonProps = ExtractPropTypes<typeof buttonProps>\nexport type ButtonEmits = typeof buttonEmits\n\nexport type ButtonType = ButtonProps['type']\nexport type ButtonNativeType = ButtonProps['nativeType']\n\nexport type ButtonInstance = InstanceType<typeof button>\n\nexport interface ButtonConfigContext {\n autoInsertSpace?: boolean\n}\n"],"names":[],"mappings":";;;;;;;AAGY,MAAC,WAAW,GAAG;AAC3B,EAAE,SAAS;AACX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round: BooleanConstructor;
|
|
12
12
|
readonly circle: BooleanConstructor;
|
|
13
13
|
readonly color: StringConstructor;
|
|
14
|
+
readonly dark: BooleanConstructor;
|
|
14
15
|
readonly autoInsertSpace: import("../../../utils").BuildPropReturn<BooleanConstructor, undefined, unknown, unknown, unknown>;
|
|
15
16
|
}, {
|
|
16
17
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -26,6 +27,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
26
27
|
readonly round: BooleanConstructor;
|
|
27
28
|
readonly circle: BooleanConstructor;
|
|
28
29
|
readonly color: StringConstructor;
|
|
30
|
+
readonly dark: BooleanConstructor;
|
|
29
31
|
readonly autoInsertSpace: import("../../../utils").BuildPropReturn<BooleanConstructor, undefined, unknown, unknown, unknown>;
|
|
30
32
|
}>> & {
|
|
31
33
|
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
@@ -106,6 +108,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
106
108
|
readonly round: BooleanConstructor;
|
|
107
109
|
readonly circle: BooleanConstructor;
|
|
108
110
|
readonly color: StringConstructor;
|
|
111
|
+
readonly dark: BooleanConstructor;
|
|
109
112
|
readonly autoInsertSpace: import("../../../utils").BuildPropReturn<BooleanConstructor, undefined, unknown, unknown, unknown>;
|
|
110
113
|
}>> & {
|
|
111
114
|
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
@@ -122,5 +125,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
122
125
|
autofocus: boolean;
|
|
123
126
|
round: boolean;
|
|
124
127
|
circle: boolean;
|
|
128
|
+
dark: boolean;
|
|
125
129
|
}>;
|
|
126
130
|
export default _default;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent, useSlots, inject, computed, ref, Text, openBlock, createElementBlock, normalizeClass, unref, normalizeStyle, Fragment, renderSlot, createBlock, withCtx, resolveDynamicComponent, createCommentVNode } from 'vue';
|
|
2
|
-
import { TinyColor } from '@ctrl/tinycolor';
|
|
3
2
|
import { ElIcon } from '../../icon/index.mjs';
|
|
4
3
|
import '../../../hooks/index.mjs';
|
|
5
4
|
import '../../../tokens/index.mjs';
|
|
6
5
|
import { buttonProps, buttonEmits } from './button.mjs';
|
|
6
|
+
import { useButtonCustomStyle } from './button-custom.mjs';
|
|
7
7
|
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
8
8
|
import { buttonGroupContextKey } from '../../../tokens/button.mjs';
|
|
9
9
|
import { useGlobalConfig } from '../../../hooks/use-global-config/index.mjs';
|
|
@@ -46,42 +46,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
46
46
|
}
|
|
47
47
|
return false;
|
|
48
48
|
});
|
|
49
|
-
const buttonStyle =
|
|
50
|
-
let styles = {};
|
|
51
|
-
const buttonColor = props.color;
|
|
52
|
-
if (buttonColor) {
|
|
53
|
-
const color = new TinyColor(buttonColor);
|
|
54
|
-
const shadeBgColor = color.shade(20).toString();
|
|
55
|
-
if (props.plain) {
|
|
56
|
-
styles = {
|
|
57
|
-
"--el-button-bg-color": color.tint(90).toString(),
|
|
58
|
-
"--el-button-text-color": buttonColor,
|
|
59
|
-
"--el-button-hover-text-color": "var(--el-color-white)",
|
|
60
|
-
"--el-button-hover-bg-color": buttonColor,
|
|
61
|
-
"--el-button-hover-border-color": buttonColor,
|
|
62
|
-
"--el-button-active-bg-color": shadeBgColor,
|
|
63
|
-
"--el-button-active-text-color": "var(--el-color-white)",
|
|
64
|
-
"--el-button-active-border-color": shadeBgColor
|
|
65
|
-
};
|
|
66
|
-
} else {
|
|
67
|
-
const tintBgColor = color.tint(30).toString();
|
|
68
|
-
styles = {
|
|
69
|
-
"--el-button-bg-color": buttonColor,
|
|
70
|
-
"--el-button-border-color": buttonColor,
|
|
71
|
-
"--el-button-hover-bg-color": tintBgColor,
|
|
72
|
-
"--el-button-hover-border-color": tintBgColor,
|
|
73
|
-
"--el-button-active-bg-color": shadeBgColor,
|
|
74
|
-
"--el-button-active-border-color": shadeBgColor
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
if (_disabled.value) {
|
|
78
|
-
const disabledButtonColor = color.tint(50).toString();
|
|
79
|
-
styles["--el-button-disabled-bg-color"] = disabledButtonColor;
|
|
80
|
-
styles["--el-button-disabled-border-color"] = disabledButtonColor;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
return styles;
|
|
84
|
-
});
|
|
49
|
+
const buttonStyle = useButtonCustomStyle(props);
|
|
85
50
|
const handleClick = (evt) => {
|
|
86
51
|
if (props.nativeType === "reset") {
|
|
87
52
|
form == null ? void 0 : form.resetFields();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button2.mjs","sources":["../../../../../../packages/components/button/src/button.vue"],"sourcesContent":["<template>\n <button\n ref=\"_ref\"\n :class=\"[\n ns.b(),\n ns.m(_type),\n ns.m(_size),\n ns.is('disabled', _disabled),\n ns.is('loading', loading),\n ns.is('plain', plain),\n ns.is('round', round),\n ns.is('circle', circle),\n ]\"\n :disabled=\"_disabled || loading\"\n :autofocus=\"autofocus\"\n :type=\"nativeType\"\n :style=\"buttonStyle\"\n @click=\"handleClick\"\n >\n <template v-if=\"loading\">\n <slot v-if=\"$slots.loading\" name=\"loading\" />\n <el-icon v-else :class=\"ns.is('loading')\">\n <component :is=\"loadingIcon\" />\n </el-icon>\n </template>\n <el-icon v-else-if=\"icon || $slots.icon\">\n <component :is=\"icon\" v-if=\"icon\" />\n <slot v-else name=\"icon\" />\n </el-icon>\n <span\n v-if=\"$slots.default\"\n :class=\"{ [ns.em('text', 'expand')]: shouldAddSpace }\"\n >\n <slot />\n </span>\n </button>\n</template>\n\n<script lang=\"ts\" setup>\nimport { Text, computed, inject, ref, useSlots } from 'vue'\nimport {
|
|
1
|
+
{"version":3,"file":"button2.mjs","sources":["../../../../../../packages/components/button/src/button.vue"],"sourcesContent":["<template>\n <button\n ref=\"_ref\"\n :class=\"[\n ns.b(),\n ns.m(_type),\n ns.m(_size),\n ns.is('disabled', _disabled),\n ns.is('loading', loading),\n ns.is('plain', plain),\n ns.is('round', round),\n ns.is('circle', circle),\n ]\"\n :disabled=\"_disabled || loading\"\n :autofocus=\"autofocus\"\n :type=\"nativeType\"\n :style=\"buttonStyle\"\n @click=\"handleClick\"\n >\n <template v-if=\"loading\">\n <slot v-if=\"$slots.loading\" name=\"loading\" />\n <el-icon v-else :class=\"ns.is('loading')\">\n <component :is=\"loadingIcon\" />\n </el-icon>\n </template>\n <el-icon v-else-if=\"icon || $slots.icon\">\n <component :is=\"icon\" v-if=\"icon\" />\n <slot v-else name=\"icon\" />\n </el-icon>\n <span\n v-if=\"$slots.default\"\n :class=\"{ [ns.em('text', 'expand')]: shouldAddSpace }\"\n >\n <slot />\n </span>\n </button>\n</template>\n\n<script lang=\"ts\" setup>\nimport { Text, computed, inject, ref, useSlots } from 'vue'\nimport { ElIcon } from '@element-plus/components/icon'\nimport {\n useDisabled,\n useFormItem,\n useGlobalConfig,\n useNamespace,\n useSize,\n} from '@element-plus/hooks'\nimport { buttonGroupContextKey } from '@element-plus/tokens'\nimport { buttonEmits, buttonProps } from './button'\nimport { useButtonCustomStyle } from './button-custom'\n\ndefineOptions({\n name: 'ElButton',\n})\n\nconst props = defineProps(buttonProps)\nconst emit = defineEmits(buttonEmits)\nconst slots = useSlots()\n\nconst buttonGroupContext = inject(buttonGroupContextKey, undefined)\nconst globalConfig = useGlobalConfig('button')\nconst ns = useNamespace('button')\nconst { form } = useFormItem()\nconst _size = useSize(computed(() => buttonGroupContext?.size))\nconst _disabled = useDisabled()\nconst _ref = ref<HTMLButtonElement>()\n\nconst _type = computed(() => props.type || buttonGroupContext?.type || '')\nconst autoInsertSpace = computed(\n () => props.autoInsertSpace ?? globalConfig.value?.autoInsertSpace ?? false\n)\n\n// add space between two characters in Chinese\nconst shouldAddSpace = computed(() => {\n const defaultSlot = slots.default?.()\n if (autoInsertSpace.value && defaultSlot?.length === 1) {\n const slot = defaultSlot[0]\n if (slot?.type === Text) {\n const text = slot.children as string\n return /^\\p{Unified_Ideograph}{2}$/u.test(text.trim())\n }\n }\n return false\n})\n\nconst buttonStyle = useButtonCustomStyle(props)\n\nconst handleClick = (evt: MouseEvent) => {\n if (props.nativeType === 'reset') {\n form?.resetFields()\n }\n emit('click', evt)\n}\n\ndefineExpose({\n /** @description button html element */\n ref: _ref,\n /** @description button size */\n size: _size,\n /** @description button type */\n type: _type,\n /** @description button disabled */\n disabled: _disabled,\n /** @description whether adding space */\n shouldAddSpace,\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AA0DA,IAAA,MAAA,QAAA,QAAA,EAAA,CAAA;AAEA,IAAA,MAAA,kBAAA,GAAA,MAAA,CAAA,qBAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AACA,IAAA,MAAA,YAAA,GAAA,gBAAA,QAAA,CAAA,CAAA;AACA,IAAA,MAAA,EAAA,GAAA,aAAA,QAAA,CAAA,CAAA;AACA,IAAA,MAAA,EAAA,SAAA,WAAA,EAAA,CAAA;AACA,IAAA,MAAA,QAAA,OAAA,CAAA,QAAA,CAAA,MAAA,kBAAA,QAAA,GAAA,KAAA,CAAA,GAAA,kBAAA,CAAA,IAAA,CAAA,CAAA,CAAA;AACA,IAAA,MAAA,YAAA,WAAA,EAAA,CAAA;AACA,IAAA,MAAA,OAAA,GAAA,EAAA,CAAA;AAEA,IAAA,MAAA,QAAA,QAAA,CAAA,MAAA,MAAA,IAAA,KAAA,kBAAA,WAAA,KAAA,CAAA,GAAA,kBAAA,CAAA,IAAA,CAAA,IAAA,EAAA,CAAA,CAAA;AACA,IAAA,MAAA,eAAA,GAAA,SACA,MAAA;AAIA,MAAA,IAAA,EAAA,EAAA,EAAA,EAAA,EAAA,CAAA;AACA,MAAA,OAAA,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,qBAAA,KAAA,IAAA,GAAA,EAAA,GAAA,CAAA,EAAA,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ACA,IAAA,EAAA,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -53,6 +53,7 @@ export declare const ElCalendar: import("element-plus/es/utils").SFCWithInstall<
|
|
|
53
53
|
readonly round: BooleanConstructor;
|
|
54
54
|
readonly circle: BooleanConstructor;
|
|
55
55
|
readonly color: StringConstructor;
|
|
56
|
+
readonly dark: BooleanConstructor;
|
|
56
57
|
readonly autoInsertSpace: import("element-plus/es/utils").BuildPropReturn<BooleanConstructor, undefined, unknown, unknown, unknown>;
|
|
57
58
|
}, {
|
|
58
59
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -68,6 +69,7 @@ export declare const ElCalendar: import("element-plus/es/utils").SFCWithInstall<
|
|
|
68
69
|
readonly round: BooleanConstructor;
|
|
69
70
|
readonly circle: BooleanConstructor;
|
|
70
71
|
readonly color: StringConstructor;
|
|
72
|
+
readonly dark: BooleanConstructor;
|
|
71
73
|
readonly autoInsertSpace: import("element-plus/es/utils").BuildPropReturn<BooleanConstructor, undefined, unknown, unknown, unknown>;
|
|
72
74
|
}>> & {
|
|
73
75
|
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
@@ -148,6 +150,7 @@ export declare const ElCalendar: import("element-plus/es/utils").SFCWithInstall<
|
|
|
148
150
|
readonly round: BooleanConstructor;
|
|
149
151
|
readonly circle: BooleanConstructor;
|
|
150
152
|
readonly color: StringConstructor;
|
|
153
|
+
readonly dark: BooleanConstructor;
|
|
151
154
|
readonly autoInsertSpace: import("element-plus/es/utils").BuildPropReturn<BooleanConstructor, undefined, unknown, unknown, unknown>;
|
|
152
155
|
}>> & {
|
|
153
156
|
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
@@ -164,6 +167,7 @@ export declare const ElCalendar: import("element-plus/es/utils").SFCWithInstall<
|
|
|
164
167
|
autofocus: boolean;
|
|
165
168
|
round: boolean;
|
|
166
169
|
circle: boolean;
|
|
170
|
+
dark: boolean;
|
|
167
171
|
}>> & {
|
|
168
172
|
ButtonGroup: import("vue").DefineComponent<{
|
|
169
173
|
readonly size: import("element-plus/es/utils").BuildPropReturn<StringConstructor, never, false, "" | "default" | "small" | "large", never>;
|
|
@@ -57,6 +57,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
57
57
|
readonly round: BooleanConstructor;
|
|
58
58
|
readonly circle: BooleanConstructor;
|
|
59
59
|
readonly color: StringConstructor;
|
|
60
|
+
readonly dark: BooleanConstructor;
|
|
60
61
|
readonly autoInsertSpace: import("element-plus/es/utils").BuildPropReturn<BooleanConstructor, undefined, unknown, unknown, unknown>;
|
|
61
62
|
}, {
|
|
62
63
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -72,6 +73,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
72
73
|
readonly round: BooleanConstructor;
|
|
73
74
|
readonly circle: BooleanConstructor;
|
|
74
75
|
readonly color: StringConstructor;
|
|
76
|
+
readonly dark: BooleanConstructor;
|
|
75
77
|
readonly autoInsertSpace: import("element-plus/es/utils").BuildPropReturn<BooleanConstructor, undefined, unknown, unknown, unknown>;
|
|
76
78
|
}>> & {
|
|
77
79
|
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
@@ -152,6 +154,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
152
154
|
readonly round: BooleanConstructor;
|
|
153
155
|
readonly circle: BooleanConstructor;
|
|
154
156
|
readonly color: StringConstructor;
|
|
157
|
+
readonly dark: BooleanConstructor;
|
|
155
158
|
readonly autoInsertSpace: import("element-plus/es/utils").BuildPropReturn<BooleanConstructor, undefined, unknown, unknown, unknown>;
|
|
156
159
|
}>> & {
|
|
157
160
|
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
@@ -168,6 +171,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
168
171
|
autofocus: boolean;
|
|
169
172
|
round: boolean;
|
|
170
173
|
circle: boolean;
|
|
174
|
+
dark: boolean;
|
|
171
175
|
}>> & {
|
|
172
176
|
ButtonGroup: import("vue").DefineComponent<{
|
|
173
177
|
readonly size: import("element-plus/es/utils").BuildPropReturn<StringConstructor, never, false, "" | "default" | "small" | "large", never>;
|