- 博客(8)
- 资源 (2)
- 问答 (2)
- 收藏
- 关注
原创 Property ‘forEach‘ does not exist on type ‘AxiosResponse<any, any>
ts 类型检测报错
2024-08-13 18:00:48
248
原创 Ts万恶的检测类型 Property ‘ctx‘ does not Property ‘ctx‘ does not exist on type ‘ComponentInternalInstance‘.
打包时,ts类型检测报错。
2024-08-13 17:13:36
292
原创 vue 预览word,excel,txt,pdf等文本
准备 npm install --save vue-pdf 代码 <template> <div> <div v-if="filetype === 'image'"> <img :src="urlLink" alt="" /> </div> <div v-else-if="filetype === 'office'"> <!-- 分页 --> <div&
2021-11-15 15:28:38
1088
原创 实现上一条,下一条功能
项目场景: 列表页面,点击查看以后,展示当前一条数据的所有信息。点击上一条,下一条展示列表上相应信息 实现步骤: 1、拿到当前一条数据和所有数据 eg:this.refs.creatModel.open(record,allList)this.refs.creatModel.open(record,allList) this.refs.creatModel.open(record,allList)this.parents.allList 2、判断当前数据在所有数据中所在的下标位置 let index
2021-04-16 15:30:46
2677
原创 父组件给子组件传值,子组件的值没变化
问题描述: 子组件是下拉选择框,父组件给子组件传值,父组件已改变值,但子组件中没有变化 父组件 <div> <my-tag-tree :value /> </div> 解决方案: 在引入的子组件中加入 :key='random',修改变量后,给random赋值 <div> <my-tag-tree :value :key="random"/> </div> data(){ return{ random:Math
2021-04-16 11:53:28
1677
原创 echart折线图信息配置及点击事件
## 图例信息配置 legend: { x:'right', //x轴的位置 left center 55 y:'center', //y轴位置 top bottom 55 data:['人数'] ,//显示的名称 orient: 'horizontal', //方向,横向和纵向 icon: "rect", //图例样子 circle rect等 }, 整体位置设置 grid: { left: '25', rig.
2021-03-24 16:07:46
1771
video.js是5.6版本,flash也引入了,但是rtmp视频流就是不播,也没报错
2021-05-12
vue接入海康摄像头预览报设备不支持WebSocket取流
2021-04-30
TA创建的收藏夹 TA关注的收藏夹
TA关注的人