随笔分类 - VUE
摘要:app.vue <template> <div class=""> <!-- 自定义指令全局 <input v-focus type="text" name="" id=""><br> 自定义指令局部 <input v-focus2 type="text" name="" id=""><br> --
阅读全文
摘要:App.vue <template> <div class="table-case"> <MyTable :data="goods"> <template #TableHead> <tr> <th>编号</th> <th>名称</th> <th>图片</th> <th width="100px">标
阅读全文
摘要:app.vue <template> <div class=""> <SchuRuKuang @Add="handleAdd"></SchuRuKuang> <LieBiaoZhanShi :list="list" @delOne="handledelOne"></LieBiaoZhanShi> <
阅读全文
摘要:<template> <div> <MyTable :data="list"> <template #default="obj"> <button @click="del(obj.row.id)">删除</button> </template> </MyTable> <MyTable :data="
阅读全文
摘要:<template> <div class="grf"> this is grandpa <FatherComponent></FatherComponent> </div> </template> <script> import FatherComponent from './FatherComp
阅读全文
摘要:1.安装vue-router 对应版本号为 233 344 使用以下命令 yarn add vue-router@3.6.5或者npm install vue-router@3.6.5 2.在main.js里面使用vue-router import Vue from 'vue' import App
阅读全文
摘要:props: 当不需要检查时,可以写成 props:['value'] 此时,不管传过来什么都不会检查,如果想要将数据进行检查,就可以将改成 1.类型验证 props:{ 'value' : Number } 此时会限制类型为Number的数据 2.如果需要更加完整的检查 props:{ 'valu
阅读全文
摘要:router:[ {path:'/',redirect:'/home'}, {path:'*',component:NotFound}, ]
阅读全文
摘要:<template> <div class="a"> <h2>this is A</h2> <span>{{ msg }}</span> </div> </template> <script> import Bus from '../Tools/EventBusTool'; export defau
阅读全文
摘要:app.vue <template> <div class="main"> <div class="box" v-isLoging="isLoged"> <ul> <li v-for="item in list" :key="item.id" class="news"> <div class="le
阅读全文
摘要:import Vue from 'vue' import VueRouter from 'vue-router' import Login from '@/views/login' import Layout from '@/views/layout' import Search from '@/v
阅读全文
摘要:<template> <el-descriptions class="margin-top" title="" :column="3" :size="size" border> <template slot="extra"> <el-button type="primary" size="small
阅读全文
摘要:<template> <div> <BaseCountItem></BaseCountItem> <br> <BaseCountItem></BaseCountItem> <br> <BaseCountItem></BaseCountItem> </div> </template> <script>
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文