@easyv/config 1.2.8 → 1.2.10
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/interaction.js +2 -2
- package/lib/label.js +2 -2
- package/lib/tooltip.js +43 -2
- package/package.json +30 -30
- package/src/control.js +104 -104
- package/src/extent.js +42 -42
- package/src/index.js +106 -106
- package/src/interaction.js +121 -121
- package/src/label.js +2 -2
- package/src/pieTooltip.js +331 -331
- package/src/tooltip.js +44 -4
package/lib/interaction.js
CHANGED
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports["default"] = void 0;
|
|
8
8
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
9
|
-
/**
|
|
10
|
-
* TODO:有个触发回调的类型
|
|
9
|
+
/**
|
|
10
|
+
* TODO:有个触发回调的类型
|
|
11
11
|
*/
|
|
12
12
|
var defaultAction = 'click';
|
|
13
13
|
var defaultCallback = {
|
package/lib/label.js
CHANGED
|
@@ -645,7 +645,7 @@ var axisLabel = function axisLabel() {
|
|
|
645
645
|
displayName: "显示最新",
|
|
646
646
|
value: showLast,
|
|
647
647
|
type: "boolean",
|
|
648
|
-
tip: "
|
|
648
|
+
tip: "开启后会必定展示首尾日期的数据,但可能会导致标签数量和预期不一致"
|
|
649
649
|
}, (0, _.sc)("autoSort", "自动排序", "boolean", autoSort, {
|
|
650
650
|
other: {
|
|
651
651
|
tip: "数据按时间自动排序展示"
|
|
@@ -690,7 +690,7 @@ var defaultValueAxisLabel = {
|
|
|
690
690
|
},
|
|
691
691
|
auto: false,
|
|
692
692
|
mode: "count",
|
|
693
|
-
numericalRangeModel: "
|
|
693
|
+
numericalRangeModel: "value",
|
|
694
694
|
count: 3,
|
|
695
695
|
step: 100,
|
|
696
696
|
decimal: 0,
|
package/lib/tooltip.js
CHANGED
|
@@ -14,6 +14,7 @@ var defaultTooltip = {
|
|
|
14
14
|
x: 0,
|
|
15
15
|
y: 0
|
|
16
16
|
},
|
|
17
|
+
bgColor: 'rgba(48, 55, 66, 0.85)',
|
|
17
18
|
image: '',
|
|
18
19
|
size: {
|
|
19
20
|
width: 120,
|
|
@@ -27,6 +28,8 @@ var defaultTooltip = {
|
|
|
27
28
|
},
|
|
28
29
|
data: {
|
|
29
30
|
xAxis: {
|
|
31
|
+
background: "",
|
|
32
|
+
gap: 5,
|
|
30
33
|
font: {
|
|
31
34
|
fontFamily: 'Mircosoft Yahei',
|
|
32
35
|
fontSize: 16,
|
|
@@ -43,7 +46,9 @@ var defaultTooltip = {
|
|
|
43
46
|
},
|
|
44
47
|
data: {
|
|
45
48
|
lineHeight: 18,
|
|
49
|
+
gap: 5,
|
|
46
50
|
iconSize: 10,
|
|
51
|
+
background: "",
|
|
47
52
|
num: "",
|
|
48
53
|
name: {
|
|
49
54
|
fontFamily: 'Mircosoft Yahei',
|
|
@@ -99,6 +104,8 @@ var _default = function _default() {
|
|
|
99
104
|
tipTranslateX = _ref$tip$translate$x === void 0 ? defaultTooltip.tip.translate.x : _ref$tip$translate$x,
|
|
100
105
|
_ref$tip$translate$y = _ref$tip$translate.y,
|
|
101
106
|
tipTranslateY = _ref$tip$translate$y === void 0 ? defaultTooltip.tip.translate.y : _ref$tip$translate$y,
|
|
107
|
+
_ref$tip$bgColor = _ref$tip.bgColor,
|
|
108
|
+
bgColor = _ref$tip$bgColor === void 0 ? defaultTooltip.tip.bgColor : _ref$tip$bgColor,
|
|
102
109
|
_ref$tip$image = _ref$tip.image,
|
|
103
110
|
image = _ref$tip$image === void 0 ? defaultTooltip.tip.image : _ref$tip$image,
|
|
104
111
|
_ref$tip$size = _ref$tip.size;
|
|
@@ -121,7 +128,11 @@ var _default = function _default() {
|
|
|
121
128
|
_ref$tip$data = _ref$tip$data === void 0 ? defaultTooltip.tip.data : _ref$tip$data;
|
|
122
129
|
var _ref$tip$data$xAxis = _ref$tip$data.xAxis;
|
|
123
130
|
_ref$tip$data$xAxis = _ref$tip$data$xAxis === void 0 ? defaultTooltip.tip.data.xAxis : _ref$tip$data$xAxis;
|
|
124
|
-
var _ref$tip$data$xAxis$
|
|
131
|
+
var _ref$tip$data$xAxis$b = _ref$tip$data$xAxis.background,
|
|
132
|
+
xAxisBg = _ref$tip$data$xAxis$b === void 0 ? defaultTooltip.tip.data.xAxis.background : _ref$tip$data$xAxis$b,
|
|
133
|
+
_ref$tip$data$xAxis$g = _ref$tip$data$xAxis.gap,
|
|
134
|
+
xAxisGap = _ref$tip$data$xAxis$g === void 0 ? defaultTooltip.tip.data.xAxis.gap : _ref$tip$data$xAxis$g,
|
|
135
|
+
_ref$tip$data$xAxis$f = _ref$tip$data$xAxis.font;
|
|
125
136
|
_ref$tip$data$xAxis$f = _ref$tip$data$xAxis$f === void 0 ? defaultTooltip.tip.data.xAxis.font : _ref$tip$data$xAxis$f;
|
|
126
137
|
var xAxisFontFamily = _ref$tip$data$xAxis$f.fontFamily,
|
|
127
138
|
xAxisFontSize = _ref$tip$data$xAxis$f.fontSize,
|
|
@@ -139,10 +150,14 @@ var _default = function _default() {
|
|
|
139
150
|
_ref$tip$data$data = _ref$tip$data$data === void 0 ? defaultTooltip.tip.data.data : _ref$tip$data$data;
|
|
140
151
|
var _ref$tip$data$data$li = _ref$tip$data$data.lineHeight,
|
|
141
152
|
lineHeight = _ref$tip$data$data$li === void 0 ? defaultTooltip.tip.data.lineHeight : _ref$tip$data$data$li,
|
|
153
|
+
_ref$tip$data$data$ga = _ref$tip$data$data.gap,
|
|
154
|
+
dataGap = _ref$tip$data$data$ga === void 0 ? defaultTooltip.tip.data.gap : _ref$tip$data$data$ga,
|
|
142
155
|
_ref$tip$data$data$ic = _ref$tip$data$data.iconSize,
|
|
143
156
|
iconSize = _ref$tip$data$data$ic === void 0 ? defaultTooltip.tip.data.iconSize : _ref$tip$data$data$ic,
|
|
144
157
|
_ref$tip$data$data$nu = _ref$tip$data$data.num,
|
|
145
158
|
num = _ref$tip$data$data$nu === void 0 ? defaultTooltip.tip.data.num : _ref$tip$data$data$nu,
|
|
159
|
+
_ref$tip$data$data$ba = _ref$tip$data$data.background,
|
|
160
|
+
dataBg = _ref$tip$data$data$ba === void 0 ? defaultTooltip.tip.data.background : _ref$tip$data$data$ba,
|
|
146
161
|
_ref$tip$data$data$na = _ref$tip$data$data.name;
|
|
147
162
|
_ref$tip$data$data$na = _ref$tip$data$data$na === void 0 ? defaultTooltip.tip.data.data.name : _ref$tip$data$data$na;
|
|
148
163
|
var nameFontFamily = _ref$tip$data$data$na.fontFamily,
|
|
@@ -201,6 +216,12 @@ var _default = function _default() {
|
|
|
201
216
|
name: 'tip',
|
|
202
217
|
displayName: '提示框',
|
|
203
218
|
value: [(0, _.translate)(tipTranslateX, tipTranslateY), {
|
|
219
|
+
name: "bgColor",
|
|
220
|
+
displayName: "背景色",
|
|
221
|
+
type: "color",
|
|
222
|
+
value: bgColor,
|
|
223
|
+
tip: "如果没有背景图,则启用背景色作为背景"
|
|
224
|
+
}, {
|
|
204
225
|
type: 'uploadImage',
|
|
205
226
|
name: 'image',
|
|
206
227
|
displayName: '背景',
|
|
@@ -238,6 +259,16 @@ var _default = function _default() {
|
|
|
238
259
|
name: 'xAxis',
|
|
239
260
|
displayName: '类目标签',
|
|
240
261
|
value: [{
|
|
262
|
+
name: "background",
|
|
263
|
+
displayName: "背景图",
|
|
264
|
+
type: "image",
|
|
265
|
+
value: xAxisBg
|
|
266
|
+
}, {
|
|
267
|
+
name: "gap",
|
|
268
|
+
displayName: "下间距",
|
|
269
|
+
type: "number",
|
|
270
|
+
value: xAxisGap
|
|
271
|
+
}, {
|
|
241
272
|
name: 'font',
|
|
242
273
|
displayName: '文本样式',
|
|
243
274
|
value: {
|
|
@@ -276,15 +307,25 @@ var _default = function _default() {
|
|
|
276
307
|
displayName: '数据',
|
|
277
308
|
name: 'data',
|
|
278
309
|
value: [{
|
|
279
|
-
displayName: '
|
|
310
|
+
displayName: '行高',
|
|
280
311
|
type: 'number',
|
|
281
312
|
value: lineHeight,
|
|
282
313
|
name: 'lineHeight'
|
|
314
|
+
}, {
|
|
315
|
+
displayName: '行间距',
|
|
316
|
+
type: 'number',
|
|
317
|
+
value: dataGap,
|
|
318
|
+
name: 'gap'
|
|
283
319
|
}, {
|
|
284
320
|
displayName: '图标尺寸',
|
|
285
321
|
type: 'number',
|
|
286
322
|
value: iconSize,
|
|
287
323
|
name: 'iconSize'
|
|
324
|
+
}, {
|
|
325
|
+
name: "background",
|
|
326
|
+
displayName: "背景图",
|
|
327
|
+
type: "image",
|
|
328
|
+
value: dataBg
|
|
288
329
|
}, {
|
|
289
330
|
displayName: "保留小数",
|
|
290
331
|
type: "input",
|
package/package.json
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@easyv/config",
|
|
3
|
-
"version": "1.2.
|
|
4
|
-
"description": "",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"make": "babel src -d lib",
|
|
8
|
-
"release": "standard-version"
|
|
9
|
-
},
|
|
10
|
-
"keywords": [],
|
|
11
|
-
"author": "",
|
|
12
|
-
"license": "ISC",
|
|
13
|
-
"devDependencies": {
|
|
14
|
-
"@babel/cli": "^7.6.0",
|
|
15
|
-
"@babel/core": "^7.11.5",
|
|
16
|
-
"@babel/plugin-proposal-class-properties": "^7.10.4",
|
|
17
|
-
"@babel/plugin-proposal-export-default-from": "^7.10.4",
|
|
18
|
-
"@babel/plugin-transform-runtime": "^7.11.5",
|
|
19
|
-
"@babel/preset-env": "^7.11.5",
|
|
20
|
-
"@babel/preset-react": "^7.10.4",
|
|
21
|
-
"@babel/runtime": "^7.17.7",
|
|
22
|
-
"babel-plugin-transform-import-styles": "0.0.11",
|
|
23
|
-
"babel-preset-env": "^1.7.0",
|
|
24
|
-
"standard-version": "^9.3.2"
|
|
25
|
-
},
|
|
26
|
-
"standard-version": {
|
|
27
|
-
"skip": {
|
|
28
|
-
"commit": true
|
|
29
|
-
}
|
|
30
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@easyv/config",
|
|
3
|
+
"version": "1.2.10",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"make": "babel src -d lib",
|
|
8
|
+
"release": "standard-version"
|
|
9
|
+
},
|
|
10
|
+
"keywords": [],
|
|
11
|
+
"author": "",
|
|
12
|
+
"license": "ISC",
|
|
13
|
+
"devDependencies": {
|
|
14
|
+
"@babel/cli": "^7.6.0",
|
|
15
|
+
"@babel/core": "^7.11.5",
|
|
16
|
+
"@babel/plugin-proposal-class-properties": "^7.10.4",
|
|
17
|
+
"@babel/plugin-proposal-export-default-from": "^7.10.4",
|
|
18
|
+
"@babel/plugin-transform-runtime": "^7.11.5",
|
|
19
|
+
"@babel/preset-env": "^7.11.5",
|
|
20
|
+
"@babel/preset-react": "^7.10.4",
|
|
21
|
+
"@babel/runtime": "^7.17.7",
|
|
22
|
+
"babel-plugin-transform-import-styles": "0.0.11",
|
|
23
|
+
"babel-preset-env": "^1.7.0",
|
|
24
|
+
"standard-version": "^9.3.2"
|
|
25
|
+
},
|
|
26
|
+
"standard-version": {
|
|
27
|
+
"skip": {
|
|
28
|
+
"commit": true
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
31
|
}
|
package/src/control.js
CHANGED
|
@@ -1,104 +1,104 @@
|
|
|
1
|
-
const defaultControl={
|
|
2
|
-
height:20,
|
|
3
|
-
color:"rgba(20, 95, 255, 0.1)",
|
|
4
|
-
margin:{
|
|
5
|
-
left:40,
|
|
6
|
-
right:40
|
|
7
|
-
},
|
|
8
|
-
gap:20,
|
|
9
|
-
drag:{
|
|
10
|
-
width:30,
|
|
11
|
-
color:"RGBA(255, 255, 255, .3)"
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export const control = ({
|
|
16
|
-
height = defaultControl.height,
|
|
17
|
-
color = defaultControl.color,
|
|
18
|
-
margin:{
|
|
19
|
-
left = defaultControl.margin.left,
|
|
20
|
-
right = defaultControl.margin.right
|
|
21
|
-
} = defaultControl.margin,
|
|
22
|
-
gap = defaultControl.gap,
|
|
23
|
-
drag:{
|
|
24
|
-
width = defaultControl.drag.width,
|
|
25
|
-
color:dragColor = defaultControl.drag.color
|
|
26
|
-
} = defaultControl.drag
|
|
27
|
-
} = defaultControl) => {
|
|
28
|
-
return {
|
|
29
|
-
name: "control",
|
|
30
|
-
displayName: "控制条",
|
|
31
|
-
value: [
|
|
32
|
-
{
|
|
33
|
-
name: "height",
|
|
34
|
-
displayName: "高度",
|
|
35
|
-
value: height,
|
|
36
|
-
type: "number",
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
name: "color",
|
|
40
|
-
displayName: "背景颜色",
|
|
41
|
-
value: color,
|
|
42
|
-
type: "color",
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
type: "group",
|
|
46
|
-
name: "margin",
|
|
47
|
-
displayName: "边距",
|
|
48
|
-
value: [
|
|
49
|
-
{
|
|
50
|
-
name: "left",
|
|
51
|
-
displayName: "左边距",
|
|
52
|
-
value: left,
|
|
53
|
-
type: "number",
|
|
54
|
-
config: {
|
|
55
|
-
span: 12,
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
name: "right",
|
|
60
|
-
displayName: "右边距",
|
|
61
|
-
value: right,
|
|
62
|
-
type: "number",
|
|
63
|
-
config: {
|
|
64
|
-
span: 12,
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
],
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
name:"gap",
|
|
71
|
-
displayName:"上间距",
|
|
72
|
-
type:"number",
|
|
73
|
-
value:gap,
|
|
74
|
-
config:{
|
|
75
|
-
suffix:"px"
|
|
76
|
-
},
|
|
77
|
-
tip:"与X轴的距离"
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
name: "drag",
|
|
81
|
-
displayName: "详情区域",
|
|
82
|
-
value: [
|
|
83
|
-
{
|
|
84
|
-
name: "width",
|
|
85
|
-
displayName: "宽度",
|
|
86
|
-
value: width,
|
|
87
|
-
type: "range",
|
|
88
|
-
config: {
|
|
89
|
-
suffix: "%",
|
|
90
|
-
min: 1,
|
|
91
|
-
max:100
|
|
92
|
-
},
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
name: "color",
|
|
96
|
-
displayName: "颜色",
|
|
97
|
-
value: dragColor,
|
|
98
|
-
type: "color",
|
|
99
|
-
},
|
|
100
|
-
],
|
|
101
|
-
},
|
|
102
|
-
],
|
|
103
|
-
};
|
|
104
|
-
};
|
|
1
|
+
const defaultControl={
|
|
2
|
+
height:20,
|
|
3
|
+
color:"rgba(20, 95, 255, 0.1)",
|
|
4
|
+
margin:{
|
|
5
|
+
left:40,
|
|
6
|
+
right:40
|
|
7
|
+
},
|
|
8
|
+
gap:20,
|
|
9
|
+
drag:{
|
|
10
|
+
width:30,
|
|
11
|
+
color:"RGBA(255, 255, 255, .3)"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const control = ({
|
|
16
|
+
height = defaultControl.height,
|
|
17
|
+
color = defaultControl.color,
|
|
18
|
+
margin:{
|
|
19
|
+
left = defaultControl.margin.left,
|
|
20
|
+
right = defaultControl.margin.right
|
|
21
|
+
} = defaultControl.margin,
|
|
22
|
+
gap = defaultControl.gap,
|
|
23
|
+
drag:{
|
|
24
|
+
width = defaultControl.drag.width,
|
|
25
|
+
color:dragColor = defaultControl.drag.color
|
|
26
|
+
} = defaultControl.drag
|
|
27
|
+
} = defaultControl) => {
|
|
28
|
+
return {
|
|
29
|
+
name: "control",
|
|
30
|
+
displayName: "控制条",
|
|
31
|
+
value: [
|
|
32
|
+
{
|
|
33
|
+
name: "height",
|
|
34
|
+
displayName: "高度",
|
|
35
|
+
value: height,
|
|
36
|
+
type: "number",
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: "color",
|
|
40
|
+
displayName: "背景颜色",
|
|
41
|
+
value: color,
|
|
42
|
+
type: "color",
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
type: "group",
|
|
46
|
+
name: "margin",
|
|
47
|
+
displayName: "边距",
|
|
48
|
+
value: [
|
|
49
|
+
{
|
|
50
|
+
name: "left",
|
|
51
|
+
displayName: "左边距",
|
|
52
|
+
value: left,
|
|
53
|
+
type: "number",
|
|
54
|
+
config: {
|
|
55
|
+
span: 12,
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: "right",
|
|
60
|
+
displayName: "右边距",
|
|
61
|
+
value: right,
|
|
62
|
+
type: "number",
|
|
63
|
+
config: {
|
|
64
|
+
span: 12,
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
],
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
name:"gap",
|
|
71
|
+
displayName:"上间距",
|
|
72
|
+
type:"number",
|
|
73
|
+
value:gap,
|
|
74
|
+
config:{
|
|
75
|
+
suffix:"px"
|
|
76
|
+
},
|
|
77
|
+
tip:"与X轴的距离"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
name: "drag",
|
|
81
|
+
displayName: "详情区域",
|
|
82
|
+
value: [
|
|
83
|
+
{
|
|
84
|
+
name: "width",
|
|
85
|
+
displayName: "宽度",
|
|
86
|
+
value: width,
|
|
87
|
+
type: "range",
|
|
88
|
+
config: {
|
|
89
|
+
suffix: "%",
|
|
90
|
+
min: 1,
|
|
91
|
+
max:100
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
name: "color",
|
|
96
|
+
displayName: "颜色",
|
|
97
|
+
value: dragColor,
|
|
98
|
+
type: "color",
|
|
99
|
+
},
|
|
100
|
+
],
|
|
101
|
+
},
|
|
102
|
+
],
|
|
103
|
+
};
|
|
104
|
+
};
|
package/src/extent.js
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
const extent = {
|
|
2
|
-
min: "0",
|
|
3
|
-
max: "",
|
|
4
|
-
customDisplayName: "数值范围",
|
|
5
|
-
customName: "extent",
|
|
6
|
-
customSuffix: "",
|
|
7
|
-
};
|
|
8
|
-
export default ({
|
|
9
|
-
min = extent.min,
|
|
10
|
-
max = extent.max,
|
|
11
|
-
customDisplayName = extent.customDisplayName,
|
|
12
|
-
customName = extent.customName,
|
|
13
|
-
customSuffix = extent.customSuffix,
|
|
14
|
-
} = extent) => {
|
|
15
|
-
return {
|
|
16
|
-
name: customName,
|
|
17
|
-
displayName: customDisplayName,
|
|
18
|
-
value: [
|
|
19
|
-
{
|
|
20
|
-
name: "min",
|
|
21
|
-
displayName: "最小值",
|
|
22
|
-
value: min,
|
|
23
|
-
type: "input",
|
|
24
|
-
config: {
|
|
25
|
-
span: 12,
|
|
26
|
-
suffix: customSuffix,
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
name: "max",
|
|
31
|
-
displayName: "最大值",
|
|
32
|
-
value: max,
|
|
33
|
-
type: "input",
|
|
34
|
-
config: {
|
|
35
|
-
span: 12,
|
|
36
|
-
suffix: customSuffix,
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
],
|
|
40
|
-
type: "group",
|
|
41
|
-
};
|
|
42
|
-
};
|
|
1
|
+
const extent = {
|
|
2
|
+
min: "0",
|
|
3
|
+
max: "",
|
|
4
|
+
customDisplayName: "数值范围",
|
|
5
|
+
customName: "extent",
|
|
6
|
+
customSuffix: "",
|
|
7
|
+
};
|
|
8
|
+
export default ({
|
|
9
|
+
min = extent.min,
|
|
10
|
+
max = extent.max,
|
|
11
|
+
customDisplayName = extent.customDisplayName,
|
|
12
|
+
customName = extent.customName,
|
|
13
|
+
customSuffix = extent.customSuffix,
|
|
14
|
+
} = extent) => {
|
|
15
|
+
return {
|
|
16
|
+
name: customName,
|
|
17
|
+
displayName: customDisplayName,
|
|
18
|
+
value: [
|
|
19
|
+
{
|
|
20
|
+
name: "min",
|
|
21
|
+
displayName: "最小值",
|
|
22
|
+
value: min,
|
|
23
|
+
type: "input",
|
|
24
|
+
config: {
|
|
25
|
+
span: 12,
|
|
26
|
+
suffix: customSuffix,
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: "max",
|
|
31
|
+
displayName: "最大值",
|
|
32
|
+
value: max,
|
|
33
|
+
type: "input",
|
|
34
|
+
config: {
|
|
35
|
+
span: 12,
|
|
36
|
+
suffix: customSuffix,
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
type: "group",
|
|
41
|
+
};
|
|
42
|
+
};
|