|
@@ -2,14 +2,14 @@ |
|
@@ -2,14 +2,14 @@ |
2
|
import { BasicForm, useForm } from '/@/components/Form';
|
2
|
import { BasicForm, useForm } from '/@/components/Form';
|
3
|
import { defaultSchemas, SchemaFiled } from './config';
|
3
|
import { defaultSchemas, SchemaFiled } from './config';
|
4
|
import { onMounted } from 'vue';
|
4
|
import { onMounted } from 'vue';
|
|
|
5
|
+ import { useGridLayout } from '/@/hooks/component/useGridLayout';
|
|
|
6
|
+ import { ColEx } from '/@/components/Form/src/types';
|
5
|
|
7
|
|
6
|
const emit = defineEmits(['register']);
|
8
|
const emit = defineEmits(['register']);
|
7
|
const [register, method] = useForm({
|
9
|
const [register, method] = useForm({
|
8
|
schemas: defaultSchemas,
|
10
|
schemas: defaultSchemas,
|
9
|
labelWidth: 120,
|
11
|
labelWidth: 120,
|
10
|
- baseColProps: {
|
|
|
11
|
- span: 5,
|
|
|
12
|
- },
|
12
|
+ baseColProps: useGridLayout(2, 3, 4) as unknown as ColEx,
|
13
|
fieldMapToTime: [
|
13
|
fieldMapToTime: [
|
14
|
[SchemaFiled.DATE_RANGE, [SchemaFiled.START_TS, SchemaFiled.END_TS], 'YYYY-MM-DD HH:mm:ss'],
|
14
|
[SchemaFiled.DATE_RANGE, [SchemaFiled.START_TS, SchemaFiled.END_TS], 'YYYY-MM-DD HH:mm:ss'],
|
15
|
],
|
15
|
],
|