mirror of
https://github.com/youzan/vant.git
synced 2025-10-15 15:40:52 +00:00
[bugfix] Component should not inheritAttrs when use $attrs (#488)
This commit is contained in:
@@ -50,6 +50,8 @@ import Cell from '../cell';
|
||||
export default create({
|
||||
name: 'van-field',
|
||||
|
||||
inheritAttrs: false,
|
||||
|
||||
components: {
|
||||
Cell
|
||||
},
|
||||
|
@@ -30,6 +30,8 @@ import Clickoutside from '../utils/clickoutside';
|
||||
export default create({
|
||||
name: 'van-search',
|
||||
|
||||
inheritAttrs: false,
|
||||
|
||||
props: {
|
||||
value: String,
|
||||
showAction: Boolean,
|
||||
|
@@ -11,7 +11,7 @@
|
||||
:sku="sku"
|
||||
/>
|
||||
</slot>
|
||||
<div class="van-sku-body scroller" :style="bodyStyle">
|
||||
<div class="van-sku-body" :style="bodyStyle">
|
||||
<slot name="sku-group" :selectedSku="selectedSku" :skuEventBus="skuEventBus">
|
||||
<div v-if="hasSku" class="van-sku-group-container van-hairline--bottom">
|
||||
<div
|
||||
|
@@ -18,6 +18,8 @@ import { create } from '../utils';
|
||||
export default create({
|
||||
name: 'van-uploader',
|
||||
|
||||
inheritAttrs: false,
|
||||
|
||||
props: {
|
||||
disabled: Boolean,
|
||||
beforeRead: Function,
|
||||
|
@@ -12,6 +12,7 @@
|
||||
&-body {
|
||||
max-height: 350px;
|
||||
overflow-y: scroll;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
|
||||
&::-webkit-scrollbar {
|
||||
display: none;
|
||||
|
Reference in New Issue
Block a user