@ray-js/lamp-style-slider 0.0.6 → 0.0.7

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.
Files changed (2) hide show
  1. package/lib/index.js +2 -3
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -98,10 +98,9 @@ function OpacitySlider(props) {
98
98
  }, /*#__PURE__*/React.createElement(PerfText, {
99
99
  instanceId: eventName,
100
100
  defaultValue: controllerValue,
101
- valueStart: min,
101
+ valueStart: -100 * min / (max - min),
102
102
  valueScale: 100 / (max - min),
103
- eventName: eventName,
104
- valueScaleMathType: "round"
103
+ eventName: eventName
105
104
  }), "%") : /*#__PURE__*/React.createElement(Text, {
106
105
  className: styles.value,
107
106
  style: valueStyle
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/lamp-style-slider",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "description": "照明样式的基础滑动条",
5
5
  "main": "lib/index",
6
6
  "files": [