hookehuyr

🐞 fix: 修复文本内容连续空格不显示问题

......@@ -14,9 +14,7 @@
(最多可选数: {{ item.component_props.max }})
</span>
</div>
<div v-if="item.component_props.note" class="note">
{{ item.component_props.note }}
</div>
<div v-if="item.component_props.note" class="note" v-html="item.component_props.note" />
<van-field :name="item.key" :rules="item.rules" :border="false">
<template #input>
<van-checkbox-group
......@@ -73,7 +71,7 @@ const HideShow = computed(() => {
margin-left: 1rem;
color: gray;
padding-bottom: 0.5rem;
white-space: pre-line;
white-space: pre;
}
}
......
<!--
* @Date: 2022-08-31 16:16:49
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-01-17 16:44:20
* @LastEditTime: 2023-01-18 16:15:03
* @FilePath: /data-table/src/components/FileUploaderField/index.vue
* @Description: 文件上传控件
-->
......@@ -13,10 +13,9 @@
</div>
<div
v-if="item.component_props.note"
style="font-size: 0.9rem; margin-left: 1rem; color: gray; padding-bottom: 0.5rem; padding-top: 0.25rem; white-space: pre-line;"
>
{{ item.component_props.note }}
</div>
v-html="item.component_props.note"
style="font-size: 0.9rem; margin-left: 1rem; color: gray; padding-bottom: 0.5rem; padding-top: 0.25rem; white-space: pre;"
/>
<div>
<p
v-for="(file, index) in fileList"
......
......@@ -13,10 +13,9 @@
</div>
<div
v-if="item.component_props.note"
style="font-size: 0.9rem; margin-left: 1rem; color: gray; padding-bottom: 0.5rem; padding-top: 0.25rem; white-space: pre-line;"
>
{{ item.component_props.note }}
</div>
v-html="item.component_props.note"
style="font-size: 0.9rem; margin-left: 1rem; color: gray; padding-bottom: 0.5rem; padding-top: 0.25rem; white-space: pre;"
/>
<div style="padding: 1rem">
<van-uploader
:name="item.name"
......
<!--
* @Date: 2022-08-30 11:34:19
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-01-17 18:05:14
* @LastEditTime: 2023-01-18 16:14:00
* @FilePath: /data-table/src/components/RadioField/index.vue
* @Description: 单项选择控件
-->
......@@ -11,9 +11,7 @@
{{ item.component_props.label
}}<span v-if="item.component_props.required">&nbsp;*</span>
</div>
<div v-if="item.component_props.note" class="note">
{{ item.component_props.note }}
</div>
<div v-if="item.component_props.note" class="note" v-html="item.component_props.note" />
<van-field :name="item.key" :rules="item.rules">
<template #input>
<van-radio-group
......@@ -79,7 +77,7 @@ const onChange = (item) => {
margin-left: 1rem;
color: gray;
padding-bottom: 0.5rem;
white-space: pre-line;
white-space: pre;
}
}
......
<!--
* @Date: 2022-07-18 10:22:22
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-01-17 17:22:59
* @LastEditTime: 2023-01-18 16:12:51
* @FilePath: /data-table/src/views/index.vue
* @Description: 首页
-->
......@@ -28,9 +28,9 @@
/></van-swipe-item>
</van-swipe>
</template>
<div v-if="PHeader.type === 'text'" style="padding: 1rem; font-weight: bold; white-space:pre-line;">{{ PHeader.banner }}</div>
<div v-if="PHeader.type === 'text'" style="padding: 1rem; font-weight: bold; white-space:pre;" v-html="PHeader.banner" />
</template>
<div v-if="PHeader.label" class="table-title">{{ PHeader.label }}</div>
<div v-if="PHeader.label" class="table-title" v-html="PHeader.label" />
<div v-if="PHeader.description" class="table-desc" v-html="PHeader.description" />
<van-config-provider :theme-vars="themeVars">
<van-form @submit="onSubmit" scroll-to-error="true">
......@@ -400,12 +400,13 @@ const onSubmit = async (values) => {
padding: 1rem;
font-size: 1.15rem;
text-align: center;
white-space: pre;
}
.table-desc {
padding: 0rem 1rem;
color: #666;
font-size: 0.9rem;
white-space: pre-line;
white-space: pre;
}
.table-box {
background-color: #ffffff;
......