mirror of
https://ghfast.top/https://github.com/zsjy/halo-theme-dream2.0-plus.git
synced 2025-03-16 00:49:40 +08:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
8bfd5de86a
@ -147,3 +147,23 @@ spec:
|
|||||||
label: 关闭
|
label: 关闭
|
||||||
- value: ""
|
- value: ""
|
||||||
label: 跟随默认配置
|
label: 跟随默认配置
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
apiVersion: v1alpha1
|
||||||
|
kind: AnnotationSetting
|
||||||
|
metadata:
|
||||||
|
generateName: annotation-setting-
|
||||||
|
spec:
|
||||||
|
targetRef:
|
||||||
|
group: ""
|
||||||
|
kind: MenuItem
|
||||||
|
formSchema:
|
||||||
|
- $formkit: "text"
|
||||||
|
name: "icon"
|
||||||
|
label: "图标"
|
||||||
|
placeholder: '请输入菜单图标,支持Remix V3.5.0'
|
||||||
|
- $formkit: "text"
|
||||||
|
name: "desc"
|
||||||
|
label: "描述"
|
||||||
|
placeholder: '请输入鼠标悬停时描述内容,默认为菜单名'
|
||||||
|
@ -15,7 +15,8 @@
|
|||||||
class="item"
|
class="item"
|
||||||
th:href="${menuItem.status.href}"
|
th:href="${menuItem.status.href}"
|
||||||
th:target="${menuItem.spec.target?.value}"
|
th:target="${menuItem.spec.target?.value}"
|
||||||
th:title="${#annotations.getOrDefault(menuItem, 'desc', menuItem.status.displayName)}">
|
th:with="desc = ${#annotations.getOrDefault(menuItem, 'desc', menuItem.status.displayName)}"
|
||||||
|
th:title="${#strings.isEmpty(desc) ? menuItem.status.displayName : desc}">
|
||||||
<i th:if="${!#strings.isEmpty(#annotations.getOrDefault(menuItem, 'icon', ''))}"
|
<i th:if="${!#strings.isEmpty(#annotations.getOrDefault(menuItem, 'icon', ''))}"
|
||||||
th:class="${'m-icon ' + #annotations.getOrDefault(menuItem, 'icon', '')}"></i>
|
th:class="${'m-icon ' + #annotations.getOrDefault(menuItem, 'icon', '')}"></i>
|
||||||
[[${menuItem.status.displayName}]]
|
[[${menuItem.status.displayName}]]
|
||||||
@ -25,7 +26,8 @@
|
|||||||
<a class="item"
|
<a class="item"
|
||||||
th:href="${#strings.defaultString(menuItem.status.href, 'javascript:')}"
|
th:href="${#strings.defaultString(menuItem.status.href, 'javascript:')}"
|
||||||
th:target="${menuItem.spec.target?.value}"
|
th:target="${menuItem.spec.target?.value}"
|
||||||
th:title="${#annotations.getOrDefault(menuItem, 'desc', menuItem.status.displayName)}">
|
th:with="desc = ${#annotations.getOrDefault(menuItem, 'desc', menuItem.status.displayName)}"
|
||||||
|
th:title="${#strings.isEmpty(desc) ? menuItem.status.displayName : desc}">
|
||||||
<i th:if="${!#strings.isEmpty(#annotations.getOrDefault(menuItem, 'icon', ''))}"
|
<i th:if="${!#strings.isEmpty(#annotations.getOrDefault(menuItem, 'icon', ''))}"
|
||||||
th:class="${'m-icon ' + #annotations.getOrDefault(menuItem, 'icon', '')}"></i>
|
th:class="${'m-icon ' + #annotations.getOrDefault(menuItem, 'icon', '')}"></i>
|
||||||
[[${menuItem.status.displayName}]]
|
[[${menuItem.status.displayName}]]
|
||||||
@ -37,7 +39,8 @@
|
|||||||
<a class="item"
|
<a class="item"
|
||||||
th:href="${#strings.defaultString(dropdown.status.href, 'javascript:')}"
|
th:href="${#strings.defaultString(dropdown.status.href, 'javascript:')}"
|
||||||
th:target="${dropdown.spec.target?.value}"
|
th:target="${dropdown.spec.target?.value}"
|
||||||
th:title="${#annotations.getOrDefault(dropdown, 'desc', dropdown.status.displayName)}">
|
th:with="desc = ${#annotations.getOrDefault(dropdown, 'desc', dropdown.status.displayName)}"
|
||||||
|
th:title="${#strings.isEmpty(desc) ? dropdown.status.displayName : desc}">
|
||||||
<i th:if="${!#strings.isEmpty(#annotations.getOrDefault(dropdown, 'icon', ''))}"
|
<i th:if="${!#strings.isEmpty(#annotations.getOrDefault(dropdown, 'icon', ''))}"
|
||||||
th:class="${'m-icon ' + #annotations.getOrDefault(dropdown, 'icon', '')}"></i>
|
th:class="${'m-icon ' + #annotations.getOrDefault(dropdown, 'icon', '')}"></i>
|
||||||
[[${dropdown.status.displayName}]]
|
[[${dropdown.status.displayName}]]
|
||||||
@ -47,7 +50,8 @@
|
|||||||
<a class="item"
|
<a class="item"
|
||||||
th:href="${dropdownChild.status.href}"
|
th:href="${dropdownChild.status.href}"
|
||||||
th:target="${dropdownChild.spec.target?.value}"
|
th:target="${dropdownChild.spec.target?.value}"
|
||||||
th:title="${#annotations.getOrDefault(dropdownChild, 'desc', dropdownChild.status.displayName)}">
|
th:with="desc = ${#annotations.getOrDefault(dropdownChild, 'desc', dropdownChild.status.displayName)}"
|
||||||
|
th:title="${#strings.isEmpty(desc) ? dropdownChild.status.displayName : desc}">
|
||||||
<i th:if="${!#strings.isEmpty(#annotations.getOrDefault(dropdownChild, 'icon', ''))}"
|
<i th:if="${!#strings.isEmpty(#annotations.getOrDefault(dropdownChild, 'icon', ''))}"
|
||||||
th:class="${'m-icon ' + #annotations.getOrDefault(dropdownChild, 'icon', '')}"></i>
|
th:class="${'m-icon ' + #annotations.getOrDefault(dropdownChild, 'icon', '')}"></i>
|
||||||
[[${dropdownChild.status.displayName}]]
|
[[${dropdownChild.status.displayName}]]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user