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

37 lines
998 B
React
Raw Normal View History

2024-12-20 10:06:46 +00:00
import { useRouter } from 'vue-router'
import { NDatePicker, NRadioButton, NRadioGroup, NButton } from 'naive-ui'
import GanttCom from '../Gantt'
export default defineComponent({
setup() {
const range = ref()
const value = ref('day')
2024-12-20 10:06:46 +00:00
const router = useRouter()
const editEvent = () => {
console.log(router)
router.push('/gantt/mainEdit')
}
return () => (
<>
<div class="flex gap-2">
2025-02-19 08:06:46 +00:00
<NDatePicker
v-model:value={range.value}
type="daterange"
clearable
disabled
/>
<NRadioGroup v-model:value={value.value} name="radiobuttongroup">
<NRadioButton value="hour" label="日" />
<NRadioButton value="day" label="月" />
</NRadioGroup>
2025-02-14 08:33:28 +00:00
{/* <NButton class="ml-auto" type="primary" onClick={editEvent}>
2024-12-20 10:06:46 +00:00
编辑事件
2025-02-14 08:33:28 +00:00
</NButton> */}
</div>
<GanttCom scale={value.value} />
</>
)
},
})