随笔分类 -  vue

摘要:4.29 手写 vuex let Vue class Store{ constructor(options){ // step1 step1注册$store后让页面能正常显示state // this.state = options.state // step2实现mutations actions 阅读全文
posted @ 2021-04-30 11:43 心中有一海 阅读(94) 评论(0) 推荐(0)
摘要:需要在el-drawer也就是抽屉打开时才能访问到 阅读全文
posted @ 2021-02-03 14:21 心中有一海 阅读(1643) 评论(0) 推荐(0)
摘要:import Vue from 'vue' import Store from '@/store' /** * 权限控制按钮显示指令 * @params {Array[String,Boolean]} [权限code码,其他控制条件] */ function changeHaspms(el, bin 阅读全文
posted @ 2021-01-28 13:59 心中有一海 阅读(704) 评论(0) 推荐(0)
摘要:Object.freeze() 可以冻结一个对象。被冻结的对象有以下几个特点: 不能添加新属性 不能删除已有属性 不能修改已有属性的可枚举性、可配置性、可写性 不能修改已有属性的值 不能修改原型 属于浅冻结,复杂对象里面的对象仍然可以修改 我们知道,const本意是无法修改的一个值,但只对简单类型生 阅读全文
posted @ 2021-01-21 10:48 心中有一海 阅读(935) 评论(0) 推荐(0)
摘要:import { defineComponent, ref, reactive, onMounted } from 'vue' import './index.scss' export default defineComponent({ name: 'Music', setup(props:Prop 阅读全文
posted @ 2021-01-16 13:24 心中有一海 阅读(801) 评论(0) 推荐(0)
摘要:<el-select v-model="form.value" placeholder="请选择"> <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"> </el- 阅读全文
posted @ 2020-12-23 21:29 心中有一海 阅读(2669) 评论(0) 推荐(0)