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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<script lang="ts" setup>
defineProps(['activeData', 'showType']);
const labelPositionList = [
  { fullName: '外侧', id: 'outside' },
  { fullName: '内侧', id: 'inside' },
];
const labelShowList = [
  { fullName: '数值', id: 'count' },
  { fullName: '百分比', id: 'percent' },
];
</script>
<template>
  <a-collapse-panel>
    <template #header>数值设置</template>
    <a-form-item label="显示">
      <a-switch v-model:checked="activeData.option.seriesLabelShow" />
    </a-form-item>
    <template v-if="activeData.option.seriesLabelShow">
      <template v-if="activeData.jnpfKey == 'pieChart' && showType == 'pc'">
        <a-form-item label="显示位置">
          <jnpf-radio
            v-model:value="activeData.option.seriesLabelPosition"
            :options="labelPositionList"
            option-type="button"
            button-style="solid"
            class="right-radio" />
        </a-form-item>
        <a-form-item label="显示内容">
          <jnpf-checkbox
            v-model:value="activeData.option.seriesLabelShowInfo"
            :options="labelShowList"
            option-type="button"
            button-style="solid"
            class="right-radio" />
        </a-form-item>
      </template>
      <template v-if="showType == 'pc'">
        <a-form-item label="字体大小">
          <a-input-number v-model:value="activeData.option.seriesLabelFontSize" placeholder="请输入" :min="12" :max="25" />
        </a-form-item>
        <a-form-item label="字体加粗">
          <a-switch v-model:checked="activeData.option.seriesLabelFontWeight" />
        </a-form-item>
      </template>
      <a-form-item label="字体颜色">
        <jnpf-color-picker v-model:value="activeData.option.seriesLabelColor" size="small" />
      </a-form-item>
      <a-form-item label="背景色" v-if="showType == 'pc'">
        <jnpf-color-picker v-model:value="activeData.option.seriesLabelBgColor" size="small" />
      </a-form-item>
    </template>
  </a-collapse-panel>
</template>