Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(docs): 修改交互式应用HTML表单默认值配置名为defaultValue #1464

Merged
merged 2 commits into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/luminous-owl-update.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@scow/docs": patch
---

修改交互式应用 HTML 表单配置默认值的变量名为 defaultValue
8 changes: 4 additions & 4 deletions docs/docs/deploy/config/portal/apps/configure-attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ attributes:
| `name` | 字符串 | 是 | HTML表单的name属性,在编程中使用,并且会作为计算节点环境变量名,可以在Web应用的`script`或者VNC应用的`xstartop`使用 |
| `label` | 字符串 | 是 | HTML表单的label属性,输入框左侧显示的标签 |
| `required` | 布尔类型 | 否 | 如果设置为`true`,用户必须填写此项,如果为`false`,用户可以不填,默认为`true`。 |
| `default` | 字符串或者数字 | 否 | 表单的默认值,`number`类型的默认值必须设置为数字。对于`select`类型的表单,如果没有配置`default`,则默认值为第一项 |
| `defaultValue` | 字符串或者数字 | 否 | 表单的默认值,`number`类型的默认值必须设置为数字。对于`select`类型的表单,如果没有配置`defaultValue`,则默认值为第一项 |
| `placeholder` | 字符串 | 否 | 描述输入字段预期值的提示信息,提示用户此处的输入 |
| `select` | 选项的列表 | 否 | 如果`type`是`select`,必须配置此项,指明具体的选项,具体配置办法见`select`示例 |

Expand All @@ -144,7 +144,7 @@ attributes:
name: version
label: 版本
required: false
defalt: v3.4.0
defaultValue: v3.4.0
```

### 配置输入类型为数字的HTML表单
Expand All @@ -167,7 +167,7 @@ attributes:
name: size
label: 数量
required: false
default: 123
defaultValue: 123
```

### 配置输入为下拉选择器的HTML表单
Expand Down Expand Up @@ -207,4 +207,4 @@ attributes:
label: 其他sbatch参数
required: false
placeholder: "比如:--gpus gres:2 --time 10"
```
```
Loading