docs: explain navigation, search and content components
This commit is contained in:
1 parent
2ff311005e
commit
179c6febf0
10 files changed
+34
No files matched your search
@@ -1,4 +1,5 @@
|
||||
<script>
|
||||
// 渲染后台配置的单个导航项:递归匹配子路由,并区分直接跳转与需要确认的外链。
|
||||
import "~/assets/styles/BackendNavEntry.Bx6IPica.css";
|
||||
import { toDisplayString } from "vue";
|
||||
import { renderList } from "vue";
|
||||
@@ -68,6 +69,7 @@ var T = {
|
||||
R = useRoute(),
|
||||
z = `configured-nav-${useId()}`,
|
||||
B = ref(null);
|
||||
// 按同级路径规则查找活动后代,使当前路由所在的分组默认展开。
|
||||
function V(e) {
|
||||
let t = e
|
||||
.filter((e) => e.to)
|
||||
@@ -97,6 +99,7 @@ var T = {
|
||||
),
|
||||
G = ref(!1),
|
||||
K;
|
||||
// 有确认标记的入口先保存跳转回调,用户确认后才执行导航或打开新窗口。
|
||||
function q(e, t) {
|
||||
if (!w.entry.confirm) {
|
||||
t && (e.preventDefault(), t());
|
||||
|
||||
Reference in new issue
Block a user