Commit 848d2e0e authored by wuyongsheng's avatar wuyongsheng

fix: 基于流算子没有帮助手册

parent a4c7e733
......@@ -2,7 +2,7 @@
* @Author: 吴永生 15770852798@163.com
* @Date: 2022-10-18 16:12:55
* @LastEditors: 吴永生 15770852798@163.com
* @LastEditTime: 2022-11-01 10:38:50
* @LastEditTime: 2022-11-01 11:34:04
* @FilePath: /bkunyun/src/views/ResourceCenter/UserResources/WorkflowOperator/components/AddOperator/index.tsx
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
......@@ -397,7 +397,7 @@ const AddOperator = observer((props: IAddOperator) => {
className={classNames({
[style.form]: batchBuildType === "ENVIRONMENT",
[style.newForm]: batchBuildType !== "ENVIRONMENT",
[style.formOpen]: tipsOpen,
[style.formOpen]: batchBuildType !== "OPERATOR" && tipsOpen,
[style.formClose]: !tipsOpen,
})}
>
......@@ -419,7 +419,6 @@ const AddOperator = observer((props: IAddOperator) => {
placeholder="请输入算子名称"
value={formData?.title}
onChange={(e) => {
if (e.target.value?.length > 15) return;
changeFormData({ title: e.target.value });
}}
/>
......@@ -579,36 +578,38 @@ const AddOperator = observer((props: IAddOperator) => {
</FormItemBox>
</div>
)}
<div
className={classNames({
[style.helpBox]: true,
[style.helpOpen]: tipsOpen,
[style.helpClose]: !tipsOpen,
})}
>
<div className={style.codeTitle}>
<span>帮助手册</span>
<CloseIcon
onClick={() => setTipsOpen(false)}
sx={{
fontSize: "16px",
color: "#C2C6CC",
cursor: "pointer",
":hover": {
background: "#f0f2f5",
borderRadius: "2px",
},
}}
/>
</div>
<pre
{batchBuildType !== "OPERATOR" && (
<div
className={classNames({
[style.preBox]: true,
[style.helpBox]: true,
[style.helpOpen]: tipsOpen,
[style.helpClose]: !tipsOpen,
})}
>
{text}
</pre>
</div>
<div className={style.codeTitle}>
<span>帮助手册</span>
<CloseIcon
onClick={() => setTipsOpen(false)}
sx={{
fontSize: "16px",
color: "#C2C6CC",
cursor: "pointer",
":hover": {
background: "#f0f2f5",
borderRadius: "2px",
},
}}
/>
</div>
<pre
className={classNames({
[style.preBox]: true,
})}
>
{text}
</pre>
</div>
)}
</div>
{taskType === "FLOW" ? null : (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment