[Improvement] Rebuild test system (#1051)

This commit is contained in:
neverland
2018-05-12 14:04:32 +08:00
committed by GitHub
parent 360f2f40b1
commit a55eda8891
185 changed files with 4989 additions and 7950 deletions

View File

@@ -12,7 +12,7 @@
<span :class="b('price-decimal')">{{ priceDecimal }}</span>
</template>
</div>
<van-button :type="buttonType" :disabled="disabled" :loading="loading" @click="onSubmit">
<van-button :type="buttonType" :disabled="disabled" :loading="loading" @click="$emit('submit')">
{{ loading ? '' : buttonText }}
</van-button>
</div>
@@ -59,14 +59,6 @@ export default create({
const decimal = Math.floor(this.price % 100);
return (decimal < 10 ? '0' : '') + decimal;
}
},
methods: {
onSubmit() {
if (!this.disabled && !this.loading) {
this.$emit('submit');
}
}
}
});
</script>