Page 1 of 1

该帖已删。。。。。。。。。。。。。。。。。

Posted: 2025年 Jul 11日 09:56
by 15757855214

该帖已删。。。。。。。。。。。。。。。。。该帖已删。。。。。。。。。。。。。。。。。该帖已删。。。。。。。。。。。。。。。。。该帖已删。。。。。。。。。。。。。。。。。该帖已删。。。。。。。。。。。。。。。。。该帖已删。。。。。。。。。。。。。。。。。


Re: ray小程序,的SmartUI组件库中的Slider,滑动时点击触摸的区域太小,导致很难拖动

Posted: 2025年 Jul 11日 10:04
by muhai

style属性传一个高度值即可。例如

Code: Select all

import { Slider } from '@ray-js/smart-ui';
import React from 'react';

export default function Demo() {
  const [value, setValue] = React.useState(30);

  return (
    <Slider
      maxTrackHeight="4px"
      minTrackHeight="4px"
      thumbHeight="28px"
      thumbWidth="28px"
      value={value}
      onChange={value => setValue(value)}
      style={{
        height: '64px'
      }}
    />
  );
}