Skip to content

Commit 5abca73

Browse files
authored
feat: upgrade tdesign version (#158)
* feat: upgrade tdesign vue * chore: rename component * chore: 0.4.0
1 parent 2e0b6a6 commit 5abca73

File tree

7 files changed

+22
-21
lines changed

7 files changed

+22
-21
lines changed

.vscode/settings.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
"eslint.validate": ["javascript", "javascriptvue", "typescript", "typescriptreact"],
33
"editor.codeActionsOnSave": {
44
"source.fixAll.eslint": true
5-
}
5+
},
6+
"cSpell.words": ["tdesign", "tvision", "echarts", "nprogress", "commitlint", "stylelint", "vuex", "qrcode"]
67
}

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tdesign-vue-starter",
3-
"version": "0.3.1",
3+
"version": "0.4.0",
44
"scripts": {
55
"dev:mock": "vite --open --mode mock",
66
"dev": "vite --open --mode development",
@@ -24,7 +24,7 @@
2424
"nprogress": "^0.2.0",
2525
"qrcode.vue": "^1.7.0",
2626
"tdesign-icons-vue": "^0.1.0",
27-
"tdesign-vue": "^0.43.0",
27+
"tdesign-vue": "^0.45.0",
2828
"tvision-color": "~1.4.0",
2929
"typescript": "^4.2.4",
3030
"vue": "~2.6.11",

src/layouts/components/LayoutContent.vue

+9-9
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@
5353
</t-tab-panel>
5454
</t-tabs>
5555
<t-content :class="`${prefix}-content-layout`">
56-
<l-breadcrumb v-if="setting.showBreadcrumb" />
57-
<l-content />
56+
<layout-breadcrumb v-if="setting.showBreadcrumb" />
57+
<common-content />
5858
</t-content>
5959
<t-footer v-if="showFooter" :class="`${prefix}-footer-layout`">
60-
<l-footer />
60+
<layout-footer />
6161
</t-footer>
6262
</t-layout>
6363
</template>
@@ -67,19 +67,19 @@ import Vue from 'vue';
6767
import { mapGetters } from 'vuex';
6868
import { RefreshIcon, ArrowLeftIcon, ArrowRightIcon, HomeIcon, CloseCircleIcon } from 'tdesign-icons-vue';
6969
70-
import LContent from './Content.vue';
71-
import LBreadcrumb from './Breadcrumb.vue';
72-
import LFooter from './Footer.vue';
70+
import CommonContent from './Content.vue';
71+
import LayoutBreadcrumb from './Breadcrumb.vue';
72+
import LayoutFooter from './Footer.vue';
7373
7474
import { prefix } from '@/config/global';
7575
import { SettingType } from '@/interface';
7676
7777
export default Vue.extend({
7878
name: 'LayoutContent',
7979
components: {
80-
LContent,
81-
LFooter,
82-
LBreadcrumb,
80+
CommonContent,
81+
LayoutFooter,
82+
LayoutBreadcrumb,
8383
RefreshIcon,
8484
ArrowLeftIcon,
8585
ArrowRightIcon,

src/layouts/components/LayoutHeader.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<l-header
2+
<common-header
33
v-if="showHeader"
44
:showLogo="showHeaderLogo"
55
:theme="mode"
@@ -14,14 +14,14 @@
1414
<script lang="ts">
1515
import Vue from 'vue';
1616
import { mapGetters } from 'vuex';
17-
import LHeader from './Header.vue';
17+
import CommonHeader from './Header.vue';
1818
1919
import { SettingType } from '@/interface';
2020
2121
export default Vue.extend({
2222
name: 'LayoutHeader',
2323
components: {
24-
LHeader,
24+
CommonHeader,
2525
},
2626
computed: {
2727
...mapGetters({

src/layouts/components/LayoutSidebar.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<l-side-nav
2+
<side-nav
33
v-if="showSidebar"
44
:showLogo="showSidebarLogo"
55
:layout="setting.layout"
@@ -14,14 +14,14 @@
1414
<script lang="ts">
1515
import Vue from 'vue';
1616
import { mapGetters } from 'vuex';
17-
import LSideNav from './SideNav.vue';
17+
import SideNav from './SideNav.vue';
1818
1919
import { SettingType } from '@/interface';
2020
2121
export default Vue.extend({
2222
name: 'LayoutSidebar',
2323
components: {
24-
LSideNav,
24+
SideNav,
2525
},
2626
computed: {
2727
...mapGetters({

src/pages/dashboard/detail/index.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<t-card :class="{ 'dashboard-detail-card': true }" title="采购商品申请趋势" subtitle="(件)">
2222
<template #actions>
2323
<t-date-range-picker
24-
style="width: 240px"
24+
style="width: 250px"
2525
:default-value="LAST_7_DAYS"
2626
theme="primary"
2727
mode="date"
@@ -43,7 +43,7 @@
4343
<t-card :class="{ 'dashboard-detail-card': true }" title="采购商品满意度分布" class="row-margin">
4444
<template #actions>
4545
<t-date-range-picker
46-
style="display: inline-block; margin-right: 8px; width: 240px"
46+
style="display: inline-block; margin-right: 8px; width: 250px"
4747
:defaultValue="LAST_7_DAYS"
4848
theme="primary"
4949
mode="date"

src/style/reset.less

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,5 +75,5 @@ a {
7575
}
7676

7777
.card-date-picker-container {
78-
width: 240px;
78+
width: 250px;
7979
}

0 commit comments

Comments
 (0)