feat:notice 接入富文本

pull/75/MERGE
YunaiV 2025-04-19 09:30:30 +08:00
parent bd3b95f447
commit 04903db551
2 changed files with 2 additions and 9 deletions

View File

@ -39,14 +39,7 @@ export function useFormSchema(): VbenFormSchema[] {
{
fieldName: 'content',
label: '公告内容',
component: 'Textarea',
componentProps: {
placeholder: '请输入公告内容',
},
// component: 'Editor', // TODO @芋艿:富文本编辑器
// componentProps: {
// height: '200px',
// },
component: 'RichTextarea',
rules: 'required',
},
{

View File

@ -71,7 +71,7 @@ const [Modal, modalApi] = useVbenModal({
</script>
<template>
<Modal :title="getTitle">
<Modal :title="getTitle" class="w-1/2">
<Form class="mx-4" />
</Modal>
</template>