Skip to content

Commit 8d1a030

Browse files
committed
🔥 remove scope property, since Vue already handle it
1 parent 6ede21d commit 8d1a030

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

src/FormContainer.vue

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -70,21 +70,6 @@
7070
return fields;
7171
},
7272
73-
scope () {
74-
const scope = {
75-
update: this.update,
76-
validateForm: this.validateForm,
77-
validateField: this.validateField,
78-
};
79-
80-
defineReadOnlyProperty(scope, 'fields', () => this.fields);
81-
defineReadOnlyProperty(scope, 'errors', () => this.errors);
82-
defineReadOnlyProperty(scope, 'isValid', () => this.isValid);
83-
defineReadOnlyProperty(scope, 'isLoading', () => this.isLoading);
84-
85-
return scope;
86-
},
87-
8873
isLoading () {
8974
return this.ticks > 0;
9075
},
@@ -146,7 +131,7 @@
146131
},
147132
148133
render () {
149-
return this.$scopedSlots.default(this.scope);
134+
return this.$scopedSlots.default(this);
150135
}
151136
};
152137
</script>

0 commit comments

Comments
 (0)