@ray-js/lamp-style-slider 0.0.6-beta-2 → 0.0.6-beta-4
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 +3 -1
- package/lib/props.d.ts +6 -0
- package/package.json +1 -1
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: {
|
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
|