Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
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
黄庭坚
jinfa-platform
Commits
9101327b
Commit
9101327b
authored
Jul 16, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 完善功能
parent
ae13c983
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
417 additions
and
51 deletions
+417
-51
NormalTable.tsx
src/components/PolymericTable/NormalTable.tsx
+282
-51
SearchForm.tsx
src/components/PolymericTable/SearchForm.tsx
+35
-0
index.less
src/components/PolymericTable/index.less
+100
-0
No files found.
src/components/PolymericTable/NormalTable.tsx
View file @
9101327b
This diff is collapsed.
Click to expand it.
src/components/PolymericTable/SearchForm.tsx
0 → 100644
View file @
9101327b
/*
* @Author: XieZhiXiong
* @Date: 2021-07-14 14:54:38
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-07-14 14:54:39
* @Description: 查询 Form
*/
import
React
from
'react'
;
import
{
createFormActions
}
from
'@formily/antd'
;
import
{
IAntdSchemaFormProps
}
from
'@formily/antd'
;
import
NiceForm
from
'@/components/NiceForm'
;
const
formActions
=
createFormActions
();
export
interface
SearchFormIProps
extends
Omit
<
IAntdSchemaFormProps
,
'actions'
>
{
}
const
SearchForm
:
React
.
FC
<
SearchFormIProps
>
=
(
props
)
=>
{
const
{
...
restProps
}
=
props
;
return
(
<
NiceForm
effects=
{
(
$
,
{
})
=>
{
}
}
actions=
{
formActions
}
{
...
restProps
}
/>
);
};
export
default
SearchForm
;
src/components/PolymericTable/index.less
0 → 100644
View file @
9101327b
@import '~antd/es/style/themes/default.less';
@normal-table: normal-table;
.@{normal-table} {
&-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
margin: 0 -@margin-md;
&-left {}
&-right {
flex-shrink: 0;
}
&-left,
.@{normal-table}-head-right {
padding: 0 @padding-md;
}
}
&-body {}
&-foot {
display: flex;
align-items: flex-start;
justify-content: space-between;
margin: 0 -@margin-md;
&-right {
flex-shrink: 0;
}
&-left,
.@{normal-table}-foot-right {
padding: 0 @padding-md;
}
.@{normal-table}-pagination {
padding: @padding-md 0;
}
&-content {
padding: @padding-md 0;
}
}
&-reverse {
flex-direction: row-reverse;
}
&-pagination {
padding: @padding-xs - 2px 0 @padding-md;
}
&-full {
display: flex;
flex-direction: column;
height: 100%;
.@{normal-table}-body {
flex: 1;
overflow: hidden;
:global {
.ant-table {
height: 100%;
&-wrapper,
&-content {
height: 100%;
}
&-container {
height: 100%;
display: flex;
flex-direction: column;
}
&-header {
flex-shrink: 0;
}
&-body {
flex: 1;
overflow-y: auto;
}
}
.ant-spin-nested-loading,
.ant-spin-container {
height: 100%;
}
}
}
}
}
\ No newline at end of file
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