随笔分类 -  VUE

摘要:app.vue <template> <div class=""> <!-- 自定义指令全局 <input v-focus type="text" name="" id=""><br> 自定义指令局部 <input v-focus2 type="text" name="" id=""><br> -- 阅读全文
posted @ 2023-12-26 11:38 超爱彬宝同学 阅读(13) 评论(0) 推荐(0) 编辑
摘要:App.vue <template> <div class="table-case"> <MyTable :data="goods"> <template #TableHead> <tr> <th>编号</th> <th>名称</th> <th>图片</th> <th width="100px">标 阅读全文
posted @ 2023-12-25 17:44 超爱彬宝同学 阅读(3) 评论(0) 推荐(0) 编辑
摘要:app.vue <template> <div class=""> <SchuRuKuang @Add="handleAdd"></SchuRuKuang> <LieBiaoZhanShi :list="list" @delOne="handledelOne"></LieBiaoZhanShi> < 阅读全文
posted @ 2023-12-23 12:37 超爱彬宝同学 阅读(22) 评论(0) 推荐(0) 编辑
摘要:<template> <div> <MyTable :data="list"> <template #default="obj"> <button @click="del(obj.row.id)">删除</button> </template> </MyTable> <MyTable :data=" 阅读全文
posted @ 2023-12-22 17:45 超爱彬宝同学 阅读(5) 评论(0) 推荐(0) 编辑
摘要:<template> <div class="grf"> this is grandpa <FatherComponent></FatherComponent> </div> </template> <script> import FatherComponent from './FatherComp 阅读全文
posted @ 2023-12-21 17:45 超爱彬宝同学 阅读(8) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2023-12-20 20:21 超爱彬宝同学 阅读(15) 评论(0) 推荐(0) 编辑
摘要:props: 当不需要检查时,可以写成 props:['value'] 此时,不管传过来什么都不会检查,如果想要将数据进行检查,就可以将改成 1.类型验证 props:{ 'value' : Number } 此时会限制类型为Number的数据 2.如果需要更加完整的检查 props:{ 'valu 阅读全文
posted @ 2023-12-19 17:45 超爱彬宝同学 阅读(2) 评论(0) 推荐(0) 编辑
摘要:router:[ {path:'/',redirect:'/home'}, {path:'*',component:NotFound}, ] 阅读全文
posted @ 2023-12-18 11:16 超爱彬宝同学 阅读(19) 评论(0) 推荐(0) 编辑
摘要:<template> <div class="a"> <h2>this is A</h2> <span>{{ msg }}</span> </div> </template> <script> import Bus from '../Tools/EventBusTool'; export defau 阅读全文
posted @ 2023-12-14 17:45 超爱彬宝同学 阅读(3) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2023-12-12 17:45 超爱彬宝同学 阅读(24) 评论(0) 推荐(0) 编辑
摘要:import Vue from 'vue' import VueRouter from 'vue-router' import Login from '@/views/login' import Layout from '@/views/layout' import Search from '@/v 阅读全文
posted @ 2023-11-18 21:39 超爱彬宝同学 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2023-11-13 20:14 超爱彬宝同学 阅读(5) 评论(0) 推荐(0) 编辑
摘要:<template> <el-descriptions class="margin-top" title="" :column="3" :size="size" border> <template slot="extra"> <el-button type="primary" size="small 阅读全文
posted @ 2023-11-12 17:45 超爱彬宝同学 阅读(1038) 评论(0) 推荐(0) 编辑
摘要:<template> <div> <BaseCountItem></BaseCountItem> <br> <BaseCountItem></BaseCountItem> <br> <BaseCountItem></BaseCountItem> </div> </template> <script> 阅读全文
posted @ 2023-11-11 12:34 超爱彬宝同学 阅读(4) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document< 阅读全文
posted @ 2023-11-10 13:29 超爱彬宝同学 阅读(4) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示