qianming 3 years ago
parent 9150313515
commit 45455afcc9

@ -65,13 +65,9 @@ export default {
//
setOptionsData() {
const optionsData = this.optionsData; // or
optionsData.dataType == "staticData"
? this.staticDataFn(optionsData.staticData)
: this.dynamicDataFn(optionsData.dynamicData, optionsData.refreshTime);
},
staticDataFn(val) {
this.styleColor.text = val;
this.$forceUpdate();
if (optionsData.dataType == "dynamicData") {
this.dynamicDataFn(optionsData.dynamicData, optionsData.refreshTime);
} else {};
},
dynamicDataFn(val, refreshTime) {
if (!val) return;

@ -63,13 +63,9 @@ export default {
//
setOptionsData() {
const optionsData = this.optionsData; // or
optionsData.dataType == "staticData"
? this.staticDataFn(optionsData.staticData)
: this.dynamicDataFn(optionsData.dynamicData, optionsData.refreshTime);
},
staticDataFn(val) {
this.styleColor.text = val;
this.$forceUpdate();
if (optionsData.dataType == "dynamicData") {
this.dynamicDataFn(optionsData.dynamicData, optionsData.refreshTime);
} else {};
},
dynamicDataFn(val, refreshTime) {
if (!val) return;

Loading…
Cancel
Save