[bugfix] Component should not inheritAttrs when use $attrs (#488)

This commit is contained in:
neverland 2017-12-27 19:41:39 +08:00 committed by GitHub
parent 6d003c88a1
commit 11c07eb007
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 1 deletions

View File

@ -50,6 +50,8 @@ import Cell from '../cell';
export default create({ export default create({
name: 'van-field', name: 'van-field',
inheritAttrs: false,
components: { components: {
Cell Cell
}, },

View File

@ -30,6 +30,8 @@ import Clickoutside from '../utils/clickoutside';
export default create({ export default create({
name: 'van-search', name: 'van-search',
inheritAttrs: false,
props: { props: {
value: String, value: String,
showAction: Boolean, showAction: Boolean,

View File

@ -11,7 +11,7 @@
:sku="sku" :sku="sku"
/> />
</slot> </slot>
<div class="van-sku-body scroller" :style="bodyStyle"> <div class="van-sku-body" :style="bodyStyle">
<slot name="sku-group" :selectedSku="selectedSku" :skuEventBus="skuEventBus"> <slot name="sku-group" :selectedSku="selectedSku" :skuEventBus="skuEventBus">
<div v-if="hasSku" class="van-sku-group-container van-hairline--bottom"> <div v-if="hasSku" class="van-sku-group-container van-hairline--bottom">
<div <div

View File

@ -18,6 +18,8 @@ import { create } from '../utils';
export default create({ export default create({
name: 'van-uploader', name: 'van-uploader',
inheritAttrs: false,
props: { props: {
disabled: Boolean, disabled: Boolean,
beforeRead: Function, beforeRead: Function,

View File

@ -12,6 +12,7 @@
&-body { &-body {
max-height: 350px; max-height: 350px;
overflow-y: scroll; overflow-y: scroll;
-webkit-overflow-scrolling: touch;
&::-webkit-scrollbar { &::-webkit-scrollbar {
display: none; display: none;