evui 3.1.47 → 3.1.48
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
|
@@ -282,9 +282,8 @@ const modules = {
|
|
|
282
282
|
*/
|
|
283
283
|
addData(gdata, ldata, odata = null, bdata = null, isTop = true) {
|
|
284
284
|
let data;
|
|
285
|
-
const gdataValue = gdata
|
|
286
|
-
const odataValue = odata
|
|
287
|
-
const dataColor = gdata?.color ?? odata?.color;
|
|
285
|
+
const gdataValue = Object.hasOwnProperty.call(gdata, 'value') ? gdata.value : gdata;
|
|
286
|
+
const odataValue = Object.hasOwnProperty.call(gdata, 'value') ? odata.value : odata;
|
|
288
287
|
|
|
289
288
|
if (this.options.horizontal) {
|
|
290
289
|
data = { x: gdataValue, y: ldata, o: odataValue, b: bdata };
|
|
@@ -296,9 +295,12 @@ const modules = {
|
|
|
296
295
|
data.yp = null;
|
|
297
296
|
data.w = null;
|
|
298
297
|
data.h = null;
|
|
299
|
-
data.dataColor = dataColor || null;
|
|
300
298
|
data.isTop = isTop;
|
|
301
299
|
|
|
300
|
+
const gDataColor = Object.hasOwnProperty.call(gdata, 'color') ? gdata.color : null;
|
|
301
|
+
const oDataColor = Object.hasOwnProperty.call(odata, 'color') ? odata.color : null;
|
|
302
|
+
data.dataColor = gDataColor ?? oDataColor;
|
|
303
|
+
|
|
302
304
|
return data;
|
|
303
305
|
},
|
|
304
306
|
|