enr 1.0.1 → 1.0.2

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/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "type": "module",
10
10
  "name": "enr",
11
- "version": "1.0.1",
11
+ "version": "1.0.2",
12
12
  "description": "一个 earthnut 的 react ui",
13
13
  "overrides": {
14
14
  "css-loader": "6.11.0"
@@ -22,4 +22,4 @@ import { ThemeColorModeProviderProps, ThemeContextType } from './types';
22
22
  */
23
23
  export declare function useColorMode(): ThemeContextType;
24
24
  /** */
25
- export declare function ThemeColorModeProvider({ children, initialTheme }: ThemeColorModeProviderProps): import("react").JSX.Element;
25
+ export declare function ThemeColorModeProvider({ children, initialTheme }: ThemeColorModeProviderProps): import("react/jsx-runtime").JSX.Element;
@@ -7,4 +7,4 @@
7
7
  /**
8
8
  * 按钮
9
9
  */
10
- export default function Button(): import("react").JSX.Element;
10
+ export default function Button(): import("react/jsx-runtime").JSX.Element;
@@ -11,4 +11,4 @@ import { HTMLAttributes } from 'react';
11
11
  export declare function Switch({ value, change, children, ...props }: {
12
12
  value: boolean;
13
13
  change?: (e?: React.MouseEvent) => void;
14
- } & HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
14
+ } & HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
@@ -8,5 +8,9 @@ import { Ripples } from '../ripplesClass';
8
8
  /**
9
9
  * 重新加载背景图片
10
10
  *
11
+ *
12
+ * 为了避免在高频父元素尺寸变化时触发 canvas 的 width、height 属性变化。
13
+ * 使用防抖进行处理设置 canvas 的 width、height 值
14
+ *
11
15
  */
12
16
  export declare function reloadBackground(this: Ripples): void;
@@ -16,7 +16,6 @@ import { FadeData } from './rippersData/fadeData';
16
16
  * 魔改自大佬的[jQuey 代码](https://github.com/sirxemic/jquery.ripples)
17
17
  */
18
18
  export declare class Ripples extends RipplesData {
19
- #private;
20
19
  /** 渲染数据 */
21
20
  renderData: RipplesRenderData | null;
22
21
  /** 使用参数 */
@@ -38,8 +37,6 @@ export declare class Ripples extends RipplesData {
38
37
  * 缓进缓出
39
38
  */
40
39
  fade(): void;
41
- /** 元素的尺寸发生变化 */
42
- reloadBackground(): void;
43
40
  /** 销毁 */
44
41
  destroy(): void;
45
42
  /** 展示元素 */