iview
__Rachel______
这个作者很懒,什么都没留下…
展开
-
Vue iview时间组件DatePicker,设置开始时间和结束时间约束
html模板代码:<!-- 开始时间 --> <FormItem prop="startTime" label="开始时间:"> <DatePicker type="date" :options="startTimeOptions" @on-change="startTimeChange" v-model="form原创 2018-10-29 15:01:06 · 2069 阅读 · 0 评论 -
iview 时间组件带TZ解决方法
方法一: /** * @param {Number} timeStamp 传入的时间戳(如:startTime,endTime) * @param {Number} startType 要返回的时间字符串的格式类型,传入'year'则返回年开头的完整时间(如:year) */ export const getDate = (t...原创 2018-11-05 11:18:57 · 2008 阅读 · 0 评论 -
Vue iview 请求接口时表单验证
// 提交 handleSubmit () { // this.$refs.form.validate(valid => { 表单校验 this.$refs.form.validate(valid => { // form 所要验证的表单名 let _this = this...原创 2018-11-05 17:40:17 · 1936 阅读 · 0 评论 -
Vue页面跳转是通过路由跳转的
Vue页面跳转是通过路由跳转的一、 this.$router.push({ path: '/operate/add-manage/add', // 参数 params: { id:id ...原创 2018-11-19 16:20:46 · 321 阅读 · 0 评论 -
iview的input报错
问题原因:iView将标签渲染为原生html标签时,由于这些标签是自闭合的,所以有end标签会报错。解决方案:修改配置文件,忽略该项检查:根目录下 - .eslintrc.js - rules添加一行:“vue/no-parsing-error”: [2, { “x-invalid-end-tag”: false }]重启dev:npm run dev然而我设置之后并没有...原创 2018-11-19 16:44:36 · 1514 阅读 · 0 评论 -
iview 中 render函数与renderHeader函数
{ // 采用 renderHeader 函数时,title就不需要了 // title: this.$route.query.type === '1' ? '退款编号' : ' ', key: 'refundCode', align: 'center', // renderHeader 函数: 自定义表头 ...原创 2018-12-11 10:53:56 · 7513 阅读 · 0 评论 -
iview + vue 细节问题 1.0
1、// 查看大图// userPhoto是引进的错误图片import userPhoto from '@/assets/images/logo_1_mini.png'data定义: imageDomain, imgModal: false, bigImg: '', userPhoto, columns:[ { title: '门店b...原创 2019-01-07 15:32:50 · 339 阅读 · 0 评论