Skip to content

Commit eb677db

Browse files
committed
improve command description
1 parent 5370d6c commit eb677db

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

packages/common-ui/src/components/studentInputs/RadioMultipleChoice.vue

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,24 @@ export default defineComponent({
122122
...Array.from({ length: this.choiceList.length }, (_, i) => ({
123123
hotkey: (i + 1).toString(),
124124
callback: () => this.setSelection(i),
125-
command: `Select option ${i + 1}`,
125+
command: `Select ${((i) => {
126+
switch (i) {
127+
case 0:
128+
return 'first';
129+
case 1:
130+
return 'second';
131+
case 2:
132+
return 'third';
133+
case 3:
134+
return 'fourth';
135+
case 4:
136+
return 'fifth';
137+
case 5:
138+
return 'sixth';
139+
default:
140+
return `${i + 1}th`;
141+
}
142+
})(i)} option`,
126143
})),
127144
]);
128145
},

0 commit comments

Comments
 (0)