Skip to content

Commit

Permalink
Merge branch 'main' into fix/field
Browse files Browse the repository at this point in the history
  • Loading branch information
pointhalo committed Aug 14, 2023
2 parents b8dbd9d + a2713cf commit 0d04313
Show file tree
Hide file tree
Showing 81 changed files with 3,364 additions and 790 deletions.
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
run: |
git config --global user.name 'semi-bot'
git config --global user.email 'semi-bot@users.noreply.github.com'
node scripts/sitemap_update.js
if [ -n "$(git status --porcelain)" ]; then
echo "there are changes";
git add .
Expand Down
15 changes: 8 additions & 7 deletions content/input/slider/index-en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,28 +241,29 @@ import { Slider } from '@douyinfe/semi-ui';
## API Reference

| Property | Instructions | type | Default | Version |
| -------------- |-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| ------------- | ------- |------ |
| aria-label| [aria-label](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-label) used to define a string that labels the current element. Use it in cases where a text label is not visible on the screen | string |-|-|
| aria-labelledby | [aria-labelledby](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-labelledby) attribute establishes relationships between objects and their label(s), and its value should be one or more element IDs, which refer to elements that have the text needed for labeling | string |-|-|
| aria-valuetext| [aria-valuetext](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-valuetext) used to provide a user-friendly name for the current value of the slider | string |-|-|
| -------------- |-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| ------------- |---------|------ |
| aria-label| [aria-label](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-label) used to define a string that labels the current element. Use it in cases where a text label is not visible on the screen | string | - |-|
| aria-labelledby | [aria-labelledby](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-labelledby) attribute establishes relationships between objects and their label(s), and its value should be one or more element IDs, which refer to elements that have the text needed for labeling | string | - |-|
| aria-valuetext| [aria-valuetext](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-valuetext) used to provide a user-friendly name for the current value of the slider | string | - |-|
| defaultValue | Default value | number \| number[] | 0 |- |
| disabled | Disable slider | boolean | false |- |
| included | Takes effect when `marks` is not null, true means containment and false means coordination | boolean | true |- |
| marks | Tick mark of Slider, type of key must be number, and must in closed interval [min, max] | Record<number, string \> | - |- |
| max | Maximum value of the slider. | number | 100 |- |
| min | Minimum value of the slider. | number | 0 |- |
| railStyle | Style for slide rail | CSSProperties | - |0.31.0|
| railStyle | Style for slide rail | CSSProperties | - |0.31.0|
| range | Toggle whether it is allow to move slider from both sides | boolean | false |- |
| showBoundary | Toggle whether show max/min value when hover | boolean | false |- |
| step | Increment between successive values | number | 1 |- |
| tipFormatter | Format Tooltip content, by default display current value | (value: string \| number \| boolean \| (string \| number \| boolean)[]) => any | v => v |- |
| tooltipVisible | Toggle whether to display tooltip all the time | boolean | - |- |
| value | Set current value, used in controlled component | number \| number[] | |- |
| vertical | Toggle whether to display slider vertically | boolean | false |- |
| verticalReverse | Vertical but reverse direction >=1.29.0 | boolean | false |-|
| verticalReverse | Vertical but reverse direction >=1.29.0 | boolean | false |-|
| onAfterChange | Triggered when slider changed, passed in current value as params | (value: number \| number[]) => void | - |- |
| onChange | Callback function when slider value changes | (value: number \| number[]) => void | - |- |
| getAriaValueText | Used to provide a user-friendly name for the current value of the slider, important for screen reader users, The parameters value and index are the current slider value, order | (value: number, index?: number) => string |-|-|
| onMouseUp | Trigged when mouse up on handle | (e: React.MouseEvent<HTMLDivElement\>) => void | - | 2.41.0 |
| getAriaValueText | Used to provide a user-friendly name for the current value of the slider, important for screen reader users, The parameters value and index are the current slider value, order | (value: number, index?: number) => string | - |-|
## Accessibility

### ARIA
Expand Down

0 comments on commit 0d04313

Please sign in to comment.