fix(ShareSheet): title slot not work

This commit is contained in:
chenjiahan
2020-04-09 13:09:32 +08:00
committed by neverland
parent fc4d89b474
commit 1d07aa88ba
7 changed files with 148 additions and 47 deletions
+14 -9
View File
@@ -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