qweeqw
diff --git a/example/components/table/readme.md b/example/components/table/readme.md
index ffe3f0a..f94e9af 100644
--- a/example/components/table/readme.md
+++ b/example/components/table/readme.md
@@ -186,10 +186,72 @@
fields: settingFields,
selectedFields: settingFields.slice(0, 4),
size: 'small'
- }
+ },
+ spanMethodData: [
+ {
+ ip: '192.168.0.1',
+ source: 'QQ',
+ status: '创建中',
+ create_time: '2018-05-25 15:02:24'
+ },
+ {
+ ip: '192.168.0.2',
+ source: '微信',
+ status: '正常',
+ create_time: '2018-05-25 15:02:24'
+ },
+ {
+ ip: '192.168.0.2',
+ source: '微信',
+ status: '正常',
+ create_time: '2018-05-25 15:02:24'
+ },
+ {
+ ip: '192.168.0.2',
+ source: '微信',
+ status: '正常',
+ create_time: '2018-05-25 15:02:24'
+ },
+ {
+ ip: '192.168.0.2',
+ source: '微信',
+ status: '正常',
+ create_time: '2018-05-25 15:02:24'
+ },
+ {
+ ip: '192.168.0.2',
+ source: '微信',
+ status: '正常',
+ create_time: '2018-05-25 15:02:24'
+ }
+ ]
}
},
methods: {
+ arraySpanMethod({ row, column, rowIndex, columnIndex }) {
+ if (rowIndex % 2 === 0) {
+ if (columnIndex === 0) {
+ return [1, 2];
+ } else if (columnIndex === 1) {
+ return [0, 0];
+ }
+ }
+ },
+ objectSpanMethod({ row, column, rowIndex, columnIndex }) {
+ if (columnIndex === 0) {
+ if (rowIndex % 2 === 0) {
+ return {
+ rowspan: 2,
+ colspan: 1
+ };
+ } else {
+ return {
+ rowspan: 0,
+ colspan: 0
+ };
+ }
+ }
+ },
handleScrollToBottom() {
this.bottomLoadingOptions.isLoading = true
setTimeout(() => {
@@ -1558,6 +1620,114 @@ export default {
```
:::
+### 合并行或列 {page=#/table}
+
+:::demo 配置`span-method`属性设置合并行或列
+
+```html
+
+
+
+
+
+
+```
+:::
+
### bk-table 属性 {page=#/table}
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
diff --git a/example/components/tooltips/example.vue b/example/components/tooltips/example.vue
index 21b43d3..87b8d56 100644
--- a/example/components/tooltips/example.vue
+++ b/example/components/tooltips/example.vue
@@ -14,7 +14,7 @@
-->