Vue
喵无敌
这个作者很懒,什么都没留下…
展开
-
vue实现input获取焦点后label标签上移缩小
<template><divid="app"><divclass="itemInput"><labelfor="name">姓名</label><inputtype="text"v-model="name"@focus="focusEvent($event)"@blur="blurEvent($event)"class="form-line"></di...原创 2020-10-22 14:25:18 · 1185 阅读 · 0 评论 -
Vue中使用swiper animate的爬坑(附赠修改后的js)
业务需求:做个整屏滚动的活动页,每屏都是带动画的我一开始有两个方案,一个是用vue-fullpage,一个是用swiper两个方案分别有坑,这里先写swiper的整个页面是用Swiper的整屏滚动,加上swiper animate来做的swiper animate的动画是这样子写的,为什么我要用swiper animate呢,因我发现自己手写的animation动画,opaci...原创 2020-01-08 10:22:30 · 1922 阅读 · 7 评论 -
Vue2.0练手项目开发笔记-1、请求本地数据的接口
因为是一个练手项目,所以访问的数据是本地的data.json在项目文件中找到以下js文件:build文件->webpack.dev.conf.jsconst portfinder = require('portfinder')在这句下面添加以下代码:const express = require('express')const app = express()const appData ...原创 2018-04-12 17:58:48 · 1049 阅读 · 1 评论 -
Vue2.0练手项目开发笔记-2、Vue-router
先理解下路由(route)是什么意思引用知乎这位前辈的答案。App.vue中的代码<template> <div id="app"> <v-header></v-header> <div class="tab"> <div class="tab-item"&原创 2018-04-13 16:31:34 · 534 阅读 · 0 评论