<script setup lang="ts">
import { useStart, startDirective } from '@/composables/start';

const vStart = startDirective;
const { loading, handle, extra } = useStart();
</script>

<template>
  <div
    class="van-button decorate"
    data-start="true"
    v-start="extra"
    @click="!loading && handle()"
  >
    <div class="van-button__content">
      <van-loading v-if="loading" />
      <span v-else class="van-button__text">开始检测</span>
    </div>
  </div>
</template>

<style scoped lang="scss"></style>
