提交 594bbfc1 authored 作者: 钟是志's avatar 钟是志

5580 h5巡课任务,巡课课程界面字段名显示不完整20150289密码208688

上级 86022dd5
...@@ -17,6 +17,7 @@ import TextareaItemMultiRows from '../TextareaItemMultiRows'; ...@@ -17,6 +17,7 @@ import TextareaItemMultiRows from '../TextareaItemMultiRows';
import { useState } from 'react'; import { useState } from 'react';
import DiyUploadOneStopFile from '@/H5Public/baseComponents/FormArray/DiyUploadOneStopFile'; import DiyUploadOneStopFile from '@/H5Public/baseComponents/FormArray/DiyUploadOneStopFile';
const Item = List.Item;
const DiyInput = props => { const DiyInput = props => {
let { config, formValue, changeValue, otherProps } = props; let { config, formValue, changeValue, otherProps } = props;
if (config.readOnly) { if (config.readOnly) {
...@@ -55,19 +56,28 @@ const DiyTextarea = props => { ...@@ -55,19 +56,28 @@ const DiyTextarea = props => {
delete config.otherProps?.placeholder; delete config.otherProps?.placeholder;
} }
return ( return (
<TextareaItem <div key={config.key} className={styles.textarea}>
key={config.key} {
title={giveRequiredName(config)} config.titleOneLine &&
maxLength={200} <div className={styles.infoTitle}>
autoHeight={true} <div>{giveRequiredName(config)} <span className={styles.placeholderText}>{config.titlePlaceholder}</span></div>
placeholder={config.placeholder} </div>
editable={!config.readOnly} }
value={formValue[config.key]} <TextareaItem
onChange={e => { key={config.key}
changeValue(e, config.key); title={config.titleOneLine ? '' : giveRequiredName(config)}
}} maxLength={200}
{...config.otherProps} autoHeight={true}
></TextareaItem> placeholder={config.placeholder}
editable={!config.readOnly}
value={formValue[config.key]}
onChange={e => {
changeValue(e, config.key);
}}
{...config.otherProps}
></TextareaItem>
</div>
); );
}; };
......
...@@ -29,3 +29,19 @@ ...@@ -29,3 +29,19 @@
} }
} }
} }
.placeholderText{
font-size: 14px;
color: rgba(0, 0, 0, 0.65);
}
.infoTitle{
font-size: 17px;
padding-left: 15px;
padding-top: 7px;
padding-bottom: 7px;
color: #000;
line-height: 1.5;
text-align: left;
}
.textarea{
border-bottom: 1px solid #e1e1e1;
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论