Skip to content
This repository was archived by the owner on Apr 1, 2022. It is now read-only.

Commit 91e1283

Browse files
author
Ken Berkeley
committed
bak
1 parent e023e60 commit 91e1283

File tree

12 files changed

+26
-3
lines changed

12 files changed

+26
-3
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Vue2 Datatable
2+
> 做 Vue.js 下最好的 Datatable 组件
3+
4+
任何开源的 datatable 都未必能满足所有的业务需求,因此本 README 致力于让您能在理解设计以及源码的基础上,可以自行定制出适合您业务需求的 datatable
5+
6+
## 优势
7+
极其简单
8+
源码模块化,可读性好
9+
依赖少
10+
可移植性好(换成其他 UI 框架基本也就是换 class)
11+
特色:支持表头设置(支持保存本地) 无限嵌套组件
12+
扁平化组件
13+
14+
## 设计理念
15+
full ES5
16+
关键:动态组件(全局化 局部化)
17+
反范式:允许子组件修改状态,毋须引入鸡肋的状态管理
18+
xprops 传递其余属性
19+
20+
## 源码技巧
21+
缩短 .map

example/Advanced.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export default {
6464
// otherwise the new added properties would not be reactive
6565
query: this.row ? { uid: this.row.friends } : {},
6666
67-
// any other things that you want to pass into dynamic components (thComp / tdComp / nested Comp)
67+
// any other staff that you want to pass into dynamic components (thComp / tdComp / nested Comp)
6868
xprops: {
6969
eventbus: new Vue()
7070
}

example/comps/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,7 @@ export default {
66
Email: require('./td-Email'),
77
IP: require('./td-IP'),
88
Opt: require('./td-Opt'),
9-
FilterTh: require('./th-FilterTh')
9+
// [Vue warn]: Do not use built-in or reserved HTML elements as component id: Filter
10+
// Filter: require('./th-Filter')
11+
FilterTh: require('./th-Filter')
1012
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)