element-plus 2.1.10 → 2.1.11
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 +404 -1684
- package/dist/index.full.min.js +6 -6
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +10 -10
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +404 -1684
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/az.js +1 -1
- package/dist/locale/az.min.js +1 -1
- package/dist/locale/az.min.mjs +1 -1
- package/dist/locale/az.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/autocomplete/index.d.ts +29 -1
- package/es/components/autocomplete/src/autocomplete.mjs +1 -1
- package/es/components/autocomplete/src/autocomplete.vue.d.ts +29 -1
- package/es/components/avatar/src/avatar2.mjs +1 -1
- package/es/components/calendar/src/calendar2.mjs +1 -1
- package/es/components/calendar/src/calendar2.mjs.map +1 -1
- package/es/components/calendar/src/date-table2.mjs +3 -2
- package/es/components/calendar/src/date-table2.mjs.map +1 -1
- package/es/components/cascader/index.d.ts +38 -2
- package/es/components/cascader/src/index.mjs +1 -1
- package/es/components/cascader/src/index.vue.d.ts +19 -1
- package/es/components/col/src/col.d.ts +2 -0
- package/es/components/col/src/col.mjs.map +1 -1
- package/es/components/color-picker/src/index.mjs +4 -1
- package/es/components/color-picker/src/index.mjs.map +1 -1
- package/es/components/descriptions/src/descriptions-cell.mjs +1 -1
- package/es/components/dropdown/src/dropdown.mjs +1 -1
- package/es/components/dropdown/src/dropdown2.mjs +1 -1
- package/es/components/form/src/form-item2.mjs +1 -1
- package/es/components/icon/src/icon2.mjs +1 -1
- package/es/components/image/index.d.ts +8 -0
- package/es/components/image/src/image.d.ts +1 -0
- package/es/components/image/src/image.mjs +4 -0
- package/es/components/image/src/image.mjs.map +1 -1
- package/es/components/image/src/image.vue.d.ts +8 -0
- package/es/components/image/src/image2.mjs +2 -1
- package/es/components/image/src/image2.mjs.map +1 -1
- package/es/components/image-viewer/index.d.ts +4 -0
- package/es/components/image-viewer/src/image-viewer.d.ts +1 -0
- package/es/components/image-viewer/src/image-viewer.mjs +4 -0
- package/es/components/image-viewer/src/image-viewer.mjs.map +1 -1
- package/es/components/image-viewer/src/image-viewer.vue.d.ts +4 -0
- package/es/components/image-viewer/src/image-viewer2.mjs +1 -1
- package/es/components/image-viewer/src/image-viewer2.mjs.map +1 -1
- package/es/components/index.mjs +1 -1
- package/es/components/input/index.d.ts +10 -0
- package/es/components/input/src/input.d.ts +2 -0
- package/es/components/input/src/input.mjs +6 -0
- package/es/components/input/src/input.mjs.map +1 -1
- package/es/components/input/src/input.vue.d.ts +10 -0
- package/es/components/input/src/input2.mjs +30 -17
- package/es/components/input/src/input2.mjs.map +1 -1
- package/es/components/input-number/index.d.ts +20 -0
- package/es/components/input-number/src/input-number.vue.d.ts +20 -0
- package/es/components/popconfirm/src/popconfirm.mjs +1 -1
- package/es/components/popover/src/popover.mjs +1 -1
- package/es/components/scrollbar/src/scrollbar2.mjs +1 -1
- package/es/components/scrollbar/src/thumb.vue.d.ts +16 -16
- package/es/components/scrollbar/src/util.d.ts +18 -18
- package/es/components/scrollbar/src/util.mjs.map +1 -1
- package/es/components/select/src/select.mjs +6 -12
- package/es/components/select/src/select.mjs.map +1 -1
- package/es/components/select/src/useSelect.mjs +1 -1
- package/es/components/select/src/useSelect.mjs.map +1 -1
- package/es/components/select-v2/src/defaults.mjs +1 -1
- package/es/components/table/src/table/style-helper.mjs +1 -4
- package/es/components/table/src/table/style-helper.mjs.map +1 -1
- package/es/components/table-v2/index.d.ts +4 -1
- package/es/components/table-v2/index.mjs +3 -1
- package/es/components/table-v2/index.mjs.map +1 -1
- package/es/components/table-v2/src/column.d.ts +2 -2
- package/es/components/table-v2/src/components/cell.d.ts +4 -0
- package/es/components/table-v2/src/components/cell.mjs +22 -0
- package/es/components/table-v2/src/components/cell.mjs.map +1 -0
- package/{lib/components/table-v2/src → es/components/table-v2/src/components}/expand-icon.d.ts +1 -1
- package/es/components/table-v2/src/components/expand-icon.mjs +26 -0
- package/es/components/table-v2/src/components/expand-icon.mjs.map +1 -0
- package/es/components/table-v2/src/components/header-cell.d.ts +4 -0
- package/es/components/table-v2/src/components/header-cell.mjs +15 -0
- package/es/components/table-v2/src/components/header-cell.mjs.map +1 -0
- package/es/components/table-v2/src/{table-header-row.d.ts → components/header-row.d.ts} +6 -6
- package/es/components/table-v2/src/components/header-row.mjs +40 -0
- package/es/components/table-v2/src/components/header-row.mjs.map +1 -0
- package/{lib/components/table-v2/src/table-header.d.ts → es/components/table-v2/src/components/header.d.ts} +3 -3
- package/es/components/table-v2/src/components/header.mjs +96 -0
- package/es/components/table-v2/src/components/header.mjs.map +1 -0
- package/es/components/table-v2/src/components/index.d.ts +10 -0
- package/es/components/table-v2/src/components/index.mjs +8 -0
- package/es/components/table-v2/src/components/index.mjs.map +1 -0
- package/es/components/table-v2/src/{table-row.d.ts → components/row.d.ts} +18 -19
- package/es/components/table-v2/src/components/row.mjs +204 -0
- package/es/components/table-v2/src/components/row.mjs.map +1 -0
- package/es/components/table-v2/src/{sort-icon.d.ts → components/sort-icon.d.ts} +1 -1
- package/es/components/table-v2/src/components/sort-icon.mjs +19 -0
- package/es/components/table-v2/src/components/sort-icon.mjs.map +1 -0
- package/es/components/table-v2/src/composables/index.d.ts +5 -0
- package/es/components/table-v2/src/composables/index.mjs +6 -0
- package/es/components/table-v2/src/composables/index.mjs.map +1 -0
- package/{lib/components/table-v2/src → es/components/table-v2/src/composables}/use-columns.d.ts +8 -6
- package/es/components/table-v2/src/{use-columns.mjs → composables/use-columns.mjs} +26 -30
- package/es/components/table-v2/src/composables/use-columns.mjs.map +1 -0
- package/es/components/table-v2/src/composables/use-data.d.ts +17 -0
- package/es/components/table-v2/src/composables/use-data.mjs +44 -0
- package/es/components/table-v2/src/composables/use-data.mjs.map +1 -0
- package/es/components/table-v2/src/composables/use-row.d.ts +32 -0
- package/es/components/table-v2/src/composables/use-row.mjs +123 -0
- package/es/components/table-v2/src/composables/use-row.mjs.map +1 -0
- package/es/components/table-v2/src/composables/use-scrollbar.d.ts +26 -0
- package/es/components/table-v2/src/composables/use-scrollbar.mjs +55 -0
- package/es/components/table-v2/src/composables/use-scrollbar.mjs.map +1 -0
- package/es/components/table-v2/src/composables/use-styles.d.ts +25 -0
- package/es/components/table-v2/src/composables/use-styles.mjs +87 -0
- package/es/components/table-v2/src/composables/use-styles.mjs.map +1 -0
- package/es/components/table-v2/src/composables/utils.d.ts +3 -0
- package/es/components/table-v2/src/composables/utils.mjs +26 -0
- package/es/components/table-v2/src/composables/utils.mjs.map +1 -0
- package/es/components/table-v2/src/constants.d.ts +4 -0
- package/es/components/table-v2/src/constants.mjs +6 -1
- package/es/components/table-v2/src/constants.mjs.map +1 -1
- package/es/components/table-v2/src/grid.d.ts +4 -1
- package/es/components/table-v2/src/grid.mjs +5 -0
- package/es/components/table-v2/src/grid.mjs.map +1 -1
- package/es/components/table-v2/src/renderers/cell.d.ts +1 -1
- package/es/components/table-v2/src/renderers/cell.mjs +91 -0
- package/es/components/table-v2/src/renderers/cell.mjs.map +1 -0
- package/es/components/table-v2/src/renderers/empty.d.ts +7 -0
- package/es/components/table-v2/src/renderers/empty.mjs +15 -0
- package/es/components/table-v2/src/renderers/empty.mjs.map +1 -0
- package/es/components/table-v2/src/renderers/footer.d.ts +7 -0
- package/es/components/table-v2/src/renderers/footer.mjs +15 -0
- package/es/components/table-v2/src/renderers/footer.mjs.map +1 -0
- package/es/components/table-v2/src/renderers/header-cell.d.ts +1 -1
- package/es/components/table-v2/src/renderers/header-cell.mjs +65 -0
- package/es/components/table-v2/src/renderers/header-cell.mjs.map +1 -0
- package/es/components/table-v2/src/renderers/header.d.ts +1 -1
- package/es/components/table-v2/src/renderers/header.mjs +39 -0
- package/es/components/table-v2/src/renderers/header.mjs.map +1 -0
- package/es/components/table-v2/src/renderers/left-table.mjs +24 -0
- package/es/components/table-v2/src/renderers/left-table.mjs.map +1 -0
- package/es/components/table-v2/src/renderers/main-table.mjs +22 -0
- package/es/components/table-v2/src/renderers/main-table.mjs.map +1 -0
- package/es/components/table-v2/src/renderers/overlay.d.ts +3 -0
- package/es/components/table-v2/src/renderers/overlay.mjs +15 -0
- package/es/components/table-v2/src/renderers/overlay.mjs.map +1 -0
- package/es/components/table-v2/src/renderers/right-table.mjs +24 -0
- package/es/components/table-v2/src/renderers/right-table.mjs.map +1 -0
- package/es/components/table-v2/src/renderers/row.mjs +77 -0
- package/es/components/table-v2/src/renderers/row.mjs.map +1 -0
- package/es/components/table-v2/src/row.d.ts +6 -1
- package/es/components/table-v2/src/row.mjs.map +1 -1
- package/es/components/table-v2/src/table-grid.d.ts +8 -2
- package/es/components/table-v2/src/table-grid.mjs +221 -0
- package/es/components/table-v2/src/table-grid.mjs.map +1 -0
- package/es/components/table-v2/src/table-v2.d.ts +3 -12
- package/es/components/table-v2/src/table-v2.mjs +250 -0
- package/es/components/table-v2/src/table-v2.mjs.map +1 -0
- package/es/components/table-v2/src/table.d.ts +2 -5
- package/es/components/table-v2/src/table.mjs.map +1 -1
- package/es/components/table-v2/src/types.d.ts +15 -2
- package/es/components/table-v2/src/use-table.d.ts +20 -29
- package/es/components/table-v2/src/use-table.mjs +84 -238
- package/es/components/table-v2/src/use-table.mjs.map +1 -1
- package/es/components/table-v2/src/utils.mjs +1 -1
- package/es/components/table-v2/src/utils.mjs.map +1 -1
- package/es/components/tooltip/index.mjs +2 -2
- package/es/components/tooltip/src/content.mjs +1 -1
- package/es/components/tooltip/src/tooltip.mjs +62 -174
- package/es/components/tooltip/src/tooltip.mjs.map +1 -1
- package/es/components/tooltip/src/tooltip2.mjs +174 -62
- package/es/components/tooltip/src/tooltip2.mjs.map +1 -1
- package/es/components/tooltip/src/trigger.mjs +1 -1
- package/es/components/upload/index.d.ts +16 -12
- package/es/components/upload/src/upload-content.d.ts +1 -1
- package/es/components/upload/src/upload-content.vue.d.ts +4 -3
- package/es/components/upload/src/upload-content2.mjs +3 -1
- package/es/components/upload/src/upload-content2.mjs.map +1 -1
- package/es/components/upload/src/upload-list2.mjs +5 -3
- package/es/components/upload/src/upload-list2.mjs.map +1 -1
- package/es/components/upload/src/upload.d.ts +2 -2
- package/es/components/upload/src/upload.mjs +1 -1
- package/es/components/upload/src/upload.mjs.map +1 -1
- package/es/components/upload/src/upload.vue.d.ts +16 -12
- package/es/components/virtual-list/src/builders/build-grid.d.ts +11 -2
- package/es/components/virtual-list/src/builders/build-grid.mjs +7 -3
- package/es/components/virtual-list/src/builders/build-grid.mjs.map +1 -1
- package/es/components/virtual-list/src/components/dynamic-size-grid.d.ts +11 -2
- package/es/components/virtual-list/src/components/dynamic-size-grid.mjs +4 -2
- package/es/components/virtual-list/src/components/dynamic-size-grid.mjs.map +1 -1
- package/es/components/virtual-list/src/components/fixed-size-grid.d.ts +11 -2
- package/es/components/virtual-list/src/components/scrollbar.d.ts +2 -2
- package/es/components/virtual-list/src/props.d.ts +7 -3
- package/es/components/virtual-list/src/props.mjs +5 -1
- package/es/components/virtual-list/src/props.mjs.map +1 -1
- package/es/components/virtual-list/src/types.d.ts +7 -0
- package/es/components/virtual-list/src/utils.d.ts +10 -5
- package/es/components/virtual-list/src/utils.mjs.map +1 -1
- package/es/constants/index.mjs +1 -1
- package/es/constants/size.d.ts +0 -1
- package/es/constants/size.mjs +1 -4
- package/es/constants/size.mjs.map +1 -1
- package/es/directives/mousewheel/index.mjs +1 -7
- package/es/directives/mousewheel/index.mjs.map +1 -1
- package/es/hooks/index.d.ts +1 -0
- package/es/hooks/index.mjs +1 -0
- package/es/hooks/index.mjs.map +1 -1
- package/es/hooks/use-cursor/index.d.ts +2 -0
- package/es/hooks/use-cursor/index.mjs +46 -0
- package/es/hooks/use-cursor/index.mjs.map +1 -0
- package/es/hooks/use-draggable/index.mjs +1 -1
- package/es/index.mjs +3 -2
- package/es/index.mjs.map +1 -1
- package/es/utils/dom/index.mjs +1 -1
- package/es/utils/dom/style.d.ts +1 -0
- package/es/utils/dom/style.mjs +15 -3
- package/es/utils/dom/style.mjs.map +1 -1
- package/es/utils/index.mjs +2 -2
- package/es/utils/vue/index.d.ts +1 -1
- package/es/utils/vue/index.mjs +1 -1
- package/es/utils/vue/size.d.ts +1 -0
- package/es/utils/vue/size.mjs +9 -0
- package/es/utils/vue/size.mjs.map +1 -0
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/autocomplete/index.d.ts +29 -1
- package/lib/components/autocomplete/src/autocomplete.js +1 -1
- package/lib/components/autocomplete/src/autocomplete.vue.d.ts +29 -1
- package/lib/components/avatar/src/avatar2.js +1 -1
- package/lib/components/calendar/src/calendar2.js +1 -1
- package/lib/components/calendar/src/calendar2.js.map +1 -1
- package/lib/components/calendar/src/date-table2.js +3 -2
- package/lib/components/calendar/src/date-table2.js.map +1 -1
- package/lib/components/cascader/index.d.ts +38 -2
- package/lib/components/cascader/src/index.js +1 -1
- package/lib/components/cascader/src/index.vue.d.ts +19 -1
- package/lib/components/col/src/col.d.ts +2 -0
- package/lib/components/col/src/col.js.map +1 -1
- package/lib/components/color-picker/src/index.js +4 -1
- package/lib/components/color-picker/src/index.js.map +1 -1
- package/lib/components/descriptions/src/descriptions-cell.js +1 -1
- package/lib/components/dropdown/src/dropdown.js +1 -1
- package/lib/components/dropdown/src/dropdown2.js +1 -1
- package/lib/components/form/src/form-item2.js +1 -1
- package/lib/components/icon/src/icon2.js +1 -1
- package/lib/components/image/index.d.ts +8 -0
- package/lib/components/image/src/image.d.ts +1 -0
- package/lib/components/image/src/image.js +4 -0
- package/lib/components/image/src/image.js.map +1 -1
- package/lib/components/image/src/image.vue.d.ts +8 -0
- package/lib/components/image/src/image2.js +2 -1
- package/lib/components/image/src/image2.js.map +1 -1
- package/lib/components/image-viewer/index.d.ts +4 -0
- package/lib/components/image-viewer/src/image-viewer.d.ts +1 -0
- package/lib/components/image-viewer/src/image-viewer.js +4 -0
- package/lib/components/image-viewer/src/image-viewer.js.map +1 -1
- package/lib/components/image-viewer/src/image-viewer.vue.d.ts +4 -0
- package/lib/components/image-viewer/src/image-viewer2.js +1 -1
- package/lib/components/image-viewer/src/image-viewer2.js.map +1 -1
- package/lib/components/index.js +1 -1
- package/lib/components/input/index.d.ts +10 -0
- package/lib/components/input/src/input.d.ts +2 -0
- package/lib/components/input/src/input.js +6 -0
- package/lib/components/input/src/input.js.map +1 -1
- package/lib/components/input/src/input.vue.d.ts +10 -0
- package/lib/components/input/src/input2.js +35 -22
- package/lib/components/input/src/input2.js.map +1 -1
- package/lib/components/input-number/index.d.ts +20 -0
- package/lib/components/input-number/src/input-number.vue.d.ts +20 -0
- package/lib/components/popconfirm/src/popconfirm.js +1 -1
- package/lib/components/popover/src/popover.js +1 -1
- package/lib/components/scrollbar/src/scrollbar2.js +1 -1
- package/lib/components/scrollbar/src/thumb.vue.d.ts +16 -16
- package/lib/components/scrollbar/src/util.d.ts +18 -18
- package/lib/components/scrollbar/src/util.js.map +1 -1
- package/lib/components/select/src/select.js +6 -12
- package/lib/components/select/src/select.js.map +1 -1
- package/lib/components/select/src/useSelect.js +1 -1
- package/lib/components/select/src/useSelect.js.map +1 -1
- package/lib/components/select-v2/src/defaults.js +1 -1
- package/lib/components/table/src/table/style-helper.js +1 -4
- package/lib/components/table/src/table/style-helper.js.map +1 -1
- package/lib/components/table-v2/index.d.ts +4 -1
- package/lib/components/table-v2/index.js +13 -0
- package/lib/components/table-v2/index.js.map +1 -1
- package/lib/components/table-v2/src/column.d.ts +2 -2
- package/lib/components/table-v2/src/components/cell.d.ts +4 -0
- package/lib/components/table-v2/src/components/cell.js +26 -0
- package/lib/components/table-v2/src/components/cell.js.map +1 -0
- package/{es/components/table-v2/src → lib/components/table-v2/src/components}/expand-icon.d.ts +1 -1
- package/lib/components/table-v2/src/components/expand-icon.js +30 -0
- package/lib/components/table-v2/src/components/expand-icon.js.map +1 -0
- package/lib/components/table-v2/src/components/header-cell.d.ts +4 -0
- package/lib/components/table-v2/src/components/header-cell.js +19 -0
- package/lib/components/table-v2/src/components/header-cell.js.map +1 -0
- package/lib/components/table-v2/src/{table-header-row.d.ts → components/header-row.d.ts} +6 -6
- package/lib/components/table-v2/src/components/header-row.js +44 -0
- package/lib/components/table-v2/src/components/header-row.js.map +1 -0
- package/{es/components/table-v2/src/table-header.d.ts → lib/components/table-v2/src/components/header.d.ts} +3 -3
- package/lib/components/table-v2/src/components/header.js +100 -0
- package/lib/components/table-v2/src/components/header.js.map +1 -0
- package/lib/components/table-v2/src/components/index.d.ts +10 -0
- package/lib/components/table-v2/src/components/index.js +22 -0
- package/lib/components/table-v2/src/components/index.js.map +1 -0
- package/lib/components/table-v2/src/{table-row.d.ts → components/row.d.ts} +18 -19
- package/lib/components/table-v2/src/components/row.js +208 -0
- package/lib/components/table-v2/src/components/row.js.map +1 -0
- package/lib/components/table-v2/src/{sort-icon.d.ts → components/sort-icon.d.ts} +1 -1
- package/lib/components/table-v2/src/components/sort-icon.js +23 -0
- package/lib/components/table-v2/src/components/sort-icon.js.map +1 -0
- package/lib/components/table-v2/src/composables/index.d.ts +5 -0
- package/lib/components/table-v2/src/composables/index.js +18 -0
- package/lib/components/table-v2/src/composables/index.js.map +1 -0
- package/{es/components/table-v2/src → lib/components/table-v2/src/composables}/use-columns.d.ts +8 -6
- package/lib/components/table-v2/src/{use-columns.js → composables/use-columns.js} +27 -31
- package/lib/components/table-v2/src/composables/use-columns.js.map +1 -0
- package/lib/components/table-v2/src/composables/use-data.d.ts +17 -0
- package/lib/components/table-v2/src/composables/use-data.js +48 -0
- package/lib/components/table-v2/src/composables/use-data.js.map +1 -0
- package/lib/components/table-v2/src/composables/use-row.d.ts +32 -0
- package/lib/components/table-v2/src/composables/use-row.js +127 -0
- package/lib/components/table-v2/src/composables/use-row.js.map +1 -0
- package/lib/components/table-v2/src/composables/use-scrollbar.d.ts +26 -0
- package/lib/components/table-v2/src/composables/use-scrollbar.js +59 -0
- package/lib/components/table-v2/src/composables/use-scrollbar.js.map +1 -0
- package/lib/components/table-v2/src/composables/use-styles.d.ts +25 -0
- package/lib/components/table-v2/src/composables/use-styles.js +91 -0
- package/lib/components/table-v2/src/composables/use-styles.js.map +1 -0
- package/lib/components/table-v2/src/composables/utils.d.ts +3 -0
- package/lib/components/table-v2/src/composables/utils.js +30 -0
- package/lib/components/table-v2/src/composables/utils.js.map +1 -0
- package/lib/components/table-v2/src/constants.d.ts +4 -0
- package/lib/components/table-v2/src/constants.js +6 -0
- package/lib/components/table-v2/src/constants.js.map +1 -1
- package/lib/components/table-v2/src/grid.d.ts +4 -1
- package/lib/components/table-v2/src/grid.js +5 -0
- package/lib/components/table-v2/src/grid.js.map +1 -1
- package/lib/components/table-v2/src/renderers/cell.d.ts +1 -1
- package/lib/components/table-v2/src/renderers/cell.js +95 -0
- package/lib/components/table-v2/src/renderers/cell.js.map +1 -0
- package/lib/components/table-v2/src/renderers/empty.d.ts +7 -0
- package/lib/components/table-v2/src/renderers/empty.js +19 -0
- package/lib/components/table-v2/src/renderers/empty.js.map +1 -0
- package/lib/components/table-v2/src/renderers/footer.d.ts +7 -0
- package/lib/components/table-v2/src/renderers/footer.js +19 -0
- package/lib/components/table-v2/src/renderers/footer.js.map +1 -0
- package/lib/components/table-v2/src/renderers/header-cell.d.ts +1 -1
- package/lib/components/table-v2/src/renderers/header-cell.js +69 -0
- package/lib/components/table-v2/src/renderers/header-cell.js.map +1 -0
- package/lib/components/table-v2/src/renderers/header.d.ts +1 -1
- package/lib/components/table-v2/src/renderers/header.js +43 -0
- package/lib/components/table-v2/src/renderers/header.js.map +1 -0
- package/lib/components/table-v2/src/renderers/left-table.js +28 -0
- package/lib/components/table-v2/src/renderers/left-table.js.map +1 -0
- package/lib/components/table-v2/src/renderers/main-table.js +26 -0
- package/lib/components/table-v2/src/renderers/main-table.js.map +1 -0
- package/lib/components/table-v2/src/renderers/overlay.d.ts +3 -0
- package/lib/components/table-v2/src/renderers/overlay.js +19 -0
- package/lib/components/table-v2/src/renderers/overlay.js.map +1 -0
- package/lib/components/table-v2/src/renderers/right-table.js +28 -0
- package/lib/components/table-v2/src/renderers/right-table.js.map +1 -0
- package/lib/components/table-v2/src/renderers/row.js +81 -0
- package/lib/components/table-v2/src/renderers/row.js.map +1 -0
- package/lib/components/table-v2/src/row.d.ts +6 -1
- package/lib/components/table-v2/src/row.js.map +1 -1
- package/lib/components/table-v2/src/table-grid.d.ts +8 -2
- package/lib/components/table-v2/src/table-grid.js +225 -0
- package/lib/components/table-v2/src/table-grid.js.map +1 -0
- package/lib/components/table-v2/src/table-v2.d.ts +3 -12
- package/lib/components/table-v2/src/table-v2.js +254 -0
- package/lib/components/table-v2/src/table-v2.js.map +1 -0
- package/lib/components/table-v2/src/table.d.ts +2 -5
- package/lib/components/table-v2/src/table.js.map +1 -1
- package/lib/components/table-v2/src/types.d.ts +15 -2
- package/lib/components/table-v2/src/use-table.d.ts +20 -29
- package/lib/components/table-v2/src/use-table.js +82 -236
- package/lib/components/table-v2/src/use-table.js.map +1 -1
- package/lib/components/table-v2/src/utils.js +1 -1
- package/lib/components/table-v2/src/utils.js.map +1 -1
- package/lib/components/tooltip/index.js +2 -2
- package/lib/components/tooltip/src/content.js +1 -1
- package/lib/components/tooltip/src/tooltip.js +64 -174
- package/lib/components/tooltip/src/tooltip.js.map +1 -1
- package/lib/components/tooltip/src/tooltip2.js +174 -64
- package/lib/components/tooltip/src/tooltip2.js.map +1 -1
- package/lib/components/tooltip/src/trigger.js +1 -1
- package/lib/components/upload/index.d.ts +16 -12
- package/lib/components/upload/src/upload-content.d.ts +1 -1
- package/lib/components/upload/src/upload-content.vue.d.ts +4 -3
- package/lib/components/upload/src/upload-content2.js +3 -1
- package/lib/components/upload/src/upload-content2.js.map +1 -1
- package/lib/components/upload/src/upload-list2.js +4 -2
- package/lib/components/upload/src/upload-list2.js.map +1 -1
- package/lib/components/upload/src/upload.d.ts +2 -2
- package/lib/components/upload/src/upload.js +1 -1
- package/lib/components/upload/src/upload.js.map +1 -1
- package/lib/components/upload/src/upload.vue.d.ts +16 -12
- package/lib/components/virtual-list/src/builders/build-grid.d.ts +11 -2
- package/lib/components/virtual-list/src/builders/build-grid.js +7 -3
- package/lib/components/virtual-list/src/builders/build-grid.js.map +1 -1
- package/lib/components/virtual-list/src/components/dynamic-size-grid.d.ts +11 -2
- package/lib/components/virtual-list/src/components/dynamic-size-grid.js +4 -2
- package/lib/components/virtual-list/src/components/dynamic-size-grid.js.map +1 -1
- package/lib/components/virtual-list/src/components/fixed-size-grid.d.ts +11 -2
- package/lib/components/virtual-list/src/components/scrollbar.d.ts +2 -2
- package/lib/components/virtual-list/src/props.d.ts +7 -3
- package/lib/components/virtual-list/src/props.js +5 -1
- package/lib/components/virtual-list/src/props.js.map +1 -1
- package/lib/components/virtual-list/src/types.d.ts +7 -0
- package/lib/components/virtual-list/src/utils.d.ts +10 -5
- package/lib/components/virtual-list/src/utils.js.map +1 -1
- package/lib/constants/index.js +0 -1
- package/lib/constants/index.js.map +1 -1
- package/lib/constants/size.d.ts +0 -1
- package/lib/constants/size.js +0 -4
- package/lib/constants/size.js.map +1 -1
- package/lib/directives/mousewheel/index.js +1 -7
- package/lib/directives/mousewheel/index.js.map +1 -1
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/index.js +2 -0
- package/lib/hooks/index.js.map +1 -1
- package/lib/hooks/use-cursor/index.d.ts +2 -0
- package/lib/hooks/use-cursor/index.js +50 -0
- package/lib/hooks/use-cursor/index.js.map +1 -0
- package/lib/hooks/use-draggable/index.js +1 -1
- package/lib/index.js +3 -2
- package/lib/index.js.map +1 -1
- package/lib/utils/dom/index.js +1 -0
- package/lib/utils/dom/index.js.map +1 -1
- package/lib/utils/dom/style.d.ts +1 -0
- package/lib/utils/dom/style.js +13 -0
- package/lib/utils/dom/style.js.map +1 -1
- package/lib/utils/index.js +3 -2
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/vue/index.d.ts +1 -1
- package/lib/utils/vue/index.js +2 -2
- package/lib/utils/vue/size.d.ts +1 -0
- package/lib/utils/vue/size.js +13 -0
- package/lib/utils/vue/size.js.map +1 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +7 -7
- package/tags.json +1 -1
- package/theme-chalk/el-autocomplete.css +1 -1
- package/theme-chalk/el-date-picker.css +1 -1
- package/theme-chalk/el-input-number.css +1 -1
- package/theme-chalk/el-input.css +1 -1
- package/theme-chalk/el-pagination.css +1 -1
- package/theme-chalk/el-step.css +1 -1
- package/theme-chalk/el-table-v2.css +1 -1
- package/theme-chalk/el-tabs.css +1 -1
- package/theme-chalk/el-time-picker.css +1 -1
- package/theme-chalk/el-upload.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/autocomplete.scss +9 -9
- package/theme-chalk/src/check-tag.scss +5 -5
- package/theme-chalk/src/dark/var.scss +7 -7
- package/theme-chalk/src/date-picker/time-picker.scss +2 -2
- package/theme-chalk/src/date-picker/year-table.scss +2 -2
- package/theme-chalk/src/input-number.scss +0 -1
- package/theme-chalk/src/input.scss +12 -5
- package/theme-chalk/src/pagination.scss +6 -0
- package/theme-chalk/src/step.scss +1 -1
- package/theme-chalk/src/table-v2.scss +30 -6
- package/theme-chalk/src/tabs.scss +1 -1
- package/theme-chalk/src/upload.scss +7 -4
- package/web-types.json +1 -1
- package/es/components/table-v2/src/column-resizer.d.ts +0 -14
- package/es/components/table-v2/src/column-resizer.mjs +0 -24
- package/es/components/table-v2/src/column-resizer.mjs.map +0 -1
- package/es/components/table-v2/src/table-cell.d.ts +0 -9
- package/es/components/table-v2/src/table-column-resizer.d.ts +0 -31
- package/es/components/table-v2/src/table-header-cell.d.ts +0 -8
- package/es/components/table-v2/src/use-columns.mjs.map +0 -1
- package/es/utils/vue/style.d.ts +0 -1
- package/es/utils/vue/style.mjs +0 -19
- package/es/utils/vue/style.mjs.map +0 -1
- package/lib/components/table-v2/src/column-resizer.d.ts +0 -14
- package/lib/components/table-v2/src/column-resizer.js +0 -28
- package/lib/components/table-v2/src/column-resizer.js.map +0 -1
- package/lib/components/table-v2/src/table-cell.d.ts +0 -9
- package/lib/components/table-v2/src/table-column-resizer.d.ts +0 -31
- package/lib/components/table-v2/src/table-header-cell.d.ts +0 -8
- package/lib/components/table-v2/src/use-columns.js.map +0 -1
- package/lib/utils/vue/style.d.ts +0 -1
- package/lib/utils/vue/style.js +0 -23
- package/lib/utils/vue/style.js.map +0 -1
|
@@ -1,137 +1,92 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ref, toRef, shallowRef, computed, unref, watch } from 'vue';
|
|
2
2
|
import '../../../utils/index.mjs';
|
|
3
|
-
import
|
|
4
|
-
import { useColumns } from './use-columns.mjs';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
3
|
+
import './composables/index.mjs';
|
|
4
|
+
import { useColumns } from './composables/use-columns.mjs';
|
|
5
|
+
import { useScrollbar } from './composables/use-scrollbar.mjs';
|
|
6
|
+
import { useRow } from './composables/use-row.mjs';
|
|
7
|
+
import { useData } from './composables/use-data.mjs';
|
|
8
|
+
import { useStyles } from './composables/use-styles.mjs';
|
|
9
|
+
import { isArray } from '@vue/shared';
|
|
9
10
|
|
|
10
11
|
function useTable(props) {
|
|
11
|
-
const
|
|
12
|
+
const mainTableRef = ref();
|
|
13
|
+
const leftTableRef = ref();
|
|
14
|
+
const rightTableRef = ref();
|
|
12
15
|
const {
|
|
13
16
|
columns,
|
|
14
17
|
columnsStyles,
|
|
15
18
|
columnsTotalWidth,
|
|
16
19
|
fixedColumnsOnLeft,
|
|
17
|
-
|
|
20
|
+
fixedColumnsOnRight,
|
|
18
21
|
hasFixedColumns,
|
|
19
22
|
mainColumns,
|
|
20
|
-
|
|
21
|
-
} = useColumns(toRef(props, "columns"), toRef(props, "fixed"));
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
const rowHeights = shallowRef({});
|
|
35
|
-
const leftTableHeights = shallowRef({});
|
|
36
|
-
const mainTableHeights = shallowRef({});
|
|
37
|
-
const rightTableHeights = shallowRef({});
|
|
38
|
-
const rowsHeight = computed(() => {
|
|
39
|
-
const { rowHeight, estimatedRowHeight } = props;
|
|
40
|
-
const _data = unref(data);
|
|
41
|
-
if (isNumber(estimatedRowHeight)) {
|
|
42
|
-
return _data.length * estimatedRowHeight;
|
|
43
|
-
}
|
|
44
|
-
return _data.length * rowHeight;
|
|
45
|
-
});
|
|
46
|
-
const flattenedData = computed(() => {
|
|
47
|
-
const depths = {};
|
|
48
|
-
const { data: data2, rowKey } = props;
|
|
49
|
-
const _expandedRowKeys = unref(expandedRowKeys);
|
|
50
|
-
if (!_expandedRowKeys || !_expandedRowKeys.length)
|
|
51
|
-
return data2;
|
|
52
|
-
const array = [];
|
|
53
|
-
const keysSet = /* @__PURE__ */ new Set();
|
|
54
|
-
_expandedRowKeys.forEach((x) => keysSet.add(x));
|
|
55
|
-
let copy = data2.slice();
|
|
56
|
-
copy.forEach((x) => depths[x[rowKey]] = 0);
|
|
57
|
-
while (copy.length > 0) {
|
|
58
|
-
const item = copy.shift();
|
|
59
|
-
array.push(item);
|
|
60
|
-
if (keysSet.has(item[rowKey]) && Array.isArray(item.children) && item.children.length > 0) {
|
|
61
|
-
copy = [...item.children, ...copy];
|
|
62
|
-
item.children.forEach((child) => depths[child[rowKey]] = depths[item[rowKey]] + 1);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
depthMap.value = depths;
|
|
66
|
-
return array;
|
|
67
|
-
});
|
|
68
|
-
const data = computed(() => {
|
|
69
|
-
const { data: data2, expandColumnKey } = props;
|
|
70
|
-
return expandColumnKey ? unref(flattenedData) : data2;
|
|
71
|
-
});
|
|
72
|
-
const bodyWidth = computed(() => {
|
|
73
|
-
const { fixed, width, vScrollbarSize } = props;
|
|
74
|
-
const ret = width - vScrollbarSize;
|
|
75
|
-
return fixed ? Math.max(Math.round(unref(columnsTotalWidth)), ret) : ret;
|
|
76
|
-
});
|
|
77
|
-
const rootStyle = computed(() => {
|
|
78
|
-
const { style = {}, height, width } = props;
|
|
79
|
-
return enforceUnit({
|
|
80
|
-
...style,
|
|
81
|
-
height,
|
|
82
|
-
width
|
|
83
|
-
});
|
|
23
|
+
onColumnSorted
|
|
24
|
+
} = useColumns(props, toRef(props, "columns"), toRef(props, "fixed"));
|
|
25
|
+
const {
|
|
26
|
+
scrollTo,
|
|
27
|
+
scrollToLeft,
|
|
28
|
+
scrollToTop,
|
|
29
|
+
onScroll,
|
|
30
|
+
onVerticalScroll,
|
|
31
|
+
scrollPos
|
|
32
|
+
} = useScrollbar(props, {
|
|
33
|
+
mainTableRef,
|
|
34
|
+
leftTableRef,
|
|
35
|
+
rightTableRef,
|
|
36
|
+
onMaybeEndReached
|
|
84
37
|
});
|
|
85
|
-
const
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
38
|
+
const {
|
|
39
|
+
expandedRowKeys,
|
|
40
|
+
hoveringRowKey,
|
|
41
|
+
lastRenderedRowIndex,
|
|
42
|
+
isDynamic,
|
|
43
|
+
isResetting,
|
|
44
|
+
rowHeights,
|
|
45
|
+
resetAfterIndex,
|
|
46
|
+
onRowExpanded,
|
|
47
|
+
onRowHeightChange,
|
|
48
|
+
onRowHovered,
|
|
49
|
+
onRowsRendered
|
|
50
|
+
} = useRow(props, {
|
|
51
|
+
mainTableRef,
|
|
52
|
+
leftTableRef,
|
|
53
|
+
rightTableRef,
|
|
54
|
+
onMaybeEndReached
|
|
96
55
|
});
|
|
97
|
-
const
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
return tableHeight;
|
|
102
|
-
const totalHeight = unref(rowsHeight) + unref(headerHeight) + unref(fixedRowsHeight);
|
|
103
|
-
return Math.min(tableHeight, totalHeight);
|
|
56
|
+
const { data, depthMap } = useData(props, {
|
|
57
|
+
expandedRowKeys,
|
|
58
|
+
lastRenderedRowIndex,
|
|
59
|
+
resetAfterIndex
|
|
104
60
|
});
|
|
105
|
-
const
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
61
|
+
const {
|
|
62
|
+
bodyWidth,
|
|
63
|
+
fixedTableHeight,
|
|
64
|
+
mainTableHeight,
|
|
65
|
+
leftTableWidth,
|
|
66
|
+
rightTableWidth,
|
|
67
|
+
headerWidth,
|
|
68
|
+
rowsHeight,
|
|
69
|
+
windowHeight,
|
|
70
|
+
footerHeight,
|
|
71
|
+
emptyStyle,
|
|
72
|
+
rootStyle
|
|
73
|
+
} = useStyles(props, {
|
|
74
|
+
columnsTotalWidth,
|
|
75
|
+
data,
|
|
76
|
+
fixedColumnsOnLeft,
|
|
77
|
+
fixedColumnsOnRight
|
|
112
78
|
});
|
|
113
|
-
const
|
|
114
|
-
|
|
79
|
+
const isScrolling = shallowRef(false);
|
|
80
|
+
const containerRef = ref();
|
|
81
|
+
const showEmpty = computed(() => {
|
|
82
|
+
const noData = unref(data).length === 0;
|
|
83
|
+
return isArray(props.fixedData) ? props.fixedData.length === 0 && noData : noData;
|
|
115
84
|
});
|
|
116
|
-
function
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
(
|
|
121
|
-
(_c = rightTableRef.value) == null ? void 0 : _c.scrollToTop(scrollTop);
|
|
122
|
-
}
|
|
123
|
-
function scrollTo(params) {
|
|
124
|
-
scrollPos.value = params;
|
|
125
|
-
doScroll(params);
|
|
126
|
-
}
|
|
127
|
-
function scrollToTop(scrollTop) {
|
|
128
|
-
scrollPos.value.scrollTop = scrollTop;
|
|
129
|
-
doScroll(unref(scrollPos));
|
|
130
|
-
}
|
|
131
|
-
function scrollToLeft(scrollLeft) {
|
|
132
|
-
var _a, _b;
|
|
133
|
-
scrollPos.value.scrollLeft = scrollLeft;
|
|
134
|
-
(_b = (_a = mainTableRef.value) == null ? void 0 : _a.scrollTo) == null ? void 0 : _b.call(_a, unref(scrollPos));
|
|
85
|
+
function getRowHeight(rowIndex) {
|
|
86
|
+
const { estimatedRowHeight, rowHeight, rowKey } = props;
|
|
87
|
+
if (!estimatedRowHeight)
|
|
88
|
+
return rowHeight;
|
|
89
|
+
return unref(rowHeights)[unref(data)[rowIndex][rowKey]] || estimatedRowHeight;
|
|
135
90
|
}
|
|
136
91
|
function onMaybeEndReached() {
|
|
137
92
|
const { onEndReached } = props;
|
|
@@ -145,128 +100,16 @@ function useTable(props) {
|
|
|
145
100
|
onEndReached(heightUntilEnd);
|
|
146
101
|
}
|
|
147
102
|
}
|
|
148
|
-
function updateRows() {
|
|
149
|
-
isResetting.value = true;
|
|
150
|
-
resetAfterIndex(unref(resetIndex), false);
|
|
151
|
-
resetIndex.value = null;
|
|
152
|
-
isResetting.value = false;
|
|
153
|
-
}
|
|
154
|
-
function resetAfterIndex(index, forceUpdate = false) {
|
|
155
|
-
if (isUndefined(props.estimatedRowHeight))
|
|
156
|
-
return;
|
|
157
|
-
[mainTableRef, leftTableRef, rightTableRef].forEach((tableRef) => {
|
|
158
|
-
const table = unref(tableRef);
|
|
159
|
-
if (table)
|
|
160
|
-
table.resetAfterRowIndex(index, forceUpdate);
|
|
161
|
-
});
|
|
162
|
-
}
|
|
163
|
-
function onScroll(params) {
|
|
164
|
-
var _a;
|
|
165
|
-
scrollTo(params);
|
|
166
|
-
(_a = props.onScroll) == null ? void 0 : _a.call(props, params);
|
|
167
|
-
}
|
|
168
|
-
function onVerticalScroll({ scrollTop }) {
|
|
169
|
-
const { scrollTop: currentScrollTop } = unref(scrollPos);
|
|
170
|
-
if (scrollTop !== currentScrollTop)
|
|
171
|
-
scrollToTop(scrollTop);
|
|
172
|
-
}
|
|
173
|
-
function onRowsRendered(params) {
|
|
174
|
-
var _a;
|
|
175
|
-
(_a = props.onRowRendered) == null ? void 0 : _a.call(props, params);
|
|
176
|
-
if (params.rowCacheEnd > unref(lastRenderedRowIndex)) {
|
|
177
|
-
lastRenderedRowIndex.value = params.rowCacheEnd;
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
function onRowHovered({ hovered, rowKey }) {
|
|
181
|
-
hoveringRowKey.value = hovered ? rowKey : null;
|
|
182
|
-
}
|
|
183
|
-
function onRowExpanded({
|
|
184
|
-
expanded,
|
|
185
|
-
rowData,
|
|
186
|
-
rowIndex,
|
|
187
|
-
rowKey
|
|
188
|
-
}) {
|
|
189
|
-
var _a, _b;
|
|
190
|
-
const _expandedRowKeys = [...unref(expandedRowKeys)];
|
|
191
|
-
const currentKeyIndex = _expandedRowKeys.indexOf(rowKey);
|
|
192
|
-
if (expanded) {
|
|
193
|
-
if (currentKeyIndex === -1)
|
|
194
|
-
_expandedRowKeys.push(rowKey);
|
|
195
|
-
} else {
|
|
196
|
-
if (currentKeyIndex > -1)
|
|
197
|
-
_expandedRowKeys.splice(currentKeyIndex, 1);
|
|
198
|
-
}
|
|
199
|
-
expandedRowKeys.value = _expandedRowKeys;
|
|
200
|
-
emit("update:expandedRowKeys", _expandedRowKeys);
|
|
201
|
-
(_a = props.onRowExpand) == null ? void 0 : _a.call(props, {
|
|
202
|
-
expanded,
|
|
203
|
-
rowData,
|
|
204
|
-
rowIndex,
|
|
205
|
-
rowKey
|
|
206
|
-
});
|
|
207
|
-
(_b = props.onExpandedRowsChange) == null ? void 0 : _b.call(props, _expandedRowKeys);
|
|
208
|
-
}
|
|
209
|
-
function onColumnSorted(e) {
|
|
210
|
-
var _a;
|
|
211
|
-
const { key } = e.currentTarget.dataset;
|
|
212
|
-
if (!key)
|
|
213
|
-
return;
|
|
214
|
-
const { sortState, sortBy } = props;
|
|
215
|
-
let order = SortOrder.ASC;
|
|
216
|
-
if (isObject(sortState)) {
|
|
217
|
-
order = oppositeOrderMap[sortState[key]];
|
|
218
|
-
} else {
|
|
219
|
-
order = oppositeOrderMap[sortBy.order];
|
|
220
|
-
}
|
|
221
|
-
(_a = props.onColumnSort) == null ? void 0 : _a.call(props, { column: getColumn(key), key, order });
|
|
222
|
-
}
|
|
223
|
-
function onRowHeightChanged(rowKey, height, rowIdx) {
|
|
224
|
-
const resetIdx = unref(resetIndex);
|
|
225
|
-
if (resetIdx === null) {
|
|
226
|
-
resetIndex.value = rowIdx;
|
|
227
|
-
} else {
|
|
228
|
-
if (resetIdx > rowIdx) {
|
|
229
|
-
resetIndex.value = rowIdx;
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
rowHeights.value[rowKey] = height;
|
|
233
|
-
}
|
|
234
|
-
function onFixedRowHeightChanged({
|
|
235
|
-
rowKey,
|
|
236
|
-
height,
|
|
237
|
-
rowIndex
|
|
238
|
-
}, fixedDir) {
|
|
239
|
-
if (!fixedDir) {
|
|
240
|
-
mainTableHeights.value[rowKey] = height;
|
|
241
|
-
} else {
|
|
242
|
-
if (fixedDir === "right") {
|
|
243
|
-
rightTableHeights.value[rowKey] = height;
|
|
244
|
-
} else {
|
|
245
|
-
leftTableHeights.value[rowKey] = height;
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
const _rowHeights = unref(rowHeights);
|
|
249
|
-
if (_rowHeights[rowKey] !== height) {
|
|
250
|
-
onRowHeightChanged(rowKey, height, rowIndex);
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
watch(() => unref(scrollPos).scrollTop, (cur, prev) => {
|
|
254
|
-
if (cur > prev)
|
|
255
|
-
onMaybeEndReached();
|
|
256
|
-
});
|
|
257
|
-
watch(lastRenderedRowIndex, () => onMaybeEndReached());
|
|
258
103
|
watch(() => props.expandedRowKeys, (val) => expandedRowKeys.value = val, {
|
|
259
104
|
deep: true
|
|
260
105
|
});
|
|
261
|
-
watch(rowHeights, () => {
|
|
262
|
-
updateRows();
|
|
263
|
-
});
|
|
264
106
|
return {
|
|
265
107
|
columns,
|
|
266
108
|
containerRef,
|
|
267
109
|
mainTableRef,
|
|
268
110
|
leftTableRef,
|
|
269
111
|
rightTableRef,
|
|
112
|
+
isDynamic,
|
|
270
113
|
isResetting,
|
|
271
114
|
isScrolling,
|
|
272
115
|
hoveringRowKey,
|
|
@@ -277,24 +120,27 @@ function useTable(props) {
|
|
|
277
120
|
expandedRowKeys,
|
|
278
121
|
depthMap,
|
|
279
122
|
fixedColumnsOnLeft,
|
|
280
|
-
|
|
123
|
+
fixedColumnsOnRight,
|
|
281
124
|
mainColumns,
|
|
282
125
|
bodyWidth,
|
|
126
|
+
emptyStyle,
|
|
283
127
|
rootStyle,
|
|
284
128
|
headerWidth,
|
|
129
|
+
footerHeight,
|
|
285
130
|
mainTableHeight,
|
|
286
131
|
fixedTableHeight,
|
|
287
132
|
leftTableWidth,
|
|
288
133
|
rightTableWidth,
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
scrollToTop,
|
|
134
|
+
showEmpty,
|
|
135
|
+
getRowHeight,
|
|
292
136
|
onColumnSorted,
|
|
293
137
|
onRowHovered,
|
|
294
138
|
onRowExpanded,
|
|
295
139
|
onRowsRendered,
|
|
296
|
-
|
|
297
|
-
|
|
140
|
+
onRowHeightChange,
|
|
141
|
+
scrollTo,
|
|
142
|
+
scrollToLeft,
|
|
143
|
+
scrollToTop,
|
|
298
144
|
onScroll,
|
|
299
145
|
onVerticalScroll
|
|
300
146
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-table.mjs","sources":["../../../../../../packages/components/table-v2/src/use-table.ts"],"sourcesContent":["import {\n computed,\n getCurrentInstance,\n ref,\n shallowRef,\n toRef,\n unref,\n watch,\n} from 'vue'\nimport { isNumber, isObject, isUndefined } from '@element-plus/utils'\nimport { enforceUnit, sum } from './utils'\nimport { useColumns } from './use-columns'\nimport { SortOrder, oppositeOrderMap } from './constants'\n\nimport type { CSSProperties } from 'vue'\nimport type { FixedDirection, KeyType } from './types'\nimport type { TableV2Props } from './table'\nimport type { onRowRenderedParams } from './grid'\nimport type { RowExpandParams, RowHoverParams } from './row'\n// component\nimport type { TableGridInstance } from './table-grid'\n\ntype Nullable<T> = T | null\ntype ScrollPos = { scrollLeft: number; scrollTop: number }\ntype Heights = Record<KeyType, CSSProperties['height']>\n\nfunction useTable(props: TableV2Props) {\n const emit = getCurrentInstance()!.emit\n\n const {\n columns,\n columnsStyles,\n columnsTotalWidth,\n fixedColumnsOnLeft,\n fixedColumnOnRight,\n hasFixedColumns,\n mainColumns,\n getColumn,\n } = useColumns(toRef(props, 'columns'), toRef(props, 'fixed'))\n // state\n const expandedRowKeys = ref<KeyType[]>(props.defaultExpandedRowKeys || [])\n const depthMap = ref<Record<KeyType, number>>({})\n const hoveringRowKey = shallowRef<Nullable<KeyType>>(null)\n // const resizingKey = shallowRef<Nullable<KeyType>>(null)\n // const resizingWidth = shallowRef(0)\n const resetIndex = shallowRef<Nullable<number>>(null)\n const isResetting = shallowRef(false)\n const isScrolling = shallowRef(false)\n\n // DOM/Component refs\n const containerRef = ref()\n const mainTableRef = ref<TableGridInstance>()\n const leftTableRef = ref<TableGridInstance>()\n const rightTableRef = ref<TableGridInstance>()\n\n const scrollPos = ref<ScrollPos>({ scrollLeft: 0, scrollTop: 0 })\n const lastRenderedRowIndex = ref(-1)\n const rowHeights = shallowRef<Heights>({})\n const leftTableHeights = shallowRef<Heights>({})\n const mainTableHeights = shallowRef<Heights>({})\n const rightTableHeights = shallowRef<Heights>({})\n\n const rowsHeight = computed(() => {\n const { rowHeight, estimatedRowHeight } = props\n const _data = unref(data)\n if (isNumber(estimatedRowHeight)) {\n return _data.length * estimatedRowHeight\n }\n\n return _data.length * rowHeight\n })\n\n const flattenedData = computed(() => {\n const depths = {}\n const { data, rowKey } = props\n\n const _expandedRowKeys = unref(expandedRowKeys)\n\n if (!_expandedRowKeys || !_expandedRowKeys.length) return data\n\n const array: any[] = []\n const keysSet = new Set()\n _expandedRowKeys.forEach((x) => keysSet.add(x))\n\n let copy: any[] = data.slice()\n copy.forEach((x) => (depths[x[rowKey]] = 0))\n while (copy.length > 0) {\n const item = copy.shift()!\n\n array.push(item)\n if (\n keysSet.has(item[rowKey]) &&\n Array.isArray(item.children) &&\n item.children.length > 0\n ) {\n copy = [...item.children, ...copy]\n item.children.forEach(\n (child: any) => (depths[child[rowKey]] = depths[item[rowKey]] + 1)\n )\n }\n }\n\n depthMap.value = depths\n return array\n })\n\n const data = computed(() => {\n const { data, expandColumnKey } = props\n return expandColumnKey ? unref(flattenedData) : data\n })\n\n const bodyWidth = computed(() => {\n const { fixed, width, vScrollbarSize } = props\n const ret = width - vScrollbarSize\n return fixed ? Math.max(Math.round(unref(columnsTotalWidth)), ret) : ret\n })\n\n const rootStyle = computed<CSSProperties>(() => {\n const { style = {}, height, width } = props\n return enforceUnit({\n ...style,\n height,\n width,\n })\n })\n\n const headerWidth = computed(\n () => unref(bodyWidth) + (props.fixed ? props.vScrollbarSize : 0)\n )\n\n const mainTableHeight = computed(() => {\n const { height = 0, maxHeight = 0, footerHeight, hScrollbarSize } = props\n\n if (maxHeight > 0) {\n const _fixedRowsHeight = unref(fixedRowsHeight)\n const _rowsHeight = unref(rowsHeight)\n const _headerHeight = unref(headerHeight)\n const total =\n _headerHeight + _fixedRowsHeight + _rowsHeight + hScrollbarSize\n\n return Math.min(total, maxHeight - footerHeight)\n }\n\n return height - footerHeight\n })\n\n const fixedTableHeight = computed(() => {\n const { maxHeight } = props\n const tableHeight = unref(mainTableHeight)\n if (isNumber(maxHeight) && maxHeight > 0) return tableHeight\n\n const totalHeight =\n unref(rowsHeight) + unref(headerHeight) + unref(fixedRowsHeight)\n\n return Math.min(tableHeight, totalHeight)\n })\n\n const mapColumn = (column: TableV2Props['columns'][number]) => column.width\n\n const leftTableWidth = computed(() =>\n sum(unref(fixedColumnsOnLeft).map(mapColumn))\n )\n\n const rightTableWidth = computed(() =>\n sum(unref(fixedColumnOnRight).map(mapColumn))\n )\n\n const headerHeight = computed(() => sum(props.headerHeight))\n\n const fixedRowsHeight = computed(() => {\n return (props.fixedData?.length || 0) * props.rowHeight\n })\n\n const windowHeight = computed(() => {\n return unref(mainTableHeight) - unref(headerHeight) - unref(fixedRowsHeight)\n })\n\n function doScroll(params: ScrollPos) {\n const { scrollTop } = params\n\n mainTableRef.value?.scrollTo(params)\n leftTableRef.value?.scrollToTop(scrollTop)\n rightTableRef.value?.scrollToTop(scrollTop)\n }\n\n // methods\n function scrollTo(params: ScrollPos) {\n scrollPos.value = params\n\n doScroll(params)\n }\n\n function scrollToTop(scrollTop: number) {\n scrollPos.value.scrollTop = scrollTop\n\n doScroll(unref(scrollPos))\n }\n\n function scrollToLeft(scrollLeft: number) {\n scrollPos.value.scrollLeft = scrollLeft\n\n mainTableRef.value?.scrollTo?.(unref(scrollPos))\n }\n\n function onMaybeEndReached() {\n const { onEndReached } = props\n if (!onEndReached) return\n\n const { scrollTop } = unref(scrollPos)\n\n const _totalHeight = unref(rowsHeight)\n const clientHeight = unref(windowHeight)\n\n const heightUntilEnd =\n _totalHeight - (scrollTop + clientHeight) + props.hScrollbarSize\n\n if (\n unref(lastRenderedRowIndex) >= 0 &&\n _totalHeight !== unref(rowsHeight)\n ) {\n onEndReached(heightUntilEnd)\n }\n }\n\n function updateRows() {\n isResetting.value = true\n resetAfterIndex(unref(resetIndex)!, false)\n // force update\n resetIndex.value = null\n isResetting.value = false\n }\n\n function resetAfterIndex(index: number, forceUpdate = false) {\n if (isUndefined(props.estimatedRowHeight)) return\n ;[mainTableRef, leftTableRef, rightTableRef].forEach((tableRef) => {\n const table = unref(tableRef)\n if (table) table.resetAfterRowIndex(index, forceUpdate)\n })\n }\n // events\n\n function onScroll(params: ScrollPos) {\n scrollTo(params)\n props.onScroll?.(params)\n }\n\n function onVerticalScroll({ scrollTop }: ScrollPos) {\n const { scrollTop: currentScrollTop } = unref(scrollPos)\n if (scrollTop !== currentScrollTop) scrollToTop(scrollTop)\n }\n\n function onRowsRendered(params: onRowRenderedParams) {\n props.onRowRendered?.(params)\n\n if (params.rowCacheEnd > unref(lastRenderedRowIndex)) {\n lastRenderedRowIndex.value = params.rowCacheEnd\n }\n }\n\n function onRowHovered({ hovered, rowKey }: RowHoverParams<any>) {\n hoveringRowKey.value = hovered ? rowKey : null\n }\n\n function onRowExpanded({\n expanded,\n rowData,\n rowIndex,\n rowKey,\n }: RowExpandParams<any>) {\n const _expandedRowKeys = [...unref(expandedRowKeys)]\n const currentKeyIndex = _expandedRowKeys.indexOf(rowKey)\n if (expanded) {\n if (currentKeyIndex === -1) _expandedRowKeys.push(rowKey)\n } else {\n if (currentKeyIndex > -1) _expandedRowKeys.splice(currentKeyIndex, 1)\n }\n expandedRowKeys.value = _expandedRowKeys\n\n emit('update:expandedRowKeys', _expandedRowKeys)\n props.onRowExpand?.({\n expanded,\n rowData,\n rowIndex,\n rowKey,\n })\n // If this is not controlled, then use this to notify changes\n props.onExpandedRowsChange?.(_expandedRowKeys)\n }\n\n // function onColumnResized(\n // { key }: TableV2Props['columns'][number],\n // width: number\n // ) {\n // resizingWidth.value = width\n // const column = getColumn(key)!\n\n // updateColumnWidth(column, width)\n // props.onColumnResize?.(column, width)\n // }\n\n // function onColumnResizeStart({ key }: TableV2Props['columns'][number]) {\n // resizingKey.value = key\n // }\n\n // function onColumnResizeEnd() {\n // const _resizingKey = unref(resizingKey)\n // const _resizingWidth = unref(resizingWidth)\n\n // resizingKey.value = null\n // resizingWidth.value = 0\n\n // if (!_resizingKey || !_resizingWidth) return\n\n // props.onColumnResizeEnded?.(getColumn(_resizingKey)!, _resizingWidth)\n // }\n\n function onColumnSorted(e: MouseEvent) {\n const { key } = (e.currentTarget as HTMLElement).dataset\n if (!key) return\n const { sortState, sortBy } = props\n\n let order = SortOrder.ASC\n\n if (isObject(sortState)) {\n order = oppositeOrderMap[sortState[key]]\n } else {\n order = oppositeOrderMap[sortBy.order]\n }\n\n props.onColumnSort?.({ column: getColumn(key)!, key, order })\n }\n\n function onRowHeightChanged(rowKey: KeyType, height: number, rowIdx: number) {\n const resetIdx = unref(resetIndex)\n if (resetIdx === null) {\n resetIndex.value = rowIdx\n } else {\n if (resetIdx > rowIdx) {\n resetIndex.value = rowIdx\n }\n }\n\n rowHeights.value[rowKey] = height\n }\n\n function onFixedRowHeightChanged(\n {\n rowKey,\n height,\n rowIndex,\n }: {\n rowKey: KeyType\n height: number\n rowIndex: number\n },\n fixedDir: FixedDirection\n ) {\n if (!fixedDir) {\n mainTableHeights.value[rowKey] = height\n } else {\n if (fixedDir === 'right') {\n rightTableHeights.value[rowKey] = height\n } else {\n leftTableHeights.value[rowKey] = height\n }\n }\n\n const _rowHeights = unref(rowHeights)\n if (_rowHeights[rowKey] !== height) {\n onRowHeightChanged(rowKey, height, rowIndex)\n }\n }\n\n // When scrollTop changes, maybe reaching the bottom\n watch(\n () => unref(scrollPos).scrollTop,\n (cur, prev) => {\n if (cur > prev) onMaybeEndReached()\n }\n )\n\n // when rendered row changes, maybe reaching the bottom\n watch(lastRenderedRowIndex, () => onMaybeEndReached())\n\n watch(\n () => props.expandedRowKeys,\n (val) => (expandedRowKeys.value = val),\n {\n deep: true,\n }\n )\n\n watch(rowHeights, () => {\n updateRows()\n })\n\n return {\n // models\n columns,\n containerRef,\n mainTableRef,\n leftTableRef,\n rightTableRef,\n // states\n isResetting,\n isScrolling,\n hoveringRowKey,\n hasFixedColumns,\n // resizingKey,\n // records\n columnsStyles,\n columnsTotalWidth,\n data,\n expandedRowKeys,\n depthMap,\n fixedColumnsOnLeft,\n fixedColumnOnRight,\n mainColumns,\n // metadata\n bodyWidth,\n rootStyle,\n headerWidth,\n mainTableHeight,\n fixedTableHeight,\n leftTableWidth,\n rightTableWidth,\n\n // methods\n scrollTo,\n scrollToLeft,\n scrollToTop,\n\n // event handlers\n onColumnSorted,\n // onColumnResized,\n // onColumnResizeStart,\n // onColumnResizeEnd,\n onRowHovered,\n onRowExpanded,\n onRowsRendered,\n onRowHeightChanged,\n onFixedRowHeightChanged,\n onScroll,\n onVerticalScroll,\n }\n}\n\nexport { useTable }\n\nexport type UseTableReturn = ReturnType<typeof useTable>\n"],"names":[],"mappings":";;;;;;;;;AAaA,SAAS,QAAQ,CAAC,KAAK,EAAE;AACzB,EAAE,MAAM,IAAI,GAAG,kBAAkB,EAAE,CAAC,IAAI,CAAC;AACzC,EAAE,MAAM;AACR,IAAI,OAAO;AACX,IAAI,aAAa;AACjB,IAAI,iBAAiB;AACrB,IAAI,kBAAkB;AACtB,IAAI,kBAAkB;AACtB,IAAI,eAAe;AACnB,IAAI,WAAW;AACf,IAAI,SAAS;AACb,GAAG,GAAG,UAAU,CAAC,KAAK,CAAC,KAAK,EAAE,SAAS,CAAC,EAAE,KAAK,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC;AACjE,EAAE,MAAM,eAAe,GAAG,GAAG,CAAC,KAAK,CAAC,sBAAsB,IAAI,EAAE,CAAC,CAAC;AAClE,EAA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AC,SAAS,EAAE,CAAC,GAAG,EAAE,IAAI,KAAK;AACzD,IAAI,IAAI,GAAG,GAAG,IAAI;AAClB,MAAM,iBAAiB,EAAE,CAAC;AAC1B,GAAG,CAAC,CAAC;AACL,EAAE,KAAK,CAAC,oBAAoB,EAAE,MAAM,iBAAiB,EAAE,CAAC,CAAC;AACzD,EAAE,KAAK,CAAC,MAAM,KAAK,CAAC,eAAe,EAAE,CAAC,GAAG,KAAK,eAAe,CAAC,KAAK,GAAG,GAAG,EAAE;AAC3E,IAAI,IAAI,EAAE,IAAI;AACd,GAAG,CAAC,CAAC;AACL,EAAE,KAAK,CAAC,UAAU,EAAE,MAAM;AAC1B,IAAI,UAAU,EAAE,CAAC;AACjB,GAAG,CAAC,CAAC;AACL,EAAE,OAAO;AACT,IAAI,OAAO;AACX,IAAI,YAAY;AAChB,IAAI,YAAY;AAChB,IAAI,YAAY;AAChB,IAAI,aAAa;AACjB,IAAI,WAAW;AACf,IAAI,WAAW;AACf,IAAI,cAAc;AAClB,IAAI,eAAe;AACnB,IAAI,aAAa;AACjB,IAAI,iBAAiB;AACrB,IAAI,IAAI;AACR,IAAI,eAAe;AACnB,IAAI,QAAQ;AACZ,IAAI,kBAAkB;AACtB,IAAI,kBAAkB;AACtB,IAAI,WAAW;AACf,IAAI,SAAS;AACb,IAAI,SAAS;AACb,IAAI,WAAW;AACf,IAAI,eAAe;AACnB,IAAI,gBAAgB;AACpB,IAAI,cAAc;AAClB,IAAI,eAAe;AACnB,IAAI,QAAQ;AACZ,IAAI,YAAY;AAChB,IAAI,WAAW;AACf,IAAI,cAAc;AAClB,IAAI,YAAY;AAChB,IAAI,aAAa;AACjB,IAAI,cAAc;AAClB,IAAI,kBAAkB;AACtB,IAAI,uBAAuB;AAC3B,IAAI,QAAQ;AACZ,IAAI,gBAAgB;AACpB,GAAG,CAAC;AACJ;;;;"}
|
|
1
|
+
{"version":3,"file":"use-table.mjs","sources":["../../../../../../packages/components/table-v2/src/use-table.ts"],"sourcesContent":["import { computed, ref, shallowRef, toRef, unref, watch } from 'vue'\nimport { isArray } from '@element-plus/utils'\nimport {\n useColumns,\n useData,\n useRow,\n useScrollbar,\n useStyles,\n} from './composables'\n\nimport type { TableV2Props } from './table'\nimport type { TableGridInstance } from './table-grid'\n\nfunction useTable(props: TableV2Props) {\n const mainTableRef = ref<TableGridInstance>()\n const leftTableRef = ref<TableGridInstance>()\n const rightTableRef = ref<TableGridInstance>()\n const {\n columns,\n columnsStyles,\n columnsTotalWidth,\n fixedColumnsOnLeft,\n fixedColumnsOnRight,\n hasFixedColumns,\n mainColumns,\n\n onColumnSorted,\n } = useColumns(props, toRef(props, 'columns'), toRef(props, 'fixed'))\n\n const {\n scrollTo,\n scrollToLeft,\n scrollToTop,\n onScroll,\n onVerticalScroll,\n scrollPos,\n } = useScrollbar(props, {\n mainTableRef,\n leftTableRef,\n rightTableRef,\n\n onMaybeEndReached,\n })\n\n const {\n expandedRowKeys,\n hoveringRowKey,\n lastRenderedRowIndex,\n isDynamic,\n isResetting,\n rowHeights,\n\n resetAfterIndex,\n onRowExpanded,\n onRowHeightChange,\n onRowHovered,\n onRowsRendered,\n } = useRow(props, {\n mainTableRef,\n leftTableRef,\n rightTableRef,\n\n onMaybeEndReached,\n })\n\n const { data, depthMap } = useData(props, {\n expandedRowKeys,\n lastRenderedRowIndex,\n resetAfterIndex,\n })\n\n const {\n bodyWidth,\n fixedTableHeight,\n mainTableHeight,\n leftTableWidth,\n rightTableWidth,\n headerWidth,\n rowsHeight,\n windowHeight,\n footerHeight,\n emptyStyle,\n rootStyle,\n } = useStyles(props, {\n columnsTotalWidth,\n data,\n fixedColumnsOnLeft,\n fixedColumnsOnRight,\n })\n // state\n const isScrolling = shallowRef(false)\n\n // DOM/Component refs\n const containerRef = ref()\n\n const showEmpty = computed(() => {\n const noData = unref(data).length === 0\n\n return isArray(props.fixedData)\n ? props.fixedData.length === 0 && noData\n : noData\n })\n\n function getRowHeight(rowIndex: number) {\n const { estimatedRowHeight, rowHeight, rowKey } = props\n\n if (!estimatedRowHeight) return rowHeight\n\n return (\n unref(rowHeights)[unref(data)[rowIndex][rowKey]] || estimatedRowHeight\n )\n }\n\n function onMaybeEndReached() {\n const { onEndReached } = props\n if (!onEndReached) return\n\n const { scrollTop } = unref(scrollPos)\n\n const _totalHeight = unref(rowsHeight)\n const clientHeight = unref(windowHeight)\n\n const heightUntilEnd =\n _totalHeight - (scrollTop + clientHeight) + props.hScrollbarSize\n\n if (\n unref(lastRenderedRowIndex) >= 0 &&\n _totalHeight !== unref(rowsHeight)\n ) {\n onEndReached(heightUntilEnd)\n }\n }\n\n // events\n\n watch(\n () => props.expandedRowKeys,\n (val) => (expandedRowKeys.value = val),\n {\n deep: true,\n }\n )\n\n return {\n // models\n columns,\n containerRef,\n mainTableRef,\n leftTableRef,\n rightTableRef,\n // states\n isDynamic,\n isResetting,\n isScrolling,\n hoveringRowKey,\n hasFixedColumns,\n // records\n columnsStyles,\n columnsTotalWidth,\n data,\n expandedRowKeys,\n depthMap,\n fixedColumnsOnLeft,\n fixedColumnsOnRight,\n mainColumns,\n // metadata\n bodyWidth,\n emptyStyle,\n rootStyle,\n headerWidth,\n footerHeight,\n mainTableHeight,\n fixedTableHeight,\n leftTableWidth,\n rightTableWidth,\n // flags\n showEmpty,\n\n // methods\n getRowHeight,\n\n // event handlers\n onColumnSorted,\n onRowHovered,\n onRowExpanded,\n onRowsRendered,\n onRowHeightChange,\n // use scrollbars\n scrollTo,\n scrollToLeft,\n scrollToTop,\n onScroll,\n onVerticalScroll,\n }\n}\n\nexport { useTable }\n\nexport type UseTableReturn = ReturnType<typeof useTable>\n"],"names":[],"mappings":";;;;;;;;;;AASA,SAAS,QAAQ,CAAC,KAAK,EAAE;AACzB,EAAE,MAAM,YAAY,GAAG,GAAG,EAAE,CAAC;AAC7B,EAAE,MAAM,YAAY,GAAG,GAAG,EAAE,CAAC;AAC7B,EAAE,MAAM,aAAa,GAAG,GAAG,EAAE,CAAC;AAC9B,EAAE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@@
|
|
|
1
1
|
import { isVNode, h } from 'vue';
|
|
2
2
|
import '../../../utils/index.mjs';
|
|
3
3
|
import { isArray, isFunction } from '@vue/shared';
|
|
4
|
-
import { addUnit } from '../../../utils/
|
|
4
|
+
import { addUnit } from '../../../utils/dom/style.mjs';
|
|
5
5
|
|
|
6
6
|
const sumReducer = (sum2, num) => sum2 + num;
|
|
7
7
|
const sum = (listLike) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.mjs","sources":["../../../../../../packages/components/table-v2/src/utils.ts"],"sourcesContent":["import { h, isVNode } from 'vue'\nimport { addUnit, isArray, isFunction } from '@element-plus/utils'\n\nimport type { CSSProperties, Component, Slot } from 'vue'\n\nconst sumReducer = (sum: number, num: number) => sum + num\n\nexport const sum = (listLike: number | number[]) => {\n return isArray(listLike) ? listLike.reduce(sumReducer, 0) : listLike\n}\n\nexport const tryCall = <T>(\n fLike: T,\n params: T extends (...args: infer K) => unknown ? K : any,\n defaultRet = {}\n) => {\n return isFunction(fLike) ? fLike(params) : fLike ?? defaultRet\n}\n\nexport const enforceUnit = (style: CSSProperties) => {\n ;['width', 'maxWidth', 'minWidth', 'height'].forEach((key) => {\n style[key] = addUnit(style[key])\n })\n\n return style\n}\n\nexport const componentToSlot = <T>(\n ComponentLike: JSX.Element | ((props: T) => Component<T>) | undefined\n) =>\n isVNode(ComponentLike)\n ? (props: T) => h(ComponentLike, props)\n : (ComponentLike as Slot)\n"],"names":[],"mappings":";;;;;AAEA,MAAM,UAAU,GAAG,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,GAAG,GAAG,CAAC;AACjC,MAAC,GAAG,GAAG,CAAC,QAAQ,KAAK;AACjC,EAAE,OAAO,OAAO,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC,CAAC,GAAG,QAAQ,CAAC;AACvE,EAAE;AACU,MAAC,OAAO,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,GAAG,EAAE,KAAK;AAC3D,EAAE,OAAO,UAAU,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,KAAK,IAAI,IAAI,GAAG,KAAK,GAAG,UAAU,CAAC;AAChF,EAAE;AACU,MAAC,WAAW,GAAG,CAAC,KAAK,KAAK;AACtC,EAAE,CAAC;AACH,EAAE,CAAC,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,KAAK;AAC/D,IAAI,KAAK,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;AACrC,GAAG,CAAC,CAAC;AACL,EAAE,OAAO,KAAK,CAAC;AACf,EAAE;AACU,MAAC,eAAe,GAAG,CAAC,aAAa,KAAK,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,KAAK,KAAK,CAAC,CAAC,aAAa,EAAE,KAAK,CAAC,GAAG;;;;"}
|
|
1
|
+
{"version":3,"file":"utils.mjs","sources":["../../../../../../packages/components/table-v2/src/utils.ts"],"sourcesContent":["import { h, isVNode } from 'vue'\nimport { addUnit, isArray, isFunction } from '@element-plus/utils'\n\nimport type { CSSProperties, Component, Slot } from 'vue'\n\nconst sumReducer = (sum: number, num: number) => sum + num\n\nexport const sum = (listLike: number | number[]) => {\n return isArray(listLike) ? listLike.reduce(sumReducer, 0) : listLike\n}\n\nexport const tryCall = <T>(\n fLike: T,\n params: T extends (...args: infer K) => unknown ? K : any,\n defaultRet = {}\n) => {\n return isFunction(fLike) ? fLike(params) : fLike ?? defaultRet\n}\n\nexport const enforceUnit = (style: CSSProperties) => {\n ;(['width', 'maxWidth', 'minWidth', 'height'] as const).forEach((key) => {\n style[key] = addUnit(style[key])\n })\n\n return style\n}\n\nexport const componentToSlot = <T>(\n ComponentLike: JSX.Element | ((props: T) => Component<T>) | undefined\n) =>\n isVNode(ComponentLike)\n ? (props: T) => h(ComponentLike, props)\n : (ComponentLike as Slot)\n"],"names":[],"mappings":";;;;;AAEA,MAAM,UAAU,GAAG,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,GAAG,GAAG,CAAC;AACjC,MAAC,GAAG,GAAG,CAAC,QAAQ,KAAK;AACjC,EAAE,OAAO,OAAO,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC,CAAC,GAAG,QAAQ,CAAC;AACvE,EAAE;AACU,MAAC,OAAO,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,GAAG,EAAE,KAAK;AAC3D,EAAE,OAAO,UAAU,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,KAAK,IAAI,IAAI,GAAG,KAAK,GAAG,UAAU,CAAC;AAChF,EAAE;AACU,MAAC,WAAW,GAAG,CAAC,KAAK,KAAK;AACtC,EAAE,CAAC;AACH,EAAE,CAAC,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,KAAK;AAC/D,IAAI,KAAK,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;AACrC,GAAG,CAAC,CAAC;AACL,EAAE,OAAO,KAAK,CAAC;AACf,EAAE;AACU,MAAC,eAAe,GAAG,CAAC,aAAa,KAAK,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,KAAK,KAAK,CAAC,CAAC,aAAa,EAAE,KAAK,CAAC,GAAG;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../utils/index.mjs';
|
|
2
|
-
import Tooltip from './src/
|
|
3
|
-
export { useTooltipContentProps, useTooltipProps, useTooltipTriggerProps } from './src/
|
|
2
|
+
import Tooltip from './src/tooltip2.mjs';
|
|
3
|
+
export { useTooltipContentProps, useTooltipProps, useTooltipTriggerProps } from './src/tooltip.mjs';
|
|
4
4
|
export { TOOLTIP_INJECTION_KEY } from './src/tokens.mjs';
|
|
5
5
|
import { withInstall } from '../../utils/vue/install.mjs';
|
|
6
6
|
|
|
@@ -4,7 +4,7 @@ import '../../popper/index.mjs';
|
|
|
4
4
|
import '../../visual-hidden/index.mjs';
|
|
5
5
|
import '../../../utils/index.mjs';
|
|
6
6
|
import '../../../hooks/index.mjs';
|
|
7
|
-
import { useTooltipContentProps } from './
|
|
7
|
+
import { useTooltipContentProps } from './tooltip.mjs';
|
|
8
8
|
import { TOOLTIP_INJECTION_KEY } from './tokens.mjs';
|
|
9
9
|
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
10
10
|
import ElPopperContent from '../../popper/src/content2.mjs';
|