Merge branch 'develop' of github.com:Tencent/tdesign-vue-next-starter into main

This commit is contained in:
Uyarn 2023-01-12 17:28:58 +08:00
commit 26b0a1b350
5 changed files with 6 additions and 9 deletions

3
.env
View File

@ -1,3 +1,2 @@
VITE_SOME_KEY=123
# 打包路径 根据项目不同按需配置 # 打包路径 根据项目不同按需配置
VITE_BASE_URL = ./ VITE_BASE_URL = /

View File

@ -1,3 +1,2 @@
VITE_SOME_KEY=456
# 打包路径 # 打包路径
VITE_BASE_URL = ./ VITE_BASE_URL = /

View File

@ -1,3 +1,2 @@
VITE_SOME_KEY=123
# 打包路径 根据项目不同按需配置 # 打包路径 根据项目不同按需配置
VITE_BASE_URL = https://static.tdesign.tencent.com/starter/vue-next/ VITE_BASE_URL = https://static.tdesign.tencent.com/starter/vue-next/

View File

@ -1,6 +1,6 @@
<template> <template>
<div :class="layoutCls"> <div :class="layoutCls">
<t-head-menu :class="menuCls" :theme="theme" expand-type="popup" :value="active"> <t-head-menu :class="menuCls" :theme="menuTheme" expand-type="popup" :value="active">
<template #logo> <template #logo>
<span v-if="showLogo" class="header-logo-container" @click="handleNav('/dashboard/base')"> <span v-if="showLogo" class="header-logo-container" @click="handleNav('/dashboard/base')">
<logo-full class="t-logo" /> <logo-full class="t-logo" />
@ -80,7 +80,7 @@ import MenuContent from './MenuContent.vue';
const props = defineProps({ const props = defineProps({
theme: { theme: {
type: String, type: String,
default: '', default: 'light',
}, },
layout: { layout: {
type: String, type: String,
@ -132,7 +132,7 @@ const menuCls = computed(() => {
}, },
]; ];
}); });
const menuTheme = computed(() => props.theme as 'light' | 'dark');
const changeCollapsed = () => { const changeCollapsed = () => {
settingStore.updateConfig({ settingStore.updateConfig({
isSidebarCompact: !settingStore.isSidebarCompact, isSidebarCompact: !settingStore.isSidebarCompact,

View File

@ -24,7 +24,7 @@
<t-step-item title="申请提交" content="已于12月21日提交" /> <t-step-item title="申请提交" content="已于12月21日提交" />
<t-step-item title="电子发票" content="预计13个工作日" /> <t-step-item title="电子发票" content="预计13个工作日" />
<t-step-item title="发票已邮寄" content="电子发票开出后7个工作日联系" /> <t-step-item title="发票已邮寄" content="电子发票开出后7个工作日联系" />
<t-step-item title="完成" content /> <t-step-item title="完成" content="" />
</t-steps> </t-steps>
</t-row> </t-row>
</t-card> </t-card>