style: 更新代码
This commit is contained in:
parent
ba33100963
commit
d04c0c4e6c
@ -86,7 +86,6 @@ export const modalSchema: FormSchemaGetter = () => [
|
|||||||
{
|
{
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
fieldName: 'noticeTitle',
|
fieldName: 'noticeTitle',
|
||||||
formItemClass: 'col-span-2',
|
|
||||||
label: '公告标题',
|
label: '公告标题',
|
||||||
rules: 'required',
|
rules: 'required',
|
||||||
},
|
},
|
||||||
@ -94,7 +93,6 @@ export const modalSchema: FormSchemaGetter = () => [
|
|||||||
component: 'RadioGroup',
|
component: 'RadioGroup',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
buttonStyle: 'solid',
|
buttonStyle: 'solid',
|
||||||
class: 'grid-cols-2',
|
|
||||||
options: getDictOptions(DictEnum.SYS_NOTICE_STATUS),
|
options: getDictOptions(DictEnum.SYS_NOTICE_STATUS),
|
||||||
optionType: 'button',
|
optionType: 'button',
|
||||||
},
|
},
|
||||||
@ -102,12 +100,12 @@ export const modalSchema: FormSchemaGetter = () => [
|
|||||||
fieldName: 'status',
|
fieldName: 'status',
|
||||||
label: '公告状态',
|
label: '公告状态',
|
||||||
rules: 'required',
|
rules: 'required',
|
||||||
|
formItemClass: 'col-span-1',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
component: 'RadioGroup',
|
component: 'RadioGroup',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
buttonStyle: 'solid',
|
buttonStyle: 'solid',
|
||||||
class: 'grid-cols-2',
|
|
||||||
options: getDictOptions(DictEnum.SYS_NOTICE_TYPE),
|
options: getDictOptions(DictEnum.SYS_NOTICE_TYPE),
|
||||||
optionType: 'button',
|
optionType: 'button',
|
||||||
},
|
},
|
||||||
@ -115,6 +113,7 @@ export const modalSchema: FormSchemaGetter = () => [
|
|||||||
fieldName: 'noticeType',
|
fieldName: 'noticeType',
|
||||||
label: '公告类型',
|
label: '公告类型',
|
||||||
rules: 'required',
|
rules: 'required',
|
||||||
|
formItemClass: 'col-span-1',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
component: 'RichTextarea',
|
component: 'RichTextarea',
|
||||||
@ -122,7 +121,6 @@ export const modalSchema: FormSchemaGetter = () => [
|
|||||||
width: '100%',
|
width: '100%',
|
||||||
},
|
},
|
||||||
fieldName: 'noticeContent',
|
fieldName: 'noticeContent',
|
||||||
formItemClass: 'col-span-2',
|
|
||||||
label: '公告内容',
|
label: '公告内容',
|
||||||
rules: 'required',
|
rules: 'required',
|
||||||
},
|
},
|
||||||
|
@ -19,6 +19,10 @@ const title = computed(() => {
|
|||||||
|
|
||||||
const [BasicForm, formApi] = useVbenForm({
|
const [BasicForm, formApi] = useVbenForm({
|
||||||
layout: 'vertical',
|
layout: 'vertical',
|
||||||
|
commonConfig: {
|
||||||
|
formItemClass: 'col-span-2',
|
||||||
|
labelWidth: 100,
|
||||||
|
},
|
||||||
schema: modalSchema(),
|
schema: modalSchema(),
|
||||||
showDefaultActions: false,
|
showDefaultActions: false,
|
||||||
wrapperClass: 'grid-cols-2',
|
wrapperClass: 'grid-cols-2',
|
||||||
|
Loading…
Reference in New Issue
Block a user