|
|
|
@ -12,7 +12,7 @@ const emit = defineEmits(['update:value'])
|
|
|
|
|
const vModel = useVModel(props, 'value', emit) |
|
|
|
|
|
|
|
|
|
const richMode = computed({ |
|
|
|
|
get: () => vModel.value.meta?.richMode, |
|
|
|
|
get: () => !!vModel.value.meta?.richMode, |
|
|
|
|
set: (value) => { |
|
|
|
|
if (!vModel.value.meta) vModel.value.meta = {} |
|
|
|
|
|
|
|
|
@ -29,7 +29,7 @@ watch(richMode, () => {
|
|
|
|
|
<div class="flex flex-col mt-2 gap-2"> |
|
|
|
|
<a-form-item> |
|
|
|
|
<div class="flex flex-row items-center"> |
|
|
|
|
<NcSwitch v-model:checked="richMode" :name="$t('labels.enableRichText')" size="small"> |
|
|
|
|
<NcSwitch v-model:checked="richMode"> |
|
|
|
|
<div class="text-xs">{{ $t('labels.enableRichText') }}</div> |
|
|
|
|
</NcSwitch> |
|
|
|
|
</div> |
|
|
|
|