@uyun/ec-device-picker
Device picker component from everest-components
Last updated 3 years ago by liupeng .
UNLICENSED · Repository · Bugs ·
$ cnpm install @uyun/ec-device-picker 
Private package

category: Components type: Automation title: DevicePicker subtitle: 设备选择 cols: 1

作者:邱孔程

API

<DevicePicker />

参数列表

属性 说明 类型 默认值
value 选择器的值 object {}
onChange 修改回调函数 Function value => {}
options 其他参数 object {}
validating 是否开启实时校验 boolean false
getValidateFn 提交表单时触发校验 Function 返回 boolean

值数据结构,用于 value 属性

{
  hosts: [],
  tags: [],
  ips: [],
  select: 'hosts',
  execHost: '',
  objType: 0
}
属性 说明 类型 默认值
hosts 节点数据 object[] []
tags 标签数据 object[] []
ips IP 数据 object[] []
select 单选按钮值 string 'hosts'
execHost hosts 的类型 string execHost: agent, remote, network
objType hosts 的类型 number objType: (1: host, 2: physical, 3: os)
getValidateResultFn(value) => error

提供 getValidateResultFn 校验方法,获取校验结果,实现自定义校验

属性 说明 类型 默认值
value 选择器的值 object {}
error 获取校验结果 boolean false:校验不通过,true:校验通过

Current Tags

  • 1.0.0-dev.0                                ...           dev (3 years ago)
  • 0.1.6                                ...           latest (3 years ago)

8 Versions

  • 0.1.6                                ...           3 years ago
  • 1.0.0-dev.0                                ...           3 years ago
  • 0.1.5                                ...           4 years ago
  • 0.1.5-alpha.0                                ...           4 years ago
  • 0.1.3                                ...           4 years ago
  • 0.1.2                                ...           4 years ago
  • 0.1.1                                ...           4 years ago
  • 0.1.0                                ...           4 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (9)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org