{
+ setFilterOpen(open)
+ }}
+ layout={'vertical'}
+ scrollToFirstError={true}
+ layoutType={'DrawerForm'}
+ drawerProps={{
+ maskClosable: false,
+ mask: false,
+ }}
+ submitter={{
+ searchConfig: {
+ resetText: t(`${i18nPrefix}.filter.reset`, '清空'),
+ submitText: t(`${i18nPrefix}.filter.submit`, '查询'),
+ },
+ onReset: () => {
+ filterForm.resetFields()
+ },
+ render: (props,) => {
+ return (
+
+
+
+
+
+
+ )
+ },
+
+ }}
+ onValuesChange={(values) => {
+
+ }}
+
+ onFinish={async (values) => {
+ //处理,变成数组
+ Object.keys(values).forEach(key => {
+ if (typeof values[key] === 'string' && values[key].includes(',')) {
+ values[key] = values[key].split(',')
+ }
+ })
+
+ setSearch(values)
+
+ }}
+ columns={columns.filter(item => !item.hideInSearch) as ProFormColumnsType[]}/>
+