UNPKG

qt-public-ui

Version:

新设计规范下业务组件库

32 lines (27 loc) 2.04 kB
## CycleCompare | 参数 | 说明 | 类型 | 默认值 | | --- | --- | --- | --- | | use | 对比类型 | (`date` \| `benchmark` \| `channel` \| `version` \| `indicator` \| `plan` \| `scene`)[] | ['date'] | | value | 组件的值 | Array | - | | defaultValue | 默认组件的值 | Array | - | | pickerValue | 会计算俩个时间差从而在选择时间时把选的那个时间作为结束时间,开始时间为选择的时间+刚才计算出的那个范围(那为什么不直接填一个number的范围呢???) | [Moment, Moment] | - | | disabledDate | 无法选择的时间 | `(date: Moment \| null) => boolean` | - | | max | 最多可以选几个对比选项 | number | Infinity | | onChange | 值改变的回调函数 | function(values, operation, changedValue, type) | - | | style | css 样式 | React.CSSProperties | - | | customReset | 自定义组件reset的默认值 | Array | - | | className | 类名 | string | - | | getPopupContainer | 定义浮层的容器,默认为 body 上新建 div | function(trigger) | - | | fetchIndicators | 获取CycleCompare下拉框指标选项的函数 | () => Promise<[Choice](/#/ui/CycleCompare/#choice)[]> | - | | fetchChannels | 获取CycleCompare下拉框渠道选项的函数 | () => Promise<[Choice](/#/ui/CycleCompare/#choice)[]> | - | | fetchVersions | 获取CycleCompare下拉框版本选项的函数 | () => Promise<[Choice](/#/ui/CycleCompare/#choice)[]> | - | | fetchBenchmarks | 获取CycleCompare下拉框行业选项的函数 | () => Promise<[Choice](/#/ui/CycleCompare/#choice)[]> | - | | fetchPlans | 获取CycleCompare下拉框计划选项的函数 | () => Promise<[Choice](/#/ui/CycleCompare/#choice)[]> | - | | fetchScenes | 获取CycleCompare下拉框场景选项的函数 | () => Promise<[Choice](/#/ui/CycleCompare/#choice)[]> | - | #### Choice 单个选项 | 参数 | 说明 | 类型 | 默认值 | | --- | --- | --- | --- | | value | 指定当前选中的条目 | string | - | | label | 标签 | string | - | | disabled | 是否可选(可选) | boolean | - |