isobit-ui 0.1.34 → 0.1.35
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/dist/index.js +5 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* isobit-ui v0.1.
|
|
2
|
+
* isobit-ui v0.1.35
|
|
3
3
|
* (c) Erik Alarcon Pinedo
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -914,14 +914,10 @@ var script$l = {
|
|
|
914
914
|
if (!me.readonly) {
|
|
915
915
|
var r = me.$el.querySelector('input');
|
|
916
916
|
if (me.$parent.onChange) me.$parent.onChange(me.value, r.checked);
|
|
917
|
-
var v = r.checked ? me.value ? me.value : r.checked : me.valueFalse !== null ? me.valueFalse : r.checked;
|
|
918
|
-
if (v) me.hadValue = 1;
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
if (!v && me.hadValue) {
|
|
922
|
-
console.log('me.hadValue=' + me.hadValue);
|
|
923
|
-
v = me.valueFalse !== null ? me.valueFalse : false;
|
|
924
|
-
}
|
|
917
|
+
var v = r.checked ? me.value ? me.value : r.checked : me.valueFalse !== null && me.valueFalse !== undefined ? me.valueFalse : r.checked;
|
|
918
|
+
if (v) me.hadValue = 1; //if(!v&&me.hadValue){
|
|
919
|
+
// v=(me.valueFalse!==null&&me.valueFalse!==undefined);
|
|
920
|
+
//}
|
|
925
921
|
|
|
926
922
|
console.log('nv=' + v);
|
|
927
923
|
me.$emit('input', v);
|