Commit a2646970 authored by 满振华's avatar 满振华
parents 6d2e2ee6 d3d4ea44
......@@ -73,6 +73,7 @@ const SearchForm = (props: Props) => {
return (
<DatePicker
{...componentAttr}
allowClear
className={classnames(styles.timeStyle, className || styles.itemContent)}
placeholder={placeholder}
disabled={disabled}
......@@ -82,6 +83,7 @@ const SearchForm = (props: Props) => {
return (
<RangePicker
{...componentAttr}
allowClear
placeholder={placeholder}
className={classnames(styles.timeStyle, className || styles.itemContent)}
disabled={disabled}
......@@ -91,6 +93,7 @@ const SearchForm = (props: Props) => {
return (
<Search
{...componentAttr}
allowClear
request={col.request}
optionsKey={col.optionsKey}
placeholder={placeholder}
......
......@@ -59,7 +59,8 @@ const DataView = (props: Props, ref: Ref<any>) => {
pageNum: state.pagination.pageNum,
}, (pagination || {}));
}
const _afterFetch = ({ dataSource, pagination }: any) => {
const _afterFetch = (params: any) => {
const { dataSource = [], pagination = {} } = params || {}
return {
pagination: { ...state.pagination, ...(pagination || {}) },
dataSource: Array.isArray(dataSource) ? dataSource.slice() : [],
......
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