mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-03 12:20:28 +08:00
优化消息通知相关代码
This commit is contained in:
@@ -1,12 +1,18 @@
|
||||
// 使用Icon的链接方式
|
||||
Vue.component("link-icon", {
|
||||
props: ["href", "title", "target"],
|
||||
props: ["href", "title", "target", "size"],
|
||||
data: function () {
|
||||
let realSize = this.size
|
||||
if (realSize == null || realSize.length == 0) {
|
||||
realSize = "small"
|
||||
}
|
||||
|
||||
return {
|
||||
vTitle: (this.title == null) ? "打开链接" : this.title
|
||||
vTitle: (this.title == null) ? "打开链接" : this.title,
|
||||
realSize: realSize
|
||||
}
|
||||
},
|
||||
template: `<span><slot></slot> <a :href="href" :title="vTitle" class="link grey" :target="target"><i class="icon linkify small"></i></a></span>`
|
||||
template: `<span><slot></slot> <a :href="href" :title="vTitle" class="link grey" :target="target"><i class="icon linkify" :class="realSize"></i></a></span>`
|
||||
})
|
||||
|
||||
// 带有下划虚线的连接
|
||||
|
||||
Reference in New Issue
Block a user