摘要: TimePicker在官网中给的例子是有默认值的 <template> <el-time-picker is-range v-model="value1" range-separator="至" start-placeholder="开始时间" end-placeholder="结束时间" plac 阅读全文
posted @ 2021-05-17 15:19 维维WW 阅读(3109) 评论(1) 推荐(1)
摘要: 官网按提供的插槽图片可以放在内容之后,但是我是想放在之前。 正常情况下,图片永远显示在文字的后面 <div class="item-box"> <van-cell title="银行" :value="checkBank.bankName"> <template #right-icon> <img 阅读全文
posted @ 2021-03-16 10:18 维维WW 阅读(1518) 评论(0) 推荐(0)
摘要: 第一种,简单时长倒计时 data() { return { timer: null, m: 0, s: 0, time: null, } }, created() { this.resetTime(125); //倒计时125S,根据自己的时长确定 }, methods: { //单纯分钟和秒倒计时 阅读全文
posted @ 2021-03-11 14:48 维维WW 阅读(6711) 评论(0) 推荐(1)
摘要: 效果如下: 原理:在所显示的名字前面拼一个img标签 代码如下: <van-field readonly is-link name="picker" :value="value" clearable label="选择您的还款银行" placeholder="选择银行" input-align="r 阅读全文
posted @ 2021-03-10 17:01 维维WW 阅读(1104) 评论(0) 推荐(0)
摘要: 一、安装依赖 npm install v-viewer --save 二、在main文件引入,记得要引入样式 import 'viewerjs/dist/viewer.css'; import Viewer from 'v-viewer'; Vue.use(Viewer); 如果你需要修改viewe 阅读全文
posted @ 2021-01-28 14:35 维维WW 阅读(591) 评论(0) 推荐(0)
摘要: 今天在vue项目中安装node-sass出现了一个报错: 查看了一下node的版本,对应安装的node-sass版本,对比了下官网的版本号。链接:node-sass 选择下载本地nodejs对应的node-sass版本:npm install node-sass@version 这样重新安装了一下, 阅读全文
posted @ 2020-11-20 17:18 维维WW 阅读(3524) 评论(0) 推荐(0)
摘要: async function async1() { console.log("async1 start"); await async2(); console.log("async1 end"); } async function async2() { console.log( 'async2'); 阅读全文
posted @ 2020-11-13 15:12 维维WW 阅读(172) 评论(0) 推荐(0)
摘要: <script> import { collectService } from '@/services'; export default { prop: ['formWhere'], data() { return { dialogPop: false, isDisabled: true, webI 阅读全文
posted @ 2020-11-13 14:21 维维WW 阅读(2080) 评论(0) 推荐(0)
摘要: 一,在textarea中加入id <el-form-item :label="$t('message_template_content')" prop="content"> <el-input type="textarea" id="textarea" :autosize="{ minRows: 5 阅读全文
posted @ 2020-10-22 13:25 维维WW 阅读(3162) 评论(1) 推荐(1)
摘要: 复制内容至剪切版我们使用的是插件vue-clipboard2, npm install --save vue-clipboard2 在main.js引用进来就好了 //复制到粘贴板插件 import VueClipboard from 'vue-clipboard2'; Vue.use(VueCli 阅读全文
posted @ 2020-09-25 15:24 维维WW 阅读(3309) 评论(0) 推荐(0)