feat(sj_1.1.0): NamespaceSelect 添加 tooltip
This commit is contained in:
parent
6f705d9bb6
commit
3e1e147979
@ -6,6 +6,10 @@ import { localStg } from '@/utils/storage';
|
|||||||
import { useAppStore } from '@/store/modules/app';
|
import { useAppStore } from '@/store/modules/app';
|
||||||
import { useAuthStore } from '@/store/modules/auth';
|
import { useAuthStore } from '@/store/modules/auth';
|
||||||
|
|
||||||
|
defineOptions({
|
||||||
|
name: 'NamespaceSelect'
|
||||||
|
});
|
||||||
|
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const appStore = useAppStore();
|
const appStore = useAppStore();
|
||||||
const authStore = useAuthStore();
|
const authStore = useAuthStore();
|
||||||
@ -37,13 +41,19 @@ const onChange = (value: string) => {
|
|||||||
</ButtonIcon>
|
</ButtonIcon>
|
||||||
</div>
|
</div>
|
||||||
</NDropdown>
|
</NDropdown>
|
||||||
<NSelect
|
<template v-else>
|
||||||
v-else
|
<NTooltip trigger="hover">
|
||||||
v-model:value="namespaceId"
|
<template #trigger>
|
||||||
class="namespace-select"
|
<NSelect
|
||||||
:options="selectOptions"
|
v-model:value="namespaceId"
|
||||||
@update:value="onChange"
|
class="namespace-select"
|
||||||
/>
|
:options="selectOptions"
|
||||||
|
@update:value="onChange"
|
||||||
|
/>
|
||||||
|
</template>
|
||||||
|
{{ $t('icon.namespace') }}
|
||||||
|
</NTooltip>
|
||||||
|
</template>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
@ -911,7 +911,7 @@ const local: App.I18n.Schema = {
|
|||||||
expand: '展开菜单',
|
expand: '展开菜单',
|
||||||
pin: '固定',
|
pin: '固定',
|
||||||
unpin: '取消固定',
|
unpin: '取消固定',
|
||||||
namespace: '切换空间'
|
namespace: '切换命名空间'
|
||||||
},
|
},
|
||||||
datatable: {
|
datatable: {
|
||||||
itemCount: '共 {total} 条'
|
itemCount: '共 {total} 条'
|
||||||
|
Loading…
Reference in New Issue
Block a user