@xuekl/cli-components 1.4.8 → 1.5.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/XklForm.vue +3 -5
- package/package.json +1 -1
package/XklForm.vue
CHANGED
|
@@ -232,7 +232,7 @@ const regProto = () => {
|
|
|
232
232
|
if (XklFormRef.value) {
|
|
233
233
|
let enableSubmit = true;
|
|
234
234
|
let submitTimer: NodeJS.Timeout
|
|
235
|
-
form.
|
|
235
|
+
form.submit = (callback: (call: () => void, feils: any) => void) => {
|
|
236
236
|
if (componentGlobal.enableFormSubmit) {
|
|
237
237
|
enableSubmit = true
|
|
238
238
|
}
|
|
@@ -260,18 +260,16 @@ const regProto = () => {
|
|
|
260
260
|
})
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
|
-
// form.setSubmit(, form)
|
|
264
263
|
}
|
|
265
264
|
|
|
266
|
-
form.
|
|
265
|
+
form.getBinds = () => {
|
|
267
266
|
sourceFormList.forEach(field => {
|
|
268
267
|
modeFields[field.prop] = (form as any)[field.prop]
|
|
269
268
|
});
|
|
270
269
|
return modeFields
|
|
271
270
|
}
|
|
272
|
-
// form.setBinds(, form)
|
|
273
271
|
|
|
274
|
-
form.
|
|
272
|
+
form.getRef = () => XklFormRef.value
|
|
275
273
|
}
|
|
276
274
|
|
|
277
275
|
onMounted(() => {
|