fix: 一些基本功能

This commit is contained in:
2025-03-07 08:18:45 +08:00
parent 638462295d
commit 4cdb8351d4
453 changed files with 13336 additions and 24197 deletions

View File

@@ -15,7 +15,7 @@ interface BasicUserInfo {
/**
* 用户昵称
*/
realName: string;
nick_name: string;
/**
* 用户角色
*/

View File

@@ -56,6 +56,8 @@ interface AppPreferences {
name: string;
/** 偏好设置按钮位置 */
preferencesButtonPosition: PreferencesButtonPositionType;
/** 版本信息 */
version: string;
/**
* @zh_CN 是否开启水印
*/

View File

@@ -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>