Skip to content

Commit 18038e0

Browse files
authored
docs: optimize usage tips (#3553)
* docs: 优化使用注意事项显示 * docs: 更新英文文档
1 parent b1d0995 commit 18038e0

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

site/docs/getting-started.en-US.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ npm i tdesign-vue@naruto // for Vue 2.7
2525
Vue.use(TDesign);
2626
</script>
2727
```
28-
> Please note that unpkg usage is not recommended as it will download the entire component library. Production projects will be directly affected by version updates, and may also be affected by the stability of the CDN.
28+
29+
<div style="background: #fff5e4; display: flex; align-items: center; line-height: 20px; padding: 14px 24px; border-radius: 3px; color: #555a65;margin:16px 0">
30+
Please note that we do not recommend this approach, as production projects will be directly affected by version updates and may also be affected by the stability of the CDN.
31+
</div>
2932

3033
The package of tdesign-vue provides kinds of bundles, read [the documentation](https://github.com/Tencent/tdesign/blob/main/docs/develop-install.md) for the detail of differences between bundles.
3134

site/docs/getting-started.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ npm i tdesign-vue@naruto // 在 Vue 2.7 使用
3535
Vue.use(TDesign);
3636
</script>
3737
```
38-
> 请注意,我们不推荐使用这种方式,这样无法实现按需加载等优化手段,生产项目会直接受版本更新影响,同时也可能受到 CDN 的稳定性的影响。
38+
39+
<div style="background: #fff5e4; display: flex; align-items: center; line-height: 20px; padding: 14px 24px; border-radius: 3px; color: #555a65;margin:16px 0">
40+
请注意,我们不推荐使用这种方式,生产项目会直接受版本更新影响,同时也可能受到 CDN 的稳定性的影响。
41+
</div>
3942

4043
npm package 中提供了多种构建产物,可以阅读 [这里](https://github.com/Tencent/tdesign/blob/main/docs/develop-install.md) 了解不同目录下产物的差别。
4144

0 commit comments

Comments
 (0)