ny
昨天 282fbc6488f4e8ceb5fda759f963ee88fbf7b999
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<script lang="ts" setup>
defineProps(['activeData', 'showType']);
const layoutList = [
  { fullName: '横排', id: 'horizontal' },
  { fullName: '竖排', id: 'vertical' },
];
</script>
<template>
  <a-collapse-panel>
    <template #header>图例设置</template>
    <a-form-item label="显示">
      <a-switch v-model:checked="activeData.option.legendShow" />
    </a-form-item>
    <template v-if="activeData.option.legendShow && showType == 'pc'">
      <a-form-item label="字体大小">
        <a-input-number v-model:value="activeData.option.legendTextStyleFontSize" placeholder="请输入" :min="12" :max="25" />
      </a-form-item>
      <a-form-item label="布局">
        <jnpf-radio v-model:value="activeData.option.legendOrient" :options="layoutList" option-type="button" button-style="solid" class="right-radio" />
      </a-form-item>
      <a-form-item label="上下边距">
        <a-slider v-model:value="activeData.option.legendTop" :max="100" />
      </a-form-item>
      <a-form-item label="左右边距">
        <a-slider v-model:value="activeData.option.legendLeft" :max="100" />
      </a-form-item>
    </template>
  </a-collapse-panel>
</template>