element?$notify?懸浮通知使用詳解
2024.04.28今天我學(xué)習(xí)了如何使用this.$notify做一個懸浮通知,
官方文檔:Element - The world's most popular Vue UI framework
然后我根據(jù)官方文檔做了修改,效果如下:

增加了可點擊查看詳情的按鈕,代碼如下:
const h = this.$createElement
this.$notify({
title: '通知',
duration: 0,
message: h('p', [
h('p', null, 'xxxxxxxx通知'),
h('p', {
style: 'text-align: right;width:280px;dispaly:block;margin-top: 8px;color:#43c39d;cursor: pointer;',
on: {
click: () => {
this.view_more_notice_click();
},
},
}, '查看詳情'),
]),
});到此這篇關(guān)于element $notify 懸浮通知使用的文章就介紹到這了,更多相關(guān)element $notify 懸浮通知內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!
相關(guān)文章
Javascript標(biāo)準(zhǔn)DOM Range操作全集
Javascript標(biāo)準(zhǔn)DOM Range操作全集...2007-01-01
a標(biāo)簽的href和onclick 的事件的區(qū)別介紹
javascript中數(shù)組array及string的方法總結(jié)

