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
3 changes: 2 additions & 1 deletion examples/sites/src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"backTop": "Back To Top",
"overview": "Components Overview",
"overviewDesc": "TinyVue provides a wealth of basic UI components for web applications, and we will continue to explore the best UI practices for enterprise-level applications. Welcome to try TinyVue.",
"overviewDescPlus": "TinyVuePlus is a component library for Cloud business scenarios based on TinyVue, following the new design specifications of Cloud CloudDesign and utilizing Vite+Vue3+TypeScript technology stack.",
"searchComponents": "search components",
"apiType": "Components demos code style",
"apiStyleOptions": "Options",
Expand All @@ -41,4 +42,4 @@
"demoModeMultiple": "Multiple",
"contributor": "Contributors",
"noData": "No Data"
}
}
3 changes: 2 additions & 1 deletion examples/sites/src/i18n/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"backTop": "返回顶部",
"overview": "组件总览",
"overviewDesc": "TinyVue 为 Web 应用提供了丰富的基础 UI 组件,我们还将持续探索企业级应用的最佳 UI 实践,欢迎尝试使用 TinyVue。",
"overviewDescPlus": "TinyVuePlus 是一款基于 TinyVue 的面向云业务场景的组件库,遵循 CloudDesign 新设计规范,基于 Vite + Vue3 + TypeScript 技术栈。",
"searchComponents": "搜索组件",
"apiType": "组件示例代码风格",
"apiStyleOptions": "选项式",
Expand All @@ -41,4 +42,4 @@
"demoModeMultiple": "多示例",
"contributor": "贡献者",
"noData": "暂无数据"
}
}
4 changes: 2 additions & 2 deletions examples/sites/src/views/overview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<span class="ti-f18">({{ getTotalComponentsNum() }})</span>
</h1>

<h1 v-if="!isPlus" class="overview-desc ti-f14 ti-my20 ti-lh21">
{{ i18nByKey('overviewDesc') }}
<h1 class="overview-desc ti-f14 ti-my20 ti-lh21">

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change in logic here ensures that the correct description is displayed based on the isPlus state. This is a functional improvement and does not introduce any critical issues.

{{ i18nByKey(isPlus ? 'overviewDescPlus' : 'overviewDesc') }}
</h1>
<!-- 搜索 -->
<tiny-input
Expand Down
Loading