@partex/one-core 2.0.98 → 2.0.100
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/components/create.d.ts +2 -1
- package/lib/components/form/index.vue.d.ts +7 -7
- package/lib/components/form/interface.d.ts +1 -1
- package/lib/components/store/common.d.ts +6 -1
- package/lib/one-core.cjs +17 -17
- package/lib/one-core.js +3046 -3049
- package/lib/one-core.umd.cjs +17 -17
- package/package.json +1 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import type { IPlatform } from '../store/common';
|
|
1
2
|
import { App } from 'vue';
|
|
2
3
|
type ComponentType = any;
|
|
3
4
|
export interface InstallOptions {
|
|
4
|
-
platform?: string;
|
|
5
|
+
platform?: string | IPlatform;
|
|
5
6
|
monitor?: false | string;
|
|
6
7
|
versionMonitor?: boolean;
|
|
7
8
|
enableRedirect?: boolean;
|
|
@@ -46,7 +46,7 @@ declare const _default: DefineComponent<{
|
|
|
46
46
|
minlength?: number | null | undefined;
|
|
47
47
|
maxlength?: number | null | undefined;
|
|
48
48
|
rows?: number | null | undefined;
|
|
49
|
-
label: string;
|
|
49
|
+
label: string | (() => string);
|
|
50
50
|
key: string;
|
|
51
51
|
show?: boolean | undefined;
|
|
52
52
|
placeholder?: string | undefined;
|
|
@@ -74,7 +74,7 @@ declare const _default: DefineComponent<{
|
|
|
74
74
|
max?: number | null | undefined;
|
|
75
75
|
step?: number | null | undefined;
|
|
76
76
|
precision?: number | null | undefined;
|
|
77
|
-
label: string;
|
|
77
|
+
label: string | (() => string);
|
|
78
78
|
key: string;
|
|
79
79
|
show?: boolean | undefined;
|
|
80
80
|
placeholder?: string | undefined;
|
|
@@ -107,7 +107,7 @@ declare const _default: DefineComponent<{
|
|
|
107
107
|
isMinuteDisabled?: ((minute: number, hour: number | null) => boolean) | undefined;
|
|
108
108
|
isSecondDisabled?: ((second: number, minute: number | null, hour: number | null) => boolean) | undefined;
|
|
109
109
|
} | undefined;
|
|
110
|
-
label: string;
|
|
110
|
+
label: string | (() => string);
|
|
111
111
|
key: string;
|
|
112
112
|
show?: boolean | undefined;
|
|
113
113
|
placeholder?: string | undefined;
|
|
@@ -147,7 +147,7 @@ declare const _default: DefineComponent<{
|
|
|
147
147
|
option: ObjectKey;
|
|
148
148
|
handleClose: () => void;
|
|
149
149
|
}) => VNodeChild) | undefined;
|
|
150
|
-
label: string;
|
|
150
|
+
label: string | (() => string);
|
|
151
151
|
key: string;
|
|
152
152
|
show?: boolean | undefined;
|
|
153
153
|
placeholder?: string | undefined;
|
|
@@ -171,7 +171,7 @@ declare const _default: DefineComponent<{
|
|
|
171
171
|
} | {
|
|
172
172
|
input: "time";
|
|
173
173
|
format?: string | undefined;
|
|
174
|
-
label: string;
|
|
174
|
+
label: string | (() => string);
|
|
175
175
|
key: string;
|
|
176
176
|
show?: boolean | undefined;
|
|
177
177
|
placeholder?: string | undefined;
|
|
@@ -196,7 +196,7 @@ declare const _default: DefineComponent<{
|
|
|
196
196
|
input: "upload";
|
|
197
197
|
accept?: string | undefined;
|
|
198
198
|
max?: number | null | undefined;
|
|
199
|
-
label: string;
|
|
199
|
+
label: string | (() => string);
|
|
200
200
|
key: string;
|
|
201
201
|
show?: boolean | undefined;
|
|
202
202
|
placeholder?: string | undefined;
|
|
@@ -219,7 +219,7 @@ declare const _default: DefineComponent<{
|
|
|
219
219
|
updateValue?: string | Fn<any, any> | undefined;
|
|
220
220
|
} | {
|
|
221
221
|
input: "switch";
|
|
222
|
-
label: string;
|
|
222
|
+
label: string | (() => string);
|
|
223
223
|
key: string;
|
|
224
224
|
show?: boolean | undefined;
|
|
225
225
|
placeholder?: string | undefined;
|
|
@@ -3,7 +3,7 @@ import type { VNodeChild, VNode } from 'vue';
|
|
|
3
3
|
type RuleType = 'string' | 'number' | 'boolean' | 'method' | 'regexp' | 'integer' | 'float' | 'array' | 'object' | 'enum' | 'date' | 'url' | 'hex' | 'email' | 'pattern' | 'any';
|
|
4
4
|
type RuleTrigger = 'input' | 'change' | 'blur' | 'focus';
|
|
5
5
|
interface IFormItemBase {
|
|
6
|
-
label: string;
|
|
6
|
+
label: string | (() => string);
|
|
7
7
|
key: string;
|
|
8
8
|
show?: boolean;
|
|
9
9
|
placeholder?: string;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import type { ObjectKey } from '../interface';
|
|
2
2
|
type Lang = 'en-US' | 'zh-CN' | 'fr-FR';
|
|
3
|
+
export interface IPlatform {
|
|
4
|
+
platformName: () => string;
|
|
5
|
+
platformType: string;
|
|
6
|
+
platformUrl: string;
|
|
7
|
+
}
|
|
3
8
|
export declare function getPlatformJson(): Promise<ObjectKey>;
|
|
4
9
|
export declare const commonStore: {
|
|
5
10
|
needUpdate: boolean;
|
|
@@ -20,7 +25,7 @@ export declare function setPlatformMenu(val: ObjectKey[]): void;
|
|
|
20
25
|
export declare function fnShowDownload(val: boolean): void;
|
|
21
26
|
export declare function fnSetLanguage(val: boolean): void;
|
|
22
27
|
export declare function fnSetLang(val?: Lang): void;
|
|
23
|
-
export declare function setPlatform(val: string): Promise<void>;
|
|
28
|
+
export declare function setPlatform(val: string | IPlatform): Promise<void>;
|
|
24
29
|
export declare function fnSetTheme(val: boolean): void;
|
|
25
30
|
export declare function fnSetNeedUpdate(value: boolean): void;
|
|
26
31
|
export {};
|