cos-design 3.5.3 → 3.5.4
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/CHANGELOG.md +10 -0
- package/dist/index.cjs +3 -3
- package/dist/index.css +1 -1
- package/dist/index.js +466 -300
- package/dist/src/components/smokeFog/index.d.ts +13 -1
- package/package.json +1 -1
|
@@ -2,8 +2,20 @@ import { default as React } from 'react';
|
|
|
2
2
|
export interface SmokeFogProps {
|
|
3
3
|
width?: number;
|
|
4
4
|
height?: number;
|
|
5
|
-
/**
|
|
5
|
+
/** 烟雾密度 0~1,默认 0.5 */
|
|
6
6
|
density?: number;
|
|
7
|
+
/** 烟雾颜色,默认偏冷灰白 `#d2d4d8` */
|
|
8
|
+
color?: string;
|
|
9
|
+
/** 背景色:单色会生成轻微渐变,或传 [上, 中, 下];默认深色夜景 */
|
|
10
|
+
backgroundColor?: string | [string, string, string];
|
|
11
|
+
/** 运动速度倍率 0~3,默认 1 */
|
|
12
|
+
speed?: number;
|
|
13
|
+
/** 点击拨开力度 0~3,默认 1 */
|
|
14
|
+
disperseStrength?: number;
|
|
15
|
+
/** 点击拨开范围倍率 0~3,默认 1 */
|
|
16
|
+
disperseRadius?: number;
|
|
17
|
+
/** 是否响应点击/触摸驱散,默认 true */
|
|
18
|
+
interactive?: boolean;
|
|
7
19
|
}
|
|
8
20
|
declare const SmokeFog: React.FC<SmokeFogProps>;
|
|
9
21
|
export default SmokeFog;
|