mooho-base-admin-plus 2.0.47 → 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 +130 -77
- 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/form-setting-layout.vue +17 -3
- package/src/components/view/modal-table.vue +9 -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
|
|
@@ -51616,21 +51617,26 @@ const _sfc_main$n = {
|
|
|
51616
51617
|
if (!this.$refs.form.columns.some((column) => {
|
|
51617
51618
|
return column.code === item.code;
|
|
51618
51619
|
})) {
|
|
51619
|
-
this.$refs.form.
|
|
51620
|
+
let data2 = this.$refs.form.data;
|
|
51621
|
+
if (lodash$1.exports.get(data2, item.code) == null) {
|
|
51622
|
+
lodash$1.exports.set(data2, item.code, null);
|
|
51623
|
+
}
|
|
51624
|
+
let column = {
|
|
51620
51625
|
code: item.code,
|
|
51621
51626
|
name: item.name,
|
|
51622
51627
|
dataType: item.dataType,
|
|
51623
51628
|
dataView: this.dataView,
|
|
51624
51629
|
isShow: true,
|
|
51625
|
-
controlType: this.getDefaultControlType(item.dataType),
|
|
51630
|
+
controlType: item.code.indexOf(".") > 0 ? "Label" : this.getDefaultControlType(item.dataType),
|
|
51626
51631
|
columnWidth: this.columnWidth,
|
|
51627
51632
|
source: item.objColumn != null ? item.objColumn.dataType : null,
|
|
51628
51633
|
sourceDataCode: item.objColumn != null ? "id" : null,
|
|
51629
51634
|
sourceModel: item.objColumn != null ? item.objColumn.dataType : null,
|
|
51630
|
-
sourceDisplayCode: item.objColumn != null && item.objColumn.columns.some(function(
|
|
51631
|
-
return
|
|
51635
|
+
sourceDisplayCode: item.objColumn != null && item.objColumn.columns.some(function(column2) {
|
|
51636
|
+
return column2.code === item.objColumn.code + ".name";
|
|
51632
51637
|
}) ? "name" : null
|
|
51633
|
-
}
|
|
51638
|
+
};
|
|
51639
|
+
this.$refs.form.columns.push(column);
|
|
51634
51640
|
}
|
|
51635
51641
|
});
|
|
51636
51642
|
});
|
|
@@ -52383,6 +52389,10 @@ const _sfc_main$l = {
|
|
|
52383
52389
|
type: Boolean,
|
|
52384
52390
|
default: false
|
|
52385
52391
|
},
|
|
52392
|
+
checkCrossPage: {
|
|
52393
|
+
type: Boolean,
|
|
52394
|
+
default: false
|
|
52395
|
+
},
|
|
52386
52396
|
treeEnable: {
|
|
52387
52397
|
type: Boolean,
|
|
52388
52398
|
default: false
|
|
@@ -52599,6 +52609,8 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
52599
52609
|
"setting-enable": $props.settingEnable,
|
|
52600
52610
|
"select-enable": $props.selectEnable,
|
|
52601
52611
|
autoLoad: false,
|
|
52612
|
+
selectEnable: $props.selectEnable,
|
|
52613
|
+
checkCrossPage: $props.checkCrossPage,
|
|
52602
52614
|
"tree-enable": $props.treeEnable,
|
|
52603
52615
|
"tree-load": $props.treeLoad,
|
|
52604
52616
|
"has-children": $props.hasChildren,
|
|
@@ -52673,7 +52685,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
52673
52685
|
})
|
|
52674
52686
|
]),
|
|
52675
52687
|
_: 3
|
|
52676
|
-
}, 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"])
|
|
52677
52689
|
])
|
|
52678
52690
|
]),
|
|
52679
52691
|
_: 3
|
|
@@ -62583,7 +62595,7 @@ function getInstance(id) {
|
|
|
62583
62595
|
function registerPainter(name, Ctor) {
|
|
62584
62596
|
painterCtors[name] = Ctor;
|
|
62585
62597
|
}
|
|
62586
|
-
var version$1 = "5.4.
|
|
62598
|
+
var version$1 = "5.4.3";
|
|
62587
62599
|
var zrender = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
62588
62600
|
__proto__: null,
|
|
62589
62601
|
init: init$2,
|
|
@@ -63960,16 +63972,16 @@ function pushTokens(block, str, style, wrapInfo, styleName) {
|
|
|
63960
63972
|
}
|
|
63961
63973
|
}
|
|
63962
63974
|
}
|
|
63963
|
-
function
|
|
63975
|
+
function isAlphabeticLetter(ch) {
|
|
63964
63976
|
var code2 = ch.charCodeAt(0);
|
|
63965
|
-
return code2 >=
|
|
63977
|
+
return code2 >= 32 && code2 <= 591 || code2 >= 880 && code2 <= 4351 || code2 >= 4608 && code2 <= 5119 || code2 >= 7680 && code2 <= 8303;
|
|
63966
63978
|
}
|
|
63967
63979
|
var breakCharMap = reduce(",&?/;] ".split(""), function(obj, ch) {
|
|
63968
63980
|
obj[ch] = true;
|
|
63969
63981
|
return obj;
|
|
63970
63982
|
}, {});
|
|
63971
63983
|
function isWordBreakChar(ch) {
|
|
63972
|
-
if (
|
|
63984
|
+
if (isAlphabeticLetter(ch)) {
|
|
63973
63985
|
if (breakCharMap[ch]) {
|
|
63974
63986
|
return true;
|
|
63975
63987
|
}
|
|
@@ -72640,11 +72652,7 @@ function objectRowsCollectDimensions(data2) {
|
|
|
72640
72652
|
while (firstIndex < data2.length && !(obj = data2[firstIndex++])) {
|
|
72641
72653
|
}
|
|
72642
72654
|
if (obj) {
|
|
72643
|
-
|
|
72644
|
-
each$f(obj, function(value, key) {
|
|
72645
|
-
dimensions_1.push(key);
|
|
72646
|
-
});
|
|
72647
|
-
return dimensions_1;
|
|
72655
|
+
return keys(obj);
|
|
72648
72656
|
}
|
|
72649
72657
|
}
|
|
72650
72658
|
function normalizeDimensionsOption(dimensionsDefine) {
|
|
@@ -77765,9 +77773,9 @@ function getImpl(name) {
|
|
|
77765
77773
|
}
|
|
77766
77774
|
return implsStore[name];
|
|
77767
77775
|
}
|
|
77768
|
-
var version = "5.4.
|
|
77776
|
+
var version = "5.4.2";
|
|
77769
77777
|
var dependencies = {
|
|
77770
|
-
zrender: "5.4.
|
|
77778
|
+
zrender: "5.4.3"
|
|
77771
77779
|
};
|
|
77772
77780
|
var TEST_FRAME_REMAIN_TIME = 1;
|
|
77773
77781
|
var PRIORITY_PROCESSOR_SERIES_FILTER = 800;
|
|
@@ -84827,8 +84835,8 @@ function vNodeToString(el, opts) {
|
|
|
84827
84835
|
opts = opts || {};
|
|
84828
84836
|
var S3 = opts.newline ? "\n" : "";
|
|
84829
84837
|
function convertElToString(el2) {
|
|
84830
|
-
var children = el2.children, tag = el2.tag, attrs = el2.attrs;
|
|
84831
|
-
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) {
|
|
84832
84840
|
return convertElToString(child);
|
|
84833
84841
|
}).join(S3) + S3 : "") + createElementClose(tag);
|
|
84834
84842
|
}
|
|
@@ -88361,7 +88369,7 @@ var LineView = function(_super) {
|
|
|
88361
88369
|
var polyline = this._polyline;
|
|
88362
88370
|
var polygon = this._polygon;
|
|
88363
88371
|
var lineGroup = this._lineGroup;
|
|
88364
|
-
var hasAnimation = seriesModel.
|
|
88372
|
+
var hasAnimation = !ecModel.ssr && seriesModel.isAnimationEnabled();
|
|
88365
88373
|
var isAreaChart = !areaStyleModel.isEmpty();
|
|
88366
88374
|
var valueOrigin = areaStyleModel.get("origin");
|
|
88367
88375
|
var dataCoordInfo = prepareDataCoordInfo(coordSys, data2, valueOrigin);
|
|
@@ -88656,8 +88664,8 @@ var LineView = function(_super) {
|
|
|
88656
88664
|
if (isFunction(seriesDuration)) {
|
|
88657
88665
|
seriesDuration = seriesDuration(null);
|
|
88658
88666
|
}
|
|
88659
|
-
var
|
|
88660
|
-
var
|
|
88667
|
+
var seriesDelay = seriesModel.get("animationDelay") || 0;
|
|
88668
|
+
var seriesDelayValue = isFunction(seriesDelay) ? seriesDelay(null) : seriesDelay;
|
|
88661
88669
|
data2.eachItemGraphicEl(function(symbol, idx) {
|
|
88662
88670
|
var el = symbol;
|
|
88663
88671
|
if (el) {
|
|
@@ -88695,7 +88703,7 @@ var LineView = function(_super) {
|
|
|
88695
88703
|
if (isAxisInverse) {
|
|
88696
88704
|
ratio = 1 - ratio;
|
|
88697
88705
|
}
|
|
88698
|
-
var delay = isFunction(
|
|
88706
|
+
var delay = isFunction(seriesDelay) ? seriesDelay(idx) : seriesDuration * ratio + seriesDelayValue;
|
|
88699
88707
|
var symbolPath = el.getSymbolPath();
|
|
88700
88708
|
var text2 = symbolPath.getTextContent();
|
|
88701
88709
|
el.attr({
|
|
@@ -89081,18 +89089,50 @@ var BaseBarSeriesModel = function(_super) {
|
|
|
89081
89089
|
BaseBarSeriesModel2.prototype.getMarkerPosition = function(value, dims, startingAtTick) {
|
|
89082
89090
|
var coordSys = this.coordinateSystem;
|
|
89083
89091
|
if (coordSys && coordSys.clampData) {
|
|
89084
|
-
var
|
|
89092
|
+
var clampData_1 = coordSys.clampData(value);
|
|
89093
|
+
var pt_1 = coordSys.dataToPoint(clampData_1);
|
|
89085
89094
|
if (startingAtTick) {
|
|
89086
89095
|
each$f(coordSys.getAxes(), function(axis, idx) {
|
|
89087
|
-
if (axis.type === "category") {
|
|
89096
|
+
if (axis.type === "category" && dims != null) {
|
|
89088
89097
|
var tickCoords = axis.getTicksCoords();
|
|
89089
|
-
var
|
|
89090
|
-
|
|
89091
|
-
|
|
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
|
+
}
|
|
89092
89134
|
}
|
|
89093
|
-
|
|
89094
|
-
tickIdx < 0 && (tickIdx = 0);
|
|
89095
|
-
tickCoords[tickIdx] && (pt_1[idx] = axis.toGlobalCoord(tickCoords[tickIdx].coord));
|
|
89135
|
+
pt_1[idx] = axis.toGlobalCoord(coord);
|
|
89096
89136
|
}
|
|
89097
89137
|
});
|
|
89098
89138
|
} else {
|
|
@@ -89379,6 +89419,23 @@ function adjustAngleDistanceX(angle, distance2, isEnd) {
|
|
|
89379
89419
|
function adjustAngleDistanceY(angle, distance2, isEnd) {
|
|
89380
89420
|
return distance2 * Math.cos(angle) * (isEnd ? 1 : -1);
|
|
89381
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
|
+
}
|
|
89382
89439
|
var mathMax$4 = Math.max;
|
|
89383
89440
|
var mathMin$4 = Math.min;
|
|
89384
89441
|
function getClipArea(coord, data2) {
|
|
@@ -89471,6 +89528,8 @@ var BarView = function(_super) {
|
|
|
89471
89528
|
bgEl.useStyle(backgroundModel.getItemStyle());
|
|
89472
89529
|
if (coord.type === "cartesian2d") {
|
|
89473
89530
|
bgEl.setShape("r", barBorderRadius);
|
|
89531
|
+
} else {
|
|
89532
|
+
bgEl.setShape("cornerRadius", barBorderRadius);
|
|
89474
89533
|
}
|
|
89475
89534
|
bgEls[dataIndex] = bgEl;
|
|
89476
89535
|
return bgEl;
|
|
@@ -89519,6 +89578,8 @@ var BarView = function(_super) {
|
|
|
89519
89578
|
bgEl.useStyle(backgroundModel.getItemStyle());
|
|
89520
89579
|
if (coord.type === "cartesian2d") {
|
|
89521
89580
|
bgEl.setShape("r", barBorderRadius);
|
|
89581
|
+
} else {
|
|
89582
|
+
bgEl.setShape("cornerRadius", barBorderRadius);
|
|
89522
89583
|
}
|
|
89523
89584
|
bgEls[newIndex2] = bgEl;
|
|
89524
89585
|
}
|
|
@@ -89817,7 +89878,7 @@ var elementCreator = {
|
|
|
89817
89878
|
var sectorShape = sector.shape;
|
|
89818
89879
|
var animateProperty = isRadial ? "r" : "endAngle";
|
|
89819
89880
|
var animateTarget = {};
|
|
89820
|
-
sectorShape[animateProperty] = isRadial ?
|
|
89881
|
+
sectorShape[animateProperty] = isRadial ? layout2.r0 : layout2.startAngle;
|
|
89821
89882
|
animateTarget[animateProperty] = layout2[animateProperty];
|
|
89822
89883
|
(isUpdate ? updateProps$1 : initProps)(sector, {
|
|
89823
89884
|
shape: animateTarget
|
|
@@ -89944,7 +90005,13 @@ function createPolarPositionMapping(isRadial) {
|
|
|
89944
90005
|
function updateStyle(el, data2, dataIndex, itemModel, layout2, seriesModel, isHorizontalOrRadial, isPolar) {
|
|
89945
90006
|
var style = data2.getItemVisual(dataIndex, "style");
|
|
89946
90007
|
if (!isPolar) {
|
|
89947
|
-
|
|
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);
|
|
89948
90015
|
}
|
|
89949
90016
|
el.useStyle(style);
|
|
89950
90017
|
var cursorStyle = itemModel.getShallow("cursor");
|
|
@@ -90683,23 +90750,6 @@ function pieLabelLayout(seriesModel) {
|
|
|
90683
90750
|
}
|
|
90684
90751
|
}
|
|
90685
90752
|
}
|
|
90686
|
-
function getSectorCornerRadius(model2, shape, zeroIfNull) {
|
|
90687
|
-
var cornerRadius = model2.get("borderRadius");
|
|
90688
|
-
if (cornerRadius == null) {
|
|
90689
|
-
return zeroIfNull ? {
|
|
90690
|
-
cornerRadius: 0
|
|
90691
|
-
} : null;
|
|
90692
|
-
}
|
|
90693
|
-
if (!isArray$1(cornerRadius)) {
|
|
90694
|
-
cornerRadius = [cornerRadius, cornerRadius, cornerRadius, cornerRadius];
|
|
90695
|
-
}
|
|
90696
|
-
var dr = Math.abs(shape.r || 0 - shape.r0 || 0);
|
|
90697
|
-
return {
|
|
90698
|
-
cornerRadius: map$1(cornerRadius, function(cr) {
|
|
90699
|
-
return parsePercent$1(cr, dr);
|
|
90700
|
-
})
|
|
90701
|
-
};
|
|
90702
|
-
}
|
|
90703
90753
|
var PiePiece = function(_super) {
|
|
90704
90754
|
__extends(PiePiece2, _super);
|
|
90705
90755
|
function PiePiece2(data2, idx, startAngle) {
|
|
@@ -109340,7 +109390,7 @@ var SunburstPiece = function(_super) {
|
|
|
109340
109390
|
if (firstCreate) {
|
|
109341
109391
|
sector.setShape(sectorShape);
|
|
109342
109392
|
sector.shape.r = layout2.r0;
|
|
109343
|
-
|
|
109393
|
+
initProps(sector, {
|
|
109344
109394
|
shape: {
|
|
109345
109395
|
r: layout2.r
|
|
109346
109396
|
}
|
|
@@ -109432,8 +109482,8 @@ var SunburstPiece = function(_super) {
|
|
|
109432
109482
|
var rotateType = getLabelAttr(labelStateModel, "rotate");
|
|
109433
109483
|
var rotate2 = 0;
|
|
109434
109484
|
if (rotateType === "radial") {
|
|
109435
|
-
rotate2 = -midAngle;
|
|
109436
|
-
if (rotate2
|
|
109485
|
+
rotate2 = normalizeRadian(-midAngle);
|
|
109486
|
+
if (rotate2 > Math.PI / 2 && rotate2 < Math.PI * 1.5) {
|
|
109437
109487
|
rotate2 += Math.PI;
|
|
109438
109488
|
}
|
|
109439
109489
|
} else if (rotateType === "tangential") {
|
|
@@ -117362,6 +117412,7 @@ var TooltipHTMLContent = function() {
|
|
|
117362
117412
|
this._show = false;
|
|
117363
117413
|
this._styleCoord = [0, 0, 0, 0];
|
|
117364
117414
|
this._enterable = true;
|
|
117415
|
+
this._alwaysShowContent = false;
|
|
117365
117416
|
this._firstShow = true;
|
|
117366
117417
|
this._longHide = true;
|
|
117367
117418
|
if (env$1.wxa) {
|
|
@@ -117414,6 +117465,7 @@ var TooltipHTMLContent = function() {
|
|
|
117414
117465
|
}
|
|
117415
117466
|
var alwaysShowContent = tooltipModel.get("alwaysShowContent");
|
|
117416
117467
|
alwaysShowContent && this._moveIfResized();
|
|
117468
|
+
this._alwaysShowContent = alwaysShowContent;
|
|
117417
117469
|
this.el.className = tooltipModel.get("className") || "";
|
|
117418
117470
|
};
|
|
117419
117471
|
TooltipHTMLContent2.prototype.show = function(tooltipModel, nearPointColor) {
|
|
@@ -117495,7 +117547,7 @@ var TooltipHTMLContent = function() {
|
|
|
117495
117547
|
}, 500);
|
|
117496
117548
|
};
|
|
117497
117549
|
TooltipHTMLContent2.prototype.hideLater = function(time2) {
|
|
117498
|
-
if (this._show && !(this._inContent && this._enterable)) {
|
|
117550
|
+
if (this._show && !(this._inContent && this._enterable) && !this._alwaysShowContent) {
|
|
117499
117551
|
if (time2) {
|
|
117500
117552
|
this._hideDelay = time2;
|
|
117501
117553
|
this._show = false;
|
|
@@ -117518,6 +117570,7 @@ var TooltipRichContent = function() {
|
|
|
117518
117570
|
function TooltipRichContent2(api2) {
|
|
117519
117571
|
this._show = false;
|
|
117520
117572
|
this._styleCoord = [0, 0, 0, 0];
|
|
117573
|
+
this._alwaysShowContent = false;
|
|
117521
117574
|
this._enterable = true;
|
|
117522
117575
|
this._zr = api2.getZr();
|
|
117523
117576
|
makeStyleCoord(this._styleCoord, this._zr, api2.getWidth() / 2, api2.getHeight() / 2);
|
|
@@ -117525,6 +117578,7 @@ var TooltipRichContent = function() {
|
|
|
117525
117578
|
TooltipRichContent2.prototype.update = function(tooltipModel) {
|
|
117526
117579
|
var alwaysShowContent = tooltipModel.get("alwaysShowContent");
|
|
117527
117580
|
alwaysShowContent && this._moveIfResized();
|
|
117581
|
+
this._alwaysShowContent = alwaysShowContent;
|
|
117528
117582
|
};
|
|
117529
117583
|
TooltipRichContent2.prototype.show = function() {
|
|
117530
117584
|
if (this._hideTimeout) {
|
|
@@ -117617,7 +117671,7 @@ var TooltipRichContent = function() {
|
|
|
117617
117671
|
this._show = false;
|
|
117618
117672
|
};
|
|
117619
117673
|
TooltipRichContent2.prototype.hideLater = function(time2) {
|
|
117620
|
-
if (this._show && !(this._inContent && this._enterable)) {
|
|
117674
|
+
if (this._show && !(this._inContent && this._enterable) && !this._alwaysShowContent) {
|
|
117621
117675
|
if (time2) {
|
|
117622
117676
|
this._hideDelay = time2;
|
|
117623
117677
|
this._show = false;
|
|
@@ -117689,7 +117743,6 @@ var TooltipView = function(_super) {
|
|
|
117689
117743
|
this._tooltipModel = tooltipModel;
|
|
117690
117744
|
this._ecModel = ecModel;
|
|
117691
117745
|
this._api = api2;
|
|
117692
|
-
this._alwaysShowContent = tooltipModel.get("alwaysShowContent");
|
|
117693
117746
|
var tooltipContent = this._tooltipContent;
|
|
117694
117747
|
tooltipContent.update(tooltipModel);
|
|
117695
117748
|
tooltipContent.setEnterable(tooltipModel.get("enterable"));
|
|
@@ -117803,7 +117856,7 @@ var TooltipView = function(_super) {
|
|
|
117803
117856
|
};
|
|
117804
117857
|
TooltipView2.prototype.manuallyHideTip = function(tooltipModel, ecModel, api2, payload) {
|
|
117805
117858
|
var tooltipContent = this._tooltipContent;
|
|
117806
|
-
if (
|
|
117859
|
+
if (this._tooltipModel) {
|
|
117807
117860
|
tooltipContent.hideLater(this._tooltipModel.get("hideDelay"));
|
|
117808
117861
|
}
|
|
117809
117862
|
this._lastX = this._lastY = this._lastDataByCoordSys = null;
|
|
@@ -120191,8 +120244,8 @@ function dataTransform(seriesModel, item) {
|
|
|
120191
120244
|
}
|
|
120192
120245
|
var data2 = seriesModel.getData();
|
|
120193
120246
|
var coordSys = seriesModel.coordinateSystem;
|
|
120194
|
-
var dims = coordSys.dimensions;
|
|
120195
|
-
if (!hasXAndY(item) && !isArray$1(item.coord) &&
|
|
120247
|
+
var dims = coordSys && coordSys.dimensions;
|
|
120248
|
+
if (!hasXAndY(item) && !isArray$1(item.coord) && isArray$1(dims)) {
|
|
120196
120249
|
var axisInfo = getAxisInfo(item, data2, coordSys, seriesModel);
|
|
120197
120250
|
item = clone$4(item);
|
|
120198
120251
|
if (item.type && markerTypeCalculator[item.type] && axisInfo.baseAxis && axisInfo.valueAxis) {
|
|
@@ -120205,7 +120258,7 @@ function dataTransform(seriesModel, item) {
|
|
|
120205
120258
|
item.coord = [item.xAxis != null ? item.xAxis : item.radiusAxis, item.yAxis != null ? item.yAxis : item.angleAxis];
|
|
120206
120259
|
}
|
|
120207
120260
|
}
|
|
120208
|
-
if (item.coord == null) {
|
|
120261
|
+
if (item.coord == null || !isArray$1(dims)) {
|
|
120209
120262
|
item.coord = [];
|
|
120210
120263
|
} else {
|
|
120211
120264
|
var coord = item.coord;
|