Commit d54c97951da254e85b445573e7e0f2ee1f1d920f

Authored by 梁灏
1 parent 28ab119d

Poptip support global setting

examples/routers/poptip.vue
... ... @@ -17,7 +17,7 @@
17 17 </Poptip>
18 18 </div> -->
19 19 <div>
20   - <Poptip title="提示标题" content="标签一的内容" transfer>
  20 + <Poptip title="提示标题" content="标签一的内容">
21 21 <Button id="aaa">点击显示</Button>
22 22 <div slot="content">
23 23 <Button @click='loadData(15)'>15条数据</Button>
... ...
src/components/poptip/poptip.vue
... ... @@ -96,7 +96,9 @@
96 96 },
97 97 transfer: {
98 98 type: Boolean,
99   - default: false
  99 + default () {
  100 + return this.$IVIEW.transfer === '' ? false : this.$IVIEW.transfer;
  101 + }
100 102 },
101 103 popperClass: {
102 104 type: String
... ...