feat: quiz creation from lesson form

This commit is contained in:
Jannat Patel
2024-08-12 12:46:38 +05:30
parent 7f7986d77a
commit 62ab853605
5 changed files with 34 additions and 19 deletions

View File

@@ -91,7 +91,7 @@
<div>
{{ option.label }}
</div>
<div
<div v-if="option.label != option.description"
class="text-xs text-gray-700"
v-html="option.description"
></div>

View File

@@ -77,6 +77,7 @@ const valuePropPassed = computed(() => 'value' in attrs)
const value = computed({
get: () => (valuePropPassed.value ? attrs.value : props.modelValue),
set: (val) => {
console.log(valuePropPassed.value)
return (
val?.value &&
emit(valuePropPassed.value ? 'change' : 'update:modelValue', val?.value)