新增子表单纵向显示正常
parent
7a4104ec87
commit
df5704abfb
|
|
@ -157,7 +157,7 @@ export default {
|
|||
const data = JSON.parse(JSON.stringify(com_data?.children || []));
|
||||
if (data.length > 0) {
|
||||
data.forEach(child => {
|
||||
child.com_data.common_style = this.get_form_border_style(child.com_data.common_config, mobile.flex_direction || 'row', overall_config.type_value);
|
||||
child.com_data.common_style = this.get_form_border_style(child.com_data.common_config, mobile.arrang == 'direction' ? (emobile.flex_direction || 'row') : 'column', overall_config.type_value);
|
||||
if (!isEmpty(item1[child.id])) {
|
||||
child.com_data.form_value = item1[child.id];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<view :class="'wh-auto ht-auto pr ' + (propIsTable ? 'flex-row ' : 'flex-col')">
|
||||
<view class="wh-auto ht-auto pr">
|
||||
<view v-for="(item, index) in data_list" :key="index" :class="(propDirection == 'row' ? 'row-item ' : 'column-item mb-10 ') + (item.com_data.common_config.is_error == '1' ? ' item_error' : '')" :data-id="item.id" :data-location-x="item.location.x" :data-location-y="item.location.y" :style="(item.key == 'auxiliary-line' ? 'border-bottom: 0rpx; ' : '')">
|
||||
<view :class="'wh-auto ht-auto ' + (propDirection == 'row' ? (['video', 'img', 'upload-img', 'upload-video', 'multi-text'].includes(item.key) ? 'flex-row align-s gap-10' : 'flex-row align-b gap-10') : 'flex-col gap-10')">
|
||||
<view v-if="!['rich-text', 'auxiliary-line', 'upload-attachments', 'subform'].includes(item.key)" class="field-label flex-row align-c gap-10" :style="propFieldLabelStyle + (propDirection == 'row' && ['upload-img', 'upload-video'].includes(item.key) ? 'padding-top: 12rpx;line-height: 120rpx;' : '') + (propDirection == 'row' && ['multi-text'].includes(item.key) ? 'padding-top: 18rpx;' : '')">
|
||||
|
|
@ -203,15 +203,7 @@ export default {
|
|||
propIndex: {
|
||||
type: Number,
|
||||
default: 0,
|
||||
},
|
||||
propIsTable: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
propIsTableTitle: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
|
|
|||
|
|
@ -235,6 +235,8 @@
|
|||
init() {
|
||||
let custom_height = '100%';
|
||||
const com_data = this.propValue;
|
||||
// 移动端配置参数
|
||||
const mobile = com_data.mobile || {};
|
||||
if (this.propIsCustom) {
|
||||
const filed_title_size_type = this.propMobile.filed_title_size_type || 'small';
|
||||
const text_height = filed_title_size_type == 'big' ? 31 : filed_title_size_type == 'middle' ? 22.5 : 16.5;
|
||||
|
|
@ -244,10 +246,8 @@
|
|||
// 子表单数据
|
||||
const children_list = JSON.parse(JSON.stringify(com_data?.children || []));
|
||||
children_list.forEach(item => {
|
||||
item.com_data.common_style = this.get_form_border_style(item.com_data.common_config, this.propDirection);
|
||||
item.com_data.common_style = this.get_form_border_style(item.com_data.common_config, mobile.arrange == 'direction' ? this.propDirection : 'column');
|
||||
})
|
||||
// 移动端配置参数
|
||||
const mobile = com_data.mobile || {};
|
||||
this.setData({
|
||||
com_data: com_data,
|
||||
custom_height: custom_height,
|
||||
|
|
|
|||
Loading…
Reference in New Issue