@unizhen/ui 0.0.1
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/README.md +39 -0
- package/lib/components/actionButton/factory.d.ts +41 -0
- package/lib/components/actionButton/function.d.ts +15 -0
- package/lib/components/actionButton/index.d.ts +4 -0
- package/lib/components/actionButton/index.vue.d.ts +60 -0
- package/lib/components/actionButton/interface.d.ts +23 -0
- package/lib/components/api.d.ts +6 -0
- package/lib/components/back/index.d.ts +1 -0
- package/lib/components/back/index.vue.d.ts +1503 -0
- package/lib/components/camera/index.d.ts +1 -0
- package/lib/components/camera/index.vue.d.ts +3484 -0
- package/lib/components/circle/index.d.ts +1 -0
- package/lib/components/circle/index.vue.d.ts +398 -0
- package/lib/components/common.d.ts +15 -0
- package/lib/components/components.d.ts +14 -0
- package/lib/components/create.d.ts +18 -0
- package/lib/components/fetch.d.ts +8 -0
- package/lib/components/form/draggable.vue.d.ts +24818 -0
- package/lib/components/form/image.vue.d.ts +885 -0
- package/lib/components/form/index.d.ts +6 -0
- package/lib/components/form/index.vue.d.ts +24742 -0
- package/lib/components/form/interface.d.ts +262 -0
- package/lib/components/form/item.vue.d.ts +17896 -0
- package/lib/components/form/upload.vue.d.ts +5901 -0
- package/lib/components/hooks/index.d.ts +4 -0
- package/lib/components/hooks/memoryCache.d.ts +50 -0
- package/lib/components/hooks/useDebounceFn.d.ts +15 -0
- package/lib/components/hooks/useLocalStorage.d.ts +29 -0
- package/lib/components/hooks/useQuery.d.ts +77 -0
- package/lib/components/hooks/useThrottleFn.d.ts +15 -0
- package/lib/components/icon/factory.d.ts +125 -0
- package/lib/components/icon/index.d.ts +4 -0
- package/lib/components/icon/index.vue.d.ts +17 -0
- package/lib/components/icon/svg/AccessPoint.vue.d.ts +3 -0
- package/lib/components/icon/svg/Activity.vue.d.ts +3 -0
- package/lib/components/icon/svg/Adjustments.vue.d.ts +3 -0
- package/lib/components/icon/svg/AdjustmentsHorizontal.vue.d.ts +3 -0
- package/lib/components/icon/svg/Affiliate.vue.d.ts +3 -0
- package/lib/components/icon/svg/Alarm.vue.d.ts +3 -0
- package/lib/components/icon/svg/AlertCircle.vue.d.ts +3 -0
- package/lib/components/icon/svg/ApiApp.vue.d.ts +3 -0
- package/lib/components/icon/svg/AppWindow.vue.d.ts +3 -0
- package/lib/components/icon/svg/Apps.vue.d.ts +3 -0
- package/lib/components/icon/svg/Archive.vue.d.ts +3 -0
- package/lib/components/icon/svg/ArrowNarrowLeft.vue.d.ts +3 -0
- package/lib/components/icon/svg/AspectRatio.vue.d.ts +3 -0
- package/lib/components/icon/svg/Atom.vue.d.ts +3 -0
- package/lib/components/icon/svg/Atom2.vue.d.ts +3 -0
- package/lib/components/icon/svg/Award.vue.d.ts +3 -0
- package/lib/components/icon/svg/Barcode.vue.d.ts +3 -0
- package/lib/components/icon/svg/Basket.vue.d.ts +3 -0
- package/lib/components/icon/svg/Bell.vue.d.ts +3 -0
- package/lib/components/icon/svg/Bluetooth.vue.d.ts +3 -0
- package/lib/components/icon/svg/Book2.vue.d.ts +3 -0
- package/lib/components/icon/svg/Books.vue.d.ts +3 -0
- package/lib/components/icon/svg/Box.vue.d.ts +3 -0
- package/lib/components/icon/svg/BrandAsana.vue.d.ts +3 -0
- package/lib/components/icon/svg/BrandStackoverflow.vue.d.ts +3 -0
- package/lib/components/icon/svg/Briefcase.vue.d.ts +3 -0
- package/lib/components/icon/svg/Building.vue.d.ts +3 -0
- package/lib/components/icon/svg/BuildingArch.vue.d.ts +3 -0
- package/lib/components/icon/svg/BuildingWarehouse.vue.d.ts +3 -0
- package/lib/components/icon/svg/Calculator.vue.d.ts +3 -0
- package/lib/components/icon/svg/Calendar.vue.d.ts +3 -0
- package/lib/components/icon/svg/CalendarPlus.vue.d.ts +3 -0
- package/lib/components/icon/svg/CalendarStats.vue.d.ts +3 -0
- package/lib/components/icon/svg/Camera.vue.d.ts +3 -0
- package/lib/components/icon/svg/CaretDown.vue.d.ts +3 -0
- package/lib/components/icon/svg/CaretUp.vue.d.ts +3 -0
- package/lib/components/icon/svg/ChartArea.vue.d.ts +3 -0
- package/lib/components/icon/svg/ChartBar.vue.d.ts +3 -0
- package/lib/components/icon/svg/ChartBubble.vue.d.ts +3 -0
- package/lib/components/icon/svg/ChartDonut.vue.d.ts +3 -0
- package/lib/components/icon/svg/ChartLine.vue.d.ts +3 -0
- package/lib/components/icon/svg/ChartPie.vue.d.ts +3 -0
- package/lib/components/icon/svg/ChartRadar.vue.d.ts +3 -0
- package/lib/components/icon/svg/Checkbox.vue.d.ts +3 -0
- package/lib/components/icon/svg/CheckupList.vue.d.ts +3 -0
- package/lib/components/icon/svg/CircleMinus.vue.d.ts +3 -0
- package/lib/components/icon/svg/Clipboard.vue.d.ts +3 -0
- package/lib/components/icon/svg/ClipboardCheck.vue.d.ts +3 -0
- package/lib/components/icon/svg/ClipboardList.vue.d.ts +3 -0
- package/lib/components/icon/svg/ClipboardPlus.vue.d.ts +3 -0
- package/lib/components/icon/svg/Clock.vue.d.ts +3 -0
- package/lib/components/icon/svg/Cloud.vue.d.ts +3 -0
- package/lib/components/icon/svg/CloudDownload.vue.d.ts +3 -0
- package/lib/components/icon/svg/CloudUpload.vue.d.ts +3 -0
- package/lib/components/icon/svg/Command.vue.d.ts +3 -0
- package/lib/components/icon/svg/Confetti.vue.d.ts +3 -0
- package/lib/components/icon/svg/Container.vue.d.ts +3 -0
- package/lib/components/icon/svg/Copy.vue.d.ts +3 -0
- package/lib/components/icon/svg/CreditCard.vue.d.ts +3 -0
- package/lib/components/icon/svg/Crosshair.vue.d.ts +3 -0
- package/lib/components/icon/svg/CurrencyYen.vue.d.ts +3 -0
- package/lib/components/icon/svg/Dashboard.vue.d.ts +3 -0
- package/lib/components/icon/svg/Database.vue.d.ts +3 -0
- package/lib/components/icon/svg/DatabaseExport.vue.d.ts +3 -0
- package/lib/components/icon/svg/DatabaseImport.vue.d.ts +3 -0
- package/lib/components/icon/svg/DeviceAnalytics.vue.d.ts +3 -0
- package/lib/components/icon/svg/DeviceDesktop.vue.d.ts +3 -0
- package/lib/components/icon/svg/DeviceDesktopAnalytics.vue.d.ts +3 -0
- package/lib/components/icon/svg/DeviceLaptop.vue.d.ts +3 -0
- package/lib/components/icon/svg/DeviceMobile.vue.d.ts +3 -0
- package/lib/components/icon/svg/Diamond.vue.d.ts +3 -0
- package/lib/components/icon/svg/Dots.vue.d.ts +3 -0
- package/lib/components/icon/svg/DotsVertical.vue.d.ts +3 -0
- package/lib/components/icon/svg/Edit.vue.d.ts +3 -0
- package/lib/components/icon/svg/Eraser.vue.d.ts +3 -0
- package/lib/components/icon/svg/Eye.vue.d.ts +3 -0
- package/lib/components/icon/svg/File.vue.d.ts +3 -0
- package/lib/components/icon/svg/FileAlert.vue.d.ts +3 -0
- package/lib/components/icon/svg/FileAnalytics.vue.d.ts +3 -0
- package/lib/components/icon/svg/FileText.vue.d.ts +3 -0
- package/lib/components/icon/svg/Filter.vue.d.ts +3 -0
- package/lib/components/icon/svg/GitCompare.vue.d.ts +3 -0
- package/lib/components/icon/svg/GitPullRequest.vue.d.ts +3 -0
- package/lib/components/icon/svg/GridDots.vue.d.ts +3 -0
- package/lib/components/icon/svg/Home.vue.d.ts +3 -0
- package/lib/components/icon/svg/Id.vue.d.ts +3 -0
- package/lib/components/icon/svg/LayoutSidebarLeftCollapse.vue.d.ts +3 -0
- package/lib/components/icon/svg/LayoutSidebarLeftExpand.vue.d.ts +3 -0
- package/lib/components/icon/svg/Link.vue.d.ts +3 -0
- package/lib/components/icon/svg/List.vue.d.ts +3 -0
- package/lib/components/icon/svg/ListCheck.vue.d.ts +3 -0
- package/lib/components/icon/svg/ListDetails.vue.d.ts +3 -0
- package/lib/components/icon/svg/Mail.vue.d.ts +3 -0
- package/lib/components/icon/svg/Map.vue.d.ts +3 -0
- package/lib/components/icon/svg/MapPin.vue.d.ts +3 -0
- package/lib/components/icon/svg/Menu2.vue.d.ts +3 -0
- package/lib/components/icon/svg/Message2.vue.d.ts +3 -0
- package/lib/components/icon/svg/MinusRound.vue.d.ts +3 -0
- package/lib/components/icon/svg/MoonStars.vue.d.ts +3 -0
- package/lib/components/icon/svg/Paperclip.vue.d.ts +3 -0
- package/lib/components/icon/svg/Photo.vue.d.ts +3 -0
- package/lib/components/icon/svg/PhotoOff.vue.d.ts +3 -0
- package/lib/components/icon/svg/Plus.vue.d.ts +3 -0
- package/lib/components/icon/svg/Presentation.vue.d.ts +3 -0
- package/lib/components/icon/svg/PresentationAnalytics.vue.d.ts +3 -0
- package/lib/components/icon/svg/Printer.vue.d.ts +3 -0
- package/lib/components/icon/svg/Qrcode.vue.d.ts +3 -0
- package/lib/components/icon/svg/Refresh.vue.d.ts +3 -0
- package/lib/components/icon/svg/Report.vue.d.ts +3 -0
- package/lib/components/icon/svg/ReportAnalytics.vue.d.ts +3 -0
- package/lib/components/icon/svg/ReportMoney.vue.d.ts +3 -0
- package/lib/components/icon/svg/ReportSearch.vue.d.ts +3 -0
- package/lib/components/icon/svg/Search.vue.d.ts +3 -0
- package/lib/components/icon/svg/Settings.vue.d.ts +3 -0
- package/lib/components/icon/svg/SmartHome.vue.d.ts +3 -0
- package/lib/components/icon/svg/Sun.vue.d.ts +3 -0
- package/lib/components/icon/svg/TransferIn.vue.d.ts +3 -0
- package/lib/components/icon/svg/TransferOut.vue.d.ts +3 -0
- package/lib/components/icon/svg/Trash.vue.d.ts +3 -0
- package/lib/components/icon/svg/User.vue.d.ts +3 -0
- package/lib/components/icon/svg/UserCircle.vue.d.ts +3 -0
- package/lib/components/icon/svg/UserMinus.vue.d.ts +3 -0
- package/lib/components/icon/svg/UserPlus.vue.d.ts +3 -0
- package/lib/components/icon/svg/Users.vue.d.ts +3 -0
- package/lib/components/icon/svg/X.vue.d.ts +3 -0
- package/lib/components/index.d.ts +11 -0
- package/lib/components/interface.d.ts +34 -0
- package/lib/components/local/en-US.d.ts +33 -0
- package/lib/components/local/index.d.ts +68 -0
- package/lib/components/local/zh-CN.d.ts +33 -0
- package/lib/components/localStorage.d.ts +13 -0
- package/lib/components/monitor.d.ts +2 -0
- package/lib/components/numberRoll/index.d.ts +1 -0
- package/lib/components/numberRoll/index.vue.d.ts +47 -0
- package/lib/components/preset.d.ts +5 -0
- package/lib/components/router.d.ts +3 -0
- package/lib/components/scale.d.ts +6 -0
- package/lib/components/searchBar/components/index.d.ts +1 -0
- package/lib/components/searchBar/components/timePickRange.vue.d.ts +2540 -0
- package/lib/components/searchBar/index.d.ts +3 -0
- package/lib/components/searchBar/index.vue.d.ts +22710 -0
- package/lib/components/searchBar/interface.d.ts +45 -0
- package/lib/components/searchBar/mobile.vue.d.ts +21554 -0
- package/lib/components/spin/index.d.ts +1 -0
- package/lib/components/spin/index.vue.d.ts +1806 -0
- package/lib/components/store/common.d.ts +13 -0
- package/lib/components/store/index.d.ts +2 -0
- package/lib/components/store/thumbnail.d.ts +29 -0
- package/lib/components/table/child.vue.d.ts +8391 -0
- package/lib/components/table/child_quest.vue.d.ts +6568 -0
- package/lib/components/table/drawer.vue.d.ts +5809 -0
- package/lib/components/table/factory.d.ts +220 -0
- package/lib/components/table/index.d.ts +7 -0
- package/lib/components/table/index.vue.d.ts +16622 -0
- package/lib/components/table/interface.d.ts +105 -0
- package/lib/components/table/list.vue.d.ts +36 -0
- package/lib/components/table/mobile.vue.d.ts +4080 -0
- package/lib/components/table/ocr.vue.d.ts +3454 -0
- package/lib/components/theme.d.ts +4 -0
- package/lib/components/thumbnail/index.d.ts +1 -0
- package/lib/components/thumbnail/index.vue.d.ts +4275 -0
- package/lib/components/version.d.ts +1 -0
- package/lib/components/wrap/index.d.ts +1 -0
- package/lib/components/wrap/index.vue.d.ts +223 -0
- package/lib/index.d.ts +6 -0
- package/lib/ui.css +1 -0
- package/lib/ui.js +10690 -0
- package/package.json +93 -0
- package/volar.d.ts +26 -0
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
import { Fn, ObjectKey } from '../interface';
|
|
2
|
+
import { VNodeChild } from 'vue';
|
|
3
|
+
import { SelectGroupOption } from 'naive-ui';
|
|
4
|
+
type SelectOption = any;
|
|
5
|
+
export interface IQxDataTableColumnType {
|
|
6
|
+
type?: 'selection' | 'expand';
|
|
7
|
+
multiple?: boolean;
|
|
8
|
+
options: string[];
|
|
9
|
+
}
|
|
10
|
+
export type SelectMixedOption = SelectOption | SelectGroupOption;
|
|
11
|
+
type InternalRowData = Record<string, unknown>;
|
|
12
|
+
type RuleType = 'string' | 'number' | 'boolean' | 'method' | 'regexp' | 'integer' | 'float' | 'array' | 'object' | 'enum' | 'date' | 'url' | 'hex' | 'email' | 'pattern' | 'any';
|
|
13
|
+
type RuleTrigger = 'input' | 'change' | 'blur' | 'focus';
|
|
14
|
+
export interface IForm {
|
|
15
|
+
input?: string;
|
|
16
|
+
label?: string | (() => string);
|
|
17
|
+
key?: string;
|
|
18
|
+
defaultValue?: string;
|
|
19
|
+
span: number;
|
|
20
|
+
show: boolean;
|
|
21
|
+
disabled: boolean;
|
|
22
|
+
readonly: boolean;
|
|
23
|
+
updateValue: string | Fn;
|
|
24
|
+
createButton: boolean;
|
|
25
|
+
backfill: boolean;
|
|
26
|
+
rule: {
|
|
27
|
+
required: boolean;
|
|
28
|
+
type: RuleType;
|
|
29
|
+
message: string;
|
|
30
|
+
trigger: RuleTrigger | Array<RuleTrigger>;
|
|
31
|
+
validator: string | Fn;
|
|
32
|
+
};
|
|
33
|
+
create: {
|
|
34
|
+
show: boolean;
|
|
35
|
+
disabled: boolean;
|
|
36
|
+
readonly: boolean;
|
|
37
|
+
};
|
|
38
|
+
edit: {
|
|
39
|
+
show: boolean;
|
|
40
|
+
disabled: boolean;
|
|
41
|
+
readonly: boolean;
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export interface ISearch {
|
|
45
|
+
show: boolean;
|
|
46
|
+
fuzzy: boolean;
|
|
47
|
+
defaultValue?: string;
|
|
48
|
+
source?: string;
|
|
49
|
+
type?: string;
|
|
50
|
+
labelKeys?: string;
|
|
51
|
+
valueKey?: string;
|
|
52
|
+
multiple: boolean;
|
|
53
|
+
tab: boolean;
|
|
54
|
+
}
|
|
55
|
+
export interface ITable<T = InternalRowData> {
|
|
56
|
+
align: 'left' | 'right' | 'center' | null;
|
|
57
|
+
titleAlign: 'left' | 'right' | 'center' | null;
|
|
58
|
+
fixed: 'left' | 'right' | false | null;
|
|
59
|
+
width: number | string | null;
|
|
60
|
+
resizable: boolean;
|
|
61
|
+
hide: boolean;
|
|
62
|
+
sorter: boolean;
|
|
63
|
+
show: boolean;
|
|
64
|
+
mobile: boolean;
|
|
65
|
+
lineBreak: boolean;
|
|
66
|
+
lineCol: number;
|
|
67
|
+
clamp: number;
|
|
68
|
+
ellipsis: boolean | {
|
|
69
|
+
tooltip: boolean;
|
|
70
|
+
'line-clamp': number | string;
|
|
71
|
+
};
|
|
72
|
+
render: string | ((rowData: T, rowIndex: number) => VNodeChild);
|
|
73
|
+
}
|
|
74
|
+
export interface IQxFormItemBase {
|
|
75
|
+
label: string | (() => string);
|
|
76
|
+
key: string;
|
|
77
|
+
dbType: string;
|
|
78
|
+
unique: number;
|
|
79
|
+
fieldValueRule?: string;
|
|
80
|
+
source: string;
|
|
81
|
+
sourceFn: string;
|
|
82
|
+
table: ITable;
|
|
83
|
+
form: IForm;
|
|
84
|
+
search: ISearch;
|
|
85
|
+
}
|
|
86
|
+
export interface IQxFormItemGroup extends IQxFormItemBase {
|
|
87
|
+
input: 'group';
|
|
88
|
+
params: {
|
|
89
|
+
placeholder: '';
|
|
90
|
+
children: IQxFormItem[];
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
export interface IQxFormItemInput extends IQxFormItemBase {
|
|
94
|
+
input: 'input';
|
|
95
|
+
params: {
|
|
96
|
+
placeholder: string;
|
|
97
|
+
clearable: boolean;
|
|
98
|
+
type: 'text' | 'password' | 'textarea';
|
|
99
|
+
minlength?: number | null;
|
|
100
|
+
maxlength?: number | null;
|
|
101
|
+
rows?: number | null;
|
|
102
|
+
prefix?: string;
|
|
103
|
+
suffix?: string;
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
export interface IQxFormItemAuto extends IQxFormItemBase {
|
|
107
|
+
input: 'auto';
|
|
108
|
+
params: {
|
|
109
|
+
placeholder: string;
|
|
110
|
+
clearable: boolean;
|
|
111
|
+
options: (() => Promise<any[]>) | any[];
|
|
112
|
+
type: 'text' | 'password' | 'textarea';
|
|
113
|
+
minlength?: number | null;
|
|
114
|
+
maxlength?: number | null;
|
|
115
|
+
rows?: number | null;
|
|
116
|
+
prefix?: string;
|
|
117
|
+
suffix?: string;
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
export interface IQxFormItemNumber extends IQxFormItemBase {
|
|
121
|
+
input: 'number';
|
|
122
|
+
params: {
|
|
123
|
+
placeholder: string;
|
|
124
|
+
clearable: boolean;
|
|
125
|
+
showButton?: boolean;
|
|
126
|
+
min?: number | null;
|
|
127
|
+
max?: number | null;
|
|
128
|
+
minKey?: string;
|
|
129
|
+
maxKey?: string;
|
|
130
|
+
step?: number | null;
|
|
131
|
+
precision?: number | null;
|
|
132
|
+
prefix?: string;
|
|
133
|
+
suffix?: string;
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
export interface IQxFormItemDatePicker extends IQxFormItemBase {
|
|
137
|
+
input: 'date';
|
|
138
|
+
params: {
|
|
139
|
+
placeholder: string;
|
|
140
|
+
clearable: boolean;
|
|
141
|
+
type: 'date' | 'datetime' | 'daterange' | 'datetimerange' | 'month' | 'monthrange' | 'year' | 'yearrange' | 'quarter' | 'quarterrange' | 'week';
|
|
142
|
+
format?: string;
|
|
143
|
+
isDateDisabled?: ((ts: number, detail: ObjectKey) => boolean) | string;
|
|
144
|
+
timePickerProps?: {
|
|
145
|
+
format?: string;
|
|
146
|
+
use12Hours?: boolean;
|
|
147
|
+
isHourDisabled?: (hour: number) => boolean;
|
|
148
|
+
isMinuteDisabled?: (minute: number, hour: number | null) => boolean;
|
|
149
|
+
isSecondDisabled?: (second: number, minute: number | null, hour: number | null) => boolean;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
export interface IQxFormItemSelect extends IQxFormItemBase {
|
|
154
|
+
input: 'select';
|
|
155
|
+
params: {
|
|
156
|
+
placeholder: string;
|
|
157
|
+
clearable: boolean;
|
|
158
|
+
options: (() => Promise<any[]>) | any[];
|
|
159
|
+
filterable?: boolean;
|
|
160
|
+
multiple?: boolean;
|
|
161
|
+
tag?: boolean;
|
|
162
|
+
labelKeys?: string;
|
|
163
|
+
valueKey?: string;
|
|
164
|
+
renderLabel?: (option: ObjectKey, selected: boolean) => VNodeChild;
|
|
165
|
+
renderTag?: (props: {
|
|
166
|
+
option: ObjectKey;
|
|
167
|
+
handleClose: () => void;
|
|
168
|
+
}) => VNodeChild;
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
export interface IQxFormItemCascader extends IQxFormItemBase {
|
|
172
|
+
input: 'cascader';
|
|
173
|
+
params: {
|
|
174
|
+
placeholder: string;
|
|
175
|
+
clearable: boolean;
|
|
176
|
+
options: (() => Promise<any[]>) | any[];
|
|
177
|
+
filterable?: boolean;
|
|
178
|
+
multiple?: boolean;
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
export interface IQxFormItemColor extends IQxFormItemBase {
|
|
182
|
+
input: 'color';
|
|
183
|
+
params: {
|
|
184
|
+
placeholder: string;
|
|
185
|
+
clearable: boolean;
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
export interface IQxFormItemCheckbox extends IQxFormItemBase {
|
|
189
|
+
input: 'checkbox';
|
|
190
|
+
params: {
|
|
191
|
+
placeholder: string;
|
|
192
|
+
clearable: boolean;
|
|
193
|
+
options: (() => Promise<Array<ObjectKey>>) | Array<ObjectKey>;
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
export interface IQxFormItemTime extends IQxFormItemBase {
|
|
197
|
+
input: 'time';
|
|
198
|
+
params: {
|
|
199
|
+
placeholder: string;
|
|
200
|
+
clearable: boolean;
|
|
201
|
+
format?: string;
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
export interface IQxFormItemUpload extends IQxFormItemBase {
|
|
205
|
+
input: 'upload';
|
|
206
|
+
params: {
|
|
207
|
+
placeholder: string;
|
|
208
|
+
clearable: boolean;
|
|
209
|
+
small?: boolean;
|
|
210
|
+
accept?: string;
|
|
211
|
+
max?: number | null;
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
export interface IQxFormItemSwitch extends IQxFormItemBase {
|
|
215
|
+
input: 'switch';
|
|
216
|
+
params: {
|
|
217
|
+
placeholder: string;
|
|
218
|
+
clearable: boolean;
|
|
219
|
+
checked?: string;
|
|
220
|
+
unchecked?: string;
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
export interface IQxFormItemDivider extends IQxFormItemBase {
|
|
224
|
+
input: 'divider';
|
|
225
|
+
params: {
|
|
226
|
+
placeholder: string;
|
|
227
|
+
clearable: boolean;
|
|
228
|
+
placement: 'left' | 'right' | 'center';
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
export interface IQxFormItemFilling extends IQxFormItemBase {
|
|
232
|
+
input: 'filling';
|
|
233
|
+
params: {
|
|
234
|
+
placeholder: string;
|
|
235
|
+
clearable: boolean;
|
|
236
|
+
parentKey: string;
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
export interface IQxFormItemSubTable extends IQxFormItemBase {
|
|
240
|
+
input: 'subTable';
|
|
241
|
+
params: {
|
|
242
|
+
placeholder: string;
|
|
243
|
+
clearable: boolean;
|
|
244
|
+
init: boolean;
|
|
245
|
+
quest: boolean;
|
|
246
|
+
draggable: boolean;
|
|
247
|
+
childActions: boolean;
|
|
248
|
+
showDelete: boolean;
|
|
249
|
+
searchKey: string;
|
|
250
|
+
link: string;
|
|
251
|
+
columns: any[];
|
|
252
|
+
actions: any[];
|
|
253
|
+
addButton: boolean;
|
|
254
|
+
optionsType?: string;
|
|
255
|
+
options?: string;
|
|
256
|
+
summary?: string | ((pageData: any) => any);
|
|
257
|
+
deleteFn?: string;
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
export type IQxFormItem = IQxFormItemGroup | IQxFormItemInput | IQxFormItemAuto | IQxFormItemNumber | IQxFormItemDatePicker | IQxFormItemSelect | IQxFormItemCascader | IQxFormItemTime | IQxFormItemColor | IQxFormItemSwitch | IQxFormItemUpload | IQxFormItemDivider | IQxFormItemCheckbox | IQxFormItemSubTable | IQxFormItemFilling;
|
|
261
|
+
export type IQxFormItems = IQxFormItem[];
|
|
262
|
+
export {};
|