@gx-design-vue/pro-utils 0.0.13 → 0.0.14
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/dist/slots/index.d.ts +2 -4
- package/package.json +1 -1
package/dist/slots/index.d.ts
CHANGED
|
@@ -2,8 +2,6 @@ import { Slots } from 'vue';
|
|
|
2
2
|
import type { CustomRender, WithFalse } from '../typings';
|
|
3
3
|
export declare function getSlot<T>(slots: Slots, props: Record<string, unknown>, prop?: string): T | false;
|
|
4
4
|
export declare function getSlotVNode<T>(slots: Slots, props: Record<string, unknown>, prop?: string): T | false;
|
|
5
|
-
declare type KeyValue<T =
|
|
6
|
-
|
|
7
|
-
};
|
|
8
|
-
export declare function getSlotsProps<T extends string, VNode = WithFalse<CustomRender>>(data: T[], slots: Slots, props: Record<string, unknown>): KeyValue<VNode | false>;
|
|
5
|
+
declare type KeyValue<T, K> = Record<T, K>;
|
|
6
|
+
export declare function getSlotsProps<T extends keyof any, VNode = WithFalse<CustomRender>>(data: T[], slots: Slots, props: Record<string, unknown>): KeyValue<T, VNode | false>;
|
|
9
7
|
export {};
|