├── r.bat ├── .gitignore ├── Img ├── User示例图片.png ├── 无限分级菜单示例.png ├── TestGrid示例图片.png └── vueStrap的demo示例.png ├── vueTest使用说明.docx ├── vueTest使用说明.pdf ├── src ├── assets │ ├── logo.png │ └── css │ │ └── custom.css ├── components │ ├── User │ │ ├── TestTabs.vue │ │ ├── TestGrid.vue │ │ ├── User.vue │ │ └── TestVueStrap.vue │ └── Common │ │ ├── Field.vue │ │ ├── FilterPane.vue │ │ ├── Pagination.vue │ │ ├── GridBase.vue │ │ ├── Menu.vue │ │ └── Grid.vue ├── index.html └── main.js ├── .babelrc ├── test └── unit │ ├── index.js │ └── Hello.spec.js ├── .eslintrc.js ├── LICENSE ├── README.md ├── package.json └── db.json /r.bat: -------------------------------------------------------------------------------- 1 | npm run dev -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules/ 3 | dist/ 4 | npm-debug.log 5 | -------------------------------------------------------------------------------- /Img/User示例图片.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilsonDebug/VueTest/HEAD/Img/User示例图片.png -------------------------------------------------------------------------------- /Img/无限分级菜单示例.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilsonDebug/VueTest/HEAD/Img/无限分级菜单示例.png -------------------------------------------------------------------------------- /vueTest使用说明.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilsonDebug/VueTest/HEAD/vueTest使用说明.docx -------------------------------------------------------------------------------- /vueTest使用说明.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilsonDebug/VueTest/HEAD/vueTest使用说明.pdf -------------------------------------------------------------------------------- /src/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilsonDebug/VueTest/HEAD/src/assets/logo.png -------------------------------------------------------------------------------- /Img/TestGrid示例图片.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilsonDebug/VueTest/HEAD/Img/TestGrid示例图片.png -------------------------------------------------------------------------------- /Img/vueStrap的demo示例.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilsonDebug/VueTest/HEAD/Img/vueStrap的demo示例.png -------------------------------------------------------------------------------- /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["es2015", "stage-2"], 3 | "plugins": ["transform-runtime"], 4 | "comments": false 5 | } 6 | -------------------------------------------------------------------------------- /test/unit/index.js: -------------------------------------------------------------------------------- 1 | // Polyfill fn.bind() for PhantomJS 2 | /* eslint-disable no-extend-native */ 3 | Function.prototype.bind = require('function-bind') 4 | 5 | // require all test files (files that ends with .spec.js) 6 | var testsContext = require.context('.', true, /\.spec$/) 7 | testsContext.keys().forEach(testsContext) 8 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | // https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style 4 | extends: 'standard', 5 | // required to lint *.vue files 6 | plugins: [ 7 | 'html' 8 | ], 9 | // add your custom rules here 10 | 'rules': { 11 | // allow paren-less arrow functions 12 | 'arrow-parens': 0, 13 | // allow debugger during development 14 | 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /test/unit/Hello.spec.js: -------------------------------------------------------------------------------- 1 | /* global describe, it, expect */ 2 | 3 | import Vue from 'vue' 4 | import Hello from 'src/components/Hello' 5 | 6 | describe('Hello.vue', () => { 7 | it('should render correct contents', () => { 8 | const vm = new Vue({ 9 | template: '
| 14 | | 17 | {{key.name | capitalize}} 18 | 19 | 20 | | 21 |
|---|---|
| 26 | | 27 | {{entry[key.name]}} 28 | | 29 |
| 49 | | {{key.title}} | 50 |
|---|---|
| 55 | |
56 | |
58 |