百度没出来,用这样能使
将 Notice 作为组件放到树内
// *.vue
<template>
<Notice ref="Notice"/>
</template>
<script>
import { Notice } from "view-ui-plus";
export default {
components: {
Notice
},
mounted() {
this.$refs['Notice'].$options.open({
desc: 'Here is the notification description.'
});
},
</script>