chore: fui-tag 空心加背景色

This commit is contained in:
Hefeng
2023-08-31 12:12:48 +08:00
parent b526a2b81a
commit 890a10f203

View File

@ -115,7 +115,6 @@
data() {
const app = uni && uni.$fui && uni.$fui.color;
return {
// #ifdef APP-NVUE
dark: {
primary: (app && app.primary) || '#465CFF',
success: (app && app.success) || '#09BE4F',
@ -123,12 +122,14 @@
danger: (app && app.danger) || '#FF2B2B',
purple: (app && app.purple) || '#6831FF',
}
// #endif
}
},
computed: {
getBackground() {
let background = this.background
if (!background && this.theme === 'plain') {
background = `rgba(${hexToRGB(this.dark[this.type])},.05)!important`
}
// #ifdef APP-NVUE
if (!background) {
switch (this.theme) {