fix: 一些基本功能
This commit is contained in:
2
packages/@core/base/typings/src/basic.d.ts
vendored
2
packages/@core/base/typings/src/basic.d.ts
vendored
@@ -15,7 +15,7 @@ interface BasicUserInfo {
|
||||
/**
|
||||
* 用户昵称
|
||||
*/
|
||||
realName: string;
|
||||
nick_name: string;
|
||||
/**
|
||||
* 用户角色
|
||||
*/
|
||||
|
||||
@@ -56,6 +56,8 @@ interface AppPreferences {
|
||||
name: string;
|
||||
/** 偏好设置按钮位置 */
|
||||
preferencesButtonPosition: PreferencesButtonPositionType;
|
||||
/** 版本信息 */
|
||||
version: string;
|
||||
/**
|
||||
* @zh_CN 是否开启水印
|
||||
*/
|
||||
|
||||
@@ -26,6 +26,10 @@ interface Props {
|
||||
* @zh_CN Logo 主题
|
||||
*/
|
||||
theme?: string;
|
||||
/**
|
||||
* @zh_CN Vben 版本
|
||||
*/
|
||||
version?: string;
|
||||
}
|
||||
|
||||
defineOptions({
|
||||
@@ -56,10 +60,29 @@ withDefaults(defineProps<Props>(), {
|
||||
/>
|
||||
<span
|
||||
v-if="!collapsed"
|
||||
class="text-foreground truncate text-nowrap font-semibold"
|
||||
class="app-version text-foreground truncate text-nowrap font-semibold"
|
||||
>
|
||||
{{ text }}
|
||||
<b>
|
||||
<i>V {{ version }}</i>
|
||||
</b>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.app-version {
|
||||
background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
}
|
||||
|
||||
.dark {
|
||||
.app-version {
|
||||
background: linear-gradient(135deg, #cd853f 0%, #ff6347 100%);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user