@maxtropy/v-components 0.1.12-beta.21 → 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
|
|
26965
|
-
return (
|
|
26966
|
-
|
|
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(
|
|
26990
|
+
K("p", j5, ue(n.emptyContent), 1)
|
|
26973
26991
|
]),
|
|
26974
26992
|
_: 2
|
|
26975
26993
|
}, [
|
|
26976
|
-
Te(
|
|
26977
|
-
name:
|
|
26994
|
+
Te(A.$slots, (y, b, E) => ({
|
|
26995
|
+
name: b,
|
|
26978
26996
|
fn: z(() => [
|
|
26979
|
-
te(
|
|
26997
|
+
te(A.$slots, b)
|
|
26980
26998
|
])
|
|
26981
26999
|
}))
|
|
26982
27000
|
]), 1040),
|
|
26983
|
-
|
|
27001
|
+
n.showSelectedCount ? (w(), R("p", Y5, [
|
|
26984
27002
|
Ze(" 已选择"),
|
|
26985
|
-
K("span", null, ue(
|
|
27003
|
+
K("span", null, ue(n.selectedCount), 1),
|
|
26986
27004
|
Ze("项 ")
|
|
26987
27005
|
])) : J("", !0)
|
|
26988
27006
|
]));
|
|
@@ -11,7 +11,21 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
11
11
|
type: NumberConstructor;
|
|
12
12
|
default: number;
|
|
13
13
|
};
|
|
14
|
-
}, {
|
|
14
|
+
}, {
|
|
15
|
+
clearSelection: () => void;
|
|
16
|
+
getSelectionRows: () => any;
|
|
17
|
+
toggleRowSelection: (row: any, selected: boolean) => void;
|
|
18
|
+
toggleAllSelection: () => void;
|
|
19
|
+
toggleRowExpansion: (row: any, expanded?: boolean | undefined) => void;
|
|
20
|
+
setCurrentRow: (row: any) => void;
|
|
21
|
+
clearSort: () => void;
|
|
22
|
+
clearFilter: (columnKeys: string[]) => void;
|
|
23
|
+
doLayout: () => void;
|
|
24
|
+
sort: (prop: string, order: string) => void;
|
|
25
|
+
scrollTo: (options: number | ScrollToOptions, yCoord?: number | undefined) => void;
|
|
26
|
+
setScrollTop: (top?: number | undefined) => void;
|
|
27
|
+
setScrollLeft: (left?: number | undefined) => void;
|
|
28
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
29
|
emptyContent: {
|
|
16
30
|
type: StringConstructor;
|
|
17
31
|
default: string;
|