Skip to content

Commit ca833e7

Browse files
authored
fix(site): fixed side navigation text description error (#836)
* fix(site): fixed side navigation text description error * test: update snapshots * fix: fix demos * chore: update _common * fix(changelog-plugin): site build failed, skip not running
1 parent d4a4a78 commit ca833e7

File tree

18 files changed

+351
-353
lines changed

18 files changed

+351
-353
lines changed

site/docs/overview.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ spline: explain
105105
<a class="item" href="./components/tab-bar">
106106
<img class="__light__" src="https://tdesign.gtimg.com/site/mobile/doc-tabbar.png" />
107107
<img class="__dark__" src="https://tdesign.gtimg.com/site/mobile/doc-tabbar-dark.png" />
108-
<p class="name">TabBar 标签栏</p>
108+
<p class="name">TabBar 底部标签栏</p>
109109
</a>
110110
</div>
111111
<div class="image-wrapper">
@@ -228,7 +228,7 @@ spline: explain
228228
<a class="item" href="./components/tree-select">
229229
<img class="__light__" src="https://tdesign.gtimg.com/site/mobile/doc-treeselect.png" />
230230
<img class="__dark__" src="https://tdesign.gtimg.com/site/mobile/doc-treeselect-dark.png" />
231-
<p class="name">TreeSelect 树形选择</p>
231+
<p class="name">TreeSelect 树形选择器</p>
232232
</a>
233233
</div>
234234
<div class="image-wrapper">
@@ -351,7 +351,7 @@ spline: explain
351351
<a class="item" href="./components/sticky">
352352
<img class="__light__" src="https://tdesign.gtimg.com/site/mobile/doc-sticky.png" />
353353
<img class="__dark__" src="https://tdesign.gtimg.com/site/mobile/doc-sticky-dark.png" />
354-
<p class="name">Sticky 吸顶</p>
354+
<p class="name">Sticky 吸顶容器</p>
355355
</a>
356356
</div>
357357
<div class="image-wrapper">

site/mobile/mobile.config.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ export default {
149149
title: 'Cell 单元格',
150150
titleEn: 'Cell',
151151
name: 'cell',
152-
component: () => import('tdesign-mobile-react/cell/_example/base.tsx'),
152+
component: () => import('tdesign-mobile-react/cell/_example/index.tsx'),
153153
},
154154
{
155155
title: 'Upload 上传',
@@ -165,7 +165,7 @@ export default {
165165
component: () => import('tdesign-mobile-react/skeleton/_example/index.tsx'),
166166
},
167167
{
168-
title: 'Sticky 吸顶',
168+
title: 'Sticky 吸顶容器',
169169
titleEn: 'Sticky',
170170
name: 'sticky',
171171
component: () => import('tdesign-mobile-react/sticky/_example/index.tsx'),
@@ -249,7 +249,7 @@ export default {
249249
component: () => import('tdesign-mobile-react/side-bar/_example/custom.tsx'),
250250
},
251251
{
252-
title: 'SwipeCell 滑动单元格',
252+
title: 'SwipeCell 滑动操作',
253253
titleEn: 'SwipeCell',
254254
name: 'swipe-cell',
255255
component: () => import('tdesign-mobile-react/swipe-cell/_example/index.tsx'),
@@ -321,7 +321,7 @@ export default {
321321
component: () => import('tdesign-mobile-react/steps/_example/index.tsx'),
322322
},
323323
{
324-
title: 'TabBar 标签栏',
324+
title: 'TabBar 底部标签栏',
325325
titleEn: 'TabBar',
326326
name: 'tab-bar',
327327
component: () => import('tdesign-mobile-react/tab-bar/_example/mobile.tsx'),
@@ -363,7 +363,7 @@ export default {
363363
component: () => import('tdesign-mobile-react/table/_example/index.tsx'),
364364
},
365365
{
366-
title: 'TreeSelect 树形选择',
366+
title: 'TreeSelect 树形选择器',
367367
titleEn: 'TreeSelect',
368368
name: 'tree-select',
369369
component: () => import('tdesign-mobile-react/tree-select/_example/index.tsx'),

site/web/plugins/changelog-to-json/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ export default function changelog2Json() {
2121
res.end(JSON.stringify(json));
2222
});
2323
},
24-
async closeBundle() {
24+
async closeBundle(error) {
25+
if (error) return;
2526
// 生产构建时写入物理文件
2627
if (config.env.PROD || config.env.MODE === 'preview') {
2728
const json = await generateChangelogJson(changelogPath, 'mobile');

site/web/site.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ export const docs = [
161161
},
162162

163163
{
164-
title: 'TabBar 标签栏',
164+
title: 'TabBar 底部标签栏',
165165
titleEn: 'TabBar',
166166
name: 'tab-bar',
167167
path: '/mobile-react/components/tab-bar',
@@ -305,7 +305,7 @@ export const docs = [
305305
componentEn: () => import('tdesign-mobile-react/textarea/textarea.en-US.md'),
306306
},
307307
{
308-
title: 'TreeSelect 树形选择',
308+
title: 'TreeSelect 树形选择器',
309309
titleEn: 'TreeSelect',
310310
name: 'tree-select',
311311
path: '/mobile-react/components/tree-select',
@@ -448,7 +448,7 @@ export const docs = [
448448
componentEn: () => import('tdesign-mobile-react/skeleton/skeleton.en-US.md'),
449449
},
450450
{
451-
title: 'Sticky 吸顶',
451+
title: 'Sticky 吸顶容器',
452452
titleEn: 'Sticky',
453453
name: 'sticky',
454454
path: '/mobile-react/components/sticky',

src/_common

Submodule _common updated 130 files
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@ import Group from './group';
1010
export default function Base() {
1111
return (
1212
<div className="tdesign-mobile-demo">
13-
<TDemoHeader
14-
title="Cell 单元格"
15-
summary="一行内容/功能的垂直排列方式。一行项目左侧为主要内容展示区域,右侧可增加更多操作内容"
16-
/>
13+
<TDemoHeader title="Cell 单元格" summary="用于各个类别行的信息展示。" />
1714
<TDemoBlock title="01 类型" summary="单行单元格">
1815
<Single />
1916
</TDemoBlock>

src/footer/_example/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import './style/index.less';
1010
export default function FooterDemo() {
1111
return (
1212
<div className="tdesign-mobile-demo">
13-
<TDemoHeader title="Footer 页脚" summary="用于开启一个闭环的操作任务,如“删除”对象、“购买”商品等。" />
13+
<TDemoHeader title="Footer 页脚" summary="用于展示网站的版权声明、联系信息、重要页面链接和其他相关内容等信息。" />
1414
<TDemoBlock summary="基础页脚">
1515
<BaseDemo />
1616
</TDemoBlock>

src/form/_example/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ export default function FormDemo() {
2424
};
2525
return (
2626
<div className="tdesign-mobile-demo">
27-
<TDemoHeader title="Form 表单" summary="用于开启一个闭环的操作任务,如“删除”对象、“购买”商品等。" />
27+
<TDemoHeader
28+
title="Form 表单"
29+
summary="用以收集、校验和提交数据,一般由输入框、单选框、复选框、选择器等控件组成。"
30+
/>
2831
<TDemoBlock title="01 基础类型" summary="基础表单">
2932
<div className="options">
3033
<div className="button-group">

src/image-viewer/_example/index.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@ import './style/index.less';
99
export default function ImageViewerDemo() {
1010
return (
1111
<div className="tdesign-mobile-demo">
12-
<TDemoHeader
13-
title="ImageViewer 图片预览"
14-
summary="图片全屏放大预览效果,包含全屏背景色、页码位置样式、增加操作等规范"
15-
/>
12+
<TDemoHeader title="ImageViewer 图片预览" summary="用于图片内容的缩略展示与查看。" />
1613
<TDemoBlock title="01 组件类型" summary="图片预览类型" padding={true}>
1714
<BaseDemo />
1815
</TDemoBlock>

src/result/_example/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default function ResultDemo() {
1212
<>
1313
{!showResultPage ? (
1414
<div className="tdesign-mobile-demo">
15-
<TDemoHeader title="Result 结果" summary="结果反馈" />
15+
<TDemoHeader title="Result 结果" summary="用于反馈不同结果的展示。" />
1616
<TDemoBlock title="01类型" summary="不同结果反馈">
1717
<ThemeResult />
1818
</TDemoBlock>

0 commit comments

Comments
 (0)