<template>
  <collapse-item name="鼠标设置">
    <setting-item-box name="鼠标样式" :alone="true">
      <setting-item>
        <n-select
          v-model:value="optionData.mouseCursor"
          size="small"
          :options="mouseCursor"
        ></n-select>
      </setting-item>
    </setting-item-box>
    <setting-item-box name="是否禁止选中属性" :alone="true">
      <setting-item>
        <n-space>
          <n-switch v-model:value="optionData.mouseSelectClose" size="small" />
          <n-text>是否禁用</n-text>
        </n-space>
      </setting-item>
    </setting-item-box>
    <setting-item-box name="是否允许鼠标穿透事件" :alone="true">
      <setting-item>
        <n-space>
          <n-switch v-model:value="optionData.mouseEventClose" size="small" />
          <n-text>是否允许</n-text>
        </n-space>
      </setting-item>
    </setting-item-box>
  </collapse-item>
</template>

<script setup lang="ts">
import { SettingItemBox, SettingItem, CollapseItem } from '@/components/Pages/ChartItemSetting'

const props = defineProps({
  optionData: {
    type: Object,
    required: true
  }
})

const mouseCursor = [
  { value: 'default', label: 'default', },
  { value: 'none', label: 'none', },
  { value: 'context-menu', label: 'context-menu', },
  { value: 'pointer', label: 'pointer', },
  { value: 'help', label: 'help', },
  { value: 'wait', label: 'wait', },
  { value: 'progress', label: 'progress', },
  { value: 'text', label: 'text', },
  { value: 'vertical-text', label: 'vertical-text', },
  { value: 'move', label: 'move', },
  { value: 'grab', label: 'grab', },
  { value: 'grabbing', label: 'grabbing', },
]
</script>

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