From 586d23fc551c9a29363010b6fa9daeb745d38d25 Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot Date: Sun, 23 Jun 2024 19:23:47 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=B1:=20[client]=20sync=20upgrade=20wit?= =?UTF-8?q?h=206=20commits=20[trident-sync]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit build: publish success fix: 修复多级表头时列设置的问题 https://github.com/fast-crud/fast-crud/issues/175 chore: 1 fix: 修复element示例中远程搜索下拉框label不显示的bug https://github.com/fast-crud/fast-crud/issues/422 fix: 修复独立使用对话框 openDialog方法await无返回值的bug --- packages/ui/certd-client/CHANGELOG.md | 6 ++++++ packages/ui/certd-client/package.json | 10 +++++----- .../src/views/crud/editable/cell/crud.tsx | 20 +++++++++++++++++++ .../permission/fs-permission-tree.vue | 18 ++++++++--------- 4 files changed, 39 insertions(+), 15 deletions(-) diff --git a/packages/ui/certd-client/CHANGELOG.md b/packages/ui/certd-client/CHANGELOG.md index f7d88270..33bd004a 100644 --- a/packages/ui/certd-client/CHANGELOG.md +++ b/packages/ui/certd-client/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.21.1](https://github.com/fast-crud/fast-crud/compare/v1.21.0...v1.21.1) (2024-06-23) + +### Bug Fixes + +* 修复独立使用对话框 openDialog方法await无返回值的bug ([0cc22fd](https://github.com/fast-crud/fast-crud/commit/0cc22fd2ad57b8e3e85174ced1546bb6a90ed838)) + # [1.21.0](https://github.com/fast-crud/fast-crud/compare/v1.20.2...v1.21.0) (2024-06-08) ### Bug Fixes diff --git a/packages/ui/certd-client/package.json b/packages/ui/certd-client/package.json index d0ff1b18..c54a18a5 100644 --- a/packages/ui/certd-client/package.json +++ b/packages/ui/certd-client/package.json @@ -1,6 +1,6 @@ { "name": "@fast-crud/fs-admin-antdv4", - "version": "1.21.0", + "version": "1.21.1", "private": true, "scripts": { "dev": "vite", @@ -26,10 +26,10 @@ "@ant-design/icons-vue": "^7.0.1", "@aws-sdk/client-s3": "^3.535.0", "@aws-sdk/s3-request-presigner": "^3.535.0", - "@fast-crud/fast-crud": "^1.21.0", - "@fast-crud/fast-extends": "^1.21.0", - "@fast-crud/ui-antdv4": "^1.21.0", - "@fast-crud/ui-interface": "^1.21.0", + "@fast-crud/fast-crud": "^1.21.1", + "@fast-crud/fast-extends": "^1.21.1", + "@fast-crud/ui-antdv4": "^1.21.1", + "@fast-crud/ui-interface": "^1.21.1", "@iconify/vue": "^4.1.1", "@soerenmartius/vue3-clipboard": "^0.1.2", "ant-design-vue": "^4.1.2", diff --git a/packages/ui/certd-client/src/views/crud/editable/cell/crud.tsx b/packages/ui/certd-client/src/views/crud/editable/cell/crud.tsx index c618740f..33e4bd8b 100644 --- a/packages/ui/certd-client/src/views/crud/editable/cell/crud.tsx +++ b/packages/ui/certd-client/src/views/crud/editable/cell/crud.tsx @@ -160,6 +160,26 @@ export default function ({ crudExpose }: CreateCrudOptionsProps): CreateCrudOpti width: 300, valueChange({ value, getComponentRef }) { console.log("value changed:", value, getComponentRef("radio")); + }, + editable: { + async updateCell(opts) { + const { row, key, value } = opts; + //如果是添加,需要返回{[rowKey]:xxx},比如:{id:2} + await api.UpdateCell(row.id, key, value); + //同时修改 updateCellLink + await api.UpdateCell(row.id, "updateCellLink", value); + //修改联动本地列 + row.updateCellLink = value; + } + } + } + }, + updateCellLink: { + title: "状态联动", + type: "text", + column: { + editable: { + disabled: true } } }, diff --git a/packages/ui/certd-client/src/views/sys/authority/permission/fs-permission-tree.vue b/packages/ui/certd-client/src/views/sys/authority/permission/fs-permission-tree.vue index e9b7404f..2f826690 100644 --- a/packages/ui/certd-client/src/views/sys/authority/permission/fs-permission-tree.vue +++ b/packages/ui/certd-client/src/views/sys/authority/permission/fs-permission-tree.vue @@ -65,7 +65,7 @@ export default defineComponent({ //处理过,无需再次处理 return; } - value.class="is-twig" + value.class = "is-twig"; if (value.children != null && value.children.length > 0) { return; } @@ -83,13 +83,13 @@ export default defineComponent({ } // 所有的子节点都没有children parent.class = "is-twig"; // 连接叶子节点的末梢枝杈节点 - let i = 0 + let i = 0; for (const child of parent.children) { child.class = "is-leaf"; - if(i !== 0){ + if (i !== 0) { child.class += " leaf-after"; } - i++ + i++; } }); return [ @@ -135,11 +135,10 @@ export default defineComponent({