yuang-framework-ui-pc 1.1.6 → 1.1.8
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/es/ele-data-table/index.d.ts +12 -0
- package/es/ele-data-table/index.js +4 -0
- package/es/ele-data-table/props.d.ts +10 -0
- package/es/ele-data-table/types.d.ts +3 -0
- package/es/ele-data-table/util.js +4 -0
- package/lib/ele-data-table/index.cjs +4 -0
- package/lib/ele-data-table/index.d.ts +12 -0
- package/lib/ele-data-table/props.d.ts +10 -0
- package/lib/ele-data-table/types.d.ts +3 -0
- package/lib/ele-data-table/util.cjs +4 -0
- package/package.json +1 -1
|
@@ -120,6 +120,11 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
120
120
|
scrollbarAlwaysOn: BooleanConstructor;
|
|
121
121
|
flexible: BooleanConstructor;
|
|
122
122
|
showOverflowTooltip: import('vue').PropType<boolean | Partial<Pick<import('element-plus').ElTooltipProps, "offset" | "transition" | "placement" | "effect" | "showAfter" | "hideAfter" | "popperOptions" | "enterable" | "popperClass" | "appendTo" | "showArrow">> | undefined>;
|
|
123
|
+
appendFilterPanelTo: StringConstructor;
|
|
124
|
+
scrollbarTabindex: {
|
|
125
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
126
|
+
default: undefined;
|
|
127
|
+
};
|
|
123
128
|
}, {
|
|
124
129
|
clearSort: () => void;
|
|
125
130
|
clearSelection: () => void;
|
|
@@ -131,6 +136,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
131
136
|
setSelectedRowKeys: (keys?: DataKey[]) => void;
|
|
132
137
|
toggleRowExpansionAll: (expanded?: boolean) => void;
|
|
133
138
|
updateSelectedAndChecked: () => void;
|
|
139
|
+
updateKeyChildren: (key?: DataKey | null, rows?: DataItem[]) => void;
|
|
134
140
|
tableRef: Ref<ElTableInstance>;
|
|
135
141
|
getSelectionRows: () => DataItem[] | undefined;
|
|
136
142
|
toggleAllSelection: () => void;
|
|
@@ -280,6 +286,11 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
280
286
|
scrollbarAlwaysOn: BooleanConstructor;
|
|
281
287
|
flexible: BooleanConstructor;
|
|
282
288
|
showOverflowTooltip: import('vue').PropType<boolean | Partial<Pick<import('element-plus').ElTooltipProps, "offset" | "transition" | "placement" | "effect" | "showAfter" | "hideAfter" | "popperOptions" | "enterable" | "popperClass" | "appendTo" | "showArrow">> | undefined>;
|
|
289
|
+
appendFilterPanelTo: StringConstructor;
|
|
290
|
+
scrollbarTabindex: {
|
|
291
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
292
|
+
default: undefined;
|
|
293
|
+
};
|
|
283
294
|
}>> & {
|
|
284
295
|
onSelect?: ((_selection: DataItem[], _row: DataItem) => any) | undefined;
|
|
285
296
|
onExpandChange?: ((_row: DataItem, _expanded: boolean) => any) | undefined;
|
|
@@ -318,6 +329,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
318
329
|
tableLayout: "fixed" | "auto";
|
|
319
330
|
scrollbarAlwaysOn: boolean;
|
|
320
331
|
flexible: boolean;
|
|
332
|
+
scrollbarTabindex: string | number;
|
|
321
333
|
sticky: boolean;
|
|
322
334
|
headerEllipsis: boolean;
|
|
323
335
|
slotNormalize: boolean;
|
|
@@ -252,6 +252,9 @@ const index = /* @__PURE__ */ defineComponent({
|
|
|
252
252
|
updateCheckedState(tableState.checkedKeys, void 0, true);
|
|
253
253
|
}
|
|
254
254
|
};
|
|
255
|
+
const updateKeyChildren = (key, rows) => {
|
|
256
|
+
methods.updateKeyChildren(key, rows);
|
|
257
|
+
};
|
|
255
258
|
const updateCurrentRowKey = (key) => {
|
|
256
259
|
if (valueIsChanged(props.currentRowKey, key)) {
|
|
257
260
|
events["onUpdate:currentRowKey"](key);
|
|
@@ -317,6 +320,7 @@ const index = /* @__PURE__ */ defineComponent({
|
|
|
317
320
|
setSelectedRowKeys,
|
|
318
321
|
toggleRowExpansionAll,
|
|
319
322
|
updateSelectedAndChecked,
|
|
323
|
+
updateKeyChildren,
|
|
320
324
|
tableRef
|
|
321
325
|
};
|
|
322
326
|
expose(exposeValue);
|
|
@@ -87,6 +87,11 @@ declare const normalizeProps: import('../ele-app/types').Mutable<Omit<{
|
|
|
87
87
|
scrollbarAlwaysOn: BooleanConstructor;
|
|
88
88
|
flexible: BooleanConstructor;
|
|
89
89
|
showOverflowTooltip: PropType<boolean | Partial<Pick<import('element-plus').ElTooltipProps, "offset" | "transition" | "placement" | "effect" | "showAfter" | "hideAfter" | "popperOptions" | "enterable" | "popperClass" | "appendTo" | "showArrow">> | undefined>;
|
|
90
|
+
appendFilterPanelTo: StringConstructor;
|
|
91
|
+
scrollbarTabindex: {
|
|
92
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
93
|
+
default: undefined;
|
|
94
|
+
};
|
|
90
95
|
}, "style">>;
|
|
91
96
|
/**
|
|
92
97
|
* 属性
|
|
@@ -221,6 +226,11 @@ export declare const dataTableProps: {
|
|
|
221
226
|
scrollbarAlwaysOn: BooleanConstructor;
|
|
222
227
|
flexible: BooleanConstructor;
|
|
223
228
|
showOverflowTooltip: PropType<boolean | Partial<Pick<import('element-plus').ElTooltipProps, "offset" | "transition" | "placement" | "effect" | "showAfter" | "hideAfter" | "popperOptions" | "enterable" | "popperClass" | "appendTo" | "showArrow">> | undefined>;
|
|
229
|
+
appendFilterPanelTo: StringConstructor;
|
|
230
|
+
scrollbarTabindex: {
|
|
231
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
232
|
+
default: undefined;
|
|
233
|
+
};
|
|
224
234
|
};
|
|
225
235
|
export type DataTableProps = ExtractPropTypes<typeof dataTableProps>;
|
|
226
236
|
/**
|
|
@@ -144,6 +144,9 @@ export interface TableMethods {
|
|
|
144
144
|
toggleRowExpansionAll: (expanded?: boolean) => void;
|
|
145
145
|
/** 更新单选和多选选中 */
|
|
146
146
|
updateSelectedAndChecked: () => void;
|
|
147
|
+
|
|
148
|
+
/** 更新父节点下面的children节点列表 */
|
|
149
|
+
updateKeyChildren: (key?: DataKey | null, rows?: DataItem[]) => void;
|
|
147
150
|
}
|
|
148
151
|
|
|
149
152
|
/**
|
|
@@ -295,6 +295,10 @@ function useMethods(getInstance) {
|
|
|
295
295
|
updateSelectedAndChecked: () => {
|
|
296
296
|
const ins = getInstance();
|
|
297
297
|
ins && ins.updateSelectedAndChecked();
|
|
298
|
+
},
|
|
299
|
+
updateKeyChildren: (key, rows) => {
|
|
300
|
+
const ins = getInstance();
|
|
301
|
+
ins && ins.updateKeyChildren(key, rows);
|
|
298
302
|
}
|
|
299
303
|
};
|
|
300
304
|
return methods;
|
|
@@ -253,6 +253,9 @@ const index = /* @__PURE__ */ vue.defineComponent({
|
|
|
253
253
|
updateCheckedState(tableState.checkedKeys, void 0, true);
|
|
254
254
|
}
|
|
255
255
|
};
|
|
256
|
+
const updateKeyChildren = (key, rows) => {
|
|
257
|
+
methods.updateKeyChildren(key, rows);
|
|
258
|
+
};
|
|
256
259
|
const updateCurrentRowKey = (key) => {
|
|
257
260
|
if (util.valueIsChanged(props$1.currentRowKey, key)) {
|
|
258
261
|
events["onUpdate:currentRowKey"](key);
|
|
@@ -318,6 +321,7 @@ const index = /* @__PURE__ */ vue.defineComponent({
|
|
|
318
321
|
setSelectedRowKeys,
|
|
319
322
|
toggleRowExpansionAll,
|
|
320
323
|
updateSelectedAndChecked,
|
|
324
|
+
updateKeyChildren,
|
|
321
325
|
tableRef
|
|
322
326
|
};
|
|
323
327
|
expose(exposeValue);
|
|
@@ -120,6 +120,11 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
120
120
|
scrollbarAlwaysOn: BooleanConstructor;
|
|
121
121
|
flexible: BooleanConstructor;
|
|
122
122
|
showOverflowTooltip: import('vue').PropType<boolean | Partial<Pick<import('element-plus').ElTooltipProps, "offset" | "transition" | "placement" | "effect" | "showAfter" | "hideAfter" | "popperOptions" | "enterable" | "popperClass" | "appendTo" | "showArrow">> | undefined>;
|
|
123
|
+
appendFilterPanelTo: StringConstructor;
|
|
124
|
+
scrollbarTabindex: {
|
|
125
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
126
|
+
default: undefined;
|
|
127
|
+
};
|
|
123
128
|
}, {
|
|
124
129
|
clearSort: () => void;
|
|
125
130
|
clearSelection: () => void;
|
|
@@ -131,6 +136,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
131
136
|
setSelectedRowKeys: (keys?: DataKey[]) => void;
|
|
132
137
|
toggleRowExpansionAll: (expanded?: boolean) => void;
|
|
133
138
|
updateSelectedAndChecked: () => void;
|
|
139
|
+
updateKeyChildren: (key?: DataKey | null, rows?: DataItem[]) => void;
|
|
134
140
|
tableRef: Ref<ElTableInstance>;
|
|
135
141
|
getSelectionRows: () => DataItem[] | undefined;
|
|
136
142
|
toggleAllSelection: () => void;
|
|
@@ -280,6 +286,11 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
280
286
|
scrollbarAlwaysOn: BooleanConstructor;
|
|
281
287
|
flexible: BooleanConstructor;
|
|
282
288
|
showOverflowTooltip: import('vue').PropType<boolean | Partial<Pick<import('element-plus').ElTooltipProps, "offset" | "transition" | "placement" | "effect" | "showAfter" | "hideAfter" | "popperOptions" | "enterable" | "popperClass" | "appendTo" | "showArrow">> | undefined>;
|
|
289
|
+
appendFilterPanelTo: StringConstructor;
|
|
290
|
+
scrollbarTabindex: {
|
|
291
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
292
|
+
default: undefined;
|
|
293
|
+
};
|
|
283
294
|
}>> & {
|
|
284
295
|
onSelect?: ((_selection: DataItem[], _row: DataItem) => any) | undefined;
|
|
285
296
|
onExpandChange?: ((_row: DataItem, _expanded: boolean) => any) | undefined;
|
|
@@ -318,6 +329,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
318
329
|
tableLayout: "fixed" | "auto";
|
|
319
330
|
scrollbarAlwaysOn: boolean;
|
|
320
331
|
flexible: boolean;
|
|
332
|
+
scrollbarTabindex: string | number;
|
|
321
333
|
sticky: boolean;
|
|
322
334
|
headerEllipsis: boolean;
|
|
323
335
|
slotNormalize: boolean;
|
|
@@ -87,6 +87,11 @@ declare const normalizeProps: import('../ele-app/types').Mutable<Omit<{
|
|
|
87
87
|
scrollbarAlwaysOn: BooleanConstructor;
|
|
88
88
|
flexible: BooleanConstructor;
|
|
89
89
|
showOverflowTooltip: PropType<boolean | Partial<Pick<import('element-plus').ElTooltipProps, "offset" | "transition" | "placement" | "effect" | "showAfter" | "hideAfter" | "popperOptions" | "enterable" | "popperClass" | "appendTo" | "showArrow">> | undefined>;
|
|
90
|
+
appendFilterPanelTo: StringConstructor;
|
|
91
|
+
scrollbarTabindex: {
|
|
92
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
93
|
+
default: undefined;
|
|
94
|
+
};
|
|
90
95
|
}, "style">>;
|
|
91
96
|
/**
|
|
92
97
|
* 属性
|
|
@@ -221,6 +226,11 @@ export declare const dataTableProps: {
|
|
|
221
226
|
scrollbarAlwaysOn: BooleanConstructor;
|
|
222
227
|
flexible: BooleanConstructor;
|
|
223
228
|
showOverflowTooltip: PropType<boolean | Partial<Pick<import('element-plus').ElTooltipProps, "offset" | "transition" | "placement" | "effect" | "showAfter" | "hideAfter" | "popperOptions" | "enterable" | "popperClass" | "appendTo" | "showArrow">> | undefined>;
|
|
229
|
+
appendFilterPanelTo: StringConstructor;
|
|
230
|
+
scrollbarTabindex: {
|
|
231
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
232
|
+
default: undefined;
|
|
233
|
+
};
|
|
224
234
|
};
|
|
225
235
|
export type DataTableProps = ExtractPropTypes<typeof dataTableProps>;
|
|
226
236
|
/**
|
|
@@ -144,6 +144,9 @@ export interface TableMethods {
|
|
|
144
144
|
toggleRowExpansionAll: (expanded?: boolean) => void;
|
|
145
145
|
/** 更新单选和多选选中 */
|
|
146
146
|
updateSelectedAndChecked: () => void;
|
|
147
|
+
|
|
148
|
+
/** 更新父节点下面的children节点列表 */
|
|
149
|
+
updateKeyChildren: (key?: DataKey | null, rows?: DataItem[]) => void;
|
|
147
150
|
}
|
|
148
151
|
|
|
149
152
|
/**
|
|
@@ -297,6 +297,10 @@ function useMethods(getInstance) {
|
|
|
297
297
|
updateSelectedAndChecked: () => {
|
|
298
298
|
const ins = getInstance();
|
|
299
299
|
ins && ins.updateSelectedAndChecked();
|
|
300
|
+
},
|
|
301
|
+
updateKeyChildren: (key, rows) => {
|
|
302
|
+
const ins = getInstance();
|
|
303
|
+
ins && ins.updateKeyChildren(key, rows);
|
|
300
304
|
}
|
|
301
305
|
};
|
|
302
306
|
return methods;
|