├── LICENSE └── README.md /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 黄晓佳 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # vuex-analysis 2 | 3 | vuex 2.0 源码解读 4 | 5 | ## 文章 6 | 7 | 1. [vuex 解读之 install](https://github.com/cobish/vuex-analysis/issues/1) 8 | 2. [vuex 解读之 state](https://github.com/cobish/vuex-analysis/issues/2) 9 | 3. [vuex 解读之 mapState](https://github.com/cobish/vuex-analysis/issues/4) 10 | 4. [vuex 解读之 getter](https://github.com/cobish/vuex-analysis/issues/5) 11 | 5. [vuex 解读之 mapGetters](https://github.com/cobish/vuex-analysis/issues/6) 12 | 6. [vuex 解读之 mutation](https://github.com/cobish/vuex-analysis/issues/7) 13 | 7. [vuex 解读之 mapMutations](https://github.com/cobish/vuex-analysis/issues/8) 14 | 8. [vuex 解读之 action](https://github.com/cobish/vuex-analysis/issues/9) 15 | 9. [vuex 解读之 mapActions](https://github.com/cobish/vuex-analysis/issues/10) 16 | 10. [vuex 解读之 module](https://github.com/cobish/vuex-analysis/issues/11) 17 | 11. [vuex 解读之 namespaced](https://github.com/cobish/vuex-analysis/issues/12) 18 | 19 | ## 计划 20 | 21 | 计划主要是对 vuex 的 state、getter、mutation、action 和 module 做一个深入的了解,对插件与热重载暂时忽略。 22 | 23 | - [x] vuex 安装原理。 24 | - [x] state 实现原理。 25 | - [x] mapState 实现原理。 26 | - [x] getter 实现原理。 27 | - [x] mapGetters 实现原理。 28 | - [x] mutation 实现原理。 29 | - [x] mapMutations 实现原理。 30 | - [x] action 实现原理。 31 | - [x] mapActions 实现原理。 32 | - [x] module 实现原理。 33 | 34 | ## 版本 35 | 36 | 下载 [vuex 2.0.0](https://github.com/vuejs/vuex/tree/v2.0.0) 源码,结合文章对 vuex 进行一个深入的了解。 37 | 38 | ## License 39 | 40 | MIT 41 | 42 | --------------------------------------------------------------------------------