From 517c1959d8b72e62b80c503d2ba89cdf48c96313 Mon Sep 17 00:00:00 2001
From: chenghongxing <1126263215@qq.com>
Date: Fri, 2 Oct 2020 23:24:26 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20add=20AdvanceTable.vue=20component;=20:?=
=?UTF-8?q?star:=20=E6=96=B0=E5=A2=9E=EF=BC=9A=E9=AB=98=E7=BA=A7=E8=A1=A8?=
=?UTF-8?q?=E6=A0=BC=EF=BC=9B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../table/advance/ActionColumns.vue | 166 +++++++++++
src/components/table/advance/ActionSize.vue | 44 +++
src/components/table/advance/AdvanceTable.vue | 239 ++++++++++++++++
src/components/table/advance/SearchArea.vue | 262 ++++++++++++++++++
src/components/table/advance/index.js | 2 +
src/pages/components/Table.vue | 168 +++++++++++
src/router/config.js | 5 +
7 files changed, 886 insertions(+)
create mode 100644 src/components/table/advance/ActionColumns.vue
create mode 100644 src/components/table/advance/ActionSize.vue
create mode 100644 src/components/table/advance/AdvanceTable.vue
create mode 100644 src/components/table/advance/SearchArea.vue
create mode 100644 src/components/table/advance/index.js
create mode 100644 src/pages/components/Table.vue
diff --git a/src/components/table/advance/ActionColumns.vue b/src/components/table/advance/ActionColumns.vue
new file mode 100644
index 0000000..667c3d8
--- /dev/null
+++ b/src/components/table/advance/ActionColumns.vue
@@ -0,0 +1,166 @@
+
+
+
+
+
+
+
+ onCheckChange(e, col)"/>
+
+ {{col.title}}:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/table/advance/ActionSize.vue b/src/components/table/advance/ActionSize.vue
new file mode 100644
index 0000000..44aef65
--- /dev/null
+++ b/src/components/table/advance/ActionSize.vue
@@ -0,0 +1,44 @@
+
+
+
+
+
+
+
+ 默认
+
+
+ 中等
+
+
+ 紧密
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/table/advance/AdvanceTable.vue b/src/components/table/advance/AdvanceTable.vue
new file mode 100644
index 0000000..cf36384
--- /dev/null
+++ b/src/components/table/advance/AdvanceTable.vue
@@ -0,0 +1,239 @@
+
+
+
+
+
+ {{title}}
+
+ 高级表格
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/table/advance/SearchArea.vue b/src/components/table/advance/SearchArea.vue
new file mode 100644
index 0000000..ef1b2da
--- /dev/null
+++ b/src/components/table/advance/SearchArea.vue
@@ -0,0 +1,262 @@
+
+
+
+
+
+ {{col.title}}:
+
+
+
+
+
+
+ {{col.title}}:
+
+
+
onCalendarChange(time, timeStr, col)" @openChange="open => onCalendarOpenChange(open, col)" class="time-picker" size="small" />
+
+
+
+ {{col.title}}:
+
+
+
+
+
+
+ {{col.title}}:
+
+
+
onCalendarChange(date, dateStr, col)" @openChange="open => onCalendarOpenChange(open, col)" show-time class="datetime-picker" size="small" />
+
+
+
+ {{col.title}}:
+
+
+
+
+
+
+
+
+ {{col.title}}
+
+
+
: {{col | searchValue}}
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/table/advance/index.js b/src/components/table/advance/index.js
new file mode 100644
index 0000000..bb4dab3
--- /dev/null
+++ b/src/components/table/advance/index.js
@@ -0,0 +1,2 @@
+import AdvanceTable from './AdvanceTable'
+export default AdvanceTable
\ No newline at end of file
diff --git a/src/pages/components/Table.vue b/src/pages/components/Table.vue
new file mode 100644
index 0000000..87cc41d
--- /dev/null
+++ b/src/pages/components/Table.vue
@@ -0,0 +1,168 @@
+
+
+
+
+ 状态
+
+
+ {{text ? '是' : '否'}}
+
+
+ {{text | statusStr}}
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/router/config.js b/src/router/config.js
index b90d976..cac44b5 100644
--- a/src/router/config.js
+++ b/src/router/config.js
@@ -208,6 +208,11 @@ const options = {
path: 'palette',
name: '颜色复选框',
component: () => import('@/pages/components/Palette')
+ },
+ {
+ path: 'table',
+ name: '高级表格',
+ component: () => import('@/pages/components/Table')
}
]
},