We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68a212d commit 3ef3465Copy full SHA for 3ef3465
components/table/demo/colspan-rowspan.vue
@@ -29,6 +29,7 @@ Table cell supports `colSpan` and `rowSpan` that set in render return object. Wh
29
</template>
30
<script lang="ts" setup>
31
import type { TableColumnType } from 'ant-design-vue';
32
+import { h } from 'vue';
33
// In the fifth row, other columns are merged into first column
34
// by setting it's colSpan to be 0
35
const sharedOnCell = (_, index) => {
@@ -109,6 +110,10 @@ const columns: TableColumnType[] = [
109
110
return { colSpan: 0 };
111
}
112
},
113
+ customRender: ({text}) => {
114
+ console.log("--customRender render--");
115
+ return h("h1", {}, text);
116
+ }
117
118
{
119
title: 'Phone',
0 commit comments