fix(ShareSheet): title slot not work
This commit is contained in:
@@ -17,6 +17,7 @@ Vue.use(ShareSheet);
|
||||
<van-cell title="Show ShareSheet" @click="showShare = true" />
|
||||
<van-share-sheet
|
||||
v-model="showShare"
|
||||
title="Share"
|
||||
:options="options"
|
||||
@select="onSelect"
|
||||
/>
|
||||
@@ -47,23 +48,16 @@ export default {
|
||||
};
|
||||
```
|
||||
|
||||
### Show Title
|
||||
### Multi Line
|
||||
|
||||
```html
|
||||
<van-share-sheet
|
||||
v-model="showShare"
|
||||
title="Share"
|
||||
:options="options"
|
||||
title="Share with friends"
|
||||
description="Description"
|
||||
/>
|
||||
```
|
||||
|
||||
### Multi Line
|
||||
|
||||
```html
|
||||
<van-share-sheet v-model="showShare" :options="options" />
|
||||
```
|
||||
|
||||
```js
|
||||
export default {
|
||||
data() {
|
||||
@@ -86,6 +80,17 @@ export default {
|
||||
};
|
||||
```
|
||||
|
||||
### Show Description
|
||||
|
||||
```html
|
||||
<van-share-sheet
|
||||
v-model="showShare"
|
||||
:options="options"
|
||||
title="Share"
|
||||
description="Description"
|
||||
/>
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
### Props
|
||||
|
||||
Reference in New Issue
Block a user