@element-plus/nightly 0.0.20260106 → 0.0.20260107
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/dist/index.full.js +41 -7
- package/dist/index.full.min.js +16 -16
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +15 -15
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +41 -7
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar-eg.js +1 -1
- package/dist/locale/ar-eg.min.js +1 -1
- package/dist/locale/ar-eg.min.mjs +1 -1
- package/dist/locale/ar-eg.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/az.js +1 -1
- package/dist/locale/az.min.js +1 -1
- package/dist/locale/az.min.mjs +1 -1
- package/dist/locale/az.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/ckb.js +1 -1
- package/dist/locale/ckb.min.js +1 -1
- package/dist/locale/ckb.min.mjs +1 -1
- package/dist/locale/ckb.mjs +1 -1
- package/dist/locale/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hi.js +1 -1
- package/dist/locale/hi.min.js +1 -1
- package/dist/locale/hi.min.mjs +1 -1
- package/dist/locale/hi.mjs +1 -1
- package/dist/locale/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lo.js +1 -1
- package/dist/locale/lo.min.js +1 -1
- package/dist/locale/lo.min.mjs +1 -1
- package/dist/locale/lo.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/ms.js +1 -1
- package/dist/locale/ms.min.js +1 -1
- package/dist/locale/ms.min.mjs +1 -1
- package/dist/locale/ms.mjs +1 -1
- package/dist/locale/my.js +1 -1
- package/dist/locale/my.min.js +1 -1
- package/dist/locale/my.min.mjs +1 -1
- package/dist/locale/my.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/no.js +1 -1
- package/dist/locale/no.min.js +1 -1
- package/dist/locale/no.min.mjs +1 -1
- package/dist/locale/no.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/sw.js +1 -1
- package/dist/locale/sw.min.js +1 -1
- package/dist/locale/sw.min.mjs +1 -1
- package/dist/locale/sw.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/te.js +1 -1
- package/dist/locale/te.min.js +1 -1
- package/dist/locale/te.min.mjs +1 -1
- package/dist/locale/te.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-hk.js +1 -1
- package/dist/locale/zh-hk.min.js +1 -1
- package/dist/locale/zh-hk.min.mjs +1 -1
- package/dist/locale/zh-hk.mjs +1 -1
- package/dist/locale/zh-mo.js +1 -1
- package/dist/locale/zh-mo.min.js +1 -1
- package/dist/locale/zh-mo.min.mjs +1 -1
- package/dist/locale/zh-mo.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/affix/src/affix.mjs +1 -1
- package/es/components/alert/src/alert2.mjs +11 -1
- package/es/components/alert/src/alert2.mjs.map +1 -1
- package/es/components/autocomplete/src/autocomplete.mjs +1 -1
- package/es/components/autocomplete/src/autocomplete2.mjs +1 -1
- package/es/components/badge/index.mjs +2 -2
- package/es/components/badge/src/badge.mjs +31 -83
- package/es/components/badge/src/badge.mjs.map +1 -1
- package/es/components/badge/src/badge2.mjs +83 -31
- package/es/components/badge/src/badge2.mjs.map +1 -1
- package/es/components/calendar/index.mjs +2 -2
- package/es/components/calendar/src/calendar.mjs +23 -196
- package/es/components/calendar/src/calendar.mjs.map +1 -1
- package/es/components/calendar/src/calendar2.mjs +196 -23
- package/es/components/calendar/src/calendar2.mjs.map +1 -1
- package/es/components/checkbox/index.mjs +2 -2
- package/es/components/checkbox/src/checkbox-button.mjs +1 -1
- package/es/components/checkbox/src/checkbox-group2.mjs +1 -1
- package/es/components/checkbox/src/checkbox.mjs +134 -62
- package/es/components/checkbox/src/checkbox.mjs.map +1 -1
- package/es/components/checkbox/src/checkbox2.mjs +62 -134
- package/es/components/checkbox/src/checkbox2.mjs.map +1 -1
- package/es/components/countdown/index.mjs +2 -2
- package/es/components/countdown/src/countdown.mjs +83 -20
- package/es/components/countdown/src/countdown.mjs.map +1 -1
- package/es/components/countdown/src/countdown2.mjs +20 -83
- package/es/components/countdown/src/countdown2.mjs.map +1 -1
- package/es/components/dialog/src/dialog.mjs +1 -1
- package/es/components/divider/index.mjs +2 -2
- package/es/components/divider/src/divider.mjs +15 -43
- package/es/components/divider/src/divider.mjs.map +1 -1
- package/es/components/divider/src/divider2.mjs +43 -15
- package/es/components/divider/src/divider2.mjs.map +1 -1
- package/es/components/empty/index.mjs +2 -2
- package/es/components/empty/src/empty.mjs +80 -10
- package/es/components/empty/src/empty.mjs.map +1 -1
- package/es/components/empty/src/empty2.mjs +10 -80
- package/es/components/empty/src/empty2.mjs.map +1 -1
- package/es/components/form/src/form-item.vue.d.ts +4 -0
- package/es/components/form/src/form-item2.mjs +8 -3
- package/es/components/form/src/form-item2.mjs.map +1 -1
- package/es/components/form/src/form.vue.d.ts +4 -0
- package/es/components/form/src/form2.mjs +26 -1
- package/es/components/form/src/form2.mjs.map +1 -1
- package/es/components/form/src/types.d.ts +2 -0
- package/es/components/icon/index.mjs +2 -2
- package/es/components/icon/src/icon.mjs +39 -7
- package/es/components/icon/src/icon.mjs.map +1 -1
- package/es/components/icon/src/icon2.mjs +7 -39
- package/es/components/icon/src/icon2.mjs.map +1 -1
- package/es/components/image/index.mjs +2 -2
- package/es/components/image/src/image.mjs +279 -68
- package/es/components/image/src/image.mjs.map +1 -1
- package/es/components/image/src/image2.mjs +68 -279
- package/es/components/image/src/image2.mjs.map +1 -1
- package/es/components/index.mjs +23 -23
- package/es/components/input/index.mjs +2 -2
- package/es/components/input/src/input.mjs +124 -586
- package/es/components/input/src/input.mjs.map +1 -1
- package/es/components/input/src/input2.mjs +586 -124
- package/es/components/input/src/input2.mjs.map +1 -1
- package/es/components/input-number/index.mjs +2 -2
- package/es/components/input-number/src/input-number.mjs +414 -73
- package/es/components/input-number/src/input-number.mjs.map +1 -1
- package/es/components/input-number/src/input-number2.mjs +73 -414
- package/es/components/input-number/src/input-number2.mjs.map +1 -1
- package/es/components/input-tag/index.mjs +2 -2
- package/es/components/input-tag/src/input-tag.mjs +344 -82
- package/es/components/input-tag/src/input-tag.mjs.map +1 -1
- package/es/components/input-tag/src/input-tag2.mjs +82 -344
- package/es/components/input-tag/src/input-tag2.mjs.map +1 -1
- package/es/components/link/index.mjs +2 -2
- package/es/components/link/src/link.mjs +80 -24
- package/es/components/link/src/link.mjs.map +1 -1
- package/es/components/link/src/link2.mjs +24 -80
- package/es/components/link/src/link2.mjs.map +1 -1
- package/es/components/mention/src/mention-dropdown.mjs +205 -14
- package/es/components/mention/src/mention-dropdown.mjs.map +1 -1
- package/es/components/mention/src/mention-dropdown2.mjs +14 -205
- package/es/components/mention/src/mention-dropdown2.mjs.map +1 -1
- package/es/components/mention/src/mention.mjs +1 -1
- package/es/components/mention/src/mention2.mjs +2 -2
- package/es/components/notification/index.mjs +1 -1
- package/es/components/notification/src/notification.mjs +174 -72
- package/es/components/notification/src/notification.mjs.map +1 -1
- package/es/components/notification/src/notification2.mjs +72 -174
- package/es/components/notification/src/notification2.mjs.map +1 -1
- package/es/components/notification/src/notify.mjs +2 -2
- package/es/components/page-header/index.mjs +2 -2
- package/es/components/page-header/src/page-header.mjs +149 -15
- package/es/components/page-header/src/page-header.mjs.map +1 -1
- package/es/components/page-header/src/page-header2.mjs +15 -149
- package/es/components/page-header/src/page-header2.mjs.map +1 -1
- package/es/components/pagination/src/components/jumper.mjs +7 -69
- package/es/components/pagination/src/components/jumper.mjs.map +1 -1
- package/es/components/pagination/src/components/jumper2.mjs +69 -7
- package/es/components/pagination/src/components/jumper2.mjs.map +1 -1
- package/es/components/pagination/src/components/pager.mjs +15 -229
- package/es/components/pagination/src/components/pager.mjs.map +1 -1
- package/es/components/pagination/src/components/pager2.mjs +229 -15
- package/es/components/pagination/src/components/pager2.mjs.map +1 -1
- package/es/components/pagination/src/pagination.mjs +2 -2
- package/es/components/popconfirm/index.mjs +2 -2
- package/es/components/popconfirm/src/popconfirm.mjs +163 -49
- package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
- package/es/components/popconfirm/src/popconfirm2.mjs +49 -163
- package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
- package/es/components/popover/index.mjs +2 -2
- package/es/components/popover/src/popover.mjs +65 -120
- package/es/components/popover/src/popover.mjs.map +1 -1
- package/es/components/popover/src/popover2.mjs +120 -65
- package/es/components/popover/src/popover2.mjs.map +1 -1
- package/es/components/progress/index.mjs +2 -2
- package/es/components/progress/src/progress.mjs +52 -256
- package/es/components/progress/src/progress.mjs.map +1 -1
- package/es/components/progress/src/progress2.mjs +256 -52
- package/es/components/progress/src/progress2.mjs.map +1 -1
- package/es/components/result/index.mjs +2 -2
- package/es/components/result/src/result.mjs +29 -96
- package/es/components/result/src/result.mjs.map +1 -1
- package/es/components/result/src/result2.mjs +96 -29
- package/es/components/result/src/result2.mjs.map +1 -1
- package/es/components/select/index.mjs +2 -2
- package/es/components/select/src/select.mjs +728 -152
- package/es/components/select/src/select.mjs.map +1 -1
- package/es/components/select/src/select2.mjs +152 -728
- package/es/components/select/src/select2.mjs.map +1 -1
- package/es/components/table-v2/src/components/expand-icon.d.ts +11 -8
- package/es/components/table-v2/src/components/expand-icon.mjs +1 -0
- package/es/components/table-v2/src/components/expand-icon.mjs.map +1 -1
- package/es/components/teleport/index.mjs +2 -2
- package/es/components/teleport/src/teleport.mjs +8 -18
- package/es/components/teleport/src/teleport.mjs.map +1 -1
- package/es/components/teleport/src/teleport2.mjs +18 -8
- package/es/components/teleport/src/teleport2.mjs.map +1 -1
- package/es/components/text/index.mjs +2 -2
- package/es/components/text/src/text.mjs +20 -66
- package/es/components/text/src/text.mjs.map +1 -1
- package/es/components/text/src/text2.mjs +66 -20
- package/es/components/text/src/text2.mjs.map +1 -1
- package/es/components/time-select/index.mjs +2 -2
- package/es/components/time-select/src/time-select.mjs +66 -138
- package/es/components/time-select/src/time-select.mjs.map +1 -1
- package/es/components/time-select/src/time-select2.mjs +138 -66
- package/es/components/time-select/src/time-select2.mjs.map +1 -1
- package/es/components/tooltip/src/content.mjs +1 -1
- package/es/components/tour/index.mjs +2 -2
- package/es/components/tour/src/step.mjs +43 -255
- package/es/components/tour/src/step.mjs.map +1 -1
- package/es/components/tour/src/step2.mjs +255 -43
- package/es/components/tour/src/step2.mjs.map +1 -1
- package/es/components/tour/src/tour.mjs +1 -1
- package/es/components/tour/src/tour2.mjs +2 -1
- package/es/components/tour/src/tour2.mjs.map +1 -1
- package/es/components/transfer/index.mjs +2 -2
- package/es/components/transfer/src/composables/use-checked-change.mjs +1 -1
- package/es/components/transfer/src/transfer-panel2.mjs +1 -1
- package/es/components/transfer/src/transfer.mjs +203 -69
- package/es/components/transfer/src/transfer.mjs.map +1 -1
- package/es/components/transfer/src/transfer2.mjs +69 -203
- package/es/components/transfer/src/transfer2.mjs.map +1 -1
- package/es/components/tree-select/src/tree-select.mjs +1 -1
- package/es/components/upload/src/upload-dragger2.mjs.map +1 -1
- package/es/index.mjs +23 -23
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/affix/src/affix.js +1 -1
- package/lib/components/alert/src/alert2.js +11 -1
- package/lib/components/alert/src/alert2.js.map +1 -1
- package/lib/components/autocomplete/src/autocomplete.js +1 -1
- package/lib/components/autocomplete/src/autocomplete2.js +1 -1
- package/lib/components/badge/index.js +2 -2
- package/lib/components/badge/src/badge.js +31 -83
- package/lib/components/badge/src/badge.js.map +1 -1
- package/lib/components/badge/src/badge2.js +83 -31
- package/lib/components/badge/src/badge2.js.map +1 -1
- package/lib/components/calendar/index.js +2 -2
- package/lib/components/calendar/src/calendar.js +24 -196
- package/lib/components/calendar/src/calendar.js.map +1 -1
- package/lib/components/calendar/src/calendar2.js +196 -24
- package/lib/components/calendar/src/calendar2.js.map +1 -1
- package/lib/components/checkbox/index.js +2 -2
- package/lib/components/checkbox/src/checkbox-button.js +1 -1
- package/lib/components/checkbox/src/checkbox-group2.js +1 -1
- package/lib/components/checkbox/src/checkbox.js +134 -63
- package/lib/components/checkbox/src/checkbox.js.map +1 -1
- package/lib/components/checkbox/src/checkbox2.js +63 -134
- package/lib/components/checkbox/src/checkbox2.js.map +1 -1
- package/lib/components/countdown/index.js +2 -2
- package/lib/components/countdown/src/countdown.js +83 -21
- package/lib/components/countdown/src/countdown.js.map +1 -1
- package/lib/components/countdown/src/countdown2.js +21 -83
- package/lib/components/countdown/src/countdown2.js.map +1 -1
- package/lib/components/dialog/src/dialog.js +1 -1
- package/lib/components/divider/index.js +2 -2
- package/lib/components/divider/src/divider.js +15 -43
- package/lib/components/divider/src/divider.js.map +1 -1
- package/lib/components/divider/src/divider2.js +43 -15
- package/lib/components/divider/src/divider2.js.map +1 -1
- package/lib/components/empty/index.js +2 -2
- package/lib/components/empty/src/empty.js +80 -10
- package/lib/components/empty/src/empty.js.map +1 -1
- package/lib/components/empty/src/empty2.js +10 -80
- package/lib/components/empty/src/empty2.js.map +1 -1
- package/lib/components/form/src/form-item.vue.d.ts +4 -0
- package/lib/components/form/src/form-item2.js +8 -3
- package/lib/components/form/src/form-item2.js.map +1 -1
- package/lib/components/form/src/form.vue.d.ts +4 -0
- package/lib/components/form/src/form2.js +26 -1
- package/lib/components/form/src/form2.js.map +1 -1
- package/lib/components/form/src/types.d.ts +2 -0
- package/lib/components/icon/index.js +2 -2
- package/lib/components/icon/src/icon.js +39 -7
- package/lib/components/icon/src/icon.js.map +1 -1
- package/lib/components/icon/src/icon2.js +7 -39
- package/lib/components/icon/src/icon2.js.map +1 -1
- package/lib/components/image/index.js +2 -2
- package/lib/components/image/src/image.js +278 -68
- package/lib/components/image/src/image.js.map +1 -1
- package/lib/components/image/src/image2.js +68 -278
- package/lib/components/image/src/image2.js.map +1 -1
- package/lib/components/index.js +23 -23
- package/lib/components/input/index.js +2 -2
- package/lib/components/input/src/input.js +121 -582
- package/lib/components/input/src/input.js.map +1 -1
- package/lib/components/input/src/input2.js +582 -121
- package/lib/components/input/src/input2.js.map +1 -1
- package/lib/components/input-number/index.js +2 -2
- package/lib/components/input-number/src/input-number.js +412 -72
- package/lib/components/input-number/src/input-number.js.map +1 -1
- package/lib/components/input-number/src/input-number2.js +72 -412
- package/lib/components/input-number/src/input-number2.js.map +1 -1
- package/lib/components/input-tag/index.js +2 -2
- package/lib/components/input-tag/src/input-tag.js +342 -81
- package/lib/components/input-tag/src/input-tag.js.map +1 -1
- package/lib/components/input-tag/src/input-tag2.js +81 -342
- package/lib/components/input-tag/src/input-tag2.js.map +1 -1
- package/lib/components/link/index.js +2 -2
- package/lib/components/link/src/link.js +80 -25
- package/lib/components/link/src/link.js.map +1 -1
- package/lib/components/link/src/link2.js +25 -80
- package/lib/components/link/src/link2.js.map +1 -1
- package/lib/components/mention/src/mention-dropdown.js +205 -15
- package/lib/components/mention/src/mention-dropdown.js.map +1 -1
- package/lib/components/mention/src/mention-dropdown2.js +15 -205
- package/lib/components/mention/src/mention-dropdown2.js.map +1 -1
- package/lib/components/mention/src/mention.js +1 -1
- package/lib/components/mention/src/mention2.js +2 -2
- package/lib/components/notification/index.js +1 -1
- package/lib/components/notification/src/notification.js +173 -73
- package/lib/components/notification/src/notification.js.map +1 -1
- package/lib/components/notification/src/notification2.js +73 -173
- package/lib/components/notification/src/notification2.js.map +1 -1
- package/lib/components/notification/src/notify.js +2 -2
- package/lib/components/page-header/index.js +2 -2
- package/lib/components/page-header/src/page-header.js +149 -16
- package/lib/components/page-header/src/page-header.js.map +1 -1
- package/lib/components/page-header/src/page-header2.js +16 -149
- package/lib/components/page-header/src/page-header2.js.map +1 -1
- package/lib/components/pagination/src/components/jumper.js +7 -69
- package/lib/components/pagination/src/components/jumper.js.map +1 -1
- package/lib/components/pagination/src/components/jumper2.js +69 -7
- package/lib/components/pagination/src/components/jumper2.js.map +1 -1
- package/lib/components/pagination/src/components/pager.js +15 -229
- package/lib/components/pagination/src/components/pager.js.map +1 -1
- package/lib/components/pagination/src/components/pager2.js +229 -15
- package/lib/components/pagination/src/components/pager2.js.map +1 -1
- package/lib/components/pagination/src/pagination.js +2 -2
- package/lib/components/popconfirm/index.js +2 -2
- package/lib/components/popconfirm/src/popconfirm.js +163 -50
- package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
- package/lib/components/popconfirm/src/popconfirm2.js +50 -163
- package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
- package/lib/components/popover/index.js +2 -2
- package/lib/components/popover/src/popover.js +66 -120
- package/lib/components/popover/src/popover.js.map +1 -1
- package/lib/components/popover/src/popover2.js +120 -66
- package/lib/components/popover/src/popover2.js.map +1 -1
- package/lib/components/progress/index.js +2 -2
- package/lib/components/progress/src/progress.js +52 -256
- package/lib/components/progress/src/progress.js.map +1 -1
- package/lib/components/progress/src/progress2.js +256 -52
- package/lib/components/progress/src/progress2.js.map +1 -1
- package/lib/components/result/index.js +2 -2
- package/lib/components/result/src/result.js +31 -96
- package/lib/components/result/src/result.js.map +1 -1
- package/lib/components/result/src/result2.js +96 -31
- package/lib/components/result/src/result2.js.map +1 -1
- package/lib/components/select/index.js +2 -2
- package/lib/components/select/src/select.js +727 -152
- package/lib/components/select/src/select.js.map +1 -1
- package/lib/components/select/src/select2.js +152 -727
- package/lib/components/select/src/select2.js.map +1 -1
- package/lib/components/table-v2/src/components/expand-icon.d.ts +11 -8
- package/lib/components/table-v2/src/components/expand-icon.js +1 -0
- package/lib/components/table-v2/src/components/expand-icon.js.map +1 -1
- package/lib/components/teleport/index.js +2 -2
- package/lib/components/teleport/src/teleport.js +8 -18
- package/lib/components/teleport/src/teleport.js.map +1 -1
- package/lib/components/teleport/src/teleport2.js +18 -8
- package/lib/components/teleport/src/teleport2.js.map +1 -1
- package/lib/components/text/index.js +2 -2
- package/lib/components/text/src/text.js +20 -66
- package/lib/components/text/src/text.js.map +1 -1
- package/lib/components/text/src/text2.js +66 -20
- package/lib/components/text/src/text2.js.map +1 -1
- package/lib/components/time-select/index.js +2 -2
- package/lib/components/time-select/src/time-select.js +66 -143
- package/lib/components/time-select/src/time-select.js.map +1 -1
- package/lib/components/time-select/src/time-select2.js +143 -66
- package/lib/components/time-select/src/time-select2.js.map +1 -1
- package/lib/components/tooltip/src/content.js +1 -1
- package/lib/components/tour/index.js +2 -2
- package/lib/components/tour/src/step.js +43 -254
- package/lib/components/tour/src/step.js.map +1 -1
- package/lib/components/tour/src/step2.js +254 -43
- package/lib/components/tour/src/step2.js.map +1 -1
- package/lib/components/tour/src/tour.js +1 -1
- package/lib/components/tour/src/tour2.js +2 -1
- package/lib/components/tour/src/tour2.js.map +1 -1
- package/lib/components/transfer/index.js +2 -2
- package/lib/components/transfer/src/composables/use-checked-change.js +1 -1
- package/lib/components/transfer/src/transfer-panel2.js +1 -1
- package/lib/components/transfer/src/transfer.js +203 -73
- package/lib/components/transfer/src/transfer.js.map +1 -1
- package/lib/components/transfer/src/transfer2.js +73 -203
- package/lib/components/transfer/src/transfer2.js.map +1 -1
- package/lib/components/tree-select/src/tree-select.js +1 -1
- package/lib/components/upload/src/upload-dragger2.js.map +1 -1
- package/lib/index.js +23 -23
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/web-types.json +1 -1
|
@@ -2,158 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var pageHeader = require('./page-header.js');
|
|
9
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
10
|
-
var index = require('../../../hooks/use-locale/index.js');
|
|
11
|
-
var index$1 = require('../../../hooks/use-namespace/index.js');
|
|
5
|
+
var iconsVue = require('@element-plus/icons-vue');
|
|
6
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
7
|
+
var icon = require('../../../utils/vue/icon.js');
|
|
12
8
|
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
const pageHeaderProps = runtime.buildProps({
|
|
10
|
+
icon: {
|
|
11
|
+
type: icon.iconPropType,
|
|
12
|
+
default: () => iconsVue.Back
|
|
17
13
|
},
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
const emit = __emit;
|
|
23
|
-
const { t } = index.useLocale();
|
|
24
|
-
const ns = index$1.useNamespace("page-header");
|
|
25
|
-
function handleClick() {
|
|
26
|
-
emit("back");
|
|
27
|
-
}
|
|
28
|
-
return (_ctx, _cache) => {
|
|
29
|
-
return vue.openBlock(), vue.createElementBlock(
|
|
30
|
-
"div",
|
|
31
|
-
{
|
|
32
|
-
class: vue.normalizeClass([
|
|
33
|
-
vue.unref(ns).b(),
|
|
34
|
-
vue.unref(ns).is("contentful", !!_ctx.$slots.default),
|
|
35
|
-
{
|
|
36
|
-
[vue.unref(ns).m("has-breadcrumb")]: !!_ctx.$slots.breadcrumb,
|
|
37
|
-
[vue.unref(ns).m("has-extra")]: !!_ctx.$slots.extra
|
|
38
|
-
}
|
|
39
|
-
])
|
|
40
|
-
},
|
|
41
|
-
[
|
|
42
|
-
_ctx.$slots.breadcrumb ? (vue.openBlock(), vue.createElementBlock(
|
|
43
|
-
"div",
|
|
44
|
-
{
|
|
45
|
-
key: 0,
|
|
46
|
-
class: vue.normalizeClass(vue.unref(ns).e("breadcrumb"))
|
|
47
|
-
},
|
|
48
|
-
[
|
|
49
|
-
vue.renderSlot(_ctx.$slots, "breadcrumb")
|
|
50
|
-
],
|
|
51
|
-
2
|
|
52
|
-
)) : vue.createCommentVNode("v-if", true),
|
|
53
|
-
vue.createElementVNode(
|
|
54
|
-
"div",
|
|
55
|
-
{
|
|
56
|
-
class: vue.normalizeClass(vue.unref(ns).e("header"))
|
|
57
|
-
},
|
|
58
|
-
[
|
|
59
|
-
vue.createElementVNode(
|
|
60
|
-
"div",
|
|
61
|
-
{
|
|
62
|
-
class: vue.normalizeClass(vue.unref(ns).e("left"))
|
|
63
|
-
},
|
|
64
|
-
[
|
|
65
|
-
vue.createElementVNode(
|
|
66
|
-
"div",
|
|
67
|
-
{
|
|
68
|
-
class: vue.normalizeClass(vue.unref(ns).e("back")),
|
|
69
|
-
role: "button",
|
|
70
|
-
tabindex: "0",
|
|
71
|
-
onClick: handleClick
|
|
72
|
-
},
|
|
73
|
-
[
|
|
74
|
-
_ctx.icon || _ctx.$slots.icon ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
75
|
-
key: 0,
|
|
76
|
-
"aria-label": _ctx.title || vue.unref(t)("el.pageHeader.title"),
|
|
77
|
-
class: vue.normalizeClass(vue.unref(ns).e("icon"))
|
|
78
|
-
}, [
|
|
79
|
-
vue.renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
80
|
-
_ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.ElIcon), { key: 0 }, {
|
|
81
|
-
default: vue.withCtx(() => [
|
|
82
|
-
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.icon)))
|
|
83
|
-
]),
|
|
84
|
-
_: 1
|
|
85
|
-
})) : vue.createCommentVNode("v-if", true)
|
|
86
|
-
])
|
|
87
|
-
], 10, _hoisted_1)) : vue.createCommentVNode("v-if", true),
|
|
88
|
-
vue.createElementVNode(
|
|
89
|
-
"div",
|
|
90
|
-
{
|
|
91
|
-
class: vue.normalizeClass(vue.unref(ns).e("title"))
|
|
92
|
-
},
|
|
93
|
-
[
|
|
94
|
-
vue.renderSlot(_ctx.$slots, "title", {}, () => [
|
|
95
|
-
vue.createTextVNode(
|
|
96
|
-
vue.toDisplayString(_ctx.title || vue.unref(t)("el.pageHeader.title")),
|
|
97
|
-
1
|
|
98
|
-
)
|
|
99
|
-
])
|
|
100
|
-
],
|
|
101
|
-
2
|
|
102
|
-
)
|
|
103
|
-
],
|
|
104
|
-
2
|
|
105
|
-
),
|
|
106
|
-
vue.createVNode(vue.unref(index$3.ElDivider), { direction: "vertical" }),
|
|
107
|
-
vue.createElementVNode(
|
|
108
|
-
"div",
|
|
109
|
-
{
|
|
110
|
-
class: vue.normalizeClass(vue.unref(ns).e("content"))
|
|
111
|
-
},
|
|
112
|
-
[
|
|
113
|
-
vue.renderSlot(_ctx.$slots, "content", {}, () => [
|
|
114
|
-
vue.createTextVNode(
|
|
115
|
-
vue.toDisplayString(_ctx.content),
|
|
116
|
-
1
|
|
117
|
-
)
|
|
118
|
-
])
|
|
119
|
-
],
|
|
120
|
-
2
|
|
121
|
-
)
|
|
122
|
-
],
|
|
123
|
-
2
|
|
124
|
-
),
|
|
125
|
-
_ctx.$slots.extra ? (vue.openBlock(), vue.createElementBlock(
|
|
126
|
-
"div",
|
|
127
|
-
{
|
|
128
|
-
key: 0,
|
|
129
|
-
class: vue.normalizeClass(vue.unref(ns).e("extra"))
|
|
130
|
-
},
|
|
131
|
-
[
|
|
132
|
-
vue.renderSlot(_ctx.$slots, "extra")
|
|
133
|
-
],
|
|
134
|
-
2
|
|
135
|
-
)) : vue.createCommentVNode("v-if", true)
|
|
136
|
-
],
|
|
137
|
-
2
|
|
138
|
-
),
|
|
139
|
-
_ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock(
|
|
140
|
-
"div",
|
|
141
|
-
{
|
|
142
|
-
key: 1,
|
|
143
|
-
class: vue.normalizeClass(vue.unref(ns).e("main"))
|
|
144
|
-
},
|
|
145
|
-
[
|
|
146
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
147
|
-
],
|
|
148
|
-
2
|
|
149
|
-
)) : vue.createCommentVNode("v-if", true)
|
|
150
|
-
],
|
|
151
|
-
2
|
|
152
|
-
);
|
|
153
|
-
};
|
|
14
|
+
title: String,
|
|
15
|
+
content: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: ""
|
|
154
18
|
}
|
|
155
19
|
});
|
|
156
|
-
|
|
20
|
+
const pageHeaderEmits = {
|
|
21
|
+
back: () => true
|
|
22
|
+
};
|
|
157
23
|
|
|
158
|
-
exports
|
|
24
|
+
exports.pageHeaderEmits = pageHeaderEmits;
|
|
25
|
+
exports.pageHeaderProps = pageHeaderProps;
|
|
159
26
|
//# sourceMappingURL=page-header2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-header2.js","sources":["../../../../../../packages/components/page-header/src/page-header.
|
|
1
|
+
{"version":3,"file":"page-header2.js","sources":["../../../../../../packages/components/page-header/src/page-header.ts"],"sourcesContent":["import { buildProps, iconPropType } from '@element-plus/utils'\nimport { Back } from '@element-plus/icons-vue'\n\nimport type { ExtractPropTypes, ExtractPublicPropTypes } from 'vue'\nimport type PageHeader from './page-header.vue'\n\nexport const pageHeaderProps = buildProps({\n /**\n * @description icon component of page header\n */\n icon: {\n type: iconPropType,\n default: () => Back,\n },\n /**\n * @description main title of page header\n */\n title: String,\n /**\n * @description content of page header\n */\n content: {\n type: String,\n default: '',\n },\n} as const)\nexport type PageHeaderProps = ExtractPropTypes<typeof pageHeaderProps>\nexport type PageHeaderPropsPublic = ExtractPublicPropTypes<\n typeof pageHeaderProps\n>\n\nexport const pageHeaderEmits = {\n back: () => true,\n}\nexport type PageHeaderEmits = typeof pageHeaderEmits\n\nexport type PageHeaderInstance = InstanceType<typeof PageHeader> & unknown\n"],"names":["buildProps","iconPropType","Back"],"mappings":";;;;;;;;AAMO,MAAM,kBAAkBA,kBAAW,CAAA;AAAA,EAIxC,IAAM,EAAA;AAAA,IACJ,IAAM,EAAAC,iBAAA;AAAA,IACN,SAAS,MAAMC,aAAA;AAAA,GACjB;AAAA,EAIA,KAAO,EAAA,MAAA;AAAA,EAIP,OAAS,EAAA;AAAA,IACP,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AACF,CAAU,EAAA;AAMH,MAAM,eAAkB,GAAA;AAAA,EAC7B,MAAM,MAAM,IAAA;AACd;;;;;"}
|
|
@@ -2,77 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var usePagination = require('../usePagination.js');
|
|
8
|
-
var jumper = require('./jumper2.js');
|
|
9
|
-
var pluginVue_exportHelper = require('../../../../_virtual/plugin-vue_export-helper.js');
|
|
10
|
-
var index = require('../../../../hooks/use-locale/index.js');
|
|
11
|
-
var index$1 = require('../../../../hooks/use-namespace/index.js');
|
|
5
|
+
var runtime = require('../../../../utils/vue/props/runtime.js');
|
|
6
|
+
var size = require('../../../../constants/size.js');
|
|
12
7
|
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
},
|
|
18
|
-
__name: "jumper",
|
|
19
|
-
props: jumper.paginationJumperProps,
|
|
20
|
-
setup(__props) {
|
|
21
|
-
const { t } = index.useLocale();
|
|
22
|
-
const ns = index$1.useNamespace("pagination");
|
|
23
|
-
const { pageCount, disabled, currentPage, changeEvent } = usePagination.usePagination();
|
|
24
|
-
const userInput = vue.ref();
|
|
25
|
-
const innerValue = vue.computed(() => {
|
|
26
|
-
var _a;
|
|
27
|
-
return (_a = userInput.value) != null ? _a : currentPage == null ? void 0 : currentPage.value;
|
|
28
|
-
});
|
|
29
|
-
function handleInput(val) {
|
|
30
|
-
userInput.value = val ? +val : "";
|
|
31
|
-
}
|
|
32
|
-
function handleChange(val) {
|
|
33
|
-
val = Math.trunc(+val);
|
|
34
|
-
changeEvent == null ? void 0 : changeEvent(val);
|
|
35
|
-
userInput.value = void 0;
|
|
36
|
-
}
|
|
37
|
-
return (_ctx, _cache) => {
|
|
38
|
-
return vue.openBlock(), vue.createElementBlock("span", {
|
|
39
|
-
class: vue.normalizeClass(vue.unref(ns).e("jump")),
|
|
40
|
-
disabled: vue.unref(disabled)
|
|
41
|
-
}, [
|
|
42
|
-
vue.createElementVNode(
|
|
43
|
-
"span",
|
|
44
|
-
{
|
|
45
|
-
class: vue.normalizeClass([vue.unref(ns).e("goto")])
|
|
46
|
-
},
|
|
47
|
-
vue.toDisplayString(vue.unref(t)("el.pagination.goto")),
|
|
48
|
-
3
|
|
49
|
-
),
|
|
50
|
-
vue.createVNode(vue.unref(index$2.ElInput), {
|
|
51
|
-
size: _ctx.size,
|
|
52
|
-
class: vue.normalizeClass([vue.unref(ns).e("editor"), vue.unref(ns).is("in-pagination")]),
|
|
53
|
-
min: 1,
|
|
54
|
-
max: vue.unref(pageCount),
|
|
55
|
-
disabled: vue.unref(disabled),
|
|
56
|
-
"model-value": innerValue.value,
|
|
57
|
-
"validate-event": false,
|
|
58
|
-
"aria-label": vue.unref(t)("el.pagination.page"),
|
|
59
|
-
type: "number",
|
|
60
|
-
"onUpdate:modelValue": handleInput,
|
|
61
|
-
onChange: handleChange
|
|
62
|
-
}, null, 8, ["size", "class", "max", "disabled", "model-value", "aria-label"]),
|
|
63
|
-
vue.createElementVNode(
|
|
64
|
-
"span",
|
|
65
|
-
{
|
|
66
|
-
class: vue.normalizeClass([vue.unref(ns).e("classifier")])
|
|
67
|
-
},
|
|
68
|
-
vue.toDisplayString(vue.unref(t)("el.pagination.pageClassifier")),
|
|
69
|
-
3
|
|
70
|
-
)
|
|
71
|
-
], 10, _hoisted_1);
|
|
72
|
-
};
|
|
8
|
+
const paginationJumperProps = runtime.buildProps({
|
|
9
|
+
size: {
|
|
10
|
+
type: String,
|
|
11
|
+
values: size.componentSizes
|
|
73
12
|
}
|
|
74
13
|
});
|
|
75
|
-
var Jumper = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/jumper.vue"]]);
|
|
76
14
|
|
|
77
|
-
exports
|
|
15
|
+
exports.paginationJumperProps = paginationJumperProps;
|
|
78
16
|
//# sourceMappingURL=jumper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jumper.js","sources":["../../../../../../../packages/components/pagination/src/components/jumper.
|
|
1
|
+
{"version":3,"file":"jumper.js","sources":["../../../../../../../packages/components/pagination/src/components/jumper.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport { componentSizes } from '@element-plus/constants'\n\nimport type { ExtractPropTypes, ExtractPublicPropTypes } from 'vue'\nimport type Jumper from './jumper.vue'\n\nexport const paginationJumperProps = buildProps({\n size: {\n type: String,\n values: componentSizes,\n },\n} as const)\n\nexport type PaginationJumperProps = ExtractPropTypes<\n typeof paginationJumperProps\n>\nexport type PaginationJumperPropsPublic = ExtractPublicPropTypes<\n typeof paginationJumperProps\n>\n\nexport type PaginationJumperInstance = InstanceType<typeof Jumper> & unknown\n"],"names":["buildProps","componentSizes"],"mappings":";;;;;;;AAMO,MAAM,wBAAwBA,kBAAW,CAAA;AAAA,EAC9C,IAAM,EAAA;AAAA,IACJ,IAAM,EAAA,MAAA;AAAA,IACN,MAAQ,EAAAC,mBAAA;AAAA,GACV;AACF,CAAU;;;;"}
|
|
@@ -2,15 +2,77 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
var
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var index$2 = require('../../../input/index.js');
|
|
7
|
+
var usePagination = require('../usePagination.js');
|
|
8
|
+
var jumper = require('./jumper.js');
|
|
9
|
+
var pluginVue_exportHelper = require('../../../../_virtual/plugin-vue_export-helper.js');
|
|
10
|
+
var index = require('../../../../hooks/use-locale/index.js');
|
|
11
|
+
var index$1 = require('../../../../hooks/use-namespace/index.js');
|
|
7
12
|
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
13
|
+
const _hoisted_1 = ["disabled"];
|
|
14
|
+
const _sfc_main = vue.defineComponent({
|
|
15
|
+
...{
|
|
16
|
+
name: "ElPaginationJumper"
|
|
17
|
+
},
|
|
18
|
+
__name: "jumper",
|
|
19
|
+
props: jumper.paginationJumperProps,
|
|
20
|
+
setup(__props) {
|
|
21
|
+
const { t } = index.useLocale();
|
|
22
|
+
const ns = index$1.useNamespace("pagination");
|
|
23
|
+
const { pageCount, disabled, currentPage, changeEvent } = usePagination.usePagination();
|
|
24
|
+
const userInput = vue.ref();
|
|
25
|
+
const innerValue = vue.computed(() => {
|
|
26
|
+
var _a;
|
|
27
|
+
return (_a = userInput.value) != null ? _a : currentPage == null ? void 0 : currentPage.value;
|
|
28
|
+
});
|
|
29
|
+
function handleInput(val) {
|
|
30
|
+
userInput.value = val ? +val : "";
|
|
31
|
+
}
|
|
32
|
+
function handleChange(val) {
|
|
33
|
+
val = Math.trunc(+val);
|
|
34
|
+
changeEvent == null ? void 0 : changeEvent(val);
|
|
35
|
+
userInput.value = void 0;
|
|
36
|
+
}
|
|
37
|
+
return (_ctx, _cache) => {
|
|
38
|
+
return vue.openBlock(), vue.createElementBlock("span", {
|
|
39
|
+
class: vue.normalizeClass(vue.unref(ns).e("jump")),
|
|
40
|
+
disabled: vue.unref(disabled)
|
|
41
|
+
}, [
|
|
42
|
+
vue.createElementVNode(
|
|
43
|
+
"span",
|
|
44
|
+
{
|
|
45
|
+
class: vue.normalizeClass([vue.unref(ns).e("goto")])
|
|
46
|
+
},
|
|
47
|
+
vue.toDisplayString(vue.unref(t)("el.pagination.goto")),
|
|
48
|
+
3
|
|
49
|
+
),
|
|
50
|
+
vue.createVNode(vue.unref(index$2.ElInput), {
|
|
51
|
+
size: _ctx.size,
|
|
52
|
+
class: vue.normalizeClass([vue.unref(ns).e("editor"), vue.unref(ns).is("in-pagination")]),
|
|
53
|
+
min: 1,
|
|
54
|
+
max: vue.unref(pageCount),
|
|
55
|
+
disabled: vue.unref(disabled),
|
|
56
|
+
"model-value": innerValue.value,
|
|
57
|
+
"validate-event": false,
|
|
58
|
+
"aria-label": vue.unref(t)("el.pagination.page"),
|
|
59
|
+
type: "number",
|
|
60
|
+
"onUpdate:modelValue": handleInput,
|
|
61
|
+
onChange: handleChange
|
|
62
|
+
}, null, 8, ["size", "class", "max", "disabled", "model-value", "aria-label"]),
|
|
63
|
+
vue.createElementVNode(
|
|
64
|
+
"span",
|
|
65
|
+
{
|
|
66
|
+
class: vue.normalizeClass([vue.unref(ns).e("classifier")])
|
|
67
|
+
},
|
|
68
|
+
vue.toDisplayString(vue.unref(t)("el.pagination.pageClassifier")),
|
|
69
|
+
3
|
|
70
|
+
)
|
|
71
|
+
], 10, _hoisted_1);
|
|
72
|
+
};
|
|
12
73
|
}
|
|
13
74
|
});
|
|
75
|
+
var Jumper = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/jumper.vue"]]);
|
|
14
76
|
|
|
15
|
-
exports
|
|
77
|
+
exports["default"] = Jumper;
|
|
16
78
|
//# sourceMappingURL=jumper2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jumper2.js","sources":["../../../../../../../packages/components/pagination/src/components/jumper.
|
|
1
|
+
{"version":3,"file":"jumper2.js","sources":["../../../../../../../packages/components/pagination/src/components/jumper.vue"],"sourcesContent":["<template>\n <span :class=\"ns.e('jump')\" :disabled=\"disabled\">\n <span :class=\"[ns.e('goto')]\">{{ t('el.pagination.goto') }}</span>\n <el-input\n :size=\"size\"\n :class=\"[ns.e('editor'), ns.is('in-pagination')]\"\n :min=\"1\"\n :max=\"pageCount\"\n :disabled=\"disabled\"\n :model-value=\"innerValue\"\n :validate-event=\"false\"\n :aria-label=\"t('el.pagination.page')\"\n type=\"number\"\n @update:model-value=\"handleInput\"\n @change=\"handleChange\"\n />\n <span :class=\"[ns.e('classifier')]\">{{\n t('el.pagination.pageClassifier')\n }}</span>\n </span>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, ref } from 'vue'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport ElInput from '@element-plus/components/input'\nimport { usePagination } from '../usePagination'\nimport { paginationJumperProps } from './jumper'\n\ndefineOptions({\n name: 'ElPaginationJumper',\n})\n\ndefineProps(paginationJumperProps)\nconst { t } = useLocale()\nconst ns = useNamespace('pagination')\nconst { pageCount, disabled, currentPage, changeEvent } = usePagination()\nconst userInput = ref<number | string>()\nconst innerValue = computed(() => userInput.value ?? currentPage?.value)\n\nfunction handleInput(val: number | string) {\n userInput.value = val ? +val : ''\n}\n\nfunction handleChange(val: number | string) {\n val = Math.trunc(+val)\n changeEvent?.(val)\n userInput.value = undefined\n}\n</script>\n"],"names":["useLocale","useNamespace","usePagination","ref","computed","_createElementBlock","_normalizeClass","_unref","_createElementVNode","_createVNode","ElInput","size"],"mappings":";;;;;;;;;;;;;;;;;;;;AAkCM,IAAA,MAAA,EAAE,CAAE,EAAA,GAAIA,eAAU,EAAA,CAAA;AAClB,IAAA,MAAA,EAAA,GAAKC,qBAAa,YAAY,CAAA,CAAA;AACpC,IAAA,MAAM,EAAE,SAAW,EAAA,QAAA,EAAU,WAAa,EAAA,WAAA,KAAgBC,2BAAc,EAAA,CAAA;AACxE,IAAA,MAAM,YAAYC,OAAqB,EAAA,CAAA;AACvC,IAAM,MAAA,UAAA,GAAaC,aAAS,MAAA;;AAAM,MAAU,OAAA,CAAA,EAAA,GAAA,SAAA,CAAA,KAAA,KAAV,YAAmB,WAAa,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,WAAA,CAAA,KAAA,CAAA;AAAA,KAAK,CAAA,CAAA;AAEvE,IAAA,SAAS,YAAY,GAAsB,EAAA;AAC/B,MAAA,SAAA,CAAA,KAAA,GAAQ,GAAM,GAAA,CAAC,GAAM,GAAA,EAAA,CAAA;AAAA,KACjC;AAEA,IAAA,SAAS,aAAa,GAAsB,EAAA;AACpC,MAAA,GAAA,GAAA,IAAA,CAAK,KAAM,CAAA,CAAC,GAAG,CAAA,CAAA;AACrB,MAAc,WAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,WAAA,CAAA,GAAA,CAAA,CAAA;AACd,MAAA,SAAA,CAAU,KAAQ,GAAA,KAAA,CAAA,CAAA;AAAA,KACpB;;4BA/CE,EAAAC,sBAAA,CAkBO,MAAA,EAAA;AAAA,QAlBA,OAAKC,kBAAE,CAAAC,SAAA,CAAA,EAAA,CAAG,CAAA,CAAA,CAAC,MAAA,CAAA,CAAA;AAAA,QAAW,QAAA,EAAUA,UAAA,QAAA,CAAA;AAAA,OAAA,EAAA;AAAA,QACrCC,sBAAA;AAAA,UAAkE,MAAA;AAAA,UAAA;AAAA,YAA3D,KAAA,EAAKF,mBAAG,CAAAC,SAAA,CAAA,EAAA,CAAG,CAAA,CAAA,CAAC,MAAA,CAAA,CAAA,CAAA;AAAA,WAAA;AAAA,6BAAc,CAAAA,SAAA,CAAC,CAAA,CAAA,CAAA,oBAAA,CAAA,CAAA;AAAA,UAAA,CAAA;AAAA,SAAA;AAAA,QAClCE,eAAA,CAYEF,SAAA,CAAAG,eAAA,CAAA,EAAA;AAAA,UAXC,MAAMC,IAAAA,CAAAA,IAAAA;AAAAA,UACN,KAAK,EAAAL,kBAAA,CAAG,CAAAC,SAAA,CAAA,EAAA,CAAG,CAAA,CAAA,CAAC,QAAA,CAAA,EAAYA,cAAG,EAAE,CAAA,eAAA,CAAA,CAAA,CAAA;AAAA,UAC7B,GAAK,EAAA,CAAA;AAAA,UACL,GAAA,EAAKA,UAAA,SAAA,CAAA;AAAA,UACL,QAAA,EAAUA,UAAA,QAAA,CAAA;AAAA,UACV,eAAa,UAAA,CAAA,KAAA;AAAA,UACb,gBAAgB,EAAA,KAAA;AAAA,UAChB,YAAY,EAAAA,SAAA,CAAC,CAAA,CAAA,CAAA,oBAAA,CAAA;AAAA,UACd,IAAK,EAAA,QAAA;AAAA,UACJ,qBAAoB,EAAA,WAAA;AAAA,UACpB,QAAQ,EAAA,YAAA;AAAA,SAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,MAAA,EAAA,SAAA,KAAA,EAAA,UAAA,EAAA,aAAA,EAAA,YAAA,CAAA,CAAA;AAAA,QAEXC,sBAAA;AAAA,UAES,MAAA;AAAA,UAAA;AAAA,YAFF,KAAA,EAAKF,mBAAG,CAAAC,SAAA,CAAA,EAAA,CAAG,CAAA,CAAA,CAAC,YAAA,CAAA,CAAA,CAAA;AAAA,WAAA;AAAA,6BACjB,CAAAA,SAAA,CAAC,CAAA,CAAA,CAAA,8BAAA,CAAA,CAAA;AAAA,UAAA,CAAA;AAAA,SAAA;AAAA,OAAA,EAAA,IAAA,UAAA,CAAA,CAAA;AAAA;;;;;;;"}
|
|
@@ -2,237 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
var iconsVue = require('@element-plus/icons-vue');
|
|
7
|
-
var pager = require('./pager2.js');
|
|
8
|
-
var pluginVue_exportHelper = require('../../../../_virtual/plugin-vue_export-helper.js');
|
|
9
|
-
var event = require('../../../../constants/event.js');
|
|
10
|
-
var index = require('../../../../hooks/use-namespace/index.js');
|
|
11
|
-
var index$1 = require('../../../../hooks/use-locale/index.js');
|
|
5
|
+
var runtime = require('../../../../utils/vue/props/runtime.js');
|
|
12
6
|
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
const _hoisted_5 = ["aria-current", "aria-label", "tabindex"];
|
|
18
|
-
const _sfc_main = vue.defineComponent({
|
|
19
|
-
...{
|
|
20
|
-
name: "ElPaginationPager"
|
|
7
|
+
const paginationPagerProps = runtime.buildProps({
|
|
8
|
+
currentPage: {
|
|
9
|
+
type: Number,
|
|
10
|
+
default: 1
|
|
21
11
|
},
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
const showPrevMore = vue.ref(false);
|
|
32
|
-
const showNextMore = vue.ref(false);
|
|
33
|
-
const quickPrevHover = vue.ref(false);
|
|
34
|
-
const quickNextHover = vue.ref(false);
|
|
35
|
-
const quickPrevFocus = vue.ref(false);
|
|
36
|
-
const quickNextFocus = vue.ref(false);
|
|
37
|
-
const pagers = vue.computed(() => {
|
|
38
|
-
const pagerCount = props.pagerCount;
|
|
39
|
-
const halfPagerCount = (pagerCount - 1) / 2;
|
|
40
|
-
const currentPage = Number(props.currentPage);
|
|
41
|
-
const pageCount = Number(props.pageCount);
|
|
42
|
-
let showPrevMore2 = false;
|
|
43
|
-
let showNextMore2 = false;
|
|
44
|
-
if (pageCount > pagerCount) {
|
|
45
|
-
if (currentPage > pagerCount - halfPagerCount) {
|
|
46
|
-
showPrevMore2 = true;
|
|
47
|
-
}
|
|
48
|
-
if (currentPage < pageCount - halfPagerCount) {
|
|
49
|
-
showNextMore2 = true;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
const array = [];
|
|
53
|
-
if (showPrevMore2 && !showNextMore2) {
|
|
54
|
-
const startPage = pageCount - (pagerCount - 2);
|
|
55
|
-
for (let i = startPage; i < pageCount; i++) {
|
|
56
|
-
array.push(i);
|
|
57
|
-
}
|
|
58
|
-
} else if (!showPrevMore2 && showNextMore2) {
|
|
59
|
-
for (let i = 2; i < pagerCount; i++) {
|
|
60
|
-
array.push(i);
|
|
61
|
-
}
|
|
62
|
-
} else if (showPrevMore2 && showNextMore2) {
|
|
63
|
-
const offset = Math.floor(pagerCount / 2) - 1;
|
|
64
|
-
for (let i = currentPage - offset; i <= currentPage + offset; i++) {
|
|
65
|
-
array.push(i);
|
|
66
|
-
}
|
|
67
|
-
} else {
|
|
68
|
-
for (let i = 2; i < pageCount; i++) {
|
|
69
|
-
array.push(i);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
return array;
|
|
73
|
-
});
|
|
74
|
-
const prevMoreKls = vue.computed(() => [
|
|
75
|
-
"more",
|
|
76
|
-
"btn-quickprev",
|
|
77
|
-
nsIcon.b(),
|
|
78
|
-
nsPager.is("disabled", props.disabled)
|
|
79
|
-
]);
|
|
80
|
-
const nextMoreKls = vue.computed(() => [
|
|
81
|
-
"more",
|
|
82
|
-
"btn-quicknext",
|
|
83
|
-
nsIcon.b(),
|
|
84
|
-
nsPager.is("disabled", props.disabled)
|
|
85
|
-
]);
|
|
86
|
-
const tabindex = vue.computed(() => props.disabled ? -1 : 0);
|
|
87
|
-
vue.watch(
|
|
88
|
-
() => [props.pageCount, props.pagerCount, props.currentPage],
|
|
89
|
-
([pageCount, pagerCount, currentPage]) => {
|
|
90
|
-
const halfPagerCount = (pagerCount - 1) / 2;
|
|
91
|
-
let showPrev = false;
|
|
92
|
-
let showNext = false;
|
|
93
|
-
if (pageCount > pagerCount) {
|
|
94
|
-
showPrev = currentPage > pagerCount - halfPagerCount;
|
|
95
|
-
showNext = currentPage < pageCount - halfPagerCount;
|
|
96
|
-
}
|
|
97
|
-
quickPrevHover.value && (quickPrevHover.value = showPrev);
|
|
98
|
-
quickNextHover.value && (quickNextHover.value = showNext);
|
|
99
|
-
showPrevMore.value = showPrev;
|
|
100
|
-
showNextMore.value = showNext;
|
|
101
|
-
},
|
|
102
|
-
{ immediate: true }
|
|
103
|
-
);
|
|
104
|
-
function onMouseEnter(forward = false) {
|
|
105
|
-
if (props.disabled)
|
|
106
|
-
return;
|
|
107
|
-
if (forward) {
|
|
108
|
-
quickPrevHover.value = true;
|
|
109
|
-
} else {
|
|
110
|
-
quickNextHover.value = true;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
function onFocus(forward = false) {
|
|
114
|
-
if (forward) {
|
|
115
|
-
quickPrevFocus.value = true;
|
|
116
|
-
} else {
|
|
117
|
-
quickNextFocus.value = true;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
function onEnter(e) {
|
|
121
|
-
const target = e.target;
|
|
122
|
-
if (target.tagName.toLowerCase() === "li" && Array.from(target.classList).includes("number")) {
|
|
123
|
-
const newPage = Number(target.textContent);
|
|
124
|
-
if (newPage !== props.currentPage) {
|
|
125
|
-
emit(event.CHANGE_EVENT, newPage);
|
|
126
|
-
}
|
|
127
|
-
} else if (target.tagName.toLowerCase() === "li" && Array.from(target.classList).includes("more")) {
|
|
128
|
-
onPagerClick(e);
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
function onPagerClick(event$1) {
|
|
132
|
-
const target = event$1.target;
|
|
133
|
-
if (target.tagName.toLowerCase() === "ul" || props.disabled) {
|
|
134
|
-
return;
|
|
135
|
-
}
|
|
136
|
-
let newPage = Number(target.textContent);
|
|
137
|
-
const pageCount = props.pageCount;
|
|
138
|
-
const currentPage = props.currentPage;
|
|
139
|
-
const pagerCountOffset = props.pagerCount - 2;
|
|
140
|
-
if (target.className.includes("more")) {
|
|
141
|
-
if (target.className.includes("quickprev")) {
|
|
142
|
-
newPage = currentPage - pagerCountOffset;
|
|
143
|
-
} else if (target.className.includes("quicknext")) {
|
|
144
|
-
newPage = currentPage + pagerCountOffset;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
if (!Number.isNaN(+newPage)) {
|
|
148
|
-
if (newPage < 1) {
|
|
149
|
-
newPage = 1;
|
|
150
|
-
}
|
|
151
|
-
if (newPage > pageCount) {
|
|
152
|
-
newPage = pageCount;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
if (newPage !== currentPage) {
|
|
156
|
-
emit(event.CHANGE_EVENT, newPage);
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
return (_ctx, _cache) => {
|
|
160
|
-
return vue.openBlock(), vue.createElementBlock(
|
|
161
|
-
"ul",
|
|
162
|
-
{
|
|
163
|
-
class: vue.normalizeClass(vue.unref(nsPager).b()),
|
|
164
|
-
onClick: onPagerClick,
|
|
165
|
-
onKeyup: vue.withKeys(onEnter, ["enter"])
|
|
166
|
-
},
|
|
167
|
-
[
|
|
168
|
-
_ctx.pageCount > 0 ? (vue.openBlock(), vue.createElementBlock("li", {
|
|
169
|
-
key: 0,
|
|
170
|
-
class: vue.normalizeClass([[
|
|
171
|
-
vue.unref(nsPager).is("active", _ctx.currentPage === 1),
|
|
172
|
-
vue.unref(nsPager).is("disabled", _ctx.disabled)
|
|
173
|
-
], "number"]),
|
|
174
|
-
"aria-current": _ctx.currentPage === 1,
|
|
175
|
-
"aria-label": vue.unref(t)("el.pagination.currentPage", { pager: 1 }),
|
|
176
|
-
tabindex: tabindex.value
|
|
177
|
-
}, " 1 ", 10, _hoisted_1)) : vue.createCommentVNode("v-if", true),
|
|
178
|
-
showPrevMore.value ? (vue.openBlock(), vue.createElementBlock("li", {
|
|
179
|
-
key: 1,
|
|
180
|
-
class: vue.normalizeClass(prevMoreKls.value),
|
|
181
|
-
tabindex: tabindex.value,
|
|
182
|
-
"aria-label": vue.unref(t)("el.pagination.prevPages", { pager: _ctx.pagerCount - 2 }),
|
|
183
|
-
onMouseenter: _cache[0] || (_cache[0] = ($event) => onMouseEnter(true)),
|
|
184
|
-
onMouseleave: _cache[1] || (_cache[1] = ($event) => quickPrevHover.value = false),
|
|
185
|
-
onFocus: _cache[2] || (_cache[2] = ($event) => onFocus(true)),
|
|
186
|
-
onBlur: _cache[3] || (_cache[3] = ($event) => quickPrevFocus.value = false)
|
|
187
|
-
}, [
|
|
188
|
-
(quickPrevHover.value || quickPrevFocus.value) && !_ctx.disabled ? (vue.openBlock(), vue.createBlock(vue.unref(iconsVue.DArrowLeft), { key: 0 })) : (vue.openBlock(), vue.createBlock(vue.unref(iconsVue.MoreFilled), { key: 1 }))
|
|
189
|
-
], 42, _hoisted_2)) : vue.createCommentVNode("v-if", true),
|
|
190
|
-
(vue.openBlock(true), vue.createElementBlock(
|
|
191
|
-
vue.Fragment,
|
|
192
|
-
null,
|
|
193
|
-
vue.renderList(pagers.value, (pager) => {
|
|
194
|
-
return vue.openBlock(), vue.createElementBlock("li", {
|
|
195
|
-
key: pager,
|
|
196
|
-
class: vue.normalizeClass([[
|
|
197
|
-
vue.unref(nsPager).is("active", _ctx.currentPage === pager),
|
|
198
|
-
vue.unref(nsPager).is("disabled", _ctx.disabled)
|
|
199
|
-
], "number"]),
|
|
200
|
-
"aria-current": _ctx.currentPage === pager,
|
|
201
|
-
"aria-label": vue.unref(t)("el.pagination.currentPage", { pager }),
|
|
202
|
-
tabindex: tabindex.value
|
|
203
|
-
}, vue.toDisplayString(pager), 11, _hoisted_3);
|
|
204
|
-
}),
|
|
205
|
-
128
|
|
206
|
-
)),
|
|
207
|
-
showNextMore.value ? (vue.openBlock(), vue.createElementBlock("li", {
|
|
208
|
-
key: 2,
|
|
209
|
-
class: vue.normalizeClass(nextMoreKls.value),
|
|
210
|
-
tabindex: tabindex.value,
|
|
211
|
-
"aria-label": vue.unref(t)("el.pagination.nextPages", { pager: _ctx.pagerCount - 2 }),
|
|
212
|
-
onMouseenter: _cache[4] || (_cache[4] = ($event) => onMouseEnter()),
|
|
213
|
-
onMouseleave: _cache[5] || (_cache[5] = ($event) => quickNextHover.value = false),
|
|
214
|
-
onFocus: _cache[6] || (_cache[6] = ($event) => onFocus()),
|
|
215
|
-
onBlur: _cache[7] || (_cache[7] = ($event) => quickNextFocus.value = false)
|
|
216
|
-
}, [
|
|
217
|
-
(quickNextHover.value || quickNextFocus.value) && !_ctx.disabled ? (vue.openBlock(), vue.createBlock(vue.unref(iconsVue.DArrowRight), { key: 0 })) : (vue.openBlock(), vue.createBlock(vue.unref(iconsVue.MoreFilled), { key: 1 }))
|
|
218
|
-
], 42, _hoisted_4)) : vue.createCommentVNode("v-if", true),
|
|
219
|
-
_ctx.pageCount > 1 ? (vue.openBlock(), vue.createElementBlock("li", {
|
|
220
|
-
key: 3,
|
|
221
|
-
class: vue.normalizeClass([[
|
|
222
|
-
vue.unref(nsPager).is("active", _ctx.currentPage === _ctx.pageCount),
|
|
223
|
-
vue.unref(nsPager).is("disabled", _ctx.disabled)
|
|
224
|
-
], "number"]),
|
|
225
|
-
"aria-current": _ctx.currentPage === _ctx.pageCount,
|
|
226
|
-
"aria-label": vue.unref(t)("el.pagination.currentPage", { pager: _ctx.pageCount }),
|
|
227
|
-
tabindex: tabindex.value
|
|
228
|
-
}, vue.toDisplayString(_ctx.pageCount), 11, _hoisted_5)) : vue.createCommentVNode("v-if", true)
|
|
229
|
-
],
|
|
230
|
-
34
|
|
231
|
-
);
|
|
232
|
-
};
|
|
233
|
-
}
|
|
12
|
+
pageCount: {
|
|
13
|
+
type: Number,
|
|
14
|
+
required: true
|
|
15
|
+
},
|
|
16
|
+
pagerCount: {
|
|
17
|
+
type: Number,
|
|
18
|
+
default: 7
|
|
19
|
+
},
|
|
20
|
+
disabled: Boolean
|
|
234
21
|
});
|
|
235
|
-
var Pager = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/pager.vue"]]);
|
|
236
22
|
|
|
237
|
-
exports
|
|
23
|
+
exports.paginationPagerProps = paginationPagerProps;
|
|
238
24
|
//# sourceMappingURL=pager.js.map
|