@lingshugroup/web-plus 1.5.1 → 1.6.0
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/lib/downloadFile/index.cjs +1 -0
- package/lib/downloadFile/index.js +12 -0
- package/lib/index/index.cjs +1 -1
- package/lib/index/index.js +20 -18
- package/lib/index/index.js.br +0 -0
- package/lib/index/index.js.gz +0 -0
- package/lib/index.css +1 -1
- package/lib/index.css.br +0 -0
- package/lib/index.css.gz +0 -0
- package/lib/packages/ls-components/components/_utils/utils/index.cjs +1 -1
- package/lib/packages/ls-components/components/_utils/utils/index.js +117 -64
- package/lib/packages/ls-components/components/_utils/utils/index.js.br +0 -0
- package/lib/packages/ls-components/components/_utils/utils/index.js.gz +0 -0
- package/lib/packages/ls-components/components/descriptions/Index.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/descriptions/Index.vue/index.js +1 -1
- package/lib/packages/ls-components/components/downloadFile/Index.vue/index.cjs +1 -0
- package/lib/packages/ls-components/components/downloadFile/Index.vue/index.js +94 -0
- package/lib/packages/ls-components/components/downloadFile/Index.vue/index.js.br +0 -0
- package/lib/packages/ls-components/components/downloadFile/Index.vue/index.js.gz +0 -0
- package/lib/packages/ls-components/components/downloadFile/Index.vue/index2.cjs +1 -0
- package/lib/packages/ls-components/components/downloadFile/Index.vue/index2.js +4 -0
- package/lib/packages/ls-components/components/downloadFile/types/index.cjs +1 -0
- package/lib/packages/ls-components/components/downloadFile/types/index.js +46 -0
- package/lib/packages/ls-components/components/form/Form.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/form/Form.vue/index.js +2 -2
- package/lib/packages/ls-components/components/form/Form.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/form/Form.vue/index2.js +106 -108
- package/lib/packages/ls-components/components/form/Form.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/form/Form.vue/index2.js.gz +0 -0
- package/lib/packages/ls-components/components/form/FormItem.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/form/FormItem.vue/index.js +2 -2
- package/lib/packages/ls-components/components/form/FormItem.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/form/FormItem.vue/index2.js +282 -273
- package/lib/packages/ls-components/components/form/FormItem.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/form/FormItem.vue/index2.js.gz +0 -0
- package/lib/packages/ls-components/components/index/index.cjs +1 -1
- package/lib/packages/ls-components/components/index/index.js +35 -33
- package/lib/packages/ls-components/components/index/index.js.br +0 -0
- package/lib/packages/ls-components/components/index/index.js.gz +0 -0
- package/lib/types/components/_utils/index.d.ts +2 -1
- package/lib/types/components/_utils/utils.d.ts +17 -0
- package/lib/types/components/downloadFile/Index.vue.d.ts +34 -0
- package/lib/types/components/downloadFile/index.d.ts +78 -0
- package/lib/types/components/downloadFile/types.d.ts +12 -0
- package/lib/types/components/form/Form.vue.d.ts +4 -2
- package/lib/types/components/form/index.d.ts +7 -2
- package/lib/types/components/list/List.vue.d.ts +7 -3
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.js +2 -0
- package/package.json +1 -1
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var l=Object.defineProperty;var o=(t,r)=>l(t,"name",{value:r,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("@element-plus/icons-vue"),i=require("../../../../button/index.cjs"),a=require("../../../../descriptions/index.cjs"),c=require("../../../../form/index.cjs"),d=require("../../../../table/index.cjs"),f=require("../../../../upload/index.cjs"),S=require("../../../../preview/index.cjs"),L=require("../../../../menu/index.cjs"),q=require("../../../../icon/index.cjs"),m=require("../../../../confirm/index.cjs"),p=require("../../../../chart/index.cjs"),b=require("../../../../breadcrumb/index.cjs"),v=require("../../../../bellMessage/index.cjs"),g=require("../../../../live/index.cjs"),w=require("../../../../tree/index.cjs"),P=require("../../../../print/index.cjs"),y=require("../../../../containerBox/index.cjs"),B=require("../../../../backTop/index.cjs"),_=require("../../../../map/index.cjs"),O=require("../../../../editor/index.cjs"),j=require("../../../../dialog/index.cjs"),x=require("../../../../layout/index.cjs"),M=require("../../../../list/index.cjs"),k=require("../../../../preview_image/index.cjs"),D=require("../../../../preview_docx/index.cjs"),F=require("../../../../preview_pdf/index.cjs"),I=require("../../../../preview_xlsx/index.cjs"),T=require("../../../../downloadFile/index.cjs");function C(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,n.get?n:{enumerable:!0,get:o(()=>t[e],"get")})}}return r.default=t,Object.freeze(r)}o(C,"_interopNamespaceDefault");const E=C(s),u={LSButtonGroup:i.LSButtonGroup,LSButton:i.LSButton,LSDescriptions:a.default,LSUpload:f.default,LSPreview:S.default,LSForm:c.LSForm,LSFormItem:c.LSFormItem,LSTable:d.default,LSMenu:L.default,LSIcon:q.default,LSConfirm:m.default,LSChart:p.default,LSBreadcrumb:b.default,LSBellMessage:v.default,LSLive:g.default,LSTree:w.default,LSPrint:P.default,LSContainerBox:y.default,LSBackTop:B.default,LSMap:_.default,LSEditor:O.default,LSDialog:j.default,LSLayout:x.default,LSList:M.default,LSPreviewImage:k.default,LSPreviewDocx:D.default,LSPreviewPdf:F.default,LSPreviewXlsx:I.default,LSDownloadFile:T.default},h=o(t=>{for(const[r,e]of Object.entries(E))t.component(r,e);for(const r of Object.keys(u)){const e=u[r];t.component(e==null?void 0:e.name,e)}},"install"),G={...u,install:h};exports.default=G;
|
|
@@ -9,24 +9,25 @@ import a from "../../../../upload/index.js";
|
|
|
9
9
|
import l from "../../../../preview/index.js";
|
|
10
10
|
import u from "../../../../menu/index.js";
|
|
11
11
|
import P from "../../../../icon/index.js";
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
12
|
+
import d from "../../../../confirm/index.js";
|
|
13
|
+
import v from "../../../../chart/index.js";
|
|
14
|
+
import w from "../../../../breadcrumb/index.js";
|
|
15
|
+
import B from "../../../../bellMessage/index.js";
|
|
16
|
+
import b from "../../../../live/index.js";
|
|
17
17
|
import k from "../../../../tree/index.js";
|
|
18
18
|
import x from "../../../../print/index.js";
|
|
19
19
|
import y from "../../../../containerBox/index.js";
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
20
|
+
import D from "../../../../backTop/index.js";
|
|
21
|
+
import I from "../../../../map/index.js";
|
|
22
|
+
import g from "../../../../editor/index.js";
|
|
23
|
+
import C from "../../../../dialog/index.js";
|
|
24
|
+
import F from "../../../../layout/index.js";
|
|
25
|
+
import M from "../../../../list/index.js";
|
|
26
|
+
import T from "../../../../preview_image/index.js";
|
|
27
|
+
import j from "../../../../preview_docx/index.js";
|
|
28
|
+
import E from "../../../../preview_pdf/index.js";
|
|
29
29
|
import O from "../../../../preview_xlsx/index.js";
|
|
30
|
+
import h from "../../../../downloadFile/index.js";
|
|
30
31
|
const t = {
|
|
31
32
|
LSButtonGroup: p,
|
|
32
33
|
LSButton: L,
|
|
@@ -38,35 +39,36 @@ const t = {
|
|
|
38
39
|
LSTable: c,
|
|
39
40
|
LSMenu: u,
|
|
40
41
|
LSIcon: P,
|
|
41
|
-
LSConfirm:
|
|
42
|
-
LSChart:
|
|
43
|
-
LSBreadcrumb:
|
|
44
|
-
LSBellMessage:
|
|
45
|
-
LSLive:
|
|
42
|
+
LSConfirm: d,
|
|
43
|
+
LSChart: v,
|
|
44
|
+
LSBreadcrumb: w,
|
|
45
|
+
LSBellMessage: B,
|
|
46
|
+
LSLive: b,
|
|
46
47
|
LSTree: k,
|
|
47
48
|
LSPrint: x,
|
|
48
49
|
LSContainerBox: y,
|
|
49
|
-
LSBackTop:
|
|
50
|
-
LSMap:
|
|
51
|
-
LSEditor:
|
|
52
|
-
LSDialog:
|
|
53
|
-
LSLayout:
|
|
54
|
-
LSList:
|
|
55
|
-
LSPreviewImage:
|
|
56
|
-
LSPreviewDocx:
|
|
57
|
-
LSPreviewPdf:
|
|
58
|
-
LSPreviewXlsx: O
|
|
59
|
-
|
|
50
|
+
LSBackTop: D,
|
|
51
|
+
LSMap: I,
|
|
52
|
+
LSEditor: g,
|
|
53
|
+
LSDialog: C,
|
|
54
|
+
LSLayout: F,
|
|
55
|
+
LSList: M,
|
|
56
|
+
LSPreviewImage: T,
|
|
57
|
+
LSPreviewDocx: j,
|
|
58
|
+
LSPreviewPdf: E,
|
|
59
|
+
LSPreviewXlsx: O,
|
|
60
|
+
LSDownloadFile: h
|
|
61
|
+
}, G = /* @__PURE__ */ i((m) => {
|
|
60
62
|
for (const [r, o] of Object.entries(f))
|
|
61
63
|
m.component(r, o);
|
|
62
64
|
for (const r of Object.keys(t)) {
|
|
63
65
|
const o = t[r];
|
|
64
66
|
m.component(o == null ? void 0 : o.name, o);
|
|
65
67
|
}
|
|
66
|
-
}, "install"),
|
|
68
|
+
}, "install"), so = {
|
|
67
69
|
...t,
|
|
68
|
-
install:
|
|
70
|
+
install: G
|
|
69
71
|
};
|
|
70
72
|
export {
|
|
71
|
-
|
|
73
|
+
so as default
|
|
72
74
|
};
|
|
Binary file
|
|
Binary file
|
|
@@ -42,3 +42,20 @@ export declare function formatChartAxis(max: any, min: any, fixed?: number): {
|
|
|
42
42
|
aInterval: number;
|
|
43
43
|
};
|
|
44
44
|
export declare function isValidJSON(str: any): boolean;
|
|
45
|
+
export declare function mergeBuffer(bufferArray: any[]): Uint8Array;
|
|
46
|
+
export declare function fileToBuffer(base64: any): ArrayBufferLike;
|
|
47
|
+
declare const _default: {
|
|
48
|
+
isEmpty: typeof isEmpty;
|
|
49
|
+
exportFile: typeof exportFile;
|
|
50
|
+
getExtension: typeof getExtension;
|
|
51
|
+
loadJs: (list?: Array<any>) => Promise<any[]>;
|
|
52
|
+
removeJs: (list?: Array<any>) => void;
|
|
53
|
+
loadCss: (list?: Array<any>) => Promise<any[]>;
|
|
54
|
+
removeCss: (list?: Array<any>) => void;
|
|
55
|
+
getRandomHexColor: typeof getRandomHexColor;
|
|
56
|
+
numberFixed: typeof numberFixed;
|
|
57
|
+
isValidJSON: typeof isValidJSON;
|
|
58
|
+
mergeBuffer: typeof mergeBuffer;
|
|
59
|
+
fileToBuffer: typeof fileToBuffer;
|
|
60
|
+
};
|
|
61
|
+
export default _default;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { EpPropFinalized, EpPropMergeType } from '../_utils/types';
|
|
3
|
+
declare function start(): void;
|
|
4
|
+
declare const _default: DefineComponent<globalThis.ExtractPropTypes<{
|
|
5
|
+
recordId: EpPropFinalized<(NumberConstructor | StringConstructor)[], unknown, unknown, string, boolean>;
|
|
6
|
+
chunkTotal: EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
|
|
7
|
+
chunkDataRequest: EpPropFinalized<FunctionConstructor, unknown, unknown, null, boolean>;
|
|
8
|
+
chunkDataRequestParams: EpPropFinalized<ObjectConstructor, unknown, unknown, null, boolean>;
|
|
9
|
+
chunkDataRequestConfig: EpPropFinalized<ObjectConstructor, unknown, unknown, null, boolean>;
|
|
10
|
+
initRequstNum: EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
|
|
11
|
+
maxErrorNum: EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
|
|
12
|
+
cancelUploadInLimit: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
13
|
+
}>, {
|
|
14
|
+
start: typeof start;
|
|
15
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
16
|
+
recordId: EpPropFinalized<(NumberConstructor | StringConstructor)[], unknown, unknown, string, boolean>;
|
|
17
|
+
chunkTotal: EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
|
|
18
|
+
chunkDataRequest: EpPropFinalized<FunctionConstructor, unknown, unknown, null, boolean>;
|
|
19
|
+
chunkDataRequestParams: EpPropFinalized<ObjectConstructor, unknown, unknown, null, boolean>;
|
|
20
|
+
chunkDataRequestConfig: EpPropFinalized<ObjectConstructor, unknown, unknown, null, boolean>;
|
|
21
|
+
initRequstNum: EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
|
|
22
|
+
maxErrorNum: EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
|
|
23
|
+
cancelUploadInLimit: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
24
|
+
}>> & Readonly<{}>, {
|
|
25
|
+
recordId: EpPropMergeType<(NumberConstructor | StringConstructor)[], unknown, unknown>;
|
|
26
|
+
chunkTotal: number;
|
|
27
|
+
chunkDataRequest: Function;
|
|
28
|
+
chunkDataRequestParams: Record<string, any>;
|
|
29
|
+
chunkDataRequestConfig: Record<string, any>;
|
|
30
|
+
initRequstNum: number;
|
|
31
|
+
maxErrorNum: number;
|
|
32
|
+
cancelUploadInLimit: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
33
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
34
|
+
export default _default;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { App, CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps } from 'vue';
|
|
2
|
+
import { LSOptions, EpPropFinalized, EpPropMergeType } from '../_utils/types';
|
|
3
|
+
declare const LSDownloadFile: {
|
|
4
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<globalThis.ExtractPropTypes<{
|
|
5
|
+
recordId: EpPropFinalized<(NumberConstructor | StringConstructor)[], unknown, unknown, string, boolean>;
|
|
6
|
+
chunkTotal: EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
|
|
7
|
+
chunkDataRequest: EpPropFinalized<FunctionConstructor, unknown, unknown, null, boolean>;
|
|
8
|
+
chunkDataRequestParams: EpPropFinalized<ObjectConstructor, unknown, unknown, null, boolean>;
|
|
9
|
+
chunkDataRequestConfig: EpPropFinalized<ObjectConstructor, unknown, unknown, null, boolean>;
|
|
10
|
+
initRequstNum: EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
|
|
11
|
+
maxErrorNum: EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
|
|
12
|
+
cancelUploadInLimit: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
13
|
+
}>> & Readonly<{}>, {
|
|
14
|
+
start: () => void;
|
|
15
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
16
|
+
recordId: EpPropMergeType<(NumberConstructor | StringConstructor)[], unknown, unknown>;
|
|
17
|
+
chunkTotal: number;
|
|
18
|
+
chunkDataRequest: Function;
|
|
19
|
+
chunkDataRequestParams: Record<string, any>;
|
|
20
|
+
chunkDataRequestConfig: Record<string, any>;
|
|
21
|
+
initRequstNum: number;
|
|
22
|
+
maxErrorNum: number;
|
|
23
|
+
cancelUploadInLimit: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
24
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
|
|
25
|
+
P: {};
|
|
26
|
+
B: {};
|
|
27
|
+
D: {};
|
|
28
|
+
C: {};
|
|
29
|
+
M: {};
|
|
30
|
+
Defaults: {};
|
|
31
|
+
}, Readonly<globalThis.ExtractPropTypes<{
|
|
32
|
+
recordId: EpPropFinalized<(NumberConstructor | StringConstructor)[], unknown, unknown, string, boolean>;
|
|
33
|
+
chunkTotal: EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
|
|
34
|
+
chunkDataRequest: EpPropFinalized<FunctionConstructor, unknown, unknown, null, boolean>;
|
|
35
|
+
chunkDataRequestParams: EpPropFinalized<ObjectConstructor, unknown, unknown, null, boolean>;
|
|
36
|
+
chunkDataRequestConfig: EpPropFinalized<ObjectConstructor, unknown, unknown, null, boolean>;
|
|
37
|
+
initRequstNum: EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
|
|
38
|
+
maxErrorNum: EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
|
|
39
|
+
cancelUploadInLimit: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
40
|
+
}>> & Readonly<{}>, {
|
|
41
|
+
start: () => void;
|
|
42
|
+
}, {}, {}, {}, {
|
|
43
|
+
recordId: EpPropMergeType<(NumberConstructor | StringConstructor)[], unknown, unknown>;
|
|
44
|
+
chunkTotal: number;
|
|
45
|
+
chunkDataRequest: Function;
|
|
46
|
+
chunkDataRequestParams: Record<string, any>;
|
|
47
|
+
chunkDataRequestConfig: Record<string, any>;
|
|
48
|
+
initRequstNum: number;
|
|
49
|
+
maxErrorNum: number;
|
|
50
|
+
cancelUploadInLimit: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
51
|
+
}>;
|
|
52
|
+
__isFragment?: never;
|
|
53
|
+
__isTeleport?: never;
|
|
54
|
+
__isSuspense?: never;
|
|
55
|
+
} & ComponentOptionsBase<Readonly<globalThis.ExtractPropTypes<{
|
|
56
|
+
recordId: EpPropFinalized<(NumberConstructor | StringConstructor)[], unknown, unknown, string, boolean>;
|
|
57
|
+
chunkTotal: EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
|
|
58
|
+
chunkDataRequest: EpPropFinalized<FunctionConstructor, unknown, unknown, null, boolean>;
|
|
59
|
+
chunkDataRequestParams: EpPropFinalized<ObjectConstructor, unknown, unknown, null, boolean>;
|
|
60
|
+
chunkDataRequestConfig: EpPropFinalized<ObjectConstructor, unknown, unknown, null, boolean>;
|
|
61
|
+
initRequstNum: EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
|
|
62
|
+
maxErrorNum: EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
|
|
63
|
+
cancelUploadInLimit: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
64
|
+
}>> & Readonly<{}>, {
|
|
65
|
+
start: () => void;
|
|
66
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
67
|
+
recordId: EpPropMergeType<(NumberConstructor | StringConstructor)[], unknown, unknown>;
|
|
68
|
+
chunkTotal: number;
|
|
69
|
+
chunkDataRequest: Function;
|
|
70
|
+
chunkDataRequestParams: Record<string, any>;
|
|
71
|
+
chunkDataRequestConfig: Record<string, any>;
|
|
72
|
+
initRequstNum: number;
|
|
73
|
+
maxErrorNum: number;
|
|
74
|
+
cancelUploadInLimit: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
75
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & {
|
|
76
|
+
install: (app: App, options?: LSOptions) => void;
|
|
77
|
+
};
|
|
78
|
+
export default LSDownloadFile;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EpPropFinalized } from '../_utils/types';
|
|
2
|
+
export declare const lsDownloadProp: {
|
|
3
|
+
recordId: EpPropFinalized<(NumberConstructor | StringConstructor)[], unknown, unknown, string, boolean>;
|
|
4
|
+
chunkTotal: EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
|
|
5
|
+
chunkDataRequest: EpPropFinalized<FunctionConstructor, unknown, unknown, null, boolean>;
|
|
6
|
+
chunkDataRequestParams: EpPropFinalized<ObjectConstructor, unknown, unknown, null, boolean>;
|
|
7
|
+
chunkDataRequestConfig: EpPropFinalized<ObjectConstructor, unknown, unknown, null, boolean>;
|
|
8
|
+
initRequstNum: EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
|
|
9
|
+
maxErrorNum: EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
|
|
10
|
+
cancelUploadInLimit: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
11
|
+
};
|
|
12
|
+
export declare const emitNames: string[];
|
|
@@ -13,7 +13,7 @@ declare function __VLS_template(): {
|
|
|
13
13
|
slotRow: any;
|
|
14
14
|
value: any;
|
|
15
15
|
updateFormData: typeof updateFormData;
|
|
16
|
-
}) => any>> & Partial<Record<
|
|
16
|
+
}) => any>> & Partial<Record<number, (_: any) => any>> & Partial<Record<any, (_: {
|
|
17
17
|
slotRow: any;
|
|
18
18
|
value: any;
|
|
19
19
|
updateFormData: typeof updateFormData;
|
|
@@ -21,7 +21,7 @@ declare function __VLS_template(): {
|
|
|
21
21
|
slotRow: any;
|
|
22
22
|
value: any;
|
|
23
23
|
updateFormData: typeof updateFormData;
|
|
24
|
-
}) => any>> & Partial<Record<
|
|
24
|
+
}) => any>> & Partial<Record<number, (_: any) => any>> & Partial<Record<any, (_: {
|
|
25
25
|
slotRow: any;
|
|
26
26
|
value: any;
|
|
27
27
|
updateFormData: typeof updateFormData;
|
|
@@ -614,6 +614,7 @@ declare const __VLS_component: DefineComponent<globalThis.ExtractPropTypes<{
|
|
|
614
614
|
reset: (form: any) => any;
|
|
615
615
|
submit: (form: any) => any;
|
|
616
616
|
"update:form-data": (formData: any) => any;
|
|
617
|
+
changeFormData: (value: any, prop: any, form: any) => any;
|
|
617
618
|
}, string, PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
618
619
|
readonly formData: never;
|
|
619
620
|
readonly formItems: never;
|
|
@@ -639,6 +640,7 @@ declare const __VLS_component: DefineComponent<globalThis.ExtractPropTypes<{
|
|
|
639
640
|
onReset?: ((form: any) => any) | undefined;
|
|
640
641
|
onSubmit?: ((form: any) => any) | undefined;
|
|
641
642
|
"onUpdate:form-data"?: ((formData: any) => any) | undefined;
|
|
643
|
+
onChangeFormData?: ((value: any, prop: any, form: any) => any) | undefined;
|
|
642
644
|
}>, {
|
|
643
645
|
readonly loading: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
644
646
|
readonly disabled: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -29,6 +29,7 @@ declare const LSForm: {
|
|
|
29
29
|
onReset?: ((form: any) => any) | undefined;
|
|
30
30
|
onSubmit?: ((form: any) => any) | undefined;
|
|
31
31
|
"onUpdate:form-data"?: ((formData: any) => any) | undefined;
|
|
32
|
+
onChangeFormData?: ((value: any, prop: any, form: any) => any) | undefined;
|
|
32
33
|
}>, {
|
|
33
34
|
FormRef: globalThis.Ref<({
|
|
34
35
|
$: ComponentInternalInstance;
|
|
@@ -405,6 +406,7 @@ declare const LSForm: {
|
|
|
405
406
|
reset: (form: any) => any;
|
|
406
407
|
submit: (form: any) => any;
|
|
407
408
|
"update:form-data": (formData: any) => any;
|
|
409
|
+
changeFormData: (value: any, prop: any, form: any) => any;
|
|
408
410
|
}, PublicProps, {
|
|
409
411
|
readonly loading: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
410
412
|
readonly disabled: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -455,6 +457,7 @@ declare const LSForm: {
|
|
|
455
457
|
onReset?: ((form: any) => any) | undefined;
|
|
456
458
|
onSubmit?: ((form: any) => any) | undefined;
|
|
457
459
|
"onUpdate:form-data"?: ((formData: any) => any) | undefined;
|
|
460
|
+
onChangeFormData?: ((value: any, prop: any, form: any) => any) | undefined;
|
|
458
461
|
}>, {
|
|
459
462
|
FormRef: globalThis.Ref<({
|
|
460
463
|
$: ComponentInternalInstance;
|
|
@@ -873,6 +876,7 @@ declare const LSForm: {
|
|
|
873
876
|
onReset?: ((form: any) => any) | undefined;
|
|
874
877
|
onSubmit?: ((form: any) => any) | undefined;
|
|
875
878
|
"onUpdate:form-data"?: ((formData: any) => any) | undefined;
|
|
879
|
+
onChangeFormData?: ((value: any, prop: any, form: any) => any) | undefined;
|
|
876
880
|
}>, {
|
|
877
881
|
FormRef: globalThis.Ref<({
|
|
878
882
|
$: ComponentInternalInstance;
|
|
@@ -1249,6 +1253,7 @@ declare const LSForm: {
|
|
|
1249
1253
|
reset: (form: any) => any;
|
|
1250
1254
|
submit: (form: any) => any;
|
|
1251
1255
|
"update:form-data": (formData: any) => any;
|
|
1256
|
+
changeFormData: (value: any, prop: any, form: any) => any;
|
|
1252
1257
|
}, string, {
|
|
1253
1258
|
readonly loading: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
1254
1259
|
readonly disabled: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -1272,7 +1277,7 @@ declare const LSForm: {
|
|
|
1272
1277
|
slotRow: any;
|
|
1273
1278
|
value: any;
|
|
1274
1279
|
updateFormData: (key: string | number | string[], value: any) => void;
|
|
1275
|
-
}) => any>> & Partial<Record<
|
|
1280
|
+
}) => any>> & Partial<Record<number, (_: any) => any>> & Partial<Record<any, (_: {
|
|
1276
1281
|
slotRow: any;
|
|
1277
1282
|
value: any;
|
|
1278
1283
|
updateFormData: (key: string | number | string[], value: any) => void;
|
|
@@ -1280,7 +1285,7 @@ declare const LSForm: {
|
|
|
1280
1285
|
slotRow: any;
|
|
1281
1286
|
value: any;
|
|
1282
1287
|
updateFormData: (key: string | number | string[], value: any) => void;
|
|
1283
|
-
}) => any>> & Partial<Record<
|
|
1288
|
+
}) => any>> & Partial<Record<number, (_: any) => any>> & Partial<Record<any, (_: {
|
|
1284
1289
|
slotRow: any;
|
|
1285
1290
|
value: any;
|
|
1286
1291
|
updateFormData: (key: string | number | string[], value: any) => void;
|
|
@@ -66,6 +66,7 @@ declare function __VLS_template(): {
|
|
|
66
66
|
readonly onReset?: ((form: any) => any) | undefined;
|
|
67
67
|
readonly onSubmit?: ((form: any) => any) | undefined;
|
|
68
68
|
readonly "onUpdate:form-data"?: ((formData: any) => any) | undefined;
|
|
69
|
+
readonly onChangeFormData?: ((value: any, prop: any, form: any) => any) | undefined;
|
|
69
70
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "loading" | "disabled" | "column" | "showBtnLoading" | "read" | "showButtons" | "buttonsClass" | "buttonsLeft" | "showReset" | "showSubmit" | "confirmText" | "resetText" | "confirmClassName" | "colon" | "labelEmpty" | "hasDefReadStyle" | "hideColumn">;
|
|
70
71
|
$attrs: {
|
|
71
72
|
[x: string]: unknown;
|
|
@@ -79,7 +80,7 @@ declare function __VLS_template(): {
|
|
|
79
80
|
$root: ComponentPublicInstance | null;
|
|
80
81
|
$parent: ComponentPublicInstance | null;
|
|
81
82
|
$host: Element | null;
|
|
82
|
-
$emit: ((event: "onChange", value: any, prop: string, index?: number | undefined) => void) & ((event: "reset", form: any) => void) & ((event: "submit", form: any) => void) & ((event: "update:form-data", formData: any) => void);
|
|
83
|
+
$emit: ((event: "onChange", value: any, prop: string, index?: number | undefined) => void) & ((event: "reset", form: any) => void) & ((event: "submit", form: any) => void) & ((event: "update:form-data", formData: any) => void) & ((event: "changeFormData", value: any, prop: any, form: any) => void);
|
|
83
84
|
$el: HTMLDivElement;
|
|
84
85
|
$options: ComponentOptionsBase<Readonly<globalThis.ExtractPropTypes<{
|
|
85
86
|
readonly formData: never;
|
|
@@ -106,6 +107,7 @@ declare function __VLS_template(): {
|
|
|
106
107
|
onReset?: ((form: any) => any) | undefined;
|
|
107
108
|
onSubmit?: ((form: any) => any) | undefined;
|
|
108
109
|
"onUpdate:form-data"?: ((formData: any) => any) | undefined;
|
|
110
|
+
onChangeFormData?: ((value: any, prop: any, form: any) => any) | undefined;
|
|
109
111
|
}>, {
|
|
110
112
|
FormRef: globalThis.Ref<({
|
|
111
113
|
$: ComponentInternalInstance;
|
|
@@ -482,6 +484,7 @@ declare function __VLS_template(): {
|
|
|
482
484
|
reset: (form: any) => any;
|
|
483
485
|
submit: (form: any) => any;
|
|
484
486
|
"update:form-data": (formData: any) => any;
|
|
487
|
+
changeFormData: (value: any, prop: any, form: any) => any;
|
|
485
488
|
}, string, {
|
|
486
489
|
readonly loading: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
487
490
|
readonly disabled: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -563,6 +566,7 @@ declare function __VLS_template(): {
|
|
|
563
566
|
onReset?: ((form: any) => any) | undefined;
|
|
564
567
|
onSubmit?: ((form: any) => any) | undefined;
|
|
565
568
|
"onUpdate:form-data"?: ((formData: any) => any) | undefined;
|
|
569
|
+
onChangeFormData?: ((value: any, prop: any, form: any) => any) | undefined;
|
|
566
570
|
}>, "validate" | "FormRef" | "submitForm" | "resetForm" | ("loading" | "disabled" | "column" | "showBtnLoading" | "read" | "showButtons" | "buttonsClass" | "buttonsLeft" | "showReset" | "showSubmit" | "confirmText" | "resetText" | "confirmClassName" | "colon" | "labelEmpty" | "hasDefReadStyle" | "hideColumn")> & ShallowUnwrapRef<{
|
|
567
571
|
FormRef: globalThis.Ref<({
|
|
568
572
|
$: ComponentInternalInstance;
|
|
@@ -939,7 +943,7 @@ declare function __VLS_template(): {
|
|
|
939
943
|
slotRow: any;
|
|
940
944
|
value: any;
|
|
941
945
|
updateFormData: (key: string | number | string[], value: any) => void;
|
|
942
|
-
}) => any>> & Partial<Record<
|
|
946
|
+
}) => any>> & Partial<Record<number, (_: any) => any>> & Partial<Record<any, (_: {
|
|
943
947
|
slotRow: any;
|
|
944
948
|
value: any;
|
|
945
949
|
updateFormData: (key: string | number | string[], value: any) => void;
|
|
@@ -947,7 +951,7 @@ declare function __VLS_template(): {
|
|
|
947
951
|
slotRow: any;
|
|
948
952
|
value: any;
|
|
949
953
|
updateFormData: (key: string | number | string[], value: any) => void;
|
|
950
|
-
}) => any>> & Partial<Record<
|
|
954
|
+
}) => any>> & Partial<Record<number, (_: any) => any>> & Partial<Record<any, (_: {
|
|
951
955
|
slotRow: any;
|
|
952
956
|
value: any;
|
|
953
957
|
updateFormData: (key: string | number | string[], value: any) => void;
|
package/lib/utils/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../packages/ls-components/components/_utils/validate/index.cjs"),t=require("../packages/ls-components/components/_utils/check/index.cjs");exports.lsValidate=e.default;exports.lsCheck=t.default;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../packages/ls-components/components/_utils/validate/index.cjs"),t=require("../packages/ls-components/components/_utils/check/index.cjs"),l=require("../packages/ls-components/components/_utils/utils/index.cjs");exports.lsValidate=e.default;exports.lsCheck=t.default;exports.lsUtil=l.default;
|
package/lib/utils/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { default as l } from "../packages/ls-components/components/_utils/validate/index.js";
|
|
2
2
|
import { default as f } from "../packages/ls-components/components/_utils/check/index.js";
|
|
3
|
+
import { default as r } from "../packages/ls-components/components/_utils/utils/index.js";
|
|
3
4
|
export {
|
|
4
5
|
f as lsCheck,
|
|
6
|
+
r as lsUtil,
|
|
5
7
|
l as lsValidate
|
|
6
8
|
};
|