vux文档中cell可以弹出文字文档
该demo中显示:在metthods内添加该方法:
showPlugin () {
this.$vux.alert.show({
title: 'VUX is Cool',
content: this.$t('Do you agree?'),
onShow () {
console.log('Plugin: I\'m showing')
},
onHide () {
console.log('Plugin: I\'m hiding now')
}
})
而content不能直接引用子组件。
如果所需要的内容丰富需要子组件来填充时,该如何引用子组件?
解法:
使用x-dialog,如下。
<
x-dialog
v-model="
showDialogStyle"
hide-on-blur
:dialog-style="{
'max-width':
'100%',
width:
'80%',
height:
'50%',
'background-color':
'transparent'}"
>
<
router-view
class=
"tanchuang"