Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions site/docs/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ spline: explain
<a class="item" href="./components/tab-bar">
<img class="__light__" src="https://tdesign.gtimg.com/site/mobile/doc-tabbar.png" />
<img class="__dark__" src="https://tdesign.gtimg.com/site/mobile/doc-tabbar-dark.png" />
<p class="name">TabBar 标签栏</p>
<p class="name">TabBar 底部标签栏</p>
</a>
</div>
<div class="image-wrapper">
Expand Down Expand Up @@ -228,7 +228,7 @@ spline: explain
<a class="item" href="./components/tree-select">
<img class="__light__" src="https://tdesign.gtimg.com/site/mobile/doc-treeselect.png" />
<img class="__dark__" src="https://tdesign.gtimg.com/site/mobile/doc-treeselect-dark.png" />
<p class="name">TreeSelect 树形选择</p>
<p class="name">TreeSelect 树形选择器</p>
</a>
</div>
<div class="image-wrapper">
Expand Down Expand Up @@ -351,7 +351,7 @@ spline: explain
<a class="item" href="./components/sticky">
<img class="__light__" src="https://tdesign.gtimg.com/site/mobile/doc-sticky.png" />
<img class="__dark__" src="https://tdesign.gtimg.com/site/mobile/doc-sticky-dark.png" />
<p class="name">Sticky 吸顶</p>
<p class="name">Sticky 吸顶容器</p>
</a>
</div>
<div class="image-wrapper">
Expand Down
10 changes: 5 additions & 5 deletions site/mobile/mobile.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export default {
title: 'Cell 单元格',
titleEn: 'Cell',
name: 'cell',
component: () => import('tdesign-mobile-react/cell/_example/base.tsx'),
component: () => import('tdesign-mobile-react/cell/_example/index.tsx'),
},
{
title: 'Upload 上传',
Expand All @@ -165,7 +165,7 @@ export default {
component: () => import('tdesign-mobile-react/skeleton/_example/index.tsx'),
},
{
title: 'Sticky 吸顶',
title: 'Sticky 吸顶容器',
titleEn: 'Sticky',
name: 'sticky',
component: () => import('tdesign-mobile-react/sticky/_example/index.tsx'),
Expand Down Expand Up @@ -249,7 +249,7 @@ export default {
component: () => import('tdesign-mobile-react/side-bar/_example/custom.tsx'),
},
{
title: 'SwipeCell 滑动单元格',
title: 'SwipeCell 滑动操作',
titleEn: 'SwipeCell',
name: 'swipe-cell',
component: () => import('tdesign-mobile-react/swipe-cell/_example/index.tsx'),
Expand Down Expand Up @@ -321,7 +321,7 @@ export default {
component: () => import('tdesign-mobile-react/steps/_example/index.tsx'),
},
{
title: 'TabBar 标签栏',
title: 'TabBar 底部标签栏',
titleEn: 'TabBar',
name: 'tab-bar',
component: () => import('tdesign-mobile-react/tab-bar/_example/mobile.tsx'),
Expand Down Expand Up @@ -363,7 +363,7 @@ export default {
component: () => import('tdesign-mobile-react/table/_example/index.tsx'),
},
{
title: 'TreeSelect 树形选择',
title: 'TreeSelect 树形选择器',
titleEn: 'TreeSelect',
name: 'tree-select',
component: () => import('tdesign-mobile-react/tree-select/_example/index.tsx'),
Expand Down
3 changes: 2 additions & 1 deletion site/web/plugins/changelog-to-json/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ export default function changelog2Json() {
res.end(JSON.stringify(json));
});
},
async closeBundle() {
async closeBundle(error) {
if (error) return;
// 生产构建时写入物理文件
if (config.env.PROD || config.env.MODE === 'preview') {
const json = await generateChangelogJson(changelogPath, 'mobile');
Expand Down
6 changes: 3 additions & 3 deletions site/web/site.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export const docs = [
},

{
title: 'TabBar 标签栏',
title: 'TabBar 底部标签栏',
titleEn: 'TabBar',
name: 'tab-bar',
path: '/mobile-react/components/tab-bar',
Expand Down Expand Up @@ -305,7 +305,7 @@ export const docs = [
componentEn: () => import('tdesign-mobile-react/textarea/textarea.en-US.md'),
},
{
title: 'TreeSelect 树形选择',
title: 'TreeSelect 树形选择器',
titleEn: 'TreeSelect',
name: 'tree-select',
path: '/mobile-react/components/tree-select',
Expand Down Expand Up @@ -448,7 +448,7 @@ export const docs = [
componentEn: () => import('tdesign-mobile-react/skeleton/skeleton.en-US.md'),
},
{
title: 'Sticky 吸顶',
title: 'Sticky 吸顶容器',
titleEn: 'Sticky',
name: 'sticky',
path: '/mobile-react/components/sticky',
Expand Down
2 changes: 1 addition & 1 deletion src/_common
Submodule _common updated 130 files
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ import Group from './group';
export default function Base() {
return (
<div className="tdesign-mobile-demo">
<TDemoHeader
title="Cell 单元格"
summary="一行内容/功能的垂直排列方式。一行项目左侧为主要内容展示区域,右侧可增加更多操作内容"
/>
<TDemoHeader title="Cell 单元格" summary="用于各个类别行的信息展示。" />
<TDemoBlock title="01 类型" summary="单行单元格">
<Single />
</TDemoBlock>
Expand Down
2 changes: 1 addition & 1 deletion src/footer/_example/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import './style/index.less';
export default function FooterDemo() {
return (
<div className="tdesign-mobile-demo">
<TDemoHeader title="Footer 页脚" summary="用于开启一个闭环的操作任务,如“删除”对象、“购买”商品等。" />
<TDemoHeader title="Footer 页脚" summary="用于展示网站的版权声明、联系信息、重要页面链接和其他相关内容等信息。" />
<TDemoBlock summary="基础页脚">
<BaseDemo />
</TDemoBlock>
Expand Down
5 changes: 4 additions & 1 deletion src/form/_example/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ export default function FormDemo() {
};
return (
<div className="tdesign-mobile-demo">
<TDemoHeader title="Form 表单" summary="用于开启一个闭环的操作任务,如“删除”对象、“购买”商品等。" />
<TDemoHeader
title="Form 表单"
summary="用以收集、校验和提交数据,一般由输入框、单选框、复选框、选择器等控件组成。"
/>
<TDemoBlock title="01 基础类型" summary="基础表单">
<div className="options">
<div className="button-group">
Expand Down
5 changes: 1 addition & 4 deletions src/image-viewer/_example/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ import './style/index.less';
export default function ImageViewerDemo() {
return (
<div className="tdesign-mobile-demo">
<TDemoHeader
title="ImageViewer 图片预览"
summary="图片全屏放大预览效果,包含全屏背景色、页码位置样式、增加操作等规范"
/>
<TDemoHeader title="ImageViewer 图片预览" summary="用于图片内容的缩略展示与查看。" />
<TDemoBlock title="01 组件类型" summary="图片预览类型" padding={true}>
<BaseDemo />
</TDemoBlock>
Expand Down
2 changes: 1 addition & 1 deletion src/result/_example/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default function ResultDemo() {
<>
{!showResultPage ? (
<div className="tdesign-mobile-demo">
<TDemoHeader title="Result 结果" summary="结果反馈" />
<TDemoHeader title="Result 结果" summary="用于反馈不同结果的展示。" />
<TDemoBlock title="01类型" summary="不同结果反馈">
<ThemeResult />
</TDemoBlock>
Expand Down
2 changes: 1 addition & 1 deletion src/side-bar/_example/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default function Base() {
};
return (
<div className="tdesign-mobile-demo">
<TDemoHeader title="SideBar 侧边栏" summary="用于内容分类后的展示切换。" />
<TDemoHeader title="SideBar 侧边栏" summary="用于信息分类后的展示切换或锚点,位于页面左侧。" />
<TDemoBlock title="01 组件类型" summary="侧边导航用法" padding>
<Button size="large" theme="primary" variant="outline" block onClick={() => handleClick('base')}>
锚点用法
Expand Down
2 changes: 1 addition & 1 deletion src/sticky/_example/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import ContainerDemo from './container';
export default function Base() {
return (
<div className="tdesign-mobile-demo">
<TDemoHeader title="Sticky 吸顶" summary="用于常驻页面顶部的信息,操作展示" />
<TDemoHeader title="Sticky 吸顶容器" summary="用于常驻页面顶部的信息,操作展示" />
<div className="tdesign-demo-block-wrap">
<TDemoBlock summary="基础吸顶">
<BaseDemo />
Expand Down
2 changes: 1 addition & 1 deletion src/swipe-cell/_example/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default function SwipeCellDemo() {
return (
<div className="tdesign-mobile-demo swipe-cell-demo">
<TDemoHeader
title="SwipeCell 滑动单元格"
title="SwipeCell 滑动操作"
summary="用来承载列表中的更多操作,通过左右滑动来展示,按钮的宽度固定高度根据列表高度而变化。"
/>
<Left />
Expand Down
2 changes: 1 addition & 1 deletion src/switch/_example/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import './style/index.less';
export default function () {
return (
<div className="tdesign-mobile-demo">
<TDemoHeader title="Switch 开关" summary="开关用于切换当个设置项的状态,开启、关闭为两个互斥的操作" />
<TDemoHeader title="Switch 开关" summary="用于控制某个功能的开启和关闭。" />
<TDemoBlock title="01 组件类型" summary="基础开关">
<Base />
</TDemoBlock>
Expand Down
2 changes: 1 addition & 1 deletion src/tab-bar/_example/mobile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import './style/index.less';
function TabBarMobileDemo() {
return (
<div className="tdesign-mobile-demo">
<TDemoHeader title="TabBar 标签栏" summary="用于在不同功能模块之间进行快速切换,位于页面底部。"></TDemoHeader>
<TDemoHeader title="TabBar 底部标签栏" summary="用于在不同功能模块之间进行快速切换,位于页面底部。"></TDemoHeader>
<TDemoBlock title="01 组件类型" summary="纯文本标签栏">
<TextDemo />
</TDemoBlock>
Expand Down
2 changes: 1 addition & 1 deletion src/watermark/_example/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import LayoutDemo from './layout';
export default function Base() {
return (
<div className="tdesign-mobile-demo">
<h1 className="title">Watermark 标签</h1>
<h1 className="title">Watermark 水印</h1>
<p className="summary">给页面的某个区域加上水印。</p>
<TDemoBlock title="01 组件类型" summary="文本水印">
<BaseDemo />
Expand Down
Loading
Loading