vueless 0.0.326 → 0.0.327

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vueless",
3
- "version": "0.0.326",
3
+ "version": "0.0.327",
4
4
  "license": "MIT",
5
5
  "description": "Vue Styleless Component Framework.",
6
6
  "homepage": "https://vueless.com",
@@ -72,7 +72,7 @@
72
72
  @binding {string} emptyStyles
73
73
  -->
74
74
  <slot name="empty" :empty-styles="optionClasses">
75
- <span v-if="!options.length" v-bind="optionAttrs()">
75
+ <span v-if="!options.length" v-bind="optionAttrs">
76
76
  <span v-bind="optionContentAttrs" v-text="currentLocale.noDataToShow" />
77
77
  </span>
78
78
  </slot>
@@ -98,6 +98,8 @@
98
98
  </template>
99
99
  </ul>
100
100
  </div>
101
+
102
+ <!-- {{ !options.length }} -->
101
103
  </template>
102
104
 
103
105
  <script setup>
@@ -249,6 +251,8 @@ const addOptionKeyCombination = computed(() => {
249
251
  });
250
252
 
251
253
  const wrapperHeight = computed(() => {
254
+ if (!optionsRef.value.length) return "auto";
255
+
252
256
  const maxHeight = optionsRef.value
253
257
  .slice(0, props.visibleOptions)
254
258
  .map((el) => el.getBoundingClientRect().height)
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "framework": "vue",
3
3
  "name": "vueless",
4
- "version": "0.0.326",
4
+ "version": "0.0.327",
5
5
  "contributions": {
6
6
  "html": {
7
7
  "description-markup": "markdown",