Browse Source

fix(doc): `positonStyle` typo (#7808)

pull/7839/head
YYP 2 months ago committed by GitHub
parent
commit
3a79f72816
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      components/vc-slider/src/common/Track.tsx

4
components/vc-slider/src/common/Track.tsx

@ -7,7 +7,7 @@ const Track = (_, { attrs }) => {
length = Math.abs(length);
offset = 100 - offset;
}
const positonStyle = vertical
const positionStyle = vertical
? {
[reverse ? 'top' : 'bottom']: `${offset}%`,
[reverse ? 'bottom' : 'top']: 'auto',
@ -21,7 +21,7 @@ const Track = (_, { attrs }) => {
const elStyle = {
...style,
...positonStyle,
...positionStyle,
};
return included ? <div class={className} style={elStyle} /> : null;
};

Loading…
Cancel
Save