diff --git a/packages/vant/src/signature/README.md b/packages/vant/src/signature/README.md index 82d526308..ad84c546a 100644 --- a/packages/vant/src/signature/README.md +++ b/packages/vant/src/signature/README.md @@ -10,10 +10,10 @@ Register component globally via `app.use`, refer to [Component Registration](#/e ```js import { createApp } from 'vue'; -import { Space } from 'vant'; +import { Signature } from 'vant'; const app = createApp(); -app.use(Space); +app.use(Signature); ``` ## Usage diff --git a/packages/vant/src/signature/README.zh-CN.md b/packages/vant/src/signature/README.zh-CN.md index 04d8f6577..40a972967 100644 --- a/packages/vant/src/signature/README.zh-CN.md +++ b/packages/vant/src/signature/README.zh-CN.md @@ -69,7 +69,7 @@ export default { | 参数 | 说明 | 类型 | 默认值 | | --------- | ------------------------------------ | -------- | ------ | | type | 导出图片类型 | _string_ | `png` | -| penColor | 笔触颜色,默认黑色。 | _string_ | `#000` | +| penColor | 笔触颜色,默认黑色 | _string_ | `#000` | | lineWidth | 线条宽度 | _number_ | `3` | | tips | 当不支持 Canvas 的时候出现的提示文案 | _string_ | - | diff --git a/packages/vant/src/signature/demo/index.vue b/packages/vant/src/signature/demo/index.vue index c856639c3..3e3caf238 100644 --- a/packages/vant/src/signature/demo/index.vue +++ b/packages/vant/src/signature/demo/index.vue @@ -2,7 +2,6 @@ import { ref } from 'vue'; import VanSignature from '..'; import VanImage from '../../image'; - import { useTranslate } from '../../../docs/site'; const t = useTranslate({ @@ -43,7 +42,9 @@ const onSigning = (e) => console.log('signing', e); @signing="onSigning" /> + + console.log('signing', e); @signing="onSigning" /> +