@ditari/bsui 1.0.50 → 1.0.51
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/cjs/components/table/Table.cjs.js +1 -1
- package/dist/cjs/components/table/Table.d.ts +4 -0
- package/dist/cjs/components/table/index.d.ts +4 -0
- package/dist/cjs/components/table/interface/table.d.ts +1 -0
- package/dist/esm/components/table/Table.d.ts +4 -0
- package/dist/esm/components/table/Table.esm.js +52 -49
- package/dist/esm/components/table/index.d.ts +4 -0
- package/dist/esm/components/table/interface/table.d.ts +1 -0
- package/package.json +1 -1
- package/src/components/table/Table.tsx +6 -1
- package/src/components/table/interface/table.ts +2 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),R=require("ant-design-vue"),T=require("../../utils/html.cjs.js"),M=require("../theme/index.cjs.js"),Q=()=>({data:{type:Object,required:!0},height:{type:Number,default:300},keys:Array,rowKey:{type:String,default:"id"},loading:{type:Boolean,default:!1},pagination:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})},expandedRowKeys:{type:Object,default:()=>[]},defaultExpandAllRows:Boolean,default:()=>!0}),b={defaultPageSize:20,hideOnSinglePage:!1,pageSizeOptions:["10","20","30","40"],responsive:!0,showQuickJumper:!0,showLessItems:!0,showTotal:a=>`总共 ${a} 条`},P=`${M.prefixName}-pagination`,I=t.defineComponent({name:"DTable",props:Q(),emits:["update:keys"],setup:function(a,{emit:p,slots:d}){const n=t.ref(a.keys||[]),E=t.computed(()=>a.data),z=t.computed(()=>{var e;return((e=a.config)==null?void 0:e.columns)??[]}),m=t.computed(()=>{var e;return((e=a.config)==null?void 0:e.pagination)??{}}),S=t.ref(a.expandedRowKeys);t.watchEffect(()=>{const{expandedRowKeys:e}=a;S.value=e});const{tableRef:K,tableRootRef:O,tableHeight:B,onPageChange:V,onRowClassName:H}=j();function j(){const{rowClassName:e,keepSelected:l,onPageChange:i}=a.config,f=a.config.selection??"N",r=t.ref(),u=t.ref(null),o=t.ref(),c=t.ref(null),g=s=>{var h,x;try{const y=(h=u==null?void 0:u.value)==null?void 0:h.$el,$=T.useEleHeight(y.getElementsByClassName("ant-table-header")[0]);let N=0;if(a.config.pagination){const J=(x=r.value)==null?void 0:x.getElementsByClassName(P)[0];N=T.useEleHeight(J)??0}o.value=s-($+N),y.getElementsByClassName("ant-table-body")[0].style.height=o.value+"px",c.value=y.getElementsByClassName("ant-table-body")[0]}catch(y){console.warn(y)}};return t.watchEffect(()=>{a.height!==0&&t.nextTick(()=>{setTimeout(()=>{g(a.height)},10)})}),{tableRef:u,tableRootRef:r,tableHeight:o,onPageChange:(s,h)=>{i&&i({page:s,size:h}),c.value.scrollTop=0,(f==="S"||!l)&&(n.value=[],p("update:keys",n.value))},onRowClassName:(s,h)=>e?e(s,h):void 0}}const q=D();function D(){const{rowKey:e,config:{getCheckboxProps:l}}=a;let i=a.config.selection??"N";const f=(o,c)=>{i==="S"?(n.value=[],n.value=c?[o[e]]:[]):n.value=c?n.value.concat(o[e]):n.value.filter(g=>g!==o[e]),p("update:keys",n.value)},r=(o,c,g)=>{const v=g.map(w=>w[e]);n.value=o?n.value.concat(v):n.value.filter(w=>!v.includes(w)),p("update:keys",n.value)};t.watch(()=>a.keys,o=>{n.value=o});const u=t.ref(void 0);return t.watchEffect(()=>{const{selection:o}=a.config;i=o,i!=="N"?u.value={selectedRowKeys:n,onSelect:f,onSelectAll:r,fixed:!0,columnTitle:i==="S"?"选择":null,columnWidth:i==="S"?60:40,getCheckboxProps:l}:u.value=void 0}),u}const A=F();function F(){return e=>{let l;const{rowKey:i,config:{click:f,dbClick:r,selection:u,getCheckboxProps:o}}=a,c=e[i],g=()=>{const v=o===void 0?!1:o(e).disabled;if(u==="N"||v)return;n.value.some(s=>s===c)?n.value=n.value.filter(s=>s!==c):(u==="S"&&(n.value=[]),n.value.push(c)),p("update:keys",n.value)};return{onClick:()=>{clearTimeout(l),l=setTimeout(()=>{g(),f&&f(e)},200)},onDblclick:()=>{clearTimeout(l),r&&r(e)}}}}const C=e=>{e.stopPropagation()},U=t.computed(()=>{const{selection:e}=a.config;return e==="N"}),k={};d.expandedRowRender&&(k.expandedRowRender=e=>t.createVNode(t.Fragment,null,[d.expandedRowRender&&d.expandedRowRender(e)]));const _=()=>t.createVNode(t.Fragment,null,[d.summary&&d.summary()]);return()=>{var e;return t.createVNode("div",{ref:O,style:{height:"100%"}},[t.createVNode(R.Table,{ref:K,"row-key":a.rowKey,bordered:a.config.bordered,columns:z.value,dataSource:E.value,loading:a.loading,size:((e=a.config)==null?void 0:e.size)??"small",scroll:{scrollToFirstRowOnChange:!0,x:"100%",y:B.value+"px"},expandedRowKeys:S.value,"onUpdate:expandedRowKeys":l=>S.value=l,expandRowByClick:U.value,defaultExpandAllRows:a.defaultExpandAllRows,pagination:!1,customRow:A,rowSelection:q.value,rowClassName:H},{bodyCell:({column:l,record:i})=>{if(l.slot==="action")return t.createVNode("div",{onClick:C,onDblclick:C},[t.createVNode(R.Space,null,{default:()=>[d.action&&d.action(i)]})])},...k,summary:_}),t.withDirectives(t.createVNode(R.Pagination,{class:[P],current:m.value.current,"onUpdate:current":l=>m.value.current=l,pageSize:m.value.pageSize,"onUpdate:pageSize":l=>m.value.pageSize=l,disabled:a.loading,"show-size-changer":!0,size:"default","hide-on-single-page":b.hideOnSinglePage,"show-quick-jumper":b.showQuickJumper,"default-page-size":b.defaultPageSize,"page-size-options":b.pageSizeOptions,"show-total":b.showTotal,total:m.value.total,onChange:V},null),[[t.vShow,a.config.pagination]])])}}});exports.default=I;
|
|
@@ -33,6 +33,8 @@ declare const DXTable: import("vue").DefineComponent<{
|
|
|
33
33
|
type: PropType<string[] | undefined>;
|
|
34
34
|
default: () => never[];
|
|
35
35
|
};
|
|
36
|
+
defaultExpandAllRows: PropType<boolean | undefined>;
|
|
37
|
+
default: () => boolean;
|
|
36
38
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:keys"[], "update:keys", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
37
39
|
data: {
|
|
38
40
|
type: PropType<any>;
|
|
@@ -63,6 +65,8 @@ declare const DXTable: import("vue").DefineComponent<{
|
|
|
63
65
|
type: PropType<string[] | undefined>;
|
|
64
66
|
default: () => never[];
|
|
65
67
|
};
|
|
68
|
+
defaultExpandAllRows: PropType<boolean | undefined>;
|
|
69
|
+
default: () => boolean;
|
|
66
70
|
}>> & {
|
|
67
71
|
"onUpdate:keys"?: ((...args: any[]) => any) | undefined;
|
|
68
72
|
}, {
|
|
@@ -28,6 +28,8 @@ export declare const DTable: import("../../utils/install").SFCWithInstall<import
|
|
|
28
28
|
type: import("vue").PropType<string[] | undefined>;
|
|
29
29
|
default: () => never[];
|
|
30
30
|
};
|
|
31
|
+
defaultExpandAllRows: import("vue").PropType<boolean | undefined>;
|
|
32
|
+
default: () => boolean;
|
|
31
33
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:keys"[], "update:keys", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
32
34
|
data: {
|
|
33
35
|
type: import("vue").PropType<any>;
|
|
@@ -58,6 +60,8 @@ export declare const DTable: import("../../utils/install").SFCWithInstall<import
|
|
|
58
60
|
type: import("vue").PropType<string[] | undefined>;
|
|
59
61
|
default: () => never[];
|
|
60
62
|
};
|
|
63
|
+
defaultExpandAllRows: import("vue").PropType<boolean | undefined>;
|
|
64
|
+
default: () => boolean;
|
|
61
65
|
}>> & {
|
|
62
66
|
"onUpdate:keys"?: ((...args: any[]) => any) | undefined;
|
|
63
67
|
}, {
|
|
@@ -33,6 +33,8 @@ declare const DXTable: import("vue").DefineComponent<{
|
|
|
33
33
|
type: PropType<string[] | undefined>;
|
|
34
34
|
default: () => never[];
|
|
35
35
|
};
|
|
36
|
+
defaultExpandAllRows: PropType<boolean | undefined>;
|
|
37
|
+
default: () => boolean;
|
|
36
38
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:keys"[], "update:keys", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
37
39
|
data: {
|
|
38
40
|
type: PropType<any>;
|
|
@@ -63,6 +65,8 @@ declare const DXTable: import("vue").DefineComponent<{
|
|
|
63
65
|
type: PropType<string[] | undefined>;
|
|
64
66
|
default: () => never[];
|
|
65
67
|
};
|
|
68
|
+
defaultExpandAllRows: PropType<boolean | undefined>;
|
|
69
|
+
default: () => boolean;
|
|
66
70
|
}>> & {
|
|
67
71
|
"onUpdate:keys"?: ((...args: any[]) => any) | undefined;
|
|
68
72
|
}, {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as X, ref as r, computed as
|
|
1
|
+
import { defineComponent as X, ref as r, computed as S, watchEffect as k, nextTick as _, watch as G, createVNode as f, withDirectives as M, vShow as Y, Fragment as z } from "vue";
|
|
2
2
|
import { Table as Z, Space as ee, Pagination as te } from "ant-design-vue";
|
|
3
|
-
import { useEleHeight as
|
|
4
|
-
import { prefixName as
|
|
5
|
-
const
|
|
3
|
+
import { useEleHeight as E } from "../../utils/html.esm.js";
|
|
4
|
+
import { prefixName as ae } from "../theme/index.esm.js";
|
|
5
|
+
const ne = () => ({
|
|
6
6
|
data: {
|
|
7
7
|
type: Object,
|
|
8
8
|
required: !0
|
|
@@ -31,7 +31,9 @@ const ae = () => ({
|
|
|
31
31
|
expandedRowKeys: {
|
|
32
32
|
type: Object,
|
|
33
33
|
default: () => []
|
|
34
|
-
}
|
|
34
|
+
},
|
|
35
|
+
defaultExpandAllRows: Boolean,
|
|
36
|
+
default: () => !0
|
|
35
37
|
}), b = {
|
|
36
38
|
defaultPageSize: 20,
|
|
37
39
|
hideOnSinglePage: !1,
|
|
@@ -40,51 +42,51 @@ const ae = () => ({
|
|
|
40
42
|
showQuickJumper: !0,
|
|
41
43
|
showLessItems: !0,
|
|
42
44
|
showTotal: (t) => `总共 ${t} 条`
|
|
43
|
-
},
|
|
45
|
+
}, K = `${ae}-pagination`, ce = /* @__PURE__ */ X({
|
|
44
46
|
name: "DTable",
|
|
45
|
-
props:
|
|
47
|
+
props: ne(),
|
|
46
48
|
// emits: { "update:keys": (keys: []) => void }
|
|
47
49
|
// TODO 需要做调整
|
|
48
50
|
emits: ["update:keys"],
|
|
49
51
|
setup: function(t, {
|
|
50
|
-
emit:
|
|
52
|
+
emit: R,
|
|
51
53
|
slots: s
|
|
52
54
|
}) {
|
|
53
|
-
const
|
|
55
|
+
const a = r(t.keys || []), B = S(() => t.data), O = S(() => {
|
|
54
56
|
var e;
|
|
55
57
|
return ((e = t.config) == null ? void 0 : e.columns) ?? [];
|
|
56
|
-
}), v =
|
|
58
|
+
}), v = S(() => {
|
|
57
59
|
var e;
|
|
58
60
|
return ((e = t.config) == null ? void 0 : e.pagination) ?? {};
|
|
59
|
-
}),
|
|
61
|
+
}), C = r(t.expandedRowKeys);
|
|
60
62
|
k(() => {
|
|
61
63
|
const {
|
|
62
64
|
expandedRowKeys: e
|
|
63
65
|
} = t;
|
|
64
|
-
|
|
66
|
+
C.value = e;
|
|
65
67
|
});
|
|
66
68
|
const {
|
|
67
69
|
tableRef: H,
|
|
68
70
|
tableRootRef: j,
|
|
69
|
-
tableHeight:
|
|
70
|
-
onPageChange:
|
|
71
|
-
onRowClassName:
|
|
72
|
-
} =
|
|
73
|
-
function
|
|
71
|
+
tableHeight: A,
|
|
72
|
+
onPageChange: D,
|
|
73
|
+
onRowClassName: U
|
|
74
|
+
} = $();
|
|
75
|
+
function $() {
|
|
74
76
|
const {
|
|
75
77
|
rowClassName: e,
|
|
76
78
|
keepSelected: o,
|
|
77
79
|
onPageChange: l
|
|
78
|
-
} = t.config, m = t.config.selection ?? "N", d = r(), i = r(null),
|
|
80
|
+
} = t.config, m = t.config.selection ?? "N", d = r(), i = r(null), n = r(), u = r(null), g = (c) => {
|
|
79
81
|
var h, T;
|
|
80
82
|
try {
|
|
81
|
-
const p = (h = i == null ? void 0 : i.value) == null ? void 0 : h.$el, V =
|
|
83
|
+
const p = (h = i == null ? void 0 : i.value) == null ? void 0 : h.$el, V = E(p.getElementsByClassName("ant-table-header")[0]);
|
|
82
84
|
let P = 0;
|
|
83
85
|
if (t.config.pagination) {
|
|
84
|
-
const W = (T = d.value) == null ? void 0 : T.getElementsByClassName(
|
|
85
|
-
P =
|
|
86
|
+
const W = (T = d.value) == null ? void 0 : T.getElementsByClassName(K)[0];
|
|
87
|
+
P = E(W) ?? 0;
|
|
86
88
|
}
|
|
87
|
-
|
|
89
|
+
n.value = c - (V + P), p.getElementsByClassName("ant-table-body")[0].style.height = n.value + "px", u.value = p.getElementsByClassName("ant-table-body")[0];
|
|
88
90
|
} catch (p) {
|
|
89
91
|
console.warn(p);
|
|
90
92
|
}
|
|
@@ -98,17 +100,17 @@ const ae = () => ({
|
|
|
98
100
|
}), {
|
|
99
101
|
tableRef: i,
|
|
100
102
|
tableRootRef: d,
|
|
101
|
-
tableHeight:
|
|
103
|
+
tableHeight: n,
|
|
102
104
|
onPageChange: (c, h) => {
|
|
103
105
|
l && l({
|
|
104
106
|
page: c,
|
|
105
107
|
size: h
|
|
106
|
-
}), u.value.scrollTop = 0, (m === "S" || !o) && (
|
|
108
|
+
}), u.value.scrollTop = 0, (m === "S" || !o) && (a.value = [], R("update:keys", a.value));
|
|
107
109
|
},
|
|
108
110
|
onRowClassName: (c, h) => e ? e(c, h) : void 0
|
|
109
111
|
};
|
|
110
112
|
}
|
|
111
|
-
const
|
|
113
|
+
const q = F();
|
|
112
114
|
function F() {
|
|
113
115
|
const {
|
|
114
116
|
rowKey: e,
|
|
@@ -117,22 +119,22 @@ const ae = () => ({
|
|
|
117
119
|
}
|
|
118
120
|
} = t;
|
|
119
121
|
let l = t.config.selection ?? "N";
|
|
120
|
-
const m = (
|
|
121
|
-
l === "S" ? (
|
|
122
|
-
}, d = (
|
|
123
|
-
const
|
|
124
|
-
|
|
122
|
+
const m = (n, u) => {
|
|
123
|
+
l === "S" ? (a.value = [], a.value = u ? [n[e]] : []) : a.value = u ? a.value.concat(n[e]) : a.value.filter((g) => g !== n[e]), R("update:keys", a.value);
|
|
124
|
+
}, d = (n, u, g) => {
|
|
125
|
+
const w = g.map((y) => y[e]);
|
|
126
|
+
a.value = n ? a.value.concat(w) : a.value.filter((y) => !w.includes(y)), R("update:keys", a.value);
|
|
125
127
|
};
|
|
126
|
-
G(() => t.keys, (
|
|
127
|
-
|
|
128
|
+
G(() => t.keys, (n) => {
|
|
129
|
+
a.value = n;
|
|
128
130
|
});
|
|
129
131
|
const i = r(void 0);
|
|
130
132
|
return k(() => {
|
|
131
133
|
const {
|
|
132
|
-
selection:
|
|
134
|
+
selection: n
|
|
133
135
|
} = t.config;
|
|
134
|
-
l =
|
|
135
|
-
selectedRowKeys:
|
|
136
|
+
l = n, l !== "N" ? i.value = {
|
|
137
|
+
selectedRowKeys: a,
|
|
136
138
|
onSelect: m,
|
|
137
139
|
onSelectAll: d,
|
|
138
140
|
fixed: !0,
|
|
@@ -152,13 +154,13 @@ const ae = () => ({
|
|
|
152
154
|
click: m,
|
|
153
155
|
dbClick: d,
|
|
154
156
|
selection: i,
|
|
155
|
-
getCheckboxProps:
|
|
157
|
+
getCheckboxProps: n
|
|
156
158
|
}
|
|
157
159
|
} = t, u = e[l], g = () => {
|
|
158
|
-
const
|
|
159
|
-
if (i === "N" ||
|
|
160
|
+
const w = n === void 0 ? !1 : n(e).disabled;
|
|
161
|
+
if (i === "N" || w)
|
|
160
162
|
return;
|
|
161
|
-
|
|
163
|
+
a.value.some((c) => c === u) ? a.value = a.value.filter((c) => c !== u) : (i === "S" && (a.value = []), a.value.push(u)), R("update:keys", a.value);
|
|
162
164
|
};
|
|
163
165
|
return {
|
|
164
166
|
onClick: () => {
|
|
@@ -184,7 +186,7 @@ const ae = () => ({
|
|
|
184
186
|
}
|
|
185
187
|
const x = (e) => {
|
|
186
188
|
e.stopPropagation();
|
|
187
|
-
}, I =
|
|
189
|
+
}, I = S(() => {
|
|
188
190
|
const {
|
|
189
191
|
selection: e
|
|
190
192
|
} = t.config;
|
|
@@ -203,22 +205,23 @@ const ae = () => ({
|
|
|
203
205
|
ref: H,
|
|
204
206
|
"row-key": t.rowKey,
|
|
205
207
|
bordered: t.config.bordered,
|
|
206
|
-
columns:
|
|
207
|
-
dataSource:
|
|
208
|
+
columns: O.value,
|
|
209
|
+
dataSource: B.value,
|
|
208
210
|
loading: t.loading,
|
|
209
211
|
size: ((e = t.config) == null ? void 0 : e.size) ?? "small",
|
|
210
212
|
scroll: {
|
|
211
213
|
scrollToFirstRowOnChange: !0,
|
|
212
214
|
x: "100%",
|
|
213
|
-
y:
|
|
215
|
+
y: A.value + "px"
|
|
214
216
|
},
|
|
215
|
-
expandedRowKeys:
|
|
216
|
-
"onUpdate:expandedRowKeys": (o) =>
|
|
217
|
+
expandedRowKeys: C.value,
|
|
218
|
+
"onUpdate:expandedRowKeys": (o) => C.value = o,
|
|
217
219
|
expandRowByClick: I.value,
|
|
220
|
+
defaultExpandAllRows: t.defaultExpandAllRows,
|
|
218
221
|
pagination: !1,
|
|
219
222
|
customRow: J,
|
|
220
|
-
rowSelection:
|
|
221
|
-
rowClassName:
|
|
223
|
+
rowSelection: q.value,
|
|
224
|
+
rowClassName: U
|
|
222
225
|
}, {
|
|
223
226
|
bodyCell: ({
|
|
224
227
|
column: o,
|
|
@@ -236,7 +239,7 @@ const ae = () => ({
|
|
|
236
239
|
// 总结栏插槽
|
|
237
240
|
summary: L
|
|
238
241
|
}), M(f(te, {
|
|
239
|
-
class: [
|
|
242
|
+
class: [K],
|
|
240
243
|
current: v.value.current,
|
|
241
244
|
"onUpdate:current": (o) => v.value.current = o,
|
|
242
245
|
pageSize: v.value.pageSize,
|
|
@@ -250,7 +253,7 @@ const ae = () => ({
|
|
|
250
253
|
"page-size-options": b.pageSizeOptions,
|
|
251
254
|
"show-total": b.showTotal,
|
|
252
255
|
total: v.value.total,
|
|
253
|
-
onChange:
|
|
256
|
+
onChange: D
|
|
254
257
|
}, null), [[Y, t.config.pagination]])]);
|
|
255
258
|
};
|
|
256
259
|
}
|
|
@@ -28,6 +28,8 @@ export declare const DTable: import("../../utils/install").SFCWithInstall<import
|
|
|
28
28
|
type: import("vue").PropType<string[] | undefined>;
|
|
29
29
|
default: () => never[];
|
|
30
30
|
};
|
|
31
|
+
defaultExpandAllRows: import("vue").PropType<boolean | undefined>;
|
|
32
|
+
default: () => boolean;
|
|
31
33
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:keys"[], "update:keys", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
32
34
|
data: {
|
|
33
35
|
type: import("vue").PropType<any>;
|
|
@@ -58,6 +60,8 @@ export declare const DTable: import("../../utils/install").SFCWithInstall<import
|
|
|
58
60
|
type: import("vue").PropType<string[] | undefined>;
|
|
59
61
|
default: () => never[];
|
|
60
62
|
};
|
|
63
|
+
defaultExpandAllRows: import("vue").PropType<boolean | undefined>;
|
|
64
|
+
default: () => boolean;
|
|
61
65
|
}>> & {
|
|
62
66
|
"onUpdate:keys"?: ((...args: any[]) => any) | undefined;
|
|
63
67
|
}, {
|
package/package.json
CHANGED
|
@@ -47,7 +47,11 @@ const tableProps = () => {
|
|
|
47
47
|
expandedRowKeys: {
|
|
48
48
|
type: Object as PropType<TableProps["expandedRowKeys"]>,
|
|
49
49
|
default: () => []
|
|
50
|
-
}
|
|
50
|
+
},
|
|
51
|
+
defaultExpandAllRows: Boolean as PropType<
|
|
52
|
+
TableProps["defaultExpandAllRows"]
|
|
53
|
+
>,
|
|
54
|
+
default: () => true
|
|
51
55
|
};
|
|
52
56
|
};
|
|
53
57
|
|
|
@@ -396,6 +400,7 @@ const DXTable = defineComponent({
|
|
|
396
400
|
}}
|
|
397
401
|
v-model:expandedRowKeys={expandedKeys.value}
|
|
398
402
|
expandRowByClick={expandRowByClick.value}
|
|
403
|
+
defaultExpandAllRows={props.defaultExpandAllRows}
|
|
399
404
|
pagination={false}
|
|
400
405
|
customRow={customRow}
|
|
401
406
|
rowSelection={rowSelection.value}
|