mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-08-07 13:09:45 +08:00
[bugfix] Component should not inheritAttrs when use $attrs (#488)
This commit is contained in:
parent
6d003c88a1
commit
11c07eb007
@ -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
|
||||||
},
|
},
|
||||||
|
@ -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,
|
||||||
|
@ -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
|
||||||
|
@ -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,
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user