@uf_lee/leeui 1.0.24 → 1.0.26
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/README.md +2 -2
- package/dist/leeui.es.js +14940 -9589
- package/dist/leeui.umd.js +35 -21
- package/dist/types/components/LElCom/index.d.ts +2 -0
- package/dist/types/components/{LElFormItemCom/src/LElFormItemCom.vue.d.ts → LElCom/src/LElCom.vue.d.ts} +5 -4
- package/dist/types/components/LElCom/src/helper.d.ts +18 -0
- package/dist/types/components/LElCom/src/types.d.ts +8 -0
- package/dist/types/components/LElForm/src/LElForm.vue.d.ts +1 -1
- package/dist/types/components/LElForm/src/types.d.ts +16 -0
- package/dist/types/components/LElTable/index.d.ts +2 -0
- package/dist/types/components/LElTable/src/LElTable.vue.d.ts +25 -0
- package/dist/types/components/LElTable/src/helper.d.ts +7 -0
- package/dist/types/components/{LElFormItemCom → LElTable}/src/types.d.ts +6 -6
- package/dist/types/index.d.ts +3 -2
- package/dist/types/types.d.ts +4 -2
- package/package.json +1 -1
- package/dist/types/components/LElFormItemCom/index.d.ts +0 -2
- package/dist/types/components/LElFormItemCom/src/helper.d.ts +0 -14
- /package/dist/types/components/{LElFormItemCom → LElCom}/src/componentMap.d.ts +0 -0
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { PropType } from "vue";
|
|
2
|
+
import type { ComData } from "./types";
|
|
2
3
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
4
|
data: {
|
|
4
|
-
type: PropType<
|
|
5
|
+
type: PropType<ComData>;
|
|
5
6
|
default: () => {};
|
|
6
7
|
};
|
|
7
8
|
modelValue: {
|
|
8
9
|
type: PropType<any>;
|
|
9
10
|
default: () => undefined;
|
|
10
11
|
};
|
|
11
|
-
}>, () =>
|
|
12
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
12
13
|
data: {
|
|
13
|
-
type: PropType<
|
|
14
|
+
type: PropType<ComData>;
|
|
14
15
|
default: () => {};
|
|
15
16
|
};
|
|
16
17
|
modelValue: {
|
|
@@ -21,6 +22,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
21
22
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
22
23
|
}>, {
|
|
23
24
|
modelValue: any;
|
|
24
|
-
data:
|
|
25
|
+
data: ComData;
|
|
25
26
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
26
27
|
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Slots } from "vue";
|
|
2
|
+
import type { ComData } from "./types";
|
|
3
|
+
import type { FormSchema, TableSchema } from "@/types";
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @param item 传入的组件属性
|
|
7
|
+
* @returns 默认添加 clearable 属性
|
|
8
|
+
*/
|
|
9
|
+
export declare const setComponentProps: (item: ComData, modelValue?: any) => Recordable;
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
* @param slots 插槽
|
|
13
|
+
* @param slotsProps 插槽属性
|
|
14
|
+
* @param field 字段名
|
|
15
|
+
*/
|
|
16
|
+
export declare const setItemComponentSlots: (slots: Slots, slotsProps: Recordable | undefined, field: string) => Recordable;
|
|
17
|
+
export declare function transFormSchemaToComData(schema: FormSchema): ComData;
|
|
18
|
+
export declare function transTableSchemaToComData(schema: TableSchema): ComData;
|
|
@@ -13,7 +13,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
13
13
|
type: PropType<FormRules>;
|
|
14
14
|
default: () => {};
|
|
15
15
|
};
|
|
16
|
-
}>, () =>
|
|
16
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "register"[], "register", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
17
|
schema: {
|
|
18
18
|
type: PropType<FormSchema[]>;
|
|
19
19
|
default: () => never[];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AxiosPromise } from "axios";
|
|
1
2
|
export type FormProps = {
|
|
2
3
|
schema?: FormSchema[];
|
|
3
4
|
isCol?: boolean;
|
|
@@ -6,3 +7,18 @@ export type FormProps = {
|
|
|
6
7
|
isCustom?: boolean;
|
|
7
8
|
labelWidth?: string | number;
|
|
8
9
|
} & Recordable;
|
|
10
|
+
export type FormSchema = {
|
|
11
|
+
field: string;
|
|
12
|
+
label?: string;
|
|
13
|
+
labelMessage?: string;
|
|
14
|
+
colProps?: ColProps;
|
|
15
|
+
componentProps?: {
|
|
16
|
+
slots?: Recordable;
|
|
17
|
+
} & ComponentProps;
|
|
18
|
+
slots?: Recordable;
|
|
19
|
+
formItemProps?: FormItemProps;
|
|
20
|
+
component?: ComponentName;
|
|
21
|
+
value?: FormValueType;
|
|
22
|
+
hidden?: boolean;
|
|
23
|
+
api?: <T = any>() => AxiosPromise<T>;
|
|
24
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { PropType } from "vue";
|
|
2
|
+
import type { TableSchema } from "./types.ts";
|
|
3
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
data: {
|
|
5
|
+
type: PropType<Recordable[]>;
|
|
6
|
+
default: () => never[];
|
|
7
|
+
};
|
|
8
|
+
schema: {
|
|
9
|
+
type: PropType<TableSchema[]>;
|
|
10
|
+
default: () => never[];
|
|
11
|
+
};
|
|
12
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
13
|
+
data: {
|
|
14
|
+
type: PropType<Recordable[]>;
|
|
15
|
+
default: () => never[];
|
|
16
|
+
};
|
|
17
|
+
schema: {
|
|
18
|
+
type: PropType<TableSchema[]>;
|
|
19
|
+
default: () => never[];
|
|
20
|
+
};
|
|
21
|
+
}>> & Readonly<{}>, {
|
|
22
|
+
data: Recordable<any, string>[];
|
|
23
|
+
schema: TableSchema[];
|
|
24
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
25
|
+
export default _default;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
export type FormSchema = {
|
|
1
|
+
export type TableSchema = {
|
|
3
2
|
field: string;
|
|
4
3
|
label?: string;
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
type?: string;
|
|
5
|
+
slots?: Recordable;
|
|
6
|
+
width?: string | number;
|
|
7
|
+
minWidth?: string | number;
|
|
7
8
|
componentProps?: {
|
|
8
9
|
slots?: Recordable;
|
|
9
10
|
} & ComponentProps;
|
|
10
|
-
formItemProps?: FormItemProps;
|
|
11
11
|
component?: ComponentName;
|
|
12
12
|
value?: FormValueType;
|
|
13
13
|
hidden?: boolean;
|
|
14
|
-
|
|
14
|
+
align?: "left" | "center" | "right";
|
|
15
15
|
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { LElForm } from "./components/LElForm";
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { LElCom } from "./components/LElCom";
|
|
3
|
+
import { LElTable } from "./components/LElTable";
|
|
4
|
+
export { LElForm, LElCom, LElTable };
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { FormProps } from "@/components/LElForm/src/types";
|
|
2
|
-
import { FormSchema } from "@/components/
|
|
3
|
-
|
|
2
|
+
import { FormSchema } from "@/components/LElForm/src/types";
|
|
3
|
+
import { TableSchema } from "@/components/LElTable/src/types";
|
|
4
|
+
import { ComData } from "@/components/LElCom/src/types";
|
|
5
|
+
export { FormProps, FormSchema, TableSchema, ComData };
|
package/package.json
CHANGED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Slots } from "vue";
|
|
2
|
-
/**
|
|
3
|
-
*
|
|
4
|
-
* @param item 传入的组件属性
|
|
5
|
-
* @returns 默认添加 clearable 属性
|
|
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;
|
|
File without changes
|