@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.
@@ -0,0 +1,2 @@
1
+ import LElForm from "./src/LElForm.vue";
2
+ export { LElForm };
@@ -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,2 @@
1
+ import LElFormItemCom from "./src/LElFormItemCom.vue";
2
+ export { LElFormItemCom };
@@ -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,6 @@
1
+ /**
2
+ *
3
+ * @param item 传入的组件属性
4
+ * @returns 默认添加 clearable 属性
5
+ */
6
+ export declare const setComponentProps: (item: FormSchema) => Recordable;
@@ -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
+ };
@@ -1,3 +1,3 @@
1
- import Test from "./components/Test.vue";
2
- import { LForm } from "./components/LForm";
3
- export { Test, LForm };
1
+ import { LElForm } from "./components/LElForm";
2
+ import { LElFormItemCom } from "./components/LElFormItemCom";
3
+ export { LElForm, LElFormItemCom };
@@ -0,0 +1,3 @@
1
+ import { FormProps } from "@/components/LElForm/src/types";
2
+ import { FormSchema } from "@/components/LElFormItemCom/src/types";
3
+ export { FormProps, FormSchema };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uf_lee/leeui",
3
- "version": "1.0.17",
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": "^3.5.13"
37
+ "vue": ">=3.0.0"
35
38
  },
36
39
  "peerDependencies": {
37
40
  "vue": ">=3.0.0"
@@ -1,2 +0,0 @@
1
- import LForm from "./src/LForm.vue";
2
- export { LForm };
@@ -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;