From 7133db9845d51916b6d97c73bdfb37a833e66430 Mon Sep 17 00:00:00 2001 From: wuyiping0628 <42107997+wuyiping0628@users.noreply.github.com> Date: Thu, 13 Feb 2025 22:23:12 -0800 Subject: [PATCH 1/8] fix(nav-menu): [nav-menu] Fix the style issue of the nav-menu component (#2889) --- packages/theme/package.json | 2 +- packages/theme/src/nav-menu/index.less | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/theme/package.json b/packages/theme/package.json index 657cb46645..51c143ceee 100644 --- a/packages/theme/package.json +++ b/packages/theme/package.json @@ -1,7 +1,7 @@ { "name": "@opentiny/vue-theme", "type": "module", - "version": "3.21.2", + "version": "3.21.3", "description": "An enterprise-class UI component library, support both Vue.js 2 and Vue.js 3, as well as PC and mobile.", "author": "OpenTiny Team", "license": "MIT", diff --git a/packages/theme/src/nav-menu/index.less b/packages/theme/src/nav-menu/index.less index 1f64ac3ac3..9414330837 100644 --- a/packages/theme/src/nav-menu/index.less +++ b/packages/theme/src/nav-menu/index.less @@ -87,7 +87,7 @@ } > .more { - padding: 0 12px; + padding: 0 10px; font-size: var(--tv-NavMenu-item-font-size); text-align: center; color: var(--tv-NavMenu-item-text-color); @@ -217,7 +217,9 @@ } > .sub-menu { + border-left: 1px solid var(--tv-NavMenu-popmenu-more-menu-border-color-right); float: left; + margin-left: -1px; width: calc(100% - 160px); padding-left: 14px; box-sizing: border-box; @@ -358,7 +360,7 @@ margin: 0; .@{nav-menu-prefix-cls}__sub-menu-title { - padding: 18px 35px 0 12px; + margin: 18px 35px 0 12px; &.@{nav-menu-prefix-cls}__sub-menu-title-blank { padding: 0 35px 0 12px; From cd774f0d7d92c3548989c7941c6f140e6e6993d5 Mon Sep 17 00:00:00 2001 From: liukun <953831480@qq.com> Date: Thu, 6 Mar 2025 22:51:03 -0800 Subject: [PATCH 2/8] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8Dplus=E5=AE=98?= =?UTF-8?q?=E7=BD=91=E6=8F=8F=E8=BF=B0=E5=92=8C=E6=90=9C=E7=B4=A2=20(#3061?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/sites/src/i18n/en.json | 3 +- examples/sites/src/i18n/zh.json | 3 +- examples/sites/src/main.js | 16 ++-- .../sites/src/views/components/components.vue | 79 ++++++++++++++++++- examples/sites/src/views/overview.vue | 9 ++- 5 files changed, 97 insertions(+), 13 deletions(-) diff --git a/examples/sites/src/i18n/en.json b/examples/sites/src/i18n/en.json index b4e15c681b..5f6a7a3b16 100644 --- a/examples/sites/src/i18n/en.json +++ b/examples/sites/src/i18n/en.json @@ -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", @@ -41,4 +42,4 @@ "demoModeMultiple": "Multiple", "contributor": "Contributors", "noData": "No Data" -} \ No newline at end of file +} diff --git a/examples/sites/src/i18n/zh.json b/examples/sites/src/i18n/zh.json index 68ed387cce..4ba0cc8da1 100644 --- a/examples/sites/src/i18n/zh.json +++ b/examples/sites/src/i18n/zh.json @@ -32,6 +32,7 @@ "backTop": "返回顶部", "overview": "组件总览", "overviewDesc": "TinyVue 为 Web 应用提供了丰富的基础 UI 组件,我们还将持续探索企业级应用的最佳 UI 实践,欢迎尝试使用 TinyVue。", + "overviewDescPlus": "TinyVuePlus 是一款基于 TinyVue 的面向云业务场景的组件库,遵循 CloudDesign 新设计规范,基于 Vite + Vue3 + TypeScript 技术栈。", "searchComponents": "搜索组件", "apiType": "组件示例代码风格", "apiStyleOptions": "选项式", @@ -41,4 +42,4 @@ "demoModeMultiple": "多示例", "contributor": "贡献者", "noData": "暂无数据" -} \ No newline at end of file +} diff --git a/examples/sites/src/main.js b/examples/sites/src/main.js index 9f0672a1b8..6ae29233f6 100644 --- a/examples/sites/src/main.js +++ b/examples/sites/src/main.js @@ -41,13 +41,15 @@ hljs.registerLanguage('javascript', javascript) hljs.registerLanguage('css', css) hljs.registerLanguage('html', html) -docsearch({ - appId: 'AGPA5UXHMH', - apiKey: '5fa09fc20270efa61d68e2c2eb0f56df', - indexName: 'opentiny', - container: '.search-box', - debug: false -}) +if (!location.href.includes('tiny-vue-plus')) { + docsearch({ + appId: 'AGPA5UXHMH', + apiKey: '5fa09fc20270efa61d68e2c2eb0f56df', + indexName: 'opentiny', + container: '.search-box', + debug: false + }) +} if (envTarget !== 'open') { // 支持本地开发和内网使用全局搜索 diff --git a/examples/sites/src/views/components/components.vue b/examples/sites/src/views/components/components.vue index d1249adb60..45816ebd09 100644 --- a/examples/sites/src/views/components/components.vue +++ b/examples/sites/src/views/components/components.vue @@ -20,7 +20,84 @@
- +
+
+
+
+
+ {{ oneGroup.name }} +
+
+ {{ oneGroup.type }} +
+
+
+ +
+
+
+
+