commit
254a37a0f8
2 changed files with 3 additions and 2 deletions
|
@ -1,11 +1,11 @@
|
|||
<template>
|
||||
<div v-transfer-dom :data-transfer="transfer">
|
||||
<transition name="fade">
|
||||
<div :class="maskClasses" :style="maskStyle" v-show="visible" v-if="mask" @click="handleMask"></div>
|
||||
<div :class="maskClasses" :style="maskStyle" v-if="mask && visible" @click="handleMask"></div>
|
||||
</transition>
|
||||
<div :class="wrapClasses" @click="handleWrapClick">
|
||||
<transition :name="'move-' + placement">
|
||||
<div :class="classes" :style="mainStyles" v-show="visible">
|
||||
<div :class="classes" :style="mainStyles" v-if="visible">
|
||||
<div :class="contentClasses" ref="content">
|
||||
<a class="ivu-drawer-close" v-if="closable" @click="close">
|
||||
<slot name="close">
|
||||
|
|
|
@ -182,6 +182,7 @@
|
|||
let rules = this.getFilteredRule(trigger);
|
||||
if (!rules || rules.length === 0) {
|
||||
if (!this.required) {
|
||||
this.validateState = '';
|
||||
callback();
|
||||
return true;
|
||||
}else {
|
||||
|
|
Loading…
Reference in a new issue