@partex/one-core 2.0.25 → 2.0.29
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/components.d.ts +0 -2
- package/lib/components/create.d.ts +1 -0
- package/lib/components/form/index.vue.d.ts +15 -10
- package/lib/components/form/interface.d.ts +4 -0
- package/lib/components/header/index.vue.d.ts +2 -2
- package/lib/components/monitor.d.ts +1 -1
- package/lib/components/searchBar/index.vue.d.ts +1 -1
- package/lib/components/searchBar/interface.d.ts +2 -1
- package/lib/components/searchBar/item.vue.d.ts +1 -0
- package/lib/components/store/user.d.ts +2 -2
- package/lib/one-core.cjs +1 -1
- package/lib/one-core.js +3580 -3706
- package/lib/one-core.umd.cjs +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -2
|
@@ -34,7 +34,7 @@ declare const _default: DefineComponent<{
|
|
|
34
34
|
default: string;
|
|
35
35
|
};
|
|
36
36
|
labelPlacement: {
|
|
37
|
-
type: PropType<"
|
|
37
|
+
type: PropType<"left" | "top">;
|
|
38
38
|
default: string;
|
|
39
39
|
};
|
|
40
40
|
}, {
|
|
@@ -57,7 +57,7 @@ declare const _default: DefineComponent<{
|
|
|
57
57
|
required: boolean;
|
|
58
58
|
type?: ("string" | "number" | "boolean" | "object" | "pattern" | "email" | "method" | "regexp" | "integer" | "float" | "array" | "enum" | "date" | "url" | "hex" | "any") | undefined;
|
|
59
59
|
message: string;
|
|
60
|
-
trigger: ("input" | "
|
|
60
|
+
trigger: ("input" | "focus" | "change" | "blur") | ("input" | "focus" | "change" | "blur")[];
|
|
61
61
|
validator?: string | Fn<any, any> | undefined;
|
|
62
62
|
} | undefined;
|
|
63
63
|
edit?: {
|
|
@@ -84,7 +84,7 @@ declare const _default: DefineComponent<{
|
|
|
84
84
|
required: boolean;
|
|
85
85
|
type?: ("string" | "number" | "boolean" | "object" | "pattern" | "email" | "method" | "regexp" | "integer" | "float" | "array" | "enum" | "date" | "url" | "hex" | "any") | undefined;
|
|
86
86
|
message: string;
|
|
87
|
-
trigger: ("input" | "
|
|
87
|
+
trigger: ("input" | "focus" | "change" | "blur") | ("input" | "focus" | "change" | "blur")[];
|
|
88
88
|
validator?: string | Fn<any, any> | undefined;
|
|
89
89
|
} | undefined;
|
|
90
90
|
edit?: {
|
|
@@ -96,6 +96,8 @@ declare const _default: DefineComponent<{
|
|
|
96
96
|
} | {
|
|
97
97
|
input: "date";
|
|
98
98
|
type: "date" | "datetime" | "daterange" | "datetimerange" | "month" | "monthrange" | "year" | "yearrange" | "quarter" | "quarterrange" | "week";
|
|
99
|
+
format?: string | undefined;
|
|
100
|
+
isDateDisabled: string | ((ts: number, detail: ObjectKey) => boolean);
|
|
99
101
|
label: string;
|
|
100
102
|
key: string;
|
|
101
103
|
placeholder?: string | undefined;
|
|
@@ -107,7 +109,7 @@ declare const _default: DefineComponent<{
|
|
|
107
109
|
required: boolean;
|
|
108
110
|
type?: ("string" | "number" | "boolean" | "object" | "pattern" | "email" | "method" | "regexp" | "integer" | "float" | "array" | "enum" | "date" | "url" | "hex" | "any") | undefined;
|
|
109
111
|
message: string;
|
|
110
|
-
trigger: ("input" | "
|
|
112
|
+
trigger: ("input" | "focus" | "change" | "blur") | ("input" | "focus" | "change" | "blur")[];
|
|
111
113
|
validator?: string | Fn<any, any> | undefined;
|
|
112
114
|
} | undefined;
|
|
113
115
|
edit?: {
|
|
@@ -121,6 +123,7 @@ declare const _default: DefineComponent<{
|
|
|
121
123
|
options: ObjectKey[];
|
|
122
124
|
filterable?: boolean | undefined;
|
|
123
125
|
multiple?: boolean | undefined;
|
|
126
|
+
fallbackOption?: any;
|
|
124
127
|
maxTagCount?: number | "responsive" | null | undefined;
|
|
125
128
|
label: string;
|
|
126
129
|
key: string;
|
|
@@ -133,7 +136,7 @@ declare const _default: DefineComponent<{
|
|
|
133
136
|
required: boolean;
|
|
134
137
|
type?: ("string" | "number" | "boolean" | "object" | "pattern" | "email" | "method" | "regexp" | "integer" | "float" | "array" | "enum" | "date" | "url" | "hex" | "any") | undefined;
|
|
135
138
|
message: string;
|
|
136
|
-
trigger: ("input" | "
|
|
139
|
+
trigger: ("input" | "focus" | "change" | "blur") | ("input" | "focus" | "change" | "blur")[];
|
|
137
140
|
validator?: string | Fn<any, any> | undefined;
|
|
138
141
|
} | undefined;
|
|
139
142
|
edit?: {
|
|
@@ -144,6 +147,7 @@ declare const _default: DefineComponent<{
|
|
|
144
147
|
updateValue?: string | Fn<any, any> | undefined;
|
|
145
148
|
} | {
|
|
146
149
|
input: "time";
|
|
150
|
+
format?: string | undefined;
|
|
147
151
|
label: string;
|
|
148
152
|
key: string;
|
|
149
153
|
placeholder?: string | undefined;
|
|
@@ -155,7 +159,7 @@ declare const _default: DefineComponent<{
|
|
|
155
159
|
required: boolean;
|
|
156
160
|
type?: ("string" | "number" | "boolean" | "object" | "pattern" | "email" | "method" | "regexp" | "integer" | "float" | "array" | "enum" | "date" | "url" | "hex" | "any") | undefined;
|
|
157
161
|
message: string;
|
|
158
|
-
trigger: ("input" | "
|
|
162
|
+
trigger: ("input" | "focus" | "change" | "blur") | ("input" | "focus" | "change" | "blur")[];
|
|
159
163
|
validator?: string | Fn<any, any> | undefined;
|
|
160
164
|
} | undefined;
|
|
161
165
|
edit?: {
|
|
@@ -179,7 +183,7 @@ declare const _default: DefineComponent<{
|
|
|
179
183
|
required: boolean;
|
|
180
184
|
type?: ("string" | "number" | "boolean" | "object" | "pattern" | "email" | "method" | "regexp" | "integer" | "float" | "array" | "enum" | "date" | "url" | "hex" | "any") | undefined;
|
|
181
185
|
message: string;
|
|
182
|
-
trigger: ("input" | "
|
|
186
|
+
trigger: ("input" | "focus" | "change" | "blur") | ("input" | "focus" | "change" | "blur")[];
|
|
183
187
|
validator?: string | Fn<any, any> | undefined;
|
|
184
188
|
} | undefined;
|
|
185
189
|
edit?: {
|
|
@@ -201,7 +205,7 @@ declare const _default: DefineComponent<{
|
|
|
201
205
|
required: boolean;
|
|
202
206
|
type?: ("string" | "number" | "boolean" | "object" | "pattern" | "email" | "method" | "regexp" | "integer" | "float" | "array" | "enum" | "date" | "url" | "hex" | "any") | undefined;
|
|
203
207
|
message: string;
|
|
204
|
-
trigger: ("input" | "
|
|
208
|
+
trigger: ("input" | "focus" | "change" | "blur") | ("input" | "focus" | "change" | "blur")[];
|
|
205
209
|
validator?: string | Fn<any, any> | undefined;
|
|
206
210
|
} | undefined;
|
|
207
211
|
edit?: {
|
|
@@ -219,6 +223,7 @@ declare const _default: DefineComponent<{
|
|
|
219
223
|
}, key: string) => Promise<void>;
|
|
220
224
|
uploadChange: (fileList: UploadFileInfo[], key: string) => void;
|
|
221
225
|
elementShow: (item: IFormItem) => boolean;
|
|
226
|
+
selectFallback: (item: any) => any | boolean;
|
|
222
227
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
|
|
223
228
|
items: {
|
|
224
229
|
required: true;
|
|
@@ -251,7 +256,7 @@ declare const _default: DefineComponent<{
|
|
|
251
256
|
default: string;
|
|
252
257
|
};
|
|
253
258
|
labelPlacement: {
|
|
254
|
-
type: PropType<"
|
|
259
|
+
type: PropType<"left" | "top">;
|
|
255
260
|
default: string;
|
|
256
261
|
};
|
|
257
262
|
}>>, {
|
|
@@ -261,7 +266,7 @@ declare const _default: DefineComponent<{
|
|
|
261
266
|
inline: boolean;
|
|
262
267
|
labelWidth: string | number;
|
|
263
268
|
labelAlign: "left" | "right";
|
|
264
|
-
labelPlacement: "
|
|
269
|
+
labelPlacement: "left" | "top";
|
|
265
270
|
items: IFormItems;
|
|
266
271
|
}, {}>;
|
|
267
272
|
export default _default;
|
|
@@ -41,16 +41,20 @@ export interface IFormItemNumber extends IFormItemBase {
|
|
|
41
41
|
export interface IFormItemDatePicker extends IFormItemBase {
|
|
42
42
|
input: 'date';
|
|
43
43
|
type: 'date' | 'datetime' | 'daterange' | 'datetimerange' | 'month' | 'monthrange' | 'year' | 'yearrange' | 'quarter' | 'quarterrange' | 'week';
|
|
44
|
+
format?: string;
|
|
45
|
+
isDateDisabled: ((ts: number, detail: ObjectKey) => boolean) | string;
|
|
44
46
|
}
|
|
45
47
|
export interface IFormItemSelect extends IFormItemBase {
|
|
46
48
|
input: 'select';
|
|
47
49
|
options: Array<ObjectKey>;
|
|
48
50
|
filterable?: boolean;
|
|
49
51
|
multiple?: boolean;
|
|
52
|
+
fallbackOption?: any | boolean;
|
|
50
53
|
maxTagCount?: number | 'responsive' | null;
|
|
51
54
|
}
|
|
52
55
|
export interface IFormItemTime extends IFormItemBase {
|
|
53
56
|
input: 'time';
|
|
57
|
+
format?: string;
|
|
54
58
|
}
|
|
55
59
|
export interface IFormItemUpload extends IFormItemBase {
|
|
56
60
|
input: 'upload';
|
|
@@ -63,12 +63,12 @@ declare const _default: DefineComponent<{
|
|
|
63
63
|
id: string | string[];
|
|
64
64
|
interval: number;
|
|
65
65
|
viewType: 1 | 2;
|
|
66
|
-
theme: "
|
|
66
|
+
theme: "light" | "dark";
|
|
67
67
|
};
|
|
68
68
|
endTime: number;
|
|
69
69
|
tenantStatus: 0 | 1 | 2;
|
|
70
70
|
renewalStatus: 0 | 1;
|
|
71
|
-
industryCategory: "
|
|
71
|
+
industryCategory: "1" | "0";
|
|
72
72
|
};
|
|
73
73
|
commonStore: {
|
|
74
74
|
needUpdate: boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export default function Monitor(app: any): void;
|
|
1
|
+
export default function Monitor(app: any, url: false | string): void;
|
|
2
2
|
export declare const sendError: (type: 1 | 2 | 3 | 4 | 5, url: string, message: any) => void;
|
|
@@ -106,10 +106,10 @@ declare const _default: DefineComponent<{
|
|
|
106
106
|
}, {
|
|
107
107
|
data: ISearchBarType;
|
|
108
108
|
small: boolean;
|
|
109
|
-
value: Record<string, any>;
|
|
110
109
|
loading: boolean;
|
|
111
110
|
cols: number;
|
|
112
111
|
defaultValue: Record<string, any>;
|
|
112
|
+
value: Record<string, any>;
|
|
113
113
|
autoSubmit: boolean;
|
|
114
114
|
cache: boolean;
|
|
115
115
|
resetButton: boolean;
|
|
@@ -10,7 +10,7 @@ interface Base {
|
|
|
10
10
|
clearable?: boolean;
|
|
11
11
|
placeholder?: (() => string) | string;
|
|
12
12
|
disabled?: boolean;
|
|
13
|
-
updateValue?: (value: [] | string | number | null, data: ObjectKey, next: (data: ObjectKey) => void) => void;
|
|
13
|
+
updateValue?: (value: any[] | string | number | null, data: ObjectKey, next: (data: ObjectKey) => void) => void;
|
|
14
14
|
}
|
|
15
15
|
export interface Input extends Base {
|
|
16
16
|
type: 'input';
|
|
@@ -27,6 +27,7 @@ export interface InputNumber extends Base {
|
|
|
27
27
|
export interface Select extends Base {
|
|
28
28
|
type: 'select';
|
|
29
29
|
multiple?: boolean;
|
|
30
|
+
fallbackOption?: SelectOption | boolean;
|
|
30
31
|
options: Array<SelectOption | SelectGroupOption> | any;
|
|
31
32
|
}
|
|
32
33
|
export interface Dropdown extends Base {
|
|
@@ -29,6 +29,7 @@ declare const _default: DefineComponent<{
|
|
|
29
29
|
dropValueChange: (key: string, value: string, item: any) => void;
|
|
30
30
|
dropDisplayToggle: (key: string) => void;
|
|
31
31
|
getDate: (year?: number, month?: number, date?: number) => number;
|
|
32
|
+
selectFallback: (item: any) => any | boolean;
|
|
32
33
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
|
|
33
34
|
cols: {
|
|
34
35
|
type: PropType<number>;
|
|
@@ -34,12 +34,12 @@ export declare const userStore: {
|
|
|
34
34
|
id: string | string[];
|
|
35
35
|
interval: number;
|
|
36
36
|
viewType: 1 | 2;
|
|
37
|
-
theme: "
|
|
37
|
+
theme: "light" | "dark";
|
|
38
38
|
};
|
|
39
39
|
endTime: number;
|
|
40
40
|
tenantStatus: 0 | 1 | 2;
|
|
41
41
|
renewalStatus: 0 | 1;
|
|
42
|
-
industryCategory: "
|
|
42
|
+
industryCategory: "1" | "0";
|
|
43
43
|
};
|
|
44
44
|
export declare function setEnableRedirect(val: boolean): void;
|
|
45
45
|
export declare function fnSetUser(val: Required<IUserTenant>): void;
|