@uf_lee/leeui 1.0.17 → 1.0.18
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/leeui.es.js +4537 -4498
- package/dist/leeui.umd.js +11 -11
- package/dist/types/components/LElForm/index.d.ts +2 -0
- package/dist/types/components/{LForm/src/LForm.vue.d.ts → LElForm/src/LElForm.vue.d.ts} +9 -2
- package/dist/types/components/LElForm/src/helper.d.ts +15 -0
- package/dist/types/components/LElFormItemCom/index.d.ts +2 -0
- package/dist/types/components/LElFormItemCom/src/LElFormItemCom.vue.d.ts +26 -0
- package/dist/types/components/LElFormItemCom/src/helper.d.ts +6 -0
- package/dist/types/components/LElFormItemCom/src/types.d.ts +15 -0
- package/dist/types/index.d.ts +3 -3
- package/dist/types/types/index.d.ts +3 -0
- package/package.json +5 -2
- package/dist/types/components/LForm/index.d.ts +0 -2
- package/dist/types/components/Test.vue.d.ts +0 -2
- /package/dist/types/components/{LForm → LElForm}/src/types.d.ts +0 -0
- /package/dist/types/components/{LForm → LElFormItemCom}/src/componentMap.d.ts +0 -0
|
@@ -1,17 +1,24 @@
|
|
|
1
1
|
import { PropType } from "vue";
|
|
2
2
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
-
msg: StringConstructor;
|
|
4
3
|
schema: {
|
|
5
4
|
type: PropType<FormSchema[]>;
|
|
6
5
|
default: () => never[];
|
|
7
6
|
};
|
|
7
|
+
model: {
|
|
8
|
+
type: PropType<Recordable>;
|
|
9
|
+
default: () => never[];
|
|
10
|
+
};
|
|
8
11
|
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9
|
-
msg: StringConstructor;
|
|
10
12
|
schema: {
|
|
11
13
|
type: PropType<FormSchema[]>;
|
|
12
14
|
default: () => never[];
|
|
13
15
|
};
|
|
16
|
+
model: {
|
|
17
|
+
type: PropType<Recordable>;
|
|
18
|
+
default: () => never[];
|
|
19
|
+
};
|
|
14
20
|
}>> & Readonly<{}>, {
|
|
15
21
|
schema: FormSchema[];
|
|
22
|
+
model: Recordable<any, string>;
|
|
16
23
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
17
24
|
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @param col 内置栅格
|
|
4
|
+
* @returns 返回栅格属性
|
|
5
|
+
* @description 合并传入进来的栅格属性
|
|
6
|
+
*/
|
|
7
|
+
export declare const setGridProp: (col?: ColProps) => ColProps;
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @param schema Form表单结构化数组
|
|
11
|
+
* @param formModel FormMoel
|
|
12
|
+
* @returns FormMoel
|
|
13
|
+
* @description 生成对应的formModel
|
|
14
|
+
*/
|
|
15
|
+
export declare const initModel: (schema: FormSchema[], formModel: Recordable) => Recordable<any, string>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { PropType } from "vue";
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
+
data: {
|
|
4
|
+
type: PropType<FormSchema>;
|
|
5
|
+
default: () => {};
|
|
6
|
+
};
|
|
7
|
+
modelValue: {
|
|
8
|
+
type: PropType<any>;
|
|
9
|
+
default: () => undefined;
|
|
10
|
+
};
|
|
11
|
+
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
12
|
+
data: {
|
|
13
|
+
type: PropType<FormSchema>;
|
|
14
|
+
default: () => {};
|
|
15
|
+
};
|
|
16
|
+
modelValue: {
|
|
17
|
+
type: PropType<any>;
|
|
18
|
+
default: () => undefined;
|
|
19
|
+
};
|
|
20
|
+
}>> & Readonly<{
|
|
21
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
22
|
+
}>, {
|
|
23
|
+
modelValue: any;
|
|
24
|
+
data: FormSchema;
|
|
25
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
26
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AxiosPromise } from "axios";
|
|
2
|
+
export type FormSchema = {
|
|
3
|
+
field: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
labelMessage?: string;
|
|
6
|
+
colProps?: ColProps;
|
|
7
|
+
componentProps?: {
|
|
8
|
+
slots?: Recordable;
|
|
9
|
+
} & ComponentProps;
|
|
10
|
+
formItemProps?: FormItemProps;
|
|
11
|
+
component?: ComponentName;
|
|
12
|
+
value?: FormValueType;
|
|
13
|
+
hidden?: boolean;
|
|
14
|
+
api?: <T = any>() => AxiosPromise<T>;
|
|
15
|
+
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
1
|
+
import { LElForm } from "./components/LElForm";
|
|
2
|
+
import { LElFormItemCom } from "./components/LElFormItemCom";
|
|
3
|
+
export { LElForm, LElFormItemCom };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uf_lee/leeui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.18",
|
|
4
4
|
"description": "自己的组件库",
|
|
5
5
|
"main": "dist/leeui.umd.js",
|
|
6
6
|
"module": "dist/leeui.es.js",
|
|
@@ -22,16 +22,19 @@
|
|
|
22
22
|
"fabu": "npm run build && npm version patch && npm publish"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
+
"@types/axios": "^0.14.4",
|
|
26
|
+
"@types/node": "^22.13.13",
|
|
25
27
|
"@vitejs/plugin-vue": "^5.2.3",
|
|
26
28
|
"@vitejs/plugin-vue-jsx": "^4.1.2",
|
|
27
29
|
"@vue/tsconfig": "^0.7.0",
|
|
30
|
+
"axios": "^1.8.4",
|
|
28
31
|
"element-plus": "^2.9.6",
|
|
29
32
|
"typescript": "^5.8.2",
|
|
30
33
|
"vite": "^6.2.2",
|
|
31
34
|
"vue-tsc": "^2.2.8"
|
|
32
35
|
},
|
|
33
36
|
"dependencies": {
|
|
34
|
-
"vue": "
|
|
37
|
+
"vue": ">=3.0.0"
|
|
35
38
|
},
|
|
36
39
|
"peerDependencies": {
|
|
37
40
|
"vue": ">=3.0.0"
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
-
export default _default;
|
|
File without changes
|
|
File without changes
|