mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-09-10 14:59:46 +08:00
build: compile 1.6.1
This commit is contained in:
parent
2ea15ef256
commit
6a4741302b
4
dist/field/index.wxml
vendored
4
dist/field/index.wxml
vendored
@ -19,9 +19,7 @@
|
|||||||
<view wx:if="{{ label }}" class="label-class {{ utils.bem('field__label', { disabled }) }}" slot="title">
|
<view wx:if="{{ label }}" class="label-class {{ utils.bem('field__label', { disabled }) }}" slot="title">
|
||||||
{{ label }}
|
{{ label }}
|
||||||
</view>
|
</view>
|
||||||
<view wx:else slot="title" class="label-class">
|
<slot wx:else name="label" slot="title" />
|
||||||
<slot name="label" />
|
|
||||||
</view>
|
|
||||||
<view class="{{ utils.bem('field__body', [type]) }}">
|
<view class="{{ utils.bem('field__body', [type]) }}">
|
||||||
<textarea
|
<textarea
|
||||||
wx:if="{{ type === 'textarea' }}"
|
wx:if="{{ type === 'textarea' }}"
|
||||||
|
14
dist/picker/index.js
vendored
14
dist/picker/index.js
vendored
@ -40,6 +40,20 @@ VantComponent({
|
|||||||
);
|
);
|
||||||
return Promise.all(stack);
|
return Promise.all(stack);
|
||||||
},
|
},
|
||||||
|
emit(event) {
|
||||||
|
const { type } = event.currentTarget.dataset;
|
||||||
|
if (this.simple) {
|
||||||
|
this.$emit(type, {
|
||||||
|
value: this.getColumnValue(0),
|
||||||
|
index: this.getColumnIndex(0),
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
this.$emit(type, {
|
||||||
|
value: this.getValues(),
|
||||||
|
index: this.getIndexes(),
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
onChange(event) {
|
onChange(event) {
|
||||||
if (this.simple) {
|
if (this.simple) {
|
||||||
this.$emit('change', {
|
this.$emit('change', {
|
||||||
|
@ -19,9 +19,7 @@
|
|||||||
<view wx:if="{{ label }}" class="label-class {{ utils.bem('field__label', { disabled }) }}" slot="title">
|
<view wx:if="{{ label }}" class="label-class {{ utils.bem('field__label', { disabled }) }}" slot="title">
|
||||||
{{ label }}
|
{{ label }}
|
||||||
</view>
|
</view>
|
||||||
<view wx:else slot="title" class="label-class">
|
<slot wx:else name="label" slot="title" />
|
||||||
<slot name="label" />
|
|
||||||
</view>
|
|
||||||
<view class="{{ utils.bem('field__body', [type]) }}">
|
<view class="{{ utils.bem('field__body', [type]) }}">
|
||||||
<textarea
|
<textarea
|
||||||
wx:if="{{ type === 'textarea' }}"
|
wx:if="{{ type === 'textarea' }}"
|
||||||
|
@ -61,6 +61,20 @@ component_1.VantComponent({
|
|||||||
});
|
});
|
||||||
return Promise.all(stack);
|
return Promise.all(stack);
|
||||||
},
|
},
|
||||||
|
emit: function (event) {
|
||||||
|
var type = event.currentTarget.dataset.type;
|
||||||
|
if (this.simple) {
|
||||||
|
this.$emit(type, {
|
||||||
|
value: this.getColumnValue(0),
|
||||||
|
index: this.getColumnIndex(0),
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
this.$emit(type, {
|
||||||
|
value: this.getValues(),
|
||||||
|
index: this.getIndexes(),
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
onChange: function (event) {
|
onChange: function (event) {
|
||||||
if (this.simple) {
|
if (this.simple) {
|
||||||
this.$emit('change', {
|
this.$emit('change', {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user