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