@ray-js/lamp-style-slider 0.0.6-beta-5 → 0.0.6-beta-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 +7 -2
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -79,7 +79,11 @@ function OpacitySlider(props) {
79
79
  style: style
80
80
  }, label && (() => {
81
81
  return /*#__PURE__*/React.createElement(View, {
82
- className: styles.textRow
82
+ className: styles.textRow,
83
+ style: {
84
+ opacity: controllerValue === -1 ? 0 : 1,
85
+ transition: 'opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1)'
86
+ }
83
87
  }, /*#__PURE__*/React.createElement(Text, {
84
88
  className: styles.label,
85
89
  style: labelStyle
@@ -161,7 +165,8 @@ function OpacitySlider(props) {
161
165
  border: '8rpx solid #fff',
162
166
  borderRadius: '50%',
163
167
  boxShadow: 'rgb(255 255 255 / 10%) 0px 0px 1px',
164
- background: `${'transparent'}`
168
+ background: `${'transparent'}`,
169
+ transition: 'opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1)'
165
170
  }, thumbStyle)),
166
171
  thumbStyleRenderFormatter: {
167
172
  background: props === null || props === void 0 ? void 0 : (_props$thumbColorForm = props.thumbColorFormatterConfig) === null || _props$thumbColorForm === void 0 ? void 0 : _props$thumbColorForm.formatter
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/lamp-style-slider",
3
- "version": "0.0.6-beta-5",
3
+ "version": "0.0.6-beta-7",
4
4
  "description": "照明样式的基础滑动条",
5
5
  "main": "lib/index",
6
6
  "files": [