@easyv/config 1.1.16 → 1.1.17
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 -2
- package/package.json +1 -1
- package/src/animation.js +9 -1
package/lib/animation.js
CHANGED
|
@@ -17,7 +17,8 @@ var _default = function _default() {
|
|
|
17
17
|
_ref$duration = _ref.duration,
|
|
18
18
|
duration = _ref$duration === void 0 ? animation.duration : _ref$duration,
|
|
19
19
|
_ref$interval = _ref.interval,
|
|
20
|
-
interval = _ref$interval === void 0 ? animation.interval : _ref$interval
|
|
20
|
+
interval = _ref$interval === void 0 ? animation.interval : _ref$interval,
|
|
21
|
+
hoverStop = _ref.hoverStop;
|
|
21
22
|
return {
|
|
22
23
|
name: 'animation',
|
|
23
24
|
displayName: '轮播动画',
|
|
@@ -46,7 +47,15 @@ var _default = function _default() {
|
|
|
46
47
|
span: 12,
|
|
47
48
|
suffix: 's'
|
|
48
49
|
}
|
|
49
|
-
}
|
|
50
|
+
}, hoverStop !== undefined && {
|
|
51
|
+
rule: [['show', '$eq', true]],
|
|
52
|
+
name: 'hover',
|
|
53
|
+
displayName: '悬停暂停动画',
|
|
54
|
+
value: false,
|
|
55
|
+
type: 'boolean'
|
|
56
|
+
}].filter(function (d) {
|
|
57
|
+
return !!d;
|
|
58
|
+
})
|
|
50
59
|
};
|
|
51
60
|
};
|
|
52
61
|
exports["default"] = _default;
|
package/package.json
CHANGED
package/src/animation.js
CHANGED
|
@@ -8,6 +8,7 @@ export default ({
|
|
|
8
8
|
show = animation.show,
|
|
9
9
|
duration = animation.duration,
|
|
10
10
|
interval = animation.interval,
|
|
11
|
+
hoverStop
|
|
11
12
|
} = animation) => ({
|
|
12
13
|
name: 'animation',
|
|
13
14
|
displayName: '轮播动画',
|
|
@@ -40,7 +41,14 @@ export default ({
|
|
|
40
41
|
suffix: 's',
|
|
41
42
|
},
|
|
42
43
|
},
|
|
43
|
-
|
|
44
|
+
hoverStop !==undefined && {
|
|
45
|
+
rule: [['show', '$eq', true]],
|
|
46
|
+
name: 'hover',
|
|
47
|
+
displayName: '悬停暂停动画',
|
|
48
|
+
value: false,
|
|
49
|
+
type: 'boolean'
|
|
50
|
+
}
|
|
51
|
+
].filter(d=>!!d),
|
|
44
52
|
});
|
|
45
53
|
|
|
46
54
|
const defaultDataAnimation = {
|