chore: fui-tag 空心加背景色
This commit is contained in:
@ -115,7 +115,6 @@
|
|||||||
data() {
|
data() {
|
||||||
const app = uni && uni.$fui && uni.$fui.color;
|
const app = uni && uni.$fui && uni.$fui.color;
|
||||||
return {
|
return {
|
||||||
// #ifdef APP-NVUE
|
|
||||||
dark: {
|
dark: {
|
||||||
primary: (app && app.primary) || '#465CFF',
|
primary: (app && app.primary) || '#465CFF',
|
||||||
success: (app && app.success) || '#09BE4F',
|
success: (app && app.success) || '#09BE4F',
|
||||||
@ -123,12 +122,14 @@
|
|||||||
danger: (app && app.danger) || '#FF2B2B',
|
danger: (app && app.danger) || '#FF2B2B',
|
||||||
purple: (app && app.purple) || '#6831FF',
|
purple: (app && app.purple) || '#6831FF',
|
||||||
}
|
}
|
||||||
// #endif
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
getBackground() {
|
getBackground() {
|
||||||
let background = this.background
|
let background = this.background
|
||||||
|
if (!background && this.theme === 'plain') {
|
||||||
|
background = `rgba(${hexToRGB(this.dark[this.type])},.05)!important`
|
||||||
|
}
|
||||||
// #ifdef APP-NVUE
|
// #ifdef APP-NVUE
|
||||||
if (!background) {
|
if (!background) {
|
||||||
switch (this.theme) {
|
switch (this.theme) {
|
||||||
|
Reference in New Issue
Block a user