@easyv/config 1.2.2 → 1.2.3
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/animation.js +11 -3
- package/package.json +1 -1
- package/src/animation.js +8 -1
package/lib/animation.js
CHANGED
|
@@ -106,7 +106,8 @@ var animationOfPie = function animationOfPie() {
|
|
|
106
106
|
show = _ref3$show === void 0 ? defaultAnimationOfPie.show : _ref3$show,
|
|
107
107
|
_ref3$current = _ref3.current;
|
|
108
108
|
_ref3$current = _ref3$current === void 0 ? defaultAnimationOfPie.current : _ref3$current;
|
|
109
|
-
var
|
|
109
|
+
var widthen = _ref3$current.widthen,
|
|
110
|
+
_ref3$current$heighte = _ref3$current.heighten,
|
|
110
111
|
heighten = _ref3$current$heighte === void 0 ? defaultAnimationOfPie.current.heighten : _ref3$current$heighte,
|
|
111
112
|
_ref3$current$opacity = _ref3$current.opacity,
|
|
112
113
|
opacity = _ref3$current$opacity === void 0 ? defaultAnimationOfPie.current.opacity : _ref3$current$opacity,
|
|
@@ -132,7 +133,12 @@ var animationOfPie = function animationOfPie() {
|
|
|
132
133
|
displayName: '高度增长',
|
|
133
134
|
value: heighten,
|
|
134
135
|
type: 'number'
|
|
135
|
-
}, {
|
|
136
|
+
}, widthen != undefined ? {
|
|
137
|
+
name: 'widthen',
|
|
138
|
+
displayName: '半径增长',
|
|
139
|
+
value: widthen,
|
|
140
|
+
type: 'number'
|
|
141
|
+
} : undefined, {
|
|
136
142
|
name: 'opacity',
|
|
137
143
|
displayName: '透明度',
|
|
138
144
|
value: opacity,
|
|
@@ -142,7 +148,9 @@ var animationOfPie = function animationOfPie() {
|
|
|
142
148
|
max: 100,
|
|
143
149
|
suffix: '%'
|
|
144
150
|
}
|
|
145
|
-
}]
|
|
151
|
+
}].filter(function (d) {
|
|
152
|
+
return !!d;
|
|
153
|
+
}),
|
|
146
154
|
config: {
|
|
147
155
|
defaultOpen: true
|
|
148
156
|
}
|
package/package.json
CHANGED
package/src/animation.js
CHANGED
|
@@ -91,6 +91,7 @@ const defaultAnimationOfPie = {
|
|
|
91
91
|
export const animationOfPie = ({
|
|
92
92
|
show = defaultAnimationOfPie.show,
|
|
93
93
|
current: {
|
|
94
|
+
widthen,
|
|
94
95
|
heighten = defaultAnimationOfPie.current.heighten,
|
|
95
96
|
opacity = defaultAnimationOfPie.current.opacity,
|
|
96
97
|
} = defaultAnimationOfPie.current,
|
|
@@ -118,6 +119,12 @@ export const animationOfPie = ({
|
|
|
118
119
|
value: heighten,
|
|
119
120
|
type: 'number',
|
|
120
121
|
},
|
|
122
|
+
widthen!=undefined?{
|
|
123
|
+
name: 'widthen',
|
|
124
|
+
displayName: '半径增长',
|
|
125
|
+
value: widthen,
|
|
126
|
+
type: 'number',
|
|
127
|
+
}:undefined,
|
|
121
128
|
{
|
|
122
129
|
name: 'opacity',
|
|
123
130
|
displayName: '透明度',
|
|
@@ -129,7 +136,7 @@ export const animationOfPie = ({
|
|
|
129
136
|
suffix: '%',
|
|
130
137
|
},
|
|
131
138
|
},
|
|
132
|
-
],
|
|
139
|
+
].filter(d=>!!d),
|
|
133
140
|
config: {
|
|
134
141
|
defaultOpen: true,
|
|
135
142
|
},
|