Commit d54c97951da254e85b445573e7e0f2ee1f1d920f
1 parent
28ab119d
Poptip support global setting
Showing
2 changed files
with
4 additions
and
2 deletions
Show diff stats
examples/routers/poptip.vue
| @@ -17,7 +17,7 @@ | @@ -17,7 +17,7 @@ | ||
| 17 | </Poptip> | 17 | </Poptip> |
| 18 | </div> --> | 18 | </div> --> |
| 19 | <div> | 19 | <div> |
| 20 | - <Poptip title="提示标题" content="标签一的内容" transfer> | 20 | + <Poptip title="提示标题" content="标签一的内容"> |
| 21 | <Button id="aaa">点击显示</Button> | 21 | <Button id="aaa">点击显示</Button> |
| 22 | <div slot="content"> | 22 | <div slot="content"> |
| 23 | <Button @click='loadData(15)'>15条数据</Button> | 23 | <Button @click='loadData(15)'>15条数据</Button> |
src/components/poptip/poptip.vue
| @@ -96,7 +96,9 @@ | @@ -96,7 +96,9 @@ | ||
| 96 | }, | 96 | }, |
| 97 | transfer: { | 97 | transfer: { |
| 98 | type: Boolean, | 98 | type: Boolean, |
| 99 | - default: false | 99 | + default () { |
| 100 | + return this.$IVIEW.transfer === '' ? false : this.$IVIEW.transfer; | ||
| 101 | + } | ||
| 100 | }, | 102 | }, |
| 101 | popperClass: { | 103 | popperClass: { |
| 102 | type: String | 104 | type: String |