@gx-design-vue/pro-utils 0.2.0-beta.19 → 0.2.0-beta.20

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.
@@ -3,7 +3,19 @@ import type { CustomRender, WithFalse } from '../typings';
3
3
  export declare function isEmptySlot(slot: VNode): boolean;
4
4
  export declare const isSlotFragment: (slots: VNode[]) => boolean;
5
5
  export declare function getRealVNode(vnode: VNode[]): VNode[];
6
+ /**
7
+ * @Author gx12358
8
+ * @DateTime 2024/2/2
9
+ * @lastTime 2024/2/2
10
+ * @description () => false | function
11
+ */
6
12
  export declare function getSlot<T>(slots: Slots, props: Record<string, unknown>, prop?: string): T | false;
13
+ /**
14
+ * @Author gx12358
15
+ * @DateTime 2024/2/2
16
+ * @lastTime 2024/2/2
17
+ * @description () => false | vnode
18
+ */
7
19
  export declare function getSlotVNode<T>(slots: Slots, props: Record<string, unknown>, prop?: string): T | false;
8
20
  type KeyValue<T extends keyof any, K> = Record<T, K>;
9
21
  export declare function getSlotsProps<T extends keyof any, VNode = WithFalse<CustomRender>>(data: T[], slots: Slots, props: Record<string, unknown>): KeyValue<T, VNode | false>;
@@ -4,7 +4,7 @@ export type Nullable<T> = T | null;
4
4
  export type WithFalse<T> = T | false;
5
5
  export type RecordType = Record<string, any>;
6
6
  export type VueNode = VNodeChild | JSX.Element;
7
- export type CustomRender = Slot | VNodeChild | VNode | ((...props: any[]) => Slot) | ((...props: any[]) => VNode) | ((...args: any[]) => VNode) | VNode[] | JSX.Element | string | null | undefined;
7
+ export type CustomRender = Slot | VNodeChild | VNode | ((...props: any[]) => Slot) | ((...props: any[]) => VNode) | ((...args: any[]) => VNode) | VNode[] | JSX.Element | Element | string | null | undefined;
8
8
  export type Breakpoint = 'xxl' | 'xl' | 'lg' | 'md' | 'sm' | 'xs';
9
9
  export type SizeType = 'small' | 'middle' | 'large' | undefined;
10
10
  export type AlignType = 'left' | 'center' | 'right';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gx-design-vue/pro-utils",
3
- "version": "0.2.0-beta.19",
3
+ "version": "0.2.0-beta.20",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "vite build",