
vue
小一梦
这个作者很懒,什么都没留下…
展开
-
vue视频、图片自动轮播并伴随进度条
【代码】vue视频、图片自动轮播并伴随进度条。原创 2024-07-17 16:02:00 · 671 阅读 · 0 评论 -
vue、js截取视频任意一帧图片
vue、js对video视频中的某一帧截取,截取视频封面原创 2024-07-17 15:51:05 · 1596 阅读 · 0 评论 -
vue自定义折叠Tree,自定义折叠树
自定义vue折叠tree原创 2024-07-17 11:59:43 · 988 阅读 · 0 评论 -
nuxt、vue树形图d3.js
nuxt、vue树形图d3.js。思维导图原创 2024-07-05 17:02:25 · 360 阅读 · 0 评论 -
vue二进制转Base64图片展示
【代码】vue二进制转Base64图片展示。原创 2022-11-17 11:08:22 · 1577 阅读 · 0 评论 -
vue 样式class多选、单选,vue多选,vue单选
vue多选、vue单选、vue不使用radio、vue选中添加样式、vue选中添加效果原创 2022-06-17 13:31:56 · 1086 阅读 · 1 评论 -
JS导出txt、js导出txt换行
// txt文件导出/**需要导出的数组内容*val*/ onClickDownDaily(val) { let title = "图片资源链接"; let str = ""; val.forEach((item, index) => { str += `地址-${index + 1}:${item}\r\n`; }); let allStr = title + "\r\n" + "\r\n" + str;原创 2021-11-24 15:50:32 · 1362 阅读 · 0 评论 -
vue、element-UI表格check保持选中
<el-table :data="search(keywords)" highlight-current-row :row-key="(row)=>row.id" @select="selectionCheck" :height="height" @current-change="currentChange" @selection-change="handleSelectionChange"> <el-table-column type="selection" :reser..原创 2021-09-24 10:20:26 · 305 阅读 · 0 评论 -
js判断字段是否为空
判断字段是否为空fileUrl(e){ let p=!this.isEmpty(e)&&String(e).replace(/^[\s]+|[\s]+$/g,'')!='[]'; if(p){ return JSON.parse(e) }else{ return false } }, isEmpty(str) { return (null == str || undefined ==原创 2021-07-25 18:29:25 · 1044 阅读 · 0 评论 -
vue项目搭建遇到的各种坑
报错–ReferenceError: regeneratorRuntime is not defined//原因//不能解析async … await 等高级语法cnpm install babel-polyfill --save//在main.js文件中引入import "babel-polyfill"原创 2021-07-21 16:21:38 · 140 阅读 · 0 评论 -
vue-router 按需加载 component: () => import()报错
命令输入cnpm install babel-plugin-syntax-dynamic-import --save-devwebpack.base.conf.js修改loader{ test: /\.js$/, loader: 'babel-loader', options: { plugins: ['syntax-dynamic-import'] }, include: [resolve('src原创 2021-07-20 10:43:07 · 783 阅读 · 0 评论 -
ElementUI日期时间选择器禁止此刻之前的所有时间选择(精确到,时、分、秒)、pickerOptions、日期选择器范围选择
elementUI日期时间选择器范围(精确到,时、分、秒。????️)一、html<el-date-picker v-model="record.createTime" :picker-options="pickerOptions" format="yyyy-MM-dd HH:mm:ss" type="datetime" placeholder="选择日期时间" />二、data部分pickerOptions: { disabledDate(time原创 2020-08-19 17:48:27 · 11519 阅读 · 0 评论 -
vue自定义组件调用父函数,vue自定义组件修改父组件的值,vue自定组件调用父级的值
1.在自定义组件中调用父组件的函数Vue.component('my-componnet',{ template:`<div @click="getF">{{]}</div>`, methods:{ getF:function(){ this.$root.f();//父函数 debugger this.$root.fVal;//父级data中的值...原创 2020-03-18 09:48:42 · 442 阅读 · 0 评论 -
Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-
Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop’s value. Prop being mutated: “cu...原创 2020-03-03 10:31:27 · 587 阅读 · 0 评论 -
vue父级调用子函数,vue调用自定义组件函数
1.html部分<div id="test"> <my-component ref="childFunction"></my-component></div>2.自定义组件Vue.component('my-component',{ templata:`<button>你好!</button>`, method...原创 2020-02-28 13:45:37 · 528 阅读 · 0 评论 -
vue自定义组件调用父级函数,vue调用父级函数,vue调用父函数,vue自定义组件调用父函数
1.html部分<div id="test"> <my-component @click.native="father"></my-component></div>2.自定义组件Vue.component('my-component',{ templata:`<button @click="father"></butt...原创 2020-02-28 13:39:45 · 968 阅读 · 0 评论 -
vue传值给自定义组件,vue传值给组件,vue传参到子组件
1.html部分<div id="test"> <my-component :testData="testData"></my-component></div>2.自定义组件Vue.component('my-component',{ templata:`<div>{{testData}}+二蛋</div>`,...原创 2020-02-28 13:30:33 · 755 阅读 · 0 评论 -
vue自定义组件数据双向绑定,获取vue自定义组件input框输入的值
1.首先创建一个自定义组件Vue.component('test-component',{ template:`<div id="el"><input @input="change"><button @click="getInputData">点我看input数据</button></div>`, event:'inputData'...原创 2020-02-27 15:46:45 · 1593 阅读 · 0 评论 -
vue拼接html中onclick的触发方式,vue中的onclick,vue触发onclick,vue拼接html
1.首先你有一段拼接的html代码let conten=`<button οnclick="come()">点我</button>`;2.然后你需要在methods中有一个函数methods:{ come:function(){ alert('你好,再见!') },}3.下一步就是连接起桥梁的关键点created(){ let _this=this...原创 2020-02-27 09:52:28 · 10247 阅读 · 8 评论 -
vue分页
先看看效果图首先你需要有一个前端的html分页<!-- 分页 --> <ul class="pagination" style="display: flex;justify-content: center;" id="paginationUl"> &...原创 2019-10-22 13:55:26 · 258 阅读 · 0 评论