declare el-collapse-transition in its dependents (#4728)

pull/4759/head
杨奕 2017-05-08 14:06:23 +08:00 committed by baiyaaaaa
parent 6b315d02f0
commit dc6f754ab5
4 changed files with 10 additions and 1 deletions

View File

@ -14,6 +14,7 @@
</div>
</template>
<script>
import ElCollapseTransition from 'element-ui/src/transitions/collapse-transition';
import Emitter from 'element-ui/src/mixins/emitter';
export default {
@ -23,6 +24,8 @@
mixins: [Emitter],
components: { ElCollapseTransition },
data() {
return {
contentWrapStyle: {

View File

@ -26,6 +26,7 @@
</li>
</template>
<script>
import ElCollapseTransition from 'element-ui/src/transitions/collapse-transition';
import menuMixin from './menu-mixin';
import Emitter from 'element-ui/src/mixins/emitter';
@ -36,6 +37,8 @@
mixins: [menuMixin, Emitter],
components: { ElCollapseTransition },
props: {
index: {
type: String,

View File

@ -6,7 +6,8 @@
v-show="visible"
:class="{
'selected': itemSelected,
'is-disabled': disabled || groupDisabled || limitReached
'is-disabled': disabled || groupDisabled || limitReached,
'hover': parent.hoverIndex === index
}">
<slot>
<span>{{ currentLabel }}</span>

View File

@ -44,6 +44,7 @@
</template>
<script type="text/jsx">
import ElCollapseTransition from 'element-ui/src/transitions/collapse-transition';
import ElCheckbox from 'element-ui/packages/checkbox';
import emitter from 'element-ui/src/mixins/emitter';
@ -65,6 +66,7 @@
},
components: {
ElCollapseTransition,
ElCheckbox,
NodeContent: {
props: {