mirror of
https://github.com/chatopera/cosin.git
synced 2025-08-01 16:38:02 +08:00
fix: nest menus error
Signed-off-by: Kaifuny <superbiger.github@gmail.com>
This commit is contained in:
parent
ba7447fa32
commit
01f995ba8f
@ -19,7 +19,7 @@ import { NTabs, NTab } from 'naive-ui'
|
|||||||
<n-tab :name="ROUTE_NAME.SYSTEM_AUTHENTICATOR_METHODS_INDEX">
|
<n-tab :name="ROUTE_NAME.SYSTEM_AUTHENTICATOR_METHODS_INDEX">
|
||||||
登录提供方
|
登录提供方
|
||||||
</n-tab>
|
</n-tab>
|
||||||
<n-tab :name="ROUTE_NAME.SYSTEM_AUTHENTICATOR_TEMPLATE_INDEX">
|
<n-tab :name="ROUTE_NAME.SYSTEM_AUTHENTICATOR_TEMPLATE_INDEX" disabled>
|
||||||
模板
|
模板
|
||||||
</n-tab>
|
</n-tab>
|
||||||
<n-tab :name="ROUTE_NAME.SYSTEM_AUTHENTICATOR_SETTING_INDEX">
|
<n-tab :name="ROUTE_NAME.SYSTEM_AUTHENTICATOR_SETTING_INDEX">
|
||||||
|
@ -1,3 +1,31 @@
|
|||||||
|
<script setup lang="ts">
|
||||||
|
import { NButton, NDivider } from 'naive-ui'
|
||||||
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<div>methods</div>
|
<div class="pt-2 flex flex-col">
|
||||||
|
<span class="text-gray-500">原生</span>
|
||||||
|
<n-button>用户名(默认)</n-button>
|
||||||
|
<n-button disabled>邮箱</n-button>
|
||||||
|
<n-button disabled>电话</n-button>
|
||||||
|
<span class="text-gray-500">其他</span>
|
||||||
|
<n-divider title-placement="left"> 国际 </n-divider>
|
||||||
|
<n-button disabled>MicroSoft</n-button>
|
||||||
|
<n-button disabled>Google</n-button>
|
||||||
|
<n-button disabled>Apple</n-button>
|
||||||
|
<n-button disabled>Facebook</n-button>
|
||||||
|
<n-button disabled>Twitter</n-button>
|
||||||
|
<n-button disabled>GitHub</n-button>
|
||||||
|
<n-button disabled>Steam</n-button>
|
||||||
|
<n-divider title-placement="left"> 国内 </n-divider>
|
||||||
|
<n-button disabled>微信</n-button>
|
||||||
|
<n-button disabled>微博</n-button>
|
||||||
|
<n-button disabled>QQ</n-button>
|
||||||
|
<n-button disabled>淘宝</n-button>
|
||||||
|
<n-button disabled>钉钉</n-button>
|
||||||
|
<n-button disabled>飞书</n-button>
|
||||||
|
<n-button disabled>企业微信</n-button>
|
||||||
|
<span class="text-gray-500">定制</span>
|
||||||
|
<n-button disabled>OpenID Connect</n-button>
|
||||||
|
<n-button disabled>SAML</n-button>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>template</div>
|
<div>
|
||||||
|
<span>原生</span>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -11,7 +11,7 @@ function renderIcon(icon?: Component) {
|
|||||||
export function routesToMenus(
|
export function routesToMenus(
|
||||||
routes: RouteRecordRaw[],
|
routes: RouteRecordRaw[],
|
||||||
isNotRoot?: boolean,
|
isNotRoot?: boolean,
|
||||||
deep?: boolean
|
deep: boolean = true
|
||||||
): MenuOption[] {
|
): MenuOption[] {
|
||||||
const result: MenuOption[] = []
|
const result: MenuOption[] = []
|
||||||
const array = isNotRoot ? routes : routes[0].children
|
const array = isNotRoot ? routes : routes[0].children
|
||||||
|
Loading…
x
Reference in New Issue
Block a user