随笔分类 - vue3
摘要:组件内部: <slot name="header"></slot> 使用: <div> <template v-slot:header></template> </div>
阅读全文
摘要:const state = reactive({ name: 'dashboard', userInfo: null, hasBack: false }) return { ...toRefs(state), }reactive 只能用于比较复杂的数据类型ref可用于任何类型的数据创建响应式tore
阅读全文
摘要:<template> <div> <el-select @visible-change="selectClose" v-model="modelValueLabel" :filter-method="selectFilterMethod" style="min-width: 180px;" :siz
阅读全文
摘要:参考自:https://blog.csdn.net/qq_47452289/article/details/111944935 store/account.js const state={ userName: null } const actions = { login({commit}, user
阅读全文
摘要:初识vue3 composition API 1.createApp 创建一个APP实例 // 先导入createApp模块 import { createApp } from 'vue'; import App from './App.vue'; // 使用createApp方法将我们的入口文件放
阅读全文

浙公网安备 33010602011771号