bnstooltips 1.4.11 → 1.5.0
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/build/index.es.js +4 -1
- package/build/index.es.js.map +1 -1
- package/build/index.js +4 -1
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -5482,12 +5482,15 @@ function ItemTooltip(_a) {
|
|
|
5482
5482
|
}
|
|
5483
5483
|
}, [jobstyleOverride]);
|
|
5484
5484
|
var item = data;
|
|
5485
|
+
var itemCategory = (_c = (_b = item.categories) === null || _b === void 0 ? void 0 : _b.sort(function (a, b) { return b.index - a.index; })[0].localizedName) !== null && _c !== void 0 ? _c : "";
|
|
5486
|
+
if (itemCategory == "none")
|
|
5487
|
+
itemCategory = "";
|
|
5485
5488
|
var tooltipBaseProps = {
|
|
5486
5489
|
title: item.name,
|
|
5487
5490
|
grade: item.grade,
|
|
5488
5491
|
id: item.id + "-" + item.level,
|
|
5489
5492
|
icon: item.icon ? BuildIconPath(item.icon.iconPath) : "",
|
|
5490
|
-
subtitle:
|
|
5493
|
+
subtitle: itemCategory,
|
|
5491
5494
|
mainInfos: [],
|
|
5492
5495
|
subInfoGroups: [],
|
|
5493
5496
|
fullHeight: fullHeight,
|