├── component.html
├── font
├── iconfont.css
├── iconfont.eot
├── iconfont.svg
├── iconfont.ttf
└── iconfont.woff
├── index.html
├── index2.html
├── index3.html
├── lib
├── mock.js
├── vue.js
└── vuex.js
└── readme.md
/component.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Document
8 |
9 |
10 |
11 |
12 | {{data}}
13 |
14 | - {{x}}
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
30 |
99 |
100 |
101 |
--------------------------------------------------------------------------------
/font/iconfont.css:
--------------------------------------------------------------------------------
1 |
2 | @font-face {font-family: "iconfont";
3 | src: url('iconfont.eot?t=1499842999897'); /* IE9*/
4 | src: url('iconfont.eot?t=1499842999897#iefix') format('embedded-opentype'), /* IE6-IE8 */
5 | url('iconfont.woff?t=1499842999897') format('woff'), /* chrome, firefox */
6 | url('iconfont.ttf?t=1499842999897') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
7 | url('iconfont.svg?t=1499842999897#iconfont') format('svg'); /* iOS 4.1- */
8 | }
9 |
10 | .iconfont {
11 | font-family:"iconfont" !important;
12 | font-size:16px;
13 | font-style:normal;
14 | -webkit-font-smoothing: antialiased;
15 | -moz-osx-font-smoothing: grayscale;
16 | }
17 |
18 | .icon-down:before { content: "\e600"; }
19 |
20 | .icon-up:before { content: "\e61b"; }
21 |
22 |
--------------------------------------------------------------------------------
/font/iconfont.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JackCrysler/vue-start/85237db5331ac7dd3efb07888fb512c485f5c608/font/iconfont.eot
--------------------------------------------------------------------------------
/font/iconfont.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
44 |
--------------------------------------------------------------------------------
/font/iconfont.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JackCrysler/vue-start/85237db5331ac7dd3efb07888fb512c485f5c608/font/iconfont.ttf
--------------------------------------------------------------------------------
/font/iconfont.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JackCrysler/vue-start/85237db5331ac7dd3efb07888fb512c485f5c608/font/iconfont.woff
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Document
8 |
9 |
10 |
11 |
12 |
13 |
14 |
53 |
54 |
--------------------------------------------------------------------------------
/index2.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Document
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
{{txt}}
16 |
17 |
18 |
19 |
20 | 序号 |
21 | 姓名 |
22 | 年龄 |
23 | 性别 |
24 | 证件号码 |
25 |
26 |
27 |
28 |
29 | {{i.id}} |
30 | {{i.name}} |
31 | {{i.age}} |
32 | {{i.gender}} |
33 | {{i.idCard}} |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
95 |
96 |
--------------------------------------------------------------------------------
/index3.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Document
8 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
70 |
71 |
72 |
--------------------------------------------------------------------------------
/lib/vuex.js:
--------------------------------------------------------------------------------
1 | /**
2 | * vuex v2.3.0
3 | * (c) 2017 Evan You
4 | * @license MIT
5 | */
6 | (function (global, factory) {
7 | typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
8 | typeof define === 'function' && define.amd ? define(factory) :
9 | (global.Vuex = factory());
10 | }(this, (function () { 'use strict';
11 |
12 | var applyMixin = function (Vue) {
13 | var version = Number(Vue.version.split('.')[0]);
14 |
15 | if (version >= 2) {
16 | var usesInit = Vue.config._lifecycleHooks.indexOf('init') > -1;
17 | Vue.mixin(usesInit ? { init: vuexInit } : { beforeCreate: vuexInit });
18 | } else {
19 | // override init and inject vuex init procedure
20 | // for 1.x backwards compatibility.
21 | var _init = Vue.prototype._init;
22 | Vue.prototype._init = function (options) {
23 | if ( options === void 0 ) options = {};
24 |
25 | options.init = options.init
26 | ? [vuexInit].concat(options.init)
27 | : vuexInit;
28 | _init.call(this, options);
29 | };
30 | }
31 |
32 | /**
33 | * Vuex init hook, injected into each instances init hooks list.
34 | */
35 |
36 | function vuexInit () {
37 | var options = this.$options;
38 | // store injection
39 | if (options.store) {
40 | this.$store = options.store;
41 | } else if (options.parent && options.parent.$store) {
42 | this.$store = options.parent.$store;
43 | }
44 | }
45 | };
46 |
47 | var devtoolHook =
48 | typeof window !== 'undefined' &&
49 | window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
50 |
51 | function devtoolPlugin (store) {
52 | if (!devtoolHook) { return }
53 |
54 | store._devtoolHook = devtoolHook;
55 |
56 | devtoolHook.emit('vuex:init', store);
57 |
58 | devtoolHook.on('vuex:travel-to-state', function (targetState) {
59 | store.replaceState(targetState);
60 | });
61 |
62 | store.subscribe(function (mutation, state) {
63 | devtoolHook.emit('vuex:mutation', mutation, state);
64 | });
65 | }
66 |
67 | /**
68 | * Get the first item that pass the test
69 | * by second argument function
70 | *
71 | * @param {Array} list
72 | * @param {Function} f
73 | * @return {*}
74 | */
75 | /**
76 | * Deep copy the given object considering circular structure.
77 | * This function caches all nested objects and its copies.
78 | * If it detects circular structure, use cached copy to avoid infinite loop.
79 | *
80 | * @param {*} obj
81 | * @param {Array