@element-plus/nightly 0.0.20220515 → 0.0.20220519
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 +1292 -1141
- package/dist/index.full.min.js +16 -16
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +20 -20
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +1292 -1141
- 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/button/index.d.ts +14 -14
- package/es/components/button/src/button-group.d.ts +1 -1
- package/es/components/button/src/button-group.vue.d.ts +4 -4
- package/es/components/button/src/button.d.ts +2 -2
- package/es/components/button/src/button.vue.d.ts +6 -6
- package/es/components/button/src/button3.mjs +1 -0
- package/es/components/button/src/button3.mjs.map +1 -1
- package/es/components/button/src/button4.mjs +9 -1
- package/es/components/button/src/button4.mjs.map +1 -1
- package/es/components/calendar/index.d.ts +14 -14
- package/es/components/calendar/src/calendar.vue.d.ts +14 -14
- package/es/components/cascader-panel/src/node3.mjs +1 -1
- package/es/components/cascader-panel/src/node3.mjs.map +1 -1
- package/es/components/checkbox/src/checkbox2.mjs +4 -4
- package/es/components/checkbox/src/checkbox2.mjs.map +1 -1
- package/es/components/col/src/col.mjs.map +1 -1
- package/es/components/collection/src/collection-item2.mjs +3 -3
- package/es/components/collection/src/collection-item2.mjs.map +1 -1
- package/es/components/collection/src/collection.d.ts +2 -3
- package/es/components/collection/src/collection3.mjs +1 -2
- package/es/components/collection/src/collection3.mjs.map +1 -1
- package/es/components/collection/src/collection4.mjs +3 -3
- package/es/components/collection/src/collection4.mjs.map +1 -1
- package/es/components/container/index.d.ts +76 -12
- package/es/components/container/index2.mjs.map +1 -1
- package/es/components/container/src/aside.vue.d.ts +9 -1
- package/es/components/container/src/aside2.mjs +17 -18
- package/es/components/container/src/aside2.mjs.map +1 -1
- package/es/components/container/src/container.vue.d.ts +12 -6
- package/es/components/container/src/container2.mjs +17 -17
- package/es/components/container/src/container2.mjs.map +1 -1
- package/es/components/container/src/footer.vue.d.ts +9 -1
- package/es/components/container/src/footer2.mjs +17 -16
- package/es/components/container/src/footer2.mjs.map +1 -1
- package/es/components/container/src/header.vue.d.ts +9 -1
- package/es/components/container/src/header2.mjs +20 -17
- package/es/components/container/src/header2.mjs.map +1 -1
- package/es/components/container/src/main2.mjs +14 -14
- package/es/components/container/src/main2.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/basic-cell-render2.mjs +5 -2
- package/es/components/date-picker/src/date-picker-com/basic-cell-render2.mjs.map +1 -1
- package/es/components/dropdown/index.d.ts +3 -3
- package/es/components/dropdown/src/dropdown.d.ts +2 -4
- package/es/components/dropdown/src/dropdown.vue.d.ts +3 -3
- package/es/components/form/src/form-label-wrap.mjs.map +1 -1
- package/es/components/index.mjs +1 -1
- package/es/components/input-number/index.d.ts +6 -3
- package/es/components/input-number/src/input-number.d.ts +2 -1
- package/es/components/input-number/src/input-number.vue.d.ts +6 -3
- package/es/components/input-number/src/input-number3.mjs +8 -2
- package/es/components/input-number/src/input-number3.mjs.map +1 -1
- package/es/components/input-number/src/input-number4.mjs +35 -31
- package/es/components/input-number/src/input-number4.mjs.map +1 -1
- package/es/components/pagination/src/components/jumper.vue.d.ts +277 -1
- package/es/components/pagination/src/components/jumper2.mjs +28 -38
- package/es/components/pagination/src/components/jumper2.mjs.map +1 -1
- package/es/components/pagination/src/components/next.d.ts +10 -0
- package/es/components/pagination/src/components/next.mjs +1 -6
- package/es/components/pagination/src/components/next.mjs.map +1 -1
- package/es/components/pagination/src/components/next.vue.d.ts +51 -24
- package/es/components/pagination/src/components/next2.mjs +3 -55
- package/es/components/pagination/src/components/next2.mjs.map +1 -1
- package/es/components/pagination/src/components/next3.mjs +20 -0
- package/es/components/pagination/src/components/next3.mjs.map +1 -0
- package/es/components/pagination/src/components/next4.mjs +40 -0
- package/es/components/pagination/src/components/next4.mjs.map +1 -0
- package/es/components/pagination/src/components/pager.d.ts +10 -0
- package/es/components/pagination/src/components/pager.mjs +1 -6
- package/es/components/pagination/src/components/pager.mjs.map +1 -1
- package/es/components/pagination/src/components/pager.vue.d.ts +24 -30
- package/es/components/pagination/src/components/pager2.mjs +3 -216
- package/es/components/pagination/src/components/pager2.mjs.map +1 -1
- package/es/components/pagination/src/components/pager3.mjs +21 -0
- package/es/components/pagination/src/components/pager3.mjs.map +1 -0
- package/es/components/pagination/src/components/pager4.mjs +191 -0
- package/es/components/pagination/src/components/pager4.mjs.map +1 -0
- package/es/components/pagination/src/components/prev.d.ts +12 -0
- package/es/components/pagination/src/components/prev.mjs +1 -6
- package/es/components/pagination/src/components/prev.mjs.map +1 -1
- package/es/components/pagination/src/components/prev.vue.d.ts +52 -18
- package/es/components/pagination/src/components/prev2.mjs +3 -51
- package/es/components/pagination/src/components/prev2.mjs.map +1 -1
- package/es/components/pagination/src/components/prev3.mjs +19 -0
- package/es/components/pagination/src/components/prev3.mjs.map +1 -0
- package/es/components/pagination/src/components/prev4.mjs +40 -0
- package/es/components/pagination/src/components/prev4.mjs.map +1 -0
- package/es/components/pagination/src/components/total.d.ts +7 -0
- package/es/components/pagination/src/components/total.mjs +1 -6
- package/es/components/pagination/src/components/total.mjs.map +1 -1
- package/es/components/pagination/src/components/total.vue.d.ts +3 -17
- package/es/components/pagination/src/components/total2.mjs +3 -36
- package/es/components/pagination/src/components/total2.mjs.map +1 -1
- package/es/components/pagination/src/components/total3.mjs +12 -0
- package/es/components/pagination/src/components/total3.mjs.map +1 -0
- package/es/components/pagination/src/components/total4.mjs +33 -0
- package/es/components/pagination/src/components/total4.mjs.map +1 -0
- package/es/components/pagination/src/pagination2.mjs +4 -4
- package/es/components/popconfirm/index.d.ts +10 -10
- package/es/components/popconfirm/src/popconfirm.vue.d.ts +10 -10
- package/es/components/radio/index.d.ts +73 -14
- package/es/components/radio/index.mjs +1 -1
- package/es/components/radio/index2.mjs +2 -2
- package/es/components/radio/src/radio-button.d.ts +2 -0
- package/es/components/radio/src/radio-button.vue.d.ts +11 -4
- package/es/components/radio/src/radio-button3.mjs +1 -1
- package/es/components/radio/src/radio-button3.mjs.map +1 -1
- package/es/components/radio/src/radio-button4.mjs +48 -69
- package/es/components/radio/src/radio-button4.mjs.map +1 -1
- package/es/components/radio/src/radio-group.d.ts +3 -0
- package/es/components/radio/src/radio-group.vue.d.ts +19 -1
- package/es/components/radio/src/radio-group3.mjs +5 -1
- package/es/components/radio/src/radio-group3.mjs.map +1 -1
- package/es/components/radio/src/radio-group4.mjs +24 -60
- package/es/components/radio/src/radio-group4.mjs.map +1 -1
- package/es/components/radio/src/radio.d.ts +6 -4
- package/es/components/radio/src/radio.mjs +1 -1
- package/es/components/radio/src/radio.vue.d.ts +15 -4
- package/es/components/radio/src/radio3.mjs +67 -77
- package/es/components/radio/src/radio3.mjs.map +1 -1
- package/es/components/radio/src/radio4.mjs +70 -67
- package/es/components/radio/src/radio4.mjs.map +1 -1
- package/es/components/roving-focus-group/src/roving-focus-group.d.ts +1 -3
- package/es/components/roving-focus-group/src/roving-focus-item.vue.d.ts +1 -1
- package/es/components/row/src/row.mjs.map +1 -1
- package/es/components/select-v2/src/select2.mjs.map +1 -1
- package/es/components/skeleton/index.d.ts +9 -9
- package/es/components/skeleton/src/skeleton-item.d.ts +1 -1
- package/es/components/skeleton/src/skeleton-item.vue.d.ts +3 -3
- package/es/components/skeleton/src/skeleton.vue.d.ts +3 -3
- package/es/components/slot/src/only-child.mjs.map +1 -1
- package/es/components/table-v2/src/components/auto-resizer.mjs.map +1 -1
- package/es/components/table-v2/src/components/cell.mjs.map +1 -1
- package/es/components/table-v2/src/components/expand-icon.mjs.map +1 -1
- package/es/components/table-v2/src/components/header-cell.mjs.map +1 -1
- package/es/components/table-v2/src/components/header-row.mjs.map +1 -1
- package/es/components/table-v2/src/components/header.mjs.map +1 -1
- package/es/components/table-v2/src/components/row.mjs.map +1 -1
- package/es/components/table-v2/src/components/sort-icon.mjs.map +1 -1
- package/es/components/table-v2/src/renderers/cell.mjs.map +1 -1
- package/es/components/table-v2/src/renderers/empty.mjs.map +1 -1
- package/es/components/table-v2/src/renderers/footer.mjs.map +1 -1
- package/es/components/table-v2/src/renderers/header-cell.mjs +1 -1
- package/es/components/table-v2/src/renderers/header-cell.mjs.map +1 -1
- package/es/components/table-v2/src/renderers/header.mjs.map +1 -1
- package/es/components/table-v2/src/renderers/left-table.mjs.map +1 -1
- package/es/components/table-v2/src/renderers/main-table.mjs.map +1 -1
- package/es/components/table-v2/src/renderers/overlay.mjs.map +1 -1
- package/es/components/table-v2/src/renderers/right-table.mjs.map +1 -1
- package/es/components/table-v2/src/renderers/row.mjs.map +1 -1
- package/es/components/table-v2/src/table-grid.mjs.map +1 -1
- package/es/components/table-v2/src/table-v2.mjs.map +1 -1
- package/es/components/tabs/src/tab-nav.mjs.map +1 -1
- package/es/components/tabs/src/tabs.mjs.map +1 -1
- package/es/components/teleport/index.mjs +1 -1
- package/es/components/teleport/index2.mjs +2 -2
- package/es/components/teleport/src/teleport.mjs +1 -1
- package/es/components/teleport/src/teleport3.mjs +18 -43
- package/es/components/teleport/src/teleport3.mjs.map +1 -1
- package/es/components/teleport/src/teleport4.mjs +43 -18
- package/es/components/teleport/src/teleport4.mjs.map +1 -1
- package/es/components/time-picker/src/common/picker.vue.d.ts +2 -1
- package/es/components/time-picker/src/common/picker2.mjs +7 -2
- package/es/components/time-picker/src/common/picker2.mjs.map +1 -1
- package/es/components/timeline/index.d.ts +72 -0
- package/es/components/timeline/src/timeline-item.vue.d.ts +36 -0
- package/es/components/timeline/src/timeline-item4.mjs +61 -65
- package/es/components/timeline/src/timeline-item4.mjs.map +1 -1
- package/es/components/tooltip-v2/src/forward-ref.mjs.map +1 -1
- package/es/components/upload/index.d.ts +0 -1
- package/es/components/upload/src/upload-list.vue.d.ts +0 -1
- package/es/components/upload/src/upload-list4.mjs +1 -5
- package/es/components/upload/src/upload-list4.mjs.map +1 -1
- package/es/components/upload/src/upload.vue.d.ts +0 -1
- package/es/index.mjs +1 -1
- package/es/utils/dom/scroll2.mjs.map +1 -1
- package/es/version.d.ts +1 -1
- package/es/version2.mjs +1 -1
- package/es/version2.mjs.map +1 -1
- package/lib/components/button/index.d.ts +14 -14
- package/lib/components/button/src/button-group.d.ts +1 -1
- package/lib/components/button/src/button-group.vue.d.ts +4 -4
- package/lib/components/button/src/button.d.ts +2 -2
- package/lib/components/button/src/button.vue.d.ts +6 -6
- package/lib/components/button/src/button3.js +1 -0
- package/lib/components/button/src/button3.js.map +1 -1
- package/lib/components/button/src/button4.js +20 -12
- package/lib/components/button/src/button4.js.map +1 -1
- package/lib/components/calendar/index.d.ts +14 -14
- package/lib/components/calendar/src/calendar.vue.d.ts +14 -14
- package/lib/components/cascader-panel/src/node3.js +1 -1
- package/lib/components/cascader-panel/src/node3.js.map +1 -1
- package/lib/components/checkbox/src/checkbox2.js +4 -4
- package/lib/components/checkbox/src/checkbox2.js.map +1 -1
- package/lib/components/col/src/col.js.map +1 -1
- package/lib/components/collection/src/collection-item2.js +2 -2
- package/lib/components/collection/src/collection-item2.js.map +1 -1
- package/lib/components/collection/src/collection.d.ts +2 -3
- package/lib/components/collection/src/collection3.js +1 -2
- package/lib/components/collection/src/collection3.js.map +1 -1
- package/lib/components/collection/src/collection4.js +2 -2
- package/lib/components/collection/src/collection4.js.map +1 -1
- package/lib/components/container/index.d.ts +76 -12
- package/lib/components/container/index2.js.map +1 -1
- package/lib/components/container/src/aside.vue.d.ts +9 -1
- package/lib/components/container/src/aside2.js +16 -17
- package/lib/components/container/src/aside2.js.map +1 -1
- package/lib/components/container/src/container.vue.d.ts +12 -6
- package/lib/components/container/src/container2.js +16 -16
- package/lib/components/container/src/container2.js.map +1 -1
- package/lib/components/container/src/footer.vue.d.ts +9 -1
- package/lib/components/container/src/footer2.js +16 -15
- package/lib/components/container/src/footer2.js.map +1 -1
- package/lib/components/container/src/header.vue.d.ts +9 -1
- package/lib/components/container/src/header2.js +19 -16
- package/lib/components/container/src/header2.js.map +1 -1
- package/lib/components/container/src/main2.js +13 -13
- package/lib/components/container/src/main2.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/basic-cell-render2.js +5 -2
- package/lib/components/date-picker/src/date-picker-com/basic-cell-render2.js.map +1 -1
- package/lib/components/dropdown/index.d.ts +3 -3
- package/lib/components/dropdown/src/dropdown.d.ts +2 -4
- package/lib/components/dropdown/src/dropdown.vue.d.ts +3 -3
- package/lib/components/form/src/form-label-wrap.js.map +1 -1
- package/lib/components/index.js +1 -1
- package/lib/components/input-number/index.d.ts +6 -3
- package/lib/components/input-number/src/input-number.d.ts +2 -1
- package/lib/components/input-number/src/input-number.vue.d.ts +6 -3
- package/lib/components/input-number/src/input-number3.js +8 -2
- package/lib/components/input-number/src/input-number3.js.map +1 -1
- package/lib/components/input-number/src/input-number4.js +35 -31
- package/lib/components/input-number/src/input-number4.js.map +1 -1
- package/lib/components/pagination/src/components/jumper.vue.d.ts +277 -1
- package/lib/components/pagination/src/components/jumper2.js +32 -42
- package/lib/components/pagination/src/components/jumper2.js.map +1 -1
- package/lib/components/pagination/src/components/next.d.ts +10 -0
- package/lib/components/pagination/src/components/next.js +3 -4
- package/lib/components/pagination/src/components/next.js.map +1 -1
- package/lib/components/pagination/src/components/next.vue.d.ts +51 -24
- package/lib/components/pagination/src/components/next2.js +3 -55
- package/lib/components/pagination/src/components/next2.js.map +1 -1
- package/lib/components/pagination/src/components/next3.js +24 -0
- package/lib/components/pagination/src/components/next3.js.map +1 -0
- package/lib/components/pagination/src/components/next4.js +44 -0
- package/lib/components/pagination/src/components/next4.js.map +1 -0
- package/lib/components/pagination/src/components/pager.d.ts +10 -0
- package/lib/components/pagination/src/components/pager.js +3 -4
- package/lib/components/pagination/src/components/pager.js.map +1 -1
- package/lib/components/pagination/src/components/pager.vue.d.ts +24 -30
- package/lib/components/pagination/src/components/pager2.js +3 -216
- package/lib/components/pagination/src/components/pager2.js.map +1 -1
- package/lib/components/pagination/src/components/pager3.js +25 -0
- package/lib/components/pagination/src/components/pager3.js.map +1 -0
- package/lib/components/pagination/src/components/pager4.js +195 -0
- package/lib/components/pagination/src/components/pager4.js.map +1 -0
- package/lib/components/pagination/src/components/prev.d.ts +12 -0
- package/lib/components/pagination/src/components/prev.js +4 -4
- package/lib/components/pagination/src/components/prev.js.map +1 -1
- package/lib/components/pagination/src/components/prev.vue.d.ts +52 -18
- package/lib/components/pagination/src/components/prev2.js +3 -51
- package/lib/components/pagination/src/components/prev2.js.map +1 -1
- package/lib/components/pagination/src/components/prev3.js +24 -0
- package/lib/components/pagination/src/components/prev3.js.map +1 -0
- package/lib/components/pagination/src/components/prev4.js +44 -0
- package/lib/components/pagination/src/components/prev4.js.map +1 -0
- package/lib/components/pagination/src/components/total.d.ts +7 -0
- package/lib/components/pagination/src/components/total.js +3 -4
- package/lib/components/pagination/src/components/total.js.map +1 -1
- package/lib/components/pagination/src/components/total.vue.d.ts +3 -17
- package/lib/components/pagination/src/components/total2.js +3 -36
- package/lib/components/pagination/src/components/total2.js.map +1 -1
- package/lib/components/pagination/src/components/total3.js +16 -0
- package/lib/components/pagination/src/components/total3.js.map +1 -0
- package/lib/components/pagination/src/components/total4.js +37 -0
- package/lib/components/pagination/src/components/total4.js.map +1 -0
- package/lib/components/pagination/src/pagination2.js +4 -4
- package/lib/components/popconfirm/index.d.ts +10 -10
- package/lib/components/popconfirm/src/popconfirm.vue.d.ts +10 -10
- package/lib/components/radio/index.d.ts +73 -14
- package/lib/components/radio/index.js +1 -1
- package/lib/components/radio/index2.js +2 -2
- package/lib/components/radio/src/radio-button.d.ts +2 -0
- package/lib/components/radio/src/radio-button.vue.d.ts +11 -4
- package/lib/components/radio/src/radio-button3.js +1 -1
- package/lib/components/radio/src/radio-button3.js.map +1 -1
- package/lib/components/radio/src/radio-button4.js +47 -68
- package/lib/components/radio/src/radio-button4.js.map +1 -1
- package/lib/components/radio/src/radio-group.d.ts +3 -0
- package/lib/components/radio/src/radio-group.vue.d.ts +19 -1
- package/lib/components/radio/src/radio-group3.js +5 -1
- package/lib/components/radio/src/radio-group3.js.map +1 -1
- package/lib/components/radio/src/radio-group4.js +23 -59
- package/lib/components/radio/src/radio-group4.js.map +1 -1
- package/lib/components/radio/src/radio.d.ts +6 -4
- package/lib/components/radio/src/radio.js +1 -1
- package/lib/components/radio/src/radio.vue.d.ts +15 -4
- package/lib/components/radio/src/radio3.js +69 -76
- package/lib/components/radio/src/radio3.js.map +1 -1
- package/lib/components/radio/src/radio4.js +69 -69
- package/lib/components/radio/src/radio4.js.map +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-group.d.ts +1 -3
- package/lib/components/roving-focus-group/src/roving-focus-item.vue.d.ts +1 -1
- package/lib/components/row/src/row.js.map +1 -1
- package/lib/components/select-v2/src/select2.js.map +1 -1
- package/lib/components/skeleton/index.d.ts +9 -9
- package/lib/components/skeleton/src/skeleton-item.d.ts +1 -1
- package/lib/components/skeleton/src/skeleton-item.vue.d.ts +3 -3
- package/lib/components/skeleton/src/skeleton.vue.d.ts +3 -3
- package/lib/components/slot/src/only-child.js.map +1 -1
- package/lib/components/table-v2/src/components/auto-resizer.js.map +1 -1
- package/lib/components/table-v2/src/components/cell.js.map +1 -1
- package/lib/components/table-v2/src/components/expand-icon.js.map +1 -1
- package/lib/components/table-v2/src/components/header-cell.js.map +1 -1
- package/lib/components/table-v2/src/components/header-row.js.map +1 -1
- package/lib/components/table-v2/src/components/header.js.map +1 -1
- package/lib/components/table-v2/src/components/row.js.map +1 -1
- package/lib/components/table-v2/src/components/sort-icon.js.map +1 -1
- package/lib/components/table-v2/src/renderers/cell.js.map +1 -1
- package/lib/components/table-v2/src/renderers/empty.js.map +1 -1
- package/lib/components/table-v2/src/renderers/footer.js.map +1 -1
- package/lib/components/table-v2/src/renderers/header-cell.js +1 -1
- package/lib/components/table-v2/src/renderers/header-cell.js.map +1 -1
- package/lib/components/table-v2/src/renderers/header.js.map +1 -1
- package/lib/components/table-v2/src/renderers/left-table.js.map +1 -1
- package/lib/components/table-v2/src/renderers/main-table.js.map +1 -1
- package/lib/components/table-v2/src/renderers/overlay.js.map +1 -1
- package/lib/components/table-v2/src/renderers/right-table.js.map +1 -1
- package/lib/components/table-v2/src/renderers/row.js.map +1 -1
- package/lib/components/table-v2/src/table-grid.js.map +1 -1
- package/lib/components/table-v2/src/table-v2.js.map +1 -1
- package/lib/components/tabs/src/tab-nav.js.map +1 -1
- package/lib/components/tabs/src/tabs.js.map +1 -1
- package/lib/components/teleport/index.js +1 -1
- package/lib/components/teleport/index2.js +2 -2
- package/lib/components/teleport/src/teleport.js +1 -1
- package/lib/components/teleport/src/teleport3.js +18 -43
- package/lib/components/teleport/src/teleport3.js.map +1 -1
- package/lib/components/teleport/src/teleport4.js +43 -18
- package/lib/components/teleport/src/teleport4.js.map +1 -1
- package/lib/components/time-picker/src/common/picker.vue.d.ts +2 -1
- package/lib/components/time-picker/src/common/picker2.js +7 -2
- package/lib/components/time-picker/src/common/picker2.js.map +1 -1
- package/lib/components/timeline/index.d.ts +72 -0
- package/lib/components/timeline/src/timeline-item.vue.d.ts +36 -0
- package/lib/components/timeline/src/timeline-item4.js +63 -67
- package/lib/components/timeline/src/timeline-item4.js.map +1 -1
- package/lib/components/tooltip-v2/src/forward-ref.js.map +1 -1
- package/lib/components/upload/index.d.ts +0 -1
- package/lib/components/upload/src/upload-list.vue.d.ts +0 -1
- package/lib/components/upload/src/upload-list4.js +1 -5
- package/lib/components/upload/src/upload-list4.js.map +1 -1
- package/lib/components/upload/src/upload.vue.d.ts +0 -1
- package/lib/index.js +1 -1
- package/lib/utils/dom/scroll2.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version2.js +1 -1
- package/lib/version2.js.map +1 -1
- package/package.json +8 -8
- package/tags.json +1 -1
- package/theme-chalk/el-button.css +1 -1
- package/theme-chalk/el-checkbox.css +1 -1
- package/theme-chalk/el-date-picker.css +1 -1
- package/theme-chalk/el-form.css +1 -1
- package/theme-chalk/el-radio-button.css +1 -1
- package/theme-chalk/el-radio.css +1 -1
- package/theme-chalk/el-switch.css +1 -1
- package/theme-chalk/el-time-picker.css +1 -1
- package/theme-chalk/el-time-select.css +1 -1
- package/theme-chalk/el-upload.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/button.scss +41 -1
- package/theme-chalk/src/checkbox.scss +14 -3
- package/theme-chalk/src/date-picker/picker.scss +20 -24
- package/theme-chalk/src/form.scss +1 -0
- package/theme-chalk/src/main.scss +0 -1
- package/theme-chalk/src/radio-button.scss +15 -5
- package/theme-chalk/src/radio.scss +9 -1
- package/theme-chalk/src/switch.scss +8 -0
- package/theme-chalk/src/upload.scss +6 -4
- package/web-types.json +1 -1
|
@@ -1,79 +1,75 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, normalizeStyle, createBlock, withCtx, resolveDynamicComponent, createCommentVNode, renderSlot, toDisplayString } from 'vue';
|
|
2
2
|
import { ElIcon } from '../../icon/index2.mjs';
|
|
3
3
|
import '../../../hooks/index2.mjs';
|
|
4
4
|
import { timelineItemProps } from './timeline-item3.mjs';
|
|
5
5
|
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
6
6
|
import { useNamespace } from '../../../hooks/use-namespace/index2.mjs';
|
|
7
7
|
|
|
8
|
-
const
|
|
9
|
-
name: "ElTimelineItem"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
const __default__ = {
|
|
9
|
+
name: "ElTimelineItem"
|
|
10
|
+
};
|
|
11
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
|
+
...__default__,
|
|
13
13
|
props: timelineItemProps,
|
|
14
|
-
setup() {
|
|
14
|
+
setup(__props) {
|
|
15
15
|
const ns = useNamespace("timeline-item");
|
|
16
|
-
return {
|
|
17
|
-
|
|
16
|
+
return (_ctx, _cache) => {
|
|
17
|
+
return openBlock(), createElementBlock("li", {
|
|
18
|
+
class: normalizeClass([unref(ns).b(), { [unref(ns).e("center")]: _ctx.center }])
|
|
19
|
+
}, [
|
|
20
|
+
createElementVNode("div", {
|
|
21
|
+
class: normalizeClass(unref(ns).e("tail"))
|
|
22
|
+
}, null, 2),
|
|
23
|
+
!_ctx.$slots.dot ? (openBlock(), createElementBlock("div", {
|
|
24
|
+
key: 0,
|
|
25
|
+
class: normalizeClass([
|
|
26
|
+
unref(ns).e("node"),
|
|
27
|
+
unref(ns).em("node", _ctx.size || ""),
|
|
28
|
+
unref(ns).em("node", _ctx.type || ""),
|
|
29
|
+
unref(ns).is("hollow", _ctx.hollow)
|
|
30
|
+
]),
|
|
31
|
+
style: normalizeStyle({
|
|
32
|
+
backgroundColor: _ctx.color
|
|
33
|
+
})
|
|
34
|
+
}, [
|
|
35
|
+
_ctx.icon ? (openBlock(), createBlock(unref(ElIcon), {
|
|
36
|
+
key: 0,
|
|
37
|
+
class: normalizeClass(unref(ns).e("icon"))
|
|
38
|
+
}, {
|
|
39
|
+
default: withCtx(() => [
|
|
40
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.icon)))
|
|
41
|
+
]),
|
|
42
|
+
_: 1
|
|
43
|
+
}, 8, ["class"])) : createCommentVNode("v-if", true)
|
|
44
|
+
], 6)) : createCommentVNode("v-if", true),
|
|
45
|
+
_ctx.$slots.dot ? (openBlock(), createElementBlock("div", {
|
|
46
|
+
key: 1,
|
|
47
|
+
class: normalizeClass(unref(ns).e("dot"))
|
|
48
|
+
}, [
|
|
49
|
+
renderSlot(_ctx.$slots, "dot")
|
|
50
|
+
], 2)) : createCommentVNode("v-if", true),
|
|
51
|
+
createElementVNode("div", {
|
|
52
|
+
class: normalizeClass(unref(ns).e("wrapper"))
|
|
53
|
+
}, [
|
|
54
|
+
!_ctx.hideTimestamp && _ctx.placement === "top" ? (openBlock(), createElementBlock("div", {
|
|
55
|
+
key: 0,
|
|
56
|
+
class: normalizeClass([unref(ns).e("timestamp"), unref(ns).is("top")])
|
|
57
|
+
}, toDisplayString(_ctx.timestamp), 3)) : createCommentVNode("v-if", true),
|
|
58
|
+
createElementVNode("div", {
|
|
59
|
+
class: normalizeClass(unref(ns).e("content"))
|
|
60
|
+
}, [
|
|
61
|
+
renderSlot(_ctx.$slots, "default")
|
|
62
|
+
], 2),
|
|
63
|
+
!_ctx.hideTimestamp && _ctx.placement === "bottom" ? (openBlock(), createElementBlock("div", {
|
|
64
|
+
key: 1,
|
|
65
|
+
class: normalizeClass([unref(ns).e("timestamp"), unref(ns).is("bottom")])
|
|
66
|
+
}, toDisplayString(_ctx.timestamp), 3)) : createCommentVNode("v-if", true)
|
|
67
|
+
], 2)
|
|
68
|
+
], 2);
|
|
18
69
|
};
|
|
19
70
|
}
|
|
20
71
|
});
|
|
21
|
-
|
|
22
|
-
const _component_el_icon = resolveComponent("el-icon");
|
|
23
|
-
return openBlock(), createElementBlock("li", {
|
|
24
|
-
class: normalizeClass([_ctx.ns.b(), { [_ctx.ns.e("center")]: _ctx.center }])
|
|
25
|
-
}, [
|
|
26
|
-
createElementVNode("div", {
|
|
27
|
-
class: normalizeClass(_ctx.ns.e("tail"))
|
|
28
|
-
}, null, 2),
|
|
29
|
-
!_ctx.$slots.dot ? (openBlock(), createElementBlock("div", {
|
|
30
|
-
key: 0,
|
|
31
|
-
class: normalizeClass([
|
|
32
|
-
_ctx.ns.e("node"),
|
|
33
|
-
_ctx.ns.em("node", _ctx.size || ""),
|
|
34
|
-
_ctx.ns.em("node", _ctx.type || ""),
|
|
35
|
-
_ctx.ns.is("hollow", _ctx.hollow)
|
|
36
|
-
]),
|
|
37
|
-
style: normalizeStyle({
|
|
38
|
-
backgroundColor: _ctx.color
|
|
39
|
-
})
|
|
40
|
-
}, [
|
|
41
|
-
_ctx.icon ? (openBlock(), createBlock(_component_el_icon, {
|
|
42
|
-
key: 0,
|
|
43
|
-
class: normalizeClass(_ctx.ns.e("icon"))
|
|
44
|
-
}, {
|
|
45
|
-
default: withCtx(() => [
|
|
46
|
-
(openBlock(), createBlock(resolveDynamicComponent(_ctx.icon)))
|
|
47
|
-
]),
|
|
48
|
-
_: 1
|
|
49
|
-
}, 8, ["class"])) : createCommentVNode("v-if", true)
|
|
50
|
-
], 6)) : createCommentVNode("v-if", true),
|
|
51
|
-
_ctx.$slots.dot ? (openBlock(), createElementBlock("div", {
|
|
52
|
-
key: 1,
|
|
53
|
-
class: normalizeClass(_ctx.ns.e("dot"))
|
|
54
|
-
}, [
|
|
55
|
-
renderSlot(_ctx.$slots, "dot")
|
|
56
|
-
], 2)) : createCommentVNode("v-if", true),
|
|
57
|
-
createElementVNode("div", {
|
|
58
|
-
class: normalizeClass(_ctx.ns.e("wrapper"))
|
|
59
|
-
}, [
|
|
60
|
-
!_ctx.hideTimestamp && _ctx.placement === "top" ? (openBlock(), createElementBlock("div", {
|
|
61
|
-
key: 0,
|
|
62
|
-
class: normalizeClass([_ctx.ns.e("timestamp"), _ctx.ns.is("top")])
|
|
63
|
-
}, toDisplayString(_ctx.timestamp), 3)) : createCommentVNode("v-if", true),
|
|
64
|
-
createElementVNode("div", {
|
|
65
|
-
class: normalizeClass(_ctx.ns.e("content"))
|
|
66
|
-
}, [
|
|
67
|
-
renderSlot(_ctx.$slots, "default")
|
|
68
|
-
], 2),
|
|
69
|
-
!_ctx.hideTimestamp && _ctx.placement === "bottom" ? (openBlock(), createElementBlock("div", {
|
|
70
|
-
key: 1,
|
|
71
|
-
class: normalizeClass([_ctx.ns.e("timestamp"), _ctx.ns.is("bottom")])
|
|
72
|
-
}, toDisplayString(_ctx.timestamp), 3)) : createCommentVNode("v-if", true)
|
|
73
|
-
], 2)
|
|
74
|
-
], 2);
|
|
75
|
-
}
|
|
76
|
-
var TimelineItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/timeline/src/timeline-item.vue"]]);
|
|
72
|
+
var TimelineItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/timeline/src/timeline-item.vue"]]);
|
|
77
73
|
|
|
78
74
|
export { TimelineItem as default };
|
|
79
75
|
//# sourceMappingURL=timeline-item4.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timeline-item4.mjs","sources":["../../../../../../packages/components/timeline/src/timeline-item.vue"],"sourcesContent":["<template>\n <li :class=\"[ns.b(), { [ns.e('center')]: center }]\">\n <div :class=\"ns.e('tail')\" />\n <div\n v-if=\"!$slots.dot\"\n :class=\"[\n ns.e('node'),\n ns.em('node', size || ''),\n ns.em('node', type || ''),\n ns.is('hollow', hollow),\n ]\"\n :style=\"{\n backgroundColor: color,\n }\"\n >\n <el-icon v-if=\"icon\" :class=\"ns.e('icon')\">\n <component :is=\"icon\" />\n </el-icon>\n </div>\n <div v-if=\"$slots.dot\" :class=\"ns.e('dot')\">\n <slot name=\"dot\" />\n </div>\n\n <div :class=\"ns.e('wrapper')\">\n <div\n v-if=\"!hideTimestamp && placement === 'top'\"\n :class=\"[ns.e('timestamp'), ns.is('top')]\"\n >\n {{ timestamp }}\n </div>\n\n <div :class=\"ns.e('content')\">\n <slot />\n </div>\n\n <div\n v-if=\"!hideTimestamp && placement === 'bottom'\"\n :class=\"[ns.e('timestamp'), ns.is('bottom')]\"\n >\n {{ timestamp }}\n </div>\n </div>\n </li>\n</template>\n\n<script lang=\"ts\">\nimport {
|
|
1
|
+
{"version":3,"file":"timeline-item4.mjs","sources":["../../../../../../packages/components/timeline/src/timeline-item.vue"],"sourcesContent":["<template>\n <li :class=\"[ns.b(), { [ns.e('center')]: center }]\">\n <div :class=\"ns.e('tail')\" />\n <div\n v-if=\"!$slots.dot\"\n :class=\"[\n ns.e('node'),\n ns.em('node', size || ''),\n ns.em('node', type || ''),\n ns.is('hollow', hollow),\n ]\"\n :style=\"{\n backgroundColor: color,\n }\"\n >\n <el-icon v-if=\"icon\" :class=\"ns.e('icon')\">\n <component :is=\"icon\" />\n </el-icon>\n </div>\n <div v-if=\"$slots.dot\" :class=\"ns.e('dot')\">\n <slot name=\"dot\" />\n </div>\n\n <div :class=\"ns.e('wrapper')\">\n <div\n v-if=\"!hideTimestamp && placement === 'top'\"\n :class=\"[ns.e('timestamp'), ns.is('top')]\"\n >\n {{ timestamp }}\n </div>\n\n <div :class=\"ns.e('content')\">\n <slot />\n </div>\n\n <div\n v-if=\"!hideTimestamp && placement === 'bottom'\"\n :class=\"[ns.e('timestamp'), ns.is('bottom')]\"\n >\n {{ timestamp }}\n </div>\n </div>\n </li>\n</template>\n\n<script lang=\"ts\" setup>\nimport { ElIcon } from '@element-plus/components/icon'\nimport { useNamespace } from '@element-plus/hooks'\nimport { timelineItemProps } from './timeline-item'\n\ndefineOptions({\n name: 'ElTimelineItem',\n})\n\ndefineProps(timelineItemProps)\n\nconst ns = useNamespace('timeline-item')\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAwDA,IAAA,MAAA,EAAA,GAAA,aAAA,eAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forward-ref.mjs","sources":["../../../../../../packages/components/tooltip-v2/src/forward-ref.tsx"],"sourcesContent":["import { Fragment, defineComponent, ref } from 'vue'\nimport {\n buildProps,\n composeRefs,\n definePropType,\n ensureOnlyChild,\n} from '@element-plus/utils'\n\nimport type { ExtractPropTypes, VNodeArrayChildren } from 'vue'\n\nexport type RefSetter = (el: HTMLElement | null) => void\n\nexport const forwardRefProps = buildProps({\n setRef: { type: definePropType<RefSetter>(Function), required: true },\n onlyChild: Boolean,\n} as const)\n\nexport type ForwardRefProps = ExtractPropTypes<typeof forwardRefProps>\n\n// TODO: consider make this component a reusable component without the only child feature.\nexport default defineComponent({\n props: forwardRefProps,\n setup(props, { slots }) {\n const fragmentRef = ref()\n const setRef = composeRefs(fragmentRef, (el) => {\n // vue fragments is represented as a text element.\n // The first element sibling should be the first element children of fragment.\n // This is how we get the element.\n if (el) {\n props.setRef(\n (el as HTMLElement).nextElementSibling as HTMLElement | null\n )\n } else {\n props.setRef(null)\n }\n })\n return () => {\n const [firstChild] = slots.default?.() || []\n const child = props.onlyChild\n ? ensureOnlyChild(firstChild.children as VNodeArrayChildren)\n : firstChild.children\n // Dunno why the ref for jsx complains about the typing issue which was not\n // in template\n return <Fragment ref={setRef as any}>{child}</Fragment>\n }\n },\n})\n"],"names":["forwardRefProps","buildProps","setRef","type","definePropType","Function","required","onlyChild","Boolean","props","
|
|
1
|
+
{"version":3,"file":"forward-ref.mjs","sources":["../../../../../../packages/components/tooltip-v2/src/forward-ref.tsx"],"sourcesContent":["import { Fragment, defineComponent, ref } from 'vue'\nimport {\n buildProps,\n composeRefs,\n definePropType,\n ensureOnlyChild,\n} from '@element-plus/utils'\n\nimport type { ExtractPropTypes, VNodeArrayChildren } from 'vue'\n\nexport type RefSetter = (el: HTMLElement | null) => void\n\nexport const forwardRefProps = buildProps({\n setRef: { type: definePropType<RefSetter>(Function), required: true },\n onlyChild: Boolean,\n} as const)\n\nexport type ForwardRefProps = ExtractPropTypes<typeof forwardRefProps>\n\n// TODO: consider make this component a reusable component without the only child feature.\nexport default defineComponent({\n props: forwardRefProps,\n setup(props, { slots }) {\n const fragmentRef = ref()\n const setRef = composeRefs(fragmentRef, (el) => {\n // vue fragments is represented as a text element.\n // The first element sibling should be the first element children of fragment.\n // This is how we get the element.\n if (el) {\n props.setRef(\n (el as HTMLElement).nextElementSibling as HTMLElement | null\n )\n } else {\n props.setRef(null)\n }\n })\n return () => {\n const [firstChild] = slots.default?.() || []\n const child = props.onlyChild\n ? ensureOnlyChild(firstChild.children as VNodeArrayChildren)\n : firstChild.children\n // Dunno why the ref for jsx complains about the typing issue which was not\n // in template\n return <Fragment ref={setRef as any}>{child}</Fragment>\n }\n },\n})\n"],"names":["forwardRefProps","buildProps","setRef","type","definePropType","Function","required","onlyChild","Boolean","props","slots","fragmentRef","composeRefs","el","_createVNode","_Fragment"],"mappings":";;;;;;AAYaA,MAAAA,eAAe,GAAGC,UAAU,CAAC;AACxCC,EAAAA,MAAM,EAAE;AAAEC,IAAAA,IAAI,EAAEC,cAAc,CAAYC,QAAZ,CAAtB;AAA6CC,IAAAA,QAAQ,EAAE,IAAA;GADvB;AAExCC,EAAAA,SAAS,EAAEC,OAAAA;AAF6B,CAAD,EAAlC;AAOP,iBAAA,eAAA,CAAA;AACA,EAAA,KAAA,EAAA;AACEC,EAAAA,KAAK,MADwB,EAAA;;GAExB,EAAA;AAAUC,IAAAA,MAAAA,WAAAA,GAAAA,GAAAA,EAAAA,CAAAA;AAAF,IAAW,MAAA,MAAA,GAAA,WAAA,CAAA,WAAA,EAAA,CAAA,EAAA,KAAA;MAChBC,IAAAA,EAAAA,EAAAA;AACN,QAAA,YAAeC,CAAAA,EAAAA,CAAAA,kBAAW,CAAA,CAAeC;AACvC,OAAA,MAAA;AACA,QAAA,KAAA,CAAA,MAAA,CAAA,IAAA,CAAA,CAAA;AACA,OAAA;AACA,KAAA,CAAA,CAAA;AACEJ,IAAAA,OAAAA,MAAMP;AAGP,MAAA,IAAM,EAAA,CAAA;YACA,CAAA,UAAL,CAAA,GAAA,CAAA,CAAA,EAAA,GAAA,KAAA,CAAA,OAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,IAAA,CAAA,KAAA,CAAA,KAAA,EAAA,CAAA;AACD,MAAA,MAAA,KAAA,GAAA,KAAA,CAAA,SAAA,GAAA,eAAA,CAAA,UAAA,CAAA,QAAA,CAAA,GAAA,UAAA,CAAA,QAAA,CAAA;AACF,MAXD,OAAAY,WAAA,CAAAC,QAAA,EAAA;AAYA,QAAA,KAAa,EAAA,MAAA;AACX,OAAA,EAAA,CAAA,KAAM,CAAA,CAAA,CAAA;AACN,KAAA,CAAA;AAIA,GAAA;;;;;"}
|
|
@@ -531,7 +531,6 @@ export declare const ElUpload: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
531
531
|
};
|
|
532
532
|
focusing: import("vue").Ref<boolean>;
|
|
533
533
|
handleClick: (file: import("./src/upload").UploadFile) => void;
|
|
534
|
-
onFileClicked: (e: Event) => void;
|
|
535
534
|
handleRemove: (file: import("./src/upload").UploadFile) => void;
|
|
536
535
|
ElIcon: import("element-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
537
536
|
readonly size: import("element-plus/es/utils").BuildPropReturn<import("element-plus/es/utils").PropWrapper<string | number>, unknown, unknown, unknown, unknown>;
|
|
@@ -71,7 +71,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
71
71
|
};
|
|
72
72
|
focusing: import("vue").Ref<boolean>;
|
|
73
73
|
handleClick: (file: UploadFile) => void;
|
|
74
|
-
onFileClicked: (e: Event) => void;
|
|
75
74
|
handleRemove: (file: UploadFile) => void;
|
|
76
75
|
ElIcon: import("../../../utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
77
76
|
readonly size: import("../../../utils").BuildPropReturn<import("../../../utils").PropWrapper<string | number>, unknown, unknown, unknown, unknown>;
|
|
@@ -30,10 +30,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
30
30
|
const handleClick = (file) => {
|
|
31
31
|
props.handlePreview(file);
|
|
32
32
|
};
|
|
33
|
-
const onFileClicked = (e) => {
|
|
34
|
-
;
|
|
35
|
-
e.target.focus();
|
|
36
|
-
};
|
|
37
33
|
const handleRemove = (file) => {
|
|
38
34
|
emit("remove", file);
|
|
39
35
|
};
|
|
@@ -60,7 +56,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
60
56
|
onKeydown: withKeys(($event) => !_ctx.disabled && handleRemove(file), ["delete"]),
|
|
61
57
|
onFocus: _cache[0] || (_cache[0] = ($event) => focusing.value = true),
|
|
62
58
|
onBlur: _cache[1] || (_cache[1] = ($event) => focusing.value = false),
|
|
63
|
-
onClick:
|
|
59
|
+
onClick: _cache[2] || (_cache[2] = ($event) => focusing.value = false)
|
|
64
60
|
}, [
|
|
65
61
|
renderSlot(_ctx.$slots, "default", { file }, () => [
|
|
66
62
|
_ctx.listType === "picture" || file.status !== "uploading" && _ctx.listType === "picture-card" ? (openBlock(), createElementBlock("img", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload-list4.mjs","sources":["../../../../../../packages/components/upload/src/upload-list.vue"],"sourcesContent":["<template>\n <transition-group\n tag=\"ul\"\n :class=\"[\n nsUpload.b('list'),\n nsUpload.bm('list', listType),\n nsUpload.is('disabled', disabled),\n ]\"\n :name=\"nsList.b()\"\n >\n <li\n v-for=\"file in files\"\n :key=\"file.uid || file.name\"\n :class=\"[\n nsUpload.be('list', 'item'),\n nsUpload.is(file.status),\n { focusing },\n ]\"\n tabindex=\"0\"\n @keydown.delete=\"!disabled && handleRemove(file)\"\n @focus=\"focusing = true\"\n @blur=\"focusing = false\"\n @click=\"
|
|
1
|
+
{"version":3,"file":"upload-list4.mjs","sources":["../../../../../../packages/components/upload/src/upload-list.vue"],"sourcesContent":["<template>\n <transition-group\n tag=\"ul\"\n :class=\"[\n nsUpload.b('list'),\n nsUpload.bm('list', listType),\n nsUpload.is('disabled', disabled),\n ]\"\n :name=\"nsList.b()\"\n >\n <li\n v-for=\"file in files\"\n :key=\"file.uid || file.name\"\n :class=\"[\n nsUpload.be('list', 'item'),\n nsUpload.is(file.status),\n { focusing },\n ]\"\n tabindex=\"0\"\n @keydown.delete=\"!disabled && handleRemove(file)\"\n @focus=\"focusing = true\"\n @blur=\"focusing = false\"\n @click=\"focusing = false\"\n >\n <slot :file=\"file\">\n <img\n v-if=\"\n listType === 'picture' ||\n (file.status !== 'uploading' && listType === 'picture-card')\n \"\n :class=\"nsUpload.be('list', 'item-thumbnail')\"\n :src=\"file.url\"\n alt=\"\"\n />\n <div\n v-if=\"\n listType !== 'picture' &&\n (file.status === 'uploading' || listType !== 'picture-card')\n \"\n :class=\"nsUpload.be('list', 'item-info')\"\n >\n <a\n :class=\"nsUpload.be('list', 'item-name')\"\n @click.prevent=\"handleClick(file)\"\n >\n <el-icon :class=\"nsIcon.m('document')\"><Document /></el-icon>\n <span :class=\"nsUpload.be('list', 'item-file-name')\">\n {{ file.name }}\n </span>\n </a>\n <el-progress\n v-if=\"file.status === 'uploading'\"\n :type=\"listType === 'picture-card' ? 'circle' : 'line'\"\n :stroke-width=\"listType === 'picture-card' ? 6 : 2\"\n :percentage=\"Number(file.percentage)\"\n :style=\"listType === 'picture-card' ? '' : 'margin-top: 0.5rem'\"\n />\n </div>\n\n <label :class=\"nsUpload.be('list', 'item-status-label')\">\n <el-icon\n v-if=\"listType === 'text'\"\n :class=\"[nsIcon.m('upload-success'), nsIcon.m('circle-check')]\"\n >\n <circle-check />\n </el-icon>\n <el-icon\n v-else-if=\"['picture-card', 'picture'].includes(listType)\"\n :class=\"[nsIcon.m('upload-success'), nsIcon.m('check')]\"\n >\n <Check />\n </el-icon>\n </label>\n <el-icon\n v-if=\"!disabled\"\n :class=\"nsIcon.m('close')\"\n @click=\"handleRemove(file)\"\n >\n <Close />\n </el-icon>\n <!-- Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn-->\n <!-- This is a bug which needs to be fixed -->\n <!-- TODO: Fix the incorrect navigation interaction -->\n <i v-if=\"!disabled\" :class=\"nsIcon.m('close-tip')\">{{\n t('el.upload.deleteTip')\n }}</i>\n <span\n v-if=\"listType === 'picture-card'\"\n :class=\"nsUpload.be('list', 'item-actions')\"\n >\n <span\n :class=\"nsUpload.be('list', 'item-preview')\"\n @click=\"handlePreview(file)\"\n >\n <el-icon :class=\"nsIcon.m('zoom-in')\"><zoom-in /></el-icon>\n </span>\n <span\n v-if=\"!disabled\"\n :class=\"nsUpload.be('list', 'item-delete')\"\n @click=\"handleRemove(file)\"\n >\n <el-icon :class=\"nsIcon.m('delete')\"><Delete /></el-icon>\n </span>\n </span>\n </slot>\n </li>\n <slot name=\"append\" />\n </transition-group>\n</template>\n<script lang=\"ts\" setup>\nimport { ref } from 'vue'\nimport { ElIcon } from '@element-plus/components/icon'\nimport {\n Check,\n CircleCheck,\n Close,\n Delete,\n Document,\n ZoomIn,\n} from '@element-plus/icons-vue'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport ElProgress from '@element-plus/components/progress'\n\nimport { uploadListEmits, uploadListProps } from './upload-list'\nimport type { UploadFile } from './upload'\n\ndefineOptions({\n name: 'ElUploadList',\n})\n\nconst props = defineProps(uploadListProps)\nconst emit = defineEmits(uploadListEmits)\n\nconst { t } = useLocale()\nconst nsUpload = useNamespace('upload')\nconst nsIcon = useNamespace('icon')\nconst nsList = useNamespace('list')\n\nconst focusing = ref(false)\n\nconst handleClick = (file: UploadFile) => {\n props.handlePreview(file)\n}\n\nconst handleRemove = (file: UploadFile) => {\n emit('remove', file)\n}\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAqIA,IAAA,MAAA,EAAA,MAAA,SAAA,EAAA,CAAA;AACA,IAAA,MAAA,QAAA,GAAA,aAAA,QAAA,CAAA,CAAA;AACA,IAAA,MAAA,MAAA,GAAA,aAAA,MAAA,CAAA,CAAA;AACA,IAAA,MAAA,MAAA,GAAA,aAAA,MAAA,CAAA,CAAA;AAEA,IAAA,MAAA,QAAA,GAAA,IAAA,KAAA,CAAA,CAAA;AAEA,IAAA,MAAA,WAAA,GAAA,CAAA,IAAA,KAAA;AACA,MAAA,KAAA,CAAA,cAAA,IAAA,CAAA,CAAA;AAAA,KACA,CAAA;AAEA,IAAA,MAAA,YAAA,GAAA,CAAA,IAAA,KAAA;AACA,MAAA,IAAA,CAAA,UAAA,IAAA,CAAA,CAAA;AAAA,KACA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -532,7 +532,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
532
532
|
};
|
|
533
533
|
focusing: import("vue").Ref<boolean>;
|
|
534
534
|
handleClick: (file: import("./upload").UploadFile) => void;
|
|
535
|
-
onFileClicked: (e: Event) => void;
|
|
536
535
|
handleRemove: (file: import("./upload").UploadFile) => void;
|
|
537
536
|
ElIcon: import("../../../utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
538
537
|
readonly size: import("../../../utils").BuildPropReturn<import("../../../utils").PropWrapper<string | number>, unknown, unknown, unknown, unknown>;
|
package/es/index.mjs
CHANGED
|
@@ -95,7 +95,7 @@ export { default as ElPopperContent } from './components/popper/src/content4.mjs
|
|
|
95
95
|
export { ElPopper } from './components/popper/index2.mjs';
|
|
96
96
|
export { progressProps } from './components/progress/src/progress3.mjs';
|
|
97
97
|
export { ElProgress } from './components/progress/index2.mjs';
|
|
98
|
-
export { radioEmits, radioProps, radioPropsBase, useRadio } from './components/radio/src/
|
|
98
|
+
export { radioEmits, radioProps, radioPropsBase, useRadio } from './components/radio/src/radio3.mjs';
|
|
99
99
|
export { radioGroupEmits, radioGroupProps } from './components/radio/src/radio-group3.mjs';
|
|
100
100
|
export { radioButtonProps } from './components/radio/src/radio-button3.mjs';
|
|
101
101
|
export { ElRadio, ElRadioButton, ElRadioGroup } from './components/radio/index2.mjs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scroll2.mjs","sources":["../../../../../packages/utils/dom/scroll.ts"],"sourcesContent":["import { isClient } from '@vueuse/core'\nimport { getStyle } from './style'\n\nexport const isScroll = (el: HTMLElement, isVertical?: boolean): boolean => {\n if (!isClient) return false\n\n const key = (\n {\n undefined: 'overflow',\n true: 'overflow-y',\n false: 'overflow-x',\n } as const\n )[String(isVertical)]!\n const overflow = getStyle(el, key)\n return ['scroll', 'auto', 'overlay'].some((s) => overflow.includes(s))\n}\n\nexport const getScrollContainer = (\n el: HTMLElement,\n isVertical?: boolean\n): Window | HTMLElement | undefined => {\n if (!isClient) return\n\n let parent: HTMLElement = el\n while (parent) {\n if ([window, document, document.documentElement].includes(parent))\n return window\n\n if (isScroll(parent, isVertical)) return parent\n\n parent = parent.parentNode as HTMLElement\n }\n\n return parent\n}\n\nlet scrollBarWidth: number\nexport const getScrollBarWidth = (): number => {\n if (!isClient) return 0\n if (scrollBarWidth !== undefined) return scrollBarWidth\n\n const outer = document.createElement('div')\n outer.className = 'el-scrollbar__wrap'\n outer.style.visibility = 'hidden'\n outer.style.width = '100px'\n outer.style.position = 'absolute'\n outer.style.top = '-9999px'\n document.body.appendChild(outer)\n\n const widthNoScroll = outer.offsetWidth\n outer.style.overflow = 'scroll'\n\n const inner = document.createElement('div')\n inner.style.width = '100%'\n outer.appendChild(inner)\n\n const widthWithScroll = inner.offsetWidth\n outer.parentNode?.removeChild(outer)\n scrollBarWidth = widthNoScroll - widthWithScroll\n\n return scrollBarWidth\n}\n\n/**\n * Scroll with in the container element, positioning the **selected** element at the top\n * of the container\n */\nexport function scrollIntoView(\n container: HTMLElement,\n selected: HTMLElement\n): void {\n if (!isClient) return\n\n if (!selected) {\n container.scrollTop = 0\n return\n }\n\n const offsetParents: HTMLElement[] = []\n let pointer = selected.offsetParent\n while (\n pointer !== null &&\n container !== pointer &&\n container.contains(pointer)\n ) {\n offsetParents.push(pointer as HTMLElement)\n pointer = (pointer as HTMLElement).offsetParent\n }\n const top =\n selected.offsetTop +\n offsetParents.reduce((prev, curr) => prev + curr.offsetTop, 0)\n const bottom = top + selected.offsetHeight\n const viewRectTop = container.scrollTop\n const viewRectBottom = viewRectTop + container.clientHeight\n\n if (top < viewRectTop) {\n container.scrollTop = top\n } else if (bottom > viewRectBottom) {\n container.scrollTop = bottom - container.clientHeight\n }\n}\n"],"names":[],"mappings":";;;AAEY,MAAC,QAAQ,GAAG,CAAC,EAAE,EAAE,UAAU,KAAK;AAC5C,EAAE,IAAI,CAAC,QAAQ;AACf,IAAI,OAAO,KAAK,CAAC;AACjB,EAAE,MAAM,GAAG,GAAG;AACd,IAAI,SAAS,EAAE,UAAU;AACzB,IAAI,IAAI,EAAE,YAAY;AACtB,IAAI,KAAK,EAAE,YAAY;AACvB,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC;AACxB,EAAE,MAAM,QAAQ,GAAG,QAAQ,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC;AACrC,EAAE,OAAO,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;AACzE,EAAE;AACU,MAAC,kBAAkB,GAAG,CAAC,EAAE,EAAE,UAAU,KAAK;AACtD,EAAE,IAAI,CAAC,QAAQ;AACf,IAAI,OAAO;AACX,EAAE,I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G,WAAW,GAAG,SAAS,CAAC,YAAY,CAAC;AAC9D,EAAE,IAAI,GAAG,GAAG,WAAW,EAAE;AACzB,IAAI,SAAS,CAAC,SAAS,GAAG,GAAG,CAAC;AAC9B,GAAG,MAAM,IAAI,MAAM,GAAG,cAAc,EAAE;AACtC,IAAI,SAAS,CAAC,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC,YAAY,CAAC;AAC1D,GAAG;AACH;;;;"}
|
|
1
|
+
{"version":3,"file":"scroll2.mjs","sources":["../../../../../packages/utils/dom/scroll.ts"],"sourcesContent":["import { isClient } from '@vueuse/core'\nimport { getStyle } from './style'\n\nexport const isScroll = (el: HTMLElement, isVertical?: boolean): boolean => {\n if (!isClient) return false\n\n const key = (\n {\n undefined: 'overflow',\n true: 'overflow-y',\n false: 'overflow-x',\n } as const\n )[String(isVertical)]!\n const overflow = getStyle(el, key)\n return ['scroll', 'auto', 'overlay'].some((s) => overflow.includes(s))\n}\n\nexport const getScrollContainer = (\n el: HTMLElement,\n isVertical?: boolean\n): Window | HTMLElement | undefined => {\n if (!isClient) return\n\n let parent: HTMLElement = el\n while (parent) {\n if ([window, document, document.documentElement].includes(parent))\n return window\n\n if (isScroll(parent, isVertical)) return parent\n\n parent = parent.parentNode as HTMLElement\n }\n\n return parent\n}\n\nlet scrollBarWidth: number\nexport const getScrollBarWidth = (): number => {\n if (!isClient) return 0\n if (scrollBarWidth !== undefined) return scrollBarWidth\n\n const outer = document.createElement('div')\n // Cannot access 'propKey' before initialization\n // need to be dynamic namespace\n outer.className = 'el-scrollbar__wrap'\n outer.style.visibility = 'hidden'\n outer.style.width = '100px'\n outer.style.position = 'absolute'\n outer.style.top = '-9999px'\n document.body.appendChild(outer)\n\n const widthNoScroll = outer.offsetWidth\n outer.style.overflow = 'scroll'\n\n const inner = document.createElement('div')\n inner.style.width = '100%'\n outer.appendChild(inner)\n\n const widthWithScroll = inner.offsetWidth\n outer.parentNode?.removeChild(outer)\n scrollBarWidth = widthNoScroll - widthWithScroll\n\n return scrollBarWidth\n}\n\n/**\n * Scroll with in the container element, positioning the **selected** element at the top\n * of the container\n */\nexport function scrollIntoView(\n container: HTMLElement,\n selected: HTMLElement\n): void {\n if (!isClient) return\n\n if (!selected) {\n container.scrollTop = 0\n return\n }\n\n const offsetParents: HTMLElement[] = []\n let pointer = selected.offsetParent\n while (\n pointer !== null &&\n container !== pointer &&\n container.contains(pointer)\n ) {\n offsetParents.push(pointer as HTMLElement)\n pointer = (pointer as HTMLElement).offsetParent\n }\n const top =\n selected.offsetTop +\n offsetParents.reduce((prev, curr) => prev + curr.offsetTop, 0)\n const bottom = top + selected.offsetHeight\n const viewRectTop = container.scrollTop\n const viewRectBottom = viewRectTop + container.clientHeight\n\n if (top < viewRectTop) {\n container.scrollTop = top\n } else if (bottom > viewRectBottom) {\n container.scrollTop = bottom - container.clientHeight\n }\n}\n"],"names":[],"mappings":";;;AAEY,MAAC,QAAQ,GAAG,CAAC,EAAE,EAAE,UAAU,KAAK;AAC5C,EAAE,IAAI,CAAC,QAAQ;AACf,IAAI,OAAO,KAAK,CAAC;AACjB,EAAE,MAAM,GAAG,GAAG;AACd,IAAI,SAAS,EAAE,UAAU;AACzB,IAAI,IAAI,EAAE,YAAY;AACtB,IAAI,KAAK,EAAE,YAAY;AACvB,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC;AACxB,EAAE,MAAM,QAAQ,GAAG,QAAQ,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC;AACrC,EAAE,OAAO,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;AACzE,EAAE;AACU,MAAC,kBAAkB,GAAG,CAAC,EAAE,EAAE,UAAU,KAAK;AACtD,EAAE,IAAI,CAAC,QAAQ;AACf,IAAI,OAAO;AACX,EAAE,IAAI,MAAM,GAAG,EAAE,CAAC;AAClB,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AC;AAC9D,EAAE,IAAI,GAAG,GAAG,WAAW,EAAE;AACzB,IAAI,SAAS,CAAC,SAAS,GAAG,GAAG,CAAC;AAC9B,GAAG,MAAM,IAAI,MAAM,GAAG,cAAc,EAAE;AACtC,IAAI,SAAS,CAAC,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC,YAAY,CAAC;AAC1D,GAAG;AACH;;;;"}
|
package/es/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.0.
|
|
1
|
+
export declare const version = "0.0.20220519";
|
package/es/version2.mjs
CHANGED
package/es/version2.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version2.mjs","sources":["../../../packages/element-plus/version.ts"],"sourcesContent":["export const version = '0.0.
|
|
1
|
+
{"version":3,"file":"version2.mjs","sources":["../../../packages/element-plus/version.ts"],"sourcesContent":["export const version = '0.0.20220519'\n"],"names":[],"mappings":"AAAY,MAAC,OAAO,GAAG;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const ElButton: import("element-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
2
2
|
readonly size: import("element-plus/es/utils").BuildPropReturn<StringConstructor, never, false, "" | "default" | "small" | "large", never>;
|
|
3
3
|
readonly disabled: BooleanConstructor;
|
|
4
|
-
readonly type: import("element-plus/es/utils").BuildPropReturn<StringConstructor, "", unknown, "" | "default" | "primary" | "success" | "warning" | "info" | "danger", unknown>;
|
|
4
|
+
readonly type: import("element-plus/es/utils").BuildPropReturn<StringConstructor, "", unknown, "" | "default" | "primary" | "success" | "warning" | "info" | "danger" | "text", unknown>;
|
|
5
5
|
readonly icon: import("element-plus/es/utils").BuildPropReturn<import("element-plus/es/utils").PropWrapper<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>, "", unknown, unknown, unknown>;
|
|
6
6
|
readonly nativeType: import("element-plus/es/utils").BuildPropReturn<StringConstructor, "button", unknown, "button" | "submit" | "reset", unknown>;
|
|
7
7
|
readonly loading: BooleanConstructor;
|
|
@@ -20,7 +20,7 @@ export declare const ElButton: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
20
20
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
21
21
|
readonly size: import("element-plus/es/utils").BuildPropReturn<StringConstructor, never, false, "" | "default" | "small" | "large", never>;
|
|
22
22
|
readonly disabled: BooleanConstructor;
|
|
23
|
-
readonly type: import("element-plus/es/utils").BuildPropReturn<StringConstructor, "", unknown, "" | "default" | "primary" | "success" | "warning" | "info" | "danger", unknown>;
|
|
23
|
+
readonly type: import("element-plus/es/utils").BuildPropReturn<StringConstructor, "", unknown, "" | "default" | "primary" | "success" | "warning" | "info" | "danger" | "text", unknown>;
|
|
24
24
|
readonly icon: import("element-plus/es/utils").BuildPropReturn<import("element-plus/es/utils").PropWrapper<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>, "", unknown, unknown, unknown>;
|
|
25
25
|
readonly nativeType: import("element-plus/es/utils").BuildPropReturn<StringConstructor, "button", unknown, "button" | "submit" | "reset", unknown>;
|
|
26
26
|
readonly loading: BooleanConstructor;
|
|
@@ -66,7 +66,7 @@ export declare const ElButton: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
66
66
|
_size: import("vue").ComputedRef<"" | "default" | "small" | "large">;
|
|
67
67
|
_disabled: import("vue").ComputedRef<boolean>;
|
|
68
68
|
_ref: import("vue").Ref<HTMLButtonElement | undefined>;
|
|
69
|
-
_type: import("vue").ComputedRef<"" | "default" | "primary" | "success" | "warning" | "info" | "danger">;
|
|
69
|
+
_type: import("vue").ComputedRef<"" | "default" | "primary" | "success" | "warning" | "info" | "danger" | "text">;
|
|
70
70
|
autoInsertSpace: import("vue").ComputedRef<import("element-plus/es/utils").BuildPropType<BooleanConstructor, unknown, unknown>>;
|
|
71
71
|
shouldAddSpace: import("vue").ComputedRef<boolean>;
|
|
72
72
|
buttonStyle: import("vue").ComputedRef<Record<string, string>>;
|
|
@@ -112,7 +112,7 @@ export declare const ElButton: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
112
112
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
113
113
|
readonly size: import("element-plus/es/utils").BuildPropReturn<StringConstructor, never, false, "" | "default" | "small" | "large", never>;
|
|
114
114
|
readonly disabled: BooleanConstructor;
|
|
115
|
-
readonly type: import("element-plus/es/utils").BuildPropReturn<StringConstructor, "", unknown, "" | "default" | "primary" | "success" | "warning" | "info" | "danger", unknown>;
|
|
115
|
+
readonly type: import("element-plus/es/utils").BuildPropReturn<StringConstructor, "", unknown, "" | "default" | "primary" | "success" | "warning" | "info" | "danger" | "text", unknown>;
|
|
116
116
|
readonly icon: import("element-plus/es/utils").BuildPropReturn<import("element-plus/es/utils").PropWrapper<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>, "", unknown, unknown, unknown>;
|
|
117
117
|
readonly nativeType: import("element-plus/es/utils").BuildPropReturn<StringConstructor, "button", unknown, "button" | "submit" | "reset", unknown>;
|
|
118
118
|
readonly loading: BooleanConstructor;
|
|
@@ -130,7 +130,8 @@ export declare const ElButton: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
130
130
|
}>> & {
|
|
131
131
|
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
132
132
|
}, {
|
|
133
|
-
type: import("element-plus/es/utils").BuildPropType<StringConstructor, "" | "default" | "primary" | "success" | "warning" | "info" | "danger", unknown>;
|
|
133
|
+
type: import("element-plus/es/utils").BuildPropType<StringConstructor, "" | "default" | "primary" | "success" | "warning" | "info" | "danger" | "text", unknown>;
|
|
134
|
+
text: boolean;
|
|
134
135
|
icon: import("element-plus/es/utils").BuildPropType<import("element-plus/es/utils").PropWrapper<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>, unknown, unknown>;
|
|
135
136
|
nativeType: import("element-plus/es/utils").BuildPropType<StringConstructor, "button" | "submit" | "reset", unknown>;
|
|
136
137
|
loadingIcon: import("element-plus/es/utils").BuildPropType<import("element-plus/es/utils").PropWrapper<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>, unknown, unknown>;
|
|
@@ -139,7 +140,6 @@ export declare const ElButton: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
139
140
|
disabled: boolean;
|
|
140
141
|
loading: boolean;
|
|
141
142
|
plain: boolean;
|
|
142
|
-
text: boolean;
|
|
143
143
|
link: boolean;
|
|
144
144
|
bg: boolean;
|
|
145
145
|
autofocus: boolean;
|
|
@@ -149,11 +149,11 @@ export declare const ElButton: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
149
149
|
}>> & {
|
|
150
150
|
ButtonGroup: import("vue").DefineComponent<{
|
|
151
151
|
readonly size: import("element-plus/es/utils").BuildPropReturn<StringConstructor, never, false, "" | "default" | "small" | "large", never>;
|
|
152
|
-
readonly type: import("element-plus/es/utils").BuildPropReturn<StringConstructor, "", unknown, "" | "default" | "primary" | "success" | "warning" | "info" | "danger", unknown>;
|
|
152
|
+
readonly type: import("element-plus/es/utils").BuildPropReturn<StringConstructor, "", unknown, "" | "default" | "primary" | "success" | "warning" | "info" | "danger" | "text", unknown>;
|
|
153
153
|
}, {
|
|
154
154
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
155
155
|
readonly size: import("element-plus/es/utils").BuildPropReturn<StringConstructor, never, false, "" | "default" | "small" | "large", never>;
|
|
156
|
-
readonly type: import("element-plus/es/utils").BuildPropReturn<StringConstructor, "", unknown, "" | "default" | "primary" | "success" | "warning" | "info" | "danger", unknown>;
|
|
156
|
+
readonly type: import("element-plus/es/utils").BuildPropReturn<StringConstructor, "", unknown, "" | "default" | "primary" | "success" | "warning" | "info" | "danger" | "text", unknown>;
|
|
157
157
|
}>> & {
|
|
158
158
|
[x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
|
|
159
159
|
}>>;
|
|
@@ -177,19 +177,19 @@ export declare const ElButton: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
177
177
|
};
|
|
178
178
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
179
179
|
readonly size: import("element-plus/es/utils").BuildPropReturn<StringConstructor, never, false, "" | "default" | "small" | "large", never>;
|
|
180
|
-
readonly type: import("element-plus/es/utils").BuildPropReturn<StringConstructor, "", unknown, "" | "default" | "primary" | "success" | "warning" | "info" | "danger", unknown>;
|
|
180
|
+
readonly type: import("element-plus/es/utils").BuildPropReturn<StringConstructor, "", unknown, "" | "default" | "primary" | "success" | "warning" | "info" | "danger" | "text", unknown>;
|
|
181
181
|
}>>, {
|
|
182
|
-
type: import("element-plus/es/utils").BuildPropType<StringConstructor, "" | "default" | "primary" | "success" | "warning" | "info" | "danger", unknown>;
|
|
182
|
+
type: import("element-plus/es/utils").BuildPropType<StringConstructor, "" | "default" | "primary" | "success" | "warning" | "info" | "danger" | "text", unknown>;
|
|
183
183
|
size: import("element-plus/es/utils").BuildPropType<StringConstructor, "" | "default" | "small" | "large", never>;
|
|
184
184
|
}>;
|
|
185
185
|
};
|
|
186
186
|
export declare const ElButtonGroup: import("element-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
187
187
|
readonly size: import("element-plus/es/utils").BuildPropReturn<StringConstructor, never, false, "" | "default" | "small" | "large", never>;
|
|
188
|
-
readonly type: import("element-plus/es/utils").BuildPropReturn<StringConstructor, "", unknown, "" | "default" | "primary" | "success" | "warning" | "info" | "danger", unknown>;
|
|
188
|
+
readonly type: import("element-plus/es/utils").BuildPropReturn<StringConstructor, "", unknown, "" | "default" | "primary" | "success" | "warning" | "info" | "danger" | "text", unknown>;
|
|
189
189
|
}, {
|
|
190
190
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
191
191
|
readonly size: import("element-plus/es/utils").BuildPropReturn<StringConstructor, never, false, "" | "default" | "small" | "large", never>;
|
|
192
|
-
readonly type: import("element-plus/es/utils").BuildPropReturn<StringConstructor, "", unknown, "" | "default" | "primary" | "success" | "warning" | "info" | "danger", unknown>;
|
|
192
|
+
readonly type: import("element-plus/es/utils").BuildPropReturn<StringConstructor, "", unknown, "" | "default" | "primary" | "success" | "warning" | "info" | "danger" | "text", unknown>;
|
|
193
193
|
}>> & {
|
|
194
194
|
[x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
|
|
195
195
|
}>>;
|
|
@@ -213,9 +213,9 @@ export declare const ElButtonGroup: import("element-plus/es/utils").SFCWithInsta
|
|
|
213
213
|
};
|
|
214
214
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
215
215
|
readonly size: import("element-plus/es/utils").BuildPropReturn<StringConstructor, never, false, "" | "default" | "small" | "large", never>;
|
|
216
|
-
readonly type: import("element-plus/es/utils").BuildPropReturn<StringConstructor, "", unknown, "" | "default" | "primary" | "success" | "warning" | "info" | "danger", unknown>;
|
|
216
|
+
readonly type: import("element-plus/es/utils").BuildPropReturn<StringConstructor, "", unknown, "" | "default" | "primary" | "success" | "warning" | "info" | "danger" | "text", unknown>;
|
|
217
217
|
}>>, {
|
|
218
|
-
type: import("element-plus/es/utils").BuildPropType<StringConstructor, "" | "default" | "primary" | "success" | "warning" | "info" | "danger", unknown>;
|
|
218
|
+
type: import("element-plus/es/utils").BuildPropType<StringConstructor, "" | "default" | "primary" | "success" | "warning" | "info" | "danger" | "text", unknown>;
|
|
219
219
|
size: import("element-plus/es/utils").BuildPropType<StringConstructor, "" | "default" | "small" | "large", never>;
|
|
220
220
|
}>>;
|
|
221
221
|
export default ElButton;
|
|
@@ -2,7 +2,7 @@ import type { ExtractPropTypes } from 'vue';
|
|
|
2
2
|
import type buttonGroup from './button-group.vue';
|
|
3
3
|
export declare const buttonGroupProps: {
|
|
4
4
|
readonly size: import("../../../utils").BuildPropReturn<StringConstructor, never, false, "" | "default" | "small" | "large", never>;
|
|
5
|
-
readonly type: import("../../../utils").BuildPropReturn<StringConstructor, "", unknown, "" | "default" | "primary" | "success" | "warning" | "info" | "danger", unknown>;
|
|
5
|
+
readonly type: import("../../../utils").BuildPropReturn<StringConstructor, "", unknown, "" | "default" | "primary" | "success" | "warning" | "info" | "danger" | "text", unknown>;
|
|
6
6
|
};
|
|
7
7
|
export declare type ButtonGroupProps = ExtractPropTypes<typeof buttonGroupProps>;
|
|
8
8
|
export declare type ButtonGroupInstance = InstanceType<typeof buttonGroup>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
2
|
readonly size: import("../../../utils").BuildPropReturn<StringConstructor, never, false, "" | "default" | "small" | "large", never>;
|
|
3
|
-
readonly type: import("../../../utils").BuildPropReturn<StringConstructor, "", unknown, "" | "default" | "primary" | "success" | "warning" | "info" | "danger", unknown>;
|
|
3
|
+
readonly type: import("../../../utils").BuildPropReturn<StringConstructor, "", unknown, "" | "default" | "primary" | "success" | "warning" | "info" | "danger" | "text", unknown>;
|
|
4
4
|
}, {
|
|
5
5
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
6
6
|
readonly size: import("../../../utils").BuildPropReturn<StringConstructor, never, false, "" | "default" | "small" | "large", never>;
|
|
7
|
-
readonly type: import("../../../utils").BuildPropReturn<StringConstructor, "", unknown, "" | "default" | "primary" | "success" | "warning" | "info" | "danger", unknown>;
|
|
7
|
+
readonly type: import("../../../utils").BuildPropReturn<StringConstructor, "", unknown, "" | "default" | "primary" | "success" | "warning" | "info" | "danger" | "text", unknown>;
|
|
8
8
|
}>> & {
|
|
9
9
|
[x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
|
|
10
10
|
}>>;
|
|
@@ -28,9 +28,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
28
28
|
};
|
|
29
29
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
30
30
|
readonly size: import("../../../utils").BuildPropReturn<StringConstructor, never, false, "" | "default" | "small" | "large", never>;
|
|
31
|
-
readonly type: import("../../../utils").BuildPropReturn<StringConstructor, "", unknown, "" | "default" | "primary" | "success" | "warning" | "info" | "danger", unknown>;
|
|
31
|
+
readonly type: import("../../../utils").BuildPropReturn<StringConstructor, "", unknown, "" | "default" | "primary" | "success" | "warning" | "info" | "danger" | "text", unknown>;
|
|
32
32
|
}>>, {
|
|
33
|
-
type: import("../../../utils").BuildPropType<StringConstructor, "" | "default" | "primary" | "success" | "warning" | "info" | "danger", unknown>;
|
|
33
|
+
type: import("../../../utils").BuildPropType<StringConstructor, "" | "default" | "primary" | "success" | "warning" | "info" | "danger" | "text", unknown>;
|
|
34
34
|
size: import("../../../utils").BuildPropType<StringConstructor, "" | "default" | "small" | "large", never>;
|
|
35
35
|
}>;
|
|
36
36
|
export default _default;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { ExtractPropTypes } from 'vue';
|
|
2
2
|
import type button from './button.vue';
|
|
3
|
-
export declare const buttonTypes: readonly ["default", "primary", "success", "warning", "info", "danger", ""];
|
|
3
|
+
export declare const buttonTypes: readonly ["default", "primary", "success", "warning", "info", "danger", "text", ""];
|
|
4
4
|
export declare const buttonNativeTypes: readonly ["button", "submit", "reset"];
|
|
5
5
|
export declare const buttonProps: {
|
|
6
6
|
readonly size: import("element-plus/es/utils").BuildPropReturn<StringConstructor, never, false, "" | "default" | "small" | "large", never>;
|
|
7
7
|
readonly disabled: BooleanConstructor;
|
|
8
|
-
readonly type: import("element-plus/es/utils").BuildPropReturn<StringConstructor, "", unknown, "" | "default" | "primary" | "success" | "warning" | "info" | "danger", unknown>;
|
|
8
|
+
readonly type: import("element-plus/es/utils").BuildPropReturn<StringConstructor, "", unknown, "" | "default" | "primary" | "success" | "warning" | "info" | "danger" | "text", unknown>;
|
|
9
9
|
readonly icon: import("element-plus/es/utils").BuildPropReturn<import("element-plus/es/utils").PropWrapper<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>, "", unknown, unknown, unknown>;
|
|
10
10
|
readonly nativeType: import("element-plus/es/utils").BuildPropReturn<StringConstructor, "button", unknown, "button" | "submit" | "reset", unknown>;
|
|
11
11
|
readonly loading: BooleanConstructor;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
2
|
readonly size: import("../../../utils").BuildPropReturn<StringConstructor, never, false, "" | "default" | "small" | "large", never>;
|
|
3
3
|
readonly disabled: BooleanConstructor;
|
|
4
|
-
readonly type: import("../../../utils").BuildPropReturn<StringConstructor, "", unknown, "" | "default" | "primary" | "success" | "warning" | "info" | "danger", unknown>;
|
|
4
|
+
readonly type: import("../../../utils").BuildPropReturn<StringConstructor, "", unknown, "" | "default" | "primary" | "success" | "warning" | "info" | "danger" | "text", unknown>;
|
|
5
5
|
readonly icon: import("../../../utils").BuildPropReturn<import("../../../utils").PropWrapper<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>, "", unknown, unknown, unknown>;
|
|
6
6
|
readonly nativeType: import("../../../utils").BuildPropReturn<StringConstructor, "button", unknown, "button" | "submit" | "reset", unknown>;
|
|
7
7
|
readonly loading: BooleanConstructor;
|
|
@@ -20,7 +20,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
20
20
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
21
21
|
readonly size: import("../../../utils").BuildPropReturn<StringConstructor, never, false, "" | "default" | "small" | "large", never>;
|
|
22
22
|
readonly disabled: BooleanConstructor;
|
|
23
|
-
readonly type: import("../../../utils").BuildPropReturn<StringConstructor, "", unknown, "" | "default" | "primary" | "success" | "warning" | "info" | "danger", unknown>;
|
|
23
|
+
readonly type: import("../../../utils").BuildPropReturn<StringConstructor, "", unknown, "" | "default" | "primary" | "success" | "warning" | "info" | "danger" | "text", unknown>;
|
|
24
24
|
readonly icon: import("../../../utils").BuildPropReturn<import("../../../utils").PropWrapper<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>, "", unknown, unknown, unknown>;
|
|
25
25
|
readonly nativeType: import("../../../utils").BuildPropReturn<StringConstructor, "button", unknown, "button" | "submit" | "reset", unknown>;
|
|
26
26
|
readonly loading: BooleanConstructor;
|
|
@@ -66,7 +66,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
66
66
|
_size: import("vue").ComputedRef<"" | "default" | "small" | "large">;
|
|
67
67
|
_disabled: import("vue").ComputedRef<boolean>;
|
|
68
68
|
_ref: import("vue").Ref<HTMLButtonElement | undefined>;
|
|
69
|
-
_type: import("vue").ComputedRef<"" | "default" | "primary" | "success" | "warning" | "info" | "danger">;
|
|
69
|
+
_type: import("vue").ComputedRef<"" | "default" | "primary" | "success" | "warning" | "info" | "danger" | "text">;
|
|
70
70
|
autoInsertSpace: import("vue").ComputedRef<import("../../../utils").BuildPropType<BooleanConstructor, unknown, unknown>>;
|
|
71
71
|
shouldAddSpace: import("vue").ComputedRef<boolean>;
|
|
72
72
|
buttonStyle: import("vue").ComputedRef<Record<string, string>>;
|
|
@@ -112,7 +112,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
112
112
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
113
113
|
readonly size: import("../../../utils").BuildPropReturn<StringConstructor, never, false, "" | "default" | "small" | "large", never>;
|
|
114
114
|
readonly disabled: BooleanConstructor;
|
|
115
|
-
readonly type: import("../../../utils").BuildPropReturn<StringConstructor, "", unknown, "" | "default" | "primary" | "success" | "warning" | "info" | "danger", unknown>;
|
|
115
|
+
readonly type: import("../../../utils").BuildPropReturn<StringConstructor, "", unknown, "" | "default" | "primary" | "success" | "warning" | "info" | "danger" | "text", unknown>;
|
|
116
116
|
readonly icon: import("../../../utils").BuildPropReturn<import("../../../utils").PropWrapper<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>, "", unknown, unknown, unknown>;
|
|
117
117
|
readonly nativeType: import("../../../utils").BuildPropReturn<StringConstructor, "button", unknown, "button" | "submit" | "reset", unknown>;
|
|
118
118
|
readonly loading: BooleanConstructor;
|
|
@@ -130,7 +130,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
130
130
|
}>> & {
|
|
131
131
|
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
132
132
|
}, {
|
|
133
|
-
type: import("../../../utils").BuildPropType<StringConstructor, "" | "default" | "primary" | "success" | "warning" | "info" | "danger", unknown>;
|
|
133
|
+
type: import("../../../utils").BuildPropType<StringConstructor, "" | "default" | "primary" | "success" | "warning" | "info" | "danger" | "text", unknown>;
|
|
134
|
+
text: boolean;
|
|
134
135
|
icon: import("../../../utils").BuildPropType<import("../../../utils").PropWrapper<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>, unknown, unknown>;
|
|
135
136
|
nativeType: import("../../../utils").BuildPropType<StringConstructor, "button" | "submit" | "reset", unknown>;
|
|
136
137
|
loadingIcon: import("../../../utils").BuildPropType<import("../../../utils").PropWrapper<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>, unknown, unknown>;
|
|
@@ -139,7 +140,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
139
140
|
disabled: boolean;
|
|
140
141
|
loading: boolean;
|
|
141
142
|
plain: boolean;
|
|
142
|
-
text: boolean;
|
|
143
143
|
link: boolean;
|
|
144
144
|
bg: boolean;
|
|
145
145
|
autofocus: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button3.js","sources":["../../../../../../packages/components/button/src/button.ts"],"sourcesContent":["import { useSizeProp } from '@element-plus/hooks'\nimport { buildProps, iconPropType } from '@element-plus/utils'\nimport { Loading } from '@element-plus/icons-vue'\nimport type { ExtractPropTypes } from 'vue'\nimport type button from './button.vue'\n\nexport const buttonTypes = [\n 'default',\n 'primary',\n 'success',\n 'warning',\n 'info',\n 'danger',\n '',\n] as const\nexport const buttonNativeTypes = ['button', 'submit', 'reset'] as const\n\nexport const buttonProps = buildProps({\n size: useSizeProp,\n disabled: Boolean,\n type: {\n type: String,\n values: buttonTypes,\n default: '',\n },\n icon: {\n type: iconPropType,\n default: '',\n },\n nativeType: {\n type: String,\n values: buttonNativeTypes,\n default: 'button',\n },\n loading: Boolean,\n loadingIcon: {\n type: iconPropType,\n default: () => Loading,\n },\n plain: Boolean,\n text: Boolean,\n link: Boolean,\n bg: Boolean,\n autofocus: Boolean,\n round: Boolean,\n circle: Boolean,\n color: String,\n dark: Boolean,\n autoInsertSpace: {\n type: Boolean,\n default: undefined,\n },\n} as const)\nexport const buttonEmits = {\n click: (evt: MouseEvent) => evt instanceof MouseEvent,\n}\n\nexport type ButtonProps = ExtractPropTypes<typeof buttonProps>\nexport type ButtonEmits = typeof buttonEmits\n\nexport type ButtonType = ButtonProps['type']\nexport type ButtonNativeType = ButtonProps['nativeType']\n\nexport type ButtonInstance = InstanceType<typeof button>\n\nexport interface ButtonConfigContext {\n autoInsertSpace?: boolean\n}\n"],"names":["buildProps","useSizeProp","iconPropType","Loading"],"mappings":";;;;;;;;;;;AAGY,MAAC,WAAW,GAAG;AAC3B,EAAE,SAAS;AACX,EAAE,SAAS;AACX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}
|
|
1
|
+
{"version":3,"file":"button3.js","sources":["../../../../../../packages/components/button/src/button.ts"],"sourcesContent":["import { useSizeProp } from '@element-plus/hooks'\nimport { buildProps, iconPropType } from '@element-plus/utils'\nimport { Loading } from '@element-plus/icons-vue'\nimport type { ExtractPropTypes } from 'vue'\nimport type button from './button.vue'\n\nexport const buttonTypes = [\n 'default',\n 'primary',\n 'success',\n 'warning',\n 'info',\n 'danger',\n /**\n * @deprecated\n * Text type will be deprecated in the next major version (3.0.0)\n */\n 'text',\n '',\n] as const\nexport const buttonNativeTypes = ['button', 'submit', 'reset'] as const\n\nexport const buttonProps = buildProps({\n size: useSizeProp,\n disabled: Boolean,\n type: {\n type: String,\n values: buttonTypes,\n default: '',\n },\n icon: {\n type: iconPropType,\n default: '',\n },\n nativeType: {\n type: String,\n values: buttonNativeTypes,\n default: 'button',\n },\n loading: Boolean,\n loadingIcon: {\n type: iconPropType,\n default: () => Loading,\n },\n plain: Boolean,\n text: Boolean,\n link: Boolean,\n bg: Boolean,\n autofocus: Boolean,\n round: Boolean,\n circle: Boolean,\n color: String,\n dark: Boolean,\n autoInsertSpace: {\n type: Boolean,\n default: undefined,\n },\n} as const)\nexport const buttonEmits = {\n click: (evt: MouseEvent) => evt instanceof MouseEvent,\n}\n\nexport type ButtonProps = ExtractPropTypes<typeof buttonProps>\nexport type ButtonEmits = typeof buttonEmits\n\nexport type ButtonType = ButtonProps['type']\nexport type ButtonNativeType = ButtonProps['nativeType']\n\nexport type ButtonInstance = InstanceType<typeof button>\n\nexport interface ButtonConfigContext {\n autoInsertSpace?: boolean\n}\n"],"names":["buildProps","useSizeProp","iconPropType","Loading"],"mappings":";;;;;;;;;;;AAGY,MAAC,WAAW,GAAG;AAC3B,EAAE,SAAS;AACX,EAAE,SAAS;AACX,EAAE,SAAS;AACX,EAAE,SAAS;AACX,EAAE,MAAM;AACR,EAAE,QAAQ;AACV,EAAE,MAAM;AACR,EAAE,EAAE;AACJ,EAAE;AACU,MAAC,iBAAi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