Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
H
H5Public
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
CI / CD
CI / CD
流水线
作业
日程
统计图
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
前端开发小组
H5Public
Commits
594bbfc1
提交
594bbfc1
authored
4 星期前
作者:
钟是志
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
5580 h5巡课任务,巡课课程界面字段名显示不完整20150289密码208688
上级
86022dd5
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
39 行增加
和
13 行删除
+39
-13
index.js
baseComponents/FormArray/index.js
+23
-13
styles.less
baseComponents/FormArray/styles.less
+16
-0
没有找到文件。
baseComponents/FormArray/index.js
浏览文件 @
594bbfc1
...
...
@@ -17,6 +17,7 @@ import TextareaItemMultiRows from '../TextareaItemMultiRows';
import
{
useState
}
from
'react'
;
import
DiyUploadOneStopFile
from
'@/H5Public/baseComponents/FormArray/DiyUploadOneStopFile'
;
const
Item
=
List
.
Item
;
const
DiyInput
=
props
=>
{
let
{
config
,
formValue
,
changeValue
,
otherProps
}
=
props
;
if
(
config
.
readOnly
)
{
...
...
@@ -55,19 +56,28 @@ const DiyTextarea = props => {
delete
config
.
otherProps
?.
placeholder
;
}
return
(
<
TextareaItem
key
=
{
config
.
key
}
title
=
{
giveRequiredName
(
config
)}
maxLength
=
{
200
}
autoHeight
=
{
true
}
placeholder
=
{
config
.
placeholder
}
editable
=
{
!
config
.
readOnly
}
value
=
{
formValue
[
config
.
key
]}
onChange
=
{
e
=>
{
changeValue
(
e
,
config
.
key
);
}}
{...
config
.
otherProps
}
><
/TextareaItem
>
<
div
key
=
{
config
.
key
}
className
=
{
styles
.
textarea
}
>
{
config
.
titleOneLine
&&
<
div
className
=
{
styles
.
infoTitle
}
>
<
div
>
{
giveRequiredName
(
config
)}
<
span
className
=
{
styles
.
placeholderText
}
>
{
config
.
titlePlaceholder
}
<
/span></
div
>
<
/div
>
}
<
TextareaItem
key
=
{
config
.
key
}
title
=
{
config
.
titleOneLine
?
''
:
giveRequiredName
(
config
)}
maxLength
=
{
200
}
autoHeight
=
{
true
}
placeholder
=
{
config
.
placeholder
}
editable
=
{
!
config
.
readOnly
}
value
=
{
formValue
[
config
.
key
]}
onChange
=
{
e
=>
{
changeValue
(
e
,
config
.
key
);
}}
{...
config
.
otherProps
}
><
/TextareaItem
>
<
/div
>
);
};
...
...
This diff is collapsed.
Click to expand it.
baseComponents/FormArray/styles.less
浏览文件 @
594bbfc1
...
...
@@ -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;
}
This diff is collapsed.
Click to expand it.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论