Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
najiu-admin-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
najiu-frontend
najiu-admin-template
Commits
64b6313b
Commit
64b6313b
authored
Apr 08, 2021
by
Vben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(table): ensure data responsiveness, fix #447
parent
1e669870
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
15 deletions
+2
-15
useTable.ts
src/components/Table/src/hooks/useTable.ts
+1
-1
tableData.tsx
src/views/demo/table/tableData.tsx
+1
-14
No files found.
src/components/Table/src/hooks/useTable.ts
View file @
64b6313b
...
...
@@ -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
})
||
[];
...
...
src/views/demo/table/tableData.tsx
View file @
64b6313b
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment