@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.
@@ -0,0 +1,2 @@
1
+ import LElCom from "./src/LElCom.vue";
2
+ export { LElCom };
@@ -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<FormSchema>;
5
+ type: PropType<ComData>;
5
6
  default: () => {};
6
7
  };
7
8
  modelValue: {
8
9
  type: PropType<any>;
9
10
  default: () => undefined;
10
11
  };
11
- }>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
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<FormSchema>;
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: FormSchema;
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;
@@ -0,0 +1,8 @@
1
+ export type ComData = {
2
+ field: string;
3
+ component?: ComponentName;
4
+ componentProps?: {
5
+ slots?: Recordable;
6
+ } & ComponentProps;
7
+ slots?: Recordable;
8
+ };
@@ -13,7 +13,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
13
13
  type: PropType<FormRules>;
14
14
  default: () => {};
15
15
  };
16
- }>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "register"[], "register", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
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,2 @@
1
+ import LElTable from "./src/LElTable.vue";
2
+ export { LElTable };
@@ -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;
@@ -0,0 +1,7 @@
1
+ import { TableSchema } from "./types";
2
+ /**
3
+ *
4
+ * @param item 传入的组件属性
5
+ * @returns TableColumn的属性
6
+ */
7
+ export declare const setTableColumnProps: (item: TableSchema) => Recordable;
@@ -1,15 +1,15 @@
1
- import { AxiosPromise } from "axios";
2
- export type FormSchema = {
1
+ export type TableSchema = {
3
2
  field: string;
4
3
  label?: string;
5
- labelMessage?: string;
6
- colProps?: ColProps;
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
- api?: <T = any>() => AxiosPromise<T>;
14
+ align?: "left" | "center" | "right";
15
15
  };
@@ -1,3 +1,4 @@
1
1
  import { LElForm } from "./components/LElForm";
2
- import { LElFormItemCom } from "./components/LElFormItemCom";
3
- export { LElForm, LElFormItemCom };
2
+ import { LElCom } from "./components/LElCom";
3
+ import { LElTable } from "./components/LElTable";
4
+ export { LElForm, LElCom, LElTable };
@@ -1,3 +1,5 @@
1
1
  import { FormProps } from "@/components/LElForm/src/types";
2
- import { FormSchema } from "@/components/LElFormItemCom/src/types";
3
- export { FormProps, FormSchema };
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@uf_lee/leeui",
3
- "version": "1.0.24",
3
+ "version": "1.0.26",
4
4
  "description": "自己的组件库",
5
5
  "main": "dist/leeui.umd.js",
6
6
  "module": "dist/leeui.es.js",
@@ -1,2 +0,0 @@
1
- import LElFormItemCom from "./src/LElFormItemCom.vue";
2
- export { LElFormItemCom };
@@ -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;