提交 64b6313b 编写于 作者: V Vben

fix(table): ensure data responsiveness, fix #447

上级 1e669870
...@@ -83,7 +83,7 @@ export function useTable( ...@@ -83,7 +83,7 @@ export function useTable(
getTableInstance().setLoading(loading); getTableInstance().setLoading(loading);
}, },
getDataSource: () => { getDataSource: () => {
return toRaw(getTableInstance().getDataSource()); return getTableInstance().getDataSource();
}, },
getColumns: ({ ignoreIndex = false }: { ignoreIndex?: boolean } = {}) => { getColumns: ({ ignoreIndex = false }: { ignoreIndex?: boolean } = {}) => {
const columns = getTableInstance().getColumns({ ignoreIndex }) || []; const columns = getTableInstance().getColumns({ ignoreIndex }) || [];
......
...@@ -244,22 +244,9 @@ export function getFormConfig(): Partial<FormProps> { ...@@ -244,22 +244,9 @@ export function getFormConfig(): Partial<FormProps> {
...getAdvanceSchema(5), ...getAdvanceSchema(5),
{ {
field: `field11`, field: `field11`,
label: `字段33`, label: `Slot示例`,
component: 'Select', component: 'Select',
defaultValue: '1',
slot: 'custom', slot: 'custom',
componentProps: {
options: [
{
label: '选项1',
value: '1',
},
{
label: '选项2',
value: '2',
},
],
},
colProps: { colProps: {
xl: 12, xl: 12,
xxl: 8, xxl: 8,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册