From b230716661f733bc885ffc448059e6b88b4ea563 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=AD=99=E6=98=8A=E7=BF=94?= <673686754@qq.com>
Date: Tue, 28 Aug 2018 10:46:48 +0800
Subject: [PATCH] =?UTF-8?q?d2-crud=20=E5=90=88=E5=B9=B6=E5=88=97?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Former-commit-id: 61f0bf476d38f13a71fea60cd35875a8f8c6b193 [formerly 0b8b0f3c228dfb0af0d01c3483779eb96de6144b] [formerly 61f0bf476d38f13a71fea60cd35875a8f8c6b193 [formerly 0b8b0f3c228dfb0af0d01c3483779eb96de6144b] [formerly 61f0bf476d38f13a71fea60cd35875a8f8c6b193 [formerly 0b8b0f3c228dfb0af0d01c3483779eb96de6144b] [formerly 0b8b0f3c228dfb0af0d01c3483779eb96de6144b [formerly 92038730b9d8fb5bc52f8b87cf2195a607a65a62 [formerly 6e72a7753cf41cc2b06a9473251fcb00e83389ba]]]]]
Former-commit-id: 92c89f3b0f6af713f67cfab3ad61d36b30198642
Former-commit-id: 19c2829be9add9943a9f447396ab22f9f0401dc0
Former-commit-id: c3fd6a0caac3ceedcd18a7ffd077db370c281f9b [formerly b70995c66c7d52701dd6dcdb3bfcc7604a53efc8]
Former-commit-id: d5ba3bac71f52f21c55161c6dbff1be612a094e8
Former-commit-id: 5661530a3999c3c00469896bd1a9c1908f2bbf17
Former-commit-id: 8dec1298b9e0f34ad446f027e8973bfa8f579d13
Former-commit-id: 45f0d49ed5aa528c1f518227d6f50a0b223c8da9
Former-commit-id: b8dfc740b60a7f61c9fdc444109e0d8013b9f1a5
---
docs/zh/ecosystem-d2-crud/example.md | 4 +-
src/menu/modules/demo-d2-crud.js | 3 +-
src/pages/demo/d2-crud/demo14/doc.md | 2 +-
src/pages/demo/d2-crud/demo15/code.js | 94 ++++++++++++++++++++
src/pages/demo/d2-crud/demo15/doc.md | 1 +
src/pages/demo/d2-crud/demo15/index.vue | 110 ++++++++++++++++++++++++
src/router/routes.js.REMOVED.git-id | 2 +-
7 files changed, 212 insertions(+), 4 deletions(-)
create mode 100644 src/pages/demo/d2-crud/demo15/code.js
create mode 100644 src/pages/demo/d2-crud/demo15/doc.md
create mode 100644 src/pages/demo/d2-crud/demo15/index.vue
diff --git a/docs/zh/ecosystem-d2-crud/example.md b/docs/zh/ecosystem-d2-crud/example.md
index fd81237e..6fcd490d 100644
--- a/docs/zh/ecosystem-d2-crud/example.md
+++ b/docs/zh/ecosystem-d2-crud/example.md
@@ -14,4 +14,6 @@
| 多选 | [点我查看](https://fairyever.gitee.io/d2-admin-preview/#/demo/d2-crud/demo10) |
| 排序 | [点我查看](https://fairyever.gitee.io/d2-admin-preview/#/demo/d2-crud/demo11) |
| 筛选 | [点我查看](https://fairyever.gitee.io/d2-admin-preview/#/demo/d2-crud/demo12) |
-| 展开行 | [点我查看](https://fairyever.gitee.io/d2-admin-preview/#/demo/d2-crud/demo13) |
+| 表尾合计行 | [点我查看](https://fairyever.gitee.io/d2-admin-preview/#/demo/d2-crud/demo13) |
+| 合并行 | [点我查看](https://fairyever.gitee.io/d2-admin-preview/#/demo/d2-crud/demo14) |
+| 合并列 | [点我查看](https://fairyever.gitee.io/d2-admin-preview/#/demo/d2-crud/demo15) |
diff --git a/src/menu/modules/demo-d2-crud.js b/src/menu/modules/demo-d2-crud.js
index 6fdf75b1..09d94bd2 100644
--- a/src/menu/modules/demo-d2-crud.js
+++ b/src/menu/modules/demo-d2-crud.js
@@ -17,6 +17,7 @@ export default {
{ path: `${pre}demo11`, title: '排序' },
{ path: `${pre}demo12`, title: '筛选' },
{ path: `${pre}demo13`, title: '表尾合计行' },
- { path: `${pre}demo14`, title: '合并行' }
+ { path: `${pre}demo14`, title: '合并行' },
+ { path: `${pre}demo15`, title: '合并列' }
])('/demo/d2-crud/')
}
diff --git a/src/pages/demo/d2-crud/demo14/doc.md b/src/pages/demo/d2-crud/demo14/doc.md
index 42ef95d9..94d0e2c3 100644
--- a/src/pages/demo/d2-crud/demo14/doc.md
+++ b/src/pages/demo/d2-crud/demo14/doc.md
@@ -1 +1 @@
-通过给 `options` 传入 `spanMethod` 方法可以实现合并行,方法的参数是一个对象,里面包含当前行 `row` 、当前列 `column` 、当前行号 `rowIndex` 、当前列号 `columnIndex` 四个属性。该函数可以返回一个包含两个元素的数组,第一个元素代表rowspan,第二个元素代表colspan。代码如下:
+通过给 `options` 传入 `spanMethod` 方法可以实现合并行,方法的参数是一个对象,里面包含当前行 `row` 、当前列 `column` 、当前行号 `rowIndex` 、当前列号 `columnIndex` 四个属性。该函数可以返回一个包含两个元素的数组,第一个元素代表 `rowspan` ,第二个元素代表 `colspan` 。代码如下:
diff --git a/src/pages/demo/d2-crud/demo15/code.js b/src/pages/demo/d2-crud/demo15/code.js
new file mode 100644
index 00000000..e47ab7eb
--- /dev/null
+++ b/src/pages/demo/d2-crud/demo15/code.js
@@ -0,0 +1,94 @@
+export default `
+
+
+
+
+
+`
diff --git a/src/pages/demo/d2-crud/demo15/doc.md b/src/pages/demo/d2-crud/demo15/doc.md
new file mode 100644
index 00000000..b2338ba7
--- /dev/null
+++ b/src/pages/demo/d2-crud/demo15/doc.md
@@ -0,0 +1 @@
+通过给 `options` 传入 `spanMethod` 方法可以实现合并行,方法的参数是一个对象,里面包含当前行 `row` 、当前列 `column` 、当前行号 `rowIndex` 、当前列号 `columnIndex` 四个属性。该函数可以返回一个键名为 `rowspan` 和 `colspan` 的对象。代码如下:
diff --git a/src/pages/demo/d2-crud/demo15/index.vue b/src/pages/demo/d2-crud/demo15/index.vue
new file mode 100644
index 00000000..191de3b5
--- /dev/null
+++ b/src/pages/demo/d2-crud/demo15/index.vue
@@ -0,0 +1,110 @@
+
+
+ 合并列
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/router/routes.js.REMOVED.git-id b/src/router/routes.js.REMOVED.git-id
index b59c2f15..b83c1c2d 100644
--- a/src/router/routes.js.REMOVED.git-id
+++ b/src/router/routes.js.REMOVED.git-id
@@ -1 +1 @@
-4e65388c5605f3cec8e0c073312fab0a4dbd14ba
\ No newline at end of file
+4ff3fa0ccc8c0d917bfa056ce7db7f4d9d4fb8c9
\ No newline at end of file