From 123d2c9074b8dd1a5cef7476d22d95ba835ae885 Mon Sep 17 00:00:00 2001 From: WgoW <139880996+WgoW@users.noreply.github.com> Date: Wed, 23 Apr 2025 21:34:06 +0800 Subject: [PATCH 1/4] feat(types): enhance Option type to support customizable label types (#735) Co-authored-by: a --- src/typings/common.d.ts | 2 +- src/utils/common.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/typings/common.d.ts b/src/typings/common.d.ts index 06b526c9..652bc3bc 100644 --- a/src/typings/common.d.ts +++ b/src/typings/common.d.ts @@ -14,7 +14,7 @@ declare namespace CommonType { * @property value: The option value * @property label: The option label */ - type Option = { value: K; label: string }; + type Option = { value: K; label: M }; type YesOrNo = 'Y' | 'N'; diff --git a/src/utils/common.ts b/src/utils/common.ts index dc9a368f..b7e7f654 100644 --- a/src/utils/common.ts +++ b/src/utils/common.ts @@ -22,7 +22,7 @@ export function transformRecordToOption>(record return Object.entries(record).map(([value, label]) => ({ value, label - })) as CommonType.Option[]; + })) as CommonType.Option[]; } /** @@ -30,10 +30,10 @@ export function transformRecordToOption>(record * * @param options */ -export function translateOptions(options: CommonType.Option[]) { +export function translateOptions(options: CommonType.Option[]) { return options.map(option => ({ ...option, - label: $t(option.label as App.I18n.I18nKey) + label: $t(option.label) })); } From 85e40b19431c403ea3ce7cfcc120e01ac49fe6c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9D=92=E8=8F=9C=E7=99=BD=E7=8E=89=E6=B1=A4?= <79054161+Azir-11@users.noreply.github.com> Date: Wed, 23 Apr 2025 21:34:18 +0800 Subject: [PATCH 2/4] fix(hooks): fixed the issue where loading was not properly closed in some cases. (#737) --- src/hooks/common/echarts.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hooks/common/echarts.ts b/src/hooks/common/echarts.ts index 45c33e12..73306834 100644 --- a/src/hooks/common/echarts.ts +++ b/src/hooks/common/echarts.ts @@ -210,6 +210,10 @@ export function useEcharts(optionsFactory: () => T, hooks: C // render chart await render(); + + if (chart) { + await onUpdated?.(chart); + } } scope.run(() => { From 61244f0f2aa191e86db04538edd6bf7d9b649859 Mon Sep 17 00:00:00 2001 From: tu6ge Date: Wed, 23 Apr 2025 21:34:48 +0800 Subject: [PATCH 3/4] chore(deps): add vscode recommend plugin (#739) close #738 --- .vscode/extensions.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 00f22234..0b689451 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -14,6 +14,7 @@ "sdras.vue-vscode-snippets", "vue.volar", "whtouche.vscode-js-console-utils", - "zhuangtongfa.material-theme" + "zhuangtongfa.material-theme", + "tu6ge.naive-ui-intelligence" ] } From a013ea2c461683444f27f4964339ef3766ab75b3 Mon Sep 17 00:00:00 2001 From: WgoW <139880996+WgoW@users.noreply.github.com> Date: Wed, 23 Apr 2025 22:23:13 +0800 Subject: [PATCH 4/4] docs(README): Add supporting ecosystem tools to the open-source repository (#740) Co-authored-by: a --- README.en_US.md | 1 + README.md | 1 + 2 files changed, 2 insertions(+) diff --git a/README.en_US.md b/README.en_US.md index 6d6385b2..ab9a211b 100644 --- a/README.en_US.md +++ b/README.en_US.md @@ -130,6 +130,7 @@ Refer to the [Code Synchronization](https://docs.soybeanjs.cn/guide/sync) docume - [SuperApi](https://github.com/TmmTop/SuperApi): Quickly turn your idea into an online stable product! Entity-less library and table building, add, delete, change and check entity-less library table, support 15 kinds of condition query, as well as paging, list, unlimited tree list and other functions of the API deployment! With interface documentation, Auth authorisation, interface flow restriction, access to the client's real IP, advanced server caching components, dynamic APIs and other features, we look forward to your experience! - [FastSoyAdmin](https://github.com/sleep1223/fast-soy-admin): A modern Management Platform based on FastAPI+Vue3+Naive UI. - [ba](https://github.com/xiatianYa/Ba-Server): Backend service docking with soybean admin based on goFrame framework, adapted to dynamic routing, and interface authentication permissions. +- [soybean-admin-go](https://github.com/WgoW/soybean-admin-go):A Go backend service developed based on the Gin and GORM frameworks, integrated with the example branch of Soybean Admin. It supports dynamic routing and API permission authentication. ## How to Contribute diff --git a/README.md b/README.md index b9839fa7..fcd9526c 100644 --- a/README.md +++ b/README.md @@ -155,6 +155,7 @@ pnpm build - [SuperApi](https://github.com/TmmTop/SuperApi): 快速将你的 idea 变成线上稳定运行的产品! 无实体建库建表,对无实体库表进行增删改查,支持 15 种条件查询,以及分页,列表,无限级树形列表 等功能的 API 部署! 拥有接口文档,Auth 授权,接口限流,获取客户端真实 IP,先进的服务器缓存组件,动态 API 等功能,期待您的体验! - [FastSoyAdmin](https://github.com/sleep1223/fast-soy-admin): 基于 FastAPI+Vue3+Naive UI 的现代化轻量管理平台. - [ba](https://github.com/xiatianYa/Ba-Server): 基于goFrame框架开发的后端服务对接soybean-admin,适配动态路由,接口鉴权限。 +- [soybean-admin-go](https://github.com/WgoW/soybean-admin-go):基于gin+gorm框架开发的go语言后端服务对接soybean-admin的example分支,适配动态路由,接口鉴权限。 ## 如何贡献