fix(doc): `positonStyle` typo (#7808)
							parent
							
								
									89eec07145
								
							
						
					
					
						commit
						3a79f72816
					
				| 
						 | 
					@ -7,7 +7,7 @@ const Track = (_, { attrs }) => {
 | 
				
			||||||
    length = Math.abs(length);
 | 
					    length = Math.abs(length);
 | 
				
			||||||
    offset = 100 - offset;
 | 
					    offset = 100 - offset;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  const positonStyle = vertical
 | 
					  const positionStyle = vertical
 | 
				
			||||||
    ? {
 | 
					    ? {
 | 
				
			||||||
        [reverse ? 'top' : 'bottom']: `${offset}%`,
 | 
					        [reverse ? 'top' : 'bottom']: `${offset}%`,
 | 
				
			||||||
        [reverse ? 'bottom' : 'top']: 'auto',
 | 
					        [reverse ? 'bottom' : 'top']: 'auto',
 | 
				
			||||||
| 
						 | 
					@ -21,7 +21,7 @@ const Track = (_, { attrs }) => {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  const elStyle = {
 | 
					  const elStyle = {
 | 
				
			||||||
    ...style,
 | 
					    ...style,
 | 
				
			||||||
    ...positonStyle,
 | 
					    ...positionStyle,
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
  return included ? <div class={className} style={elStyle} /> : null;
 | 
					  return included ? <div class={className} style={elStyle} /> : null;
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue