Commit 1d09eda8 by 米嘉伟

不能改组件颜色变化

parent 593bcba4
......@@ -98,7 +98,7 @@ export default {
console.log("this.name:" + this.name, "this.id:" + this.id)
console.log("this.form[this.name]:" + this.form[this.name], "this.form[this.id]:" + this.form[this.id])
if (this.name && this.id && this.form[this.name] && this.form[this.id]) {
// document.getElementsByTagName('body')[0].style.setProperty('--placeholderColor', '#606266');
document.getElementsByTagName('body')[0].style.setProperty('--placeholderColor', '#606266');
this.valStr = this.form[this.name] + '[' + this.form[this.id] + ']';
console.log(this.valStr);
let name = this.form[this.name]
......@@ -107,10 +107,10 @@ export default {
}
return name + '[' + this.form[this.id] + ']';
} else if (this.id && this.form[this.id]) {
// document.getElementsByTagName('body')[0].style.setProperty('--placeholderColor', '#606266');
document.getElementsByTagName('body')[0].style.setProperty('--placeholderColor', '#606266');
return this.form[this.id]
} else {
// document.getElementsByTagName('body')[0].style.setProperty('--placeholderColor', '#b2b2b2');
document.getElementsByTagName('body')[0].style.setProperty('--placeholderColor', '#b2b2b2');
return this.$t('Common.please_select')
}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment