@ray-js/lamp-style-slider 0.0.6-beta-4 → 0.0.6-beta-6
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 +4 -2
- package/package.json +3 -3
package/lib/index.js
CHANGED
|
@@ -77,7 +77,7 @@ function OpacitySlider(props) {
|
|
|
77
77
|
}).run;
|
|
78
78
|
return /*#__PURE__*/React.createElement(View, {
|
|
79
79
|
style: style
|
|
80
|
-
}, label && (() => {
|
|
80
|
+
}, label && controllerValue !== -1 && (() => {
|
|
81
81
|
return /*#__PURE__*/React.createElement(View, {
|
|
82
82
|
className: styles.textRow
|
|
83
83
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
@@ -126,6 +126,7 @@ function OpacitySlider(props) {
|
|
|
126
126
|
startRefValue.current = detail.end;
|
|
127
127
|
},
|
|
128
128
|
bindmove: handTouchMove,
|
|
129
|
+
hideThumbButton: controllerValue === -1,
|
|
129
130
|
bindend: _ref3 => {
|
|
130
131
|
let {
|
|
131
132
|
detail
|
|
@@ -160,7 +161,8 @@ function OpacitySlider(props) {
|
|
|
160
161
|
border: '8rpx solid #fff',
|
|
161
162
|
borderRadius: '50%',
|
|
162
163
|
boxShadow: 'rgb(255 255 255 / 10%) 0px 0px 1px',
|
|
163
|
-
background: `${'transparent'}
|
|
164
|
+
background: `${'transparent'}`,
|
|
165
|
+
transition: 'opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1)'
|
|
164
166
|
}, thumbStyle)),
|
|
165
167
|
thumbStyleRenderFormatter: {
|
|
166
168
|
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-
|
|
3
|
+
"version": "0.0.6-beta-6",
|
|
4
4
|
"description": "照明样式的基础滑动条",
|
|
5
5
|
"main": "lib/index",
|
|
6
6
|
"files": [
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
]
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@ray-js/components-ty-slider": "^0.
|
|
62
|
+
"@ray-js/components-ty-slider": "^0.3.8"
|
|
63
63
|
},
|
|
64
64
|
"resolutions": {
|
|
65
65
|
"follow-redirects": "1.15.6",
|
|
@@ -71,4 +71,4 @@
|
|
|
71
71
|
"email": "tuyafe@tuya.com"
|
|
72
72
|
}
|
|
73
73
|
]
|
|
74
|
-
}
|
|
74
|
+
}
|