@kigi/components 1.28.4-alpha → 1.28.5-alpha
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/package.json
CHANGED
|
@@ -105,17 +105,15 @@ class MbgProductGridController {
|
|
|
105
105
|
})
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
toogleEnableItem(xIndex, yIndex) {
|
|
108
|
+
async toogleEnableItem(xIndex, yIndex) {
|
|
109
109
|
this.gridValues[xIndex] = this.gridValues[xIndex] || {}
|
|
110
110
|
this.gridValues[xIndex][yIndex] = this.gridValues[xIndex][yIndex] || {}
|
|
111
111
|
|
|
112
|
-
|
|
112
|
+
const validationAddOrRemoveGridOrDetails =
|
|
113
113
|
this.addOrRemoveValidation &&
|
|
114
|
-
|
|
115
|
-
) {
|
|
116
|
-
return
|
|
117
|
-
}
|
|
114
|
+
(await this.addOrRemoveValidation({ details: this.gridValues[xIndex][yIndex] }))
|
|
118
115
|
|
|
116
|
+
if (!validationAddOrRemoveGridOrDetails) return
|
|
119
117
|
this.gridValues[xIndex][yIndex].enable = !this.gridValues[xIndex][yIndex].enable
|
|
120
118
|
this.handleGridValues()
|
|
121
119
|
}
|