Commit 64b6313b4e43fdc2e9b292f554889b845e26182f
1 parent
1e669870
fix(table): ensure data responsiveness, fix #447
Showing
2 changed files
with
2 additions
and
15 deletions
src/components/Table/src/hooks/useTable.ts
... | ... | @@ -83,7 +83,7 @@ export function useTable( |
83 | 83 | getTableInstance().setLoading(loading); |
84 | 84 | }, |
85 | 85 | getDataSource: () => { |
86 | - return toRaw(getTableInstance().getDataSource()); | |
86 | + return getTableInstance().getDataSource(); | |
87 | 87 | }, |
88 | 88 | getColumns: ({ ignoreIndex = false }: { ignoreIndex?: boolean } = {}) => { |
89 | 89 | const columns = getTableInstance().getColumns({ ignoreIndex }) || []; | ... | ... |
src/views/demo/table/tableData.tsx
... | ... | @@ -244,22 +244,9 @@ export function getFormConfig(): Partial<FormProps> { |
244 | 244 | ...getAdvanceSchema(5), |
245 | 245 | { |
246 | 246 | field: `field11`, |
247 | - label: `字段33`, | |
247 | + label: `Slot示例`, | |
248 | 248 | component: 'Select', |
249 | - defaultValue: '1', | |
250 | 249 | slot: 'custom', |
251 | - componentProps: { | |
252 | - options: [ | |
253 | - { | |
254 | - label: '选项1', | |
255 | - value: '1', | |
256 | - }, | |
257 | - { | |
258 | - label: '选项2', | |
259 | - value: '2', | |
260 | - }, | |
261 | - ], | |
262 | - }, | |
263 | 250 | colProps: { |
264 | 251 | xl: 12, |
265 | 252 | xxl: 8, | ... | ... |