
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
> 弹窗,分alert、confirm 类型: 备注: 使用控件前请确认是否满足业务需求,如有合理的个性化需求,控件会考虑后期整理迭代 体积: 37K -------------
弹窗,分alert、confirm 类型:
备注: 使用控件前请确认是否满足业务需求,如有合理的个性化需求,控件会考虑后期整理迭代
体积: 37K
https://git.corpautohome.com/gp_rd_fe_dealer/Dealer_Components/commits/toast
<script src="https://s.autoimg.cn/dealer/m/dealerUI/dlrvue/vue/vue.min.js"></script>
<script src="https://s.autoimg.cn/dealer/m/dealerUI/dlrvue/message/message.min.0.0.1.js"></script>
http://10.168.66.123:9090/out/dealerUI/demo/components/toast/#/message
1:安装
npm install dlsmessage (如指定版本号:npm install dlrmessage@0.0.2)
2:引入并注册
import Vue from 'vue'
import dlrMessage from 'dlrmessage'
Vue.use(dlrMessage)
代码示例
<template>
<section class="wrap">
<ul>
<li>
<Button class="btn" type="primary" @click="msgAlert1()">alert 简单模式 </Button>
</li>
<li>
<Button class="btn" type="primary" @click="msgAlert2()">alert 对象模式 </Button>
</li>
<li>
<Button class="btn" type="primary" @click="msgConfirm1()">confirm 简单模式</Button>
</li>
<li>
<Button class="btn" type="primary" @click="msgConfirm2()">confirm 对象模式</Button>
</li>
</ul>
</section>
</template>
<script>
export default {
name: 'messageDemo',
methods: {
msgAlert1 () {
this.$dlrMessage.alert('这是一条提示信息1')
},
msgAlert2 () {
const okInfo = {
message: '这是一条提示信2',
okBtn: {
text: 'ok了',
handler: function () {
console.log('ok handler')
}
}
}
this.$dlrMessage.alert(okInfo)
},
// 确认框
msgConfirm1 () {
this.$dlrMessage.confirm('确定要刷新?')
},
msgConfirm2 () {
const config = {
message: '确定刷新?',
okBtn: {
text: '确定',
handler: function () {
console.log('confirm ok')
}
},
cancelBtn: {
text: '取消',
handler: function (params) {
console.log('confirm cancel')
}
}
}
this.$dlrMessage.confirm(config)
}
}
}
</script>
<style lang="scss">
.wrap {
ul {
list-style: none;
li {
margin: 8px;
}
}
}
</style>
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|---|---|---|---|---|
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|---|---|---|---|---|
FAQs
> 弹窗,分alert、confirm 类型: 备注: 使用控件前请确认是否满足业务需求,如有合理的个性化需求,控件会考虑后期整理迭代 体积: 37K -------------
We found that dlrmessage demonstrated a not healthy version release cadence and project activity because the last version was released 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.