
vue
文章平均质量分 94
maopolunzi
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
vuex:store,mapState,getters,mapGetters,mutation及常量,mapMutations,actions,mapActions,module、命名空间
什么是状态管理 复杂的状态管理 Vuex的状态管理 Vuex的状态管理 Vuex的安装 创建Store 组件中使用store Vue devtool 手动安装devtool 单一状态树 组件获取状态 在setup中使用mapState getters的基本使用 getters第二个参数 getters的返回函数 mapGetters的辅助函数 Mutation基本使用 Mutation携带数据 Mutation常量类型 mapMut原创 2022-05-29 16:00:09 · 745 阅读 · 0 评论 -
vue3 Composition API(二):computed,watchEffect,watch
computed 01_computed的使用.vue <template> <div> <h2>{{ fullName }}</h2> <button @click="changeName">修改firstName</button> </div> </template> <script> import { ref, computed } from "vue";原创 2022-05-29 15:37:03 · 170 阅读 · 0 评论 -
vue3 Composition API(一):setup的this、参数、返回值,reactive ,ref,readonly,toRefs,toRef,shallowRef
Options API的弊端 大组件的逻辑分散 认识Composition API setup函数的参数 setup函数的返回值 setup不可以使用this App.vue <template> <div> <home message="hahahaha" id="aaa" class="bbbb"></home> </div> </template> <script>原创 2022-05-29 15:34:49 · 1164 阅读 · 0 评论