@easyv/config 1.1.18 → 1.1.19

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 CHANGED
@@ -113,7 +113,8 @@ var animationOfPie = function animationOfPie() {
113
113
  _ref3$interval = _ref3.interval,
114
114
  interval = _ref3$interval === void 0 ? defaultAnimationOfPie.interval : _ref3$interval,
115
115
  _ref3$interactive = _ref3.interactive,
116
- interactive = _ref3$interactive === void 0 ? defaultAnimationOfPie.interactive : _ref3$interactive;
116
+ interactive = _ref3$interactive === void 0 ? defaultAnimationOfPie.interactive : _ref3$interactive,
117
+ hoverStop = _ref3.hoverStop;
117
118
  return {
118
119
  name: 'animation',
119
120
  displayName: '轮播动画',
@@ -173,7 +174,15 @@ var animationOfPie = function animationOfPie() {
173
174
  value: 'hover'
174
175
  }]
175
176
  }
176
- }]
177
+ }, hoverStop !== undefined && {
178
+ rule: [['on', '$eq', true]],
179
+ name: 'hoverStop',
180
+ displayName: '悬停暂停动画',
181
+ value: hoverStop,
182
+ type: 'boolean'
183
+ }].filter(function (d) {
184
+ return !!d;
185
+ })
177
186
  };
178
187
  };
179
188
  exports.animationOfPie = animationOfPie;
@@ -208,7 +217,8 @@ var animationOfCarousel = function animationOfCarousel() {
208
217
  _ref4$rotate = _ref4.rotate,
209
218
  rotate = _ref4$rotate === void 0 ? defaultAnimationOfCarousel.rotate : _ref4$rotate,
210
219
  _ref4$interactive = _ref4.interactive,
211
- interactive = _ref4$interactive === void 0 ? defaultAnimationOfCarousel.interactive : _ref4$interactive;
220
+ interactive = _ref4$interactive === void 0 ? defaultAnimationOfCarousel.interactive : _ref4$interactive,
221
+ hoverStop = _ref4.hoverStop;
212
222
  return {
213
223
  name: 'animation',
214
224
  displayName: '轮播动画',
@@ -274,7 +284,15 @@ var animationOfCarousel = function animationOfCarousel() {
274
284
  displayName: '点击交互',
275
285
  value: interactive,
276
286
  type: 'boolean'
277
- }]
287
+ }, hoverStop !== undefined && {
288
+ rule: [['on', '$eq', true]],
289
+ name: 'hoverStop',
290
+ displayName: '悬停暂停动画',
291
+ value: hoverStop,
292
+ type: 'boolean'
293
+ }].filter(function (d) {
294
+ return !!d;
295
+ })
278
296
  };
279
297
  };
280
298
  exports.animationOfCarousel = animationOfCarousel;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyv/config",
3
- "version": "1.1.18",
3
+ "version": "1.1.19",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/animation.js CHANGED
@@ -86,7 +86,7 @@ const defaultAnimationOfPie = {
86
86
  show: true,
87
87
  current: { heighten: 10, opacity: 60 },
88
88
  interval: 3,
89
- interactive: '',
89
+ interactive: ''
90
90
  };
91
91
  export const animationOfPie = ({
92
92
  show = defaultAnimationOfPie.show,
@@ -96,6 +96,7 @@ export const animationOfPie = ({
96
96
  } = defaultAnimationOfPie.current,
97
97
  interval = defaultAnimationOfPie.interval,
98
98
  interactive = defaultAnimationOfPie.interactive,
99
+ hoverStop
99
100
  } = defaultAnimationOfPie) => ({
100
101
  name: 'animation',
101
102
  displayName: '轮播动画',
@@ -158,7 +159,14 @@ export const animationOfPie = ({
158
159
  ],
159
160
  },
160
161
  },
161
- ],
162
+ hoverStop !==undefined && {
163
+ rule: [['on', '$eq', true]],
164
+ name: 'hoverStop',
165
+ displayName: '悬停暂停动画',
166
+ value: hoverStop,
167
+ type: 'boolean'
168
+ }
169
+ ].filter(d=>!!d),
162
170
  });
163
171
 
164
172
  const defaultAnimationOfCarousel = {
@@ -184,6 +192,7 @@ export const animationOfCarousel = ({
184
192
  interval = defaultAnimationOfCarousel.interval,
185
193
  rotate = defaultAnimationOfCarousel.rotate,
186
194
  interactive = defaultAnimationOfCarousel.interactive,
195
+ hoverStop
187
196
  } = defaultAnimationOfCarousel) => ({
188
197
  name: 'animation',
189
198
  displayName: '轮播动画',
@@ -260,5 +269,12 @@ export const animationOfCarousel = ({
260
269
  value: interactive,
261
270
  type: 'boolean',
262
271
  },
263
- ],
272
+ hoverStop !==undefined && {
273
+ rule: [['on', '$eq', true]],
274
+ name: 'hoverStop',
275
+ displayName: '悬停暂停动画',
276
+ value: hoverStop,
277
+ type: 'boolean'
278
+ }
279
+ ].filter(d=>!!d),
264
280
  });