@byteluck-fe/model-driven-controls 7.0.0-props.39 → 7.0.0-props.40
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.
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* description: 滑块组件,用于在连续范围内快速选择数值。适合进度、权重、阈值等场景,支持默认值、最小值、最大值、步长、提示标签和控制按钮配置。
|
|
4
4
|
*/
|
|
5
5
|
import { RuleItem } from 'async-validator';
|
|
6
|
-
import { BaseControlProperty, BaseControlPropertyInterface, BaseControlPropertyRules, BaseControlPropertyRuntimeRules } from '@byteluck-fe/model-driven-core';
|
|
6
|
+
import { BaseControlProperty, BaseControlPropertyInterface, BaseControlPropertyRules, BaseControlPropertyRuntimeRules, OptionSetting } from '@byteluck-fe/model-driven-core';
|
|
7
7
|
interface SliderPropertyInterface extends BaseControlPropertyInterface {
|
|
8
8
|
/**
|
|
9
9
|
* 默认值
|
|
@@ -29,6 +29,12 @@ interface SliderPropertyInterface extends BaseControlPropertyInterface {
|
|
|
29
29
|
* @public
|
|
30
30
|
*/
|
|
31
31
|
step: number;
|
|
32
|
+
/**
|
|
33
|
+
* 是否显示输入框
|
|
34
|
+
* @defaultValue true
|
|
35
|
+
* @public
|
|
36
|
+
*/
|
|
37
|
+
showInput: boolean;
|
|
32
38
|
/**
|
|
33
39
|
* 是否显示提示标签
|
|
34
40
|
* @defaultValue true
|
|
@@ -36,11 +42,17 @@ interface SliderPropertyInterface extends BaseControlPropertyInterface {
|
|
|
36
42
|
*/
|
|
37
43
|
showTooltip: boolean;
|
|
38
44
|
/**
|
|
39
|
-
*
|
|
40
|
-
* @defaultValue
|
|
45
|
+
* 是否展示标记
|
|
46
|
+
* @defaultValue false
|
|
47
|
+
* @public
|
|
48
|
+
*/
|
|
49
|
+
showMarks?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* 标记
|
|
52
|
+
* @defaultValue []
|
|
41
53
|
* @public
|
|
42
54
|
*/
|
|
43
|
-
|
|
55
|
+
marks?: Array<OptionSetting>;
|
|
44
56
|
}
|
|
45
57
|
declare class SliderPropertyRules extends BaseControlPropertyRules {
|
|
46
58
|
defaultValue: RuleItem[];
|
|
@@ -58,7 +70,9 @@ declare class SliderProperty extends BaseControlProperty implements SliderProper
|
|
|
58
70
|
max: number | '';
|
|
59
71
|
step: number;
|
|
60
72
|
showTooltip: boolean;
|
|
61
|
-
|
|
73
|
+
showInput: boolean;
|
|
74
|
+
showMarks: boolean;
|
|
75
|
+
marks: Array<OptionSetting>;
|
|
62
76
|
constructor(props?: Partial<SliderProperty>);
|
|
63
77
|
}
|
|
64
78
|
export default SliderProperty;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byteluck-fe/model-driven-controls",
|
|
3
|
-
"version": "7.0.0-props.
|
|
3
|
+
"version": "7.0.0-props.40",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "郝晨光 <2293885211@qq.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"@byteluck-fe/model-driven-shared": "7.0.0-props.38",
|
|
32
32
|
"async-validator": "3.5.1"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "e0a0481c4aebe05b3afece098a0d6efce6e3aa55"
|
|
35
35
|
}
|