随笔分类 - Vue
摘要:方法1: <div class="flex peopleRygl-main-left-nr03 " :style="divStyleZdfw() "> return{ divStyle11: { color: 'red', fontSize: '14px', backgroundColor: 'ye
阅读全文
摘要:element-ui组件使用custom-class属性 // 不能加scoped,加了失效 <style lang="scss"> </style>
阅读全文
摘要:1.src/router 下 route.ts 加入前端静态路由 dynamicRoutes: 这里是跳转后带菜单的 { path: '/pro/proProjectTaskAcceptance/index.vue', name: '项目验收', component: () => import('/
阅读全文
摘要:https://blog.csdn.net/weixin_48447589/article/details/130944219 https://blog.csdn.net/qq_42192641/article/details/134253667
阅读全文
摘要:router-link https://blog.csdn.net/lixinyi0622/article/details/107206218/ https://blog.51cto.com/u_15082403/4634663 <router-link to="/pro/projectcontan
阅读全文
摘要:在template标签上使用v-for报错 cannot be keyed. Place the key on real elements instead 查了一下百度,是因为key需要绑定在真实的元素上 ``` ``` 解决方法: 1、将template标签替换成别的标签 2、将key绑定值写在别
阅读全文
摘要:https://blog.csdn.net/qq_41579104/article/details/120997444
阅读全文
摘要:表结构 `id` varchar(32) 'id', `house_name` varchar(50) '名称', `pid` varchar(32) '父级节点id', `path` varchar(8000) '完整路径', `path_name` varchar(4900) '完整路径名称',
阅读全文
摘要:<template> <div> <el-dialog :title="'新建'" :close-on-click-modal="false" append-to-body :visible.sync="visible"> <el-form :model="dataForm" :rules="dat
阅读全文
摘要:https://blog.csdn.net/m0_66722601/article/details/128254991 https://blog.csdn.net/DazzlingPing/article/details/128300909 重要参考 https://www.cnblogs.com/
阅读全文
摘要:在vue开发的过程中,常用到暴露和引入,常见的暴露与引入方式是通过export暴露通过import引入,下面分别讲解一下:分别暴露、统一暴露、默认暴露的应用场景和使用方法 一、分别暴露 应用场景:用于一个文件内暴露多个属性的场景,分别暴露,每一个属性都进行暴露 //暴露 export const a
阅读全文
摘要:let list = [ this.$refs.jwryIndex.checkForm('form'), this.$refs.jwryCommonDialog.checkForm('form'), ]; Promise.all(list).then((res) => { let param = {
阅读全文
摘要:三元运算符和四元运算符一般用在赋值操作或者标签内动态绑定class的操作 三元运算符: <div :class=" this.index==0 ? 'css1' : 'css2' "></div> 四元运算符: <div :class=" this.index==0 ? 'css3' : ( thi
阅读全文
摘要:https://blog.csdn.net/weixin_42265852/article/details/101021678
阅读全文
摘要:https://blog.csdn.net/weixin_47356044/article/details/124474314 https://blog.csdn.net/weixin_45525272/article/details/125471426 设置路由 https://blog.csdn
阅读全文
摘要://接收 props: { parameter: { default: null, type: String } } props: ['option','stateObj'], //取值 let parameter = JSON.parse(this.parameter) if (parameter
阅读全文
摘要:<el-form-item label="书记姓名" prop="bossName" :rules="[{required: true, message: '书记姓名不能为空', trigger: 'blur'}]" > <el-autocomplete style="width:100%" v-m
阅读全文
摘要:https://www.vue-treeselect.cn/
阅读全文
摘要:有点懒,直接上链接了 https://blog.csdn.net/fang562878311/article/details/100579007 控件里写法 <slot name="extendedFields" v-bind="item"></slot> 父类组件调用 <template slot
阅读全文
摘要:正常写法 <span style="font-size: 12px"></span> 绑定写法 <span :style="'font-size: 12px'"></span> 调用函数写法 <span :style="'font-size:'+getNrFontSize(item.deptName
阅读全文