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

支持简化版的 dynamic-parameter 组件 #4583

Closed
fayewong-v5 opened this issue Jul 1, 2021 · 0 comments
Closed

支持简化版的 dynamic-parameter 组件 #4583

fayewong-v5 opened this issue Jul 1, 2021 · 0 comments
Assignees
Labels
area/ci/frontend CI 前端特性issue done Production environment in tencent has been deploy for gray UAT environment in tencent has been deploy for test Test environment in tencent has been deploy grayed uat环境测试通过/test passed for uat stage kind/enhancement 功能改进特性 kind/feat/product 产品特性 kind/plugins 流水线插件 priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. tested 测试环境通过/test patest passed for test stage
Milestone

Comments

@fayewong-v5
Copy link
Contributor

fayewong-v5 commented Jul 1, 2021

What would you like to be added:

支持简化版的 dynamic-parameter 组件:

  • 组件命名为:dynamic-parameter-simple
  • 期望可以定义每行的字段属性名称,和字段个数
    • 字段个数为1~3个
  • 可以动态添加行

示例:

    "input_demo_1" : {
      "label" : "输入示例1",
      "type" : "dynamic-parameter-simple",
      "parameters": {
        "rowAttributes": [
          {
            "id": "host",
            "label": "Host",
            "type": "input",
            "placeholder" : "域名",
            "desc" : "域名"
          },
          {
            "id": "ip",
            "label": "IP",
            "type": "input",
            "placeholder" : "IP",
            "desc" : "IP"
          },
          {
            "id": "port",
            "label": "Port",
            "type": "select",
            "options":[
              {
                "id": "11",
                "name": "选项1"
              }
            ],
            "desc" : "输入示例"
          }
        ],
        "columnNumber": 3
      },
      "desc" : "输入示例"
    }

传给插件后端的数据为 "input_demo": ["host": "", "ip": "", "port": ""]
和通过YAML定义的数据格式一致:

input_demo:
- host: ""
  ip: ""
  port: ""
- host: ""
  ip: ""
  port: ""

Why is this needed:

@fayewong-v5 fayewong-v5 added the kind/enhancement 功能改进特性 label Jul 1, 2021
@fayewong-v5 fayewong-v5 added area/ci/frontend CI 前端特性issue kind/feat/product 产品特性 kind/plugins 流水线插件 priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. labels Jul 1, 2021
@fayewong-v5 fayewong-v5 added this to the v1.7 milestone Jul 1, 2021
@bkci-bot bkci-bot added the for test Test environment in tencent has been deploy label Jul 16, 2021
@vhwweng vhwweng self-assigned this Jul 20, 2021
@fayewong-v5 fayewong-v5 added the tested 测试环境通过/test patest passed for test stage label Jul 20, 2021
lockiechen added a commit that referenced this issue Jul 21, 2021
feat: 简化dynamic-parameter-simple组件 issue #4583
@bkci-bot bkci-bot added the for gray UAT environment in tencent has been deploy label Jul 29, 2021
@fayewong-v5 fayewong-v5 added streams/grayed stream 灰度环境测试通过 grayed uat环境测试通过/test passed for uat stage and removed streams/grayed stream 灰度环境测试通过 labels Aug 2, 2021
@zanyzhao zanyzhao modified the milestones: v1.7, v1.8 Aug 4, 2021
@bkci-bot bkci-bot added the done Production environment in tencent has been deploy label Aug 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ci/frontend CI 前端特性issue done Production environment in tencent has been deploy for gray UAT environment in tencent has been deploy for test Test environment in tencent has been deploy grayed uat环境测试通过/test passed for uat stage kind/enhancement 功能改进特性 kind/feat/product 产品特性 kind/plugins 流水线插件 priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. tested 测试环境通过/test patest passed for test stage
Projects
None yet
Development

No branches or pull requests

5 participants