mooho-base-admin-plus 2.0.48 → 2.0.49
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/mooho-base-admin-plus.min.esm.js +124 -74
- package/package/mooho-base-admin-plus.min.js +51 -51
- package/package/style.css +1 -1
- package/package.json +1 -1
- package/public/setting.js +1 -1
- package/src/components/input/dialog-select.vue +1 -1
- package/src/components/input/item-select.vue +3 -3
- package/src/components/view/modal-table.vue +9 -0
- package/src/components/view/view-form-draggable.vue +2 -0
- package/src/i18n/index.js +1 -1
- package/src/mixins/page.js +0 -1
- package/vite.config.js +2 -4
|
@@ -1200,7 +1200,7 @@ function getModuleByNamespace(store2, helper2, namespace) {
|
|
|
1200
1200
|
}
|
|
1201
1201
|
return module;
|
|
1202
1202
|
}
|
|
1203
|
-
/*! js-cookie v3.0.
|
|
1203
|
+
/*! js-cookie v3.0.5 | MIT */
|
|
1204
1204
|
function assign$2(target) {
|
|
1205
1205
|
for (var i3 = 1; i3 < arguments.length; i3++) {
|
|
1206
1206
|
var source2 = arguments[i3];
|
|
@@ -1225,7 +1225,7 @@ var defaultConverter = {
|
|
|
1225
1225
|
}
|
|
1226
1226
|
};
|
|
1227
1227
|
function init$4(converter, defaultAttributes) {
|
|
1228
|
-
function set2(
|
|
1228
|
+
function set2(name, value, attributes) {
|
|
1229
1229
|
if (typeof document === "undefined") {
|
|
1230
1230
|
return;
|
|
1231
1231
|
}
|
|
@@ -1236,7 +1236,7 @@ function init$4(converter, defaultAttributes) {
|
|
|
1236
1236
|
if (attributes.expires) {
|
|
1237
1237
|
attributes.expires = attributes.expires.toUTCString();
|
|
1238
1238
|
}
|
|
1239
|
-
|
|
1239
|
+
name = encodeURIComponent(name).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
1240
1240
|
var stringifiedAttributes = "";
|
|
1241
1241
|
for (var attributeName in attributes) {
|
|
1242
1242
|
if (!attributes[attributeName]) {
|
|
@@ -1248,10 +1248,10 @@ function init$4(converter, defaultAttributes) {
|
|
|
1248
1248
|
}
|
|
1249
1249
|
stringifiedAttributes += "=" + attributes[attributeName].split(";")[0];
|
|
1250
1250
|
}
|
|
1251
|
-
return document.cookie =
|
|
1251
|
+
return document.cookie = name + "=" + converter.write(value, name) + stringifiedAttributes;
|
|
1252
1252
|
}
|
|
1253
|
-
function get3(
|
|
1254
|
-
if (typeof document === "undefined" || arguments.length && !
|
|
1253
|
+
function get3(name) {
|
|
1254
|
+
if (typeof document === "undefined" || arguments.length && !name) {
|
|
1255
1255
|
return;
|
|
1256
1256
|
}
|
|
1257
1257
|
var cookies2 = document.cookie ? document.cookie.split("; ") : [];
|
|
@@ -1260,23 +1260,23 @@ function init$4(converter, defaultAttributes) {
|
|
|
1260
1260
|
var parts = cookies2[i3].split("=");
|
|
1261
1261
|
var value = parts.slice(1).join("=");
|
|
1262
1262
|
try {
|
|
1263
|
-
var
|
|
1264
|
-
jar[
|
|
1265
|
-
if (
|
|
1263
|
+
var found = decodeURIComponent(parts[0]);
|
|
1264
|
+
jar[found] = converter.read(value, found);
|
|
1265
|
+
if (name === found) {
|
|
1266
1266
|
break;
|
|
1267
1267
|
}
|
|
1268
1268
|
} catch (e3) {
|
|
1269
1269
|
}
|
|
1270
1270
|
}
|
|
1271
|
-
return
|
|
1271
|
+
return name ? jar[name] : jar;
|
|
1272
1272
|
}
|
|
1273
1273
|
return Object.create(
|
|
1274
1274
|
{
|
|
1275
1275
|
set: set2,
|
|
1276
1276
|
get: get3,
|
|
1277
|
-
remove: function(
|
|
1277
|
+
remove: function(name, attributes) {
|
|
1278
1278
|
set2(
|
|
1279
|
-
|
|
1279
|
+
name,
|
|
1280
1280
|
"",
|
|
1281
1281
|
assign$2({}, attributes, {
|
|
1282
1282
|
expires: -1
|
|
@@ -35615,7 +35615,8 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
35615
35615
|
ref: "dialogTable",
|
|
35616
35616
|
"view-code": $props.source,
|
|
35617
35617
|
selectEnable: $props.multi,
|
|
35618
|
-
|
|
35618
|
+
"check-cross-page": "true",
|
|
35619
|
+
"footer-enable": $props.multi
|
|
35619
35620
|
}, {
|
|
35620
35621
|
command: withCtx(({ row }) => [
|
|
35621
35622
|
!$props.multi ? (openBlock(), createBlock(_component_Button, {
|
|
@@ -35654,7 +35655,7 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
35654
35655
|
})
|
|
35655
35656
|
]),
|
|
35656
35657
|
_: 1
|
|
35657
|
-
}, 8, ["view-code", "selectEnable", "
|
|
35658
|
+
}, 8, ["view-code", "selectEnable", "footer-enable"])) : createCommentVNode("v-if", true)
|
|
35658
35659
|
]);
|
|
35659
35660
|
}
|
|
35660
35661
|
var DialogSelect = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_render$C], ["__file", "D:/Project/Mooho/FrontEnd/mooho-base-admin-plus/src/components/input/dialog-select.vue"]]);
|
|
@@ -35820,9 +35821,9 @@ function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
35820
35821
|
createVNode$1(_component_view_table, {
|
|
35821
35822
|
ref: "selectSourceTable",
|
|
35822
35823
|
"view-code": $props.sourceViewCode,
|
|
35823
|
-
|
|
35824
|
-
|
|
35825
|
-
|
|
35824
|
+
"select-enable": true,
|
|
35825
|
+
"check-cross-page": true,
|
|
35826
|
+
"auto-load": false,
|
|
35826
35827
|
filter: $data.sourceFilter,
|
|
35827
35828
|
height: 480,
|
|
35828
35829
|
onOnSelectChange: $options.selectedChange
|
|
@@ -51124,7 +51125,9 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
51124
51125
|
column.controlType !== "Placeholder" && column.controlType !== "Title" && column.controlType !== "Table" && column.controlType !== "List" ? (openBlock(), createBlock(_component_FormItem, {
|
|
51125
51126
|
label: $options.getNameI18n(column),
|
|
51126
51127
|
prop: column.code,
|
|
51127
|
-
key: column.code
|
|
51128
|
+
key: column.code,
|
|
51129
|
+
rules: $options.getRules(column),
|
|
51130
|
+
error: column.code == null ? _ctx.$t("Front_Label_Column_Not_Bind") : null
|
|
51128
51131
|
}, {
|
|
51129
51132
|
default: withCtx(() => [
|
|
51130
51133
|
column.controlType === "Custom" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [], 64)) : column.controlType === "Label" ? (openBlock(), createElementBlock("div", {
|
|
@@ -51496,7 +51499,7 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
51496
51499
|
], 64)) : createCommentVNode("v-if", true)
|
|
51497
51500
|
]),
|
|
51498
51501
|
_: 2
|
|
51499
|
-
}, 1032, ["label", "prop"])) : createCommentVNode("v-if", true)
|
|
51502
|
+
}, 1032, ["label", "prop", "rules", "error"])) : createCommentVNode("v-if", true)
|
|
51500
51503
|
], 44, _hoisted_1$f)
|
|
51501
51504
|
]),
|
|
51502
51505
|
_: 1
|
|
@@ -52386,6 +52389,10 @@ const _sfc_main$l = {
|
|
|
52386
52389
|
type: Boolean,
|
|
52387
52390
|
default: false
|
|
52388
52391
|
},
|
|
52392
|
+
checkCrossPage: {
|
|
52393
|
+
type: Boolean,
|
|
52394
|
+
default: false
|
|
52395
|
+
},
|
|
52389
52396
|
treeEnable: {
|
|
52390
52397
|
type: Boolean,
|
|
52391
52398
|
default: false
|
|
@@ -52602,6 +52609,8 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
52602
52609
|
"setting-enable": $props.settingEnable,
|
|
52603
52610
|
"select-enable": $props.selectEnable,
|
|
52604
52611
|
autoLoad: false,
|
|
52612
|
+
selectEnable: $props.selectEnable,
|
|
52613
|
+
checkCrossPage: $props.checkCrossPage,
|
|
52605
52614
|
"tree-enable": $props.treeEnable,
|
|
52606
52615
|
"tree-load": $props.treeLoad,
|
|
52607
52616
|
"has-children": $props.hasChildren,
|
|
@@ -52676,7 +52685,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
52676
52685
|
})
|
|
52677
52686
|
]),
|
|
52678
52687
|
_: 3
|
|
52679
|
-
}, 8, ["view-code", "static", "filter", "setting-enable", "select-enable", "tree-enable", "tree-load", "has-children", "create-enable", "edit-enable", "remove-enable", "draggable", "filter-enable", "page-enable", "embedded", "before-load-data", "on-search", "summary-method", "page-size-opts", "span-method", "onCreate", "onEdit", "onOnReady", "onOnLoadData", "onAfterInit", "onOnDragDrop"])
|
|
52688
|
+
}, 8, ["view-code", "static", "filter", "setting-enable", "select-enable", "selectEnable", "checkCrossPage", "tree-enable", "tree-load", "has-children", "create-enable", "edit-enable", "remove-enable", "draggable", "filter-enable", "page-enable", "embedded", "before-load-data", "on-search", "summary-method", "page-size-opts", "span-method", "onCreate", "onEdit", "onOnReady", "onOnLoadData", "onAfterInit", "onOnDragDrop"])
|
|
52680
52689
|
])
|
|
52681
52690
|
]),
|
|
52682
52691
|
_: 3
|
|
@@ -62586,7 +62595,7 @@ function getInstance(id) {
|
|
|
62586
62595
|
function registerPainter(name, Ctor) {
|
|
62587
62596
|
painterCtors[name] = Ctor;
|
|
62588
62597
|
}
|
|
62589
|
-
var version$1 = "5.4.
|
|
62598
|
+
var version$1 = "5.4.3";
|
|
62590
62599
|
var zrender = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
62591
62600
|
__proto__: null,
|
|
62592
62601
|
init: init$2,
|
|
@@ -63963,16 +63972,16 @@ function pushTokens(block, str, style, wrapInfo, styleName) {
|
|
|
63963
63972
|
}
|
|
63964
63973
|
}
|
|
63965
63974
|
}
|
|
63966
|
-
function
|
|
63975
|
+
function isAlphabeticLetter(ch) {
|
|
63967
63976
|
var code2 = ch.charCodeAt(0);
|
|
63968
|
-
return code2 >=
|
|
63977
|
+
return code2 >= 32 && code2 <= 591 || code2 >= 880 && code2 <= 4351 || code2 >= 4608 && code2 <= 5119 || code2 >= 7680 && code2 <= 8303;
|
|
63969
63978
|
}
|
|
63970
63979
|
var breakCharMap = reduce(",&?/;] ".split(""), function(obj, ch) {
|
|
63971
63980
|
obj[ch] = true;
|
|
63972
63981
|
return obj;
|
|
63973
63982
|
}, {});
|
|
63974
63983
|
function isWordBreakChar(ch) {
|
|
63975
|
-
if (
|
|
63984
|
+
if (isAlphabeticLetter(ch)) {
|
|
63976
63985
|
if (breakCharMap[ch]) {
|
|
63977
63986
|
return true;
|
|
63978
63987
|
}
|
|
@@ -72643,11 +72652,7 @@ function objectRowsCollectDimensions(data2) {
|
|
|
72643
72652
|
while (firstIndex < data2.length && !(obj = data2[firstIndex++])) {
|
|
72644
72653
|
}
|
|
72645
72654
|
if (obj) {
|
|
72646
|
-
|
|
72647
|
-
each$f(obj, function(value, key) {
|
|
72648
|
-
dimensions_1.push(key);
|
|
72649
|
-
});
|
|
72650
|
-
return dimensions_1;
|
|
72655
|
+
return keys(obj);
|
|
72651
72656
|
}
|
|
72652
72657
|
}
|
|
72653
72658
|
function normalizeDimensionsOption(dimensionsDefine) {
|
|
@@ -77768,9 +77773,9 @@ function getImpl(name) {
|
|
|
77768
77773
|
}
|
|
77769
77774
|
return implsStore[name];
|
|
77770
77775
|
}
|
|
77771
|
-
var version = "5.4.
|
|
77776
|
+
var version = "5.4.2";
|
|
77772
77777
|
var dependencies = {
|
|
77773
|
-
zrender: "5.4.
|
|
77778
|
+
zrender: "5.4.3"
|
|
77774
77779
|
};
|
|
77775
77780
|
var TEST_FRAME_REMAIN_TIME = 1;
|
|
77776
77781
|
var PRIORITY_PROCESSOR_SERIES_FILTER = 800;
|
|
@@ -84830,8 +84835,8 @@ function vNodeToString(el, opts) {
|
|
|
84830
84835
|
opts = opts || {};
|
|
84831
84836
|
var S3 = opts.newline ? "\n" : "";
|
|
84832
84837
|
function convertElToString(el2) {
|
|
84833
|
-
var children = el2.children, tag = el2.tag, attrs = el2.attrs;
|
|
84834
|
-
return createElementOpen(tag, attrs) + encodeHTML(
|
|
84838
|
+
var children = el2.children, tag = el2.tag, attrs = el2.attrs, text2 = el2.text;
|
|
84839
|
+
return createElementOpen(tag, attrs) + (tag !== "style" ? encodeHTML(text2) : text2 || "") + (children ? "" + S3 + map$1(children, function(child) {
|
|
84835
84840
|
return convertElToString(child);
|
|
84836
84841
|
}).join(S3) + S3 : "") + createElementClose(tag);
|
|
84837
84842
|
}
|
|
@@ -88364,7 +88369,7 @@ var LineView = function(_super) {
|
|
|
88364
88369
|
var polyline = this._polyline;
|
|
88365
88370
|
var polygon = this._polygon;
|
|
88366
88371
|
var lineGroup = this._lineGroup;
|
|
88367
|
-
var hasAnimation = seriesModel.
|
|
88372
|
+
var hasAnimation = !ecModel.ssr && seriesModel.isAnimationEnabled();
|
|
88368
88373
|
var isAreaChart = !areaStyleModel.isEmpty();
|
|
88369
88374
|
var valueOrigin = areaStyleModel.get("origin");
|
|
88370
88375
|
var dataCoordInfo = prepareDataCoordInfo(coordSys, data2, valueOrigin);
|
|
@@ -88659,8 +88664,8 @@ var LineView = function(_super) {
|
|
|
88659
88664
|
if (isFunction(seriesDuration)) {
|
|
88660
88665
|
seriesDuration = seriesDuration(null);
|
|
88661
88666
|
}
|
|
88662
|
-
var
|
|
88663
|
-
var
|
|
88667
|
+
var seriesDelay = seriesModel.get("animationDelay") || 0;
|
|
88668
|
+
var seriesDelayValue = isFunction(seriesDelay) ? seriesDelay(null) : seriesDelay;
|
|
88664
88669
|
data2.eachItemGraphicEl(function(symbol, idx) {
|
|
88665
88670
|
var el = symbol;
|
|
88666
88671
|
if (el) {
|
|
@@ -88698,7 +88703,7 @@ var LineView = function(_super) {
|
|
|
88698
88703
|
if (isAxisInverse) {
|
|
88699
88704
|
ratio = 1 - ratio;
|
|
88700
88705
|
}
|
|
88701
|
-
var delay = isFunction(
|
|
88706
|
+
var delay = isFunction(seriesDelay) ? seriesDelay(idx) : seriesDuration * ratio + seriesDelayValue;
|
|
88702
88707
|
var symbolPath = el.getSymbolPath();
|
|
88703
88708
|
var text2 = symbolPath.getTextContent();
|
|
88704
88709
|
el.attr({
|
|
@@ -89084,18 +89089,50 @@ var BaseBarSeriesModel = function(_super) {
|
|
|
89084
89089
|
BaseBarSeriesModel2.prototype.getMarkerPosition = function(value, dims, startingAtTick) {
|
|
89085
89090
|
var coordSys = this.coordinateSystem;
|
|
89086
89091
|
if (coordSys && coordSys.clampData) {
|
|
89087
|
-
var
|
|
89092
|
+
var clampData_1 = coordSys.clampData(value);
|
|
89093
|
+
var pt_1 = coordSys.dataToPoint(clampData_1);
|
|
89088
89094
|
if (startingAtTick) {
|
|
89089
89095
|
each$f(coordSys.getAxes(), function(axis, idx) {
|
|
89090
|
-
if (axis.type === "category") {
|
|
89096
|
+
if (axis.type === "category" && dims != null) {
|
|
89091
89097
|
var tickCoords = axis.getTicksCoords();
|
|
89092
|
-
var
|
|
89093
|
-
|
|
89094
|
-
|
|
89098
|
+
var targetTickId = clampData_1[idx];
|
|
89099
|
+
var isEnd = dims[idx] === "x1" || dims[idx] === "y1";
|
|
89100
|
+
if (isEnd) {
|
|
89101
|
+
targetTickId += 1;
|
|
89102
|
+
}
|
|
89103
|
+
if (tickCoords.length < 2) {
|
|
89104
|
+
return;
|
|
89105
|
+
} else if (tickCoords.length === 2) {
|
|
89106
|
+
pt_1[idx] = axis.toGlobalCoord(axis.getExtent()[isEnd ? 1 : 0]);
|
|
89107
|
+
return;
|
|
89108
|
+
}
|
|
89109
|
+
var leftCoord = void 0;
|
|
89110
|
+
var coord = void 0;
|
|
89111
|
+
var stepTickValue = 1;
|
|
89112
|
+
for (var i3 = 0; i3 < tickCoords.length; i3++) {
|
|
89113
|
+
var tickCoord = tickCoords[i3].coord;
|
|
89114
|
+
var tickValue = i3 === tickCoords.length - 1 ? tickCoords[i3 - 1].tickValue + stepTickValue : tickCoords[i3].tickValue;
|
|
89115
|
+
if (tickValue === targetTickId) {
|
|
89116
|
+
coord = tickCoord;
|
|
89117
|
+
break;
|
|
89118
|
+
} else if (tickValue < targetTickId) {
|
|
89119
|
+
leftCoord = tickCoord;
|
|
89120
|
+
} else if (leftCoord != null && tickValue > targetTickId) {
|
|
89121
|
+
coord = (tickCoord + leftCoord) / 2;
|
|
89122
|
+
break;
|
|
89123
|
+
}
|
|
89124
|
+
if (i3 === 1) {
|
|
89125
|
+
stepTickValue = tickValue - tickCoords[0].tickValue;
|
|
89126
|
+
}
|
|
89127
|
+
}
|
|
89128
|
+
if (coord == null) {
|
|
89129
|
+
if (!leftCoord) {
|
|
89130
|
+
coord = tickCoords[0].coord;
|
|
89131
|
+
} else if (leftCoord) {
|
|
89132
|
+
coord = tickCoords[tickCoords.length - 1].coord;
|
|
89133
|
+
}
|
|
89095
89134
|
}
|
|
89096
|
-
|
|
89097
|
-
tickIdx < 0 && (tickIdx = 0);
|
|
89098
|
-
tickCoords[tickIdx] && (pt_1[idx] = axis.toGlobalCoord(tickCoords[tickIdx].coord));
|
|
89135
|
+
pt_1[idx] = axis.toGlobalCoord(coord);
|
|
89099
89136
|
}
|
|
89100
89137
|
});
|
|
89101
89138
|
} else {
|
|
@@ -89382,6 +89419,23 @@ function adjustAngleDistanceX(angle, distance2, isEnd) {
|
|
|
89382
89419
|
function adjustAngleDistanceY(angle, distance2, isEnd) {
|
|
89383
89420
|
return distance2 * Math.cos(angle) * (isEnd ? 1 : -1);
|
|
89384
89421
|
}
|
|
89422
|
+
function getSectorCornerRadius(model2, shape, zeroIfNull) {
|
|
89423
|
+
var cornerRadius = model2.get("borderRadius");
|
|
89424
|
+
if (cornerRadius == null) {
|
|
89425
|
+
return zeroIfNull ? {
|
|
89426
|
+
cornerRadius: 0
|
|
89427
|
+
} : null;
|
|
89428
|
+
}
|
|
89429
|
+
if (!isArray$1(cornerRadius)) {
|
|
89430
|
+
cornerRadius = [cornerRadius, cornerRadius, cornerRadius, cornerRadius];
|
|
89431
|
+
}
|
|
89432
|
+
var dr = Math.abs(shape.r || 0 - shape.r0 || 0);
|
|
89433
|
+
return {
|
|
89434
|
+
cornerRadius: map$1(cornerRadius, function(cr) {
|
|
89435
|
+
return parsePercent$1(cr, dr);
|
|
89436
|
+
})
|
|
89437
|
+
};
|
|
89438
|
+
}
|
|
89385
89439
|
var mathMax$4 = Math.max;
|
|
89386
89440
|
var mathMin$4 = Math.min;
|
|
89387
89441
|
function getClipArea(coord, data2) {
|
|
@@ -89474,6 +89528,8 @@ var BarView = function(_super) {
|
|
|
89474
89528
|
bgEl.useStyle(backgroundModel.getItemStyle());
|
|
89475
89529
|
if (coord.type === "cartesian2d") {
|
|
89476
89530
|
bgEl.setShape("r", barBorderRadius);
|
|
89531
|
+
} else {
|
|
89532
|
+
bgEl.setShape("cornerRadius", barBorderRadius);
|
|
89477
89533
|
}
|
|
89478
89534
|
bgEls[dataIndex] = bgEl;
|
|
89479
89535
|
return bgEl;
|
|
@@ -89522,6 +89578,8 @@ var BarView = function(_super) {
|
|
|
89522
89578
|
bgEl.useStyle(backgroundModel.getItemStyle());
|
|
89523
89579
|
if (coord.type === "cartesian2d") {
|
|
89524
89580
|
bgEl.setShape("r", barBorderRadius);
|
|
89581
|
+
} else {
|
|
89582
|
+
bgEl.setShape("cornerRadius", barBorderRadius);
|
|
89525
89583
|
}
|
|
89526
89584
|
bgEls[newIndex2] = bgEl;
|
|
89527
89585
|
}
|
|
@@ -89820,7 +89878,7 @@ var elementCreator = {
|
|
|
89820
89878
|
var sectorShape = sector.shape;
|
|
89821
89879
|
var animateProperty = isRadial ? "r" : "endAngle";
|
|
89822
89880
|
var animateTarget = {};
|
|
89823
|
-
sectorShape[animateProperty] = isRadial ?
|
|
89881
|
+
sectorShape[animateProperty] = isRadial ? layout2.r0 : layout2.startAngle;
|
|
89824
89882
|
animateTarget[animateProperty] = layout2[animateProperty];
|
|
89825
89883
|
(isUpdate ? updateProps$1 : initProps)(sector, {
|
|
89826
89884
|
shape: animateTarget
|
|
@@ -89947,7 +90005,13 @@ function createPolarPositionMapping(isRadial) {
|
|
|
89947
90005
|
function updateStyle(el, data2, dataIndex, itemModel, layout2, seriesModel, isHorizontalOrRadial, isPolar) {
|
|
89948
90006
|
var style = data2.getItemVisual(dataIndex, "style");
|
|
89949
90007
|
if (!isPolar) {
|
|
89950
|
-
|
|
90008
|
+
var borderRadius = itemModel.get(["itemStyle", "borderRadius"]) || 0;
|
|
90009
|
+
el.setShape("r", borderRadius);
|
|
90010
|
+
} else if (!seriesModel.get("roundCap")) {
|
|
90011
|
+
var sectorShape = el.shape;
|
|
90012
|
+
var cornerRadius = getSectorCornerRadius(itemModel.getModel("itemStyle"), sectorShape, true);
|
|
90013
|
+
extend(sectorShape, cornerRadius);
|
|
90014
|
+
el.setShape(sectorShape);
|
|
89951
90015
|
}
|
|
89952
90016
|
el.useStyle(style);
|
|
89953
90017
|
var cursorStyle = itemModel.getShallow("cursor");
|
|
@@ -90686,23 +90750,6 @@ function pieLabelLayout(seriesModel) {
|
|
|
90686
90750
|
}
|
|
90687
90751
|
}
|
|
90688
90752
|
}
|
|
90689
|
-
function getSectorCornerRadius(model2, shape, zeroIfNull) {
|
|
90690
|
-
var cornerRadius = model2.get("borderRadius");
|
|
90691
|
-
if (cornerRadius == null) {
|
|
90692
|
-
return zeroIfNull ? {
|
|
90693
|
-
cornerRadius: 0
|
|
90694
|
-
} : null;
|
|
90695
|
-
}
|
|
90696
|
-
if (!isArray$1(cornerRadius)) {
|
|
90697
|
-
cornerRadius = [cornerRadius, cornerRadius, cornerRadius, cornerRadius];
|
|
90698
|
-
}
|
|
90699
|
-
var dr = Math.abs(shape.r || 0 - shape.r0 || 0);
|
|
90700
|
-
return {
|
|
90701
|
-
cornerRadius: map$1(cornerRadius, function(cr) {
|
|
90702
|
-
return parsePercent$1(cr, dr);
|
|
90703
|
-
})
|
|
90704
|
-
};
|
|
90705
|
-
}
|
|
90706
90753
|
var PiePiece = function(_super) {
|
|
90707
90754
|
__extends(PiePiece2, _super);
|
|
90708
90755
|
function PiePiece2(data2, idx, startAngle) {
|
|
@@ -109343,7 +109390,7 @@ var SunburstPiece = function(_super) {
|
|
|
109343
109390
|
if (firstCreate) {
|
|
109344
109391
|
sector.setShape(sectorShape);
|
|
109345
109392
|
sector.shape.r = layout2.r0;
|
|
109346
|
-
|
|
109393
|
+
initProps(sector, {
|
|
109347
109394
|
shape: {
|
|
109348
109395
|
r: layout2.r
|
|
109349
109396
|
}
|
|
@@ -109435,8 +109482,8 @@ var SunburstPiece = function(_super) {
|
|
|
109435
109482
|
var rotateType = getLabelAttr(labelStateModel, "rotate");
|
|
109436
109483
|
var rotate2 = 0;
|
|
109437
109484
|
if (rotateType === "radial") {
|
|
109438
|
-
rotate2 = -midAngle;
|
|
109439
|
-
if (rotate2
|
|
109485
|
+
rotate2 = normalizeRadian(-midAngle);
|
|
109486
|
+
if (rotate2 > Math.PI / 2 && rotate2 < Math.PI * 1.5) {
|
|
109440
109487
|
rotate2 += Math.PI;
|
|
109441
109488
|
}
|
|
109442
109489
|
} else if (rotateType === "tangential") {
|
|
@@ -117365,6 +117412,7 @@ var TooltipHTMLContent = function() {
|
|
|
117365
117412
|
this._show = false;
|
|
117366
117413
|
this._styleCoord = [0, 0, 0, 0];
|
|
117367
117414
|
this._enterable = true;
|
|
117415
|
+
this._alwaysShowContent = false;
|
|
117368
117416
|
this._firstShow = true;
|
|
117369
117417
|
this._longHide = true;
|
|
117370
117418
|
if (env$1.wxa) {
|
|
@@ -117417,6 +117465,7 @@ var TooltipHTMLContent = function() {
|
|
|
117417
117465
|
}
|
|
117418
117466
|
var alwaysShowContent = tooltipModel.get("alwaysShowContent");
|
|
117419
117467
|
alwaysShowContent && this._moveIfResized();
|
|
117468
|
+
this._alwaysShowContent = alwaysShowContent;
|
|
117420
117469
|
this.el.className = tooltipModel.get("className") || "";
|
|
117421
117470
|
};
|
|
117422
117471
|
TooltipHTMLContent2.prototype.show = function(tooltipModel, nearPointColor) {
|
|
@@ -117498,7 +117547,7 @@ var TooltipHTMLContent = function() {
|
|
|
117498
117547
|
}, 500);
|
|
117499
117548
|
};
|
|
117500
117549
|
TooltipHTMLContent2.prototype.hideLater = function(time2) {
|
|
117501
|
-
if (this._show && !(this._inContent && this._enterable)) {
|
|
117550
|
+
if (this._show && !(this._inContent && this._enterable) && !this._alwaysShowContent) {
|
|
117502
117551
|
if (time2) {
|
|
117503
117552
|
this._hideDelay = time2;
|
|
117504
117553
|
this._show = false;
|
|
@@ -117521,6 +117570,7 @@ var TooltipRichContent = function() {
|
|
|
117521
117570
|
function TooltipRichContent2(api2) {
|
|
117522
117571
|
this._show = false;
|
|
117523
117572
|
this._styleCoord = [0, 0, 0, 0];
|
|
117573
|
+
this._alwaysShowContent = false;
|
|
117524
117574
|
this._enterable = true;
|
|
117525
117575
|
this._zr = api2.getZr();
|
|
117526
117576
|
makeStyleCoord(this._styleCoord, this._zr, api2.getWidth() / 2, api2.getHeight() / 2);
|
|
@@ -117528,6 +117578,7 @@ var TooltipRichContent = function() {
|
|
|
117528
117578
|
TooltipRichContent2.prototype.update = function(tooltipModel) {
|
|
117529
117579
|
var alwaysShowContent = tooltipModel.get("alwaysShowContent");
|
|
117530
117580
|
alwaysShowContent && this._moveIfResized();
|
|
117581
|
+
this._alwaysShowContent = alwaysShowContent;
|
|
117531
117582
|
};
|
|
117532
117583
|
TooltipRichContent2.prototype.show = function() {
|
|
117533
117584
|
if (this._hideTimeout) {
|
|
@@ -117620,7 +117671,7 @@ var TooltipRichContent = function() {
|
|
|
117620
117671
|
this._show = false;
|
|
117621
117672
|
};
|
|
117622
117673
|
TooltipRichContent2.prototype.hideLater = function(time2) {
|
|
117623
|
-
if (this._show && !(this._inContent && this._enterable)) {
|
|
117674
|
+
if (this._show && !(this._inContent && this._enterable) && !this._alwaysShowContent) {
|
|
117624
117675
|
if (time2) {
|
|
117625
117676
|
this._hideDelay = time2;
|
|
117626
117677
|
this._show = false;
|
|
@@ -117692,7 +117743,6 @@ var TooltipView = function(_super) {
|
|
|
117692
117743
|
this._tooltipModel = tooltipModel;
|
|
117693
117744
|
this._ecModel = ecModel;
|
|
117694
117745
|
this._api = api2;
|
|
117695
|
-
this._alwaysShowContent = tooltipModel.get("alwaysShowContent");
|
|
117696
117746
|
var tooltipContent = this._tooltipContent;
|
|
117697
117747
|
tooltipContent.update(tooltipModel);
|
|
117698
117748
|
tooltipContent.setEnterable(tooltipModel.get("enterable"));
|
|
@@ -117806,7 +117856,7 @@ var TooltipView = function(_super) {
|
|
|
117806
117856
|
};
|
|
117807
117857
|
TooltipView2.prototype.manuallyHideTip = function(tooltipModel, ecModel, api2, payload) {
|
|
117808
117858
|
var tooltipContent = this._tooltipContent;
|
|
117809
|
-
if (
|
|
117859
|
+
if (this._tooltipModel) {
|
|
117810
117860
|
tooltipContent.hideLater(this._tooltipModel.get("hideDelay"));
|
|
117811
117861
|
}
|
|
117812
117862
|
this._lastX = this._lastY = this._lastDataByCoordSys = null;
|
|
@@ -120194,8 +120244,8 @@ function dataTransform(seriesModel, item) {
|
|
|
120194
120244
|
}
|
|
120195
120245
|
var data2 = seriesModel.getData();
|
|
120196
120246
|
var coordSys = seriesModel.coordinateSystem;
|
|
120197
|
-
var dims = coordSys.dimensions;
|
|
120198
|
-
if (!hasXAndY(item) && !isArray$1(item.coord) &&
|
|
120247
|
+
var dims = coordSys && coordSys.dimensions;
|
|
120248
|
+
if (!hasXAndY(item) && !isArray$1(item.coord) && isArray$1(dims)) {
|
|
120199
120249
|
var axisInfo = getAxisInfo(item, data2, coordSys, seriesModel);
|
|
120200
120250
|
item = clone$4(item);
|
|
120201
120251
|
if (item.type && markerTypeCalculator[item.type] && axisInfo.baseAxis && axisInfo.valueAxis) {
|
|
@@ -120208,7 +120258,7 @@ function dataTransform(seriesModel, item) {
|
|
|
120208
120258
|
item.coord = [item.xAxis != null ? item.xAxis : item.radiusAxis, item.yAxis != null ? item.yAxis : item.angleAxis];
|
|
120209
120259
|
}
|
|
120210
120260
|
}
|
|
120211
|
-
if (item.coord == null) {
|
|
120261
|
+
if (item.coord == null || !isArray$1(dims)) {
|
|
120212
120262
|
item.coord = [];
|
|
120213
120263
|
} else {
|
|
120214
120264
|
var coord = item.coord;
|