摘要:
先创建一个cart组件 <template> <div> <ListItem></ListItem> </div> </template> <script> import ListItem from "./ListItem"; export default { components: { ListI 阅读全文
posted @ 2021-01-13 15:32
Tsunami黄嵩粟
阅读(160)
评论(0)
推荐(1)
摘要:
https://vuex.vuejs.org/zh/ Vuex 是一个专为 Vue.js 应用程序开发的状态管理模式,Vuex是实现组件全局状态(数据)管理的一种机制,可以方便的实现组件之间的数据共享。如果您不打算开发大型单页应用,使用 Vuex 可能是繁琐冗余的。如果您的应用够简单,最好不要使用V 阅读全文
posted @ 2021-01-13 13:12
Tsunami黄嵩粟
阅读(107)
评论(0)
推荐(1)
摘要:
vant: https://youzan.github.io/vant/#/zh-CN/ 安装 cnpm i -S vant 按需加载配置 # 在 babel.config.js 中配置 module.exports = { plugins: [ ['import', { libraryName: 阅读全文
posted @ 2021-01-13 11:18
Tsunami黄嵩粟
阅读(892)
评论(0)
推荐(1)