cos-design 3.5.2 → 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.
@@ -2,8 +2,34 @@ import { default as React } from 'react';
2
2
  export interface RippleWaterProps {
3
3
  width?: number;
4
4
  height?: number;
5
- /** 涟漪颜色 */
5
+ /** 水面渐变浅端(左上) */
6
+ fromColor?: string;
7
+ /** 水面渐变深端(右下) */
8
+ toColor?: string;
9
+ /** 涟漪高光色 */
6
10
  color?: string;
11
+ /** 环境波浪强度 0~2,默认 1 */
12
+ waveAmplitude?: number;
13
+ /** 环境波浪速度 0~3,默认 1 */
14
+ waveSpeed?: number;
15
+ /** 波光闪烁强度 0~2,默认 1 */
16
+ shimmer?: number;
17
+ /** 水面反射强度 0~1,默认 0.38 */
18
+ reflection?: number;
19
+ /** 点击涟漪力度 0~3,默认 1 */
20
+ rippleStrength?: number;
21
+ /** 涟漪落点半径(仿真格点 2~12),默认 6 */
22
+ rippleRadius?: number;
23
+ /** 涟漪衰减 0.9~0.999,越大越持久,默认 0.985 */
24
+ damping?: number;
25
+ /** 涟漪传播速度 0.3~0.7,默认 0.5 */
26
+ spread?: number;
27
+ /** 是否响应点击/触摸产生涟漪,默认 true */
28
+ interactive?: boolean;
29
+ /** 是否显示底部提示,默认 true */
30
+ showHint?: boolean;
31
+ /** 底部提示文案 */
32
+ hint?: string;
7
33
  }
8
34
  declare const RippleWater: React.FC<RippleWaterProps>;
9
35
  export default RippleWater;
@@ -2,8 +2,20 @@ import { default as React } from 'react';
2
2
  export interface SmokeFogProps {
3
3
  width?: number;
4
4
  height?: number;
5
- /** 雾气密度 0~1,默认 0.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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cos-design",
3
- "version": "3.5.2",
3
+ "version": "3.5.4",
4
4
  "description": "A React component library built with Vite",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",