@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.
- package/lib/index.js +7 -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
|