isobit-ui 0.0.180 → 0.0.184
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 +4 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* isobit-ui v0.0.
|
|
2
|
+
* isobit-ui v0.0.184
|
|
3
3
|
* (c) Erik Alarcon Pinedo
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -4064,8 +4064,8 @@ var script$1 = {
|
|
|
4064
4064
|
};
|
|
4065
4065
|
},
|
|
4066
4066
|
updated: function updated() {
|
|
4067
|
-
var l = this.$el.querySelectorAll(":scope > :not(.v-map-control-button)")
|
|
4068
|
-
|
|
4067
|
+
var l = this.$el.querySelectorAll(":scope > :not(.v-map-control-button)").length;
|
|
4068
|
+
if (l == 0) l = this.$el.textContent.trim().length;
|
|
4069
4069
|
this.slotUsed = l; //console.log(this.$slots);
|
|
4070
4070
|
},
|
|
4071
4071
|
created: function created() {
|
|
@@ -4073,8 +4073,7 @@ var script$1 = {
|
|
|
4073
4073
|
},
|
|
4074
4074
|
mounted: function mounted() {
|
|
4075
4075
|
var me = this;
|
|
4076
|
-
me.slotUsed = !!this.$slots["default"];
|
|
4077
|
-
console.log('slotUsed=' + me.slotUsed);
|
|
4076
|
+
me.slotUsed = !!this.$slots["default"]; //onsole.log('slotUsed='+me.slotUsed);
|
|
4078
4077
|
|
|
4079
4078
|
if (me.$parent.map) {
|
|
4080
4079
|
me.$parent.map.addControl(new ol.control.Control({
|