Poptip support global setting

This commit is contained in:
梁灏 2018-06-28 15:04:19 +08:00
parent 28ab119d9f
commit d54c97951d
2 changed files with 4 additions and 2 deletions

View file

@ -17,7 +17,7 @@
</Poptip> </Poptip>
</div> --> </div> -->
<div> <div>
<Poptip title="提示标题" content="标签一的内容" transfer> <Poptip title="提示标题" content="标签一的内容">
<Button id="aaa">点击显示</Button> <Button id="aaa">点击显示</Button>
<div slot="content"> <div slot="content">
<Button @click='loadData(15)'>15条数据</Button> <Button @click='loadData(15)'>15条数据</Button>

View file

@ -96,7 +96,9 @@
}, },
transfer: { transfer: {
type: Boolean, type: Boolean,
default: false default () {
return this.$IVIEW.transfer === '' ? false : this.$IVIEW.transfer;
}
}, },
popperClass: { popperClass: {
type: String type: String