封装一个拖拽
摘要:export default { bind: function (el, binding, vnode) { const docEl = document.documentElement const move = function (e) { e.preventDefault() if (e.targetTouches.length === 1) { ...
阅读全文
svg使用
摘要:Vue.component('XSvg', () => import('./abc-svg')) <x-svg icon-name="personl" height="24" @click.native="" > <icon-personl /> </x-svg> <x-svg icon-name=
阅读全文
vue 安装插件
摘要:https://www.cnblogs.com/mengfangui/p/9046525.html
阅读全文
水波效果
摘要:.download-app { position: fixed; bottom: 0; left: 0; z-index: 20; color: #fff; font-size: 24px; overflow: hidden; width: 100%; height: 84px; background: url("../../../../assets/images/base/wave_bg.png
阅读全文
vue 换肤
摘要:/* eslint-disable */ // 设置文件 import setting from "@/setting.js"; const themeList = setting.theme.list; export default { namespaced: true, state: { // 主题 list: themeList, // 现在激活的主题 这应该是一个名字 不是对象 activ
阅读全文
websocket vue
摘要:/* eslint-disable */ let tt; let count = 1; let lockReconnect = false; function isJsonString(str) { try { if (typeof JSON.parse(str) === "object") { return true; } } catch (e) { } ...
阅读全文