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() { 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) {