![](https://img-blog.csdnimg.cn/20210323152955320.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
VUE
vue问题大全
妖心changeless
前端爬坑之路
展开
-
element el-collapse折叠面板箭头在前显示
【代码】element el-collapse折叠面板箭头在前显示。原创 2023-07-18 10:24:16 · 572 阅读 · 0 评论 -
vue3和vite安装
安装原创 2022-07-18 10:22:21 · 1631 阅读 · 0 评论 -
手写Promise的实现
console.log(1) let myPromise = new Promise(function(resolve,reject){ setTimeout(()=>{ console.log(2) console.log(3) console.log(4) ...原创 2021-08-18 16:43:56 · 100 阅读 · 0 评论 -
vue 子组件向父组件传递多个参数接受
子组件:父组件:原创 2021-07-28 10:45:31 · 353 阅读 · 0 评论 -
vue 动态绑定样式和修改
HTML<el-button class="formButton" @click="switchForm()" v-bind:style="{ color: activeColor,background: activeBackground }">表格</el-button>data activeColor: '#000000', activeBackground: '#ffffff',JS switchForm() { thi..原创 2021-03-05 15:23:50 · 346 阅读 · 2 评论 -
element from 动态验证表单
HTML <el-row ***v-for="(bench, idx) in compIndexInfo.benchList"*** :key="bench.key"> <el-col> <el-form-item v-if="idx === 0" label="采样基准 : " style="margin-left:10px;"> </el-form-item>原创 2020-12-17 10:15:52 · 119 阅读 · 0 评论 -
element checkbox至少有一个被选中
HTML<el-checkbox-group v-model="statItemList" :min="1" :max="2" > <el-checkbox v-for="(city,index) in cities" :key="index+1"原创 2020-12-15 10:29:44 · 1255 阅读 · 0 评论 -
element-ui table动态生成 表头的长度
lable 有两个值若为indexCd width赋值为0若为其他,给一个长度值(如:80)<el-table-column v-for="(item,index) in headerList" :key="index" :prop="item.code" :label="item.name" :width="item.code==='indexCd'?'0':'80'" />原创 2020-12-03 09:41:31 · 442 阅读 · 0 评论 -
element-ui 分页的实现
HTML <!-- 分页 --> <div class="block"> <div> <span class="rever">第 {{ pageNum }} 页/</span> <span class="padding0">共 {{ pages }} 页</span> </div> <div style=原创 2020-12-02 10:24:57 · 161 阅读 · 0 评论 -
vue 页面缓存数据
1.当前页面beforeRouteLeave(to, from, next){if(to.name === ‘Mileage’) {to.meta.keepAlive = true}next()},2.index.js{path: ‘/railway’,name:‘Railway’,component: () => import(’…/components/page/R...原创 2020-04-08 10:10:59 · 609 阅读 · 0 评论 -
vue 脚手架安装
1.npm install -g vue-cli2.vue init webpack myvue3. Project name 名称4.? Project description 描述XXXX5. Author 作者名字6.? Install vue-router? Yes7.? Use ESLint to lint your code? No8.? Set up unit test...原创 2020-02-10 11:18:07 · 143 阅读 · 0 评论 -
vue 链接的写法
/home 当前目录下的vue文件原创 2020-02-10 11:11:27 · 587 阅读 · 0 评论