摘要:
1 <!--标注选择标签弹层组件--> 2 <template> 3 <div class="message-box dialog-mask"> 4 <div class="dialog-content"> 5 6 <el-checkbox :indeterminate="isIndetermina 阅读全文
摘要:
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')" 阅读全文
摘要:
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: { 阅读全文
摘要:
router.js 1 routes: [ 2 { 3 name: 'pc', path: '/pc', component: pc, redirect: '/pc/homePage', meta: {title: 'pc端'}, 4 children: 5 [ 6 {name: 'homePage 阅读全文
摘要:
<div :class="ind.titleSrc?'bgImgSet':''"></div> 三元表达 如果存在两个动态class 可以如下这样写 注意标签上不能写两个:class <div class="allCommon " @contextmenu.prevent="clickSet(_mo 阅读全文
摘要:
1、最简单,直接,粗暴的方法就是盒子大小写死,给每个盒子设定固定的width和height,直到合适为止,这样的好处是简单方便,兼容性好,适合只改动少量内容不涉及盒子排布的版面,缺点是非自适应,浏览器的窗口大小直接影响用户体验。 2、给外部的父盒子也添加浮动,让其也脱离标准文档流,这种方法方便,但是 阅读全文
摘要:
安装 filemanager-webpack-plugin 1 npm i filemanager-webpack-plugin -D 在vue.config.js中配置,如果没有这个文件可以自己创建一个 1 const FileManagerPlugin = require('filemanage 阅读全文
摘要:
写一个公共的中间人dridge. js: 1 import Vue from 'vue' 2 export default new Vue() 哥哥为发送方 header.vue: 1 <script> 2 import eventVue from './../api/bridge' 3 expor 阅读全文
摘要:
1 div.father:hover div.son{ 2 margin-left: 300px; 3 transition: all 5s; 4 } 阅读全文
摘要:
window.online用户网络连接时被调用 window.offline用户网络断开时被调用 // 监听当前设备在线 window.addEventListener('online', function () { // alert('online'); $('.tips').text('网络已连 阅读全文