Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
project
jinfa-admin
Commits
9967d92d
Commit
9967d92d
authored
Sep 27, 2020
by
Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
flex-layout 虚拟组件
parent
0e8ec1cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
FlexLayout.tsx
src/pages/content/components/FilterTable/FlexLayout.tsx
+3
-3
No files found.
src/pages/content/components/FilterTable/FlexLayout.tsx
View file @
9967d92d
import
React
from
'react'
;
import
{
Row
,
Col
}
from
'antd'
;
import
{
SchemaField
,
useSchemaProps
}
from
"@formily/antd"
;
import
{
SchemaField
}
from
"@formily/antd"
;
const
renderCol
=
(
schema
)
=>
{
const
{
flexcol
=
{},
}
=
schema
&&
schema
[
'x-component-props'
]
||
{};
...
...
@@ -10,7 +10,7 @@ const renderCol = (schema) => {
</
Col
>
}
const
FlexRowLayout
=
(
props
)
=>
{
const
schemaProps
=
useSchemaProps
()
const
schemaProps
=
props
;
console
.
log
(
"FlexRowLayout"
,
schemaProps
);
const
childProperties
=
schemaProps
.
schema
&&
schemaProps
.
schema
.
getOrderProperties
()
||
[];
const
{
justify
=
"start"
,
align
=
"top"
}
=
schemaProps
&&
schemaProps
.
props
&&
schemaProps
.
props
[
'x-component-props'
]
||
{}
...
...
@@ -30,7 +30,7 @@ const FlexColumnLayoutStyle = {
'flexDirection'
:
'column'
}
const
FlexColumnLayout
=
(
props
)
=>
{
const
schemaProps
=
useSchemaProps
()
const
schemaProps
=
props
;
console
.
log
(
"FlexColumnLayout"
,
schemaProps
);
const
childProperties
=
schemaProps
.
schema
&&
schemaProps
.
schema
.
getOrderProperties
()
||
[];
console
.
log
(
"childProperties"
,
childProperties
)
...
...
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