perf:优化菜单栏鼠标悬停时显示信息 (#90)

* perf:优化菜单栏鼠标悬停时显示信息

* perf:优化菜单栏鼠标悬停时显示信息

* perf:优化菜单栏鼠标悬停时显示信息
This commit is contained in:
mjking 2024-01-05 15:26:11 +08:00 committed by GitHub
parent 9efb72c8bb
commit 994793c967
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,7 @@
class="item"
th:href="${menuItem.status.href}"
th:target="${menuItem.spec.target?.value}"
th:title="${menuItem.status.displayName}">
th:title="${#annotations.getOrDefault(menuItem, 'desc', menuItem.status.displayName)}">
<i th:if="${!#strings.isEmpty(#annotations.getOrDefault(menuItem, 'icon', ''))}"
th:class="${'m-icon ' + #annotations.getOrDefault(menuItem, 'icon', '')}"></i>
[[${menuItem.status.displayName}]]
@ -25,7 +25,7 @@
<a class="item"
th:href="${#strings.defaultString(menuItem.status.href, 'javascript:')}"
th:target="${menuItem.spec.target?.value}"
th:title="${menuItem.status.displayName}">
th:title="${#annotations.getOrDefault(menuItem, 'desc', menuItem.status.displayName)}">
<i th:if="${!#strings.isEmpty(#annotations.getOrDefault(menuItem, 'icon', ''))}"
th:class="${'m-icon ' + #annotations.getOrDefault(menuItem, 'icon', '')}"></i>
[[${menuItem.status.displayName}]]
@ -37,7 +37,7 @@
<a class="item"
th:href="${#strings.defaultString(dropdown.status.href, 'javascript:')}"
th:target="${dropdown.spec.target?.value}"
th:title="${dropdown.status.displayName}">
th:title="${#annotations.getOrDefault(dropdown, 'desc', dropdown.status.displayName)}">
<i th:if="${!#strings.isEmpty(#annotations.getOrDefault(dropdown, 'icon', ''))}"
th:class="${'m-icon ' + #annotations.getOrDefault(dropdown, 'icon', '')}"></i>
[[${dropdown.status.displayName}]]
@ -47,7 +47,7 @@
<a class="item"
th:href="${dropdownChild.status.href}"
th:target="${dropdownChild.spec.target?.value}"
th:title="${dropdownChild.status.displayName}">
th:title="${#annotations.getOrDefault(dropdownChild, 'desc', dropdownChild.status.displayName)}">
<i th:if="${!#strings.isEmpty(#annotations.getOrDefault(dropdownChild, 'icon', ''))}"
th:class="${'m-icon ' + #annotations.getOrDefault(dropdownChild, 'icon', '')}"></i>
[[${dropdownChild.status.displayName}]]