mirror of https://github.com/certd/certd
🔱: [client] sync upgrade with 3 commits [trident-sync]
build: publish success perf: 优化antdv单元格合并示例,使用customCell方法,以及增加操作列合并演示pull/349/head
parent
c7a3bc9eac
commit
7bb8e9bdc4
|
@ -3,6 +3,13 @@
|
||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
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)
|
## [1.25.9](https://github.com/fast-crud/fast-crud/compare/v1.25.8...v1.25.9) (2025-04-16)
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@fast-crud/fs-admin-antdv4",
|
"name": "@fast-crud/fs-admin-antdv4",
|
||||||
"version": "1.25.9",
|
"version": "1.25.10",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
@ -27,10 +27,10 @@
|
||||||
"@aws-sdk/client-s3": "^3.535.0",
|
"@aws-sdk/client-s3": "^3.535.0",
|
||||||
"@aws-sdk/s3-request-presigner": "^3.535.0",
|
"@aws-sdk/s3-request-presigner": "^3.535.0",
|
||||||
"@ctrl/tinycolor": "^4.1.0",
|
"@ctrl/tinycolor": "^4.1.0",
|
||||||
"@fast-crud/fast-crud": "^1.25.9",
|
"@fast-crud/fast-crud": "^1.25.10",
|
||||||
"@fast-crud/fast-extends": "^1.25.9",
|
"@fast-crud/fast-extends": "^1.25.10",
|
||||||
"@fast-crud/ui-antdv4": "^1.25.9",
|
"@fast-crud/ui-antdv4": "^1.25.10",
|
||||||
"@fast-crud/ui-interface": "^1.25.9",
|
"@fast-crud/ui-interface": "^1.25.10",
|
||||||
"@iconify/tailwind": "^1.2.0",
|
"@iconify/tailwind": "^1.2.0",
|
||||||
"@iconify/vue": "^4.1.1",
|
"@iconify/vue": "^4.1.1",
|
||||||
"@manypkg/get-packages": "^2.2.2",
|
"@manypkg/get-packages": "^2.2.2",
|
||||||
|
|
|
@ -221,5 +221,18 @@ export default {
|
||||||
"AResult",
|
"AResult",
|
||||||
defineAsyncComponent(() => import("ant-design-vue/es/result"))
|
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"))
|
||||||
|
);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -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: {
|
columns: {
|
||||||
id: {
|
id: {
|
||||||
title: "id",
|
title: "id",
|
||||||
|
@ -69,57 +82,55 @@ export default async function ({ crudExpose }: CreateCrudOptionsProps): Promise<
|
||||||
title: "上下合并",
|
title: "上下合并",
|
||||||
type: "text",
|
type: "text",
|
||||||
column: {
|
column: {
|
||||||
customRender: ({ text, index }: any, cellRender: any) => {
|
customCell: (_: any, index: any) => {
|
||||||
const obj: any = {
|
|
||||||
props: {}
|
|
||||||
};
|
|
||||||
if (index === 2) {
|
if (index === 2) {
|
||||||
obj.children = text + "(我合并了)";
|
return {
|
||||||
obj.props.rowSpan = 2;
|
rowSpan: 2
|
||||||
|
};
|
||||||
} else if (index === 3) {
|
} else if (index === 3) {
|
||||||
obj.props.rowSpan = 0;
|
return {
|
||||||
} else {
|
rowSpan: 0
|
||||||
obj.children = cellRender();
|
};
|
||||||
}
|
}
|
||||||
return obj;
|
},
|
||||||
|
formatter({ value, index }) {
|
||||||
|
if (index === 2) {
|
||||||
|
return value + "(我上下合并了)";
|
||||||
|
}
|
||||||
|
return value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
colMerge1: {
|
colMerge1: {
|
||||||
title: "左右合并",
|
title: "左右合并1",
|
||||||
type: "text",
|
type: "text",
|
||||||
column: {
|
column: {
|
||||||
align: "center",
|
align: "center",
|
||||||
customRender({ text, index, record, dataIndex }: any, cellRender: any) {
|
customCell(value: any, index: any) {
|
||||||
if (index !== 4) {
|
if (index === 4) {
|
||||||
return {
|
return {
|
||||||
children: cellRender()
|
colSpan: 2
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
return {
|
},
|
||||||
children: text + "(我合并了)",
|
formatter({ value, index }) {
|
||||||
props: {
|
if (index === 4) {
|
||||||
colSpan: 2
|
return value + "(我左右合并了)";
|
||||||
}
|
}
|
||||||
};
|
return value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
colMerge2: {
|
colMerge2: {
|
||||||
title: "左右合并",
|
title: "左右合并2",
|
||||||
type: "text",
|
type: "text",
|
||||||
column: {
|
column: {
|
||||||
customRender({ text, index, record, dataIndex }: any, cellRender: any) {
|
customCell(_: any, index: any) {
|
||||||
if (index !== 4) {
|
if (index === 4) {
|
||||||
return {
|
return {
|
||||||
children: cellRender()
|
colSpan: 0
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
return {
|
|
||||||
props: {
|
|
||||||
colSpan: 0
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue