Skip to content

Commit

Permalink
docs: update slider options
Browse files Browse the repository at this point in the history
  • Loading branch information
justnewneo committed Dec 3, 2024
1 parent cc2c480 commit 3afaf87
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions site/docs/spec/component/slider.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ chart.render();
| -------------------------------- | ------------------------ | ------------------------- | ------ |
| showHandle | 是否显示拖动手柄 | `boolean` | true |
| showLabel | 是否显示拖动手柄文本 | `boolean` | true |
| showLabelOnInteraction | 在调整手柄或刷选时才显示手柄文本,在 showLabel 为 false 时生效 | `boolean` | false |
| autoFitLabel | 是否自动调整拖动手柄文本位置 | `boolean` | true |
| formatter | 拖动手柄标签格式化 | `(value: number)=>string` | - |
| `style.`handleIconSize | 缩略轴手柄大小 | `number` | 10 |
| `style.`handleIconFill | 缩略轴手柄填充色 | `string` | - |
Expand Down
4 changes: 4 additions & 0 deletions src/component/slider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ import { invert } from '../utils/scale';

export type SliderOptions = {
orientation: 'horizontal' | 'vertical';
showHandle?: boolean;
showLabel?: boolean;
showLabelOnInteraction?: boolean;
autoFitLabel?: boolean;
[key: string]: any;
};

Expand Down

0 comments on commit 3afaf87

Please sign in to comment.