element-plus 2.2.18 → 2.2.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/dist/index.full.js +873 -858
- package/dist/index.full.min.js +20 -20
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +21 -21
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +874 -859
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/az.js +1 -1
- package/dist/locale/az.min.js +1 -1
- package/dist/locale/az.min.mjs +1 -1
- package/dist/locale/az.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/autocomplete/index.d.ts +53 -45
- package/es/components/autocomplete/src/autocomplete.d.ts +1 -3
- package/es/components/autocomplete/src/autocomplete.mjs.map +1 -1
- package/es/components/autocomplete/src/autocomplete.vue.d.ts +53 -45
- package/es/components/backtop/index.d.ts +2 -6
- package/es/components/backtop/index.mjs.map +1 -1
- package/es/components/backtop/src/backtop.d.ts +0 -2
- package/es/components/backtop/src/backtop.mjs.map +1 -1
- package/es/components/backtop/src/backtop.vue.d.ts +5 -10
- package/es/components/backtop/src/backtop2.mjs +6 -52
- package/es/components/backtop/src/backtop2.mjs.map +1 -1
- package/es/components/backtop/src/instance.d.ts +2 -0
- package/es/components/backtop/src/instance.mjs +2 -0
- package/es/components/backtop/src/instance.mjs.map +1 -0
- package/es/components/backtop/src/use-backtop.d.ts +6 -0
- package/es/components/backtop/src/use-backtop.mjs +58 -0
- package/es/components/backtop/src/use-backtop.mjs.map +1 -0
- package/es/components/button/index.d.ts +4 -10
- package/es/components/button/index.mjs.map +1 -1
- package/es/components/button/src/button-group.d.ts +0 -2
- package/es/components/button/src/button-group.mjs.map +1 -1
- package/es/components/button/src/button.d.ts +0 -2
- package/es/components/button/src/button.mjs.map +1 -1
- package/es/components/button/src/button.vue.d.ts +3 -10
- package/es/components/button/src/button2.mjs +5 -46
- package/es/components/button/src/button2.mjs.map +1 -1
- package/es/components/button/src/instance.d.ts +4 -0
- package/es/components/button/src/instance.mjs +2 -0
- package/es/components/button/src/instance.mjs.map +1 -0
- package/es/components/button/src/use-button.d.ts +10 -0
- package/es/components/button/src/use-button.mjs +59 -0
- package/es/components/button/src/use-button.mjs.map +1 -0
- package/es/components/calendar/index.d.ts +39 -58
- package/es/components/calendar/index.mjs.map +1 -1
- package/es/components/calendar/src/calendar.d.ts +0 -2
- package/es/components/calendar/src/calendar.mjs.map +1 -1
- package/es/components/calendar/src/calendar.vue.d.ts +101 -125
- package/es/components/calendar/src/calendar2.mjs +19 -134
- package/es/components/calendar/src/calendar2.mjs.map +1 -1
- package/es/components/calendar/src/date-table.d.ts +0 -2
- package/es/components/calendar/src/date-table.mjs.map +1 -1
- package/es/components/calendar/src/date-table.vue.d.ts +26 -31
- package/es/components/calendar/src/date-table2.mjs +14 -82
- package/es/components/calendar/src/date-table2.mjs.map +1 -1
- package/es/components/calendar/src/instance.d.ts +5 -0
- package/es/components/calendar/src/instance.mjs +2 -0
- package/es/components/calendar/src/instance.mjs.map +1 -0
- package/es/components/calendar/src/use-calendar.d.ts +14 -0
- package/es/components/calendar/src/use-calendar.mjs +140 -0
- package/es/components/calendar/src/use-calendar.mjs.map +1 -0
- package/es/components/calendar/src/use-date-table.d.ts +18 -0
- package/es/components/calendar/src/use-date-table.mjs +96 -0
- package/es/components/calendar/src/use-date-table.mjs.map +1 -0
- package/es/components/cascader/index.d.ts +62 -44
- package/es/components/cascader/src/index.mjs +2 -2
- package/es/components/cascader/src/index.mjs.map +1 -1
- package/es/components/cascader/src/index.vue.d.ts +31 -22
- package/es/components/cascader-panel/src/index.mjs +5 -3
- package/es/components/cascader-panel/src/index.mjs.map +1 -1
- package/es/components/color-picker/index.d.ts +21 -21
- package/es/components/color-picker/index.mjs +2 -2
- package/es/components/color-picker/src/color-picker.mjs +38 -317
- package/es/components/color-picker/src/color-picker.mjs.map +1 -1
- package/es/components/color-picker/src/color-picker.vue.d.ts +21 -21
- package/es/components/color-picker/src/color-picker2.mjs +317 -38
- package/es/components/color-picker/src/color-picker2.mjs.map +1 -1
- package/es/components/color-picker/src/components/predefine.mjs +1 -1
- package/es/components/date-picker/src/composables/use-range-picker.d.ts +1 -1
- package/es/components/date-picker/src/date-picker-com/basic-date-table.vue.d.ts +6 -6
- package/es/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +45 -45
- package/es/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +47 -47
- package/es/components/date-picker/src/date-picker-com/panel-month-range.vue.d.ts +3 -3
- package/es/components/date-picker/src/panel-utils.d.ts +95 -95
- package/es/components/dialog/index.d.ts +1 -0
- package/es/components/dialog/src/dialog.vue.d.ts +1 -0
- package/es/components/dialog/src/dialog2.mjs +4 -2
- package/es/components/dialog/src/dialog2.mjs.map +1 -1
- package/es/components/dialog/src/use-dialog.d.ts +1 -0
- package/es/components/dialog/src/use-dialog.mjs +7 -0
- package/es/components/dialog/src/use-dialog.mjs.map +1 -1
- package/es/components/drawer/index.d.ts +1 -0
- package/es/components/drawer/src/drawer.vue.d.ts +1 -0
- package/es/components/index.mjs +1 -1
- package/es/components/input/index.d.ts +18 -11
- package/es/components/input/src/input.d.ts +6 -1
- package/es/components/input/src/input.mjs +1 -2
- package/es/components/input/src/input.mjs.map +1 -1
- package/es/components/input/src/input.vue.d.ts +18 -11
- package/es/components/input/src/input2.mjs +5 -32
- package/es/components/input/src/input2.mjs.map +1 -1
- package/es/components/input-number/index.d.ts +49 -33
- package/es/components/input-number/src/input-number.vue.d.ts +49 -33
- package/es/components/message-box/src/message-box.type.d.ts +2 -0
- package/es/components/message-box/src/messageBox.mjs +20 -3
- package/es/components/message-box/src/messageBox.mjs.map +1 -1
- package/es/components/pagination/src/components/jumper.vue.d.ts +18 -11
- package/es/components/popconfirm/index.d.ts +3 -10
- package/es/components/popconfirm/src/popconfirm.vue.d.ts +3 -10
- package/es/components/skeleton/index.d.ts +1 -1
- package/es/components/skeleton/src/skeleton.vue.d.ts +1 -1
- package/es/components/slider/index.d.ts +49 -33
- package/es/components/slider/src/slider.vue.d.ts +49 -33
- package/es/components/switch/src/switch2.mjs +15 -34
- package/es/components/switch/src/switch2.mjs.map +1 -1
- package/es/components/table/src/table/style-helper.mjs +1 -1
- package/es/components/table/src/table/style-helper.mjs.map +1 -1
- package/es/components/table/src/table-body/render-helper.mjs +1 -1
- package/es/components/table/src/table-body/render-helper.mjs.map +1 -1
- package/es/components/table/src/table-body/styles-helper.d.ts +1 -1
- package/es/components/table/src/table-body/styles-helper.mjs +2 -2
- package/es/components/table/src/table-body/styles-helper.mjs.map +1 -1
- package/es/components/table/src/util.d.ts +1 -1
- package/es/components/table/src/util.mjs +3 -3
- package/es/components/table/src/util.mjs.map +1 -1
- package/es/components/table-v2/src/composables/use-styles.d.ts +1 -0
- package/es/components/table-v2/src/composables/use-styles.mjs +2 -1
- package/es/components/table-v2/src/composables/use-styles.mjs.map +1 -1
- package/es/components/table-v2/src/use-table.mjs +3 -2
- package/es/components/table-v2/src/use-table.mjs.map +1 -1
- package/es/components/time-picker/src/common/picker.mjs +2 -0
- package/es/components/time-picker/src/common/picker.mjs.map +1 -1
- package/es/components/time-picker/src/common/picker.vue.d.ts +18 -11
- package/es/components/time-picker/src/composables/use-time-picker.d.ts +2 -2
- package/es/components/time-picker/src/time-picker-com/basic-time-spinner.vue.d.ts +5 -5
- package/es/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +17 -17
- package/es/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +17 -17
- package/es/components/transfer/index.d.ts +93 -65
- package/es/components/transfer/src/transfer-panel.vue.d.ts +18 -11
- package/es/components/transfer/src/transfer.vue.d.ts +93 -65
- package/es/components/tree-v2/index.d.ts +868 -3
- package/es/components/tree-v2/src/composables/useCheck.d.ts +2 -1
- package/es/components/tree-v2/src/composables/useCheck.mjs.map +1 -1
- package/es/components/tree-v2/src/composables/useTree.d.ts +6 -3
- package/es/components/tree-v2/src/composables/useTree.mjs +1 -1
- package/es/components/tree-v2/src/composables/useTree.mjs.map +1 -1
- package/es/components/tree-v2/src/tree-node.mjs +63 -78
- package/es/components/tree-v2/src/tree-node.mjs.map +1 -1
- package/es/components/tree-v2/src/tree-node.vue.d.ts +566 -3
- package/es/components/tree-v2/src/tree.mjs +62 -75
- package/es/components/tree-v2/src/tree.mjs.map +1 -1
- package/es/components/tree-v2/src/tree.vue.d.ts +868 -3
- package/es/components/tree-v2/src/types.d.ts +1 -1
- package/es/components/tree-v2/src/virtual-tree.d.ts +3 -2
- package/es/components/tree-v2/src/virtual-tree.mjs.map +1 -1
- package/es/index.mjs +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/autocomplete/index.d.ts +53 -45
- package/lib/components/autocomplete/src/autocomplete.d.ts +1 -3
- package/lib/components/autocomplete/src/autocomplete.js.map +1 -1
- package/lib/components/autocomplete/src/autocomplete.vue.d.ts +53 -45
- package/lib/components/backtop/index.d.ts +2 -6
- package/lib/components/backtop/index.js.map +1 -1
- package/lib/components/backtop/src/backtop.d.ts +0 -2
- package/lib/components/backtop/src/backtop.js.map +1 -1
- package/lib/components/backtop/src/backtop.vue.d.ts +5 -10
- package/lib/components/backtop/src/backtop2.js +5 -51
- package/lib/components/backtop/src/backtop2.js.map +1 -1
- package/lib/components/backtop/src/instance.d.ts +2 -0
- package/lib/components/backtop/src/instance.js +3 -0
- package/lib/components/backtop/src/instance.js.map +1 -0
- package/lib/components/backtop/src/use-backtop.d.ts +6 -0
- package/lib/components/backtop/src/use-backtop.js +62 -0
- package/lib/components/backtop/src/use-backtop.js.map +1 -0
- package/lib/components/button/index.d.ts +4 -10
- package/lib/components/button/index.js.map +1 -1
- package/lib/components/button/src/button-group.d.ts +0 -2
- package/lib/components/button/src/button-group.js.map +1 -1
- package/lib/components/button/src/button.d.ts +0 -2
- package/lib/components/button/src/button.js.map +1 -1
- package/lib/components/button/src/button.vue.d.ts +3 -10
- package/lib/components/button/src/button2.js +8 -49
- package/lib/components/button/src/button2.js.map +1 -1
- package/lib/components/button/src/instance.d.ts +4 -0
- package/lib/components/button/src/instance.js +3 -0
- package/lib/components/button/src/instance.js.map +1 -0
- package/lib/components/button/src/use-button.d.ts +10 -0
- package/lib/components/button/src/use-button.js +63 -0
- package/lib/components/button/src/use-button.js.map +1 -0
- package/lib/components/calendar/index.d.ts +39 -58
- package/lib/components/calendar/index.js.map +1 -1
- package/lib/components/calendar/src/calendar.d.ts +0 -2
- package/lib/components/calendar/src/calendar.js.map +1 -1
- package/lib/components/calendar/src/calendar.vue.d.ts +101 -125
- package/lib/components/calendar/src/calendar2.js +23 -142
- package/lib/components/calendar/src/calendar2.js.map +1 -1
- package/lib/components/calendar/src/date-table.d.ts +0 -2
- package/lib/components/calendar/src/date-table.js.map +1 -1
- package/lib/components/calendar/src/date-table.vue.d.ts +26 -31
- package/lib/components/calendar/src/date-table2.js +15 -88
- package/lib/components/calendar/src/date-table2.js.map +1 -1
- package/lib/components/calendar/src/instance.d.ts +5 -0
- package/lib/components/calendar/src/instance.js +3 -0
- package/lib/components/calendar/src/instance.js.map +1 -0
- package/lib/components/calendar/src/use-calendar.d.ts +14 -0
- package/lib/components/calendar/src/use-calendar.js +148 -0
- package/lib/components/calendar/src/use-calendar.js.map +1 -0
- package/lib/components/calendar/src/use-date-table.d.ts +18 -0
- package/lib/components/calendar/src/use-date-table.js +105 -0
- package/lib/components/calendar/src/use-date-table.js.map +1 -0
- package/lib/components/cascader/index.d.ts +62 -44
- package/lib/components/cascader/src/index.js +1 -1
- package/lib/components/cascader/src/index.js.map +1 -1
- package/lib/components/cascader/src/index.vue.d.ts +31 -22
- package/lib/components/cascader-panel/src/index.js +4 -2
- package/lib/components/cascader-panel/src/index.js.map +1 -1
- package/lib/components/color-picker/index.d.ts +21 -21
- package/lib/components/color-picker/index.js +2 -2
- package/lib/components/color-picker/src/color-picker.js +38 -315
- package/lib/components/color-picker/src/color-picker.js.map +1 -1
- package/lib/components/color-picker/src/color-picker.vue.d.ts +21 -21
- package/lib/components/color-picker/src/color-picker2.js +315 -38
- package/lib/components/color-picker/src/color-picker2.js.map +1 -1
- package/lib/components/color-picker/src/components/predefine.js +1 -1
- package/lib/components/date-picker/src/composables/use-range-picker.d.ts +1 -1
- package/lib/components/date-picker/src/date-picker-com/basic-date-table.vue.d.ts +6 -6
- package/lib/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +45 -45
- package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +47 -47
- package/lib/components/date-picker/src/date-picker-com/panel-month-range.vue.d.ts +3 -3
- package/lib/components/date-picker/src/panel-utils.d.ts +95 -95
- package/lib/components/dialog/index.d.ts +1 -0
- package/lib/components/dialog/src/dialog.vue.d.ts +1 -0
- package/lib/components/dialog/src/dialog2.js +4 -2
- package/lib/components/dialog/src/dialog2.js.map +1 -1
- package/lib/components/dialog/src/use-dialog.d.ts +1 -0
- package/lib/components/dialog/src/use-dialog.js +7 -0
- package/lib/components/dialog/src/use-dialog.js.map +1 -1
- package/lib/components/drawer/index.d.ts +1 -0
- package/lib/components/drawer/src/drawer.vue.d.ts +1 -0
- package/lib/components/index.js +1 -1
- package/lib/components/input/index.d.ts +18 -11
- package/lib/components/input/src/input.d.ts +6 -1
- package/lib/components/input/src/input.js +1 -2
- package/lib/components/input/src/input.js.map +1 -1
- package/lib/components/input/src/input.vue.d.ts +18 -11
- package/lib/components/input/src/input2.js +4 -31
- package/lib/components/input/src/input2.js.map +1 -1
- package/lib/components/input-number/index.d.ts +49 -33
- package/lib/components/input-number/src/input-number.vue.d.ts +49 -33
- package/lib/components/message-box/src/message-box.type.d.ts +2 -0
- package/lib/components/message-box/src/messageBox.js +18 -1
- package/lib/components/message-box/src/messageBox.js.map +1 -1
- package/lib/components/pagination/src/components/jumper.vue.d.ts +18 -11
- package/lib/components/popconfirm/index.d.ts +3 -10
- package/lib/components/popconfirm/src/popconfirm.vue.d.ts +3 -10
- package/lib/components/skeleton/index.d.ts +1 -1
- package/lib/components/skeleton/src/skeleton.vue.d.ts +1 -1
- package/lib/components/slider/index.d.ts +49 -33
- package/lib/components/slider/src/slider.vue.d.ts +49 -33
- package/lib/components/switch/src/switch2.js +14 -33
- package/lib/components/switch/src/switch2.js.map +1 -1
- package/lib/components/table/src/table/style-helper.js +1 -1
- package/lib/components/table/src/table/style-helper.js.map +1 -1
- package/lib/components/table/src/table-body/render-helper.js +1 -1
- package/lib/components/table/src/table-body/render-helper.js.map +1 -1
- package/lib/components/table/src/table-body/styles-helper.d.ts +1 -1
- package/lib/components/table/src/table-body/styles-helper.js +2 -2
- package/lib/components/table/src/table-body/styles-helper.js.map +1 -1
- package/lib/components/table/src/util.d.ts +1 -1
- package/lib/components/table/src/util.js +3 -3
- package/lib/components/table/src/util.js.map +1 -1
- package/lib/components/table-v2/src/composables/use-styles.d.ts +1 -0
- package/lib/components/table-v2/src/composables/use-styles.js +2 -1
- package/lib/components/table-v2/src/composables/use-styles.js.map +1 -1
- package/lib/components/table-v2/src/use-table.js +3 -2
- package/lib/components/table-v2/src/use-table.js.map +1 -1
- package/lib/components/time-picker/src/common/picker.js +2 -0
- package/lib/components/time-picker/src/common/picker.js.map +1 -1
- package/lib/components/time-picker/src/common/picker.vue.d.ts +18 -11
- package/lib/components/time-picker/src/composables/use-time-picker.d.ts +2 -2
- package/lib/components/time-picker/src/time-picker-com/basic-time-spinner.vue.d.ts +5 -5
- package/lib/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +17 -17
- package/lib/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +17 -17
- package/lib/components/transfer/index.d.ts +93 -65
- package/lib/components/transfer/src/transfer-panel.vue.d.ts +18 -11
- package/lib/components/transfer/src/transfer.vue.d.ts +93 -65
- package/lib/components/tree-v2/index.d.ts +868 -3
- package/lib/components/tree-v2/src/composables/useCheck.d.ts +2 -1
- package/lib/components/tree-v2/src/composables/useCheck.js.map +1 -1
- package/lib/components/tree-v2/src/composables/useTree.d.ts +6 -3
- package/lib/components/tree-v2/src/composables/useTree.js +1 -1
- package/lib/components/tree-v2/src/composables/useTree.js.map +1 -1
- package/lib/components/tree-v2/src/tree-node.js +66 -81
- package/lib/components/tree-v2/src/tree-node.js.map +1 -1
- package/lib/components/tree-v2/src/tree-node.vue.d.ts +566 -3
- package/lib/components/tree-v2/src/tree.js +61 -74
- package/lib/components/tree-v2/src/tree.js.map +1 -1
- package/lib/components/tree-v2/src/tree.vue.d.ts +868 -3
- package/lib/components/tree-v2/src/types.d.ts +1 -1
- package/lib/components/tree-v2/src/virtual-tree.d.ts +3 -2
- package/lib/components/tree-v2/src/virtual-tree.js.map +1 -1
- package/lib/index.js +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/theme-chalk/el-switch.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/switch.scss +37 -41
- package/web-types.json +1 -1
|
@@ -2,17 +2,34 @@ import { createVNode, isVNode, render } from 'vue';
|
|
|
2
2
|
import { isClient } from '@vueuse/core';
|
|
3
3
|
import '../../../utils/index.mjs';
|
|
4
4
|
import MessageBoxConstructor from './index.mjs';
|
|
5
|
-
import { isFunction, hasOwn,
|
|
6
|
-
import { isUndefined } from '../../../utils/types.mjs';
|
|
5
|
+
import { isString, isFunction, hasOwn, isObject } from '@vue/shared';
|
|
6
|
+
import { isElement, isUndefined } from '../../../utils/types.mjs';
|
|
7
|
+
import { debugWarn } from '../../../utils/error.mjs';
|
|
7
8
|
|
|
8
9
|
const messageInstance = /* @__PURE__ */ new Map();
|
|
10
|
+
const getAppendToElement = (props) => {
|
|
11
|
+
let appendTo = document.body;
|
|
12
|
+
if (props.appendTo) {
|
|
13
|
+
if (isString(props.appendTo)) {
|
|
14
|
+
appendTo = document.querySelector(props.appendTo);
|
|
15
|
+
}
|
|
16
|
+
if (isElement(props.appendTo)) {
|
|
17
|
+
appendTo = props.appendTo;
|
|
18
|
+
}
|
|
19
|
+
if (!isElement(appendTo)) {
|
|
20
|
+
debugWarn("ElMessageBox", "the appendTo option is not an HTMLElement. Falling back to document.body.");
|
|
21
|
+
appendTo = document.body;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return appendTo;
|
|
25
|
+
};
|
|
9
26
|
const initInstance = (props, container, appContext = null) => {
|
|
10
27
|
const vnode = createVNode(MessageBoxConstructor, props, isFunction(props.message) || isVNode(props.message) ? {
|
|
11
28
|
default: isFunction(props.message) ? props.message : () => props.message
|
|
12
29
|
} : null);
|
|
13
30
|
vnode.appContext = appContext;
|
|
14
31
|
render(vnode, container);
|
|
15
|
-
|
|
32
|
+
getAppendToElement(props).appendChild(container.firstElementChild);
|
|
16
33
|
return vnode.component;
|
|
17
34
|
};
|
|
18
35
|
const genContainer = () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messageBox.mjs","sources":["../../../../../../packages/components/message-box/src/messageBox.ts"],"sourcesContent":["import { createVNode, render } from 'vue'\nimport { isClient } from '@vueuse/core'\nimport {\n hasOwn,\n isFunction,\n isObject,\n isString,\n isUndefined,\n isVNode,\n} from '@element-plus/utils'\nimport MessageBoxConstructor from './index.vue'\n\nimport type { AppContext, ComponentPublicInstance, VNode } from 'vue'\nimport type {\n Action,\n Callback,\n ElMessageBoxOptions,\n ElMessageBoxShortcutMethod,\n IElMessageBox,\n MessageBoxData,\n MessageBoxState,\n} from './message-box.type'\n\n// component default merge props & data\n\nconst messageInstance = new Map<\n ComponentPublicInstance<{ doClose: () => void }>, // marking doClose as function\n {\n options: any\n callback: Callback | undefined\n resolve: (res: any) => void\n reject: (reason?: any) => void\n }\n>()\n\nconst initInstance = (\n props: any,\n container: HTMLElement,\n appContext: AppContext | null = null\n) => {\n const vnode = createVNode(\n MessageBoxConstructor,\n props,\n isFunction(props.message) || isVNode(props.message)\n ? {\n default: isFunction(props.message)\n ? props.message\n : () => props.message,\n }\n : null\n )\n vnode.appContext = appContext\n render(vnode, container)\n document.body.appendChild(container.firstElementChild!)\n return vnode.component\n}\n\nconst genContainer = () => {\n return document.createElement('div')\n}\n\nconst showMessage = (options: any, appContext?: AppContext | null) => {\n const container = genContainer()\n // Adding destruct method.\n // when transition leaves emitting `vanish` evt. so that we can do the clean job.\n options.onVanish = () => {\n // not sure if this causes mem leak, need proof to verify that.\n // maybe calling out like 1000 msg-box then close them all.\n render(null, container)\n messageInstance.delete(vm) // Remove vm to avoid mem leak.\n // here we were suppose to call document.body.removeChild(container.firstElementChild)\n // but render(null, container) did that job for us. so that we do not call that directly\n }\n\n options.onAction = (action: Action) => {\n const currentMsg = messageInstance.get(vm)!\n let resolve: Action | { value: string; action: Action }\n if (options.showInput) {\n resolve = { value: vm.inputValue, action }\n } else {\n resolve = action\n }\n if (options.callback) {\n options.callback(resolve, instance.proxy)\n } else {\n if (action === 'cancel' || action === 'close') {\n if (options.distinguishCancelAndClose && action !== 'cancel') {\n currentMsg.reject('close')\n } else {\n currentMsg.reject('cancel')\n }\n } else {\n currentMsg.resolve(resolve)\n }\n }\n }\n\n const instance = initInstance(options, container, appContext)!\n\n // This is how we use message box programmably.\n // Maybe consider releasing a template version?\n // get component instance like v2.\n const vm = instance.proxy as ComponentPublicInstance<\n {\n visible: boolean\n doClose: () => void\n } & MessageBoxState\n >\n\n for (const prop in options) {\n if (hasOwn(options, prop) && !hasOwn(vm.$props, prop)) {\n vm[prop as keyof ComponentPublicInstance] = options[prop]\n }\n }\n\n // change visibility after everything is settled\n vm.visible = true\n return vm\n}\n\nasync function MessageBox(\n options: ElMessageBoxOptions,\n appContext?: AppContext | null\n): Promise<MessageBoxData>\nfunction MessageBox(\n options: ElMessageBoxOptions | string | VNode,\n appContext: AppContext | null = null\n): Promise<{ value: string; action: Action } | Action> {\n if (!isClient) return Promise.reject()\n let callback: Callback | undefined\n if (isString(options) || isVNode(options)) {\n options = {\n message: options,\n }\n } else {\n callback = options.callback\n }\n\n return new Promise((resolve, reject) => {\n const vm = showMessage(\n options,\n appContext ?? (MessageBox as IElMessageBox)._context\n )\n // collect this vm in order to handle upcoming events.\n messageInstance.set(vm, {\n options,\n callback,\n resolve,\n reject,\n })\n })\n}\n\nconst MESSAGE_BOX_VARIANTS = ['alert', 'confirm', 'prompt'] as const\nconst MESSAGE_BOX_DEFAULT_OPTS: Record<\n typeof MESSAGE_BOX_VARIANTS[number],\n Partial<ElMessageBoxOptions>\n> = {\n alert: { closeOnPressEscape: false, closeOnClickModal: false },\n confirm: { showCancelButton: true },\n prompt: { showCancelButton: true, showInput: true },\n}\n\nMESSAGE_BOX_VARIANTS.forEach((boxType) => {\n ;(MessageBox as IElMessageBox)[boxType] = messageBoxFactory(\n boxType\n ) as ElMessageBoxShortcutMethod\n})\n\nfunction messageBoxFactory(boxType: typeof MESSAGE_BOX_VARIANTS[number]) {\n return (\n message: string | VNode,\n title: string | ElMessageBoxOptions,\n options?: ElMessageBoxOptions,\n appContext?: AppContext | null\n ) => {\n let titleOrOpts = ''\n if (isObject(title)) {\n options = title as ElMessageBoxOptions\n titleOrOpts = ''\n } else if (isUndefined(title)) {\n titleOrOpts = ''\n } else {\n titleOrOpts = title as string\n }\n\n return MessageBox(\n Object.assign(\n {\n title: titleOrOpts,\n message,\n type: '',\n ...MESSAGE_BOX_DEFAULT_OPTS[boxType],\n },\n options,\n {\n boxType,\n }\n ),\n appContext\n )\n }\n}\n\nMessageBox.close = () => {\n // instance.setupInstall.doClose()\n // instance.setupInstall.state.visible = false\n\n messageInstance.forEach((_, vm) => {\n vm.doClose()\n })\n\n messageInstance.clear()\n}\n;(MessageBox as IElMessageBox)._context = null\n\nexport default MessageBox as IElMessageBox\n"],"names":[],"mappings":";;;;;;;AAWA,MAAM,eAAe,mBAAmB,IAAI,GAAG,EAAE,CAAC;AAClD,MAAM,YAAY,GAAG,CAAC,KAAK,EAAE,SAAS,EAAE,UAAU,GAAG,IAAI,KAAK;AAC9D,EAAE,MAAM,KAAK,GAAG,WAAW,CAAC,qBAAqB,EAAE,KAAK,EAAE,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG;AAChH,IAAI,OAAO,EAAE,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,OAAO,GAAG,MAAM,KAAK,CAAC,OAAO;AAC5E,GAAG,GAAG,IAAI,CAAC,CAAC;AACZ,EAAE,KAAK,CAAC,UAAU,GAAG,UAAU,CAAC;AAChC,EAAE,MAAM,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;AAC3B,EAAE,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;AACzD,EAAE,OAAO,KAAK,CAAC,SAAS,CAAC;AACzB,CAAC,CAAC;AACF,MAAM,YAAY,GAAG,MAAM;AAC3B,EAAE,OAAO,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;AACvC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AAM;AACzB,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,KAAK;AACrC,IAAI,EAAE,CAAC,OAAO,EAAE,CAAC;AACjB,GAAG,CAAC,CAAC;AACL,EAAE,eAAe,CAAC,KAAK,EAAE,CAAC;AAC1B,CAAC,CAAC;AACF,UAAU,CAAC,QAAQ,GAAG,IAAI;;;;"}
|
|
1
|
+
{"version":3,"file":"messageBox.mjs","sources":["../../../../../../packages/components/message-box/src/messageBox.ts"],"sourcesContent":["import { createVNode, render } from 'vue'\nimport { isClient } from '@vueuse/core'\nimport {\n debugWarn,\n hasOwn,\n isElement,\n isFunction,\n isObject,\n isString,\n isUndefined,\n isVNode,\n} from '@element-plus/utils'\nimport MessageBoxConstructor from './index.vue'\n\nimport type { AppContext, ComponentPublicInstance, VNode } from 'vue'\nimport type {\n Action,\n Callback,\n ElMessageBoxOptions,\n ElMessageBoxShortcutMethod,\n IElMessageBox,\n MessageBoxData,\n MessageBoxState,\n} from './message-box.type'\n\n// component default merge props & data\n\nconst messageInstance = new Map<\n ComponentPublicInstance<{ doClose: () => void }>, // marking doClose as function\n {\n options: any\n callback: Callback | undefined\n resolve: (res: any) => void\n reject: (reason?: any) => void\n }\n>()\n\nconst getAppendToElement = (props: any): HTMLElement => {\n let appendTo: HTMLElement | null = document.body\n if (props.appendTo) {\n if (isString(props.appendTo)) {\n appendTo = document.querySelector<HTMLElement>(props.appendTo)\n }\n if (isElement(props.appendTo)) {\n appendTo = props.appendTo\n }\n\n // should fallback to default value with a warning\n if (!isElement(appendTo)) {\n debugWarn(\n 'ElMessageBox',\n 'the appendTo option is not an HTMLElement. Falling back to document.body.'\n )\n appendTo = document.body\n }\n }\n return appendTo\n}\n\nconst initInstance = (\n props: any,\n container: HTMLElement,\n appContext: AppContext | null = null\n) => {\n const vnode = createVNode(\n MessageBoxConstructor,\n props,\n isFunction(props.message) || isVNode(props.message)\n ? {\n default: isFunction(props.message)\n ? props.message\n : () => props.message,\n }\n : null\n )\n vnode.appContext = appContext\n render(vnode, container)\n getAppendToElement(props).appendChild(container.firstElementChild!)\n return vnode.component\n}\n\nconst genContainer = () => {\n return document.createElement('div')\n}\n\nconst showMessage = (options: any, appContext?: AppContext | null) => {\n const container = genContainer()\n // Adding destruct method.\n // when transition leaves emitting `vanish` evt. so that we can do the clean job.\n options.onVanish = () => {\n // not sure if this causes mem leak, need proof to verify that.\n // maybe calling out like 1000 msg-box then close them all.\n render(null, container)\n messageInstance.delete(vm) // Remove vm to avoid mem leak.\n // here we were suppose to call document.body.removeChild(container.firstElementChild)\n // but render(null, container) did that job for us. so that we do not call that directly\n }\n\n options.onAction = (action: Action) => {\n const currentMsg = messageInstance.get(vm)!\n let resolve: Action | { value: string; action: Action }\n if (options.showInput) {\n resolve = { value: vm.inputValue, action }\n } else {\n resolve = action\n }\n if (options.callback) {\n options.callback(resolve, instance.proxy)\n } else {\n if (action === 'cancel' || action === 'close') {\n if (options.distinguishCancelAndClose && action !== 'cancel') {\n currentMsg.reject('close')\n } else {\n currentMsg.reject('cancel')\n }\n } else {\n currentMsg.resolve(resolve)\n }\n }\n }\n\n const instance = initInstance(options, container, appContext)!\n\n // This is how we use message box programmably.\n // Maybe consider releasing a template version?\n // get component instance like v2.\n const vm = instance.proxy as ComponentPublicInstance<\n {\n visible: boolean\n doClose: () => void\n } & MessageBoxState\n >\n\n for (const prop in options) {\n if (hasOwn(options, prop) && !hasOwn(vm.$props, prop)) {\n vm[prop as keyof ComponentPublicInstance] = options[prop]\n }\n }\n\n // change visibility after everything is settled\n vm.visible = true\n return vm\n}\n\nasync function MessageBox(\n options: ElMessageBoxOptions,\n appContext?: AppContext | null\n): Promise<MessageBoxData>\nfunction MessageBox(\n options: ElMessageBoxOptions | string | VNode,\n appContext: AppContext | null = null\n): Promise<{ value: string; action: Action } | Action> {\n if (!isClient) return Promise.reject()\n let callback: Callback | undefined\n if (isString(options) || isVNode(options)) {\n options = {\n message: options,\n }\n } else {\n callback = options.callback\n }\n\n return new Promise((resolve, reject) => {\n const vm = showMessage(\n options,\n appContext ?? (MessageBox as IElMessageBox)._context\n )\n // collect this vm in order to handle upcoming events.\n messageInstance.set(vm, {\n options,\n callback,\n resolve,\n reject,\n })\n })\n}\n\nconst MESSAGE_BOX_VARIANTS = ['alert', 'confirm', 'prompt'] as const\nconst MESSAGE_BOX_DEFAULT_OPTS: Record<\n typeof MESSAGE_BOX_VARIANTS[number],\n Partial<ElMessageBoxOptions>\n> = {\n alert: { closeOnPressEscape: false, closeOnClickModal: false },\n confirm: { showCancelButton: true },\n prompt: { showCancelButton: true, showInput: true },\n}\n\nMESSAGE_BOX_VARIANTS.forEach((boxType) => {\n ;(MessageBox as IElMessageBox)[boxType] = messageBoxFactory(\n boxType\n ) as ElMessageBoxShortcutMethod\n})\n\nfunction messageBoxFactory(boxType: typeof MESSAGE_BOX_VARIANTS[number]) {\n return (\n message: string | VNode,\n title: string | ElMessageBoxOptions,\n options?: ElMessageBoxOptions,\n appContext?: AppContext | null\n ) => {\n let titleOrOpts = ''\n if (isObject(title)) {\n options = title as ElMessageBoxOptions\n titleOrOpts = ''\n } else if (isUndefined(title)) {\n titleOrOpts = ''\n } else {\n titleOrOpts = title as string\n }\n\n return MessageBox(\n Object.assign(\n {\n title: titleOrOpts,\n message,\n type: '',\n ...MESSAGE_BOX_DEFAULT_OPTS[boxType],\n },\n options,\n {\n boxType,\n }\n ),\n appContext\n )\n }\n}\n\nMessageBox.close = () => {\n // instance.setupInstall.doClose()\n // instance.setupInstall.state.visible = false\n\n messageInstance.forEach((_, vm) => {\n vm.doClose()\n })\n\n messageInstance.clear()\n}\n;(MessageBox as IElMessageBox)._context = null\n\nexport default MessageBox as IElMessageBox\n"],"names":[],"mappings":";;;;;;;;AAaA,MAAM,eAAe,mBAAmB,IAAI,GAAG,EAAE,CAAC;AAClD,MAAM,kBAAkB,GAAG,CAAC,KAAK,KAAK;AACtC,EAAE,IAAI,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC;A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pB,GAAG,CAAC;AACJ,CAAC;AACD,UAAU,CAAC,KAAK,GAAG,MAAM;AACzB,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,KAAK;AACrC,IAAI,EAAE,CAAC,OAAO,EAAE,CAAC;AACjB,GAAG,CAAC,CAAC;AACL,EAAE,eAAe,CAAC,KAAK,EAAE,CAAC;AAC1B,CAAC,CAAC;AACF,UAAU,CAAC,QAAQ,GAAG,IAAI;;;;"}
|
|
@@ -63,7 +63,12 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
63
63
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
64
64
|
__epPropKey: true;
|
|
65
65
|
};
|
|
66
|
-
readonly form:
|
|
66
|
+
readonly form: {
|
|
67
|
+
readonly type: import("vue").PropType<string>;
|
|
68
|
+
readonly required: false;
|
|
69
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
70
|
+
__epPropKey: true;
|
|
71
|
+
};
|
|
67
72
|
readonly readonly: import("../../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
68
73
|
readonly clearable: import("../../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
69
74
|
readonly showPassword: import("../../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
@@ -86,10 +91,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
86
91
|
readonly validateEvent: import("../../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
87
92
|
readonly inputStyle: import("../../../../utils").EpPropFinalized<(new (...args: any[]) => import("vue").StyleValue & {}) | (() => import("vue").StyleValue) | ((new (...args: any[]) => import("vue").StyleValue & {}) | (() => import("vue").StyleValue))[], unknown, unknown, () => import("../../../../utils").Mutable<{}>, boolean>;
|
|
88
93
|
}, {
|
|
89
|
-
PENDANT_MAP: {
|
|
90
|
-
readonly suffix: "append";
|
|
91
|
-
readonly prefix: "prepend";
|
|
92
|
-
};
|
|
93
94
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
94
95
|
readonly id: import("../../../../utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
95
96
|
readonly size: {
|
|
@@ -127,7 +128,12 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
127
128
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
128
129
|
__epPropKey: true;
|
|
129
130
|
};
|
|
130
|
-
readonly form:
|
|
131
|
+
readonly form: {
|
|
132
|
+
readonly type: import("vue").PropType<string>;
|
|
133
|
+
readonly required: false;
|
|
134
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
135
|
+
__epPropKey: true;
|
|
136
|
+
};
|
|
131
137
|
readonly readonly: import("../../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
132
138
|
readonly clearable: import("../../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
133
139
|
readonly showPassword: import("../../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
@@ -164,7 +170,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
164
170
|
onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
|
|
165
171
|
}>>;
|
|
166
172
|
emit: ((event: "update:modelValue", value: string) => void) & ((event: "change", value: string) => void) & ((event: "input", value: string) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "clear") => void) & ((event: "mouseleave", evt: MouseEvent) => void) & ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "keydown", evt: Event | KeyboardEvent) => void) & ((event: "compositionstart", evt: CompositionEvent) => void) & ((event: "compositionupdate", evt: CompositionEvent) => void) & ((event: "compositionend", evt: CompositionEvent) => void);
|
|
167
|
-
instance: import("vue").ComponentInternalInstance;
|
|
168
173
|
rawAttrs: {
|
|
169
174
|
[x: string]: unknown;
|
|
170
175
|
};
|
|
@@ -240,8 +245,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
240
245
|
setCursor: () => void;
|
|
241
246
|
resizeTextarea: () => void;
|
|
242
247
|
setNativeInputValue: () => void;
|
|
243
|
-
calcIconOffset: (place: "suffix" | "prefix") => void;
|
|
244
|
-
updateIconOffset: () => void;
|
|
245
248
|
handleInput: (event: Event) => Promise<void>;
|
|
246
249
|
handleChange: (event: Event) => void;
|
|
247
250
|
handleCompositionStart: (event: CompositionEvent) => void;
|
|
@@ -372,7 +375,12 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
372
375
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
373
376
|
__epPropKey: true;
|
|
374
377
|
};
|
|
375
|
-
readonly form:
|
|
378
|
+
readonly form: {
|
|
379
|
+
readonly type: import("vue").PropType<string>;
|
|
380
|
+
readonly required: false;
|
|
381
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
382
|
+
__epPropKey: true;
|
|
383
|
+
};
|
|
376
384
|
readonly readonly: import("../../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
377
385
|
readonly clearable: import("../../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
378
386
|
readonly showPassword: import("../../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
@@ -416,7 +424,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
416
424
|
readonly id: string;
|
|
417
425
|
readonly autosize: import("element-plus/es/components/input").InputAutoSize;
|
|
418
426
|
readonly autocomplete: string;
|
|
419
|
-
readonly form: string;
|
|
420
427
|
readonly readonly: import("../../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
421
428
|
readonly clearable: import("../../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
422
429
|
readonly showPassword: import("../../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -6205,11 +6205,7 @@ export declare const ElPopconfirm: import("element-plus/es/utils").SFCWithInstal
|
|
|
6205
6205
|
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
6206
6206
|
}>>;
|
|
6207
6207
|
emit: (event: "click", evt: MouseEvent) => void;
|
|
6208
|
-
|
|
6209
|
-
[name: string]: import("vue").Slot | undefined;
|
|
6210
|
-
}>;
|
|
6211
|
-
buttonGroupContext: import("../..").ButtonGroupContext | undefined;
|
|
6212
|
-
globalConfig: import("vue").Ref<import("..").ButtonConfigContext | undefined>;
|
|
6208
|
+
buttonStyle: import("vue").ComputedRef<Record<string, string>>;
|
|
6213
6209
|
ns: {
|
|
6214
6210
|
namespace: import("vue").Ref<string>;
|
|
6215
6211
|
b: (blockSuffix?: string) => string;
|
|
@@ -6228,14 +6224,11 @@ export declare const ElPopconfirm: import("element-plus/es/utils").SFCWithInstal
|
|
|
6228
6224
|
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
6229
6225
|
cssVarBlockName: (name: string) => string;
|
|
6230
6226
|
};
|
|
6231
|
-
form: import("../..").FormContext | undefined;
|
|
6232
|
-
_size: import("vue").ComputedRef<"" | "default" | "small" | "large">;
|
|
6233
|
-
_disabled: import("vue").ComputedRef<boolean>;
|
|
6234
6227
|
_ref: import("vue").Ref<HTMLButtonElement | undefined>;
|
|
6228
|
+
_size: import("vue").ComputedRef<"" | "default" | "small" | "large">;
|
|
6235
6229
|
_type: import("vue").ComputedRef<"" | "default" | "primary" | "success" | "warning" | "info" | "danger" | "text">;
|
|
6236
|
-
|
|
6230
|
+
_disabled: import("vue").ComputedRef<boolean>;
|
|
6237
6231
|
shouldAddSpace: import("vue").ComputedRef<boolean>;
|
|
6238
|
-
buttonStyle: import("vue").ComputedRef<Record<string, string>>;
|
|
6239
6232
|
handleClick: (evt: MouseEvent) => void;
|
|
6240
6233
|
ElIcon: import("element-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
6241
6234
|
readonly size: {
|
|
@@ -6205,11 +6205,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6205
6205
|
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
6206
6206
|
}>>;
|
|
6207
6207
|
emit: (event: "click", evt: MouseEvent) => void;
|
|
6208
|
-
|
|
6209
|
-
[name: string]: import("vue").Slot | undefined;
|
|
6210
|
-
}>;
|
|
6211
|
-
buttonGroupContext: import("../../..").ButtonGroupContext | undefined;
|
|
6212
|
-
globalConfig: import("vue").Ref<import("element-plus/es/components/button").ButtonConfigContext | undefined>;
|
|
6208
|
+
buttonStyle: import("vue").ComputedRef<Record<string, string>>;
|
|
6213
6209
|
ns: {
|
|
6214
6210
|
namespace: import("vue").Ref<string>;
|
|
6215
6211
|
b: (blockSuffix?: string) => string;
|
|
@@ -6228,14 +6224,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6228
6224
|
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
6229
6225
|
cssVarBlockName: (name: string) => string;
|
|
6230
6226
|
};
|
|
6231
|
-
form: import("../../..").FormContext | undefined;
|
|
6232
|
-
_size: import("vue").ComputedRef<"" | "default" | "small" | "large">;
|
|
6233
|
-
_disabled: import("vue").ComputedRef<boolean>;
|
|
6234
6227
|
_ref: import("vue").Ref<HTMLButtonElement | undefined>;
|
|
6228
|
+
_size: import("vue").ComputedRef<"" | "default" | "small" | "large">;
|
|
6235
6229
|
_type: import("vue").ComputedRef<"" | "default" | "primary" | "success" | "warning" | "info" | "danger" | "text">;
|
|
6236
|
-
|
|
6230
|
+
_disabled: import("vue").ComputedRef<boolean>;
|
|
6237
6231
|
shouldAddSpace: import("vue").ComputedRef<boolean>;
|
|
6238
|
-
buttonStyle: import("vue").ComputedRef<Record<string, string>>;
|
|
6239
6232
|
handleClick: (evt: MouseEvent) => void;
|
|
6240
6233
|
ElIcon: import("element-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
6241
6234
|
readonly size: {
|
|
@@ -83,9 +83,9 @@ export declare const ElSkeleton: import("element-plus/es/utils").SFCWithInstall<
|
|
|
83
83
|
};
|
|
84
84
|
}>>, {
|
|
85
85
|
readonly loading: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
86
|
+
readonly rows: number;
|
|
86
87
|
readonly animated: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
87
88
|
readonly count: number;
|
|
88
|
-
readonly rows: number;
|
|
89
89
|
}>> & {
|
|
90
90
|
SkeletonItem: import("vue").DefineComponent<{
|
|
91
91
|
readonly variant: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "text" | "button" | "circle" | "caption" | "image" | "rect" | "h1" | "h3" | "p", unknown, "text", boolean>;
|
|
@@ -83,8 +83,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
83
83
|
};
|
|
84
84
|
}>>, {
|
|
85
85
|
readonly loading: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
86
|
+
readonly rows: number;
|
|
86
87
|
readonly animated: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
87
88
|
readonly count: number;
|
|
88
|
-
readonly rows: number;
|
|
89
89
|
}>;
|
|
90
90
|
export default _default;
|
|
@@ -13358,7 +13358,6 @@ export declare const ElSlider: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
13358
13358
|
readonly id: string;
|
|
13359
13359
|
readonly autosize: import("..").InputAutoSize;
|
|
13360
13360
|
readonly autocomplete: string;
|
|
13361
|
-
readonly form: string;
|
|
13362
13361
|
readonly readonly: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
13363
13362
|
readonly clearable: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
13364
13363
|
readonly showPassword: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -13403,7 +13402,12 @@ export declare const ElSlider: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
13403
13402
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
13404
13403
|
__epPropKey: true;
|
|
13405
13404
|
};
|
|
13406
|
-
readonly form:
|
|
13405
|
+
readonly form: {
|
|
13406
|
+
readonly type: import("vue").PropType<string>;
|
|
13407
|
+
readonly required: false;
|
|
13408
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
13409
|
+
__epPropKey: true;
|
|
13410
|
+
};
|
|
13407
13411
|
readonly readonly: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
13408
13412
|
readonly clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
13409
13413
|
readonly showPassword: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
@@ -13438,7 +13442,7 @@ export declare const ElSlider: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
13438
13442
|
onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
|
|
13439
13443
|
onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
|
|
13440
13444
|
onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
|
|
13441
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "disabled" | "label" | "modelValue" | "validateEvent" | "id" | "autosize" | "autocomplete" | "
|
|
13445
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "disabled" | "label" | "modelValue" | "validateEvent" | "id" | "autosize" | "autocomplete" | "readonly" | "clearable" | "showPassword" | "showWordLimit" | "containerRole" | "tabindex" | "inputStyle">;
|
|
13442
13446
|
$attrs: {
|
|
13443
13447
|
[x: string]: unknown;
|
|
13444
13448
|
};
|
|
@@ -13489,7 +13493,12 @@ export declare const ElSlider: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
13489
13493
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
13490
13494
|
__epPropKey: true;
|
|
13491
13495
|
};
|
|
13492
|
-
readonly form:
|
|
13496
|
+
readonly form: {
|
|
13497
|
+
readonly type: import("vue").PropType<string>;
|
|
13498
|
+
readonly required: false;
|
|
13499
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
13500
|
+
__epPropKey: true;
|
|
13501
|
+
};
|
|
13493
13502
|
readonly readonly: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
13494
13503
|
readonly clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
13495
13504
|
readonly showPassword: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
@@ -13525,10 +13534,6 @@ export declare const ElSlider: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
13525
13534
|
onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
|
|
13526
13535
|
onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
|
|
13527
13536
|
}, {
|
|
13528
|
-
PENDANT_MAP: {
|
|
13529
|
-
readonly suffix: "append";
|
|
13530
|
-
readonly prefix: "prepend";
|
|
13531
|
-
};
|
|
13532
13537
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
13533
13538
|
readonly id: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
13534
13539
|
readonly size: {
|
|
@@ -13566,7 +13571,12 @@ export declare const ElSlider: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
13566
13571
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
13567
13572
|
__epPropKey: true;
|
|
13568
13573
|
};
|
|
13569
|
-
readonly form:
|
|
13574
|
+
readonly form: {
|
|
13575
|
+
readonly type: import("vue").PropType<string>;
|
|
13576
|
+
readonly required: false;
|
|
13577
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
13578
|
+
__epPropKey: true;
|
|
13579
|
+
};
|
|
13570
13580
|
readonly readonly: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
13571
13581
|
readonly clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
13572
13582
|
readonly showPassword: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
@@ -13603,7 +13613,6 @@ export declare const ElSlider: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
13603
13613
|
onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
|
|
13604
13614
|
}>>;
|
|
13605
13615
|
emit: ((event: "update:modelValue", value: string) => void) & ((event: "change", value: string) => void) & ((event: "input", value: string) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "clear") => void) & ((event: "mouseleave", evt: MouseEvent) => void) & ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "keydown", evt: Event | KeyboardEvent) => void) & ((event: "compositionstart", evt: CompositionEvent) => void) & ((event: "compositionupdate", evt: CompositionEvent) => void) & ((event: "compositionend", evt: CompositionEvent) => void);
|
|
13606
|
-
instance: import("vue").ComponentInternalInstance;
|
|
13607
13616
|
rawAttrs: {
|
|
13608
13617
|
[x: string]: unknown;
|
|
13609
13618
|
};
|
|
@@ -13679,8 +13688,6 @@ export declare const ElSlider: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
13679
13688
|
setCursor: () => void;
|
|
13680
13689
|
resizeTextarea: () => void;
|
|
13681
13690
|
setNativeInputValue: () => void;
|
|
13682
|
-
calcIconOffset: (place: "suffix" | "prefix") => void;
|
|
13683
|
-
updateIconOffset: () => void;
|
|
13684
13691
|
handleInput: (event: Event) => Promise<void>;
|
|
13685
13692
|
handleChange: (event: Event) => void;
|
|
13686
13693
|
handleCompositionStart: (event: CompositionEvent) => void;
|
|
@@ -13783,7 +13790,6 @@ export declare const ElSlider: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
13783
13790
|
readonly id: string;
|
|
13784
13791
|
readonly autosize: import("..").InputAutoSize;
|
|
13785
13792
|
readonly autocomplete: string;
|
|
13786
|
-
readonly form: string;
|
|
13787
13793
|
readonly readonly: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
13788
13794
|
readonly clearable: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
13789
13795
|
readonly showPassword: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -13848,7 +13854,12 @@ export declare const ElSlider: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
13848
13854
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
13849
13855
|
__epPropKey: true;
|
|
13850
13856
|
};
|
|
13851
|
-
readonly form:
|
|
13857
|
+
readonly form: {
|
|
13858
|
+
readonly type: import("vue").PropType<string>;
|
|
13859
|
+
readonly required: false;
|
|
13860
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
13861
|
+
__epPropKey: true;
|
|
13862
|
+
};
|
|
13852
13863
|
readonly readonly: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
13853
13864
|
readonly clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
13854
13865
|
readonly showPassword: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
@@ -13884,10 +13895,6 @@ export declare const ElSlider: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
13884
13895
|
onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
|
|
13885
13896
|
onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
|
|
13886
13897
|
} & import("vue").ShallowUnwrapRef<{
|
|
13887
|
-
PENDANT_MAP: {
|
|
13888
|
-
readonly suffix: "append";
|
|
13889
|
-
readonly prefix: "prepend";
|
|
13890
|
-
};
|
|
13891
13898
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
13892
13899
|
readonly id: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
13893
13900
|
readonly size: {
|
|
@@ -13925,7 +13932,12 @@ export declare const ElSlider: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
13925
13932
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
13926
13933
|
__epPropKey: true;
|
|
13927
13934
|
};
|
|
13928
|
-
readonly form:
|
|
13935
|
+
readonly form: {
|
|
13936
|
+
readonly type: import("vue").PropType<string>;
|
|
13937
|
+
readonly required: false;
|
|
13938
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
13939
|
+
__epPropKey: true;
|
|
13940
|
+
};
|
|
13929
13941
|
readonly readonly: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
13930
13942
|
readonly clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
13931
13943
|
readonly showPassword: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
@@ -13962,7 +13974,6 @@ export declare const ElSlider: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
13962
13974
|
onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
|
|
13963
13975
|
}>>;
|
|
13964
13976
|
emit: ((event: "update:modelValue", value: string) => void) & ((event: "change", value: string) => void) & ((event: "input", value: string) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "clear") => void) & ((event: "mouseleave", evt: MouseEvent) => void) & ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "keydown", evt: Event | KeyboardEvent) => void) & ((event: "compositionstart", evt: CompositionEvent) => void) & ((event: "compositionupdate", evt: CompositionEvent) => void) & ((event: "compositionend", evt: CompositionEvent) => void);
|
|
13965
|
-
instance: import("vue").ComponentInternalInstance;
|
|
13966
13977
|
rawAttrs: {
|
|
13967
13978
|
[x: string]: unknown;
|
|
13968
13979
|
};
|
|
@@ -14038,8 +14049,6 @@ export declare const ElSlider: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
14038
14049
|
setCursor: () => void;
|
|
14039
14050
|
resizeTextarea: () => void;
|
|
14040
14051
|
setNativeInputValue: () => void;
|
|
14041
|
-
calcIconOffset: (place: "suffix" | "prefix") => void;
|
|
14042
|
-
updateIconOffset: () => void;
|
|
14043
14052
|
handleInput: (event: Event) => Promise<void>;
|
|
14044
14053
|
handleChange: (event: Event) => void;
|
|
14045
14054
|
handleCompositionStart: (event: CompositionEvent) => void;
|
|
@@ -14183,7 +14192,12 @@ export declare const ElSlider: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
14183
14192
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
14184
14193
|
__epPropKey: true;
|
|
14185
14194
|
};
|
|
14186
|
-
readonly form:
|
|
14195
|
+
readonly form: {
|
|
14196
|
+
readonly type: import("vue").PropType<string>;
|
|
14197
|
+
readonly required: false;
|
|
14198
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
14199
|
+
__epPropKey: true;
|
|
14200
|
+
};
|
|
14187
14201
|
readonly readonly: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
14188
14202
|
readonly clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
14189
14203
|
readonly showPassword: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
@@ -14206,10 +14220,6 @@ export declare const ElSlider: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
14206
14220
|
readonly validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
14207
14221
|
readonly inputStyle: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("vue").StyleValue & {}) | (() => import("vue").StyleValue) | ((new (...args: any[]) => import("vue").StyleValue & {}) | (() => import("vue").StyleValue))[], unknown, unknown, () => import("element-plus/es/utils").Mutable<{}>, boolean>;
|
|
14208
14222
|
}, {
|
|
14209
|
-
PENDANT_MAP: {
|
|
14210
|
-
readonly suffix: "append";
|
|
14211
|
-
readonly prefix: "prepend";
|
|
14212
|
-
};
|
|
14213
14223
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
14214
14224
|
readonly id: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
14215
14225
|
readonly size: {
|
|
@@ -14247,7 +14257,12 @@ export declare const ElSlider: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
14247
14257
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
14248
14258
|
__epPropKey: true;
|
|
14249
14259
|
};
|
|
14250
|
-
readonly form:
|
|
14260
|
+
readonly form: {
|
|
14261
|
+
readonly type: import("vue").PropType<string>;
|
|
14262
|
+
readonly required: false;
|
|
14263
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
14264
|
+
__epPropKey: true;
|
|
14265
|
+
};
|
|
14251
14266
|
readonly readonly: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
14252
14267
|
readonly clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
14253
14268
|
readonly showPassword: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
@@ -14284,7 +14299,6 @@ export declare const ElSlider: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
14284
14299
|
onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
|
|
14285
14300
|
}>>;
|
|
14286
14301
|
emit: ((event: "update:modelValue", value: string) => void) & ((event: "change", value: string) => void) & ((event: "input", value: string) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "clear") => void) & ((event: "mouseleave", evt: MouseEvent) => void) & ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "keydown", evt: Event | KeyboardEvent) => void) & ((event: "compositionstart", evt: CompositionEvent) => void) & ((event: "compositionupdate", evt: CompositionEvent) => void) & ((event: "compositionend", evt: CompositionEvent) => void);
|
|
14287
|
-
instance: import("vue").ComponentInternalInstance;
|
|
14288
14302
|
rawAttrs: {
|
|
14289
14303
|
[x: string]: unknown;
|
|
14290
14304
|
};
|
|
@@ -14360,8 +14374,6 @@ export declare const ElSlider: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
14360
14374
|
setCursor: () => void;
|
|
14361
14375
|
resizeTextarea: () => void;
|
|
14362
14376
|
setNativeInputValue: () => void;
|
|
14363
|
-
calcIconOffset: (place: "suffix" | "prefix") => void;
|
|
14364
|
-
updateIconOffset: () => void;
|
|
14365
14377
|
handleInput: (event: Event) => Promise<void>;
|
|
14366
14378
|
handleChange: (event: Event) => void;
|
|
14367
14379
|
handleCompositionStart: (event: CompositionEvent) => void;
|
|
@@ -14492,7 +14504,12 @@ export declare const ElSlider: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
14492
14504
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
14493
14505
|
__epPropKey: true;
|
|
14494
14506
|
};
|
|
14495
|
-
readonly form:
|
|
14507
|
+
readonly form: {
|
|
14508
|
+
readonly type: import("vue").PropType<string>;
|
|
14509
|
+
readonly required: false;
|
|
14510
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
14511
|
+
__epPropKey: true;
|
|
14512
|
+
};
|
|
14496
14513
|
readonly readonly: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
14497
14514
|
readonly clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
14498
14515
|
readonly showPassword: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
@@ -14536,7 +14553,6 @@ export declare const ElSlider: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
14536
14553
|
readonly id: string;
|
|
14537
14554
|
readonly autosize: import("..").InputAutoSize;
|
|
14538
14555
|
readonly autocomplete: string;
|
|
14539
|
-
readonly form: string;
|
|
14540
14556
|
readonly readonly: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
14541
14557
|
readonly clearable: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
14542
14558
|
readonly showPassword: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|