摘要: 直接代码解说 store/index.js (简单书写) export default new Vuex.Store({ state: { add: 10 }, mutations: { change(state,a) { state.add += a } } }) 在一般的情况下,我们想要拿到ad 阅读全文
posted @ 2020-07-10 15:48 coder_xyf 阅读(374) 评论(0) 推荐(0)
摘要: 官网解释 <transition> 元素作为单个元素/组件的过渡效果。<transition> 只会把过渡效果应用到其包裹的内容上,而不会额外渲染 DOM 元素,也不会出现在可被检查的组件层级中。 Props: name - string,用于自动生成 CSS 过渡类名。例如:name: 'fade 阅读全文
posted @ 2020-07-10 11:05 coder_xyf 阅读(588) 评论(0) 推荐(0)