
Vue
Vue
熙冰
程序媛,菜鸟一枚,101状态码
展开
-
JS实现填空题
<template> <div class='fillIn'> <div v-for="(item, index) in list" :key="index" style="display: inline-block"> <el-input v-if="item.type===1" type="text" v-model="item.value"/> <span v-else>{{i.原创 2021-08-27 18:51:24 · 1511 阅读 · 0 评论 -
预览PDF文件流
<template> <div class='previewPdf' v-loading="loading" element-loading-text="加载中"> <section class="pdf-btn" id="previewBtn"> <el-button @click.stop="newPagePreview" type="primary" icon="el-icon-document">新页面预览PDF</el.原创 2021-02-19 11:19:50 · 2484 阅读 · 1 评论 -
下载文件判断返回JSON错误并提示
/** * 下载文件 * @param {*} url 接口url * @param {*} dataParams 要传给接口的参数 * @param {*} type 请求数据类型,默认application/json * @param {*} tip 是否需要下载文件失败时候接口返回json的提示 * @param {*} requestType 请求方式,默认post */ commonExportExcel (url, dataParams, t..原创 2021-02-07 19:18:17 · 831 阅读 · 1 评论 -
Vue使用vue-pdf进行PDF预览
<template> <!--安装依赖:npm install --save vue-pdf--> <div class='pdf'> <el-tabs @tab-click="handleClick" type="border-card"> <el-tab-pane label="全部加载" v-loading="loading" element-loading-text="加载中"> <Pdf.原创 2020-08-04 18:33:29 · 4213 阅读 · 1 评论 -
el-date-picker时间间隔一个月
<template> <!-- 需求: 1.默认当天,eg.2020-05-09 00:00:00 && 2020-05-09 23:59:59 2.时间间隔一个月,eg.2020-05-09 00:00:00 && 2020-06-08 23:59:59 参考:https://blog.youkuaiyun.com/shadow_zed/article/details/87160568?utm_medium=distribute.pc_r.原创 2020-05-09 17:17:55 · 1639 阅读 · 0 评论 -
Vue多语言vue-il8n的使用
安装配置使用页面中使用 安装 npm install vue-i18n --save 配置使用 建立lang文件夹,分别建立index.js,zh.js,en.js文件,然后在项目的入口文件main.js中引入index.jsimport Vue from 'vue'import VueI18n from 'vue-i18n'impo...原创 2020-03-18 15:40:13 · 2155 阅读 · 0 评论 -
iView中的Select与Poptip结合
<template> <div class="selectPopTip"> <Button type="primary" @click="clickBtn">打开对话框</Button> <Modal title="对话框" :styles="{top: '20px'}" v-model...原创 2020-02-21 19:05:22 · 946 阅读 · 0 评论 -
el-select多选全选
<template> <div> <el-select @change="handleSelect($event)" v-model="selectVal" placeholder="请选择" multiple collapse-tags> <el-option v-for="item in array" ...原创 2020-02-11 12:14:08 · 7263 阅读 · 0 评论