@uf_lee/leeui 1.0.18 → 1.0.19

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,6 +1,14 @@
1
+ import { Slots } from "vue";
1
2
  /**
2
3
  *
3
4
  * @param item 传入的组件属性
4
5
  * @returns 默认添加 clearable 属性
5
6
  */
6
7
  export declare const setComponentProps: (item: FormSchema) => Recordable;
8
+ /**
9
+ *
10
+ * @param slots 插槽
11
+ * @param slotsProps 插槽属性
12
+ * @param field 字段名
13
+ */
14
+ export declare const setItemComponentSlots: (slots: Slots, slotsProps: Recordable | undefined, field: string) => Recordable;
@@ -0,0 +1,23 @@
1
+ export declare const is: (val: unknown, type: string) => boolean;
2
+ export declare const isDef: <T = unknown>(val?: T) => val is T;
3
+ export declare const isUnDef: <T = unknown>(val?: T) => val is T;
4
+ export declare const isObject: (val: any) => val is Record<any, any>;
5
+ export declare const isEmpty: <T = unknown>(val: T) => val is T;
6
+ export declare const isDate: (val: unknown) => val is Date;
7
+ export declare const isNull: (val: unknown) => val is null;
8
+ export declare const isNullAndUnDef: (val: unknown) => val is null | undefined;
9
+ export declare const isNullOrUnDef: (val: unknown) => val is null | undefined;
10
+ export declare const isNumber: (val: unknown) => val is number;
11
+ export declare const isPromise: <T = any>(val: unknown) => val is Promise<T>;
12
+ export declare const isString: (val: unknown) => val is string;
13
+ export declare const isFunction: (val: unknown) => val is Function;
14
+ export declare const isBoolean: (val: unknown) => val is boolean;
15
+ export declare const isRegExp: (val: unknown) => val is RegExp;
16
+ export declare const isArray: (val: any) => val is Array<any>;
17
+ export declare const isWindow: (val: any) => val is Window;
18
+ export declare const isElement: (val: unknown) => val is Element;
19
+ export declare const isMap: (val: unknown) => val is Map<any, any>;
20
+ export declare const isServer: boolean;
21
+ export declare const isClient: boolean;
22
+ export declare const isUrl: (path: string) => boolean;
23
+ export declare const isDark: () => boolean;
@@ -0,0 +1,4 @@
1
+ import { Slots } from "vue";
2
+ export declare const getSlot: (slots: Slots, slot?: string, data?: Recordable) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
3
+ [key: string]: any;
4
+ }>[] | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uf_lee/leeui",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
4
4
  "description": "自己的组件库",
5
5
  "main": "dist/leeui.umd.js",
6
6
  "module": "dist/leeui.es.js",
@@ -24,6 +24,7 @@
24
24
  "devDependencies": {
25
25
  "@types/axios": "^0.14.4",
26
26
  "@types/node": "^22.13.13",
27
+ "@types/vue": "^2.0.0",
27
28
  "@vitejs/plugin-vue": "^5.2.3",
28
29
  "@vitejs/plugin-vue-jsx": "^4.1.2",
29
30
  "@vue/tsconfig": "^0.7.0",
File without changes