feat:增加 tinymce 组件

This commit is contained in:
YunaiV
2025-04-19 09:27:10 +08:00
parent 92c88fd1a3
commit bd3b95f447
9 changed files with 570 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ import { $t } from '@vben/locales';
import { notification } from 'ant-design-vue';
import { Tinymce as RichTextarea } from '#/components/tinymce';
import { FileUpload, ImageUpload } from '#/components/upload';
const AutoComplete = defineAsyncComponent(
@@ -128,6 +129,7 @@ export type ComponentType =
| 'Space'
| 'Switch'
| 'Textarea'
| 'RichTextarea'
| 'TimePicker'
| 'TreeSelect'
| 'Upload'
@@ -184,6 +186,7 @@ async function initComponentAdapter() {
Space,
Switch,
Textarea: withDefaultPlaceholder(Textarea, 'input'),
RichTextarea,
TimePicker,
TreeSelect: withDefaultPlaceholder(TreeSelect, 'select'),
Upload,

View File

@@ -17,6 +17,7 @@ setupVbenForm<ComponentType>({
modelPropNameMap: {
Checkbox: 'checked',
Radio: 'checked',
RichTextarea: 'modelValue',
Switch: 'checked',
Upload: 'fileList',
},