Skip to content

Commit f5f3de5

Browse files
author
huangshuwei
committed
2.0.0-beta.1
1 parent 770b9d6 commit f5f3de5

File tree

905 files changed

+102390
-20753
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

905 files changed

+102390
-20753
lines changed

Diff for: .babelrc

-5
This file was deleted.

Diff for: .browserslistrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
> 1%
2+
last 2 versions
3+
not dead

Diff for: .editorconfig

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[*.{js,jsx,ts,tsx,vue}]
2+
indent_style = space
3+
indent_size = 4
4+
trim_trailing_whitespace = true
5+
insert_final_newline = true

Diff for: .eslintignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
tests/*
2+
3+
examples/*
4+
5+
libs/*

Diff for: .eslintrc.js

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
// 参考 https://eslint.org/docs/user-guide/configuring
2+
module.exports = {
3+
root: true,
4+
env: {
5+
node: true
6+
},
7+
extends: ["plugin:vue/essential", "eslint:recommended"],
8+
rules: {
9+
"no-console": "off",
10+
"no-debugger": "off",
11+
"no-unused-vars": "off",
12+
"no-useless-escape": "off",
13+
// plugin:vue/recommended 规则
14+
"vue/attributes-order": "error",
15+
"vue/html-quotes": ["error", "double"],
16+
// plugin:vue/strongly-recommended 规则
17+
"vue/attribute-hyphenation": ["error", "always"],
18+
"vue/html-end-tags": "error",
19+
"vue/html-indent": "off",
20+
"vue/require-default-prop": "error",
21+
"vue/require-prop-types": "error",
22+
"vue/jsx-uses-vars": "error",
23+
"vue/order-in-components": [
24+
"error",
25+
{
26+
// methods 顺序和 官网推荐稍有不同
27+
order: [
28+
"el",
29+
"name",
30+
"parent",
31+
"functional",
32+
["delimiters", "comments"],
33+
["components", "directives", "filters"],
34+
"extends",
35+
"mixins",
36+
"inheritAttrs",
37+
"model",
38+
["props", "propsData"],
39+
"data",
40+
"computed",
41+
"watch",
42+
"methods",
43+
"LIFECYCLE_HOOKS",
44+
["template", "render"],
45+
"renderError"
46+
]
47+
}
48+
]
49+
},
50+
parserOptions: {
51+
parser: "babel-eslint"
52+
},
53+
globals: {}
54+
};

Diff for: .gitignore

+23-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,28 @@
1-
2-
1+
.DS_Store
32
node_modules
3+
dist
4+
libs/*
45

5-
.idea
6-
6+
# local env files
7+
.env.local
8+
.env.*.local
79

8-
dist
10+
# Log files
11+
debug.log
12+
npm-debug.log*
13+
yarn-debug.log*
14+
yarn-error.log*
15+
pnpm-debug.log*
916

10-
参考
17+
# Editor directories and files
18+
.idea
19+
.vscode
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?
1125

12-
npm-debug.log
26+
# test coverage
27+
coverage
28+
tests/unit/coverage

Diff for: .npmignore

-23
This file was deleted.

Diff for: README-CN.md

+49-54
Original file line numberDiff line numberDiff line change
@@ -4,60 +4,55 @@
44

55
# vue-easytable
66

7-
8-
## 介绍
9-
基于 vue2.x 的table组件
10-
11-
## API & 实例(如果访问不了说明被墙了,我也很无奈......)
12-
[API&实例](http://doc.huangsw.com/vue-easytable/app.html#/install)
13-
14-
## 功能
15-
- [x] [自适应,可以随着浏览器窗口改变自动适应](http://doc.huangsw.com/vue-easytable/app.html#/table/horizontalResize)
16-
- [x] [固定列,表头固定](http://doc.huangsw.com/vue-easytable/app.html#/table/fixedColumnsTitle)  
17-
- [x] [支持列宽拖动](http://doc.huangsw.com/vue-easytable/app.html#/table/columnWidthDrag)
18-
- [x] [支持单个字段排序和多个字段排序](http://doc.huangsw.com/vue-easytable/app.html#/table/sort)
19-
- [x] [自定义列、自定义单元格样式](http://doc.huangsw.com/vue-easytable/app.html#/table/cellStyle)
20-
- [x] [loading效果、自定义loading 等](http://doc.huangsw.com/vue-easytable/app.html#/table/loading)
21-
- [x] [自带分页组件](http://doc.huangsw.com/vue-easytable/app.html#/pagination)
22-
- [x] [单元格编辑](http://doc.huangsw.com/vue-easytable/app.html#/table/cellEdit)
23-
- [x] [支持单元格合并 (colSpan and rowSpan)](http://doc.huangsw.com/vue-easytable/app.html#/table/cellMerge)
24-
- [x] [支持 checkbox 多选功能](http://doc.huangsw.com/vue-easytable/app.html#/table/selection)
25-
- [x] [footer 汇总功能](http://doc.huangsw.com/vue-easytable/app.html#/table/footerSummary)
26-
- [x] [添加条件过滤功能](http://doc.huangsw.com/vue-easytable/app.html#/table/conditionFilters)
27-
- [ ] 添加导出 excel 功能
28-
- [ ] 添加导出 pdf 功能
29-
- [ ] 添加行展开功能
30-
- [ ] 纵向整列拖动
31-
32-
33-
## 安装
34-
35-
```javascript
36-
npm install vue-easytable --save-dev
37-
```
38-
39-
## 使用([更多](http://doc.huangsw.com/vue-easytable/app.html)
40-
41-
42-
```javascript
43-
// 导入 css
44-
import 'vue-easytable/libs/themes-base/index.css'
45-
46-
// 导入 table 组件 和分页组件
47-
import {VTable,VPagination} from 'vue-easytable'
48-
49-
// 将组件注册到全局
50-
Vue.component(VTable.name, VTable)
51-
Vue.component(VPagination.name, VPagination)
52-
```
53-
54-
> 你也可以 **[通过 cdn 使用](http://doc.huangsw.com/vue-easytable/app.html#/install)**
55-
56-
57-
## 讨论组
58-
使用 Discord 聊天室 (推荐)
59-
60-
[点击进入 Discord Chat Room](https://discord.gg/gBm3k6r)
7+
## Introduction
8+
一个基于 Vue2.x 的表格组件
9+
### 特点
10+
11+
- 使用简单
12+
- 功能强大
13+
- 单元测试覆盖率大于 80%
14+
15+
### Supports
16+
17+
- [x] 国际化
18+
- [x] 主题定制
19+
- [x] 内置主题
20+
- [x] 固定列
21+
- [x] 固定表头
22+
- [x] 表头分组
23+
- [x] 筛选
24+
- [x] 排序
25+
- [x] 单元格样式
26+
- [x] 单元格合并
27+
- [x] 单元格自定义
28+
- [x] 单元格选择(键盘操作)
29+
- [x] 单元格省略
30+
- [x] 行单选
31+
- [x] 行多选
32+
- [x] 行展开
33+
- [x] 行样式
34+
- [x] footer
35+
- [x] 分页
36+
- [x] 虚拟滚动
37+
- [x] 自定义事件
38+
- [x] 内置loading
39+
40+
### 支持环境
41+
42+
- 现代浏览器和 IE10及以上
43+
44+
| [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt="IE / Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>IE / Edge | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Firefox | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Chrome | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Safari | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/opera/opera_48x48.png" alt="Opera" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Opera |
45+
| --- | --- | --- | --- | --- |
46+
| IE10, IE11, Edge | last 2 versions | last 2 versions | last 2 versions | last 2 versions |
47+
48+
49+
### 如何贡献
50+
51+
如果你希望参与贡献,欢迎 [Pull Request](https://github.com/huangshuwei/vue-easytable/pulls)
52+
53+
## Discussion 讨论组
54+
55+
[加入 Discord 讨论](https://discord.gg/gBm3k6r)
6156

6257
## License
6358
http://www.opensource.org/licenses/mit-license.php

Diff for: README.md

+43-46
Original file line numberDiff line numberDiff line change
@@ -10,53 +10,50 @@
1010
## Introduction
1111
Based on vue2.x flexible table components.
1212

13-
## API & Examples(如果访问不了说明被墙了,我也很无奈......)
14-
[API&Examples](http://doc.huangsw.com/vue-easytable/app.html#/install)
15-
16-
## Features
17-
- [x] [Adaptive, you can automatically adapt to the browser window changes](http://doc.huangsw.com/vue-easytable/app.html#/table/horizontalResize)
18-
- [x] [Fixed column, header fixed](http://doc.huangsw.com/vue-easytable/app.html#/table/fixedColumnsTitle)  
19-
- [x] [Support column width drag](http://doc.huangsw.com/vue-easytable/app.html#/table/columnWidthDrag)
20-
- [x] [Supports single field sorting and multiple field sorting](http://doc.huangsw.com/vue-easytable/app.html#/table/sort)
21-
- [x] [Custom columns, custom cell styles](http://doc.huangsw.com/vue-easytable/app.html#/table/cellStyle)
22-
- [x] [Loading effects, custom loading, etc](http://doc.huangsw.com/vue-easytable/app.html#/table/loading)
23-
- [x] [Own paging component](http://doc.huangsw.com/vue-easytable/app.html#/pagination)
24-
- [x] [Cell Editing](http://doc.huangsw.com/vue-easytable/app.html#/table/cellEdit)
25-
- [x] [Support cell merge (colSpan and rowSpan)](http://doc.huangsw.com/vue-easytable/app.html#/table/cellMerge)
26-
- [x] [Support checkbox selection](http://doc.huangsw.com/vue-easytable/app.html#/table/selection)  
27-
- [x] [Footer summary](http://doc.huangsw.com/vue-easytable/app.html#/table/footerSummary)
28-
- [x] [Conditional filter](http://doc.huangsw.com/vue-easytable/app.html#/table/conditionFilters)
29-
- [ ] Export excel
30-
- [ ] Export PDF
31-
- [ ] Row expansion
32-
- [ ] Vertical column drag
33-
34-
35-
## Install
36-
37-
```javascript
38-
npm install vue-easytable --save-dev
39-
```
40-
41-
## Usage([more usage](http://doc.huangsw.com/vue-easytable/app.html)
42-
43-
44-
```javascript
45-
// import css
46-
import 'vue-easytable/libs/themes-base/index.css'
47-
48-
// import table and pagination comp
49-
import {VTable,VPagination} from 'vue-easytable'
50-
51-
// Register to global
52-
Vue.component(VTable.name, VTable)
53-
Vue.component(VPagination.name, VPagination)
54-
```
55-
56-
> also you can use it **[by cdn](http://doc.huangsw.com/vue-easytable/app.html#/install)**
57-
13+
### Features
14+
15+
- Easy to use
16+
- Powerful
17+
- Unit test coverage greater than 80%
18+
19+
### Supports
20+
21+
- [x] Internationalization
22+
- [x] Theme Custom
23+
- [x] Built in theme
24+
- [x] Column Fixed
25+
- [x] Header Fixed
26+
- [x] Header Grouping
27+
- [x] Filter
28+
- [x] Sort
29+
- [x] Cell Style
30+
- [x] Cell Span
31+
- [x] Cell Custom
32+
- [x] Cell Selection(keyboard operation)
33+
- [x] Cell Ellipsis
34+
- [x] Row Radio
35+
- [x] Row Checkbox
36+
- [x] Row Expand
37+
- [x] Row Style
38+
- [x] Footer Summary
39+
- [x] Pagination
40+
- [x] Virtual Scroll
41+
- [x] Event Custom
42+
- [x] Loading component
43+
44+
### Environment Support
45+
46+
- Modern browser and ie10 and above
47+
48+
| [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt="IE / Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>IE / Edge | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Firefox | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Chrome | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Safari | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/opera/opera_48x48.png" alt="Opera" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Opera |
49+
| --- | --- | --- | --- | --- |
50+
| IE10, IE11, Edge | last 2 versions | last 2 versions | last 2 versions | last 2 versions |
51+
52+
53+
### How to contribute
54+
55+
If you want to contribute,just create a [Pull Request](https://github.com/huangshuwei/vue-easytable/pulls)
5856
## Discussion group
59-
Group discussion on Discord (Recommend)
6057

6158
[Join in Discord Chat Room](https://discord.gg/gBm3k6r)
6259

Diff for: babel.config.js

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module.exports = {
2+
comments: false,
3+
plugins: ["transform-vue-jsx"],
4+
/* presets: [["env", { modules: false }]], */
5+
env: {
6+
test: {
7+
presets: [["env", { targets: { node: "current" } }]]
8+
}
9+
}
10+
};

Diff for: build/build-copy-files.js

-24
This file was deleted.

0 commit comments

Comments
 (0)