@maxtropy/v-components 0.1.12-beta.20 → 0.1.12-beta.22

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.
@@ -26960,29 +26960,47 @@ const H5 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAABQCAYAAADRAH3kAA
26960
26960
  default: 0
26961
26961
  }
26962
26962
  },
26963
- setup(e) {
26964
- const t = e;
26965
- return (n, o) => (w(), R("div", U5, [
26966
- G(s(Xx), De({ class: { "mx-table": !0 } }, n.$attrs), rt({
26963
+ setup(e, { expose: t }) {
26964
+ const n = e, o = M();
26965
+ return t({
26966
+ clearSelection: () => o.value.clearSelection(),
26967
+ getSelectionRows: () => o.value.getSelectionRows(),
26968
+ toggleRowSelection: (A, C) => o.value.toggleRowSelection(A, C),
26969
+ toggleAllSelection: () => o.value.toggleAllSelection(),
26970
+ toggleRowExpansion: (A, C) => o.value.toggleRowExpansion(A, C),
26971
+ setCurrentRow: (A) => o.value.setCurrentRow(A),
26972
+ clearSort: () => o.value.clearSort(),
26973
+ clearFilter: (A) => o.value.clearFilter(A),
26974
+ doLayout: () => o.value.doLayout(),
26975
+ sort: (A, C) => o.value.sort(A, C),
26976
+ scrollTo: (A, C) => o.value.scrollTo(A, C),
26977
+ setScrollTop: (A) => o.value.setScrollTop(A),
26978
+ setScrollLeft: (A) => o.value.setScrollLeft(A)
26979
+ }), (A, C) => (w(), R("div", U5, [
26980
+ G(s(Xx), De({
26981
+ ref_key: "tableRef",
26982
+ ref: o,
26983
+ class: { "mx-table": !0 }
26984
+ }, A.$attrs), rt({
26967
26985
  empty: z(() => [
26968
26986
  K("img", {
26969
26987
  src: s(H5),
26970
26988
  class: "mx-table-empty-img"
26971
26989
  }, null, 8, W5),
26972
- K("p", j5, ue(t.emptyContent), 1)
26990
+ K("p", j5, ue(n.emptyContent), 1)
26973
26991
  ]),
26974
26992
  _: 2
26975
26993
  }, [
26976
- Te(n.$slots, (r, a, l) => ({
26977
- name: a,
26994
+ Te(A.$slots, (y, b, E) => ({
26995
+ name: b,
26978
26996
  fn: z(() => [
26979
- te(n.$slots, a)
26997
+ te(A.$slots, b)
26980
26998
  ])
26981
26999
  }))
26982
27000
  ]), 1040),
26983
- t.showSelectedCount ? (w(), R("p", Y5, [
27001
+ n.showSelectedCount ? (w(), R("p", Y5, [
26984
27002
  Ze(" 已选择"),
26985
- K("span", null, ue(t.selectedCount), 1),
27003
+ K("span", null, ue(n.selectedCount), 1),
26986
27004
  Ze("项 ")
26987
27005
  ])) : J("", !0)
26988
27006
  ]));