会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
喜欢Tb
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
下一页
2022年2月15日
使用饿了么组件的下拉框的可搜索,并且要可以输入中文和数字搜索
摘要: 先使用正则判断输入的是数字还是中文,然后发送请求 <el-select v-model="model.cinemaIds" multiple filterable remote reserve-keyword placeholder="请输入影院名称" :remote-method="remoteM
阅读全文
posted @ 2022-02-15 09:35 喜欢Tb
阅读(82)
评论(0)
推荐(0)
2022年2月11日
生成二维码,点击下载图片
摘要: 生成二维码 npm安装:npm install vue-qr --save <template> <el-table :data="objList" style="width: 100%;margin-top:10px;" row-key="id" border > <el-table-column
阅读全文
posted @ 2022-02-11 10:28 喜欢Tb
阅读(20)
评论(0)
推荐(0)
2022年2月9日
vue全局事件总线bus
摘要: main.js new Vue({ el:'#app', render: h => h(App), beforeCreate() { Vue.prototype.$bus = this //安装全局事件总线 }, }) 子组件 <button @click="sendStudentName">把学生
阅读全文
posted @ 2022-02-09 10:56 喜欢Tb
阅读(10)
评论(0)
推荐(0)
mixin混入
摘要: mixin.js export const hunhe = { methods: { showName(){ alert(this.name) } }, mounted() { console.log('你好啊!') }, } export const hunhe2 = { data() { ret
阅读全文
posted @ 2022-02-09 10:20 喜欢Tb
阅读(7)
评论(0)
推荐(0)
2021年12月22日
解决使用行内el-input修改值时视图没有更新得问题
摘要: <template> <div class="ele-body"> <el-table :data="list" :span-method="objectSpanMethod" border style="width: 100%; margin-top: 20px" > <el-table-colu
阅读全文
posted @ 2021-12-22 20:05 喜欢Tb
阅读(186)
评论(0)
推荐(0)
2021年12月16日
封装tabs切换更新表格
摘要: <template> <div class="ele-body"> <el-card shadow="never"> <el-tabs v-model="where.type" @tab-click="handleClick(where.type)"> <el-tab-pane v-for="ite
阅读全文
posted @ 2021-12-16 13:56 喜欢Tb
阅读(24)
评论(0)
推荐(0)
2021年12月14日
省市区组件优化
摘要: <template> <div> <!-- 省 --> <el-form-item label-width="60px"> <el-select v-model="province_id" placeholder="请选择省份" clearable> <el-option :label="'全部'"
阅读全文
posted @ 2021-12-14 10:50 喜欢Tb
阅读(10)
评论(0)
推荐(0)
vue中使用elm表单的自定义校验规则
摘要: data() { var checkAge = (rule, value, callback) => { // console.log(value, "输入的"); // console.log(this.da, "最大的"); // console.log(this.xiao, "最小的"); l
阅读全文
posted @ 2021-12-14 09:43 喜欢Tb
阅读(22)
评论(0)
推荐(0)
2021年12月3日
使用三目判断什么时候使用接口,实现一个请求实现两个功能
摘要: /* 保存编辑 */ save() { const url = this.isUpdate == false ? "admin-api/sessions-config/add" : "admin-api/sessions-config/update"; this.$http .post(url, t
阅读全文
posted @ 2021-12-03 14:35 喜欢Tb
阅读(16)
评论(0)
推荐(0)
vue项目中,使用elm组件中的tabs,二次封装
摘要: <template> <div class="tab-container"> <el-tag>mounted times :{{ createdTimes }}</el-tag> <el-alert :closable="false" style="width:200px;display:inlin
阅读全文
posted @ 2021-12-03 14:25 喜欢Tb
阅读(73)
评论(0)
推荐(0)
上一页
1
2
3
4
下一页
公告