gxd-uni-library-editx 1.0.94 → 1.0.95

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gxd-uni-library-editx",
3
- "version": "1.0.94",
3
+ "version": "1.0.95",
4
4
  "private": false,
5
5
  "description": "聚福宝基础插件专用库",
6
6
  "main": "index.js",
@@ -232,9 +232,18 @@
232
232
  isMp: false,
233
233
  }
234
234
  },
235
-
235
+ watch: {
236
+ color(val){
237
+ this.uiColor = val;
238
+ }
239
+ },
236
240
  async created() {
237
- this.uiColor = await getParentsStyle(this.$parent, '$warningColor');
241
+ if(this.color){
242
+ this.uiColor = this.color;
243
+ }else{
244
+ this.uiColor = await getParentsStyle(this.$parent, '$warningColor');
245
+ }
246
+ // this.uiColor = await getParentsStyle(this.$parent, '$warningColor');
238
247
  if(this.isNoBgc) this.uiBackgroundColor = Color(this.uiColor).alpha(0.2).toString();
239
248
  else this.uiBackgroundColor = 'rgba(0,0,0,0)';
240
249