@element-plus/nightly 0.0.20250822 → 0.0.20250824
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/attributes.json +1 -1
- package/dist/index.full.js +4 -6
- package/dist/index.full.min.js +3 -3
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +3 -3
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +4 -6
- 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-eg.js +1 -1
- package/dist/locale/ar-eg.min.js +1 -1
- package/dist/locale/ar-eg.min.mjs +1 -1
- package/dist/locale/ar-eg.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/az.js +1 -1
- package/dist/locale/az.min.js +1 -1
- package/dist/locale/az.min.mjs +1 -1
- package/dist/locale/az.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/ckb.js +1 -1
- package/dist/locale/ckb.min.js +1 -1
- package/dist/locale/ckb.min.mjs +1 -1
- package/dist/locale/ckb.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/hi.js +1 -1
- package/dist/locale/hi.min.js +1 -1
- package/dist/locale/hi.min.mjs +1 -1
- package/dist/locale/hi.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/lo.js +1 -1
- package/dist/locale/lo.min.js +1 -1
- package/dist/locale/lo.min.mjs +1 -1
- package/dist/locale/lo.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/ms.js +1 -1
- package/dist/locale/ms.min.js +1 -1
- package/dist/locale/ms.min.mjs +1 -1
- package/dist/locale/ms.mjs +1 -1
- package/dist/locale/my.js +1 -1
- package/dist/locale/my.min.js +1 -1
- package/dist/locale/my.min.mjs +1 -1
- package/dist/locale/my.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/no.js +1 -1
- package/dist/locale/no.min.js +1 -1
- package/dist/locale/no.min.mjs +1 -1
- package/dist/locale/no.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/sw.js +1 -1
- package/dist/locale/sw.min.js +1 -1
- package/dist/locale/sw.min.mjs +1 -1
- package/dist/locale/sw.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/te.js +1 -1
- package/dist/locale/te.min.js +1 -1
- package/dist/locale/te.min.mjs +1 -1
- package/dist/locale/te.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-hk.js +1 -1
- package/dist/locale/zh-hk.min.js +1 -1
- package/dist/locale/zh-hk.min.mjs +1 -1
- package/dist/locale/zh-hk.mjs +1 -1
- package/dist/locale/zh-mo.js +1 -1
- package/dist/locale/zh-mo.min.js +1 -1
- package/dist/locale/zh-mo.min.mjs +1 -1
- package/dist/locale/zh-mo.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/alert/index.mjs +2 -2
- package/es/components/alert/src/alert.mjs +41 -108
- package/es/components/alert/src/alert.mjs.map +1 -1
- package/es/components/alert/src/alert2.mjs +108 -41
- package/es/components/alert/src/alert2.mjs.map +1 -1
- package/es/components/badge/index.mjs +2 -2
- package/es/components/badge/src/badge.mjs +32 -71
- package/es/components/badge/src/badge.mjs.map +1 -1
- package/es/components/badge/src/badge2.mjs +71 -32
- package/es/components/badge/src/badge2.mjs.map +1 -1
- package/es/components/breadcrumb/src/breadcrumb-item.vue.d.ts +1 -1
- package/es/components/cascader/src/cascader.mjs +1 -1
- package/es/components/cascader-panel/src/index.mjs +1 -1
- package/es/components/cascader-panel/src/menu.mjs +1 -1
- package/es/components/cascader-panel/src/node.mjs +115 -179
- package/es/components/cascader-panel/src/node.mjs.map +1 -1
- package/es/components/cascader-panel/src/node2.mjs +177 -115
- package/es/components/cascader-panel/src/node2.mjs.map +1 -1
- package/es/components/cascader-panel/src/store.mjs +1 -1
- package/es/components/check-tag/index.mjs +2 -2
- package/es/components/check-tag/src/check-tag.mjs +38 -14
- package/es/components/check-tag/src/check-tag.mjs.map +1 -1
- package/es/components/check-tag/src/check-tag2.mjs +14 -38
- package/es/components/check-tag/src/check-tag2.mjs.map +1 -1
- package/es/components/checkbox/index.mjs +2 -2
- package/es/components/checkbox/src/checkbox-group.mjs +30 -72
- package/es/components/checkbox/src/checkbox-group.mjs.map +1 -1
- package/es/components/checkbox/src/checkbox-group2.mjs +72 -30
- package/es/components/checkbox/src/checkbox-group2.mjs.map +1 -1
- package/es/components/color-picker/src/color-picker2.mjs +1 -1
- package/es/components/color-picker/style/css.d.ts +1 -1
- package/es/components/color-picker/style/css.mjs +1 -1
- package/es/components/color-picker-panel/index.mjs +2 -2
- package/es/components/color-picker-panel/src/color-picker-panel.mjs +23 -117
- package/es/components/color-picker-panel/src/color-picker-panel.mjs.map +1 -1
- package/es/components/color-picker-panel/src/color-picker-panel2.mjs +117 -23
- package/es/components/color-picker-panel/src/color-picker-panel2.mjs.map +1 -1
- package/es/components/color-picker-panel/src/components/predefine.mjs +1 -1
- package/es/components/dropdown/src/dropdown.mjs +1 -1
- package/es/components/form/src/types.d.ts +1 -62
- package/es/components/index.mjs +17 -17
- package/es/components/input-tag/src/input-tag.mjs +1 -1
- package/es/components/menu/index.mjs +2 -2
- package/es/components/menu/src/menu-item-group.mjs +33 -4
- package/es/components/menu/src/menu-item-group.mjs.map +1 -1
- package/es/components/menu/src/menu-item-group2.mjs +4 -33
- package/es/components/menu/src/menu-item-group2.mjs.map +1 -1
- package/es/components/notification/index.mjs +1 -1
- package/es/components/notification/src/notification.mjs +73 -140
- package/es/components/notification/src/notification.mjs.map +1 -1
- package/es/components/notification/src/notification2.mjs +140 -73
- package/es/components/notification/src/notification2.mjs.map +1 -1
- package/es/components/notification/src/notify.mjs +2 -2
- package/es/components/popover/index.mjs +2 -2
- package/es/components/popover/src/popover.mjs +66 -112
- package/es/components/popover/src/popover.mjs.map +1 -1
- package/es/components/popover/src/popover2.mjs +112 -66
- package/es/components/popover/src/popover2.mjs.map +1 -1
- package/es/components/popper/src/trigger2.mjs +1 -1
- package/es/components/select/src/select.mjs +1 -1
- package/es/components/select-v2/src/defaults.mjs +1 -1
- package/es/components/skeleton/index.mjs +2 -2
- package/es/components/skeleton/src/skeleton.mjs +48 -18
- package/es/components/skeleton/src/skeleton.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton2.mjs +18 -48
- package/es/components/skeleton/src/skeleton2.mjs.map +1 -1
- package/es/components/tag/index.mjs +2 -2
- package/es/components/tag/src/tag.mjs +99 -27
- package/es/components/tag/src/tag.mjs.map +1 -1
- package/es/components/tag/src/tag2.mjs +27 -99
- package/es/components/tag/src/tag2.mjs.map +1 -1
- package/es/components/tooltip/index.mjs +1 -1
- package/es/components/tooltip/src/tooltip.mjs +1 -1
- package/es/components/tooltip/src/tooltip2.mjs +1 -1
- package/es/components/tooltip/src/trigger.mjs +72 -14
- package/es/components/tooltip/src/trigger.mjs.map +1 -1
- package/es/components/tooltip/src/trigger2.mjs +14 -72
- package/es/components/tooltip/src/trigger2.mjs.map +1 -1
- package/es/components/upload/index.mjs +2 -2
- package/es/components/upload/src/upload-content.mjs +1 -1
- package/es/components/upload/src/upload-content2.mjs +1 -1
- package/es/components/upload/src/upload-list.mjs +1 -1
- package/es/components/upload/src/upload.mjs +97 -125
- package/es/components/upload/src/upload.mjs.map +1 -1
- package/es/components/upload/src/upload2.mjs +125 -97
- package/es/components/upload/src/upload2.mjs.map +1 -1
- package/es/components/upload/src/use-handlers.mjs +1 -1
- package/es/components/watermark/index.mjs +2 -2
- package/es/components/watermark/src/watermark.mjs +27 -221
- package/es/components/watermark/src/watermark.mjs.map +1 -1
- package/es/components/watermark/src/watermark2.mjs +221 -27
- package/es/components/watermark/src/watermark2.mjs.map +1 -1
- package/es/directives/click-outside/index.mjs +1 -1
- package/es/hooks/use-locale/index.d.ts +5 -2
- package/es/hooks/use-locale/index.mjs.map +1 -1
- package/es/hooks/use-lockscreen/index.mjs +1 -1
- package/es/index.d.ts +436 -256
- package/es/index.mjs +17 -17
- package/es/utils/typescript.d.ts +61 -0
- package/es/utils/typescript.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.js +2 -2
- package/lib/components/alert/src/alert.js +42 -107
- package/lib/components/alert/src/alert.js.map +1 -1
- package/lib/components/alert/src/alert2.js +107 -42
- package/lib/components/alert/src/alert2.js.map +1 -1
- package/lib/components/badge/index.js +2 -2
- package/lib/components/badge/src/badge.js +32 -71
- package/lib/components/badge/src/badge.js.map +1 -1
- package/lib/components/badge/src/badge2.js +71 -32
- package/lib/components/badge/src/badge2.js.map +1 -1
- package/lib/components/breadcrumb/src/breadcrumb-item.vue.d.ts +1 -1
- package/lib/components/cascader/src/cascader.js +1 -1
- package/lib/components/cascader-panel/src/index.js +1 -1
- package/lib/components/cascader-panel/src/menu.js +1 -1
- package/lib/components/cascader-panel/src/node.js +115 -179
- package/lib/components/cascader-panel/src/node.js.map +1 -1
- package/lib/components/cascader-panel/src/node2.js +177 -115
- package/lib/components/cascader-panel/src/node2.js.map +1 -1
- package/lib/components/cascader-panel/src/store.js +1 -1
- package/lib/components/check-tag/index.js +2 -2
- package/lib/components/check-tag/src/check-tag.js +38 -15
- package/lib/components/check-tag/src/check-tag.js.map +1 -1
- package/lib/components/check-tag/src/check-tag2.js +15 -38
- package/lib/components/check-tag/src/check-tag2.js.map +1 -1
- package/lib/components/checkbox/index.js +2 -2
- package/lib/components/checkbox/src/checkbox-group.js +30 -71
- package/lib/components/checkbox/src/checkbox-group.js.map +1 -1
- package/lib/components/checkbox/src/checkbox-group2.js +71 -30
- package/lib/components/checkbox/src/checkbox-group2.js.map +1 -1
- package/lib/components/color-picker/src/color-picker2.js +1 -1
- package/lib/components/color-picker/style/css.d.ts +1 -1
- package/lib/components/color-picker/style/css.js +1 -1
- package/lib/components/color-picker-panel/index.js +2 -2
- package/lib/components/color-picker-panel/src/color-picker-panel.js +26 -117
- package/lib/components/color-picker-panel/src/color-picker-panel.js.map +1 -1
- package/lib/components/color-picker-panel/src/color-picker-panel2.js +117 -26
- package/lib/components/color-picker-panel/src/color-picker-panel2.js.map +1 -1
- package/lib/components/color-picker-panel/src/components/predefine.js +1 -1
- package/lib/components/dropdown/src/dropdown.js +1 -1
- package/lib/components/form/src/types.d.ts +1 -62
- package/lib/components/index.js +22 -22
- package/lib/components/input-tag/src/input-tag.js +1 -1
- package/lib/components/menu/index.js +2 -2
- package/lib/components/menu/src/menu-item-group.js +33 -4
- package/lib/components/menu/src/menu-item-group.js.map +1 -1
- package/lib/components/menu/src/menu-item-group2.js +4 -33
- package/lib/components/menu/src/menu-item-group2.js.map +1 -1
- package/lib/components/notification/index.js +1 -1
- package/lib/components/notification/src/notification.js +74 -139
- package/lib/components/notification/src/notification.js.map +1 -1
- package/lib/components/notification/src/notification2.js +139 -74
- package/lib/components/notification/src/notification2.js.map +1 -1
- package/lib/components/notification/src/notify.js +2 -2
- package/lib/components/popover/index.js +2 -2
- package/lib/components/popover/src/popover.js +67 -112
- package/lib/components/popover/src/popover.js.map +1 -1
- package/lib/components/popover/src/popover2.js +112 -67
- package/lib/components/popover/src/popover2.js.map +1 -1
- package/lib/components/popper/src/trigger2.js +1 -1
- package/lib/components/select/src/select.js +1 -1
- package/lib/components/select-v2/src/defaults.js +1 -1
- package/lib/components/skeleton/index.js +2 -2
- package/lib/components/skeleton/src/skeleton.js +48 -18
- package/lib/components/skeleton/src/skeleton.js.map +1 -1
- package/lib/components/skeleton/src/skeleton2.js +18 -48
- package/lib/components/skeleton/src/skeleton2.js.map +1 -1
- package/lib/components/tag/index.js +2 -2
- package/lib/components/tag/src/tag.js +99 -28
- package/lib/components/tag/src/tag.js.map +1 -1
- package/lib/components/tag/src/tag2.js +28 -99
- package/lib/components/tag/src/tag2.js.map +1 -1
- package/lib/components/tooltip/index.js +1 -1
- package/lib/components/tooltip/src/tooltip.js +1 -1
- package/lib/components/tooltip/src/tooltip2.js +1 -1
- package/lib/components/tooltip/src/trigger.js +72 -14
- package/lib/components/tooltip/src/trigger.js.map +1 -1
- package/lib/components/tooltip/src/trigger2.js +14 -72
- package/lib/components/tooltip/src/trigger2.js.map +1 -1
- package/lib/components/upload/index.js +2 -2
- package/lib/components/upload/src/upload-content.js +1 -1
- package/lib/components/upload/src/upload-content2.js +1 -1
- package/lib/components/upload/src/upload-list.js +1 -1
- package/lib/components/upload/src/upload.js +100 -125
- package/lib/components/upload/src/upload.js.map +1 -1
- package/lib/components/upload/src/upload2.js +125 -100
- package/lib/components/upload/src/upload2.js.map +1 -1
- package/lib/components/upload/src/use-handlers.js +1 -1
- package/lib/components/watermark/index.js +2 -2
- package/lib/components/watermark/src/watermark.js +27 -221
- package/lib/components/watermark/src/watermark.js.map +1 -1
- package/lib/components/watermark/src/watermark2.js +221 -27
- package/lib/components/watermark/src/watermark2.js.map +1 -1
- package/lib/directives/click-outside/index.js +1 -1
- package/lib/hooks/use-locale/index.d.ts +5 -2
- package/lib/hooks/use-locale/index.js.map +1 -1
- package/lib/hooks/use-lockscreen/index.js +1 -1
- package/lib/index.d.ts +436 -256
- package/lib/index.js +22 -22
- package/lib/utils/typescript.d.ts +61 -0
- package/lib/utils/typescript.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 +2 -2
- package/web-types.json +1 -1
@@ -1,123 +1,29 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import AlphaSlider from './components/alpha-slider.mjs';
|
4
|
-
import HueSlider from './components/hue-slider.mjs';
|
5
|
-
import Predefine from './components/predefine.mjs';
|
6
|
-
import SvPanel from './components/sv-panel.mjs';
|
7
|
-
import { colorPickerPanelProps, colorPickerPanelEmits, ROOT_COMMON_COLOR_INJECTION_KEY, colorPickerPanelContextKey } from './color-picker-panel2.mjs';
|
8
|
-
import { useCommonColor } from './composables/use-common-color.mjs';
|
9
|
-
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
10
|
-
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
11
|
-
import { useFormDisabled } from '../../form/src/hooks/use-form-common-props.mjs';
|
1
|
+
import { isNil } from 'lodash-unified';
|
2
|
+
import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
|
12
3
|
import { UPDATE_MODEL_EVENT } from '../../../constants/event.mjs';
|
4
|
+
import { isString } from '@vue/shared';
|
13
5
|
|
14
|
-
const
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
const inputRef = ref();
|
29
|
-
const customInput = ref("");
|
30
|
-
const { color } = inject(ROOT_COMMON_COLOR_INJECTION_KEY, () => useCommonColor(props, emit), true);
|
31
|
-
function handleConfirm() {
|
32
|
-
color.fromString(customInput.value);
|
33
|
-
if (color.value !== customInput.value) {
|
34
|
-
customInput.value = color.value;
|
35
|
-
}
|
36
|
-
}
|
37
|
-
onMounted(() => {
|
38
|
-
if (props.modelValue) {
|
39
|
-
customInput.value = color.value;
|
40
|
-
}
|
41
|
-
nextTick(() => {
|
42
|
-
var _a, _b, _c;
|
43
|
-
(_a = hue.value) == null ? void 0 : _a.update();
|
44
|
-
(_b = sv.value) == null ? void 0 : _b.update();
|
45
|
-
(_c = alpha.value) == null ? void 0 : _c.update();
|
46
|
-
});
|
47
|
-
});
|
48
|
-
watch(() => props.modelValue, (newVal) => {
|
49
|
-
if (newVal && newVal !== color.value) {
|
50
|
-
color.fromString(newVal);
|
51
|
-
}
|
52
|
-
});
|
53
|
-
watch(() => color.value, (val) => {
|
54
|
-
emit(UPDATE_MODEL_EVENT, val);
|
55
|
-
customInput.value = val;
|
56
|
-
});
|
57
|
-
provide(colorPickerPanelContextKey, {
|
58
|
-
currentColor: computed(() => color.value)
|
59
|
-
});
|
60
|
-
expose({
|
61
|
-
color,
|
62
|
-
inputRef
|
63
|
-
});
|
64
|
-
return (_ctx, _cache) => {
|
65
|
-
return openBlock(), createElementBlock("div", {
|
66
|
-
class: normalizeClass([unref(ns).b(), unref(ns).is("disabled", unref(disabled)), unref(ns).is("border", _ctx.border)])
|
67
|
-
}, [
|
68
|
-
createElementVNode("div", {
|
69
|
-
class: normalizeClass(unref(ns).e("wrapper"))
|
70
|
-
}, [
|
71
|
-
createVNode(HueSlider, {
|
72
|
-
ref_key: "hue",
|
73
|
-
ref: hue,
|
74
|
-
class: "hue-slider",
|
75
|
-
color: unref(color),
|
76
|
-
vertical: "",
|
77
|
-
disabled: unref(disabled)
|
78
|
-
}, null, 8, ["color", "disabled"]),
|
79
|
-
createVNode(SvPanel, {
|
80
|
-
ref_key: "sv",
|
81
|
-
ref: sv,
|
82
|
-
color: unref(color),
|
83
|
-
disabled: unref(disabled)
|
84
|
-
}, null, 8, ["color", "disabled"])
|
85
|
-
], 2),
|
86
|
-
_ctx.showAlpha ? (openBlock(), createBlock(AlphaSlider, {
|
87
|
-
key: 0,
|
88
|
-
ref_key: "alpha",
|
89
|
-
ref: alpha,
|
90
|
-
color: unref(color),
|
91
|
-
disabled: unref(disabled)
|
92
|
-
}, null, 8, ["color", "disabled"])) : createCommentVNode("v-if", true),
|
93
|
-
_ctx.predefine ? (openBlock(), createBlock(Predefine, {
|
94
|
-
key: 1,
|
95
|
-
ref: "predefine",
|
96
|
-
"enable-alpha": _ctx.showAlpha,
|
97
|
-
color: unref(color),
|
98
|
-
colors: _ctx.predefine,
|
99
|
-
disabled: unref(disabled)
|
100
|
-
}, null, 8, ["enable-alpha", "color", "colors", "disabled"])) : createCommentVNode("v-if", true),
|
101
|
-
createElementVNode("div", {
|
102
|
-
class: normalizeClass(unref(ns).e("footer"))
|
103
|
-
}, [
|
104
|
-
createVNode(unref(ElInput), {
|
105
|
-
ref_key: "inputRef",
|
106
|
-
ref: inputRef,
|
107
|
-
modelValue: customInput.value,
|
108
|
-
"onUpdate:modelValue": ($event) => customInput.value = $event,
|
109
|
-
"validate-event": false,
|
110
|
-
size: "small",
|
111
|
-
disabled: unref(disabled),
|
112
|
-
onChange: handleConfirm
|
113
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"]),
|
114
|
-
renderSlot(_ctx.$slots, "footer")
|
115
|
-
], 2)
|
116
|
-
], 2);
|
117
|
-
};
|
6
|
+
const colorPickerPanelProps = buildProps({
|
7
|
+
modelValue: {
|
8
|
+
type: definePropType(String),
|
9
|
+
default: void 0
|
10
|
+
},
|
11
|
+
border: {
|
12
|
+
type: Boolean,
|
13
|
+
default: true
|
14
|
+
},
|
15
|
+
showAlpha: Boolean,
|
16
|
+
colorFormat: String,
|
17
|
+
disabled: Boolean,
|
18
|
+
predefine: {
|
19
|
+
type: definePropType(Array)
|
118
20
|
}
|
119
21
|
});
|
120
|
-
|
22
|
+
const colorPickerPanelEmits = {
|
23
|
+
[UPDATE_MODEL_EVENT]: (val) => isString(val) || isNil(val)
|
24
|
+
};
|
25
|
+
const ROOT_COMMON_COLOR_INJECTION_KEY = Symbol("colorCommonPickerKey");
|
26
|
+
const colorPickerPanelContextKey = Symbol("colorPickerPanelContextKey");
|
121
27
|
|
122
|
-
export {
|
28
|
+
export { ROOT_COMMON_COLOR_INJECTION_KEY, colorPickerPanelContextKey, colorPickerPanelEmits, colorPickerPanelProps };
|
123
29
|
//# sourceMappingURL=color-picker-panel.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"color-picker-panel.mjs","sources":["../../../../../../packages/components/color-picker-panel/src/color-picker-panel.
|
1
|
+
{"version":3,"file":"color-picker-panel.mjs","sources":["../../../../../../packages/components/color-picker-panel/src/color-picker-panel.ts"],"sourcesContent":["import { isNil } from 'lodash-unified'\nimport { buildProps, definePropType, isString } from '@element-plus/utils'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/constants'\n\nimport type {\n ComputedRef,\n ExtractPropTypes,\n InjectionKey,\n __ExtractPublicPropTypes,\n} from 'vue'\nimport type ColorPickerPanel from './color-picker-panel.vue'\nimport type Color from './utils/color'\n\nexport const colorPickerPanelProps = buildProps({\n /**\n * @description binding value\n */\n modelValue: {\n type: definePropType<string | null>(String),\n default: undefined,\n },\n /**\n * @description whether the color picker is bordered\n */\n border: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether to display the alpha slider\n */\n showAlpha: Boolean,\n /**\n * @description color format of v-model\n */\n colorFormat: String,\n /**\n * @description whether to disable the color picker\n */\n disabled: Boolean,\n /**\n * @description predefined color options\n */\n predefine: {\n type: definePropType<string[]>(Array),\n },\n} as const)\nexport const colorPickerPanelEmits = {\n [UPDATE_MODEL_EVENT]: (val: string | null) => isString(val) || isNil(val),\n}\n\nexport type ColorPickerPanelProps = ExtractPropTypes<\n typeof colorPickerPanelProps\n>\nexport type ColorPickerPanelPropsPublic = __ExtractPublicPropTypes<\n typeof colorPickerPanelProps\n>\nexport type ColorPickerPanelEmits = typeof colorPickerPanelEmits\nexport type ColorPickerPanelInstance = InstanceType<typeof ColorPickerPanel> &\n unknown\n\nexport interface ColorPickerPanelContext {\n currentColor: ComputedRef<string>\n}\n\nexport interface CommonColorContext {\n color: Color\n}\n\nexport const ROOT_COMMON_COLOR_INJECTION_KEY: InjectionKey<CommonColorContext> =\n Symbol('colorCommonPickerKey')\nexport const colorPickerPanelContextKey: InjectionKey<ColorPickerPanelContext> =\n Symbol('colorPickerPanelContextKey')\n"],"names":[],"mappings":";;;;;AAGY,MAAC,qBAAqB,GAAG,UAAU,CAAC;AAChD,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,SAAS,EAAE,OAAO;AACpB,EAAE,WAAW,EAAE,MAAM;AACrB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,cAAc,CAAC,KAAK,CAAC;AAC/B,GAAG;AACH,CAAC,EAAE;AACS,MAAC,qBAAqB,GAAG;AACrC,EAAE,CAAC,kBAAkB,GAAG,CAAC,GAAG,KAAK,QAAQ,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,GAAG,CAAC;AAC5D,EAAE;AACU,MAAC,+BAA+B,GAAG,MAAM,CAAC,sBAAsB,EAAE;AAClE,MAAC,0BAA0B,GAAG,MAAM,CAAC,4BAA4B;;;;"}
|
@@ -1,29 +1,123 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
1
|
+
import { defineComponent, ref, inject, onMounted, nextTick, watch, provide, computed, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, createVNode, createBlock, createCommentVNode, renderSlot } from 'vue';
|
2
|
+
import { ElInput } from '../../input/index.mjs';
|
3
|
+
import AlphaSlider from './components/alpha-slider.mjs';
|
4
|
+
import HueSlider from './components/hue-slider.mjs';
|
5
|
+
import Predefine from './components/predefine.mjs';
|
6
|
+
import SvPanel from './components/sv-panel.mjs';
|
7
|
+
import { colorPickerPanelProps, colorPickerPanelEmits, ROOT_COMMON_COLOR_INJECTION_KEY, colorPickerPanelContextKey } from './color-picker-panel.mjs';
|
8
|
+
import { useCommonColor } from './composables/use-common-color.mjs';
|
9
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
10
|
+
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
11
|
+
import { useFormDisabled } from '../../form/src/hooks/use-form-common-props.mjs';
|
3
12
|
import { UPDATE_MODEL_EVENT } from '../../../constants/event.mjs';
|
4
|
-
import { isString } from '@vue/shared';
|
5
13
|
|
6
|
-
const
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
14
|
+
const __default__ = defineComponent({
|
15
|
+
name: "ElColorPickerPanel"
|
16
|
+
});
|
17
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
18
|
+
...__default__,
|
19
|
+
props: colorPickerPanelProps,
|
20
|
+
emits: colorPickerPanelEmits,
|
21
|
+
setup(__props, { expose, emit }) {
|
22
|
+
const props = __props;
|
23
|
+
const ns = useNamespace("color-picker-panel");
|
24
|
+
const disabled = useFormDisabled();
|
25
|
+
const hue = ref();
|
26
|
+
const sv = ref();
|
27
|
+
const alpha = ref();
|
28
|
+
const inputRef = ref();
|
29
|
+
const customInput = ref("");
|
30
|
+
const { color } = inject(ROOT_COMMON_COLOR_INJECTION_KEY, () => useCommonColor(props, emit), true);
|
31
|
+
function handleConfirm() {
|
32
|
+
color.fromString(customInput.value);
|
33
|
+
if (color.value !== customInput.value) {
|
34
|
+
customInput.value = color.value;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
onMounted(() => {
|
38
|
+
if (props.modelValue) {
|
39
|
+
customInput.value = color.value;
|
40
|
+
}
|
41
|
+
nextTick(() => {
|
42
|
+
var _a, _b, _c;
|
43
|
+
(_a = hue.value) == null ? void 0 : _a.update();
|
44
|
+
(_b = sv.value) == null ? void 0 : _b.update();
|
45
|
+
(_c = alpha.value) == null ? void 0 : _c.update();
|
46
|
+
});
|
47
|
+
});
|
48
|
+
watch(() => props.modelValue, (newVal) => {
|
49
|
+
if (newVal && newVal !== color.value) {
|
50
|
+
color.fromString(newVal);
|
51
|
+
}
|
52
|
+
});
|
53
|
+
watch(() => color.value, (val) => {
|
54
|
+
emit(UPDATE_MODEL_EVENT, val);
|
55
|
+
customInput.value = val;
|
56
|
+
});
|
57
|
+
provide(colorPickerPanelContextKey, {
|
58
|
+
currentColor: computed(() => color.value)
|
59
|
+
});
|
60
|
+
expose({
|
61
|
+
color,
|
62
|
+
inputRef
|
63
|
+
});
|
64
|
+
return (_ctx, _cache) => {
|
65
|
+
return openBlock(), createElementBlock("div", {
|
66
|
+
class: normalizeClass([unref(ns).b(), unref(ns).is("disabled", unref(disabled)), unref(ns).is("border", _ctx.border)])
|
67
|
+
}, [
|
68
|
+
createElementVNode("div", {
|
69
|
+
class: normalizeClass(unref(ns).e("wrapper"))
|
70
|
+
}, [
|
71
|
+
createVNode(HueSlider, {
|
72
|
+
ref_key: "hue",
|
73
|
+
ref: hue,
|
74
|
+
class: "hue-slider",
|
75
|
+
color: unref(color),
|
76
|
+
vertical: "",
|
77
|
+
disabled: unref(disabled)
|
78
|
+
}, null, 8, ["color", "disabled"]),
|
79
|
+
createVNode(SvPanel, {
|
80
|
+
ref_key: "sv",
|
81
|
+
ref: sv,
|
82
|
+
color: unref(color),
|
83
|
+
disabled: unref(disabled)
|
84
|
+
}, null, 8, ["color", "disabled"])
|
85
|
+
], 2),
|
86
|
+
_ctx.showAlpha ? (openBlock(), createBlock(AlphaSlider, {
|
87
|
+
key: 0,
|
88
|
+
ref_key: "alpha",
|
89
|
+
ref: alpha,
|
90
|
+
color: unref(color),
|
91
|
+
disabled: unref(disabled)
|
92
|
+
}, null, 8, ["color", "disabled"])) : createCommentVNode("v-if", true),
|
93
|
+
_ctx.predefine ? (openBlock(), createBlock(Predefine, {
|
94
|
+
key: 1,
|
95
|
+
ref: "predefine",
|
96
|
+
"enable-alpha": _ctx.showAlpha,
|
97
|
+
color: unref(color),
|
98
|
+
colors: _ctx.predefine,
|
99
|
+
disabled: unref(disabled)
|
100
|
+
}, null, 8, ["enable-alpha", "color", "colors", "disabled"])) : createCommentVNode("v-if", true),
|
101
|
+
createElementVNode("div", {
|
102
|
+
class: normalizeClass(unref(ns).e("footer"))
|
103
|
+
}, [
|
104
|
+
createVNode(unref(ElInput), {
|
105
|
+
ref_key: "inputRef",
|
106
|
+
ref: inputRef,
|
107
|
+
modelValue: customInput.value,
|
108
|
+
"onUpdate:modelValue": ($event) => customInput.value = $event,
|
109
|
+
"validate-event": false,
|
110
|
+
size: "small",
|
111
|
+
disabled: unref(disabled),
|
112
|
+
onChange: handleConfirm
|
113
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"]),
|
114
|
+
renderSlot(_ctx.$slots, "footer")
|
115
|
+
], 2)
|
116
|
+
], 2);
|
117
|
+
};
|
20
118
|
}
|
21
119
|
});
|
22
|
-
|
23
|
-
[UPDATE_MODEL_EVENT]: (val) => isString(val) || isNil(val)
|
24
|
-
};
|
25
|
-
const ROOT_COMMON_COLOR_INJECTION_KEY = Symbol("colorCommonPickerKey");
|
26
|
-
const colorPickerPanelContextKey = Symbol("colorPickerPanelContextKey");
|
120
|
+
var ColorPickerPanel = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "color-picker-panel.vue"]]);
|
27
121
|
|
28
|
-
export {
|
122
|
+
export { ColorPickerPanel as default };
|
29
123
|
//# sourceMappingURL=color-picker-panel2.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"color-picker-panel2.mjs","sources":["../../../../../../packages/components/color-picker-panel/src/color-picker-panel.
|
1
|
+
{"version":3,"file":"color-picker-panel2.mjs","sources":["../../../../../../packages/components/color-picker-panel/src/color-picker-panel.vue"],"sourcesContent":["<template>\n <div :class=\"[ns.b(), ns.is('disabled', disabled), ns.is('border', border)]\">\n <div :class=\"ns.e('wrapper')\">\n <hue-slider\n ref=\"hue\"\n class=\"hue-slider\"\n :color=\"color\"\n vertical\n :disabled=\"disabled\"\n />\n <sv-panel ref=\"sv\" :color=\"color\" :disabled=\"disabled\" />\n </div>\n <alpha-slider\n v-if=\"showAlpha\"\n ref=\"alpha\"\n :color=\"color\"\n :disabled=\"disabled\"\n />\n <predefine\n v-if=\"predefine\"\n ref=\"predefine\"\n :enable-alpha=\"showAlpha\"\n :color=\"color\"\n :colors=\"predefine\"\n :disabled=\"disabled\"\n />\n <div :class=\"ns.e('footer')\">\n <el-input\n ref=\"inputRef\"\n v-model=\"customInput\"\n :validate-event=\"false\"\n size=\"small\"\n :disabled=\"disabled\"\n @change=\"handleConfirm\"\n />\n <slot name=\"footer\" />\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, inject, nextTick, onMounted, provide, ref, watch } from 'vue'\nimport { ElInput } from '@element-plus/components/input'\nimport { useFormDisabled } from '@element-plus/components/form'\nimport { useNamespace } from '@element-plus/hooks'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport AlphaSlider from './components/alpha-slider.vue'\nimport HueSlider from './components/hue-slider.vue'\nimport Predefine from './components/predefine.vue'\nimport SvPanel from './components/sv-panel.vue'\nimport {\n ROOT_COMMON_COLOR_INJECTION_KEY,\n colorPickerPanelContextKey,\n colorPickerPanelEmits,\n colorPickerPanelProps,\n} from './color-picker-panel'\nimport { useCommonColor } from './composables/use-common-color'\n\nimport type { InputInstance } from '@element-plus/components/input'\n\ndefineOptions({\n name: 'ElColorPickerPanel',\n})\nconst props = defineProps(colorPickerPanelProps)\nconst emit = defineEmits(colorPickerPanelEmits)\n\nconst ns = useNamespace('color-picker-panel')\nconst disabled = useFormDisabled()\nconst hue = ref<InstanceType<typeof HueSlider>>()\nconst sv = ref<InstanceType<typeof SvPanel>>()\nconst alpha = ref<InstanceType<typeof AlphaSlider>>()\nconst inputRef = ref<InputInstance>()\nconst customInput = ref('')\n\nconst { color } = inject(\n ROOT_COMMON_COLOR_INJECTION_KEY,\n () => useCommonColor(props, emit),\n true\n)\n\nfunction handleConfirm() {\n color.fromString(customInput.value)\n if (color.value !== customInput.value) {\n customInput.value = color.value\n }\n}\n\nonMounted(() => {\n if (props.modelValue) {\n customInput.value = color.value\n }\n nextTick(() => {\n hue.value?.update()\n sv.value?.update()\n alpha.value?.update()\n })\n})\n\nwatch(\n () => props.modelValue,\n (newVal) => {\n if (newVal && newVal !== color.value) {\n color.fromString(newVal)\n }\n }\n)\n\nwatch(\n () => color.value,\n (val) => {\n emit(UPDATE_MODEL_EVENT, val)\n customInput.value = val\n }\n)\n\nprovide(colorPickerPanelContextKey, {\n currentColor: computed(() => color.value),\n})\n\ndefineExpose({\n /**\n * @description current color object\n */\n color,\n /**\n * @description custom input ref\n */\n inputRef,\n})\n</script>\n"],"names":["_openBlock","_createElementBlock","_normalizeClass","_unref","_createElementVNode","_createVNode"],"mappings":"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"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent, inject, ref, watch, watchEffect, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, normalizeStyle } from 'vue';
|
2
|
-
import { colorPickerPanelContextKey } from '../color-picker-
|
2
|
+
import { colorPickerPanelContextKey } from '../color-picker-panel.mjs';
|
3
3
|
import Color from '../utils/color.mjs';
|
4
4
|
import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.mjs';
|
5
5
|
import { useNamespace } from '../../../../hooks/use-namespace/index.mjs';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { useTooltipTriggerProps } from '../../tooltip/src/
|
1
|
+
import { useTooltipTriggerProps } from '../../tooltip/src/trigger2.mjs';
|
2
2
|
import { roleTypes } from '../../popper/src/popper.mjs';
|
3
3
|
import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
|
4
4
|
import { EVENT_CODE } from '../../../constants/aria.mjs';
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import type { SetupContext, UnwrapRef } from 'vue';
|
2
2
|
import type { RuleItem, ValidateError, ValidateFieldsError } from 'async-validator';
|
3
3
|
import type { ComponentSize } from '@element-plus/nightly/es/constants';
|
4
|
-
import type { Arrayable } from '@element-plus/nightly/es/utils';
|
4
|
+
import type { Arrayable, FieldPath } from '@element-plus/nightly/es/utils';
|
5
5
|
import type { MaybeRef } from '@vueuse/core';
|
6
6
|
import type { FormItemProp, FormItemProps, FormItemValidateState } from './form-item';
|
7
7
|
import type { FormEmits, FormProps } from './form';
|
@@ -10,66 +10,6 @@ export type FormLabelWidthContext = ReturnType<typeof useFormLabelWidth>;
|
|
10
10
|
export interface FormItemRule extends RuleItem {
|
11
11
|
trigger?: Arrayable<string>;
|
12
12
|
}
|
13
|
-
type Primitive = null | undefined | string | number | boolean | symbol | bigint;
|
14
|
-
type BrowserNativeObject = Date | FileList | File | Blob | RegExp;
|
15
|
-
/**
|
16
|
-
* Check whether it is tuple
|
17
|
-
*
|
18
|
-
* 检查是否为元组
|
19
|
-
*
|
20
|
-
* @example
|
21
|
-
* IsTuple<[1, 2, 3]> => true
|
22
|
-
* IsTuple<Array[number]> => false
|
23
|
-
*/
|
24
|
-
type IsTuple<T extends ReadonlyArray<any>> = number extends T['length'] ? false : true;
|
25
|
-
/**
|
26
|
-
* Array method key
|
27
|
-
*
|
28
|
-
* 数组方法键
|
29
|
-
*/
|
30
|
-
type ArrayMethodKey = keyof any[];
|
31
|
-
/**
|
32
|
-
* Tuple index key
|
33
|
-
*
|
34
|
-
* 元组下标键
|
35
|
-
*
|
36
|
-
* @example
|
37
|
-
* TupleKey<[1, 2, 3]> => '0' | '1' | '2'
|
38
|
-
*/
|
39
|
-
type TupleKey<T extends ReadonlyArray<any>> = Exclude<keyof T, ArrayMethodKey>;
|
40
|
-
/**
|
41
|
-
* Array index key
|
42
|
-
*
|
43
|
-
* 数组下标键
|
44
|
-
*/
|
45
|
-
type ArrayKey = number;
|
46
|
-
/**
|
47
|
-
* Helper type for recursively constructing paths through a type
|
48
|
-
*
|
49
|
-
* 用于通过一个类型递归构建路径的辅助类型
|
50
|
-
*/
|
51
|
-
type PathImpl<K extends string | number, V> = V extends Primitive | BrowserNativeObject ? `${K}` : `${K}` | `${K}.${Path<V>}`;
|
52
|
-
/**
|
53
|
-
* Type which collects all paths through a type
|
54
|
-
*
|
55
|
-
* 通过一个类型收集所有路径的类型
|
56
|
-
*
|
57
|
-
* @see {@link FieldPath}
|
58
|
-
*/
|
59
|
-
type Path<T> = T extends ReadonlyArray<infer V> ? IsTuple<T> extends true ? {
|
60
|
-
[K in TupleKey<T>]-?: PathImpl<Exclude<K, symbol>, T[K]>;
|
61
|
-
}[TupleKey<T>] : PathImpl<ArrayKey, V> : {
|
62
|
-
[K in keyof T]-?: PathImpl<Exclude<K, symbol>, T[K]>;
|
63
|
-
}[keyof T];
|
64
|
-
/**
|
65
|
-
* Type which collects all paths through a type
|
66
|
-
*
|
67
|
-
* 通过一个类型收集所有路径的类型
|
68
|
-
*
|
69
|
-
* @example
|
70
|
-
* FieldPath<{ 1: number; a: number; b: string; c: { d: number; e: string }; f: [{ value: string }]; g: { value: string }[]; h: Date; i: FileList; j: File; k: Blob; l: RegExp }> => '1' | 'a' | 'b' | 'c' | 'f' | 'g' | 'c.d' | 'c.e' | 'f.0' | 'f.0.value' | 'g.number' | 'g.number.value' | 'h' | 'i' | 'j' | 'k' | 'l'
|
71
|
-
*/
|
72
|
-
type FieldPath<T> = T extends object ? Path<T> : never;
|
73
13
|
export type FormRules<T extends MaybeRef<Record<string, any> | string> = string> = Partial<Record<UnwrapRef<T> extends string ? UnwrapRef<T> : FieldPath<UnwrapRef<T>>, Arrayable<FormItemRule>>>;
|
74
14
|
export type FormValidationResult = Promise<boolean>;
|
75
15
|
export type FormValidateCallback = (isValid: boolean, invalidFields?: ValidateFieldsError) => Promise<void> | void;
|
@@ -103,4 +43,3 @@ export interface FormItemContext extends FormItemProps {
|
|
103
43
|
resetField(): void;
|
104
44
|
clearValidate(): void;
|
105
45
|
}
|
106
|
-
export {};
|
package/es/components/index.mjs
CHANGED
@@ -83,16 +83,12 @@ export { ElMessage } from './message/index.mjs';
|
|
83
83
|
export { ElMessageBox } from './message-box/index.mjs';
|
84
84
|
export { ElNotification } from './notification/index.mjs';
|
85
85
|
export { ElPopover, ElPopoverDirective } from './popover/index.mjs';
|
86
|
-
export { default as FixedSizeGrid } from './virtual-list/src/components/fixed-size-grid.mjs';
|
87
|
-
export { default as DynamicSizeGrid } from './virtual-list/src/components/dynamic-size-grid.mjs';
|
88
|
-
export { default as ElLoadingDirective, default as vLoading } from './loading/src/directive.mjs';
|
89
|
-
export { default as ElLoadingService } from './loading/src/service.mjs';
|
90
86
|
export { affixEmits, affixProps } from './affix/src/affix.mjs';
|
91
|
-
export { alertEffects, alertEmits, alertProps } from './alert/src/
|
87
|
+
export { alertEffects, alertEmits, alertProps } from './alert/src/alert.mjs';
|
92
88
|
export { autocompleteEmits, autocompleteProps } from './autocomplete/src/autocomplete.mjs';
|
93
89
|
export { avatarEmits, avatarProps } from './avatar/src/avatar.mjs';
|
94
90
|
export { backtopEmits, backtopProps } from './backtop/src/backtop.mjs';
|
95
|
-
export { badgeProps } from './badge/src/
|
91
|
+
export { badgeProps } from './badge/src/badge.mjs';
|
96
92
|
export { breadcrumbProps } from './breadcrumb/src/breadcrumb.mjs';
|
97
93
|
export { breadcrumbItemProps } from './breadcrumb/src/breadcrumb-item.mjs';
|
98
94
|
export { breadcrumbKey } from './breadcrumb/src/constants.mjs';
|
@@ -106,15 +102,15 @@ export { CAROUSEL_ITEM_NAME, carouselContextKey } from './carousel/src/constants
|
|
106
102
|
export { cascaderEmits, cascaderProps } from './cascader/src/cascader.mjs';
|
107
103
|
export { CASCADER_PANEL_INJECTION_KEY } from './cascader-panel/src/types.mjs';
|
108
104
|
export { CommonProps, DefaultProps, cascaderPanelEmits, cascaderPanelProps, useCascaderConfig } from './cascader-panel/src/config.mjs';
|
109
|
-
export { checkTagEmits, checkTagProps } from './check-tag/src/check-
|
110
|
-
export { checkboxGroupEmits, checkboxGroupProps } from './checkbox/src/checkbox-
|
105
|
+
export { checkTagEmits, checkTagProps } from './check-tag/src/check-tag2.mjs';
|
106
|
+
export { checkboxGroupEmits, checkboxGroupProps } from './checkbox/src/checkbox-group.mjs';
|
111
107
|
export { checkboxEmits, checkboxProps } from './checkbox/src/checkbox.mjs';
|
112
108
|
export { checkboxGroupContextKey } from './checkbox/src/constants.mjs';
|
113
109
|
export { colProps } from './col/src/col.mjs';
|
114
110
|
export { collapseEmits, collapseProps, emitChangeFn } from './collapse/src/collapse.mjs';
|
115
111
|
export { collapseItemProps } from './collapse/src/collapse-item.mjs';
|
116
112
|
export { collapseContextKey } from './collapse/src/constants.mjs';
|
117
|
-
export { ROOT_COMMON_COLOR_INJECTION_KEY, colorPickerPanelContextKey, colorPickerPanelEmits, colorPickerPanelProps } from './color-picker-panel/src/color-picker-
|
113
|
+
export { ROOT_COMMON_COLOR_INJECTION_KEY, colorPickerPanelContextKey, colorPickerPanelEmits, colorPickerPanelProps } from './color-picker-panel/src/color-picker-panel.mjs';
|
118
114
|
export { colorPickerEmits, colorPickerProps } from './color-picker/src/color-picker.mjs';
|
119
115
|
export { messageConfig } from './config-provider/src/config-provider.mjs';
|
120
116
|
export { configProviderProps } from './config-provider/src/config-provider-props.mjs';
|
@@ -148,7 +144,7 @@ export { inputTagEmits, inputTagProps } from './input-tag/src/input-tag.mjs';
|
|
148
144
|
export { linkEmits, linkProps } from './link/src/link.mjs';
|
149
145
|
export { menuEmits, menuProps } from './menu/src/menu.mjs';
|
150
146
|
export { menuItemEmits, menuItemProps } from './menu/src/menu-item.mjs';
|
151
|
-
export { menuItemGroupProps } from './menu/src/menu-item-
|
147
|
+
export { menuItemGroupProps } from './menu/src/menu-item-group2.mjs';
|
152
148
|
export { subMenuProps } from './menu/src/sub-menu.mjs';
|
153
149
|
export { MENU_INJECTION_KEY, SUB_MENU_INJECTION_KEY } from './menu/src/tokens.mjs';
|
154
150
|
export { overlayEmits, overlayProps } from './overlay/src/overlay.mjs';
|
@@ -180,7 +176,7 @@ export { scrollbarContextKey } from './scrollbar/src/constants.mjs';
|
|
180
176
|
export { selectGroupKey, selectKey } from './select/src/token.mjs';
|
181
177
|
export { selectEmits, selectProps } from './select/src/select.mjs';
|
182
178
|
export { selectV2InjectionKey } from './select-v2/src/token.mjs';
|
183
|
-
export { skeletonProps } from './skeleton/src/
|
179
|
+
export { skeletonProps } from './skeleton/src/skeleton2.mjs';
|
184
180
|
export { skeletonItemProps } from './skeleton/src/skeleton-item.mjs';
|
185
181
|
export { sliderEmits, sliderProps } from './slider/src/slider.mjs';
|
186
182
|
export { sliderContextKey } from './slider/src/constants.mjs';
|
@@ -203,7 +199,7 @@ export { tabBarProps } from './tabs/src/tab-bar.mjs';
|
|
203
199
|
export { tabNavEmits, tabNavProps } from './tabs/src/tab-nav.mjs';
|
204
200
|
export { tabPaneProps } from './tabs/src/tab-pane.mjs';
|
205
201
|
export { tabsRootContextKey } from './tabs/src/constants.mjs';
|
206
|
-
export { tagEmits, tagProps } from './tag/src/
|
202
|
+
export { tagEmits, tagProps } from './tag/src/tag2.mjs';
|
207
203
|
export { textProps } from './text/src/text.mjs';
|
208
204
|
export { buildTimeList, dateEquals, dayOrDaysToDate, extractDateFormat, extractTimeFormat, formatter, makeList, parseDate, rangeArr, valueEquals } from './time-picker/src/utils.mjs';
|
209
205
|
export { DEFAULT_FORMATS_DATE, DEFAULT_FORMATS_DATEPICKER, DEFAULT_FORMATS_TIME, PICKER_BASE_INJECTION_KEY, PICKER_POPPER_OPTIONS_INJECTION_KEY, ROOT_COMMON_PICKER_INJECTION_KEY, timeUnits } from './time-picker/src/constants.mjs';
|
@@ -214,20 +210,22 @@ export { timeSelectProps } from './time-select/src/time-select.mjs';
|
|
214
210
|
export { timelineItemProps } from './timeline/src/timeline-item.mjs';
|
215
211
|
export { TIMELINE_INJECTION_KEY } from './timeline/src/tokens.mjs';
|
216
212
|
export { tooltipEmits, useTooltipModelToggle, useTooltipModelToggleEmits, useTooltipModelToggleProps, useTooltipProps } from './tooltip/src/tooltip.mjs';
|
217
|
-
export { useTooltipTriggerProps } from './tooltip/src/
|
213
|
+
export { useTooltipTriggerProps } from './tooltip/src/trigger2.mjs';
|
218
214
|
export { useTooltipContentProps } from './tooltip/src/content.mjs';
|
219
215
|
export { TOOLTIP_INJECTION_KEY } from './tooltip/src/constants.mjs';
|
220
216
|
export { LEFT_CHECK_CHANGE_EVENT, RIGHT_CHECK_CHANGE_EVENT, transferCheckedChangeFn, transferEmits, transferProps } from './transfer/src/transfer.mjs';
|
221
217
|
export { NODE_INSTANCE_INJECTION_KEY, ROOT_TREE_INJECTION_KEY, TREE_NODE_MAP_INJECTION_KEY } from './tree/src/tokens.mjs';
|
222
|
-
export { genFileId, uploadBaseProps, uploadListTypes, uploadProps } from './upload/src/
|
218
|
+
export { genFileId, uploadBaseProps, uploadListTypes, uploadProps } from './upload/src/upload.mjs';
|
223
219
|
export { uploadContentProps } from './upload/src/upload-content.mjs';
|
224
220
|
export { uploadListEmits, uploadListProps } from './upload/src/upload-list.mjs';
|
225
221
|
export { uploadDraggerEmits, uploadDraggerProps } from './upload/src/upload-dragger.mjs';
|
226
222
|
export { uploadContextKey } from './upload/src/constants.mjs';
|
227
223
|
export { default as FixedSizeList } from './virtual-list/src/components/fixed-size-list.mjs';
|
228
224
|
export { default as DynamicSizeList } from './virtual-list/src/components/dynamic-size-list.mjs';
|
225
|
+
export { default as FixedSizeGrid } from './virtual-list/src/components/fixed-size-grid.mjs';
|
226
|
+
export { default as DynamicSizeGrid } from './virtual-list/src/components/dynamic-size-grid.mjs';
|
229
227
|
export { virtualizedGridProps, virtualizedListProps, virtualizedProps, virtualizedScrollbarProps } from './virtual-list/src/props.mjs';
|
230
|
-
export { watermarkProps } from './watermark/src/
|
228
|
+
export { watermarkProps } from './watermark/src/watermark.mjs';
|
231
229
|
export { tourEmits, tourProps } from './tour/src/tour.mjs';
|
232
230
|
export { tourStepEmits, tourStepProps } from './tour/src/step.mjs';
|
233
231
|
export { tourContentEmits, tourContentProps, tourPlacements, tourStrategies } from './tour/src/content.mjs';
|
@@ -236,7 +234,9 @@ export { defaultProps, segmentedEmits, segmentedProps } from './segmented/src/se
|
|
236
234
|
export { mentionEmits, mentionProps } from './mention/src/mention.mjs';
|
237
235
|
export { splitterProps } from './splitter/src/splitter.mjs';
|
238
236
|
export { splitterPanelProps } from './splitter/src/split-panel.mjs';
|
237
|
+
export { default as ElLoadingDirective, default as vLoading } from './loading/src/directive.mjs';
|
238
|
+
export { default as ElLoadingService } from './loading/src/service.mjs';
|
239
239
|
export { MESSAGE_DEFAULT_PLACEMENT, messageDefaults, messageEmits, messagePlacement, messageProps, messageTypes } from './message/src/message.mjs';
|
240
|
-
export { notificationEmits, notificationProps, notificationTypes } from './notification/src/
|
241
|
-
export { popoverEmits, popoverProps } from './popover/src/
|
240
|
+
export { notificationEmits, notificationProps, notificationTypes } from './notification/src/notification.mjs';
|
241
|
+
export { popoverEmits, popoverProps } from './popover/src/popover.mjs';
|
242
242
|
//# sourceMappingURL=index.mjs.map
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { tagProps } from '../../tag/src/
|
1
|
+
import { tagProps } from '../../tag/src/tag2.mjs';
|
2
2
|
import { CircleClose } from '@element-plus/icons-vue';
|
3
3
|
import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
|
4
4
|
import { EVENT_CODE } from '../../../constants/aria.mjs';
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import Menu from './src/menu.mjs';
|
2
2
|
export { menuEmits, menuProps } from './src/menu.mjs';
|
3
3
|
import MenuItem from './src/menu-item2.mjs';
|
4
|
-
import MenuItemGroup from './src/menu-item-
|
4
|
+
import MenuItemGroup from './src/menu-item-group.mjs';
|
5
5
|
import SubMenu from './src/sub-menu.mjs';
|
6
6
|
export { subMenuProps } from './src/sub-menu.mjs';
|
7
7
|
export { menuItemEmits, menuItemProps } from './src/menu-item.mjs';
|
8
|
-
export { menuItemGroupProps } from './src/menu-item-
|
8
|
+
export { menuItemGroupProps } from './src/menu-item-group2.mjs';
|
9
9
|
export { MENU_INJECTION_KEY, SUB_MENU_INJECTION_KEY } from './src/tokens.mjs';
|
10
10
|
import { withInstall, withNoopInstall } from '../../utils/vue/install.mjs';
|
11
11
|
|
@@ -1,6 +1,35 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, Fragment, createTextVNode, toDisplayString, renderSlot } from 'vue';
|
2
|
+
import { menuItemGroupProps } from './menu-item-group2.mjs';
|
3
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
4
|
+
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
4
5
|
|
5
|
-
|
6
|
+
const __default__ = defineComponent({
|
7
|
+
name: "ElMenuItemGroup"
|
8
|
+
});
|
9
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
10
|
+
...__default__,
|
11
|
+
props: menuItemGroupProps,
|
12
|
+
setup(__props) {
|
13
|
+
const ns = useNamespace("menu-item-group");
|
14
|
+
return (_ctx, _cache) => {
|
15
|
+
return openBlock(), createElementBlock("li", {
|
16
|
+
class: normalizeClass(unref(ns).b())
|
17
|
+
}, [
|
18
|
+
createElementVNode("div", {
|
19
|
+
class: normalizeClass(unref(ns).e("title"))
|
20
|
+
}, [
|
21
|
+
!_ctx.$slots.title ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
22
|
+
createTextVNode(toDisplayString(_ctx.title), 1)
|
23
|
+
], 64)) : renderSlot(_ctx.$slots, "title", { key: 1 })
|
24
|
+
], 2),
|
25
|
+
createElementVNode("ul", null, [
|
26
|
+
renderSlot(_ctx.$slots, "default")
|
27
|
+
])
|
28
|
+
], 2);
|
29
|
+
};
|
30
|
+
}
|
31
|
+
});
|
32
|
+
var MenuItemGroup = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "menu-item-group.vue"]]);
|
33
|
+
|
34
|
+
export { MenuItemGroup as default };
|
6
35
|
//# sourceMappingURL=menu-item-group.mjs.map
|