notice-component
蓝鲸消息通知业务组件-vue3版本, 公告分为跑马灯公告跟dialog公告两种
Install
npm install @blueking/notice-component
如果先前安装过1.x.x版本, 请升级到^2.0.0以上版本
Usage
<script setup>
import NoticeComponent from '@blueking/notice-component'
import '@blueking/notice-component/dist/style.css'
import { ref } from 'vue'
const apiUrl = '/xxxxxx/sdk/announments'
const showAlert = ref(false)
const showAlertChange= function (isShow) {
showAlert.value = isShow
}
</script>
<template>
<notice-component :api-url="apiUrl" @show-alert-change="showAlertChange" />
<bk-navigation>
xxxxxxx
</bk-navigation>
</template>