
vue
xkxnq
这个作者很懒,什么都没留下…
展开
-
js获取 本月、当前时间 本季度 上月等时间
获取当前年月日export const getCurrentDate = (time) => { let data = new Date(time); let y = data.getFullYear(); let m = data.getMonth() + 1; m = m < 10 ? '0' + m : m let d = data.getDate(); ...原创 2020-04-17 10:39:16 · 734 阅读 · 0 评论 -
ant desgin vue 兼容IE9以上配置
vue cli3搭建项目,ant-design-vue@1.4.1在babel.config.js文件下加入安装npm install babel-polyfill --save 或者 cnpm install babel-polyfill --savemodule.exports = { presets: [ '@vue/app', // 兼容配置 [ ...原创 2020-04-03 15:21:01 · 1322 阅读 · 1 评论 -
vue公告横向滚动组件封装
新建组件scroll.vue <template> <div class="wrap"> <ul id="marquee"> <li v-for="(item,index) in lists" :key="index">{{item}}</li> </ul> </div>...原创 2020-03-15 15:52:04 · 2223 阅读 · 3 评论 -
vue的图片上传、裁剪,显示的vue-cropper
安装npm install vue-cropper使用main.js里面上传按钮<div class="search-icon" > <label for="inputId" > 上传 </label> <input ...原创 2020-03-15 12:36:17 · 424 阅读 · 0 评论 -
echars 圆圈刻度百分比
效果如下: export scale= (number, text) => { let opti...原创 2020-03-07 12:46:32 · 419 阅读 · 0 评论 -
vue3.0 UEditor 配置,及打包后编辑器路径不对的问题
1.第一步:下载Ueditor相关静态文件2.修改ueditor文件夹,引入项目中下载文件后解压——重命名为 UEditor,vue3.0下,放在public文件夹下面3.安装模块 vue-ueditor-wrapnpm i vue-ueditor-wrap -D4.将vue-ueditor-wrap引入你要使用的组件或页面中1、 import VueUeditorWrap ...原创 2020-03-07 12:16:18 · 1768 阅读 · 0 评论 -
echars世界地图,显示指定的国家散点图
效果如下1.下载:npm install echarts --save2,引入世界地图 在 main.js 文件里引入 ( 这里是 Vue3.0 的模板 )import echarts from 'echarts'Vue.prototype.$echarts = echartsimport '../node_modules/echarts/map/js/world.js' // 引...原创 2020-02-29 17:03:32 · 3568 阅读 · 1 评论 -
js 复制input 内容
<div> <input type="text" ref="ipt" v-model="value"> <button @click="copy">复制</button></div><script>methods: {export default { data() { return { ...原创 2020-02-29 16:30:01 · 312 阅读 · 0 评论 -
vue网页分享,qq,微信,微博
1.分享到QQ空间接口:https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=你的网址&sharesource=qzone&title=你的分享标题&pics=你的分享图片&summary=你的分享描述信息 2.分享给QQ好友接口:http://connec...原创 2020-02-29 12:18:47 · 2724 阅读 · 1 评论 -
webapp项目vue框架点击按钮实现微信好友分享,朋友圈分享
<template> <divclass=""id="share"v-for="(items,index)instrands":key="index"@click="wxShare(index)"> <imgv-if="index==0"src="../assets/img/gg/wChart.png"alt...原创 2020-02-29 10:54:07 · 2999 阅读 · 0 评论 -
vue 使用antd design vue 配置全局的axios的loading
vue 使用antd design vue 配置全局的axios的loadingimport Vue from 'vue'import axios from './assets/js/axios'Vue.prototype.$ajax = axios;在axios.js文件中设置一个axios拦截器import axios from 'axios'import store from ...原创 2019-12-19 17:25:55 · 10705 阅读 · 2 评论