Live2d Test Env
摘要: 1 <!--标注选择标签弹层组件--> 2 <template> 3 <div class="message-box dialog-mask"> 4 <div class="dialog-content"> 5 6 <el-checkbox :indeterminate="isIndetermina 阅读全文
posted @ 2019-11-28 09:24 小猪(朱) 阅读(9298) 评论(0) 推荐(0) 编辑
摘要: 1 <el-form-item prop="pwd"> 2 <el-input 3 v-model="ruleForm.pwd" 4 placeholder="密码" 5 type="password" 6 @keyup.enter.native="handleLogin('ruleForm')" 阅读全文
posted @ 2019-11-28 09:23 小猪(朱) 阅读(2288) 评论(0) 推荐(0) 编辑
摘要: store 文件夹下的 index.js 1 import Vue from 'vue' 2 import Vuex from 'vuex' 3 4 Vue.use(Vuex); 5 6 // 创建实例 并导出 7 export default new Vuex.Store({ 8 state: { 阅读全文
posted @ 2019-11-28 09:22 小猪(朱) 阅读(191) 评论(0) 推荐(0) 编辑
摘要: router.js 1 routes: [ 2 { 3 name: 'pc', path: '/pc', component: pc, redirect: '/pc/homePage', meta: {title: 'pc端'}, 4 children: 5 [ 6 {name: 'homePage 阅读全文
posted @ 2019-11-28 09:21 小猪(朱) 阅读(256) 评论(0) 推荐(0) 编辑
摘要: <div :class="ind.titleSrc?'bgImgSet':''"></div> 三元表达 如果存在两个动态class 可以如下这样写 注意标签上不能写两个:class <div class="allCommon " @contextmenu.prevent="clickSet(_mo 阅读全文
posted @ 2019-11-28 09:20 小猪(朱) 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 1、最简单,直接,粗暴的方法就是盒子大小写死,给每个盒子设定固定的width和height,直到合适为止,这样的好处是简单方便,兼容性好,适合只改动少量内容不涉及盒子排布的版面,缺点是非自适应,浏览器的窗口大小直接影响用户体验。 2、给外部的父盒子也添加浮动,让其也脱离标准文档流,这种方法方便,但是 阅读全文
posted @ 2019-11-28 09:19 小猪(朱) 阅读(3960) 评论(0) 推荐(0) 编辑
摘要: 安装 filemanager-webpack-plugin 1 npm i filemanager-webpack-plugin -D 在vue.config.js中配置,如果没有这个文件可以自己创建一个 1 const FileManagerPlugin = require('filemanage 阅读全文
posted @ 2019-11-28 09:18 小猪(朱) 阅读(2389) 评论(0) 推荐(0) 编辑
摘要: 写一个公共的中间人dridge. js: 1 import Vue from 'vue' 2 export default new Vue() 哥哥为发送方 header.vue: 1 <script> 2 import eventVue from './../api/bridge' 3 expor 阅读全文
posted @ 2019-11-28 09:17 小猪(朱) 阅读(468) 评论(0) 推荐(0) 编辑
摘要: 1 div.father:hover div.son{ 2 margin-left: 300px; 3 transition: all 5s; 4 } 阅读全文
posted @ 2019-11-28 09:15 小猪(朱) 阅读(485) 评论(0) 推荐(0) 编辑
摘要: //截取url中的参数 function getUrlValue(kValue) { var url = window.location.href; //当前页面的地址 var reg = /([^?&=]+)=([^?&=]+)/g, obj = {}, str = url; url.replac 阅读全文
posted @ 2019-11-28 09:14 小猪(朱) 阅读(444) 评论(0) 推荐(0) 编辑