This commit is contained in:
itellyou 2022-01-25 16:32:18 +08:00
parent 7f4b3e593a
commit e61566c38c
3 changed files with 18 additions and 0 deletions

View File

@ -27,6 +27,12 @@ The main functions of the `ImageUploader` plugin: select images, upload images,
onBeforeRender?: (status:'uploading' |'done', src: string) => string;
```
`enableResizer` Whether the image size can be modified by dragging, the default is true
`enableTypeSwitch` whether to enable block inline mode switching, the default is true
`defaultType` sets the default image card type, the default is 'inline'
## `ImageUploader` optional
```ts

View File

@ -27,6 +27,12 @@ new Engine(...,{ plugins:[ Image , ImageUploader ] , cards:[ ImageComponent ]})
onBeforeRender?: (status: 'uploading' | 'done', src: string) => string;
```
`enableResizer` 图片大小是否可以拖动修改,默认为 true
`enableTypeSwitch` 是否启用 block inline 模式切换,默认为 true
`defaultType` 设置默认的图片卡片类型,默认为 'inline'
## `ImageUploader` 可选项
```ts

View File

@ -27,6 +27,12 @@ new Engine(...,{ plugins:[ Image , ImageUploader ] , cards:[ ImageComponent ]})
onBeforeRender?: (status: 'uploading' | 'done', src: string) => string;
```
`enableResizer` 图片大小是否可以拖动修改,默认为 true
`enableTypeSwitch` 是否启用 block inline 模式切换,默认为 true
`defaultType` 设置默认的图片卡片类型,默认为 'inline'
## `ImageUploader` 可选项
```ts