Commit 9101327b authored by XieZhiXiong's avatar XieZhiXiong

feat: 完善功能

parent ae13c983
/*
* @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;
@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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment