mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
docs(Signature): fix component name (#11792)
This commit is contained in:
parent
f2b1b3156e
commit
21e3c13928
@ -10,10 +10,10 @@ Register component globally via `app.use`, refer to [Component Registration](#/e
|
|||||||
|
|
||||||
```js
|
```js
|
||||||
import { createApp } from 'vue';
|
import { createApp } from 'vue';
|
||||||
import { Space } from 'vant';
|
import { Signature } from 'vant';
|
||||||
|
|
||||||
const app = createApp();
|
const app = createApp();
|
||||||
app.use(Space);
|
app.use(Signature);
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
@ -69,7 +69,7 @@ export default {
|
|||||||
| 参数 | 说明 | 类型 | 默认值 |
|
| 参数 | 说明 | 类型 | 默认值 |
|
||||||
| --------- | ------------------------------------ | -------- | ------ |
|
| --------- | ------------------------------------ | -------- | ------ |
|
||||||
| type | 导出图片类型 | _string_ | `png` |
|
| type | 导出图片类型 | _string_ | `png` |
|
||||||
| penColor | 笔触颜色,默认黑色。 | _string_ | `#000` |
|
| penColor | 笔触颜色,默认黑色 | _string_ | `#000` |
|
||||||
| lineWidth | 线条宽度 | _number_ | `3` |
|
| lineWidth | 线条宽度 | _number_ | `3` |
|
||||||
| tips | 当不支持 Canvas 的时候出现的提示文案 | _string_ | - |
|
| tips | 当不支持 Canvas 的时候出现的提示文案 | _string_ | - |
|
||||||
|
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
import VanSignature from '..';
|
import VanSignature from '..';
|
||||||
import VanImage from '../../image';
|
import VanImage from '../../image';
|
||||||
|
|
||||||
import { useTranslate } from '../../../docs/site';
|
import { useTranslate } from '../../../docs/site';
|
||||||
|
|
||||||
const t = useTranslate({
|
const t = useTranslate({
|
||||||
@ -43,7 +42,9 @@ const onSigning = (e) => console.log('signing', e);
|
|||||||
@signing="onSigning"
|
@signing="onSigning"
|
||||||
/>
|
/>
|
||||||
</demo-block>
|
</demo-block>
|
||||||
|
|
||||||
<van-image v-if="demoUrl" :src="demoUrl" />
|
<van-image v-if="demoUrl" :src="demoUrl" />
|
||||||
|
|
||||||
<demo-block :title="t('penColor')">
|
<demo-block :title="t('penColor')">
|
||||||
<van-signature
|
<van-signature
|
||||||
pen-color="#ff0000"
|
pen-color="#ff0000"
|
||||||
@ -54,6 +55,7 @@ const onSigning = (e) => console.log('signing', e);
|
|||||||
@signing="onSigning"
|
@signing="onSigning"
|
||||||
/>
|
/>
|
||||||
</demo-block>
|
</demo-block>
|
||||||
|
|
||||||
<demo-block :title="t('lineWidth')">
|
<demo-block :title="t('lineWidth')">
|
||||||
<van-signature
|
<van-signature
|
||||||
:line-width="6"
|
:line-width="6"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user