@ray-js/lamp-style-slider 0.0.6-beta-3 → 0.0.6-beta-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 +4 -1
- package/lib/props.d.ts +6 -0
- package/package.json +3 -3
package/lib/index.js
CHANGED
|
@@ -17,6 +17,7 @@ function OpacitySlider(props) {
|
|
|
17
17
|
const isMove = useRef(false);
|
|
18
18
|
const {
|
|
19
19
|
label,
|
|
20
|
+
labelStyle,
|
|
20
21
|
min = 0,
|
|
21
22
|
max = 1000,
|
|
22
23
|
value,
|
|
@@ -80,7 +81,8 @@ function OpacitySlider(props) {
|
|
|
80
81
|
return /*#__PURE__*/React.createElement(View, {
|
|
81
82
|
className: styles.textRow
|
|
82
83
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
83
|
-
className: styles.label
|
|
84
|
+
className: styles.label,
|
|
85
|
+
style: labelStyle
|
|
84
86
|
}, label), /*#__PURE__*/React.createElement(Text, {
|
|
85
87
|
className: styles.label,
|
|
86
88
|
style: {
|
|
@@ -124,6 +126,7 @@ function OpacitySlider(props) {
|
|
|
124
126
|
startRefValue.current = detail.end;
|
|
125
127
|
},
|
|
126
128
|
bindmove: handTouchMove,
|
|
129
|
+
hideThumbButton: controllerValue === -1,
|
|
127
130
|
bindend: _ref3 => {
|
|
128
131
|
let {
|
|
129
132
|
detail
|
package/lib/props.d.ts
CHANGED
|
@@ -35,6 +35,12 @@ export interface IProps {
|
|
|
35
35
|
* @default ''
|
|
36
36
|
*/
|
|
37
37
|
label?: string;
|
|
38
|
+
/**
|
|
39
|
+
* @description.zh 标签的样式
|
|
40
|
+
* @description.en label style
|
|
41
|
+
* @default {}
|
|
42
|
+
*/
|
|
43
|
+
labelStyle?: React.CSSProperties;
|
|
38
44
|
/**
|
|
39
45
|
* @description.zh 自定义值显示,不传默认按百分比显示
|
|
40
46
|
* @description.en custom textValue
|
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-5",
|
|
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
|
+
}
|