@ray-js/lamp-saturation-slider 1.1.4 → 1.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -18,10 +18,10 @@ function LampSaturationSlider(props) {
18
18
  trackStyle = {},
19
19
  thumbStyle = {},
20
20
  disable,
21
- closed,
22
21
  onTouchStart,
23
22
  onTouchMove,
24
- onTouchEnd
23
+ onTouchEnd,
24
+ enableTouch = true
25
25
  } = props;
26
26
  const startRefValue = useRef(-1);
27
27
  const endRefValue = useRef(-1);
@@ -51,6 +51,7 @@ function LampSaturationSlider(props) {
51
51
  max: 1000,
52
52
  disable: disable,
53
53
  end: controllerSaturation,
54
+ enableTouch: enableTouch,
54
55
  step: 1,
55
56
  bindstart: _ref => {
56
57
  let {
package/lib/props.d.ts CHANGED
@@ -11,12 +11,6 @@ export interface IProps {
11
11
  * @default false
12
12
  */
13
13
  disable?: boolean;
14
- /**
15
- * @description.zh 灯关闭状态时 thumb的状态
16
- * @description.en The state of thumb when the light is off
17
- * @default false
18
- */
19
- closed?: boolean;
20
14
  /**
21
15
  * @description.zh 滑动槽样式
22
16
  * @description.en Sliding groove style
@@ -58,5 +52,11 @@ export interface IProps {
58
52
  * @default () => {}
59
53
  */
60
54
  onTouchEnd?: (value: number) => void;
55
+ /**
56
+ * @description.zh 是否支持点击
57
+ * @description.en enable touch
58
+ * @default true
59
+ */
60
+ enableTouch?: boolean;
61
61
  }
62
62
  export declare const defaultProps: IProps;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/lamp-saturation-slider",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "照明色温Slider",
5
5
  "main": "lib/index",
6
6
  "files": [
@@ -60,7 +60,7 @@
60
60
  ]
61
61
  },
62
62
  "dependencies": {
63
- "@ray-js/components-ty-slider": "^0.2.36"
63
+ "@ray-js/components-ty-slider": "^0.2.40"
64
64
  },
65
65
  "maintainers": [
66
66
  {