From e61566c38c148f6912fa00893ab3623e1eea9cc0 Mon Sep 17 00:00:00 2001 From: itellyou Date: Tue, 25 Jan 2022 16:32:18 +0800 Subject: [PATCH] docs: #81 --- docs/plugin/plugin-image.md | 6 ++++++ docs/plugin/plugin-image.zh-CN.md | 6 ++++++ plugins/image/README.md | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/docs/plugin/plugin-image.md b/docs/plugin/plugin-image.md index 744de1e5..aac68c83 100644 --- a/docs/plugin/plugin-image.md +++ b/docs/plugin/plugin-image.md @@ -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 diff --git a/docs/plugin/plugin-image.zh-CN.md b/docs/plugin/plugin-image.zh-CN.md index b31512b7..8b2b52a1 100644 --- a/docs/plugin/plugin-image.zh-CN.md +++ b/docs/plugin/plugin-image.zh-CN.md @@ -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 diff --git a/plugins/image/README.md b/plugins/image/README.md index b31512b7..8b2b52a1 100644 --- a/plugins/image/README.md +++ b/plugins/image/README.md @@ -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