Skip to content

Commit f0768ec

Browse files
committed
修复表单验证
1 parent 9e67b6f commit f0768ec

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@zero-ui/vue",
3-
"version": "1.0.8",
3+
"version": "1.0.9",
44
"private": false,
55
"author": {
66
"name": "luren"

Diff for: packages/form/src/form-item.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ export default defineComponent({
317317
})
318318
onMounted(() => {
319319
if (props.prop) {
320-
emitter.emit('el.form.addField', instance)
320+
formEmitter.emit('el.form.addField', instance)
321321
322322
if (Array.isArray(fieldValue.value)) {
323323
initialValue.value = ([] as any[]).concat(fieldValue.value)
@@ -326,7 +326,7 @@ export default defineComponent({
326326
}
327327
})
328328
onBeforeUnmount(() => {
329-
emitter.emit('el.form.removeField', instance)
329+
formEmitter.emit('el.form.removeField', instance)
330330
})
331331
// @ts-ignore
332332
window.getPropByPath = getPropByPath

Diff for: packages/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ install.installed = false
211211

212212
const win: anyObject = window || {}
213213

214-
export const version = '1.0.7'
214+
export const version = '1.0.9'
215215

216216
export const ZeroUI = {
217217
install,

0 commit comments

Comments
 (0)