|
|
@@ -21,9 +21,13 @@ |
|
|
|
v-for="(item, index) in options" :key="index" :label="item.label" :name="item.value"> |
|
|
|
</u-checkbox> |
|
|
|
</u-checkbox-group> |
|
|
|
<view style="padding: 36rpx 50rpx"> |
|
|
|
<view style="padding: 36rpx 50rpx;display:flex"> |
|
|
|
<u-button @click="cancel" type="info" |
|
|
|
customStyle="border-radius: 45rpx;height: 90rpx;font-weight: 700;font-size: 32rpx;color:#666;" |
|
|
|
text="取消选择" v-if="value_"></u-button> |
|
|
|
<view style="width: 36rpx;" v-if="value_"></view> |
|
|
|
<u-button @click="cofirm" type="primary" |
|
|
|
style="border-radius: 45rpx;height: 90rpx;font-weight: 700;font-size: 32rpx;" |
|
|
|
customStyle="border-radius: 45rpx;height: 90rpx;font-weight: 700;font-size: 32rpx;" |
|
|
|
text="确定"></u-button> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@@ -135,6 +139,21 @@ |
|
|
|
} |
|
|
|
this.close() |
|
|
|
}, |
|
|
|
cancel(){ |
|
|
|
if (!this.multiple) { |
|
|
|
this.value_ = '' |
|
|
|
this.$emit("input", this.value_) |
|
|
|
this.$emit("change", this.value_) |
|
|
|
let obj = this.options.find(e1 => e1.value == this.value_) |
|
|
|
if (obj) { |
|
|
|
this.$emit("update:title", this.title_) |
|
|
|
} else { |
|
|
|
this.$emit("update:title", '') |
|
|
|
} |
|
|
|
} else { |
|
|
|
this.value_ = [] |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|