Skip to content

Commit d262ea0

Browse files
committed
chore: disable radio
“替换谱面”功能,对新版本已经导入过、ShiftLocked=true的谱面,会产生UI bug Fixes #53
1 parent 31465a1 commit d262ea0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

MaiChartManager/Front/src/views/Charts/ImportCreateChartButton/ImportChartButton/ShiftModeSelector.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { computed, defineComponent, PropType } from "vue";
1+
import { computed, defineComponent, PropType, provide } from "vue";
22
import { Popover, Radio } from "@munet/ui";
33
import { ShiftMethod } from "@/client/apiGen";
44
import { TempOptions } from "./types";
@@ -16,6 +16,8 @@ export default defineComponent({
1616
set: (v: ShiftMethod) => { if (!props.tempOptions.shiftLocked) props.tempOptions.shift = v }
1717
})
1818

19+
provide('disabled', computed(() => props.tempOptions.shiftLocked))
20+
1921
return () => <div>
2022
<div class="text-sm">{t('chart.import.option.shiftMode')}</div>
2123
<div class="flex flex-col gap-2 w-full">

0 commit comments

Comments
 (0)