Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
7a85d55f
Commit
7a85d55f
authored
Dec 03, 2016
by
baiyaaaaa
Committed by
杨奕
Dec 03, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
normalize transition class name
parent
06a739ff
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
32 additions
and
88 deletions
+32
-88
packages/autocomplete/src/autocomplete.vue
packages/autocomplete/src/autocomplete.vue
+1
-1
packages/date-picker/src/panel/date-range.vue
packages/date-picker/src/panel/date-range.vue
+1
-1
packages/date-picker/src/panel/date.vue
packages/date-picker/src/panel/date.vue
+1
-1
packages/date-picker/src/panel/time-range.vue
packages/date-picker/src/panel/time-range.vue
+1
-1
packages/date-picker/src/panel/time-select.vue
packages/date-picker/src/panel/time-select.vue
+1
-1
packages/date-picker/src/panel/time.vue
packages/date-picker/src/panel/time.vue
+1
-1
packages/dropdown/src/dropdown-menu.vue
packages/dropdown/src/dropdown-menu.vue
+1
-1
packages/form/src/form-item.vue
packages/form/src/form-item.vue
+1
-1
packages/menu/src/submenu.vue
packages/menu/src/submenu.vue
+1
-1
packages/select/src/select.vue
packages/select/src/select.vue
+1
-1
packages/table/src/filter-panel.vue
packages/table/src/filter-panel.vue
+1
-1
packages/tag/src/tag.vue
packages/tag/src/tag.vue
+1
-1
packages/theme-default/src/common/transition.css
packages/theme-default/src/common/transition.css
+17
-73
packages/upload/src/cover.vue
packages/upload/src/cover.vue
+3
-3
No files found.
packages/autocomplete/src/autocomplete.vue
View file @
7a85d55f
...
@@ -19,7 +19,7 @@
...
@@ -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"
...
...
packages/date-picker/src/panel/date-range.vue
View file @
7a85d55f
<
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' }"
...
...
packages/date-picker/src/panel/date.vue
View file @
7a85d55f
<
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=
"
{
...
...
packages/date-picker/src/panel/time-range.vue
View file @
7a85d55f
<
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' }"
...
...
packages/date-picker/src/panel/time-select.vue
View file @
7a85d55f
<
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' }"
...
...
packages/date-picker/src/panel/time.vue
View file @
7a85d55f
<
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'}"
...
...
packages/dropdown/src/dropdown-menu.vue
View file @
7a85d55f
<
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>
...
...
packages/form/src/form-item.vue
View file @
7a85d55f
...
@@ -9,7 +9,7 @@
...
@@ -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>
...
...
packages/menu/src/submenu.vue
View file @
7a85d55f
...
@@ -16,7 +16,7 @@
...
@@ -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>
...
...
packages/select/src/select.vue
View file @
7a85d55f
...
@@ -59,7 +59,7 @@
...
@@ -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"
>
...
...
packages/table/src/filter-panel.vue
View file @
7a85d55f
<
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"
>
...
...
packages/tag/src/tag.vue
View file @
7a85d55f
<
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}]">
...
...
packages/theme-default/src/common/transition.css
View file @
7a85d55f
...
@@ -5,109 +5,53 @@
...
@@ -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
:
scale
Y
(
0
);
transform
:
scale
X
(
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);
}*/
packages/upload/src/cover.vue
View file @
7a85d55f
<
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 @@
...
@@ -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 @@
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment