cos-design 3.7.4 → 3.7.5

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,6 +2,8 @@ import { default as React } from 'react';
2
2
  export interface ConfettiProps {
3
3
  width?: number;
4
4
  height?: number;
5
+ /** 为 true 时铺满父容器(父级需有明确高度) */
6
+ fill?: boolean;
5
7
  /** 挂载后自动播放,默认 true */
6
8
  auto?: boolean;
7
9
  /** 每次喷射粒子数,默认 120 */
@@ -2,6 +2,8 @@ import { default as React } from 'react';
2
2
  export interface FireworksProps {
3
3
  width?: number;
4
4
  height?: number;
5
+ /** 为 true 时铺满父容器(父级需有明确高度) */
6
+ fill?: boolean;
5
7
  /** 是否自动燃放,默认 true */
6
8
  auto?: boolean;
7
9
  /** 画布操作提示 */
@@ -2,6 +2,8 @@ import { default as React } from 'react';
2
2
  export interface MatrixRainProps {
3
3
  width?: number;
4
4
  height?: number;
5
+ /** 为 true 时铺满父容器(父级需有明确高度) */
6
+ fill?: boolean;
5
7
  /** 列密度 0~1,默认 0.6 */
6
8
  density?: number;
7
9
  /** 主色调 */
@@ -2,6 +2,8 @@ import { default as React } from 'react';
2
2
  export interface ParticleNetworkProps {
3
3
  width?: number;
4
4
  height?: number;
5
+ /** 为 true 时铺满父容器(父级需有明确高度) */
6
+ fill?: boolean;
5
7
  /** 粒子数量 */
6
8
  particleCount?: number;
7
9
  /** 连线距离 */
@@ -4,6 +4,8 @@ export interface RedPacketRainProps {
4
4
  width?: number;
5
5
  /** 画布高度,默认 500 */
6
6
  height?: number;
7
+ /** 为 true 时铺满父容器(父级需有明确高度) */
8
+ fill?: boolean;
7
9
  /** 持续时间(毫秒),默认 10000 */
8
10
  duration?: number;
9
11
  /** 挂载后自动开始,默认 true */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cos-design",
3
- "version": "3.7.4",
3
+ "version": "3.7.5",
4
4
  "description": "React visual-effect components for marketing pages, campaigns, canvas backgrounds, and creative showcases",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",