10 2021 档案

摘要:setup() { //数据 let num = ref(0) let msg = ref('6666') let person = reactive({ name:'大王', age:18, job:{ j1:{ money:20 } } }) //情况1:监视ref定义的数据(watch有第三个 阅读全文
posted @ 2021-10-25 22:37 幻影之舞 阅读(1137) 评论(0) 推荐(0)
摘要:import { reactive, computed } from "vue"; export default { name: "HelloWorld", setup() { let person = reactive({ firstName: "李", lastName: "晓玲", }); / 阅读全文
posted @ 2021-10-25 21:55 幻影之舞 阅读(583) 评论(0) 推荐(0)
摘要:安装; npm i vuex 创建store文件夹,包含count.js perosn.js 以及汇总的index.js count.js: export default{ namespaced:true, actions:{ waitJia(context,val){ context.commit 阅读全文
posted @ 2021-10-18 23:10 幻影之舞 阅读(48) 评论(0) 推荐(0)
摘要:全部引入 安装:npm i element-ui main.js: //引入element import ElementUI from 'element-ui'; //引入element全部样式 import 'element-ui/lib/theme-chalk/index.css'; Vue.u 阅读全文
posted @ 2021-10-16 22:55 幻影之舞 阅读(571) 评论(0) 推荐(0)