@partex/one-core 2.0.6 → 2.0.9
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/form/interface.d.ts +22 -1
- package/lib/components/table/index.vue.d.ts +38 -0
- package/lib/components/tableEdit/components/form.vue.d.ts +47 -0
- package/lib/components/tableEdit/components/header.vue.d.ts +13 -0
- package/lib/one-core.cjs +3 -3
- package/lib/one-core.js +2300 -2139
- package/lib/one-core.umd.cjs +3 -3
- package/lib/src/monaco.d.ts +2 -0
- package/lib/style.css +1 -1
- package/package.json +2 -1
|
@@ -60,6 +60,27 @@ export interface IFormItemSwitch extends IFormItemBase {
|
|
|
60
60
|
input: 'switch';
|
|
61
61
|
}
|
|
62
62
|
export type IFormItem = IFormItemInput | IFormItemNumber | IFormItemDatePicker | IFormItemSelect | IFormItemTime | IFormItemSwitch | IFormItemUpload;
|
|
63
|
-
export type IFormItemEdit = Required<IFormItemInput> | Required<IFormItemNumber> | Required<IFormItemDatePicker> | Required<IFormItemSelect> | Required<IFormItemTime> | Required<IFormItemSwitch> | Required<IFormItemUpload
|
|
63
|
+
export type IFormItemEdit = Required<IFormItemInput> | Required<IFormItemNumber> | Required<IFormItemDatePicker> | Required<IFormItemSelect> | Required<IFormItemTime> | Required<IFormItemSwitch> | Required<IFormItemUpload> | {
|
|
64
|
+
label: string;
|
|
65
|
+
key: string;
|
|
66
|
+
input: '';
|
|
67
|
+
placeholder: string;
|
|
68
|
+
span: number;
|
|
69
|
+
disabled: boolean;
|
|
70
|
+
readonly: boolean;
|
|
71
|
+
clearable: boolean;
|
|
72
|
+
rule: {
|
|
73
|
+
required: boolean;
|
|
74
|
+
type?: RuleType;
|
|
75
|
+
message: string;
|
|
76
|
+
trigger: RuleTrigger | Array<RuleTrigger>;
|
|
77
|
+
validator?: string | Fn;
|
|
78
|
+
};
|
|
79
|
+
edit: {
|
|
80
|
+
show: boolean;
|
|
81
|
+
disabled: boolean;
|
|
82
|
+
readonly: boolean;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
64
85
|
export type IFormItems = IFormItem[];
|
|
65
86
|
export {};
|
|
@@ -30,6 +30,22 @@ declare const _default: DefineComponent<{
|
|
|
30
30
|
type: PropType<string | number>;
|
|
31
31
|
default: undefined;
|
|
32
32
|
};
|
|
33
|
+
flexHeight: {
|
|
34
|
+
type: PropType<boolean>;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
height: {
|
|
38
|
+
type: PropType<string | number>;
|
|
39
|
+
default: undefined;
|
|
40
|
+
};
|
|
41
|
+
minHeight: {
|
|
42
|
+
type: PropType<string | number>;
|
|
43
|
+
default: undefined;
|
|
44
|
+
};
|
|
45
|
+
maxHeight: {
|
|
46
|
+
type: PropType<string | number>;
|
|
47
|
+
default: undefined;
|
|
48
|
+
};
|
|
33
49
|
autoSubmit: {
|
|
34
50
|
type: PropType<boolean>;
|
|
35
51
|
default: boolean;
|
|
@@ -65,6 +81,8 @@ declare const _default: DefineComponent<{
|
|
|
65
81
|
};
|
|
66
82
|
}, {
|
|
67
83
|
loading: Ref<boolean>;
|
|
84
|
+
minH: Ref<string | undefined>;
|
|
85
|
+
maxH: Ref<string | undefined>;
|
|
68
86
|
searchRef: Ref<any>;
|
|
69
87
|
exportLoading: Ref<boolean>;
|
|
70
88
|
tableColumns: Ref<any[]>;
|
|
@@ -145,6 +163,22 @@ declare const _default: DefineComponent<{
|
|
|
145
163
|
type: PropType<string | number>;
|
|
146
164
|
default: undefined;
|
|
147
165
|
};
|
|
166
|
+
flexHeight: {
|
|
167
|
+
type: PropType<boolean>;
|
|
168
|
+
default: boolean;
|
|
169
|
+
};
|
|
170
|
+
height: {
|
|
171
|
+
type: PropType<string | number>;
|
|
172
|
+
default: undefined;
|
|
173
|
+
};
|
|
174
|
+
minHeight: {
|
|
175
|
+
type: PropType<string | number>;
|
|
176
|
+
default: undefined;
|
|
177
|
+
};
|
|
178
|
+
maxHeight: {
|
|
179
|
+
type: PropType<string | number>;
|
|
180
|
+
default: undefined;
|
|
181
|
+
};
|
|
148
182
|
autoSubmit: {
|
|
149
183
|
type: PropType<boolean>;
|
|
150
184
|
default: boolean;
|
|
@@ -181,9 +215,13 @@ declare const _default: DefineComponent<{
|
|
|
181
215
|
}>>, {
|
|
182
216
|
actions: IActionButton[];
|
|
183
217
|
pagination: boolean;
|
|
218
|
+
minHeight: string | number;
|
|
219
|
+
maxHeight: string | number;
|
|
184
220
|
columns: IOcDataTableColumns;
|
|
185
221
|
scrollX: string | number;
|
|
186
222
|
defaultCheckedRowKeys: (string | number)[];
|
|
223
|
+
flexHeight: boolean;
|
|
224
|
+
height: string | number;
|
|
187
225
|
autoSubmit: boolean;
|
|
188
226
|
cache: boolean;
|
|
189
227
|
resetButton: boolean;
|
|
@@ -7,6 +7,29 @@ declare const _default: DefineComponent<{
|
|
|
7
7
|
default: undefined;
|
|
8
8
|
};
|
|
9
9
|
}, {
|
|
10
|
+
rules: Ref<{
|
|
11
|
+
input: {
|
|
12
|
+
required: boolean;
|
|
13
|
+
message: string;
|
|
14
|
+
trigger: string[];
|
|
15
|
+
}[];
|
|
16
|
+
label: {
|
|
17
|
+
required: boolean;
|
|
18
|
+
message: string;
|
|
19
|
+
trigger: string[];
|
|
20
|
+
}[];
|
|
21
|
+
key: {
|
|
22
|
+
required: boolean;
|
|
23
|
+
message: string;
|
|
24
|
+
trigger: string[];
|
|
25
|
+
}[];
|
|
26
|
+
type: {
|
|
27
|
+
required: boolean;
|
|
28
|
+
message: string;
|
|
29
|
+
trigger: string[];
|
|
30
|
+
}[];
|
|
31
|
+
}>;
|
|
32
|
+
formRef: Ref<any>;
|
|
10
33
|
element: Ref<{
|
|
11
34
|
input: "input";
|
|
12
35
|
type: "textarea" | "text" | "password";
|
|
@@ -170,6 +193,27 @@ declare const _default: DefineComponent<{
|
|
|
170
193
|
disabled?: boolean | undefined;
|
|
171
194
|
readonly?: boolean | undefined;
|
|
172
195
|
};
|
|
196
|
+
} | {
|
|
197
|
+
label: string;
|
|
198
|
+
key: string;
|
|
199
|
+
input: "";
|
|
200
|
+
placeholder: string;
|
|
201
|
+
span: number;
|
|
202
|
+
disabled: boolean;
|
|
203
|
+
readonly: boolean;
|
|
204
|
+
clearable: boolean;
|
|
205
|
+
rule: {
|
|
206
|
+
required: boolean;
|
|
207
|
+
type?: ("string" | "number" | "boolean" | "object" | "url" | "method" | "pattern" | "email" | "hex" | "regexp" | "integer" | "float" | "array" | "enum" | "date" | "any") | undefined;
|
|
208
|
+
message: string;
|
|
209
|
+
trigger: ("input" | "blur" | "change" | "focus") | ("input" | "blur" | "change" | "focus")[];
|
|
210
|
+
validator?: string | Fn<any, any> | undefined;
|
|
211
|
+
};
|
|
212
|
+
edit: {
|
|
213
|
+
show: boolean;
|
|
214
|
+
disabled: boolean;
|
|
215
|
+
readonly: boolean;
|
|
216
|
+
};
|
|
173
217
|
}>;
|
|
174
218
|
options: Ref<{
|
|
175
219
|
label: string;
|
|
@@ -193,6 +237,9 @@ declare const _default: DefineComponent<{
|
|
|
193
237
|
}[]>;
|
|
194
238
|
doSubmit: () => void;
|
|
195
239
|
doCancel: () => void;
|
|
240
|
+
inputChange: (value: '' | 'number' | 'date' | 'select' | 'input' | 'time' | 'switch' | 'upload') => void;
|
|
241
|
+
doSelectAdd: () => void;
|
|
242
|
+
doSelectDelete: (index: number) => void;
|
|
196
243
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("on-update:value" | "update:cancel")[], "on-update:value" | "update:cancel", PublicProps, Readonly<ExtractPropTypes<{
|
|
197
244
|
value: {
|
|
198
245
|
type: PropType<IFormItem>;
|
|
@@ -9,6 +9,19 @@ declare const _default: DefineComponent<{
|
|
|
9
9
|
default: () => {};
|
|
10
10
|
};
|
|
11
11
|
}, {
|
|
12
|
+
formRef: Ref<any>;
|
|
13
|
+
rules: Ref<{
|
|
14
|
+
title: {
|
|
15
|
+
required: boolean;
|
|
16
|
+
message: string;
|
|
17
|
+
trigger: string[];
|
|
18
|
+
}[];
|
|
19
|
+
key: {
|
|
20
|
+
required: boolean;
|
|
21
|
+
message: string;
|
|
22
|
+
trigger: string[];
|
|
23
|
+
}[];
|
|
24
|
+
}>;
|
|
12
25
|
element: Ref<{
|
|
13
26
|
title: string;
|
|
14
27
|
key: string;
|