mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +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">
|
||||
{{ label }}
|
||||
</view>
|
||||
<view wx:else slot="title" class="label-class">
|
||||
<slot name="label" />
|
||||
</view>
|
||||
<slot wx:else name="label" slot="title" />
|
||||
<view class="{{ utils.bem('field__body', [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);
|
||||
},
|
||||
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) {
|
||||
if (this.simple) {
|
||||
this.$emit('change', {
|
||||
|
@ -19,9 +19,7 @@
|
||||
<view wx:if="{{ label }}" class="label-class {{ utils.bem('field__label', { disabled }) }}" slot="title">
|
||||
{{ label }}
|
||||
</view>
|
||||
<view wx:else slot="title" class="label-class">
|
||||
<slot name="label" />
|
||||
</view>
|
||||
<slot wx:else name="label" slot="title" />
|
||||
<view class="{{ utils.bem('field__body', [type]) }}">
|
||||
<textarea
|
||||
wx:if="{{ type === 'textarea' }}"
|
||||
|
@ -61,6 +61,20 @@ component_1.VantComponent({
|
||||
});
|
||||
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) {
|
||||
if (this.simple) {
|
||||
this.$emit('change', {
|
||||
|
Loading…
x
Reference in New Issue
Block a user