@element-plus/nightly 0.0.20251015 → 0.0.20251016
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 +74 -24
- package/dist/index.full.min.js +13 -13
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +13 -13
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +74 -24
- 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/autocomplete/index.mjs +2 -2
- package/es/components/autocomplete/src/autocomplete.d.ts +1 -0
- package/es/components/autocomplete/src/autocomplete.mjs +443 -60
- package/es/components/autocomplete/src/autocomplete.mjs.map +1 -1
- package/es/components/autocomplete/src/autocomplete.vue.d.ts +3 -0
- package/es/components/autocomplete/src/autocomplete2.mjs +60 -442
- package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
- package/es/components/cascader/src/cascader2.mjs +5 -4
- package/es/components/cascader/src/cascader2.mjs.map +1 -1
- package/es/components/col/index.mjs +2 -2
- package/es/components/col/src/col.mjs +64 -43
- package/es/components/col/src/col.mjs.map +1 -1
- package/es/components/col/src/col2.mjs +43 -64
- package/es/components/col/src/col2.mjs.map +1 -1
- package/es/components/collapse/index.mjs +2 -2
- package/es/components/collapse/src/collapse.mjs +28 -23
- package/es/components/collapse/src/collapse.mjs.map +1 -1
- package/es/components/collapse/src/collapse2.mjs +23 -28
- package/es/components/collapse/src/collapse2.mjs.map +1 -1
- package/es/components/color-picker/src/color-picker2.mjs +8 -3
- package/es/components/color-picker/src/color-picker2.mjs.map +1 -1
- package/es/components/color-picker-panel/index.mjs +2 -2
- package/es/components/color-picker-panel/src/color-picker-panel.mjs +119 -23
- 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 +23 -119
- 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/dialog/src/dialog.mjs +1 -1
- package/es/components/divider/index.mjs +2 -2
- package/es/components/divider/src/divider.mjs +34 -16
- package/es/components/divider/src/divider.mjs.map +1 -1
- package/es/components/divider/src/divider2.mjs +16 -34
- package/es/components/divider/src/divider2.mjs.map +1 -1
- package/es/components/drawer/index.mjs +2 -2
- package/es/components/drawer/src/drawer.mjs +27 -192
- package/es/components/drawer/src/drawer.mjs.map +1 -1
- package/es/components/drawer/src/drawer2.mjs +192 -27
- package/es/components/drawer/src/drawer2.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown.mjs.map +1 -1
- package/es/components/image/src/image.vue.d.ts +1 -1
- package/es/components/index.mjs +20 -20
- package/es/components/input/src/input.d.ts +6 -0
- package/es/components/input/src/input.mjs +4 -0
- package/es/components/input/src/input.mjs.map +1 -1
- package/es/components/input/src/input.vue.d.ts +3 -0
- package/es/components/input/src/input2.mjs +52 -12
- package/es/components/input/src/input2.mjs.map +1 -1
- package/es/components/input/src/utils.d.ts +1 -0
- package/es/components/input/src/utils.mjs +5 -1
- package/es/components/input/src/utils.mjs.map +1 -1
- package/es/components/input-number/src/input-number2.mjs +1 -1
- package/es/components/input-number/src/input-number2.mjs.map +1 -1
- package/es/components/mention/src/mention.d.ts +1 -0
- package/es/components/mention/src/mention.vue.d.ts +3 -0
- package/es/components/page-header/index.mjs +2 -2
- package/es/components/page-header/src/page-header.mjs +97 -16
- package/es/components/page-header/src/page-header.mjs.map +1 -1
- package/es/components/page-header/src/page-header2.mjs +16 -97
- package/es/components/page-header/src/page-header2.mjs.map +1 -1
- package/es/components/pagination/src/components/jumper.mjs +7 -58
- package/es/components/pagination/src/components/jumper.mjs.map +1 -1
- package/es/components/pagination/src/components/jumper2.mjs +58 -7
- package/es/components/pagination/src/components/jumper2.mjs.map +1 -1
- package/es/components/pagination/src/components/next.mjs +18 -35
- package/es/components/pagination/src/components/next.mjs.map +1 -1
- package/es/components/pagination/src/components/next2.mjs +35 -18
- package/es/components/pagination/src/components/next2.mjs.map +1 -1
- package/es/components/pagination/src/components/sizes.mjs +26 -72
- package/es/components/pagination/src/components/sizes.mjs.map +1 -1
- package/es/components/pagination/src/components/sizes2.mjs +72 -26
- package/es/components/pagination/src/components/sizes2.mjs.map +1 -1
- package/es/components/pagination/src/pagination.mjs +3 -3
- package/es/components/popper/src/trigger2.mjs +1 -1
- package/es/components/select/index.mjs +2 -2
- package/es/components/select/src/select.mjs +145 -527
- package/es/components/select/src/select.mjs.map +1 -1
- package/es/components/select/src/select2.mjs +527 -145
- package/es/components/select/src/select2.mjs.map +1 -1
- package/es/components/skeleton/index.mjs +2 -2
- package/es/components/skeleton/src/skeleton.mjs +18 -48
- package/es/components/skeleton/src/skeleton.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton2.mjs +48 -18
- package/es/components/skeleton/src/skeleton2.mjs.map +1 -1
- package/es/components/slider/index.mjs +2 -2
- package/es/components/slider/src/slider.d.ts +0 -1
- package/es/components/slider/src/slider.mjs +88 -238
- package/es/components/slider/src/slider.mjs.map +1 -1
- package/es/components/slider/src/slider.vue.d.ts +0 -3
- package/es/components/slider/src/slider2.mjs +237 -92
- package/es/components/slider/src/slider2.mjs.map +1 -1
- package/es/components/statistic/index.mjs +2 -2
- package/es/components/statistic/src/statistic.mjs +69 -25
- package/es/components/statistic/src/statistic.mjs.map +1 -1
- package/es/components/statistic/src/statistic2.mjs +25 -69
- package/es/components/statistic/src/statistic2.mjs.map +1 -1
- package/es/components/steps/index.mjs +2 -2
- package/es/components/steps/src/item.mjs +19 -193
- package/es/components/steps/src/item.mjs.map +1 -1
- package/es/components/steps/src/item2.mjs +193 -19
- package/es/components/steps/src/item2.mjs.map +1 -1
- package/es/components/table/src/table.vue.d.ts +1 -1
- package/es/components/teleport/index.mjs +2 -2
- package/es/components/teleport/src/teleport.mjs +18 -8
- package/es/components/teleport/src/teleport.mjs.map +1 -1
- package/es/components/teleport/src/teleport2.mjs +8 -18
- package/es/components/teleport/src/teleport2.mjs.map +1 -1
- package/es/components/timeline/index.mjs +2 -2
- package/es/components/timeline/src/timeline-item.mjs +72 -33
- package/es/components/timeline/src/timeline-item.mjs.map +1 -1
- package/es/components/timeline/src/timeline-item2.mjs +33 -72
- package/es/components/timeline/src/timeline-item2.mjs.map +1 -1
- package/es/components/tooltip/index.mjs +2 -2
- package/es/components/tooltip/src/content.mjs +1 -1
- package/es/components/tooltip/src/tooltip.mjs +30 -167
- package/es/components/tooltip/src/tooltip.mjs.map +1 -1
- package/es/components/tooltip/src/tooltip2.mjs +167 -30
- package/es/components/tooltip/src/tooltip2.mjs.map +1 -1
- package/es/components/tour/index.mjs +1 -1
- package/es/components/tour/src/content.mjs +43 -67
- package/es/components/tour/src/content.mjs.map +1 -1
- package/es/components/tour/src/content2.mjs +67 -43
- package/es/components/tour/src/content2.mjs.map +1 -1
- package/es/components/tour/src/mask.mjs +18 -76
- package/es/components/tour/src/mask.mjs.map +1 -1
- package/es/components/tour/src/mask2.mjs +76 -18
- package/es/components/tour/src/mask2.mjs.map +1 -1
- package/es/components/tour/src/step.mjs +1 -1
- package/es/components/tour/src/tour.mjs +2 -2
- package/es/components/tour/src/tour2.mjs +2 -2
- package/es/components/tree/src/tree.vue.d.ts +1 -1
- package/es/components/upload/index.mjs +1 -1
- package/es/components/upload/src/upload-list.mjs +25 -173
- package/es/components/upload/src/upload-list.mjs.map +1 -1
- package/es/components/upload/src/upload-list2.mjs +173 -25
- package/es/components/upload/src/upload-list2.mjs.map +1 -1
- package/es/components/upload/src/upload2.mjs +1 -1
- package/es/directives/click-outside/index.mjs +1 -1
- package/es/hooks/use-lockscreen/index.mjs +1 -1
- package/es/index.d.ts +20 -7
- package/es/index.mjs +20 -20
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/autocomplete/index.js +2 -2
- package/lib/components/autocomplete/src/autocomplete.d.ts +1 -0
- package/lib/components/autocomplete/src/autocomplete.js +441 -59
- package/lib/components/autocomplete/src/autocomplete.js.map +1 -1
- package/lib/components/autocomplete/src/autocomplete.vue.d.ts +3 -0
- package/lib/components/autocomplete/src/autocomplete2.js +59 -440
- package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
- package/lib/components/cascader/src/cascader2.js +3 -2
- package/lib/components/cascader/src/cascader2.js.map +1 -1
- package/lib/components/col/index.js +2 -2
- package/lib/components/col/src/col.js +64 -43
- package/lib/components/col/src/col.js.map +1 -1
- package/lib/components/col/src/col2.js +43 -64
- package/lib/components/col/src/col2.js.map +1 -1
- package/lib/components/collapse/index.js +2 -2
- package/lib/components/collapse/src/collapse.js +28 -25
- package/lib/components/collapse/src/collapse.js.map +1 -1
- package/lib/components/collapse/src/collapse2.js +25 -28
- package/lib/components/collapse/src/collapse2.js.map +1 -1
- package/lib/components/color-picker/src/color-picker2.js +8 -3
- package/lib/components/color-picker/src/color-picker2.js.map +1 -1
- package/lib/components/color-picker-panel/index.js +2 -2
- package/lib/components/color-picker-panel/src/color-picker-panel.js +119 -26
- 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 +26 -119
- 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/dialog/src/dialog.js +1 -1
- package/lib/components/divider/index.js +2 -2
- package/lib/components/divider/src/divider.js +34 -16
- package/lib/components/divider/src/divider.js.map +1 -1
- package/lib/components/divider/src/divider2.js +16 -34
- package/lib/components/divider/src/divider2.js.map +1 -1
- package/lib/components/drawer/index.js +2 -2
- package/lib/components/drawer/src/drawer.js +28 -192
- package/lib/components/drawer/src/drawer.js.map +1 -1
- package/lib/components/drawer/src/drawer2.js +192 -28
- package/lib/components/drawer/src/drawer2.js.map +1 -1
- package/lib/components/dropdown/src/dropdown.js.map +1 -1
- package/lib/components/image/src/image.vue.d.ts +1 -1
- package/lib/components/index.js +25 -25
- package/lib/components/input/src/input.d.ts +6 -0
- package/lib/components/input/src/input.js +4 -0
- package/lib/components/input/src/input.js.map +1 -1
- package/lib/components/input/src/input.vue.d.ts +3 -0
- package/lib/components/input/src/input2.js +50 -10
- package/lib/components/input/src/input2.js.map +1 -1
- package/lib/components/input/src/utils.d.ts +1 -0
- package/lib/components/input/src/utils.js +5 -0
- package/lib/components/input/src/utils.js.map +1 -1
- package/lib/components/input-number/src/input-number2.js +1 -1
- package/lib/components/input-number/src/input-number2.js.map +1 -1
- package/lib/components/mention/src/mention.d.ts +1 -0
- package/lib/components/mention/src/mention.vue.d.ts +3 -0
- package/lib/components/page-header/index.js +2 -2
- package/lib/components/page-header/src/page-header.js +97 -17
- package/lib/components/page-header/src/page-header.js.map +1 -1
- package/lib/components/page-header/src/page-header2.js +17 -97
- package/lib/components/page-header/src/page-header2.js.map +1 -1
- package/lib/components/pagination/src/components/jumper.js +7 -58
- package/lib/components/pagination/src/components/jumper.js.map +1 -1
- package/lib/components/pagination/src/components/jumper2.js +58 -7
- package/lib/components/pagination/src/components/jumper2.js.map +1 -1
- package/lib/components/pagination/src/components/next.js +18 -35
- package/lib/components/pagination/src/components/next.js.map +1 -1
- package/lib/components/pagination/src/components/next2.js +35 -18
- package/lib/components/pagination/src/components/next2.js.map +1 -1
- package/lib/components/pagination/src/components/sizes.js +26 -72
- package/lib/components/pagination/src/components/sizes.js.map +1 -1
- package/lib/components/pagination/src/components/sizes2.js +72 -26
- package/lib/components/pagination/src/components/sizes2.js.map +1 -1
- package/lib/components/pagination/src/pagination.js +3 -3
- package/lib/components/popper/src/trigger2.js +1 -1
- package/lib/components/select/index.js +2 -2
- package/lib/components/select/src/select.js +145 -526
- package/lib/components/select/src/select.js.map +1 -1
- package/lib/components/select/src/select2.js +526 -145
- package/lib/components/select/src/select2.js.map +1 -1
- package/lib/components/skeleton/index.js +2 -2
- package/lib/components/skeleton/src/skeleton.js +18 -48
- package/lib/components/skeleton/src/skeleton.js.map +1 -1
- package/lib/components/skeleton/src/skeleton2.js +48 -18
- package/lib/components/skeleton/src/skeleton2.js.map +1 -1
- package/lib/components/slider/index.js +2 -2
- package/lib/components/slider/src/slider.d.ts +0 -1
- package/lib/components/slider/src/slider.js +89 -238
- package/lib/components/slider/src/slider.js.map +1 -1
- package/lib/components/slider/src/slider.vue.d.ts +0 -3
- package/lib/components/slider/src/slider2.js +237 -93
- package/lib/components/slider/src/slider2.js.map +1 -1
- package/lib/components/statistic/index.js +2 -2
- package/lib/components/statistic/src/statistic.js +69 -25
- package/lib/components/statistic/src/statistic.js.map +1 -1
- package/lib/components/statistic/src/statistic2.js +25 -69
- package/lib/components/statistic/src/statistic2.js.map +1 -1
- package/lib/components/steps/index.js +2 -2
- package/lib/components/steps/src/item.js +19 -193
- package/lib/components/steps/src/item.js.map +1 -1
- package/lib/components/steps/src/item2.js +193 -19
- package/lib/components/steps/src/item2.js.map +1 -1
- package/lib/components/table/src/table.vue.d.ts +1 -1
- package/lib/components/teleport/index.js +2 -2
- package/lib/components/teleport/src/teleport.js +18 -8
- package/lib/components/teleport/src/teleport.js.map +1 -1
- package/lib/components/teleport/src/teleport2.js +8 -18
- package/lib/components/teleport/src/teleport2.js.map +1 -1
- package/lib/components/timeline/index.js +2 -2
- package/lib/components/timeline/src/timeline-item.js +72 -33
- package/lib/components/timeline/src/timeline-item.js.map +1 -1
- package/lib/components/timeline/src/timeline-item2.js +33 -72
- package/lib/components/timeline/src/timeline-item2.js.map +1 -1
- package/lib/components/tooltip/index.js +2 -2
- package/lib/components/tooltip/src/content.js +1 -1
- package/lib/components/tooltip/src/tooltip.js +34 -167
- package/lib/components/tooltip/src/tooltip.js.map +1 -1
- package/lib/components/tooltip/src/tooltip2.js +167 -34
- package/lib/components/tooltip/src/tooltip2.js.map +1 -1
- package/lib/components/tour/index.js +1 -1
- package/lib/components/tour/src/content.js +46 -67
- package/lib/components/tour/src/content.js.map +1 -1
- package/lib/components/tour/src/content2.js +67 -46
- package/lib/components/tour/src/content2.js.map +1 -1
- package/lib/components/tour/src/mask.js +18 -76
- package/lib/components/tour/src/mask.js.map +1 -1
- package/lib/components/tour/src/mask2.js +76 -18
- package/lib/components/tour/src/mask2.js.map +1 -1
- package/lib/components/tour/src/step.js +1 -1
- package/lib/components/tour/src/tour.js +2 -2
- package/lib/components/tour/src/tour2.js +2 -2
- package/lib/components/tree/src/tree.vue.d.ts +1 -1
- package/lib/components/upload/index.js +1 -1
- package/lib/components/upload/src/upload-list.js +26 -173
- package/lib/components/upload/src/upload-list.js.map +1 -1
- package/lib/components/upload/src/upload-list2.js +173 -26
- package/lib/components/upload/src/upload-list2.js.map +1 -1
- package/lib/components/upload/src/upload2.js +1 -1
- package/lib/directives/click-outside/index.js +1 -1
- package/lib/hooks/use-lockscreen/index.js +1 -1
- package/lib/index.d.ts +20 -7
- package/lib/index.js +25 -25
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/tags.json +1 -1
- package/web-types.json +1 -1
|
@@ -2,36 +2,200 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
var
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var iconsVue = require('@element-plus/icons-vue');
|
|
7
|
+
var index$4 = require('../../overlay/index.js');
|
|
8
|
+
var focusTrap = require('../../focus-trap/src/focus-trap.js');
|
|
9
|
+
var index$3 = require('../../teleport/index.js');
|
|
10
|
+
var index$5 = require('../../icon/index.js');
|
|
11
|
+
var drawer = require('./drawer.js');
|
|
12
|
+
var useResizable = require('./composables/useResizable.js');
|
|
13
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
14
|
+
var useDialog = require('../../dialog/src/use-dialog.js');
|
|
15
|
+
var index = require('../../../hooks/use-deprecated/index.js');
|
|
16
|
+
var index$1 = require('../../../hooks/use-namespace/index.js');
|
|
17
|
+
var index$2 = require('../../../hooks/use-locale/index.js');
|
|
7
18
|
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
19
|
+
const __default__ = vue.defineComponent({
|
|
20
|
+
name: "ElDrawer",
|
|
21
|
+
inheritAttrs: false
|
|
22
|
+
});
|
|
23
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
24
|
+
...__default__,
|
|
25
|
+
props: drawer.drawerProps,
|
|
26
|
+
emits: drawer.drawerEmits,
|
|
27
|
+
setup(__props, { expose }) {
|
|
28
|
+
const props = __props;
|
|
29
|
+
const slots = vue.useSlots();
|
|
30
|
+
index.useDeprecated({
|
|
31
|
+
scope: "el-drawer",
|
|
32
|
+
from: "the title slot",
|
|
33
|
+
replacement: "the header slot",
|
|
34
|
+
version: "3.0.0",
|
|
35
|
+
ref: "https://element-plus.org/en-US/component/drawer.html#slots"
|
|
36
|
+
}, vue.computed(() => !!slots.title));
|
|
37
|
+
const drawerRef = vue.ref();
|
|
38
|
+
const focusStartRef = vue.ref();
|
|
39
|
+
const draggerRef = vue.ref();
|
|
40
|
+
const ns = index$1.useNamespace("drawer");
|
|
41
|
+
const { t } = index$2.useLocale();
|
|
42
|
+
const {
|
|
43
|
+
afterEnter,
|
|
44
|
+
afterLeave,
|
|
45
|
+
beforeLeave,
|
|
46
|
+
visible,
|
|
47
|
+
rendered,
|
|
48
|
+
titleId,
|
|
49
|
+
bodyId,
|
|
50
|
+
zIndex,
|
|
51
|
+
onModalClick,
|
|
52
|
+
onOpenAutoFocus,
|
|
53
|
+
onCloseAutoFocus,
|
|
54
|
+
onFocusoutPrevented,
|
|
55
|
+
onCloseRequested,
|
|
56
|
+
handleClose
|
|
57
|
+
} = useDialog.useDialog(props, drawerRef);
|
|
58
|
+
const { isHorizontal, size, isResizing } = useResizable.useResizable(props, draggerRef);
|
|
59
|
+
expose({
|
|
60
|
+
handleClose,
|
|
61
|
+
afterEnter,
|
|
62
|
+
afterLeave
|
|
63
|
+
});
|
|
64
|
+
return (_ctx, _cache) => {
|
|
65
|
+
return vue.openBlock(), vue.createBlock(vue.unref(index$3.ElTeleport), {
|
|
66
|
+
to: _ctx.appendTo,
|
|
67
|
+
disabled: _ctx.appendTo !== "body" ? false : !_ctx.appendToBody
|
|
68
|
+
}, {
|
|
69
|
+
default: vue.withCtx(() => [
|
|
70
|
+
vue.createVNode(vue.Transition, {
|
|
71
|
+
name: vue.unref(ns).b("fade"),
|
|
72
|
+
onAfterEnter: vue.unref(afterEnter),
|
|
73
|
+
onAfterLeave: vue.unref(afterLeave),
|
|
74
|
+
onBeforeLeave: vue.unref(beforeLeave),
|
|
75
|
+
persisted: ""
|
|
76
|
+
}, {
|
|
77
|
+
default: vue.withCtx(() => {
|
|
78
|
+
var _a;
|
|
79
|
+
return [
|
|
80
|
+
vue.withDirectives(vue.createVNode(vue.unref(index$4.ElOverlay), {
|
|
81
|
+
mask: _ctx.modal,
|
|
82
|
+
"overlay-class": [vue.unref(ns).is("drawer"), (_a = _ctx.modalClass) != null ? _a : ""],
|
|
83
|
+
"z-index": vue.unref(zIndex),
|
|
84
|
+
onClick: vue.unref(onModalClick)
|
|
85
|
+
}, {
|
|
86
|
+
default: vue.withCtx(() => [
|
|
87
|
+
vue.createVNode(vue.unref(focusTrap["default"]), {
|
|
88
|
+
loop: "",
|
|
89
|
+
trapped: vue.unref(visible),
|
|
90
|
+
"focus-trap-el": drawerRef.value,
|
|
91
|
+
"focus-start-el": focusStartRef.value,
|
|
92
|
+
onFocusAfterTrapped: vue.unref(onOpenAutoFocus),
|
|
93
|
+
onFocusAfterReleased: vue.unref(onCloseAutoFocus),
|
|
94
|
+
onFocusoutPrevented: vue.unref(onFocusoutPrevented),
|
|
95
|
+
onReleaseRequested: vue.unref(onCloseRequested)
|
|
96
|
+
}, {
|
|
97
|
+
default: vue.withCtx(() => [
|
|
98
|
+
vue.createElementVNode("div", vue.mergeProps({
|
|
99
|
+
ref_key: "drawerRef",
|
|
100
|
+
ref: drawerRef,
|
|
101
|
+
"aria-modal": "true",
|
|
102
|
+
"aria-label": _ctx.title || void 0,
|
|
103
|
+
"aria-labelledby": !_ctx.title ? vue.unref(titleId) : void 0,
|
|
104
|
+
"aria-describedby": vue.unref(bodyId)
|
|
105
|
+
}, _ctx.$attrs, {
|
|
106
|
+
class: [
|
|
107
|
+
vue.unref(ns).b(),
|
|
108
|
+
_ctx.direction,
|
|
109
|
+
vue.unref(visible) && "open",
|
|
110
|
+
vue.unref(ns).is("dragging", vue.unref(isResizing))
|
|
111
|
+
],
|
|
112
|
+
style: { [vue.unref(isHorizontal) ? "width" : "height"]: vue.unref(size) },
|
|
113
|
+
role: "dialog",
|
|
114
|
+
onClick: vue.withModifiers(() => {
|
|
115
|
+
}, ["stop"])
|
|
116
|
+
}), [
|
|
117
|
+
vue.createElementVNode("span", {
|
|
118
|
+
ref_key: "focusStartRef",
|
|
119
|
+
ref: focusStartRef,
|
|
120
|
+
class: vue.normalizeClass(vue.unref(ns).e("sr-focus")),
|
|
121
|
+
tabindex: "-1"
|
|
122
|
+
}, null, 2),
|
|
123
|
+
_ctx.withHeader ? (vue.openBlock(), vue.createElementBlock("header", {
|
|
124
|
+
key: 0,
|
|
125
|
+
class: vue.normalizeClass([vue.unref(ns).e("header"), _ctx.headerClass])
|
|
126
|
+
}, [
|
|
127
|
+
!_ctx.$slots.title ? vue.renderSlot(_ctx.$slots, "header", {
|
|
128
|
+
key: 0,
|
|
129
|
+
close: vue.unref(handleClose),
|
|
130
|
+
titleId: vue.unref(titleId),
|
|
131
|
+
titleClass: vue.unref(ns).e("title")
|
|
132
|
+
}, () => [
|
|
133
|
+
vue.createElementVNode("span", {
|
|
134
|
+
id: vue.unref(titleId),
|
|
135
|
+
role: "heading",
|
|
136
|
+
"aria-level": _ctx.headerAriaLevel,
|
|
137
|
+
class: vue.normalizeClass(vue.unref(ns).e("title"))
|
|
138
|
+
}, vue.toDisplayString(_ctx.title), 11, ["id", "aria-level"])
|
|
139
|
+
]) : vue.renderSlot(_ctx.$slots, "title", { key: 1 }, () => [
|
|
140
|
+
vue.createCommentVNode(" DEPRECATED SLOT ")
|
|
141
|
+
]),
|
|
142
|
+
_ctx.showClose ? (vue.openBlock(), vue.createElementBlock("button", {
|
|
143
|
+
key: 2,
|
|
144
|
+
"aria-label": vue.unref(t)("el.drawer.close"),
|
|
145
|
+
class: vue.normalizeClass(vue.unref(ns).e("close-btn")),
|
|
146
|
+
type: "button",
|
|
147
|
+
onClick: vue.unref(handleClose)
|
|
148
|
+
}, [
|
|
149
|
+
vue.createVNode(vue.unref(index$5.ElIcon), {
|
|
150
|
+
class: vue.normalizeClass(vue.unref(ns).e("close"))
|
|
151
|
+
}, {
|
|
152
|
+
default: vue.withCtx(() => [
|
|
153
|
+
vue.createVNode(vue.unref(iconsVue.Close))
|
|
154
|
+
]),
|
|
155
|
+
_: 1
|
|
156
|
+
}, 8, ["class"])
|
|
157
|
+
], 10, ["aria-label", "onClick"])) : vue.createCommentVNode("v-if", true)
|
|
158
|
+
], 2)) : vue.createCommentVNode("v-if", true),
|
|
159
|
+
vue.unref(rendered) ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
160
|
+
key: 1,
|
|
161
|
+
id: vue.unref(bodyId),
|
|
162
|
+
class: vue.normalizeClass([vue.unref(ns).e("body"), _ctx.bodyClass])
|
|
163
|
+
}, [
|
|
164
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
165
|
+
], 10, ["id"])) : vue.createCommentVNode("v-if", true),
|
|
166
|
+
_ctx.$slots.footer ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
167
|
+
key: 2,
|
|
168
|
+
class: vue.normalizeClass([vue.unref(ns).e("footer"), _ctx.footerClass])
|
|
169
|
+
}, [
|
|
170
|
+
vue.renderSlot(_ctx.$slots, "footer")
|
|
171
|
+
], 2)) : vue.createCommentVNode("v-if", true),
|
|
172
|
+
_ctx.resizable ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
173
|
+
key: 3,
|
|
174
|
+
ref_key: "draggerRef",
|
|
175
|
+
ref: draggerRef,
|
|
176
|
+
style: vue.normalizeStyle({ zIndex: vue.unref(zIndex) }),
|
|
177
|
+
class: vue.normalizeClass(vue.unref(ns).e("dragger"))
|
|
178
|
+
}, null, 6)) : vue.createCommentVNode("v-if", true)
|
|
179
|
+
], 16, ["aria-label", "aria-labelledby", "aria-describedby", "onClick"])
|
|
180
|
+
]),
|
|
181
|
+
_: 3
|
|
182
|
+
}, 8, ["trapped", "focus-trap-el", "focus-start-el", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusoutPrevented", "onReleaseRequested"])
|
|
183
|
+
]),
|
|
184
|
+
_: 3
|
|
185
|
+
}, 8, ["mask", "overlay-class", "z-index", "onClick"]), [
|
|
186
|
+
[vue.vShow, vue.unref(visible)]
|
|
187
|
+
])
|
|
188
|
+
];
|
|
189
|
+
}),
|
|
190
|
+
_: 3
|
|
191
|
+
}, 8, ["name", "onAfterEnter", "onAfterLeave", "onBeforeLeave"])
|
|
192
|
+
]),
|
|
193
|
+
_: 3
|
|
194
|
+
}, 8, ["to", "disabled"]);
|
|
195
|
+
};
|
|
31
196
|
}
|
|
32
197
|
});
|
|
33
|
-
|
|
198
|
+
var Drawer = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "drawer.vue"]]);
|
|
34
199
|
|
|
35
|
-
exports
|
|
36
|
-
exports.drawerProps = drawerProps;
|
|
200
|
+
exports["default"] = Drawer;
|
|
37
201
|
//# sourceMappingURL=drawer2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawer2.js","sources":["../../../../../../packages/components/drawer/src/drawer.
|
|
1
|
+
{"version":3,"file":"drawer2.js","sources":["../../../../../../packages/components/drawer/src/drawer.vue"],"sourcesContent":["<template>\n <el-teleport\n :to=\"appendTo\"\n :disabled=\"appendTo !== 'body' ? false : !appendToBody\"\n >\n <transition\n :name=\"ns.b('fade')\"\n @after-enter=\"afterEnter\"\n @after-leave=\"afterLeave\"\n @before-leave=\"beforeLeave\"\n >\n <el-overlay\n v-show=\"visible\"\n :mask=\"modal\"\n :overlay-class=\"[ns.is('drawer'), modalClass ?? '']\"\n :z-index=\"zIndex\"\n @click=\"onModalClick\"\n >\n <el-focus-trap\n loop\n :trapped=\"visible\"\n :focus-trap-el=\"drawerRef\"\n :focus-start-el=\"focusStartRef\"\n @focus-after-trapped=\"onOpenAutoFocus\"\n @focus-after-released=\"onCloseAutoFocus\"\n @focusout-prevented=\"onFocusoutPrevented\"\n @release-requested=\"onCloseRequested\"\n >\n <div\n ref=\"drawerRef\"\n aria-modal=\"true\"\n :aria-label=\"title || undefined\"\n :aria-labelledby=\"!title ? titleId : undefined\"\n :aria-describedby=\"bodyId\"\n v-bind=\"$attrs\"\n :class=\"[\n ns.b(),\n direction,\n visible && 'open',\n ns.is('dragging', isResizing),\n ]\"\n :style=\"{ [isHorizontal ? 'width' : 'height']: size }\"\n role=\"dialog\"\n @click.stop\n >\n <span ref=\"focusStartRef\" :class=\"ns.e('sr-focus')\" tabindex=\"-1\" />\n <header v-if=\"withHeader\" :class=\"[ns.e('header'), headerClass]\">\n <template v-if=\"!$slots.title\">\n <slot\n name=\"header\"\n :close=\"handleClose\"\n :title-id=\"titleId\"\n :title-class=\"ns.e('title')\"\n >\n <span\n :id=\"titleId\"\n role=\"heading\"\n :aria-level=\"headerAriaLevel\"\n :class=\"ns.e('title')\"\n >\n {{ title }}\n </span>\n </slot>\n </template>\n <template v-else>\n <slot name=\"title\">\n <!-- DEPRECATED SLOT -->\n </slot>\n </template>\n <button\n v-if=\"showClose\"\n :aria-label=\"t('el.drawer.close')\"\n :class=\"ns.e('close-btn')\"\n type=\"button\"\n @click=\"handleClose\"\n >\n <el-icon :class=\"ns.e('close')\">\n <close />\n </el-icon>\n </button>\n </header>\n <template v-if=\"rendered\">\n <div :id=\"bodyId\" :class=\"[ns.e('body'), bodyClass]\">\n <slot />\n </div>\n </template>\n <div v-if=\"$slots.footer\" :class=\"[ns.e('footer'), footerClass]\">\n <slot name=\"footer\" />\n </div>\n <div\n v-if=\"resizable\"\n ref=\"draggerRef\"\n :style=\"{ zIndex }\"\n :class=\"ns.e('dragger')\"\n />\n </div>\n </el-focus-trap>\n </el-overlay>\n </transition>\n </el-teleport>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, ref, useSlots } from 'vue'\nimport { Close } from '@element-plus/icons-vue'\nimport { ElOverlay } from '@element-plus/components/overlay'\nimport ElFocusTrap from '@element-plus/components/focus-trap'\nimport ElTeleport from '@element-plus/components/teleport'\nimport { useDialog } from '@element-plus/components/dialog'\nimport ElIcon from '@element-plus/components/icon'\nimport { useDeprecated, useLocale, useNamespace } from '@element-plus/hooks'\nimport { drawerEmits, drawerProps } from './drawer'\nimport { useResizable } from './composables/useResizable'\n\ndefineOptions({\n name: 'ElDrawer',\n inheritAttrs: false,\n})\n\nconst props = defineProps(drawerProps)\ndefineEmits(drawerEmits)\nconst slots = useSlots()\n\nuseDeprecated(\n {\n scope: 'el-drawer',\n from: 'the title slot',\n replacement: 'the header slot',\n version: '3.0.0',\n ref: 'https://element-plus.org/en-US/component/drawer.html#slots',\n },\n computed(() => !!slots.title)\n)\n\nconst drawerRef = ref<HTMLElement>()\nconst focusStartRef = ref<HTMLElement>()\nconst draggerRef = ref<HTMLElement>()\nconst ns = useNamespace('drawer')\nconst { t } = useLocale()\n\nconst {\n afterEnter,\n afterLeave,\n beforeLeave,\n visible,\n rendered,\n titleId,\n bodyId,\n zIndex,\n onModalClick,\n onOpenAutoFocus,\n onCloseAutoFocus,\n onFocusoutPrevented,\n onCloseRequested,\n handleClose,\n} = useDialog(props, drawerRef)\n\nconst { isHorizontal, size, isResizing } = useResizable(props, draggerRef)\n\ndefineExpose({\n handleClose,\n afterEnter,\n afterLeave,\n})\n</script>\n"],"names":["useSlots","useDeprecated","computed","ref","useDialog","useResizable","_openBlock","_createBlock","_unref","ElTeleport"],"mappings":";;;;;;;;;;;;;;;;;;uCAkHc,CAAA;AAAA,EACZ,IAAM,EAAA,UAAA;AAAA,EACN,YAAc,EAAA,KAAA;AAChB,CAAA,CAAA,CAAA;;;;;;;AAIA,IAAA,MAAM,QAAQA,YAAS,EAAA,CAAA;AAEvB,IAAAC,mBAAA,CAAA;AAAA,MACE,KAAA,EAAA,WAAA;AAAA,MAAA,IACS,EAAA,gBAAA;AAAA,MAAA,WACD,EAAA,iBAAA;AAAA,MAAA,OACO,EAAA,OAAA;AAAA,MAAA,GACJ,EAAA,4DAAA;AAAA,KAAA,EAAAC,YACJ,CAAA,MAAA,CAAA,CAAA,KAAA,CAAA,KAAA,CAAA,CAAA,CAAA;AAAA,IACP,MAAA,SAAA,GAAAC,OAAA,EAAA,CAAA;AAAA,IAAA,MACS,aAAQ,UAAM,EAAK,CAAA;AAAA,IAC9B,MAAA,UAAA,GAAAA,OAAA,EAAA,CAAA;AAEA,IAAA,MAAM,yBAA6B,CAAA,QAAA,CAAA,CAAA;AACnC,IAAA,MAAM,yBAAiC,EAAA,CAAA;AACvC,IAAA,MAAM;AACN,MAAM;AACN,MAAM,UAAI;AAEV,MAAM,WAAA;AAAA,MACJ,OAAA;AAAA,MACA,QAAA;AAAA,MACA,OAAA;AAAA,MACA,MAAA;AAAA,MACA,MAAA;AAAA,MACA,YAAA;AAAA,MACA,eAAA;AAAA,MACA,gBAAA;AAAA,MACA,mBAAA;AAAA,MACA,gBAAA;AAAA,MACA,WAAA;AAAA,KACA,GAAAC,mBAAA,CAAA,KAAA,EAAA,SAAA,CAAA,CAAA;AAAA,IACA,MAAA,EAAA,YAAA,EAAA,IAAA,EAAA,UAAA,EAAA,GAAAC,yBAAA,CAAA,KAAA,EAAA,UAAA,CAAA,CAAA;AAAA,IACA,MAAA,CAAA;AAAA,MACF,WAAc;AAEd,MAAA,UAAsB;AAEtB,MAAa,UAAA;AAAA,KACX,CAAA,CAAA;AAAA,IACA,OAAA,CAAA,IAAA,EAAA,MAAA,KAAA;AAAA,MACA,OAAAC,aAAA,EAAA,EAAAC,eAAA,CAAAC,SAAA,CAAAC,kBAAA,CAAA,EAAA;AAAA,QACD,EAAA,EAAA,IAAA,CAAA,QAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown.js","sources":["../../../../../../packages/components/dropdown/src/dropdown.ts"],"sourcesContent":["import { buildProps, definePropType, iconPropType } from '@element-plus/utils'\nimport { EVENT_CODE } from '@element-plus/constants'\nimport {\n useTooltipContentProps,\n useTooltipTriggerProps,\n} from '@element-plus/components/tooltip'\nimport { roleTypes } from '@element-plus/components/popper'\n\nimport type { Placement } from '@element-plus/components/popper'\nimport type { Options } from '@popperjs/core'\nimport type { ButtonProps, ButtonType } from '@element-plus/components/button'\nimport type { ComponentInternalInstance, ComputedRef } from 'vue'\nimport type { Nullable } from '@element-plus/utils'\n\nexport interface IElDropdownInstance {\n instance?: ComponentInternalInstance\n dropdownSize?: ComputedRef<string>\n handleClick?: () => void\n commandHandler?: (...arg: any[]) => void\n show?: () => void\n hide?: () => void\n trigger?: ComputedRef<string>\n hideOnClick?: ComputedRef<boolean>\n triggerElm?: ComputedRef<Nullable<HTMLButtonElement>>\n}\n\nexport const dropdownProps = buildProps({\n /**\n * @description how to trigger\n */\n trigger: useTooltipTriggerProps.trigger,\n triggerKeys: {\n type: definePropType<string[]>(Array),\n default: () => [\n EVENT_CODE.enter,\n EVENT_CODE.numpadEnter,\n EVENT_CODE.space,\n EVENT_CODE.down,\n ],\n },\n /**\n * @description Indicates whether virtual triggering is enabled\n */\n virtualTriggering: useTooltipTriggerProps.virtualTriggering,\n /**\n * @description Indicates the reference element to which the dropdown is attached\n */\n virtualRef: useTooltipTriggerProps.virtualRef,\n effect: {\n ...useTooltipContentProps.effect,\n default: 'light',\n },\n /**\n * @description menu button type, refer to `Button` Component, only works when `split-button` is true\n */\n type: {\n type: definePropType<ButtonType>(String),\n },\n /**\n * @description placement of pop menu\n */\n placement: {\n type: definePropType<Placement>(String),\n default: 'bottom',\n },\n /**\n * @description [popper.js](https://popper.js.org/docs/v2/) parameters\n */\n popperOptions: {\n type: definePropType<Partial<Options>>(Object),\n default: () => ({}),\n },\n id: String,\n /**\n * @description menu size, also works on the split button\n */\n size: {\n type: String,\n default: '',\n },\n /**\n * @description whether a button group is displayed\n */\n splitButton: Boolean,\n /**\n * @description whether to hide menu after clicking menu-item\n */\n hideOnClick: {\n type: Boolean,\n default: true,\n },\n loop: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether the tooltip content has an arrow\n */\n showArrow: {\n type: Boolean,\n default: true,\n },\n /**\n * @description delay time before show a dropdown (only works when trigger is `hover`)\n */\n showTimeout: {\n type: Number,\n default: 150,\n },\n /**\n * @description delay time before hide a dropdown (only works when trigger is `hover`)\n */\n hideTimeout: {\n type: Number,\n default: 150,\n },\n /**\n * @description [tabindex](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of Dropdown\n */\n tabindex: {\n type: definePropType<number | string>([Number, String]),\n default: 0,\n },\n /**\n * @description the max height of menu\n */\n maxHeight: {\n type: definePropType<number | string>([Number, String]),\n default: '',\n },\n /**\n * @description custom class name for Dropdown's dropdown\n */\n popperClass: useTooltipContentProps.popperClass,\n /**\n * @description custom style for Dropdown's dropdown\n */\n popperStyle: useTooltipContentProps.popperStyle,\n /**\n * @description whether to disable\n */\n disabled: Boolean,\n /**\n * @description the ARIA role attribute for the dropdown menu. Depending on the use case, you may want to change this to 'navigation'\n */\n role: {\n type: String,\n values: roleTypes,\n default: 'menu',\n },\n buttonProps: {\n type: definePropType<Partial<ButtonProps>>(Object),\n },\n /**\n * @description whether the dropdown popup is teleported to the body\n */\n teleported: useTooltipContentProps.teleported,\n /**\n * @description when dropdown inactive and `persistent` is `false` , dropdown menu will be destroyed\n */\n persistent: {\n type: Boolean,\n default: true,\n },\n} as const)\n\nexport const dropdownItemProps = buildProps({\n /**\n * @description a command to be dispatched to Dropdown's `command` callback\n */\n command: {\n type: [Object, String, Number],\n default: () => ({}),\n },\n /**\n * @description whether the item is disabled\n */\n disabled: Boolean,\n /**\n * @description whether a divider is displayed\n */\n divided: Boolean,\n textValue: String,\n /**\n * @description custom icon\n */\n icon: {\n type: iconPropType,\n },\n} as const)\n\nexport const dropdownMenuProps = buildProps({\n onKeydown: { type: definePropType<(e: KeyboardEvent) => void>(Function) },\n})\n\nexport const FIRST_KEYS = [\n EVENT_CODE.down,\n EVENT_CODE.pageDown,\n EVENT_CODE.home,\n]\n\nexport const LAST_KEYS = [EVENT_CODE.up, EVENT_CODE.pageUp, EVENT_CODE.end]\n\nexport const FIRST_LAST_KEYS = [...FIRST_KEYS, ...LAST_KEYS]\n"],"names":["buildProps","useTooltipTriggerProps","definePropType","EVENT_CODE","useTooltipContentProps","roleTypes","iconPropType"],"mappings":";;;;;;;;;;;AAOY,MAAC,aAAa,GAAGA,kBAAU,CAAC;AACxC,EAAE,OAAO,EAAEC,8BAAsB,CAAC,OAAO;AACzC,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAEC,sBAAc,CAAC,KAAK,CAAC;AAC/B,IAAI,OAAO,EAAE,MAAM;AACnB,MAAMC,eAAU,CAAC,KAAK;AACtB,MAAMA,eAAU,CAAC,WAAW;AAC5B,MAAMA,eAAU,CAAC,KAAK;AACtB,MAAMA,eAAU,CAAC,IAAI;AACrB,KAAK;AACL,GAAG;AACH,EAAE,iBAAiB,EAAEF,8BAAsB,CAAC,iBAAiB;AAC7D,EAAE,UAAU,EAAEA,8BAAsB,CAAC,UAAU;AAC/C,EAAE,MAAM,EAAE;AACV,IAAI,GAAGG,8BAAsB,CAAC,MAAM;AACpC,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAEF,sBAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAEA,sBAAc,CAAC,MAAM,CAAC;AAChC,IAAI,OAAO,EAAE,QAAQ;AACrB,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAEA,sBAAc,CAAC,MAAM,CAAC;AAChC,IAAI,OAAO,EAAE,OAAO,EAAE,CAAC;AACvB,GAAG;AACH,EAAE,EAAE,EAAE,MAAM;AACZ,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG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AE,IAAI;AACjB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,iBAAiB,GAAGJ,kBAAU,CAAC;AAC5C,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;AAClC,IAAI,OAAO,EAAE,OAAO,EAAE,CAAC;AACvB,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,OAAO,EAAE,OAAO;AAClB,EAAE,SAAS,EAAE,MAAM;AACnB,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAEM,iBAAY;AACtB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,iBAAiB,GAAGN,kBAAU,CAAC;AAC5C,EAAE,SAAS,EAAE,EAAE,IAAI,EAAEE,sBAAc,CAAC,QAAQ,CAAC,EAAE;AAC/C,CAAC,EAAE;AACS,MAAC,UAAU,GAAG;AAC1B,EAAEC,eAAU,CAAC,IAAI;AACjB,EAAEA,eAAU,CAAC,QAAQ;AACrB,EAAEA,eAAU,CAAC,IAAI;AACjB,EAAE;AACU,MAAC,SAAS,GAAG,CAACA,eAAU,CAAC,EAAE,EAAEA,eAAU,CAAC,MAAM,EAAEA,eAAU,CAAC,GAAG,EAAE;AAChE,MAAC,eAAe,GAAG,CAAC,GAAG,UAAU,EAAE,GAAG,SAAS;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"dropdown.js","sources":["../../../../../../packages/components/dropdown/src/dropdown.ts"],"sourcesContent":["import { buildProps, definePropType, iconPropType } from '@element-plus/utils'\nimport { EVENT_CODE } from '@element-plus/constants'\nimport {\n useTooltipContentProps,\n useTooltipTriggerProps,\n} from '@element-plus/components/tooltip'\nimport { roleTypes } from '@element-plus/components/popper'\n\nimport type { Placement } from '@element-plus/components/popper'\nimport type { Options } from '@popperjs/core'\nimport type { ButtonProps, ButtonType } from '@element-plus/components/button'\nimport type { ComponentInternalInstance, ComputedRef } from 'vue'\nimport type { Nullable } from '@element-plus/utils'\n\nexport interface IElDropdownInstance {\n instance?: ComponentInternalInstance\n dropdownSize?: ComputedRef<string>\n handleClick?: () => void\n commandHandler?: (...arg: any[]) => void\n show?: () => void\n hide?: () => void\n trigger?: ComputedRef<string>\n hideOnClick?: ComputedRef<boolean>\n triggerElm?: ComputedRef<Nullable<HTMLButtonElement>>\n}\n\nexport const dropdownProps = buildProps({\n /**\n * @description how to trigger\n */\n trigger: useTooltipTriggerProps.trigger,\n triggerKeys: {\n type: definePropType<string[]>(Array),\n default: () => [\n EVENT_CODE.enter,\n EVENT_CODE.numpadEnter,\n EVENT_CODE.space,\n EVENT_CODE.down,\n ],\n },\n /**\n * @description Indicates whether virtual triggering is enabled\n */\n virtualTriggering: useTooltipTriggerProps.virtualTriggering,\n /**\n * @description Indicates the reference element to which the dropdown is attached\n */\n virtualRef: useTooltipTriggerProps.virtualRef,\n /**\n * @description Tooltip theme, built-in theme: `dark` / `light`\n */\n effect: {\n ...useTooltipContentProps.effect,\n default: 'light',\n },\n /**\n * @description menu button type, refer to `Button` Component, only works when `split-button` is true\n */\n type: {\n type: definePropType<ButtonType>(String),\n },\n /**\n * @description placement of pop menu\n */\n placement: {\n type: definePropType<Placement>(String),\n default: 'bottom',\n },\n /**\n * @description [popper.js](https://popper.js.org/docs/v2/) parameters\n */\n popperOptions: {\n type: definePropType<Partial<Options>>(Object),\n default: () => ({}),\n },\n id: String,\n /**\n * @description menu size, also works on the split button\n */\n size: {\n type: String,\n default: '',\n },\n /**\n * @description whether a button group is displayed\n */\n splitButton: Boolean,\n /**\n * @description whether to hide menu after clicking menu-item\n */\n hideOnClick: {\n type: Boolean,\n default: true,\n },\n loop: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether the tooltip content has an arrow\n */\n showArrow: {\n type: Boolean,\n default: true,\n },\n /**\n * @description delay time before show a dropdown (only works when trigger is `hover`)\n */\n showTimeout: {\n type: Number,\n default: 150,\n },\n /**\n * @description delay time before hide a dropdown (only works when trigger is `hover`)\n */\n hideTimeout: {\n type: Number,\n default: 150,\n },\n /**\n * @description [tabindex](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of Dropdown\n */\n tabindex: {\n type: definePropType<number | string>([Number, String]),\n default: 0,\n },\n /**\n * @description the max height of menu\n */\n maxHeight: {\n type: definePropType<number | string>([Number, String]),\n default: '',\n },\n /**\n * @description custom class name for Dropdown's dropdown\n */\n popperClass: useTooltipContentProps.popperClass,\n /**\n * @description custom style for Dropdown's dropdown\n */\n popperStyle: useTooltipContentProps.popperStyle,\n /**\n * @description whether to disable\n */\n disabled: Boolean,\n /**\n * @description the ARIA role attribute for the dropdown menu. Depending on the use case, you may want to change this to 'navigation'\n */\n role: {\n type: String,\n values: roleTypes,\n default: 'menu',\n },\n buttonProps: {\n type: definePropType<Partial<ButtonProps>>(Object),\n },\n /**\n * @description whether the dropdown popup is teleported to the body\n */\n teleported: useTooltipContentProps.teleported,\n /**\n * @description when dropdown inactive and `persistent` is `false` , dropdown menu will be destroyed\n */\n persistent: {\n type: Boolean,\n default: true,\n },\n} as const)\n\nexport const dropdownItemProps = buildProps({\n /**\n * @description a command to be dispatched to Dropdown's `command` callback\n */\n command: {\n type: [Object, String, Number],\n default: () => ({}),\n },\n /**\n * @description whether the item is disabled\n */\n disabled: Boolean,\n /**\n * @description whether a divider is displayed\n */\n divided: Boolean,\n textValue: String,\n /**\n * @description custom icon\n */\n icon: {\n type: iconPropType,\n },\n} as const)\n\nexport const dropdownMenuProps = buildProps({\n onKeydown: { type: definePropType<(e: KeyboardEvent) => void>(Function) },\n})\n\nexport const FIRST_KEYS = [\n EVENT_CODE.down,\n EVENT_CODE.pageDown,\n EVENT_CODE.home,\n]\n\nexport const LAST_KEYS = [EVENT_CODE.up, EVENT_CODE.pageUp, EVENT_CODE.end]\n\nexport const FIRST_LAST_KEYS = [...FIRST_KEYS, ...LAST_KEYS]\n"],"names":["buildProps","useTooltipTriggerProps","definePropType","EVENT_CODE","useTooltipContentProps","roleTypes","iconPropType"],"mapp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,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,OAAO,EAAE,OAAO;AAClB,EAAE,SAAS,EAAE,MAAM;AACnB,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAEM,iBAAY;AACtB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,iBAAiB,GAAGN,kBAAU,CAAC;AAC5C,EAAE,SAAS,EAAE,EAAE,IAAI,EAAEE,sBAAc,CAAC,QAAQ,CAAC,EAAE;AAC/C,CAAC,EAAE;AACS,MAAC,UAAU,GAAG;AAC1B,EAAEC,eAAU,CAAC,IAAI;AACjB,EAAEA,eAAU,CAAC,QAAQ;AACrB,EAAEA,eAAU,CAAC,IAAI;AACjB,EAAE;AACU,MAAC,SAAS,GAAG,CAACA,eAAU,CAAC,EAAE,EAAEA,eAAU,CAAC,MAAM,EAAEA,eAAU,CAAC,GAAG,EAAE;AAChE,MAAC,eAAe,GAAG,CAAC,GAAG,UAAU,EAAE,GAAG,SAAS;;;;;;;;;"}
|
|
@@ -116,11 +116,11 @@ declare const __VLS_component: import("vue").DefineComponent<{
|
|
|
116
116
|
}, {
|
|
117
117
|
readonly scale: number;
|
|
118
118
|
readonly infinite: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
119
|
+
readonly lazy: boolean;
|
|
119
120
|
readonly src: string;
|
|
120
121
|
readonly fit: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "" | "fill" | "contain" | "none" | "cover" | "scale-down", unknown>;
|
|
121
122
|
readonly closeOnPressEscape: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
122
123
|
readonly initialIndex: number;
|
|
123
|
-
readonly lazy: boolean;
|
|
124
124
|
readonly zoomRate: number;
|
|
125
125
|
readonly minScale: number;
|
|
126
126
|
readonly maxScale: number;
|
package/lib/components/index.js
CHANGED
|
@@ -87,9 +87,13 @@ var index$1h = require('./message/index.js');
|
|
|
87
87
|
var index$1i = require('./message-box/index.js');
|
|
88
88
|
var index$1j = require('./notification/index.js');
|
|
89
89
|
var index$1k = require('./popover/index.js');
|
|
90
|
+
var fixedSizeGrid = require('./virtual-list/src/components/fixed-size-grid.js');
|
|
91
|
+
var dynamicSizeGrid = require('./virtual-list/src/components/dynamic-size-grid.js');
|
|
92
|
+
var directive = require('./loading/src/directive.js');
|
|
93
|
+
var service = require('./loading/src/service.js');
|
|
90
94
|
var affix = require('./affix/src/affix.js');
|
|
91
95
|
var alert = require('./alert/src/alert.js');
|
|
92
|
-
var autocomplete = require('./autocomplete/src/
|
|
96
|
+
var autocomplete = require('./autocomplete/src/autocomplete2.js');
|
|
93
97
|
var avatar = require('./avatar/src/avatar.js');
|
|
94
98
|
var backtop = require('./backtop/src/backtop.js');
|
|
95
99
|
var badge = require('./badge/src/badge.js');
|
|
@@ -110,11 +114,11 @@ var checkTag = require('./check-tag/src/check-tag.js');
|
|
|
110
114
|
var checkboxGroup = require('./checkbox/src/checkbox-group.js');
|
|
111
115
|
var checkbox = require('./checkbox/src/checkbox.js');
|
|
112
116
|
var constants$3 = require('./checkbox/src/constants.js');
|
|
113
|
-
var col = require('./col/src/
|
|
114
|
-
var collapse = require('./collapse/src/
|
|
117
|
+
var col = require('./col/src/col2.js');
|
|
118
|
+
var collapse = require('./collapse/src/collapse2.js');
|
|
115
119
|
var collapseItem = require('./collapse/src/collapse-item.js');
|
|
116
120
|
var constants$4 = require('./collapse/src/constants.js');
|
|
117
|
-
var colorPickerPanel = require('./color-picker-panel/src/color-picker-
|
|
121
|
+
var colorPickerPanel = require('./color-picker-panel/src/color-picker-panel2.js');
|
|
118
122
|
var colorPicker = require('./color-picker/src/color-picker.js');
|
|
119
123
|
var configProvider = require('./config-provider/src/config-provider.js');
|
|
120
124
|
var configProviderProps = require('./config-provider/src/config-provider-props.js');
|
|
@@ -129,8 +133,8 @@ var descriptionItem = require('./descriptions/src/description-item.js');
|
|
|
129
133
|
var useDialog = require('./dialog/src/use-dialog.js');
|
|
130
134
|
var dialog = require('./dialog/src/dialog.js');
|
|
131
135
|
var constants$7 = require('./dialog/src/constants.js');
|
|
132
|
-
var divider = require('./divider/src/
|
|
133
|
-
var drawer = require('./drawer/src/
|
|
136
|
+
var divider = require('./divider/src/divider2.js');
|
|
137
|
+
var drawer = require('./drawer/src/drawer.js');
|
|
134
138
|
var dropdown = require('./dropdown/src/dropdown.js');
|
|
135
139
|
var tokens = require('./dropdown/src/tokens.js');
|
|
136
140
|
var empty = require('./empty/src/empty.js');
|
|
@@ -152,7 +156,7 @@ var menuItemGroup = require('./menu/src/menu-item-group.js');
|
|
|
152
156
|
var subMenu = require('./menu/src/sub-menu.js');
|
|
153
157
|
var tokens$1 = require('./menu/src/tokens.js');
|
|
154
158
|
var overlay = require('./overlay/src/overlay.js');
|
|
155
|
-
var pageHeader = require('./page-header/src/page-
|
|
159
|
+
var pageHeader = require('./page-header/src/page-header2.js');
|
|
156
160
|
var pagination = require('./pagination/src/pagination.js');
|
|
157
161
|
var constants$9 = require('./pagination/src/constants.js');
|
|
158
162
|
var popconfirm = require('./popconfirm/src/popconfirm.js');
|
|
@@ -178,17 +182,17 @@ var scrollbar = require('./scrollbar/src/scrollbar2.js');
|
|
|
178
182
|
var thumb = require('./scrollbar/src/thumb.js');
|
|
179
183
|
var constants$d = require('./scrollbar/src/constants.js');
|
|
180
184
|
var token = require('./select/src/token.js');
|
|
181
|
-
var select = require('./select/src/
|
|
185
|
+
var select = require('./select/src/select.js');
|
|
182
186
|
var token$1 = require('./select-v2/src/token.js');
|
|
183
|
-
var skeleton = require('./skeleton/src/
|
|
187
|
+
var skeleton = require('./skeleton/src/skeleton.js');
|
|
184
188
|
var skeletonItem = require('./skeleton/src/skeleton-item.js');
|
|
185
|
-
var slider = require('./slider/src/
|
|
189
|
+
var slider = require('./slider/src/slider.js');
|
|
186
190
|
var constants$e = require('./slider/src/constants.js');
|
|
187
191
|
var space = require('./space/src/space.js');
|
|
188
192
|
var item = require('./space/src/item.js');
|
|
189
193
|
var useSpace = require('./space/src/use-space.js');
|
|
190
|
-
var statistic = require('./statistic/src/
|
|
191
|
-
var item$1 = require('./steps/src/
|
|
194
|
+
var statistic = require('./statistic/src/statistic2.js');
|
|
195
|
+
var item$1 = require('./steps/src/item.js');
|
|
192
196
|
var steps = require('./steps/src/steps.js');
|
|
193
197
|
var tokens$2 = require('./steps/src/tokens.js');
|
|
194
198
|
var _switch = require('./switch/src/switch.js');
|
|
@@ -211,9 +215,9 @@ var props$1 = require('./time-picker/src/common/props.js');
|
|
|
211
215
|
var picker = require('./time-picker/src/common/picker.js');
|
|
212
216
|
var panelTimePick = require('./time-picker/src/time-picker-com/panel-time-pick.js');
|
|
213
217
|
var timeSelect = require('./time-select/src/time-select.js');
|
|
214
|
-
var timelineItem = require('./timeline/src/timeline-
|
|
218
|
+
var timelineItem = require('./timeline/src/timeline-item2.js');
|
|
215
219
|
var tokens$3 = require('./timeline/src/tokens.js');
|
|
216
|
-
var tooltip = require('./tooltip/src/
|
|
220
|
+
var tooltip = require('./tooltip/src/tooltip.js');
|
|
217
221
|
var trigger$2 = require('./tooltip/src/trigger.js');
|
|
218
222
|
var content$2 = require('./tooltip/src/content.js');
|
|
219
223
|
var constants$i = require('./tooltip/src/constants.js');
|
|
@@ -221,25 +225,21 @@ var transfer = require('./transfer/src/transfer.js');
|
|
|
221
225
|
var tokens$4 = require('./tree/src/tokens.js');
|
|
222
226
|
var upload = require('./upload/src/upload.js');
|
|
223
227
|
var uploadContent = require('./upload/src/upload-content.js');
|
|
224
|
-
var uploadList = require('./upload/src/upload-
|
|
228
|
+
var uploadList = require('./upload/src/upload-list.js');
|
|
225
229
|
var uploadDragger = require('./upload/src/upload-dragger.js');
|
|
226
230
|
var constants$j = require('./upload/src/constants.js');
|
|
227
231
|
var fixedSizeList = require('./virtual-list/src/components/fixed-size-list.js');
|
|
228
232
|
var dynamicSizeList = require('./virtual-list/src/components/dynamic-size-list.js');
|
|
229
|
-
var fixedSizeGrid = require('./virtual-list/src/components/fixed-size-grid.js');
|
|
230
|
-
var dynamicSizeGrid = require('./virtual-list/src/components/dynamic-size-grid.js');
|
|
231
233
|
var props$2 = require('./virtual-list/src/props.js');
|
|
232
234
|
var watermark = require('./watermark/src/watermark.js');
|
|
233
235
|
var tour = require('./tour/src/tour.js');
|
|
234
236
|
var step = require('./tour/src/step.js');
|
|
235
|
-
var content$3 = require('./tour/src/
|
|
237
|
+
var content$3 = require('./tour/src/content.js');
|
|
236
238
|
var anchor = require('./anchor/src/anchor.js');
|
|
237
239
|
var segmented = require('./segmented/src/segmented.js');
|
|
238
240
|
var mention = require('./mention/src/mention.js');
|
|
239
241
|
var splitter = require('./splitter/src/splitter.js');
|
|
240
242
|
var splitPanel = require('./splitter/src/split-panel.js');
|
|
241
|
-
var directive = require('./loading/src/directive.js');
|
|
242
|
-
var service = require('./loading/src/service.js');
|
|
243
243
|
var message = require('./message/src/message.js');
|
|
244
244
|
var notification = require('./notification/src/notification.js');
|
|
245
245
|
var popover = require('./popover/src/popover.js');
|
|
@@ -362,6 +362,11 @@ exports.ElMessageBox = index$1i.ElMessageBox;
|
|
|
362
362
|
exports.ElNotification = index$1j.ElNotification;
|
|
363
363
|
exports.ElPopover = index$1k.ElPopover;
|
|
364
364
|
exports.ElPopoverDirective = index$1k.ElPopoverDirective;
|
|
365
|
+
exports.FixedSizeGrid = fixedSizeGrid["default"];
|
|
366
|
+
exports.DynamicSizeGrid = dynamicSizeGrid["default"];
|
|
367
|
+
exports.ElLoadingDirective = directive["default"];
|
|
368
|
+
exports.vLoading = directive["default"];
|
|
369
|
+
exports.ElLoadingService = service["default"];
|
|
365
370
|
exports.affixEmits = affix.affixEmits;
|
|
366
371
|
exports.affixProps = affix.affixProps;
|
|
367
372
|
exports.alertEffects = alert.alertEffects;
|
|
@@ -629,8 +634,6 @@ exports.uploadDraggerProps = uploadDragger.uploadDraggerProps;
|
|
|
629
634
|
exports.uploadContextKey = constants$j.uploadContextKey;
|
|
630
635
|
exports.FixedSizeList = fixedSizeList["default"];
|
|
631
636
|
exports.DynamicSizeList = dynamicSizeList["default"];
|
|
632
|
-
exports.FixedSizeGrid = fixedSizeGrid["default"];
|
|
633
|
-
exports.DynamicSizeGrid = dynamicSizeGrid["default"];
|
|
634
637
|
exports.virtualizedGridProps = props$2.virtualizedGridProps;
|
|
635
638
|
exports.virtualizedListProps = props$2.virtualizedListProps;
|
|
636
639
|
exports.virtualizedProps = props$2.virtualizedProps;
|
|
@@ -654,9 +657,6 @@ exports.mentionEmits = mention.mentionEmits;
|
|
|
654
657
|
exports.mentionProps = mention.mentionProps;
|
|
655
658
|
exports.splitterProps = splitter.splitterProps;
|
|
656
659
|
exports.splitterPanelProps = splitPanel.splitterPanelProps;
|
|
657
|
-
exports.ElLoadingDirective = directive["default"];
|
|
658
|
-
exports.vLoading = directive["default"];
|
|
659
|
-
exports.ElLoadingService = service["default"];
|
|
660
660
|
exports.MESSAGE_DEFAULT_PLACEMENT = message.MESSAGE_DEFAULT_PLACEMENT;
|
|
661
661
|
exports.messageDefaults = message.messageDefaults;
|
|
662
662
|
exports.messageEmits = message.messageEmits;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import type { ExtractPropTypes, StyleValue, __ExtractPublicPropTypes } from 'vue';
|
|
2
|
+
export type InputModelModifiers = {
|
|
3
|
+
lazy?: boolean;
|
|
4
|
+
number?: boolean;
|
|
5
|
+
trim?: boolean;
|
|
6
|
+
};
|
|
2
7
|
export type InputAutoSize = {
|
|
3
8
|
minRows?: number;
|
|
4
9
|
maxRows?: number;
|
|
@@ -16,6 +21,7 @@ export declare const inputProps: {
|
|
|
16
21
|
};
|
|
17
22
|
readonly disabled: BooleanConstructor;
|
|
18
23
|
readonly modelValue: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number | null | undefined) | ((new (...args: any[]) => string | number) | (() => string | number | null | undefined))[], unknown, unknown, "", boolean>;
|
|
24
|
+
readonly modelModifiers: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => InputModelModifiers) | (() => InputModelModifiers) | ((new (...args: any[]) => InputModelModifiers) | (() => InputModelModifiers))[], unknown, unknown, () => {}, boolean>;
|
|
19
25
|
readonly maxlength: {
|
|
20
26
|
readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
21
27
|
readonly required: false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.js","sources":["../../../../../../packages/components/input/src/input.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n iconPropType,\n isString,\n mutable,\n} from '@element-plus/utils'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { useAriaProps, useSizeProp } from '@element-plus/hooks'\nimport { CircleClose } from '@element-plus/icons-vue'\n\nimport type {\n ExtractPropTypes,\n HTMLAttributes,\n StyleValue,\n __ExtractPublicPropTypes,\n} from 'vue'\n\nexport type InputAutoSize = { minRows?: number; maxRows?: number } | boolean\n\nexport const inputProps = buildProps({\n /**\n * @description native input id\n */\n id: {\n type: String,\n default: undefined,\n },\n /**\n * @description input box size\n */\n size: useSizeProp,\n /**\n * @description whether to disable\n */\n disabled: Boolean,\n /**\n * @description binding value\n */\n modelValue: {\n type: definePropType<string | number | null | undefined>([\n String,\n Number,\n Object,\n ]),\n default: '',\n },\n /**\n * @description same as `maxlength` in native input\n */\n maxlength: {\n type: [String, Number],\n },\n /**\n * @description same as `minlength` in native input\n */\n minlength: {\n type: [String, Number],\n },\n /**\n * @description type of input\n */\n type: {\n type: String,\n default: 'text',\n },\n /**\n * @description control the resizability\n */\n resize: {\n type: String,\n values: ['none', 'both', 'horizontal', 'vertical'],\n },\n /**\n * @description whether textarea has an adaptive height\n */\n autosize: {\n type: definePropType<InputAutoSize>([Boolean, Object]),\n default: false,\n },\n /**\n * @description native input autocomplete\n */\n autocomplete: {\n type: definePropType<HTMLInputElement['autocomplete']>(String),\n default: 'off',\n },\n /**\n * @description format content\n */\n formatter: {\n type: Function,\n },\n /**\n * @description parse content\n */\n parser: {\n type: Function,\n },\n /**\n * @description placeholder\n */\n placeholder: {\n type: String,\n },\n /**\n * @description native input form\n */\n form: {\n type: String,\n },\n /**\n * @description native input readonly\n */\n readonly: Boolean,\n /**\n * @description whether to show clear button\n */\n clearable: Boolean,\n /**\n * @description custom clear icon component\n */\n clearIcon: {\n type: iconPropType,\n default: CircleClose,\n },\n /**\n * @description toggleable password input\n */\n showPassword: Boolean,\n /**\n * @description word count\n */\n showWordLimit: Boolean,\n /**\n * @description suffix icon\n */\n suffixIcon: {\n type: iconPropType,\n },\n /**\n * @description prefix icon\n */\n prefixIcon: {\n type: iconPropType,\n },\n /**\n * @description container role, internal properties provided for use by the picker component\n */\n containerRole: {\n type: String,\n default: undefined,\n },\n /**\n * @description input tabindex\n */\n tabindex: {\n type: [String, Number],\n default: 0,\n },\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n /**\n * @description input or textarea element style\n */\n inputStyle: {\n type: definePropType<StyleValue>([Object, Array, String]),\n default: () => mutable({} as const),\n },\n /**\n * @description native input autofocus\n */\n autofocus: Boolean,\n rows: {\n type: Number,\n default: 2,\n },\n ...useAriaProps(['ariaLabel']),\n /**\n * @description native input mode for virtual keyboards\n */\n inputmode: {\n type: definePropType<HTMLAttributes['inputmode']>(String),\n default: undefined,\n },\n /**\n * @description same as `name` in native input\n */\n name: String,\n} as const)\nexport type InputProps = ExtractPropTypes<typeof inputProps>\nexport type InputPropsPublic = __ExtractPublicPropTypes<typeof inputProps>\n\nexport const inputEmits = {\n [UPDATE_MODEL_EVENT]: (value: string) => isString(value),\n input: (value: string) => isString(value),\n change: (value: string) => isString(value),\n focus: (evt: FocusEvent) => evt instanceof FocusEvent,\n blur: (evt: FocusEvent) => evt instanceof FocusEvent,\n clear: () => true,\n mouseleave: (evt: MouseEvent) => evt instanceof MouseEvent,\n mouseenter: (evt: MouseEvent) => evt instanceof MouseEvent,\n // NOTE: when autofill by browser, the keydown event is instanceof Event, not KeyboardEvent\n // relative bug report https://github.com/element-plus/element-plus/issues/6665\n keydown: (evt: KeyboardEvent | Event) => evt instanceof Event,\n compositionstart: (evt: CompositionEvent) => evt instanceof CompositionEvent,\n compositionupdate: (evt: CompositionEvent) => evt instanceof CompositionEvent,\n compositionend: (evt: CompositionEvent) => evt instanceof CompositionEvent,\n}\nexport type InputEmits = typeof inputEmits\n"],"names":["buildProps","useSizeProp","definePropType","iconPropType","CircleClose","mutable","useAriaProps","UPDATE_MODEL_EVENT","isString"],"mappings":";;;;;;;;;;;;;AAUY,MAAC,UAAU,GAAGA,kBAAU,CAAC;AACrC,EAAE,EAAE,EAAE;AACN,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,IAAI,EAAEC,iBAAW;AACnB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAEC,sBAAc,CAAC;AACzB,MAAM,MAAM;AACZ,MAAM,MAAM;AACZ,MAAM,MAAM;AACZ,KAAK,CAAC;AACN,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,UAAU,CAAC;AACtD,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAEA,sBAAc,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js","sources":["../../../../../../packages/components/input/src/input.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n iconPropType,\n isString,\n mutable,\n} from '@element-plus/utils'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { useAriaProps, useSizeProp } from '@element-plus/hooks'\nimport { CircleClose } from '@element-plus/icons-vue'\n\nimport type {\n ExtractPropTypes,\n HTMLAttributes,\n StyleValue,\n __ExtractPublicPropTypes,\n} from 'vue'\n\nexport type InputModelModifiers = {\n lazy?: boolean\n number?: boolean\n trim?: boolean\n}\nexport type InputAutoSize = { minRows?: number; maxRows?: number } | boolean\n\nexport const inputProps = buildProps({\n /**\n * @description native input id\n */\n id: {\n type: String,\n default: undefined,\n },\n /**\n * @description input box size\n */\n size: useSizeProp,\n /**\n * @description whether to disable\n */\n disabled: Boolean,\n /**\n * @description binding value\n */\n modelValue: {\n type: definePropType<string | number | null | undefined>([\n String,\n Number,\n Object,\n ]),\n default: '',\n },\n /**\n * @description v-model modifiers, reference [Vue modifiers](https://vuejs.org/guide/essentials/forms.html#modifiers)\n */\n modelModifiers: {\n type: definePropType<InputModelModifiers>(Object),\n default: () => ({}),\n },\n /**\n * @description same as `maxlength` in native input\n */\n maxlength: {\n type: [String, Number],\n },\n /**\n * @description same as `minlength` in native input\n */\n minlength: {\n type: [String, Number],\n },\n /**\n * @description type of input\n */\n type: {\n type: String,\n default: 'text',\n },\n /**\n * @description control the resizability\n */\n resize: {\n type: String,\n values: ['none', 'both', 'horizontal', 'vertical'],\n },\n /**\n * @description whether textarea has an adaptive height\n */\n autosize: {\n type: definePropType<InputAutoSize>([Boolean, Object]),\n default: false,\n },\n /**\n * @description native input autocomplete\n */\n autocomplete: {\n type: definePropType<HTMLInputElement['autocomplete']>(String),\n default: 'off',\n },\n /**\n * @description format content\n */\n formatter: {\n type: Function,\n },\n /**\n * @description parse content\n */\n parser: {\n type: Function,\n },\n /**\n * @description placeholder\n */\n placeholder: {\n type: String,\n },\n /**\n * @description native input form\n */\n form: {\n type: String,\n },\n /**\n * @description native input readonly\n */\n readonly: Boolean,\n /**\n * @description whether to show clear button\n */\n clearable: Boolean,\n /**\n * @description custom clear icon component\n */\n clearIcon: {\n type: iconPropType,\n default: CircleClose,\n },\n /**\n * @description toggleable password input\n */\n showPassword: Boolean,\n /**\n * @description word count\n */\n showWordLimit: Boolean,\n /**\n * @description suffix icon\n */\n suffixIcon: {\n type: iconPropType,\n },\n /**\n * @description prefix icon\n */\n prefixIcon: {\n type: iconPropType,\n },\n /**\n * @description container role, internal properties provided for use by the picker component\n */\n containerRole: {\n type: String,\n default: undefined,\n },\n /**\n * @description input tabindex\n */\n tabindex: {\n type: [String, Number],\n default: 0,\n },\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n /**\n * @description input or textarea element style\n */\n inputStyle: {\n type: definePropType<StyleValue>([Object, Array, String]),\n default: () => mutable({} as const),\n },\n /**\n * @description native input autofocus\n */\n autofocus: Boolean,\n rows: {\n type: Number,\n default: 2,\n },\n ...useAriaProps(['ariaLabel']),\n /**\n * @description native input mode for virtual keyboards\n */\n inputmode: {\n type: definePropType<HTMLAttributes['inputmode']>(String),\n default: undefined,\n },\n /**\n * @description same as `name` in native input\n */\n name: String,\n} as const)\nexport type InputProps = ExtractPropTypes<typeof inputProps>\nexport type InputPropsPublic = __ExtractPublicPropTypes<typeof inputProps>\n\nexport const inputEmits = {\n [UPDATE_MODEL_EVENT]: (value: string) => isString(value),\n input: (value: string) => isString(value),\n change: (value: string) => isString(value),\n focus: (evt: FocusEvent) => evt instanceof FocusEvent,\n blur: (evt: FocusEvent) => evt instanceof FocusEvent,\n clear: () => true,\n mouseleave: (evt: MouseEvent) => evt instanceof MouseEvent,\n mouseenter: (evt: MouseEvent) => evt instanceof MouseEvent,\n // NOTE: when autofill by browser, the keydown event is instanceof Event, not KeyboardEvent\n // relative bug report https://github.com/element-plus/element-plus/issues/6665\n keydown: (evt: KeyboardEvent | Event) => evt instanceof Event,\n compositionstart: (evt: CompositionEvent) => evt instanceof CompositionEvent,\n compositionupdate: (evt: CompositionEvent) => evt instanceof CompositionEvent,\n compositionend: (evt: CompositionEvent) => evt instanceof CompositionEvent,\n}\nexport type InputEmits = typeof inputEmits\n"],"names":["buildProps","useSizeProp","definePropType","iconPropType","CircleClose","mutable","useAriaProps","UPDATE_MODEL_EVENT","isString"],"mappings":";;;;;;;;;;;;;AAUY,MAAC,UAAU,GAAGA,kBAAU,CAAC;AACrC,EAAE,EAAE,EAAE;AACN,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,IAAI,EAAEC,iBAAW;AACnB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAEC,sBAAc,CAAC;AACzB,MAAM,MAAM;AACZ,MAAM,MAAM;AACZ,MAAM,MAAM;AACZ,KAAK,CAAC;AACN,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,cAAc,EAAE;AAClB,IAAI,IAAI,EAAEA,sBAAc,CAAC,MAAM,CAAC;AAChC,IAAI,OAAO,EAAE,OAAO,EAAE,CAAC;AACvB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,UAAU,CAAC;AACtD,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAEA,sBAAc,CA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VLS_component: import("vue").DefineComponent<{
|
|
|
18
18
|
};
|
|
19
19
|
readonly disabled: BooleanConstructor;
|
|
20
20
|
readonly modelValue: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number | null | undefined) | ((new (...args: any[]) => string | number) | (() => string | number | null | undefined))[], unknown, unknown, "", boolean>;
|
|
21
|
+
readonly modelModifiers: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => import("./input").InputModelModifiers) | (() => import("./input").InputModelModifiers) | ((new (...args: any[]) => import("./input").InputModelModifiers) | (() => import("./input").InputModelModifiers))[], unknown, unknown, () => {}, boolean>;
|
|
21
22
|
readonly maxlength: {
|
|
22
23
|
readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
23
24
|
readonly required: false;
|
|
@@ -146,6 +147,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
|
|
|
146
147
|
};
|
|
147
148
|
readonly disabled: BooleanConstructor;
|
|
148
149
|
readonly modelValue: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number | null | undefined) | ((new (...args: any[]) => string | number) | (() => string | number | null | undefined))[], unknown, unknown, "", boolean>;
|
|
150
|
+
readonly modelModifiers: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => import("./input").InputModelModifiers) | (() => import("./input").InputModelModifiers) | ((new (...args: any[]) => import("./input").InputModelModifiers) | (() => import("./input").InputModelModifiers))[], unknown, unknown, () => {}, boolean>;
|
|
149
151
|
readonly maxlength: {
|
|
150
152
|
readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
151
153
|
readonly required: false;
|
|
@@ -245,6 +247,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
|
|
|
245
247
|
readonly type: string;
|
|
246
248
|
readonly modelValue: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number | null | undefined) | ((new (...args: any[]) => string | number) | (() => string | number | null | undefined))[], unknown, unknown>;
|
|
247
249
|
readonly readonly: boolean;
|
|
250
|
+
readonly modelModifiers: import("./input").InputModelModifiers;
|
|
248
251
|
readonly autosize: import("./input").InputAutoSize;
|
|
249
252
|
readonly autocomplete: AutoFill;
|
|
250
253
|
readonly containerRole: string;
|