Skip to content

Commit 94653bc

Browse files
authored
fix(site): fix design layout page (#759)
* fix(site): fix design layout page * chore: update tds link
1 parent 43bc643 commit 94653bc

File tree

3 files changed

+37
-36
lines changed

3 files changed

+37
-36
lines changed

site/src/pages/design/layout.vue

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -234,35 +234,35 @@ export default {
234234
cutValue: '768px',
235235
range: '768px-991px',
236236
colWidth: '16px',
237-
grid: '内容区块根据不同的断点进行堆叠或缩放',
237+
grid: 'Content blocks stack or scale based on different breakpoints',
238238
device: 'Pad',
239239
},
240240
{
241241
cut: 'md',
242242
cutValue: '992px',
243243
range: '992px-1199px',
244244
colWidth: '16px',
245-
grid: '内容区块根据不同的断点进行堆叠或缩放',
246-
device: 'super small size laptop',
245+
grid: 'Content blocks stack or scale based on different breakpoints',
246+
device: 'Super small size laptop',
247247
},
248248
{
249249
cut: 'lg',
250250
cutValue: '1200px',
251-
range: '大于 1200px',
251+
range: 'Greater than 1200px',
252252
colWidth: '16px',
253-
grid: '大于断点值时,始终保持水平排列',
254-
device: 'small size laptop',
253+
grid: 'When the viewport width is greater than the breakpoint value, it always stays arranged horizontally',
254+
device: 'Small size laptop',
255255
},
256256
],
257257
columns: [
258-
{ width: 104, ellipsis: true, colKey: 'cut', title: 'break point' },
259-
{ width: 104, ellipsis: true, colKey: 'cutValue', title: 'break point value' },
260-
{ width: 144, ellipsis: true, colKey: 'range', title: '响应区间' },
261-
{ width: 104, colKey: 'colWidth', title: 'gutter width' },
258+
{ width: 104, ellipsis: true, colKey: 'cut', title: 'Breakpoint' },
259+
{ width: 140, ellipsis: true, colKey: 'cutValue', title: 'Breakpoint Value' },
260+
{ width: 144, ellipsis: true, colKey: 'range', title: 'Responsive Range' },
261+
{ width: 104, colKey: 'colWidth', title: 'Gutter Width' },
262262
{ colKey: 'grid', title: 'grid' },
263-
{ width: 160, ellipsis: true, colKey: 'device', title: '显示设备参考' },
263+
{ width: 200, ellipsis: true, colKey: 'device', title: 'Reference Display Device' },
264264
],
265-
rowKey: 'default',
265+
rowKey: 'cut',
266266
size: 'small',
267267
};
268268
},

site/src/pages/design/layout_zh-CN.vue

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@
5858

5959
<h3>网格基数</h3>
6060
<p>
61-
网格基数是栅格系统中的基本网格单位。栅格化之前先定义网格基数尤其重要,一方面规范设计,指导版式设计与内容布局,辅助规范页面元素对齐和间距设定;另一方面节省设计开发沟通的时间。目前栅格系统中以 8 点为网格基数,粒度大小合适,且能够匹配多数主流屏幕。在 TDesign 中,网格基数为 8px。
61+
网格基数是栅格系统中的基本网格单位。栅格化之前先定义网格基数尤其重要,一方面规范设计,指导版式设计与内容布局,辅助规范页面元素对齐和间距设定;另一方面节省设计开发沟通的时间。目前栅格系统中以
62+
8 点为网格基数,粒度大小合适,且能够匹配多数主流屏幕。在 TDesign 中,网格基数为 8px。
6263
</p>
6364
<img src="./assets/layout/l-6.jpg" />
6465

@@ -75,8 +76,8 @@
7576

7677
<h4>安全边距</h4>
7778
<p>
78-
安全边距是内容和屏幕边缘之间的间隔。通常为固定宽度,用来定义在所有尺寸屏幕下最小的呼吸空间。TDesign 中侧边距的默认值为 24px,也可根据实际情况确定取值,建议使用
79-
8 的倍数。
79+
安全边距是内容和屏幕边缘之间的间隔。通常为固定宽度,用来定义在所有尺寸屏幕下最小的呼吸空间。TDesign
80+
中侧边距的默认值为 24px,也可根据实际情况确定取值,建议使用 8 的倍数。
8081
</p>
8182
<img src="./assets/layout/l-7.jpg" />
8283

@@ -162,8 +163,8 @@
162163
<hr />
163164

164165
<p>
165-
2)侧边栏布局:固定栅格最小宽度为 704px(TDesign 中页面最小宽度为
166-
768px,侧边栏宽度为 64px);内容区域小于 704px 时页面不再缩小,浏览器出现横向滚动条。
166+
2)侧边栏布局:固定栅格最小宽度为 704px(TDesign 中页面最小宽度为 768px,侧边栏宽度为 64px);内容区域小于 704px
167+
时页面不再缩小,浏览器出现横向滚动条。
167168
</p>
168169
<img src="./assets/layout/l-16.jpg" />
169170

@@ -177,11 +178,11 @@
177178
</template>
178179

179180
<script>
180-
import anchorMixin from '../mixins/anchor'
181+
import anchorMixin from '../mixins/anchor';
181182
182183
export default {
183184
mixins: [anchorMixin],
184-
data () {
185+
data() {
185186
return {
186187
dataSource: [
187188
{
@@ -190,52 +191,52 @@ export default {
190191
range: '768px-991px',
191192
colWidth: '16px',
192193
grid: '内容区块根据不同的断点进行堆叠或缩放',
193-
device: '平板'
194+
device: '平板',
194195
},
195196
{
196197
cut: 'md',
197198
cutValue: '992px',
198199
range: '992px-1199px',
199200
colWidth: '16px',
200201
grid: '内容区块根据不同的断点进行堆叠或缩放',
201-
device: '超小尺寸电脑'
202+
device: '超小尺寸电脑',
202203
},
203204
{
204205
cut: 'lg',
205206
cutValue: '1200px',
206207
range: '大于 1200px',
207208
colWidth: '16px',
208209
grid: '大于断点值时,始终保持水平排列',
209-
device: '小尺寸电脑'
210-
}
210+
device: '小尺寸电脑',
211+
},
211212
],
212213
columns: [
213214
{ width: 104, ellipsis: true, colKey: 'cut', title: '断点' },
214215
{ width: 104, ellipsis: true, colKey: 'cutValue', title: '断点值' },
215216
{ width: 144, ellipsis: true, colKey: 'range', title: '响应区间' },
216217
{ width: 104, colKey: 'colWidth', title: '槽宽' },
217218
{ colKey: 'grid', title: '栅格' },
218-
{ width: 160, ellipsis: true, colKey: 'device', title: '显示设备参考' }
219+
{ width: 160, ellipsis: true, colKey: 'device', title: '显示设备参考' },
219220
],
220-
rowKey: 'default',
221-
size: 'small'
222-
}
221+
rowKey: 'cut',
222+
size: 'small',
223+
};
223224
},
224225
methods: {
225-
rowspanAndColspan ({ col, rowIndex }) {
226+
rowspanAndColspan({ col, rowIndex }) {
226227
if (col.colKey === 'colWidth' && rowIndex === 0) {
227228
return {
228-
rowspan: 3
229-
}
229+
rowspan: 3,
230+
};
230231
}
231232
if (col.colKey === 'grid' && rowIndex === 0) {
232233
return {
233-
rowspan: 2
234-
}
234+
rowspan: 2,
235+
};
235236
}
236-
}
237-
}
238-
}
237+
},
238+
},
239+
};
239240
</script>
240241

241242
<style lang="less">

site/src/pages/home/index_zh-CN.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
slot="confirmBtn"
2626
size="small"
2727
style="margin-left: 8px"
28-
@click="() => handleIntroClick('https://tds.qq.com/')"
28+
@click="() => handleIntroClick('https://tds.qq.com/?from=tdesign')"
2929
>查看详情</t-button
3030
>
3131
</t-popconfirm>

0 commit comments

Comments
 (0)