<template>
  <div class="block">
    <h1>概述</h1>
    <p>标绘工具条，用于显示绘制点线面等的按钮，可以自行传入需要的工具项</p>
  </div>
  
  <div class="block">
    <h1>代码示例</h1>
    <RunCase label="基本用法" file="./draw-tool-bar/Basic.vue">
      <template #component>
        <Basic />
      </template>
      <template #description>
        <p>显示基本的绘图工具按钮</p>
      </template>
    </RunCase>
    <RunCase label="基本用法" file="./draw-tool-bar/Custom.vue">
      <template #component>
        <Custom />
      </template>
      <template #description>
        <p>自定义按钮</p>
      </template>
    </RunCase>
  </div>

  <div class="block">
    <h1>API</h1>
    <h2>props</h2>
    <PropsTable type="draw-tool-bar"/>
    <h2>events</h2>
    <EventsTable type="draw-tool-bar"/>
  </div>
  
</template>

<script setup>
import Basic from '../components/draw-tool-bar/Basic.vue'
import Custom from '../components/draw-tool-bar/Custom.vue'

</script>