ts/src/views/Gantt/components/MainGantt/index.jsx

22 lines
627 B
React
Raw Normal View History

import { NDatePicker, NRadioButton, NRadioGroup } from 'naive-ui'
import GanttCom from '../Gantt'
export default defineComponent({
setup() {
const range = ref()
const value = ref('day')
return () => (
<>
<div class="flex gap-2">
<NDatePicker v-model:value={range.value} type="daterange" clearable />
<NRadioGroup v-model:value={value.value} name="radiobuttongroup">
<NRadioButton value="hour" label="日" />
<NRadioButton value="day" label="月" />
</NRadioGroup>
</div>
<GanttCom scale={value.value} />
</>
)
},
})