feat: css 处理 增加font 增加 选择题目
This commit is contained in:
45
src/views/Design/components/Questions/BaseSelect.vue
Normal file
45
src/views/Design/components/Questions/BaseSelect.vue
Normal 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>
|
||||
Reference in New Issue
Block a user