🔱: [client] sync upgrade with 3 commits [trident-sync]

build: publish success
perf: 优化antdv单元格合并示例,使用customCell方法,以及增加操作列合并演示
pull/349/head
GitHub Actions Bot 2025-04-25 19:25:06 +00:00
parent c7a3bc9eac
commit 7bb8e9bdc4
4 changed files with 65 additions and 34 deletions

View File

@ -3,6 +3,13 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [1.25.10](https://github.com/fast-crud/fast-crud/compare/v1.25.9...v1.25.10) (2025-04-25)
### Performance Improvements
* 新增editable-select组件 ([8681285](https://github.com/fast-crud/fast-crud/commit/86812851de435cb2406d06898396c368d5eda414))
* 优化antdv单元格合并示例使用customCell方法以及增加操作列合并演示 ([1068f9a](https://github.com/fast-crud/fast-crud/commit/1068f9aaa9b7732acb7082cc2ce3b1fadf1f8521))
## [1.25.9](https://github.com/fast-crud/fast-crud/compare/v1.25.8...v1.25.9) (2025-04-16)
### Bug Fixes

View File

@ -1,6 +1,6 @@
{
"name": "@fast-crud/fs-admin-antdv4",
"version": "1.25.9",
"version": "1.25.10",
"private": true,
"scripts": {
"dev": "vite",
@ -27,10 +27,10 @@
"@aws-sdk/client-s3": "^3.535.0",
"@aws-sdk/s3-request-presigner": "^3.535.0",
"@ctrl/tinycolor": "^4.1.0",
"@fast-crud/fast-crud": "^1.25.9",
"@fast-crud/fast-extends": "^1.25.9",
"@fast-crud/ui-antdv4": "^1.25.9",
"@fast-crud/ui-interface": "^1.25.9",
"@fast-crud/fast-crud": "^1.25.10",
"@fast-crud/fast-extends": "^1.25.10",
"@fast-crud/ui-antdv4": "^1.25.10",
"@fast-crud/ui-interface": "^1.25.10",
"@iconify/tailwind": "^1.2.0",
"@iconify/vue": "^4.1.1",
"@manypkg/get-packages": "^2.2.2",

View File

@ -221,5 +221,18 @@ export default {
"AResult",
defineAsyncComponent(() => import("ant-design-vue/es/result"))
);
app.component(
"ATableSummaryCell",
defineAsyncComponent(() => import("ant-design-vue/es/vc-table/Cell/index"))
);
app.component(
"ATableSummaryRow",
defineAsyncComponent(() => import("ant-design-vue/es/vc-table/Footer/Row"))
);
app.component(
"ATableSummary",
defineAsyncComponent(() => import("ant-design-vue/es/vc-table/Footer/Summary"))
);
}
};

View File

@ -52,6 +52,19 @@ export default async function ({ crudExpose }: CreateCrudOptionsProps): Promise<
}
}
},
rowHandle: {
fixed: null,
title: "操作列行合并",
customCell: (_: any, index: any) => {
if (index === 4) {
return { rowSpan: 2 };
} else if (index === 5) {
return { rowSpan: 0 };
} else {
return { rowSpan: 1 };
}
}
},
columns: {
id: {
title: "id",
@ -69,59 +82,57 @@ export default async function ({ crudExpose }: CreateCrudOptionsProps): Promise<
title: "上下合并",
type: "text",
column: {
customRender: ({ text, index }: any, cellRender: any) => {
const obj: any = {
props: {}
};
customCell: (_: any, index: any) => {
if (index === 2) {
obj.children = text + "(我合并了)";
obj.props.rowSpan = 2;
return {
rowSpan: 2
};
} else if (index === 3) {
obj.props.rowSpan = 0;
} else {
obj.children = cellRender();
return {
rowSpan: 0
};
}
return obj;
},
formatter({ value, index }) {
if (index === 2) {
return value + "(我上下合并了)";
}
return value;
}
}
},
colMerge1: {
title: "左右合并",
title: "左右合并1",
type: "text",
column: {
align: "center",
customRender({ text, index, record, dataIndex }: any, cellRender: any) {
if (index !== 4) {
customCell(value: any, index: any) {
if (index === 4) {
return {
children: cellRender()
};
}
return {
children: text + "(我合并了)",
props: {
colSpan: 2
}
};
}
},
formatter({ value, index }) {
if (index === 4) {
return value + "(我左右合并了)";
}
return value;
}
}
},
colMerge2: {
title: "左右合并",
title: "左右合并2",
type: "text",
column: {
customRender({ text, index, record, dataIndex }: any, cellRender: any) {
if (index !== 4) {
customCell(_: any, index: any) {
if (index === 4) {
return {
children: cellRender()
};
}
return {
props: {
colSpan: 0
}
};
}
}
}
},
header1: {
title: "表头合并(我合并了)",