config.vue
905 Bytes
<template>
<CollapseItem name="播放器配置" :expanded="true">
<setting-item-box name="源地址" :alone="true">
<setting-item v-for="(item, index) in optionData.dataset" :key="index">
<n-input-group>
<n-input v-model:value="item.url" size="small" placeholder="请输入源地址"></n-input>
</n-input-group>
</setting-item>
</setting-item-box>
<setting-item-box name="自动播放">
<setting-item>
<n-switch v-model:value="optionData.autoplay" size="small" />
</setting-item>
</setting-item-box>
</CollapseItem>
</template>
<script setup lang="ts">
import { PropType } from 'vue'
import { option } from './config'
import { CollapseItem, SettingItemBox, SettingItem } from '@/components/Pages/ChartItemSetting'
defineProps({
optionData: {
type: Object as PropType<typeof option>,
required: true
}
})
</script>