Skip to content

Commit

Permalink
fix: optimize label layout
Browse files Browse the repository at this point in the history
  • Loading branch information
suyuan32 committed Dec 3, 2023
1 parent a75c131 commit 27b9f08
Show file tree
Hide file tree
Showing 22 changed files with 39 additions and 18 deletions.
3 changes: 2 additions & 1 deletion src/views/fms/cloudFile/CloudFileDrawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@
const { t } = useI18n();
const [registerForm, { resetFields, setFieldsValue, validate }] = useForm({
labelWidth: 100,
labelWidth: 160,
baseColProps: { span: 24 },
layout: 'vertical',
schemas: formSchema,
showActionButtonGroup: false,
});
Expand Down
3 changes: 2 additions & 1 deletion src/views/fms/cloudFileTag/CloudFileTagDrawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@
const { t } = useI18n();
const [registerForm, { resetFields, setFieldsValue, validate }] = useForm({
labelWidth: 90,
labelWidth: 160,
baseColProps: { span: 24 },
layout: 'vertical',
schemas: formSchema,
showActionButtonGroup: false,
});
Expand Down
3 changes: 2 additions & 1 deletion src/views/fms/file/FileDrawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@
const { t } = useI18n();
const [registerForm, { resetFields, setFieldsValue, validate }] = useForm({
labelWidth: 90,
labelWidth: 160,
baseColProps: { span: 24 },
layout: 'vertical',
schemas: formSchema,
showActionButtonGroup: false,
});
Expand Down
3 changes: 2 additions & 1 deletion src/views/fms/fileTag/TagDrawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@
const { t } = useI18n();
const [registerForm, { resetFields, setFieldsValue, validate }] = useForm({
labelWidth: 90,
labelWidth: 160,
baseColProps: { span: 24 },
layout: 'vertical',
schemas: formSchema,
showActionButtonGroup: false,
});
Expand Down
1 change: 1 addition & 0 deletions src/views/fms/storageProvider/StorageProviderDrawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
const [registerForm, { resetFields, setFieldsValue, validate }] = useForm({
labelWidth: 110,
baseColProps: { span: 24 },
layout: 'vertical',
schemas: formSchema,
showActionButtonGroup: false,
});
Expand Down
1 change: 1 addition & 0 deletions src/views/mcms/emailProvider/EmailProviderDrawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
const [registerForm, { resetFields, setFieldsValue, validate }] = useForm({
labelWidth: 140,
baseColProps: { span: 24 },
layout: 'vertical',
schemas: formSchema,
showActionButtonGroup: false,
});
Expand Down
2 changes: 1 addition & 1 deletion src/views/mcms/emailProvider/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
const [registerModal, { openModal }] = useModal();
const [registerForm, { validate }] = useForm({
labelWidth: 100,
labelWidth: 160,
baseColProps: { span: 18 },
schemas: formSchema,
showActionButtonGroup: false,
Expand Down
1 change: 1 addition & 0 deletions src/views/mcms/smsProvider/SmsProviderDrawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
const [registerForm, { resetFields, setFieldsValue, validate }] = useForm({
labelWidth: 140,
baseColProps: { span: 24 },
layout: 'vertical',
schemas: formSchema,
showActionButtonGroup: false,
});
Expand Down
3 changes: 2 additions & 1 deletion src/views/mcms/smsProvider/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,10 @@
const [registerModal, { openModal }] = useModal();
const [registerForm, { validate }] = useForm({
labelWidth: 100,
labelWidth: 160,
labelAlign: 'right',
baseColProps: { span: 18 },
layout: 'vertical',
schemas: formSchema,
showActionButtonGroup: false,
});
Expand Down
3 changes: 2 additions & 1 deletion src/views/mms/member/MemberDrawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@
const { t } = useI18n();
const [registerForm, { resetFields, setFieldsValue, validate }] = useForm({
labelWidth: 90,
labelWidth: 160,
baseColProps: { span: 24 },
layout: 'vertical',
schemas: formSchema,
showActionButtonGroup: false,
});
Expand Down
3 changes: 2 additions & 1 deletion src/views/mms/memberRank/MemberRankDrawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@
const { t } = useI18n();
const [registerForm, { resetFields, setFieldsValue, validate }] = useForm({
labelWidth: 90,
labelWidth: 160,
baseColProps: { span: 24 },
layout: 'vertical',
schemas: formSchema,
showActionButtonGroup: false,
});
Expand Down
3 changes: 2 additions & 1 deletion src/views/mms/oauth/OauthDrawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@
const { t } = useI18n();
const [registerForm, { resetFields, setFieldsValue, validate }] = useForm({
labelWidth: 90,
labelWidth: 160,
baseColProps: { span: 24 },
layout: 'vertical',
schemas: formSchema,
showActionButtonGroup: false,
});
Expand Down
3 changes: 2 additions & 1 deletion src/views/sys/api/ApiDrawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@
const { t } = useI18n();
const [registerForm, { resetFields, setFieldsValue, validate }] = useForm({
labelWidth: 90,
labelWidth: 160,
baseColProps: { span: 24 },
layout: 'vertical',
schemas: formSchema,
showActionButtonGroup: false,
});
Expand Down
3 changes: 2 additions & 1 deletion src/views/sys/department/DepartmentDrawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@
const { t } = useI18n();
const [registerForm, { resetFields, setFieldsValue, validate }] = useForm({
labelWidth: 90,
labelWidth: 160,
baseColProps: { span: 24 },
layout: 'vertical',
schemas: formSchema,
showActionButtonGroup: false,
});
Expand Down
3 changes: 2 additions & 1 deletion src/views/sys/dictionary/DictionaryDrawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@
const go = useGo();
const [registerForm, { resetFields, setFieldsValue, validate }] = useForm({
labelWidth: 90,
labelWidth: 160,
baseColProps: { span: 24 },
layout: 'vertical',
schemas: formSchema,
showActionButtonGroup: false,
});
Expand Down
3 changes: 2 additions & 1 deletion src/views/sys/dictionaryDetail/DictionaryDetailDrawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@
const { t } = useI18n();
const [registerForm, { resetFields, setFieldsValue, validate }] = useForm({
labelWidth: 90,
labelWidth: 160,
baseColProps: { span: 24 },
layout: 'vertical',
schemas: formSchema,
showActionButtonGroup: false,
});
Expand Down
1 change: 1 addition & 0 deletions src/views/sys/menu/MenuDrawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
const [registerForm, { resetFields, setFieldsValue, validate }] = useForm({
labelWidth: 160,
layout: 'vertical',
schemas: formSchema,
showActionButtonGroup: false,
});
Expand Down
3 changes: 2 additions & 1 deletion src/views/sys/oauth/OauthDrawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@
const { t } = useI18n();
const [registerForm, { resetFields, setFieldsValue, validate }] = useForm({
labelWidth: 90,
labelWidth: 160,
baseColProps: { span: 24 },
layout: 'vertical',
schemas: formSchema,
showActionButtonGroup: false,
});
Expand Down
3 changes: 2 additions & 1 deletion src/views/sys/position/PositionDrawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@
const { t } = useI18n();
const [registerForm, { resetFields, setFieldsValue, validate }] = useForm({
labelWidth: 90,
labelWidth: 160,
baseColProps: { span: 24 },
layout: 'vertical',
schemas: formSchema,
showActionButtonGroup: false,
});
Expand Down
3 changes: 2 additions & 1 deletion src/views/sys/role/RoleDrawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,9 @@
});
const [registerForm, { resetFields, setFieldsValue, validate, getFieldsValue }] = useForm({
labelWidth: 90,
labelWidth: 160,
baseColProps: { span: 24 },
layout: 'vertical',
schemas: formSchema,
showActionButtonGroup: false,
});
Expand Down
3 changes: 2 additions & 1 deletion src/views/sys/task/TaskDrawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@
const { t } = useI18n();
const [registerForm, { resetFields, setFieldsValue, validate }] = useForm({
labelWidth: 90,
labelWidth: 160,
baseColProps: { span: 24 },
layout: 'vertical',
schemas: formSchema,
showActionButtonGroup: false,
});
Expand Down
3 changes: 2 additions & 1 deletion src/views/sys/user/UserDrawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@
const { createMessage } = useMessage();
const [registerForm, { resetFields, setFieldsValue, validate }] = useForm({
labelWidth: 90,
labelWidth: 160,
baseColProps: { span: 24 },
layout: 'vertical',
schemas: formSchema,
showActionButtonGroup: false,
});
Expand Down

0 comments on commit 27b9f08

Please sign in to comment.