fix: 一些基本功能
This commit is contained in:
@@ -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