From 1c9e9e241877986d6ea1ddcba0e97e105173ce66 Mon Sep 17 00:00:00 2001
From: tangjinzhou <415800467@qq.com>
Date: Mon, 23 Dec 2019 22:11:25 +0800
Subject: [PATCH] docs: add resize table demo
---
components/table/demo/index.vue | 5 +
components/table/demo/resizable-column.vue | 142 +++++++++++++++++++++
package.json | 3 +-
site/dev.js | 2 +-
4 files changed, 150 insertions(+), 2 deletions(-)
create mode 100755 components/table/demo/resizable-column.vue
diff --git a/components/table/demo/index.vue b/components/table/demo/index.vue
index 321c05fc6..0f545b554 100644
--- a/components/table/demo/index.vue
+++ b/components/table/demo/index.vue
@@ -20,6 +20,8 @@ import RowSelectionCustom from './row-selection-custom.md';
import RowSelection from './row-selection.md';
import Size from './size.md';
import Template from './template.md';
+import ResizableColumn from './resizable-column';
+import ResizableColumnString from '!raw-loader!./resizable-column';
import CN from '../index.zh-CN.md';
import US from '../index.en-US.md';
@@ -83,6 +85,9 @@ export default {
+
+
+
diff --git a/components/table/demo/resizable-column.vue b/components/table/demo/resizable-column.vue
new file mode 100755
index 000000000..26eec4926
--- /dev/null
+++ b/components/table/demo/resizable-column.vue
@@ -0,0 +1,142 @@
+
+#### 可伸缩列
+集成 [vue-draggable-resizable](https://github.com/mauricius/vue-draggable-resizable) 来实现可伸缩列。
+
+
+
+#### Resizable column
+Implement resizable column by integrate with [vue-draggable-resizable](https://github.com/mauricius/vue-draggable-resizable).
+
+
+
+
+
+ Delete
+
+
+
+
+
+
diff --git a/package.json b/package.json
index 1c6f44e3d..c65973060 100644
--- a/package.json
+++ b/package.json
@@ -126,7 +126,7 @@
"lint-staged": "^9.0.0",
"markdown-it": "^10.0.0",
"markdown-it-anchor": "^5.0.0",
- "marked": "^0.8.0",
+ "marked": "0.3.7",
"merge2": "^1.2.1",
"mini-css-extract-plugin": "^0.9.0",
"minimist": "^1.2.0",
@@ -155,6 +155,7 @@
"vue": "^2.6.11",
"vue-antd-md-loader": "^1.1.0",
"vue-clipboard2": "0.3.1",
+ "vue-draggable-resizable": "^2.1.0",
"vue-eslint-parser": "^7.0.0",
"vue-i18n": "^8.3.2",
"vue-infinite-scroll": "^2.0.2",
diff --git a/site/dev.js b/site/dev.js
index 049cfdc26..808744b02 100644
--- a/site/dev.js
+++ b/site/dev.js
@@ -12,7 +12,7 @@ import Api from './components/api';
import './components';
import demoBox from './components/demoBox';
import demoContainer from './components/demoContainer';
-import Test from '../components/tree/demo/index.vue';
+import Test from '../components/table/demo/index.vue';
import zhCN from './theme/zh-CN';
import enUS from './theme/en-US';
Vue.use(Vuex);