el-plus-crud 0.0.11 → 0.0.12
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/CHANGELOG.md +2 -0
- package/build.js +31 -9
- package/dist/components/el-plus-form/ElPlusForm.vue.d.ts +320 -0
- package/dist/components/el-plus-form/ElPlusFormDialog.vue.d.ts +74 -0
- package/dist/components/el-plus-form/components/ElPlusFormArea.vue.d.ts +44 -0
- package/dist/components/el-plus-form/components/ElPlusFormAutocomplete.vue.d.ts +55 -0
- package/dist/components/el-plus-form/components/ElPlusFormBtn.vue.d.ts +44 -0
- package/dist/components/el-plus-form/components/ElPlusFormBtns.vue.d.ts +42 -0
- package/dist/components/el-plus-form/components/ElPlusFormCascader.vue.d.ts +44 -0
- package/dist/components/el-plus-form/components/ElPlusFormCascaderPanel.vue.d.ts +51 -0
- package/dist/components/el-plus-form/components/ElPlusFormCheckbox.vue.d.ts +44 -0
- package/dist/components/el-plus-form/components/ElPlusFormCheckboxButton.vue.d.ts +44 -0
- package/dist/components/el-plus-form/components/ElPlusFormColor.vue.d.ts +44 -0
- package/dist/components/el-plus-form/components/ElPlusFormDate.vue.d.ts +44 -0
- package/dist/components/el-plus-form/components/ElPlusFormDaterange.vue.d.ts +51 -0
- package/dist/components/el-plus-form/components/ElPlusFormDatetime.vue.d.ts +44 -0
- package/dist/components/el-plus-form/components/ElPlusFormFile.vue.d.ts +48 -0
- package/dist/components/el-plus-form/components/ElPlusFormImage.vue.d.ts +48 -0
- package/dist/components/el-plus-form/components/ElPlusFormInput.vue.d.ts +50 -0
- package/dist/components/el-plus-form/components/ElPlusFormLink.vue.d.ts +53 -0
- package/dist/components/el-plus-form/components/ElPlusFormNbinput.vue.d.ts +61 -0
- package/dist/components/el-plus-form/components/ElPlusFormNumber.vue.d.ts +57 -0
- package/dist/components/el-plus-form/components/ElPlusFormQuickInput.vue.d.ts +51 -0
- package/dist/components/el-plus-form/components/ElPlusFormRadio.vue.d.ts +44 -0
- package/dist/components/el-plus-form/components/ElPlusFormRate.vue.d.ts +44 -0
- package/dist/components/el-plus-form/components/ElPlusFormSelect.vue.d.ts +56 -0
- package/dist/components/el-plus-form/components/ElPlusFormSlider.vue.d.ts +44 -0
- package/dist/components/el-plus-form/components/ElPlusFormStatus.vue.d.ts +44 -0
- package/dist/components/el-plus-form/components/ElPlusFormSwitch.vue.d.ts +50 -0
- package/dist/components/el-plus-form/components/ElPlusFormTag.vue.d.ts +48 -0
- package/dist/components/el-plus-form/components/ElPlusFormText.vue.d.ts +48 -0
- package/dist/components/el-plus-form/components/ElPlusFormTextarea.vue.d.ts +51 -0
- package/dist/components/el-plus-form/components/ElPlusFormTransfer.vue.d.ts +57 -0
- package/dist/components/el-plus-form/components/ElPlusFormTree.vue.d.ts +50 -0
- package/dist/components/el-plus-form/components/ElPlusFormTreeSelect.vue.d.ts +50 -0
- package/dist/components/el-plus-form/components/ElPlusFormUpload.vue.d.ts +51 -0
- package/dist/components/el-plus-form/components/components/file-icons/FileIcons.vue.d.ts +42 -0
- package/dist/components/el-plus-form/components/components/file-icons/data/index.d.ts +15 -0
- package/dist/components/el-plus-form/components/index.d.ts +3 -0
- package/dist/components/el-plus-form/data/file.d.ts +63 -0
- package/dist/components/el-plus-form/mixins/index.d.ts +28 -0
- package/dist/components/el-plus-form/util/index.d.ts +47 -0
- package/dist/components/el-plus-form/util/validate.d.ts +253 -0
- package/dist/components/el-plus-table/ElPlusTable.vue.d.ts +155 -0
- package/dist/components/el-plus-table/components/columnItem.vue.d.ts +42 -0
- package/dist/components/el-plus-table/components/header.vue.d.ts +93 -0
- package/dist/components/el-plus-table/components/settingColumn.vue.d.ts +28 -0
- package/dist/components/el-plus-table/util/index.d.ts +26 -0
- package/dist/components-list.d.ts +2 -0
- package/dist/config/index.d.ts +2 -0
- package/dist/el-plus-crud.mjs +6968 -0
- package/dist/el-plus-crud.umd.js +27 -0
- package/dist/index.d.ts +11 -0
- package/dist/style.css +1 -1
- package/lib/components/el-plus-form/ElPlusForm.vue +20 -8
- package/lib/components/el-plus-form/ElPlusFormDialog.vue +107 -107
- package/lib/components/el-plus-form/components/ElPlusFormArea.vue +59 -0
- package/lib/components/el-plus-form/components/ElPlusFormAutocomplete.vue +49 -49
- package/lib/components/el-plus-form/components/ElPlusFormBtn.vue +1 -1
- package/lib/components/el-plus-form/components/ElPlusFormBtns.vue +133 -133
- package/lib/components/el-plus-form/components/ElPlusFormCascader.vue +25 -2
- package/lib/components/el-plus-form/components/ElPlusFormCascaderPanel.vue +51 -51
- package/lib/components/el-plus-form/components/ElPlusFormCheckbox.vue +42 -42
- package/lib/components/el-plus-form/components/ElPlusFormCheckboxButton.vue +42 -42
- package/lib/components/el-plus-form/components/ElPlusFormColor.vue +38 -38
- package/lib/components/el-plus-form/components/ElPlusFormDate.vue +3 -1
- package/lib/components/el-plus-form/components/ElPlusFormDaterange.vue +44 -44
- package/lib/components/el-plus-form/components/ElPlusFormDatetime.vue +38 -38
- package/lib/components/el-plus-form/components/ElPlusFormFile.vue +1 -1
- package/lib/components/el-plus-form/components/ElPlusFormImage.vue +113 -113
- package/lib/components/el-plus-form/components/ElPlusFormInput.vue +4 -2
- package/lib/components/el-plus-form/components/ElPlusFormLink.vue +20 -10
- package/lib/components/el-plus-form/components/ElPlusFormNbinput.vue +51 -51
- package/lib/components/el-plus-form/components/ElPlusFormNumber.vue +37 -6
- package/lib/components/el-plus-form/components/ElPlusFormQuickInput.vue +92 -0
- package/lib/components/el-plus-form/components/ElPlusFormRadio.vue +42 -42
- package/lib/components/el-plus-form/components/ElPlusFormRate.vue +38 -38
- package/lib/components/el-plus-form/components/ElPlusFormSelect.vue +16 -4
- package/lib/components/el-plus-form/components/ElPlusFormSlider.vue +38 -38
- package/lib/components/el-plus-form/components/ElPlusFormStatus.vue +67 -67
- package/lib/components/el-plus-form/components/ElPlusFormSwitch.vue +38 -38
- package/lib/components/el-plus-form/components/ElPlusFormTag.vue +78 -78
- package/lib/components/el-plus-form/components/ElPlusFormText.vue +0 -16
- package/lib/components/el-plus-form/components/ElPlusFormTextarea.vue +4 -2
- package/lib/components/el-plus-form/components/ElPlusFormTransfer.vue +44 -44
- package/lib/components/el-plus-form/components/ElPlusFormTree.vue +53 -53
- package/lib/components/el-plus-form/components/ElPlusFormTreeSelect.vue +36 -36
- package/lib/components/el-plus-form/components/ElPlusFormUpload.vue +362 -0
- package/lib/components/el-plus-form/components/components/file-icons/images/doc.svg +12 -12
- package/lib/components/el-plus-form/components/components/file-icons/images/file.svg +18 -18
- package/lib/components/el-plus-form/components/components/file-icons/images/jpg.svg +13 -13
- package/lib/components/el-plus-form/components/components/file-icons/images/pdf.svg +12 -12
- package/lib/components/el-plus-form/components/components/file-icons/images/png.svg +12 -12
- package/lib/components/el-plus-form/components/components/file-icons/images/ppt.svg +12 -12
- package/lib/components/el-plus-form/components/components/file-icons/images/xls.svg +12 -12
- package/lib/components/el-plus-form/components/index.js +17 -0
- package/lib/components/el-plus-form/components/index.ts +17 -17
- package/lib/components/el-plus-form/data/file.ts +74 -74
- package/lib/components/el-plus-form/mixins/index.ts +113 -113
- package/lib/components/el-plus-form/util/index.ts +0 -9
- package/lib/components/el-plus-form/util/validate.ts +310 -310
- package/lib/components/el-plus-table/ElPlusTable.vue +28 -14
- package/lib/components/el-plus-table/components/columnItem.vue +22 -3
- package/lib/components/el-plus-table/components/header.vue +57 -37
- package/lib/components/el-plus-table/components/settingColumn.vue +6 -4
- package/lib/components/el-plus-table/util/index.ts +24 -0
- package/lib/components-list.ts +67 -0
- package/lib/config/index.ts +29 -9
- package/lib/default.d.ts +4 -4
- package/lib/index.ts +9 -84
- package/package.json +6 -4
- package/types/formList.d.ts +44 -3
- package/vite.config.ts +12 -2
- package/dist/el-plus-crud.umd.cjs +0 -27
- package/lib/components/el-plus-form/components/ElPlusFormPassword.vue +0 -39
- package/lib/components/el-plus-form/components/components/IconSelectorList.vue +0 -92
- package/lib/config/form.ts +0 -12
- package/lib/index.d.ts +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.0.12](https://github.com/KDJack/el-plus-crud/compare/v0.0.11...v0.0.12) (2023-07-10)
|
|
6
|
+
|
|
5
7
|
### [0.0.11](https://github.com/KDJack/el-plus-crud/compare/v0.0.10...v0.0.11) (2023-07-10)
|
|
6
8
|
|
|
7
9
|
### [0.0.10](https://github.com/KDJack/el-plus-crud/compare/v0.0.9...v0.0.10) (2023-07-10)
|
package/build.js
CHANGED
|
@@ -1,9 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
var fs = require('fs')
|
|
2
|
+
const { join } = require('path')
|
|
3
|
+
|
|
4
|
+
var tempStr = "import ${name} from './components/el-plus-form/components/${name}.vue'\n"
|
|
5
|
+
var componentsPath = './lib/components/el-plus-form/components'
|
|
6
|
+
|
|
7
|
+
var fileStr = ''
|
|
8
|
+
|
|
9
|
+
let files = fs.readdirSync(componentsPath)
|
|
10
|
+
const compList = []
|
|
11
|
+
|
|
12
|
+
files.forEach(function (item) {
|
|
13
|
+
let stat = fs.statSync(join(componentsPath, item))
|
|
14
|
+
if (stat.isFile() === true && item.indexOf('.vue') >= 0) {
|
|
15
|
+
compList.push(item.replace('.vue', ''))
|
|
16
|
+
}
|
|
17
|
+
})
|
|
18
|
+
|
|
19
|
+
compList.map((name) => {
|
|
20
|
+
fileStr += tempStr.replaceAll('${name}', name)
|
|
21
|
+
})
|
|
22
|
+
fileStr += '\nexport default [\n'
|
|
23
|
+
compList.map((name) => {
|
|
24
|
+
fileStr += ` ${name},\n`
|
|
25
|
+
})
|
|
26
|
+
|
|
27
|
+
fileStr += '] as any[]'
|
|
28
|
+
|
|
29
|
+
// eslint-disable-next-line no-console
|
|
30
|
+
console.log(`写入components-list......`)
|
|
31
|
+
fs.writeFileSync('./lib/components-list.ts', fileStr)
|
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
export interface IFormProps {
|
|
2
|
+
formDesc?: IFormDesc | null;
|
|
3
|
+
modelValue?: {
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
} | {};
|
|
6
|
+
formAttrs?: {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
};
|
|
9
|
+
rules?: {
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
} | null;
|
|
12
|
+
isLoading?: boolean;
|
|
13
|
+
requestFn?: Function | null;
|
|
14
|
+
updateFn?: Function | null;
|
|
15
|
+
showBtns?: boolean;
|
|
16
|
+
showSubmit?: boolean;
|
|
17
|
+
submitBtnText?: string;
|
|
18
|
+
showCancel?: boolean;
|
|
19
|
+
cancelBtnText?: string;
|
|
20
|
+
showReset?: boolean;
|
|
21
|
+
resetBtnText?: string;
|
|
22
|
+
showLabel?: boolean;
|
|
23
|
+
labelWidth?: number | string;
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
readonly?: boolean;
|
|
26
|
+
isDialog?: boolean;
|
|
27
|
+
optionsFn?: Function | null;
|
|
28
|
+
size?: string;
|
|
29
|
+
column?: number;
|
|
30
|
+
isTable?: boolean;
|
|
31
|
+
idKey?: string;
|
|
32
|
+
maxWidth?: string;
|
|
33
|
+
}
|
|
34
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
35
|
+
size: {
|
|
36
|
+
type: import("vue").PropType<string>;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
formDesc: {
|
|
40
|
+
type: import("vue").PropType<IFormDesc | null>;
|
|
41
|
+
default: null;
|
|
42
|
+
};
|
|
43
|
+
modelValue: {
|
|
44
|
+
type: import("vue").PropType<{} | {
|
|
45
|
+
[key: string]: any;
|
|
46
|
+
}>;
|
|
47
|
+
default: () => {};
|
|
48
|
+
};
|
|
49
|
+
formAttrs: {
|
|
50
|
+
type: import("vue").PropType<{
|
|
51
|
+
[key: string]: any;
|
|
52
|
+
}>;
|
|
53
|
+
default: () => {};
|
|
54
|
+
};
|
|
55
|
+
rules: {
|
|
56
|
+
type: import("vue").PropType<{
|
|
57
|
+
[key: string]: any;
|
|
58
|
+
} | null>;
|
|
59
|
+
default: null;
|
|
60
|
+
};
|
|
61
|
+
isLoading: {
|
|
62
|
+
type: import("vue").PropType<boolean>;
|
|
63
|
+
default: boolean;
|
|
64
|
+
};
|
|
65
|
+
requestFn: {
|
|
66
|
+
type: import("vue").PropType<Function | null>;
|
|
67
|
+
default: null;
|
|
68
|
+
};
|
|
69
|
+
updateFn: {
|
|
70
|
+
type: import("vue").PropType<Function | null>;
|
|
71
|
+
default: null;
|
|
72
|
+
};
|
|
73
|
+
showBtns: {
|
|
74
|
+
type: import("vue").PropType<boolean>;
|
|
75
|
+
default: boolean;
|
|
76
|
+
};
|
|
77
|
+
showSubmit: {
|
|
78
|
+
type: import("vue").PropType<boolean>;
|
|
79
|
+
default: boolean;
|
|
80
|
+
};
|
|
81
|
+
submitBtnText: {
|
|
82
|
+
type: import("vue").PropType<string>;
|
|
83
|
+
default: string;
|
|
84
|
+
};
|
|
85
|
+
showCancel: {
|
|
86
|
+
type: import("vue").PropType<boolean>;
|
|
87
|
+
default: boolean;
|
|
88
|
+
};
|
|
89
|
+
cancelBtnText: {
|
|
90
|
+
type: import("vue").PropType<string>;
|
|
91
|
+
default: string;
|
|
92
|
+
};
|
|
93
|
+
showReset: {
|
|
94
|
+
type: import("vue").PropType<boolean>;
|
|
95
|
+
default: boolean;
|
|
96
|
+
};
|
|
97
|
+
resetBtnText: {
|
|
98
|
+
type: import("vue").PropType<string>;
|
|
99
|
+
default: string;
|
|
100
|
+
};
|
|
101
|
+
showLabel: {
|
|
102
|
+
type: import("vue").PropType<boolean>;
|
|
103
|
+
default: boolean;
|
|
104
|
+
};
|
|
105
|
+
labelWidth: {
|
|
106
|
+
type: import("vue").PropType<string | number>;
|
|
107
|
+
default: string;
|
|
108
|
+
};
|
|
109
|
+
disabled: {
|
|
110
|
+
type: import("vue").PropType<boolean>;
|
|
111
|
+
default: boolean;
|
|
112
|
+
};
|
|
113
|
+
readonly: {
|
|
114
|
+
type: import("vue").PropType<boolean>;
|
|
115
|
+
default: boolean;
|
|
116
|
+
};
|
|
117
|
+
isDialog: {
|
|
118
|
+
type: import("vue").PropType<boolean>;
|
|
119
|
+
default: boolean;
|
|
120
|
+
};
|
|
121
|
+
optionsFn: {
|
|
122
|
+
type: import("vue").PropType<Function | null>;
|
|
123
|
+
default: null;
|
|
124
|
+
};
|
|
125
|
+
column: {
|
|
126
|
+
type: import("vue").PropType<number>;
|
|
127
|
+
default: number;
|
|
128
|
+
};
|
|
129
|
+
isTable: {
|
|
130
|
+
type: import("vue").PropType<boolean>;
|
|
131
|
+
default: boolean;
|
|
132
|
+
};
|
|
133
|
+
idKey: {
|
|
134
|
+
type: import("vue").PropType<string>;
|
|
135
|
+
default: string;
|
|
136
|
+
};
|
|
137
|
+
maxWidth: {
|
|
138
|
+
type: import("vue").PropType<string>;
|
|
139
|
+
};
|
|
140
|
+
}, {
|
|
141
|
+
submit: () => Promise<void>;
|
|
142
|
+
getData: () => {
|
|
143
|
+
[key: string]: any;
|
|
144
|
+
};
|
|
145
|
+
validate: () => Promise<unknown>;
|
|
146
|
+
reset: () => void;
|
|
147
|
+
clearValid: () => void;
|
|
148
|
+
clear: () => void;
|
|
149
|
+
changeValidImg: () => void;
|
|
150
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("request" | "reset" | "cancel")[], "request" | "reset" | "cancel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
151
|
+
size: {
|
|
152
|
+
type: import("vue").PropType<string>;
|
|
153
|
+
default: string;
|
|
154
|
+
};
|
|
155
|
+
formDesc: {
|
|
156
|
+
type: import("vue").PropType<IFormDesc | null>;
|
|
157
|
+
default: null;
|
|
158
|
+
};
|
|
159
|
+
modelValue: {
|
|
160
|
+
type: import("vue").PropType<{} | {
|
|
161
|
+
[key: string]: any;
|
|
162
|
+
}>;
|
|
163
|
+
default: () => {};
|
|
164
|
+
};
|
|
165
|
+
formAttrs: {
|
|
166
|
+
type: import("vue").PropType<{
|
|
167
|
+
[key: string]: any;
|
|
168
|
+
}>;
|
|
169
|
+
default: () => {};
|
|
170
|
+
};
|
|
171
|
+
rules: {
|
|
172
|
+
type: import("vue").PropType<{
|
|
173
|
+
[key: string]: any;
|
|
174
|
+
} | null>;
|
|
175
|
+
default: null;
|
|
176
|
+
};
|
|
177
|
+
isLoading: {
|
|
178
|
+
type: import("vue").PropType<boolean>;
|
|
179
|
+
default: boolean;
|
|
180
|
+
};
|
|
181
|
+
requestFn: {
|
|
182
|
+
type: import("vue").PropType<Function | null>;
|
|
183
|
+
default: null;
|
|
184
|
+
};
|
|
185
|
+
updateFn: {
|
|
186
|
+
type: import("vue").PropType<Function | null>;
|
|
187
|
+
default: null;
|
|
188
|
+
};
|
|
189
|
+
showBtns: {
|
|
190
|
+
type: import("vue").PropType<boolean>;
|
|
191
|
+
default: boolean;
|
|
192
|
+
};
|
|
193
|
+
showSubmit: {
|
|
194
|
+
type: import("vue").PropType<boolean>;
|
|
195
|
+
default: boolean;
|
|
196
|
+
};
|
|
197
|
+
submitBtnText: {
|
|
198
|
+
type: import("vue").PropType<string>;
|
|
199
|
+
default: string;
|
|
200
|
+
};
|
|
201
|
+
showCancel: {
|
|
202
|
+
type: import("vue").PropType<boolean>;
|
|
203
|
+
default: boolean;
|
|
204
|
+
};
|
|
205
|
+
cancelBtnText: {
|
|
206
|
+
type: import("vue").PropType<string>;
|
|
207
|
+
default: string;
|
|
208
|
+
};
|
|
209
|
+
showReset: {
|
|
210
|
+
type: import("vue").PropType<boolean>;
|
|
211
|
+
default: boolean;
|
|
212
|
+
};
|
|
213
|
+
resetBtnText: {
|
|
214
|
+
type: import("vue").PropType<string>;
|
|
215
|
+
default: string;
|
|
216
|
+
};
|
|
217
|
+
showLabel: {
|
|
218
|
+
type: import("vue").PropType<boolean>;
|
|
219
|
+
default: boolean;
|
|
220
|
+
};
|
|
221
|
+
labelWidth: {
|
|
222
|
+
type: import("vue").PropType<string | number>;
|
|
223
|
+
default: string;
|
|
224
|
+
};
|
|
225
|
+
disabled: {
|
|
226
|
+
type: import("vue").PropType<boolean>;
|
|
227
|
+
default: boolean;
|
|
228
|
+
};
|
|
229
|
+
readonly: {
|
|
230
|
+
type: import("vue").PropType<boolean>;
|
|
231
|
+
default: boolean;
|
|
232
|
+
};
|
|
233
|
+
isDialog: {
|
|
234
|
+
type: import("vue").PropType<boolean>;
|
|
235
|
+
default: boolean;
|
|
236
|
+
};
|
|
237
|
+
optionsFn: {
|
|
238
|
+
type: import("vue").PropType<Function | null>;
|
|
239
|
+
default: null;
|
|
240
|
+
};
|
|
241
|
+
column: {
|
|
242
|
+
type: import("vue").PropType<number>;
|
|
243
|
+
default: number;
|
|
244
|
+
};
|
|
245
|
+
isTable: {
|
|
246
|
+
type: import("vue").PropType<boolean>;
|
|
247
|
+
default: boolean;
|
|
248
|
+
};
|
|
249
|
+
idKey: {
|
|
250
|
+
type: import("vue").PropType<string>;
|
|
251
|
+
default: string;
|
|
252
|
+
};
|
|
253
|
+
maxWidth: {
|
|
254
|
+
type: import("vue").PropType<string>;
|
|
255
|
+
};
|
|
256
|
+
}>> & {
|
|
257
|
+
onReset?: ((...args: any[]) => any) | undefined;
|
|
258
|
+
onRequest?: ((...args: any[]) => any) | undefined;
|
|
259
|
+
onCancel?: ((...args: any[]) => any) | undefined;
|
|
260
|
+
}, {
|
|
261
|
+
size: string;
|
|
262
|
+
formDesc: IFormDesc | null;
|
|
263
|
+
modelValue: {} | {
|
|
264
|
+
[key: string]: any;
|
|
265
|
+
};
|
|
266
|
+
formAttrs: {
|
|
267
|
+
[key: string]: any;
|
|
268
|
+
};
|
|
269
|
+
rules: {
|
|
270
|
+
[key: string]: any;
|
|
271
|
+
} | null;
|
|
272
|
+
isLoading: boolean;
|
|
273
|
+
requestFn: Function | null;
|
|
274
|
+
updateFn: Function | null;
|
|
275
|
+
showBtns: boolean;
|
|
276
|
+
showSubmit: boolean;
|
|
277
|
+
submitBtnText: string;
|
|
278
|
+
showCancel: boolean;
|
|
279
|
+
cancelBtnText: string;
|
|
280
|
+
showReset: boolean;
|
|
281
|
+
resetBtnText: string;
|
|
282
|
+
showLabel: boolean;
|
|
283
|
+
labelWidth: string | number;
|
|
284
|
+
disabled: boolean;
|
|
285
|
+
readonly: boolean;
|
|
286
|
+
isDialog: boolean;
|
|
287
|
+
optionsFn: Function | null;
|
|
288
|
+
column: number;
|
|
289
|
+
isTable: boolean;
|
|
290
|
+
idKey: string;
|
|
291
|
+
}, {}>, {
|
|
292
|
+
top?(_: {
|
|
293
|
+
formData: {} | {
|
|
294
|
+
[key: string]: any;
|
|
295
|
+
};
|
|
296
|
+
}): any;
|
|
297
|
+
row?(_: {}): any;
|
|
298
|
+
default?(_: {}): any;
|
|
299
|
+
"form-btn"?(_: {
|
|
300
|
+
data: {} | {
|
|
301
|
+
[key: string]: any;
|
|
302
|
+
};
|
|
303
|
+
}): any;
|
|
304
|
+
bottom?(_: {
|
|
305
|
+
formData: {} | {
|
|
306
|
+
[key: string]: any;
|
|
307
|
+
};
|
|
308
|
+
}): any;
|
|
309
|
+
"form-footer"?(_: {
|
|
310
|
+
formData: {} | {
|
|
311
|
+
[key: string]: any;
|
|
312
|
+
};
|
|
313
|
+
}): any;
|
|
314
|
+
}>;
|
|
315
|
+
export default _default;
|
|
316
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
317
|
+
new (): {
|
|
318
|
+
$slots: S;
|
|
319
|
+
};
|
|
320
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
2
|
+
title: {
|
|
3
|
+
type: import("vue").PropType<string>;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
modelValue: {
|
|
7
|
+
type: import("vue").PropType<{} | {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}>;
|
|
10
|
+
default: () => {};
|
|
11
|
+
};
|
|
12
|
+
success: {
|
|
13
|
+
type: import("vue").PropType<Function>;
|
|
14
|
+
};
|
|
15
|
+
show: {
|
|
16
|
+
type: import("vue").PropType<boolean>;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
tableRef: {
|
|
20
|
+
type: import("vue").PropType<any>;
|
|
21
|
+
};
|
|
22
|
+
successTip: {
|
|
23
|
+
type: import("vue").PropType<string>;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
}, {
|
|
27
|
+
open: () => void;
|
|
28
|
+
close: () => void;
|
|
29
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:show" | "update:modelValue")[], "update:show" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
30
|
+
title: {
|
|
31
|
+
type: import("vue").PropType<string>;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
modelValue: {
|
|
35
|
+
type: import("vue").PropType<{} | {
|
|
36
|
+
[key: string]: any;
|
|
37
|
+
}>;
|
|
38
|
+
default: () => {};
|
|
39
|
+
};
|
|
40
|
+
success: {
|
|
41
|
+
type: import("vue").PropType<Function>;
|
|
42
|
+
};
|
|
43
|
+
show: {
|
|
44
|
+
type: import("vue").PropType<boolean>;
|
|
45
|
+
default: boolean;
|
|
46
|
+
};
|
|
47
|
+
tableRef: {
|
|
48
|
+
type: import("vue").PropType<any>;
|
|
49
|
+
};
|
|
50
|
+
successTip: {
|
|
51
|
+
type: import("vue").PropType<string>;
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
}>> & {
|
|
55
|
+
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
56
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
57
|
+
}, {
|
|
58
|
+
title: string;
|
|
59
|
+
modelValue: {} | {
|
|
60
|
+
[key: string]: any;
|
|
61
|
+
};
|
|
62
|
+
show: boolean;
|
|
63
|
+
successTip: string;
|
|
64
|
+
}, {}>, {
|
|
65
|
+
header?(_: {}): any;
|
|
66
|
+
top?(_: {}): any;
|
|
67
|
+
default?(_: {}): any;
|
|
68
|
+
}>;
|
|
69
|
+
export default _default;
|
|
70
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
71
|
+
new (): {
|
|
72
|
+
$slots: S;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
modelValue: {
|
|
3
|
+
type: import("vue").PropType<any[] | null>;
|
|
4
|
+
};
|
|
5
|
+
field: {
|
|
6
|
+
type: import("vue").PropType<string>;
|
|
7
|
+
required: true;
|
|
8
|
+
};
|
|
9
|
+
desc: {
|
|
10
|
+
type: import("vue").PropType<{
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
}>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
formData: {
|
|
16
|
+
type: import("vue").PropType<{
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
}>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
|
+
modelValue: {
|
|
23
|
+
type: import("vue").PropType<any[] | null>;
|
|
24
|
+
};
|
|
25
|
+
field: {
|
|
26
|
+
type: import("vue").PropType<string>;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
desc: {
|
|
30
|
+
type: import("vue").PropType<{
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
}>;
|
|
33
|
+
required: true;
|
|
34
|
+
};
|
|
35
|
+
formData: {
|
|
36
|
+
type: import("vue").PropType<{
|
|
37
|
+
[key: string]: any;
|
|
38
|
+
}>;
|
|
39
|
+
required: true;
|
|
40
|
+
};
|
|
41
|
+
}>> & {
|
|
42
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
43
|
+
}, {}, {}>;
|
|
44
|
+
export default _default;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
2
|
+
modelValue: {
|
|
3
|
+
type: import("vue").PropType<string | number | null>;
|
|
4
|
+
};
|
|
5
|
+
field: {
|
|
6
|
+
type: import("vue").PropType<string>;
|
|
7
|
+
required: true;
|
|
8
|
+
};
|
|
9
|
+
desc: {
|
|
10
|
+
type: import("vue").PropType<{
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
}>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
formData: {
|
|
16
|
+
type: import("vue").PropType<{
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
}>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
|
+
modelValue: {
|
|
23
|
+
type: import("vue").PropType<string | number | null>;
|
|
24
|
+
};
|
|
25
|
+
field: {
|
|
26
|
+
type: import("vue").PropType<string>;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
desc: {
|
|
30
|
+
type: import("vue").PropType<{
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
}>;
|
|
33
|
+
required: true;
|
|
34
|
+
};
|
|
35
|
+
formData: {
|
|
36
|
+
type: import("vue").PropType<{
|
|
37
|
+
[key: string]: any;
|
|
38
|
+
}>;
|
|
39
|
+
required: true;
|
|
40
|
+
};
|
|
41
|
+
}>> & {
|
|
42
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
43
|
+
}, {}, {}>, Partial<Record<number, (_: {
|
|
44
|
+
data: any;
|
|
45
|
+
}) => any>> & {
|
|
46
|
+
default?(_: {
|
|
47
|
+
data: any;
|
|
48
|
+
}): any;
|
|
49
|
+
}>;
|
|
50
|
+
export default _default;
|
|
51
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
52
|
+
new (): {
|
|
53
|
+
$slots: S;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
field: {
|
|
3
|
+
type: import("vue").PropType<string>;
|
|
4
|
+
};
|
|
5
|
+
rowIndex: {
|
|
6
|
+
type: import("vue").PropType<number>;
|
|
7
|
+
};
|
|
8
|
+
loading: {
|
|
9
|
+
type: import("vue").PropType<boolean>;
|
|
10
|
+
};
|
|
11
|
+
desc: {
|
|
12
|
+
type: import("vue").PropType<{
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}>;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
formData: {
|
|
18
|
+
type: import("vue").PropType<{
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
}>;
|
|
21
|
+
};
|
|
22
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
|
+
field: {
|
|
24
|
+
type: import("vue").PropType<string>;
|
|
25
|
+
};
|
|
26
|
+
rowIndex: {
|
|
27
|
+
type: import("vue").PropType<number>;
|
|
28
|
+
};
|
|
29
|
+
loading: {
|
|
30
|
+
type: import("vue").PropType<boolean>;
|
|
31
|
+
};
|
|
32
|
+
desc: {
|
|
33
|
+
type: import("vue").PropType<{
|
|
34
|
+
[key: string]: any;
|
|
35
|
+
}>;
|
|
36
|
+
required: true;
|
|
37
|
+
};
|
|
38
|
+
formData: {
|
|
39
|
+
type: import("vue").PropType<{
|
|
40
|
+
[key: string]: any;
|
|
41
|
+
}>;
|
|
42
|
+
};
|
|
43
|
+
}>>, {}, {}>;
|
|
44
|
+
export default _default;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
field: {
|
|
3
|
+
type: import("vue").PropType<string>;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
rowIndex: {
|
|
7
|
+
type: import("vue").PropType<number>;
|
|
8
|
+
};
|
|
9
|
+
desc: {
|
|
10
|
+
type: import("vue").PropType<{
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
}>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
formData: {
|
|
16
|
+
type: import("vue").PropType<{
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
}>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
|
+
field: {
|
|
23
|
+
type: import("vue").PropType<string>;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
rowIndex: {
|
|
27
|
+
type: import("vue").PropType<number>;
|
|
28
|
+
};
|
|
29
|
+
desc: {
|
|
30
|
+
type: import("vue").PropType<{
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
}>;
|
|
33
|
+
required: true;
|
|
34
|
+
};
|
|
35
|
+
formData: {
|
|
36
|
+
type: import("vue").PropType<{
|
|
37
|
+
[key: string]: any;
|
|
38
|
+
}>;
|
|
39
|
+
required: true;
|
|
40
|
+
};
|
|
41
|
+
}>>, {}, {}>;
|
|
42
|
+
export default _default;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
modelValue: {
|
|
3
|
+
type: import("vue").PropType<string | string[] | null>;
|
|
4
|
+
};
|
|
5
|
+
field: {
|
|
6
|
+
type: import("vue").PropType<string>;
|
|
7
|
+
required: true;
|
|
8
|
+
};
|
|
9
|
+
desc: {
|
|
10
|
+
type: import("vue").PropType<{
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
}>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
formData: {
|
|
16
|
+
type: import("vue").PropType<{
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
}>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
|
+
modelValue: {
|
|
23
|
+
type: import("vue").PropType<string | string[] | null>;
|
|
24
|
+
};
|
|
25
|
+
field: {
|
|
26
|
+
type: import("vue").PropType<string>;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
desc: {
|
|
30
|
+
type: import("vue").PropType<{
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
}>;
|
|
33
|
+
required: true;
|
|
34
|
+
};
|
|
35
|
+
formData: {
|
|
36
|
+
type: import("vue").PropType<{
|
|
37
|
+
[key: string]: any;
|
|
38
|
+
}>;
|
|
39
|
+
required: true;
|
|
40
|
+
};
|
|
41
|
+
}>> & {
|
|
42
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
43
|
+
}, {}, {}>;
|
|
44
|
+
export default _default;
|