JinZHouXiYiJi_DaPin2/examples/pages/ApiView/View.tsx

22 lines
486 B
TypeScript
Raw Permalink Normal View History

2023-12-05 13:23:01 +08:00
import { RestContent } from 'open-data-v/data/rest'
import { StaticContent } from 'open-data-v/data/static'
import { defineComponent } from 'vue'
export default defineComponent({
props: {
active: {
type: String,
default: 'REST'
}
},
setup(props) {
return () => {
if (props.active == 'REST') {
return <RestContent mode="debug" />
} else if (props.active == 'STATIC') {
return <StaticContent mode="debug" />
}
}
}
})