mirror of https://github.com/ElemeFE/element
normalize transition class name
parent
06a739ff22
commit
7a85d55f31
|
@ -19,7 +19,7 @@
|
||||||
<slot name="append"></slot>
|
<slot name="append"></slot>
|
||||||
</template>
|
</template>
|
||||||
</el-input>
|
</el-input>
|
||||||
<transition name="md-fade-bottom">
|
<transition name="el-zoom-in-top">
|
||||||
<ul
|
<ul
|
||||||
v-if="suggestionVisible"
|
v-if="suggestionVisible"
|
||||||
class="el-autocomplete__suggestions"
|
class="el-autocomplete__suggestions"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<transition name="md-fade-bottom" @after-leave="$emit('dodestroy')">
|
<transition name="el-zoom-in-top" @after-leave="$emit('dodestroy')">
|
||||||
<div
|
<div
|
||||||
v-show="visible"
|
v-show="visible"
|
||||||
:style="{ width: width + 'px' }"
|
:style="{ width: width + 'px' }"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<transition name="md-fade-bottom" @after-leave="$emit('dodestroy')">
|
<transition name="el-zoom-in-top" @after-leave="$emit('dodestroy')">
|
||||||
<div
|
<div
|
||||||
v-show="visible"
|
v-show="visible"
|
||||||
:style="{
|
:style="{
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<transition name="md-fade-bottom" @after-leave="$emit('dodestroy')">
|
<transition name="el-zoom-in-top" @after-leave="$emit('dodestroy')">
|
||||||
<div
|
<div
|
||||||
v-show="visible"
|
v-show="visible"
|
||||||
:style="{ width: width + 'px' }"
|
:style="{ width: width + 'px' }"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<transition name="md-fade-bottom" @after-leave="$emit('dodestroy')">
|
<transition name="el-zoom-in-top" @after-leave="$emit('dodestroy')">
|
||||||
<div
|
<div
|
||||||
v-show="visible"
|
v-show="visible"
|
||||||
:style="{ width: width + 'px' }"
|
:style="{ width: width + 'px' }"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<transition name="md-fade-bottom" @after-leave="$emit('dodestroy')">
|
<transition name="el-zoom-in-top" @after-leave="$emit('dodestroy')">
|
||||||
<div
|
<div
|
||||||
v-show="currentVisible"
|
v-show="currentVisible"
|
||||||
:style="{width: width + 'px'}"
|
:style="{width: width + 'px'}"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<transition name="md-fade-bottom" @after-leave="doDestroy">
|
<transition name="el-zoom-in-top" @after-leave="doDestroy">
|
||||||
<ul class="el-dropdown-menu" v-show="showPopper">
|
<ul class="el-dropdown-menu" v-show="showPopper">
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
</label>
|
</label>
|
||||||
<div class="el-form-item__content" v-bind:style="contentStyle">
|
<div class="el-form-item__content" v-bind:style="contentStyle">
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
<transition name="md-fade-bottom">
|
<transition name="el-zoom-in-top">
|
||||||
<div class="el-form-item__error" v-if="validateState === 'error'">{{validateMessage}}</div>
|
<div class="el-form-item__error" v-if="validateState === 'error'">{{validateMessage}}</div>
|
||||||
</transition>
|
</transition>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
}">
|
}">
|
||||||
</i>
|
</i>
|
||||||
</div>
|
</div>
|
||||||
<transition :name="rootMenu.mode === 'horizontal' ? 'md-fade-bottom' : ''">
|
<transition :name="rootMenu.mode === 'horizontal' ? 'el-zoom-in-top' : ''">
|
||||||
<ul class="el-menu" v-show="opened"><slot></slot></ul>
|
<ul class="el-menu" v-show="opened"><slot></slot></ul>
|
||||||
</transition>
|
</transition>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -59,7 +59,7 @@
|
||||||
@mouseleave.native="inputHovering = false"
|
@mouseleave.native="inputHovering = false"
|
||||||
:icon="iconClass">
|
:icon="iconClass">
|
||||||
</el-input>
|
</el-input>
|
||||||
<transition name="md-fade-bottom" @after-leave="doDestroy">
|
<transition name="el-zoom-in-top" @after-leave="doDestroy">
|
||||||
<el-select-menu
|
<el-select-menu
|
||||||
ref="popper"
|
ref="popper"
|
||||||
v-show="visible && emptyText !== false">
|
v-show="visible && emptyText !== false">
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<transition name="md-fade-bottom">
|
<transition name="el-zoom-in-top">
|
||||||
<div class="el-table-filter" v-if="multiple" v-show="showPopper">
|
<div class="el-table-filter" v-if="multiple" v-show="showPopper">
|
||||||
<div class="el-table-filter__content">
|
<div class="el-table-filter__content">
|
||||||
<el-checkbox-group class="el-table-filter__checkbox-group" v-model="filteredValue">
|
<el-checkbox-group class="el-table-filter__checkbox-group" v-model="filteredValue">
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<transition :name="closeTransition ? '' : 'md-fade-center'">
|
<transition :name="closeTransition ? '' : 'el-zoom-in-center'">
|
||||||
<span
|
<span
|
||||||
class="el-tag"
|
class="el-tag"
|
||||||
:class="[type ? 'el-tag--' + type : '', {'is-hit': hit}]">
|
:class="[type ? 'el-tag--' + type : '', {'is-hit': hit}]">
|
||||||
|
|
|
@ -5,109 +5,53 @@
|
||||||
.fade-in-linear-leave-active {
|
.fade-in-linear-leave-active {
|
||||||
transition: var(--fade-linear-transition);
|
transition: var(--fade-linear-transition);
|
||||||
}
|
}
|
||||||
|
|
||||||
.fade-in-linear-enter,
|
.fade-in-linear-enter,
|
||||||
.fade-in-linear-leave,
|
.fade-in-linear-leave,
|
||||||
.fade-in-linear-leave-active {
|
.fade-in-linear-leave-active {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fade-in-enter-active,
|
.el-fade-in-enter-active,
|
||||||
.fade-in-leave-active {
|
.el-fade-in-leave-active {
|
||||||
transition: all .3s cubic-bezier(.55,0,.1,1);
|
transition: all .3s cubic-bezier(.55,0,.1,1);
|
||||||
}
|
}
|
||||||
|
.el-fade-in-enter,
|
||||||
.fade-in-enter,
|
.el-fade-in-leave-active {
|
||||||
.fade-in-leave-active {
|
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.md-fade-center-enter-active,
|
.el-zoom-in-center-enter-active,
|
||||||
.md-fade-center-leave-active {
|
.el-zoom-in-center-leave-active {
|
||||||
transition: all .3s cubic-bezier(.55,0,.1,1);
|
transition: all .3s cubic-bezier(.55,0,.1,1);
|
||||||
}
|
}
|
||||||
.md-fade-center-enter,
|
.el-zoom-in-center-enter,
|
||||||
.md-fade-center-leave,
|
.el-zoom-in-center-leave-active {
|
||||||
.md-fade-center-leave-active {
|
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
transform: scaleY(0);
|
transform: scaleX(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
.md-fade-bottom-enter-active,
|
.el-zoom-in-top-enter-active,
|
||||||
.md-fade-bottom-leave-active {
|
.el-zoom-in-top-leave-active {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
transform: scaleY(1);
|
transform: scaleY(1);
|
||||||
transition: var(--md-fade-transition);
|
transition: var(--md-fade-transition);
|
||||||
transform-origin: center top;
|
transform-origin: center top;
|
||||||
}
|
}
|
||||||
.md-fade-bottom-enter,
|
.el-zoom-in-top-enter,
|
||||||
.md-fade-bottom-leave,
|
.el-zoom-in-top-leave-active {
|
||||||
.md-fade-bottom-leave-active {
|
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
transform: scaleY(0);
|
transform: scaleY(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
.md-fade-top-enter-active,
|
.el-zoom-in-bottom-enter-active,
|
||||||
.md-fade-top-leave-active {
|
.el-zoom-in-bottom-leave-active {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
transform: scaleY(1);
|
transform: scaleY(1);
|
||||||
transition: var(--md-fade-transition);
|
transition: var(--md-fade-transition);
|
||||||
transform-origin: center bottom;
|
transform-origin: center bottom;
|
||||||
}
|
}
|
||||||
|
.el-zoom-in-bottom-enter,
|
||||||
.md-fade-top-enter,
|
.el-zoom-in-bottom-leave-active {
|
||||||
.md-fade-top-leave,
|
|
||||||
.md-fade-top-leave-active {
|
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
transform: scaleY(0);
|
transform: scaleY(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
.md-fade-left-enter-active,
|
|
||||||
.md-fade-left-leave-active {
|
|
||||||
opacity: 1;
|
|
||||||
transform: scaleX(1);
|
|
||||||
transition: var(--md-fade-transition);
|
|
||||||
transform-origin: right center;
|
|
||||||
}
|
|
||||||
.md-fade-left-enter,
|
|
||||||
.md-fade-left-leave,
|
|
||||||
.md-fade-left-leave-active {
|
|
||||||
opacity: 0;
|
|
||||||
transform: scaleX(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
.md-fade-right-enter-active,
|
|
||||||
.md-fade-right-leave-active {
|
|
||||||
opacity: 1;
|
|
||||||
transform: scaleX(1);
|
|
||||||
transition: var(--md-fade-transition);
|
|
||||||
transform-origin: left center;
|
|
||||||
}
|
|
||||||
.md-fade-right-enter,
|
|
||||||
.md-fade-right-leave,
|
|
||||||
.md-fade-right-leave-active {
|
|
||||||
opacity: 0;
|
|
||||||
transform: scaleX(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
.fade-enter-active,
|
|
||||||
.fade-leave-active {
|
|
||||||
transition: opacity .3s cubic-bezier(.645,.045,.355,1);
|
|
||||||
}
|
|
||||||
.fade-enter,
|
|
||||||
.fade-leave-active {
|
|
||||||
opacity: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.list-move, .list-enter-active, .list-leave-active {
|
|
||||||
transition: all .5s cubic-bezier(.55,0,.1,1);
|
|
||||||
}
|
|
||||||
.list-enter, .list-leave-active {
|
|
||||||
opacity: 0;
|
|
||||||
transform: translate(0, -30px);
|
|
||||||
}
|
|
||||||
/*.list-leave-active {
|
|
||||||
position: absolute;
|
|
||||||
opacity: 0;
|
|
||||||
transform: scaleY(0.01) translate(30px, 0);
|
|
||||||
}*/
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="el-dragger__cover" @click.stop v-if="image">
|
<div class="el-dragger__cover" @click.stop v-if="image">
|
||||||
<transition name="fade-in">
|
<transition name="el-fade-in">
|
||||||
<el-progress
|
<el-progress
|
||||||
class="el-dragger__cover__progress"
|
class="el-dragger__cover__progress"
|
||||||
v-if="image.status === 'uploading'"
|
v-if="image.status === 'uploading'"
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
@mouseleave="mouseover = false"
|
@mouseleave="mouseover = false"
|
||||||
>
|
>
|
||||||
<img :src="image.url">
|
<img :src="image.url">
|
||||||
<transition name="fade-in">
|
<transition name="el-fade-in">
|
||||||
<div v-show="mouseover" class="el-dragger__cover__interact">
|
<div v-show="mouseover" class="el-dragger__cover__interact">
|
||||||
<div class="el-draggeer__cover__btns">
|
<div class="el-draggeer__cover__btns">
|
||||||
<span class="btn" @click="$parent.handleClick()"><i class="el-icon-upload2"></i><span>{{ t('el.upload.continue') }}</span></span>
|
<span class="btn" @click="$parent.handleClick()"><i class="el-icon-upload2"></i><span>{{ t('el.upload.continue') }}</span></span>
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</transition>
|
</transition>
|
||||||
<transition name="md-fade-top">
|
<transition name="el-zoom-in-bottom">
|
||||||
<h4 v-show="mouseover" class="el-dragger__cover__title">{{image.name}}</h4>
|
<h4 v-show="mouseover" class="el-dragger__cover__title">{{image.name}}</h4>
|
||||||
</transition>
|
</transition>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue