@live-change/vue3-components 0.8.121 → 0.8.122
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/form/DefinedForm.vue +4 -4
- package/package.json +3 -3
package/form/DefinedForm.vue
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import { computed, watch } from 'vue'
|
|
10
10
|
import { getElementPositionInDocument } from '../utils/dom.mjs'
|
|
11
11
|
|
|
12
|
-
const
|
|
12
|
+
const errorSuffix = 'Error'
|
|
13
13
|
|
|
14
14
|
class FormValue {
|
|
15
15
|
constructor(definition, component, data, property) {
|
|
@@ -69,10 +69,10 @@
|
|
|
69
69
|
return this.data[this.property]
|
|
70
70
|
}
|
|
71
71
|
setError(error) {
|
|
72
|
-
this.data[this.property+
|
|
72
|
+
this.data[this.property+errorSuffix] = error
|
|
73
73
|
}
|
|
74
74
|
getError() {
|
|
75
|
-
return this.data[this.property+
|
|
75
|
+
return this.data[this.property+errorSuffix]
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
setProperty(name) {
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
return Promise.all(promises).then(results => {
|
|
112
112
|
for(let error of results) {
|
|
113
113
|
if(error) {
|
|
114
|
-
if(this.data[this.property +
|
|
114
|
+
if(this.data[this.property + errorSuffix] === error) return error
|
|
115
115
|
this.setError(error)
|
|
116
116
|
return error
|
|
117
117
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/vue3-components",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.122",
|
|
4
4
|
"description": "Live Change Framework - vue components",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
},
|
|
22
22
|
"homepage": "https://github.com/live-change/live-change-stack",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@live-change/vue3-ssr": "^0.8.
|
|
24
|
+
"@live-change/vue3-ssr": "^0.8.122",
|
|
25
25
|
"debug": "^4.3.4",
|
|
26
26
|
"mitt": "3.0.1",
|
|
27
27
|
"vue": "^3.4.29"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "3d1935bdc16579c96f009d49f1e9aa70a7697c71"
|
|
30
30
|
}
|