feat: css 处理 增加font 增加 选择题目

This commit is contained in:
陈昱达
2025-03-03 09:20:13 +08:00
parent 66756b4cf2
commit 1151a89aa9
27 changed files with 1314 additions and 108 deletions

View File

@@ -0,0 +1,45 @@
<template>
<van-field
v-model="element.stem"
:label="element.stem"
:required="element.config.is_required=== 1"
label-align="top"
>
<template #input>
<van-checkbox-group>
<template v-for="item in element.options">
<van-checkbox
v-for="(it, index) in item"
:key="index"
:name="it.value"
:label="it.label"
:disabled="it.disabled"
icon-size="0.35rem"
>
<template #default>
<!-- {{it}}-->
<div v-html="it.option"></div>
</template>
</van-checkbox>
</template>
</van-checkbox-group>
</template>
</van-field>
</template>
<script setup>
import { ref } from 'vue';
const props = defineProps({
element: {
type: Object,
default: () => {
return {
stem: ''
};
}
}
});
const element = ref(props.element);
</script>
<style scoped lang="scss">
</style>