aot-ui 0.2.35 → 0.2.36

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.
@@ -1,2 +1,2 @@
1
1
  import { EmptyProps } from '../types';
2
- export declare function Empty({ title, description, image, showImage, children, className, }: EmptyProps): import('react').JSX.Element;
2
+ export declare function Empty({ title, description, image, showImage, fill, height, borderRadius, children, className, style, }: EmptyProps): import('react').JSX.Element;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import { CSSProperties, ReactNode } from 'react';
2
2
  export type EmptyProps = {
3
3
  /** Optional heading above description */
4
4
  title?: ReactNode;
@@ -6,6 +6,16 @@ export type EmptyProps = {
6
6
  image?: ReactNode;
7
7
  /** Hide default illustration when false @default true when image omitted */
8
8
  showImage?: boolean;
9
+ /**
10
+ * 撑满父容器高度(适合 flex / 固定高滚动区空态居中)
11
+ * @default false
12
+ */
13
+ fill?: boolean;
14
+ /** 显式高度;number 视为 px */
15
+ height?: number | string;
16
+ /** 圆角;number 视为 px */
17
+ borderRadius?: number | string;
9
18
  children?: ReactNode;
10
19
  className?: string;
20
+ style?: CSSProperties;
11
21
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aot-ui",
3
- "version": "0.2.35",
3
+ "version": "0.2.36",
4
4
  "description": "AOT React UI component kit",
5
5
  "type": "module",
6
6
  "main": "./dist-lib/aot-ui.js",