Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@blueking/notice-component
Advanced tools
蓝鲸消息通知业务组件-vue3版本, 公告分为跑马灯公告跟dialog公告两种
npm install @blueking/notice-component
如果先前安装过1.x.x版本, 请升级到^2.0.0以上版本
<script setup>
import NoticeComponent from '@blueking/notice-component'
import '@blueking/notice-component/dist/style.css'
import { ref } from 'vue'
// 可以写接口url的绝对路径或相对路径, 相对路径的话注意社区版时平台以子路径部署的情况
const apiUrl = '/xxxxxx/sdk/announments'
// 是否含有跑马灯类型公告, 如果有跑马灯, navigation的高度可能需要减去40px, 避免页面出现滚动条
const showAlert = ref(false)
// 公告列表change事件回调, isShow代表是否含有跑马灯类型公告
const showAlertChange= function (isShow) {
showAlert.value = isShow
}
</script>
<template>
<!-- 跑马灯需要位于最顶部, 所以使用此组件时放在navigation上方 -->
<notice-component :api-url="apiUrl" @show-alert-change="showAlertChange" />
<!-- 如果有跑马灯, navigation的高度可能需要减去40px, 避免页面出现滚动条, 可使用上述showAlert判断 -->
<bk-navigation>
xxxxxxx
</bk-navigation>
</template>
FAQs
The npm package @blueking/notice-component receives a total of 19 weekly downloads. As such, @blueking/notice-component popularity was classified as not popular.
We found that @blueking/notice-component demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.