mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-07 23:30:26 +08:00
实现用户注册/审核功能
This commit is contained in:
@@ -31,5 +31,15 @@ Vue.component("micro-basic-label", {
|
||||
|
||||
// 灰色的Label
|
||||
Vue.component("grey-label", {
|
||||
template: `<span class="ui label basic grey tiny" style="margin-top: 0.4em; font-size: 0.7em; border: 1px solid #ddd!important; font-weight: normal;"><slot></slot></span>`
|
||||
props: ["color"],
|
||||
data: function () {
|
||||
let color = "grey"
|
||||
if (this.color != null && this.color.length > 0) {
|
||||
color = "red"
|
||||
}
|
||||
return {
|
||||
labelColor: color
|
||||
}
|
||||
},
|
||||
template: `<span class="ui label basic tiny" :class="labelColor" style="margin-top: 0.4em; font-size: 0.7em; border: 1px solid #ddd!important; font-weight: normal;"><slot></slot></span>`
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user