docs: #81
This commit is contained in:
parent
7f4b3e593a
commit
e61566c38c
|
@ -27,6 +27,12 @@ The main functions of the `ImageUploader` plugin: select images, upload images,
|
||||||
onBeforeRender?: (status:'uploading' |'done', src: string) => string;
|
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
|
## `ImageUploader` optional
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
|
|
|
@ -27,6 +27,12 @@ new Engine(...,{ plugins:[ Image , ImageUploader ] , cards:[ ImageComponent ]})
|
||||||
onBeforeRender?: (status: 'uploading' | 'done', src: string) => string;
|
onBeforeRender?: (status: 'uploading' | 'done', src: string) => string;
|
||||||
```
|
```
|
||||||
|
|
||||||
|
`enableResizer` 图片大小是否可以拖动修改,默认为 true
|
||||||
|
|
||||||
|
`enableTypeSwitch` 是否启用 block inline 模式切换,默认为 true
|
||||||
|
|
||||||
|
`defaultType` 设置默认的图片卡片类型,默认为 'inline'
|
||||||
|
|
||||||
## `ImageUploader` 可选项
|
## `ImageUploader` 可选项
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
|
|
|
@ -27,6 +27,12 @@ new Engine(...,{ plugins:[ Image , ImageUploader ] , cards:[ ImageComponent ]})
|
||||||
onBeforeRender?: (status: 'uploading' | 'done', src: string) => string;
|
onBeforeRender?: (status: 'uploading' | 'done', src: string) => string;
|
||||||
```
|
```
|
||||||
|
|
||||||
|
`enableResizer` 图片大小是否可以拖动修改,默认为 true
|
||||||
|
|
||||||
|
`enableTypeSwitch` 是否启用 block inline 模式切换,默认为 true
|
||||||
|
|
||||||
|
`defaultType` 设置默认的图片卡片类型,默认为 'inline'
|
||||||
|
|
||||||
## `ImageUploader` 可选项
|
## `ImageUploader` 可选项
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
|
|
Loading…
Reference in New Issue