Skip to content

Commit 3ef3465

Browse files
chore(perf): perf the format
1 parent 68a212d commit 3ef3465

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

components/table/demo/colspan-rowspan.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Table cell supports `colSpan` and `rowSpan` that set in render return object. Wh
2929
</template>
3030
<script lang="ts" setup>
3131
import type { TableColumnType } from 'ant-design-vue';
32+
import { h } from 'vue';
3233
// In the fifth row, other columns are merged into first column
3334
// by setting it's colSpan to be 0
3435
const sharedOnCell = (_, index) => {
@@ -109,6 +110,10 @@ const columns: TableColumnType[] = [
109110
return { colSpan: 0 };
110111
}
111112
},
113+
customRender: ({text}) => {
114+
console.log("--customRender render--");
115+
return h("h1", {}, text);
116+
}
112117
},
113118
{
114119
title: 'Phone',

0 commit comments

Comments
 (0)