<template>
<van-button block round
size="small"
color="#F0F3FF"
style="color: var(--van-primary-color);"
:loading="pressureObj.getLoadMark()"
loading-text="测量中..."
@click="getValue">
<slot>测量</slot>
</van-button>
</template>
<script>
export default {
name: 'BloodPressureBt',
props: {
pressureObj: {
required: true,
default: () => ({})
}
},
emits: ['getValue'],
methods: {
getValue() {
this.pressureObj.getValue((val) => {
this.$emit('getValue', val)
})
}
}
}
</script>
<style lang="less" scoped>
</style>
-
songrui authored828bc0fc