config.vue
591 Bytes
<template>
<collapse-item :name="t('information.dataSourceConfigCOntent')" :expanded="true">
<monaco-editor v-model:modelValue="optionData.dataset" width="400px" height="480px" language="json" />
</collapse-item>
</template>
<script setup lang="ts">
import { PropType } from 'vue'
import { option } from './config'
import { CollapseItem } from '@/components/Pages/ChartItemSetting'
import { MonacoEditor } from '@/components/Pages/MonacoEditor'
defineProps({
optionData: {
type: Object as PropType<typeof option>,
required: true
}
})
const t = window['$t']
</script>