@partex/one-core 1.1.23 → 2.0.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/components/actionButton/function.d.ts +4 -0
- package/lib/components/actionButton/index.d.ts +3 -0
- package/lib/components/actionButton/index.vue.d.ts +18 -0
- package/lib/components/actionButton/interface.d.ts +19 -0
- package/lib/components/common.d.ts +5 -30
- package/lib/components/components.d.ts +14 -9
- package/lib/components/form/index.d.ts +2 -0
- package/lib/components/form/index.vue.d.ts +258 -0
- package/lib/components/form/interface.d.ts +65 -0
- package/lib/components/header/index.vue.d.ts +29 -11
- package/lib/components/header/message.vue.d.ts +2 -4
- package/lib/components/header/pop.vue.d.ts +2 -4
- package/lib/components/icon.d.ts +8 -0
- package/lib/components/importer/index.vue.d.ts +2 -4
- package/lib/components/index.d.ts +2 -2
- package/lib/components/local/en-US.d.ts +5 -0
- package/lib/components/local/index.d.ts +10 -0
- package/lib/components/local/zh-CN.d.ts +5 -0
- package/lib/components/monitor.d.ts +2 -0
- package/lib/components/numberRoll/index.vue.d.ts +1 -1
- package/lib/components/scan/index.d.ts +1 -0
- package/lib/components/scan/index.vue.d.ts +11 -0
- package/lib/components/searchBar/index.vue.d.ts +3 -3
- package/lib/components/searchBar/interface.d.ts +7 -3
- package/lib/components/table/index.d.ts +2 -0
- package/lib/components/table/index.vue.d.ts +201 -0
- package/lib/components/table/interface.d.ts +32 -0
- package/lib/components/tableEdit/common.d.ts +1 -0
- package/lib/components/tableEdit/components/action.vue.d.ts +49 -0
- package/lib/components/tableEdit/components/code.vue.d.ts +42 -0
- package/lib/components/tableEdit/components/form.vue.d.ts +207 -0
- package/lib/components/tableEdit/components/header.vue.d.ts +246 -0
- package/lib/components/tableEdit/index.d.ts +2 -0
- package/lib/components/tableEdit/index.vue.d.ts +586 -0
- package/lib/components/tableEdit/interface.d.ts +23 -0
- package/lib/one-core.cjs +91 -1
- package/lib/one-core.js +8119 -4306
- package/lib/one-core.umd.cjs +91 -1
- package/lib/style.css +1 -1
- package/package.json +7 -4
- package/volar.d.ts +9 -6
|
@@ -12,11 +12,16 @@ declare const _default: {
|
|
|
12
12
|
};
|
|
13
13
|
Common: {
|
|
14
14
|
validDays: string;
|
|
15
|
+
add: string;
|
|
16
|
+
edit: string;
|
|
17
|
+
apply: string;
|
|
18
|
+
cancel: string;
|
|
15
19
|
search: string;
|
|
16
20
|
refresh: string;
|
|
17
21
|
filter: string;
|
|
18
22
|
reset: string;
|
|
19
23
|
more: string;
|
|
24
|
+
export: string;
|
|
20
25
|
success: string;
|
|
21
26
|
failed: string;
|
|
22
27
|
processing: string;
|
|
@@ -12,11 +12,16 @@ export declare const langCN: {
|
|
|
12
12
|
};
|
|
13
13
|
Common: {
|
|
14
14
|
validDays: string;
|
|
15
|
+
add: string;
|
|
16
|
+
edit: string;
|
|
17
|
+
apply: string;
|
|
18
|
+
cancel: string;
|
|
15
19
|
search: string;
|
|
16
20
|
refresh: string;
|
|
17
21
|
filter: string;
|
|
18
22
|
reset: string;
|
|
19
23
|
more: string;
|
|
24
|
+
export: string;
|
|
20
25
|
success: string;
|
|
21
26
|
failed: string;
|
|
22
27
|
processing: string;
|
|
@@ -100,11 +105,16 @@ export declare const langUS: {
|
|
|
100
105
|
};
|
|
101
106
|
Common: {
|
|
102
107
|
validDays: string;
|
|
108
|
+
add: string;
|
|
109
|
+
edit: string;
|
|
110
|
+
apply: string;
|
|
111
|
+
cancel: string;
|
|
103
112
|
search: string;
|
|
104
113
|
refresh: string;
|
|
105
114
|
filter: string;
|
|
106
115
|
reset: string;
|
|
107
116
|
more: string;
|
|
117
|
+
export: string;
|
|
108
118
|
success: string;
|
|
109
119
|
failed: string;
|
|
110
120
|
processing: string;
|
|
@@ -12,11 +12,16 @@ declare const _default: {
|
|
|
12
12
|
};
|
|
13
13
|
Common: {
|
|
14
14
|
validDays: string;
|
|
15
|
+
add: string;
|
|
16
|
+
edit: string;
|
|
17
|
+
apply: string;
|
|
18
|
+
cancel: string;
|
|
15
19
|
search: string;
|
|
16
20
|
refresh: string;
|
|
17
21
|
filter: string;
|
|
18
22
|
reset: string;
|
|
19
23
|
more: string;
|
|
24
|
+
export: string;
|
|
20
25
|
success: string;
|
|
21
26
|
failed: string;
|
|
22
27
|
processing: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as OcScan } from './index.vue';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<{}, {
|
|
3
|
+
videoRef: Ref<any>;
|
|
4
|
+
modal: Ref<boolean>;
|
|
5
|
+
loading: Ref<boolean>;
|
|
6
|
+
doScan: () => void;
|
|
7
|
+
closeAll: () => void;
|
|
8
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "on-update:value"[], "on-update:value", PublicProps, Readonly<ExtractPropTypes<{}>> & {
|
|
9
|
+
"onOn-update:value"?: ((...args: any[]) => any) | undefined;
|
|
10
|
+
}, {}, {}>;
|
|
11
|
+
export default _default;
|
|
@@ -50,7 +50,7 @@ declare const _default: DefineComponent<{
|
|
|
50
50
|
download: boolean;
|
|
51
51
|
theme: boolean;
|
|
52
52
|
isMobile: boolean;
|
|
53
|
-
lang: "
|
|
53
|
+
lang: "en-US" | "zh-CN" | "fr-FR";
|
|
54
54
|
platformName: string;
|
|
55
55
|
platformType: string;
|
|
56
56
|
platformUrl: string;
|
|
@@ -105,10 +105,10 @@ declare const _default: DefineComponent<{
|
|
|
105
105
|
}, {
|
|
106
106
|
data: ISearchBarType;
|
|
107
107
|
small: boolean;
|
|
108
|
-
loading: boolean;
|
|
109
108
|
value: Record<string, any>;
|
|
110
|
-
|
|
109
|
+
loading: boolean;
|
|
111
110
|
cols: number;
|
|
111
|
+
defaultValue: Record<string, any>;
|
|
112
112
|
autoSubmit: boolean;
|
|
113
113
|
cache: boolean;
|
|
114
114
|
resetButton: boolean;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SelectGroupOption, CascaderOption, TreeSelectOption } from 'naive-ui';
|
|
2
|
+
type SelectOption = any;
|
|
2
3
|
interface Base {
|
|
3
|
-
title
|
|
4
|
+
title?: (() => string) | string;
|
|
5
|
+
key?: string;
|
|
6
|
+
defaultValue?: any;
|
|
4
7
|
show?: boolean;
|
|
5
8
|
clearable?: boolean;
|
|
6
9
|
placeholder?: (() => string) | string;
|
|
@@ -88,7 +91,8 @@ export interface Group extends Omit<Base, unGroupUse> {
|
|
|
88
91
|
width?: number | string;
|
|
89
92
|
inputTemp?: GroupInput;
|
|
90
93
|
}
|
|
94
|
+
export type ISearchBarTypes = Input | InputNumber | Select | Dropdown | Cascader | TreeSelect | DatePicker | TimePicker | Group;
|
|
91
95
|
export type ISearchBarType = {
|
|
92
|
-
[key in string]:
|
|
96
|
+
[key in string]: ISearchBarTypes;
|
|
93
97
|
};
|
|
94
98
|
export {};
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import { DefineComponent, Ref, VNodeChild, ComputedRef, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import type { DataTableSortState } from 'naive-ui';
|
|
3
|
+
import type { ObjectKey, Fn } from '../common';
|
|
4
|
+
import type { TableQuery, IOcDataTableColumns } from './interface';
|
|
5
|
+
import type { IActionButton } from '../actionButton';
|
|
6
|
+
declare const _default: DefineComponent<{
|
|
7
|
+
columns: {
|
|
8
|
+
required: true;
|
|
9
|
+
type: PropType<IOcDataTableColumns>;
|
|
10
|
+
default: () => never[];
|
|
11
|
+
};
|
|
12
|
+
actions: {
|
|
13
|
+
type: PropType<IActionButton[]>;
|
|
14
|
+
default: undefined;
|
|
15
|
+
};
|
|
16
|
+
fetch: {
|
|
17
|
+
required: true;
|
|
18
|
+
type: PropType<Fn<any, any>>;
|
|
19
|
+
default: () => Promise<void>;
|
|
20
|
+
};
|
|
21
|
+
defaultCheckedRowKeys: {
|
|
22
|
+
type: PropType<(string | number)[]>;
|
|
23
|
+
default: () => never[];
|
|
24
|
+
};
|
|
25
|
+
pagination: {
|
|
26
|
+
type: PropType<boolean>;
|
|
27
|
+
default: boolean;
|
|
28
|
+
};
|
|
29
|
+
scrollX: {
|
|
30
|
+
type: PropType<string | number>;
|
|
31
|
+
default: undefined;
|
|
32
|
+
};
|
|
33
|
+
autoSubmit: {
|
|
34
|
+
type: PropType<boolean>;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
cache: {
|
|
38
|
+
type: PropType<boolean>;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
resetButton: {
|
|
42
|
+
type: PropType<boolean>;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
realtime: {
|
|
46
|
+
type: PropType<boolean>;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
addFn: {
|
|
50
|
+
type: PropType<Fn<any, any>>;
|
|
51
|
+
default: undefined;
|
|
52
|
+
};
|
|
53
|
+
importer: {
|
|
54
|
+
type: PropType<{
|
|
55
|
+
type: string;
|
|
56
|
+
file: string;
|
|
57
|
+
}>;
|
|
58
|
+
default: undefined;
|
|
59
|
+
};
|
|
60
|
+
exporter: {
|
|
61
|
+
type: PropType<{
|
|
62
|
+
jobTypeName: string;
|
|
63
|
+
}>;
|
|
64
|
+
default: undefined;
|
|
65
|
+
};
|
|
66
|
+
}, {
|
|
67
|
+
loading: Ref<boolean>;
|
|
68
|
+
searchRef: Ref<any>;
|
|
69
|
+
exportLoading: Ref<boolean>;
|
|
70
|
+
tableColumns: Ref<any[]>;
|
|
71
|
+
tableData: Ref<never[]>;
|
|
72
|
+
tableQuery: Ref<{
|
|
73
|
+
[x: string]: any;
|
|
74
|
+
query: {
|
|
75
|
+
page: number;
|
|
76
|
+
pageSize?: number | undefined;
|
|
77
|
+
pageCount?: number | undefined;
|
|
78
|
+
itemCount?: number | undefined;
|
|
79
|
+
pageSizes?: number[] | undefined;
|
|
80
|
+
isGetAll?: 0 | 1 | undefined;
|
|
81
|
+
keyword?: string | undefined;
|
|
82
|
+
columnKey?: string | null | undefined;
|
|
83
|
+
order?: string | null | undefined;
|
|
84
|
+
showQuickJumper?: boolean | undefined;
|
|
85
|
+
showSizePicker?: boolean | undefined;
|
|
86
|
+
pageSlot?: number | undefined;
|
|
87
|
+
prefix?: ((info: {
|
|
88
|
+
startIndex: number;
|
|
89
|
+
endIndex: number;
|
|
90
|
+
page: number;
|
|
91
|
+
pageSize: number;
|
|
92
|
+
pageCount: number;
|
|
93
|
+
itemCount: number | undefined;
|
|
94
|
+
}) => VNodeChild) | undefined;
|
|
95
|
+
suffix?: ((info: {
|
|
96
|
+
startIndex: number;
|
|
97
|
+
endIndex: number;
|
|
98
|
+
page: number;
|
|
99
|
+
pageSize: number;
|
|
100
|
+
pageCount: number;
|
|
101
|
+
itemCount: number | undefined;
|
|
102
|
+
}) => VNodeChild) | undefined;
|
|
103
|
+
};
|
|
104
|
+
}>;
|
|
105
|
+
searchDefaultValue: Ref<ObjectKey>;
|
|
106
|
+
searchData: Ref<ObjectKey>;
|
|
107
|
+
baseColumns: Ref<any>;
|
|
108
|
+
dragOptions: ComputedRef<{
|
|
109
|
+
animation: number;
|
|
110
|
+
group: string;
|
|
111
|
+
ghostClass: string;
|
|
112
|
+
}>;
|
|
113
|
+
showImporter: Ref<boolean>;
|
|
114
|
+
pageChange: (page: number) => void;
|
|
115
|
+
pageSizeChange: (pageSize: number) => void;
|
|
116
|
+
pageSorter: (options: DataTableSortState | DataTableSortState | null) => void;
|
|
117
|
+
pinChange: (element: any) => void;
|
|
118
|
+
showChange: (element: any) => void;
|
|
119
|
+
submit: (value: TableQuery) => void;
|
|
120
|
+
exportData: () => void;
|
|
121
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
|
|
122
|
+
columns: {
|
|
123
|
+
required: true;
|
|
124
|
+
type: PropType<IOcDataTableColumns>;
|
|
125
|
+
default: () => never[];
|
|
126
|
+
};
|
|
127
|
+
actions: {
|
|
128
|
+
type: PropType<IActionButton[]>;
|
|
129
|
+
default: undefined;
|
|
130
|
+
};
|
|
131
|
+
fetch: {
|
|
132
|
+
required: true;
|
|
133
|
+
type: PropType<Fn<any, any>>;
|
|
134
|
+
default: () => Promise<void>;
|
|
135
|
+
};
|
|
136
|
+
defaultCheckedRowKeys: {
|
|
137
|
+
type: PropType<(string | number)[]>;
|
|
138
|
+
default: () => never[];
|
|
139
|
+
};
|
|
140
|
+
pagination: {
|
|
141
|
+
type: PropType<boolean>;
|
|
142
|
+
default: boolean;
|
|
143
|
+
};
|
|
144
|
+
scrollX: {
|
|
145
|
+
type: PropType<string | number>;
|
|
146
|
+
default: undefined;
|
|
147
|
+
};
|
|
148
|
+
autoSubmit: {
|
|
149
|
+
type: PropType<boolean>;
|
|
150
|
+
default: boolean;
|
|
151
|
+
};
|
|
152
|
+
cache: {
|
|
153
|
+
type: PropType<boolean>;
|
|
154
|
+
default: boolean;
|
|
155
|
+
};
|
|
156
|
+
resetButton: {
|
|
157
|
+
type: PropType<boolean>;
|
|
158
|
+
default: boolean;
|
|
159
|
+
};
|
|
160
|
+
realtime: {
|
|
161
|
+
type: PropType<boolean>;
|
|
162
|
+
default: boolean;
|
|
163
|
+
};
|
|
164
|
+
addFn: {
|
|
165
|
+
type: PropType<Fn<any, any>>;
|
|
166
|
+
default: undefined;
|
|
167
|
+
};
|
|
168
|
+
importer: {
|
|
169
|
+
type: PropType<{
|
|
170
|
+
type: string;
|
|
171
|
+
file: string;
|
|
172
|
+
}>;
|
|
173
|
+
default: undefined;
|
|
174
|
+
};
|
|
175
|
+
exporter: {
|
|
176
|
+
type: PropType<{
|
|
177
|
+
jobTypeName: string;
|
|
178
|
+
}>;
|
|
179
|
+
default: undefined;
|
|
180
|
+
};
|
|
181
|
+
}>>, {
|
|
182
|
+
actions: IActionButton[];
|
|
183
|
+
pagination: boolean;
|
|
184
|
+
columns: IOcDataTableColumns;
|
|
185
|
+
scrollX: string | number;
|
|
186
|
+
defaultCheckedRowKeys: (string | number)[];
|
|
187
|
+
autoSubmit: boolean;
|
|
188
|
+
cache: boolean;
|
|
189
|
+
resetButton: boolean;
|
|
190
|
+
fetch: Fn<any, any>;
|
|
191
|
+
realtime: boolean;
|
|
192
|
+
addFn: Fn<any, any>;
|
|
193
|
+
importer: {
|
|
194
|
+
type: string;
|
|
195
|
+
file: string;
|
|
196
|
+
};
|
|
197
|
+
exporter: {
|
|
198
|
+
jobTypeName: string;
|
|
199
|
+
};
|
|
200
|
+
}, {}>;
|
|
201
|
+
export default _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { VNodeChild } from 'vue';
|
|
2
|
+
import type { Query } from '../common';
|
|
3
|
+
import type { ISearchBarTypes } from '../searchBar/interface';
|
|
4
|
+
type TableColumnTitle<T = InternalRowData> = string | ((column: IOcDataTableColumns<T>) => VNodeChild);
|
|
5
|
+
type ColumnKey = string | number;
|
|
6
|
+
type InternalRowData = Record<string, unknown>;
|
|
7
|
+
export type TableQuery = {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
query: Query;
|
|
10
|
+
};
|
|
11
|
+
export interface IOcDataTableColumn<T = InternalRowData> {
|
|
12
|
+
title?: TableColumnTitle<T>;
|
|
13
|
+
align?: 'left' | 'right' | 'center' | null;
|
|
14
|
+
titleAlign?: 'left' | 'right' | 'center' | null;
|
|
15
|
+
fixed?: 'left' | 'right' | false | null;
|
|
16
|
+
width?: number | string | null;
|
|
17
|
+
ellipsis?: boolean | {
|
|
18
|
+
tooltip: boolean;
|
|
19
|
+
};
|
|
20
|
+
sorter?: boolean;
|
|
21
|
+
titleColSpan?: number;
|
|
22
|
+
type?: never;
|
|
23
|
+
key: ColumnKey;
|
|
24
|
+
tree?: boolean;
|
|
25
|
+
resizable?: boolean;
|
|
26
|
+
minWidth?: string | number;
|
|
27
|
+
maxWidth?: string | number;
|
|
28
|
+
render?: (rowData: T, rowIndex: number) => VNodeChild;
|
|
29
|
+
search?: ISearchBarTypes;
|
|
30
|
+
}
|
|
31
|
+
export type IOcDataTableColumns<T = InternalRowData> = Array<IOcDataTableColumn<T>>;
|
|
32
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const vueTemplate: (columns: any, actions: any, forms: any) => string;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Fn } from '../..';
|
|
2
|
+
import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
+
import type { IActionButton } from '../../actionButton';
|
|
4
|
+
declare const _default: DefineComponent<{
|
|
5
|
+
value: {
|
|
6
|
+
type: PropType<IActionButton>;
|
|
7
|
+
default: undefined;
|
|
8
|
+
};
|
|
9
|
+
}, {
|
|
10
|
+
element: Ref<{
|
|
11
|
+
type: "delete" | "detail" | "edit";
|
|
12
|
+
disabled?: boolean | undefined;
|
|
13
|
+
loading?: boolean | undefined;
|
|
14
|
+
buttonText?: string | undefined;
|
|
15
|
+
confirmText?: string | undefined;
|
|
16
|
+
onClick: string | Fn<any, any>;
|
|
17
|
+
} | {
|
|
18
|
+
type: "custom";
|
|
19
|
+
tooltipText: string;
|
|
20
|
+
icon?: any;
|
|
21
|
+
color?: "default" | "error" | "info" | "success" | "warning" | "tertiary" | "primary" | undefined;
|
|
22
|
+
disabled?: boolean | undefined;
|
|
23
|
+
loading?: boolean | undefined;
|
|
24
|
+
buttonText?: string | undefined;
|
|
25
|
+
confirmText?: string | undefined;
|
|
26
|
+
onClick: string | Fn<any, any>;
|
|
27
|
+
}>;
|
|
28
|
+
options: Ref<{
|
|
29
|
+
label: string;
|
|
30
|
+
value: string;
|
|
31
|
+
}[]>;
|
|
32
|
+
optionsA: Ref<{
|
|
33
|
+
label: string;
|
|
34
|
+
value: string;
|
|
35
|
+
}[]>;
|
|
36
|
+
doSubmit: () => void;
|
|
37
|
+
doCancel: () => void;
|
|
38
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("on-update:value" | "update:cancel")[], "on-update:value" | "update:cancel", PublicProps, Readonly<ExtractPropTypes<{
|
|
39
|
+
value: {
|
|
40
|
+
type: PropType<IActionButton>;
|
|
41
|
+
default: undefined;
|
|
42
|
+
};
|
|
43
|
+
}>> & {
|
|
44
|
+
"onOn-update:value"?: ((...args: any[]) => any) | undefined;
|
|
45
|
+
"onUpdate:cancel"?: ((...args: any[]) => any) | undefined;
|
|
46
|
+
}, {
|
|
47
|
+
value: IActionButton;
|
|
48
|
+
}, {}>;
|
|
49
|
+
export default _default;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<{
|
|
3
|
+
value: {
|
|
4
|
+
required: true;
|
|
5
|
+
type: PropType<string>;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
language: {
|
|
9
|
+
type: PropType<string>;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
}, {
|
|
13
|
+
code: Ref<any>;
|
|
14
|
+
MONACO_EDITOR_OPTIONS: {
|
|
15
|
+
automaticLayout: boolean;
|
|
16
|
+
formatOnType: boolean;
|
|
17
|
+
formatOnPaste: boolean;
|
|
18
|
+
wordWrap: string;
|
|
19
|
+
wordWrapColumn: number;
|
|
20
|
+
minimap: {
|
|
21
|
+
enabled: boolean;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
handleMount: (editor: any) => void;
|
|
25
|
+
handleChange: (value: string) => void;
|
|
26
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:value"[], "update:value", PublicProps, Readonly<ExtractPropTypes<{
|
|
27
|
+
value: {
|
|
28
|
+
required: true;
|
|
29
|
+
type: PropType<string>;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
language: {
|
|
33
|
+
type: PropType<string>;
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
36
|
+
}>> & {
|
|
37
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
38
|
+
}, {
|
|
39
|
+
value: string;
|
|
40
|
+
language: string;
|
|
41
|
+
}, {}>;
|
|
42
|
+
export default _default;
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import { Fn, ObjectKey } from '../..';
|
|
2
|
+
import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
+
import type { IFormItem } from '../../form';
|
|
4
|
+
declare const _default: DefineComponent<{
|
|
5
|
+
value: {
|
|
6
|
+
type: PropType<IFormItem>;
|
|
7
|
+
default: undefined;
|
|
8
|
+
};
|
|
9
|
+
}, {
|
|
10
|
+
element: Ref<{
|
|
11
|
+
input: "input";
|
|
12
|
+
type: "textarea" | "text" | "password";
|
|
13
|
+
minlength: number | null;
|
|
14
|
+
maxlength: number | null;
|
|
15
|
+
rows: number | null;
|
|
16
|
+
label: string;
|
|
17
|
+
key: string;
|
|
18
|
+
placeholder: string;
|
|
19
|
+
span: number;
|
|
20
|
+
disabled: boolean;
|
|
21
|
+
readonly: boolean;
|
|
22
|
+
clearable: boolean;
|
|
23
|
+
rule: {
|
|
24
|
+
required: boolean;
|
|
25
|
+
type?: ("string" | "number" | "boolean" | "object" | "url" | "method" | "pattern" | "email" | "hex" | "regexp" | "integer" | "float" | "array" | "enum" | "date" | "any") | undefined;
|
|
26
|
+
message: string;
|
|
27
|
+
trigger: ("input" | "blur" | "change" | "focus") | ("input" | "blur" | "change" | "focus")[];
|
|
28
|
+
validator?: string | Fn<any, any> | undefined;
|
|
29
|
+
};
|
|
30
|
+
edit: {
|
|
31
|
+
show?: boolean | undefined;
|
|
32
|
+
disabled?: boolean | undefined;
|
|
33
|
+
readonly?: boolean | undefined;
|
|
34
|
+
};
|
|
35
|
+
} | {
|
|
36
|
+
input: "number";
|
|
37
|
+
showButton: boolean;
|
|
38
|
+
min: number | null;
|
|
39
|
+
max: number | null;
|
|
40
|
+
step: number | null;
|
|
41
|
+
precision: number | null;
|
|
42
|
+
label: string;
|
|
43
|
+
key: string;
|
|
44
|
+
placeholder: string;
|
|
45
|
+
span: number;
|
|
46
|
+
disabled: boolean;
|
|
47
|
+
readonly: boolean;
|
|
48
|
+
clearable: boolean;
|
|
49
|
+
rule: {
|
|
50
|
+
required: boolean;
|
|
51
|
+
type?: ("string" | "number" | "boolean" | "object" | "url" | "method" | "pattern" | "email" | "hex" | "regexp" | "integer" | "float" | "array" | "enum" | "date" | "any") | undefined;
|
|
52
|
+
message: string;
|
|
53
|
+
trigger: ("input" | "blur" | "change" | "focus") | ("input" | "blur" | "change" | "focus")[];
|
|
54
|
+
validator?: string | Fn<any, any> | undefined;
|
|
55
|
+
};
|
|
56
|
+
edit: {
|
|
57
|
+
show?: boolean | undefined;
|
|
58
|
+
disabled?: boolean | undefined;
|
|
59
|
+
readonly?: boolean | undefined;
|
|
60
|
+
};
|
|
61
|
+
} | {
|
|
62
|
+
input: "date";
|
|
63
|
+
type: "date" | "datetime" | "daterange" | "datetimerange" | "month" | "monthrange" | "year" | "yearrange" | "quarter" | "quarterrange" | "week";
|
|
64
|
+
label: string;
|
|
65
|
+
key: string;
|
|
66
|
+
placeholder: string;
|
|
67
|
+
span: number;
|
|
68
|
+
disabled: boolean;
|
|
69
|
+
readonly: boolean;
|
|
70
|
+
clearable: boolean;
|
|
71
|
+
rule: {
|
|
72
|
+
required: boolean;
|
|
73
|
+
type?: ("string" | "number" | "boolean" | "object" | "url" | "method" | "pattern" | "email" | "hex" | "regexp" | "integer" | "float" | "array" | "enum" | "date" | "any") | undefined;
|
|
74
|
+
message: string;
|
|
75
|
+
trigger: ("input" | "blur" | "change" | "focus") | ("input" | "blur" | "change" | "focus")[];
|
|
76
|
+
validator?: string | Fn<any, any> | undefined;
|
|
77
|
+
};
|
|
78
|
+
edit: {
|
|
79
|
+
show?: boolean | undefined;
|
|
80
|
+
disabled?: boolean | undefined;
|
|
81
|
+
readonly?: boolean | undefined;
|
|
82
|
+
};
|
|
83
|
+
} | {
|
|
84
|
+
input: "select";
|
|
85
|
+
options: ObjectKey[];
|
|
86
|
+
filterable: boolean;
|
|
87
|
+
multiple: boolean;
|
|
88
|
+
maxTagCount: number | "responsive" | null;
|
|
89
|
+
label: string;
|
|
90
|
+
key: string;
|
|
91
|
+
placeholder: string;
|
|
92
|
+
span: number;
|
|
93
|
+
disabled: boolean;
|
|
94
|
+
readonly: boolean;
|
|
95
|
+
clearable: boolean;
|
|
96
|
+
rule: {
|
|
97
|
+
required: boolean;
|
|
98
|
+
type?: ("string" | "number" | "boolean" | "object" | "url" | "method" | "pattern" | "email" | "hex" | "regexp" | "integer" | "float" | "array" | "enum" | "date" | "any") | undefined;
|
|
99
|
+
message: string;
|
|
100
|
+
trigger: ("input" | "blur" | "change" | "focus") | ("input" | "blur" | "change" | "focus")[];
|
|
101
|
+
validator?: string | Fn<any, any> | undefined;
|
|
102
|
+
};
|
|
103
|
+
edit: {
|
|
104
|
+
show?: boolean | undefined;
|
|
105
|
+
disabled?: boolean | undefined;
|
|
106
|
+
readonly?: boolean | undefined;
|
|
107
|
+
};
|
|
108
|
+
} | {
|
|
109
|
+
input: "time";
|
|
110
|
+
label: string;
|
|
111
|
+
key: string;
|
|
112
|
+
placeholder: string;
|
|
113
|
+
span: number;
|
|
114
|
+
disabled: boolean;
|
|
115
|
+
readonly: boolean;
|
|
116
|
+
clearable: boolean;
|
|
117
|
+
rule: {
|
|
118
|
+
required: boolean;
|
|
119
|
+
type?: ("string" | "number" | "boolean" | "object" | "url" | "method" | "pattern" | "email" | "hex" | "regexp" | "integer" | "float" | "array" | "enum" | "date" | "any") | undefined;
|
|
120
|
+
message: string;
|
|
121
|
+
trigger: ("input" | "blur" | "change" | "focus") | ("input" | "blur" | "change" | "focus")[];
|
|
122
|
+
validator?: string | Fn<any, any> | undefined;
|
|
123
|
+
};
|
|
124
|
+
edit: {
|
|
125
|
+
show?: boolean | undefined;
|
|
126
|
+
disabled?: boolean | undefined;
|
|
127
|
+
readonly?: boolean | undefined;
|
|
128
|
+
};
|
|
129
|
+
} | {
|
|
130
|
+
input: "switch";
|
|
131
|
+
label: string;
|
|
132
|
+
key: string;
|
|
133
|
+
placeholder: string;
|
|
134
|
+
span: number;
|
|
135
|
+
disabled: boolean;
|
|
136
|
+
readonly: boolean;
|
|
137
|
+
clearable: boolean;
|
|
138
|
+
rule: {
|
|
139
|
+
required: boolean;
|
|
140
|
+
type?: ("string" | "number" | "boolean" | "object" | "url" | "method" | "pattern" | "email" | "hex" | "regexp" | "integer" | "float" | "array" | "enum" | "date" | "any") | undefined;
|
|
141
|
+
message: string;
|
|
142
|
+
trigger: ("input" | "blur" | "change" | "focus") | ("input" | "blur" | "change" | "focus")[];
|
|
143
|
+
validator?: string | Fn<any, any> | undefined;
|
|
144
|
+
};
|
|
145
|
+
edit: {
|
|
146
|
+
show?: boolean | undefined;
|
|
147
|
+
disabled?: boolean | undefined;
|
|
148
|
+
readonly?: boolean | undefined;
|
|
149
|
+
};
|
|
150
|
+
} | {
|
|
151
|
+
input: "upload";
|
|
152
|
+
accept: string;
|
|
153
|
+
max: number | null;
|
|
154
|
+
label: string;
|
|
155
|
+
key: string;
|
|
156
|
+
placeholder: string;
|
|
157
|
+
span: number;
|
|
158
|
+
disabled: boolean;
|
|
159
|
+
readonly: boolean;
|
|
160
|
+
clearable: boolean;
|
|
161
|
+
rule: {
|
|
162
|
+
required: boolean;
|
|
163
|
+
type?: ("string" | "number" | "boolean" | "object" | "url" | "method" | "pattern" | "email" | "hex" | "regexp" | "integer" | "float" | "array" | "enum" | "date" | "any") | undefined;
|
|
164
|
+
message: string;
|
|
165
|
+
trigger: ("input" | "blur" | "change" | "focus") | ("input" | "blur" | "change" | "focus")[];
|
|
166
|
+
validator?: string | Fn<any, any> | undefined;
|
|
167
|
+
};
|
|
168
|
+
edit: {
|
|
169
|
+
show?: boolean | undefined;
|
|
170
|
+
disabled?: boolean | undefined;
|
|
171
|
+
readonly?: boolean | undefined;
|
|
172
|
+
};
|
|
173
|
+
}>;
|
|
174
|
+
options: Ref<{
|
|
175
|
+
label: string;
|
|
176
|
+
value: string;
|
|
177
|
+
}[]>;
|
|
178
|
+
optionsA: Ref<{
|
|
179
|
+
label: string;
|
|
180
|
+
value: string;
|
|
181
|
+
}[]>;
|
|
182
|
+
optionsB: Ref<{
|
|
183
|
+
label: string;
|
|
184
|
+
value: string;
|
|
185
|
+
}[]>;
|
|
186
|
+
optionsInput: Ref<{
|
|
187
|
+
label: string;
|
|
188
|
+
value: string;
|
|
189
|
+
}[]>;
|
|
190
|
+
optionsDate: Ref<{
|
|
191
|
+
label: string;
|
|
192
|
+
value: string;
|
|
193
|
+
}[]>;
|
|
194
|
+
doSubmit: () => void;
|
|
195
|
+
doCancel: () => void;
|
|
196
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("on-update:value" | "update:cancel")[], "on-update:value" | "update:cancel", PublicProps, Readonly<ExtractPropTypes<{
|
|
197
|
+
value: {
|
|
198
|
+
type: PropType<IFormItem>;
|
|
199
|
+
default: undefined;
|
|
200
|
+
};
|
|
201
|
+
}>> & {
|
|
202
|
+
"onOn-update:value"?: ((...args: any[]) => any) | undefined;
|
|
203
|
+
"onUpdate:cancel"?: ((...args: any[]) => any) | undefined;
|
|
204
|
+
}, {
|
|
205
|
+
value: IFormItem;
|
|
206
|
+
}, {}>;
|
|
207
|
+
export default _default;
|