mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(Uploader): enable inheritAttrs
This commit is contained in:
parent
ad1301636d
commit
2937c1537e
@ -14,11 +14,11 @@ import ImagePreview from '../image-preview';
|
|||||||
const [createComponent, bem] = createNamespace('uploader');
|
const [createComponent, bem] = createNamespace('uploader');
|
||||||
|
|
||||||
export default createComponent({
|
export default createComponent({
|
||||||
inheritAttrs: false,
|
|
||||||
|
|
||||||
mixins: [FieldMixin],
|
mixins: [FieldMixin],
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
|
capture: String,
|
||||||
|
multiple: Boolean,
|
||||||
disabled: Boolean,
|
disabled: Boolean,
|
||||||
lazyLoad: Boolean,
|
lazyLoad: Boolean,
|
||||||
uploadText: String,
|
uploadText: String,
|
||||||
@ -385,11 +385,12 @@ export default createComponent({
|
|||||||
|
|
||||||
const Input = (
|
const Input = (
|
||||||
<input
|
<input
|
||||||
{...this.$attrs}
|
|
||||||
ref="input"
|
ref="input"
|
||||||
type="file"
|
type="file"
|
||||||
accept={this.accept}
|
|
||||||
class={bem('input')}
|
class={bem('input')}
|
||||||
|
accept={this.accept}
|
||||||
|
capture={this.capture}
|
||||||
|
multiple={this.multiple}
|
||||||
disabled={this.disabled}
|
disabled={this.disabled}
|
||||||
onChange={this.onChange}
|
onChange={this.onChange}
|
||||||
/>
|
/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user