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.
Files changed (2) hide show
  1. package/dist/index.js +4 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * isobit-ui v0.0.177
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
- this.slotUsed = this.$el.querySelectorAll(":scope > :not(.v-map-control-button)").length; //console.log(this.$slots);
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({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isobit-ui",
3
- "version": "0.0.177",
3
+ "version": "0.0.181",
4
4
  "description": "Vue component to play videos",
5
5
  "keywords": [
6
6
  "ui",