update Cascader

update Cascader
This commit is contained in:
梁灏 2016-11-16 11:01:54 +08:00
parent 165bb7c9ed
commit 9ec927b149
4 changed files with 7 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 159 KiB

After

Width:  |  Height:  |  Size: 157 KiB

Before After
Before After

View file

@ -43,7 +43,10 @@
} }
}, },
value: { value: {
type: Array type: Array,
default () {
return []
}
}, },
disabled: { disabled: {
type: Boolean, type: Boolean,

View file

@ -31,6 +31,7 @@
} }
.@{select-dropdown-prefix-cls} { .@{select-dropdown-prefix-cls} {
width: auto;
padding: 0; padding: 0;
white-space: nowrap; white-space: nowrap;
} }
@ -42,7 +43,7 @@
min-width: 100px; min-width: 100px;
height: 180px; height: 180px;
margin: 0; margin: 0;
padding: 5px 0; padding: 5px 0 !important;
vertical-align: top; vertical-align: top;
list-style: none; list-style: none;
border-right: 1px solid @border-color-split; border-right: 1px solid @border-color-split;

View file

@ -1,7 +1,7 @@
<template> <template>
<div style="margin: 50px;width:300px"> <div style="margin: 50px;width:300px">
{{ value | json }} {{ value | json }}
<Cascader size="large" :data="data" :value.sync="value" @on-change="change" trigger="hover" :render-format="format"></Cascader> <Cascader size="large" :data="data" @on-change="change" trigger="hover" :render-format="format"></Cascader>
</div> </div>
</template> </template>
<script> <script>