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