ny
昨天 282fbc6488f4e8ceb5fda759f963ee88fbf7b999
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<script lang="ts" setup>
import { computed, inject } from 'vue';
 
defineOptions({ inheritAttrs: false });
defineProps(['activeData']);
 
const typeOptions = [
  { id: 'never', fullName: '永不显示' },
  { id: 'hover', fullName: '移入显示' },
];
 
const getShowType: (() => string | undefined) | undefined = inject('getShowType');
const showType = computed(() => (getShowType as () => string | undefined)());
</script>
<template>
  <a-form-item label="显示阴影" v-if="showType === 'pc'">
    <jnpf-radio v-model:value="activeData.shadow" :options="typeOptions" option-type="button" button-style="solid" class="right-radio" />
  </a-form-item>
</template>