mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-26 00:26:20 +08:00
fix(table): ensure data responsiveness, fix #447
This commit is contained in:
@@ -83,7 +83,7 @@ export function useTable(
|
||||
getTableInstance().setLoading(loading);
|
||||
},
|
||||
getDataSource: () => {
|
||||
return toRaw(getTableInstance().getDataSource());
|
||||
return getTableInstance().getDataSource();
|
||||
},
|
||||
getColumns: ({ ignoreIndex = false }: { ignoreIndex?: boolean } = {}) => {
|
||||
const columns = getTableInstance().getColumns({ ignoreIndex }) || [];
|
||||
|
@@ -244,22 +244,9 @@ export function getFormConfig(): Partial<FormProps> {
|
||||
...getAdvanceSchema(5),
|
||||
{
|
||||
field: `field11`,
|
||||
label: `字段33`,
|
||||
label: `Slot示例`,
|
||||
component: 'Select',
|
||||
defaultValue: '1',
|
||||
slot: 'custom',
|
||||
componentProps: {
|
||||
options: [
|
||||
{
|
||||
label: '选项1',
|
||||
value: '1',
|
||||
},
|
||||
{
|
||||
label: '选项2',
|
||||
value: '2',
|
||||
},
|
||||
],
|
||||
},
|
||||
colProps: {
|
||||
xl: 12,
|
||||
xxl: 8,
|
||||
|
Reference in New Issue
Block a user