File tree 1 file changed +0
-12
lines changed
1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change 17
17
</template >
18
18
19
19
<script >
20
- import Vue from ' vue'
21
20
import {flatten , unflatten } from ' flat'
22
21
23
22
function createModel () {
@@ -53,13 +52,6 @@ export default {
53
52
type: Array ,
54
53
required: true
55
54
},
56
- /**
57
- * The required error message
58
- */
59
- requiredMessage: {
60
- type: String ,
61
- default: ' Required field'
62
- }
63
55
},
64
56
computed: {
65
57
computedValue: {
@@ -77,7 +69,6 @@ export default {
77
69
data : () => ({
78
70
emptyModel: createModel,
79
71
flattenForm: {},
80
- $formly: Vue .$formly ,
81
72
}),
82
73
methods: {
83
74
onFormSubmission () {
@@ -145,9 +136,6 @@ export default {
145
136
*/
146
137
createModel,
147
138
},
148
- created () {
149
- Vue .$formly .addValidationMessage (' required' , this .requiredMessage );
150
- },
151
139
mounted () {
152
140
// Listen on each field for changes and validates individually
153
141
const formly = this .$refs .formlyForm ;
You can’t perform that action at this time.
0 commit comments