-
Notifications
You must be signed in to change notification settings - Fork 605
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(slider): 缩略轴支持配置 handler 样式 & 增加 api 文档说明 (#2347)
* docs(slider): 缩略轴支持配置 handler 样式 & 增加 api 文档说明 * docs: 文档优化
- Loading branch information
Showing
3 changed files
with
65 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,39 @@ | ||
object 类型的请参考[绘图属性](/zh/docs/api/graphic-style) | ||
|
||
| 配置项 | 类型 | 功能描述 | | ||
| --------------- | -------- | ------------------ | | ||
| start | _number_ | 默认起始位置 | | ||
| end | _number_ | 默认结束位置 | | ||
| height | _number_ | 缩略轴高度 | | ||
| trendCfg | _trendCfg_ | 背景趋势的配置 | | ||
| backgroundStyle | _object_ | 背景配置 | | ||
| foregroundStyle | _object_ | 背景配置 | | ||
| handlerStyle | _object_ | handle 配置 | | ||
| textStyle | _object_ | 文本配置 | | ||
| minLimit | _number_ | 允许滑动位置下限 | | ||
| maxLimit | _number_ | 允许滑动位置上限 | | ||
| formatter | _Function_ | 滑块文本格式化函数 | | ||
| 配置项 | 类型 | 功能描述 | | ||
| --------------- | -------------- | ------------------ | | ||
| start | _number_ | 默认起始位置 | | ||
| end | _number_ | 默认结束位置 | | ||
| height | _number_ | 缩略轴高度 | | ||
| trendCfg | _TrendCfg_ | 背景趋势的配置 | | ||
| backgroundStyle | _object_ | 背景配置 | | ||
| foregroundStyle | _object_ | 背景配置 | | ||
| handlerStyle | _HandlerStyle_ | handler 配置 | | ||
| textStyle | _object_ | 文本配置 | | ||
| minLimit | _number_ | 允许滑动位置下限 | | ||
| maxLimit | _number_ | 允许滑动位置上限 | | ||
| formatter | _Function_ | 滑块文本格式化函数 | | ||
|
||
trendCfg | ||
__*TrendCfg*__ 类型如下: | ||
|
||
| 配置项 | 类型 | 功能描述 | | ||
| --------------- | -------- | -------------- | | ||
| 配置项 | 类型 | 功能描述 | | ||
| --------------- | ---------- | -------------- | | ||
| data | _number[]_ | 统计文本的样式 | | ||
| smooth | _boolean_ | 是否平滑 | | ||
| isArea | _boolean_ | 是否面积图 | | ||
| backgroundStyle | _object_ | 背景样式配置 | | ||
| lineStyle | _object_ | line 样式配置 | | ||
| areaStyle | _object_ | area 样式配置 | | ||
| smooth | _boolean_ | 是否平滑 | | ||
| isArea | _boolean_ | 是否面积图 | | ||
| backgroundStyle | _object_ | 背景样式配置 | | ||
| lineStyle | _object_ | line 样式配置 | | ||
| areaStyle | _object_ | area 样式配置 | | ||
|
||
__*HandlerStyle*__ 类型如下: | ||
|
||
| 配置项 | 类型 | 功能描述 | | ||
| ------ | -------- | -------------- | | ||
| width | _number_ | 缩略轴手柄宽度 | | ||
| height | _number_ | 缩略轴手柄高度 | | ||
| fill | _string_ | 缩略轴手柄填充色 | | ||
| highLightFill | _string_ | 缩略轴手柄填充高亮色(hover 状态) | | ||
| stroke | _string_ | 缩略轴手柄描边色 | | ||
| opacity | _number_ | 缩略轴手柄填充透明度 | | ||
| radius | _number_ | 缩略轴手柄背景圆角 | | ||
| cursor | _string_ | 缩略轴手柄鼠标样式 (hover 状态) | |