@volverjs/ui-vue 0.0.9-beta.13 → 0.0.9-beta.14
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/components/VvCombobox/VvCombobox.es.js +5 -3
- package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
- package/dist/components/VvDropdown/VvDropdown.es.js +5 -3
- package/dist/components/VvDropdown/VvDropdown.umd.js +1 -1
- package/dist/components/index.es.js +5 -3
- package/dist/components/index.umd.js +1 -1
- package/dist/icons.es.js +3 -3
- package/dist/icons.umd.js +1 -1
- package/package.json +1 -1
- package/src/assets/icons/detailed.json +1 -1
- package/src/assets/icons/normal.json +1 -1
- package/src/assets/icons/simple.json +1 -1
- package/src/components/VvDropdown/VvDropdown.vue +7 -6
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
}
|
|
97
97
|
} else if (props.flip) {
|
|
98
98
|
if (typeof props.flip === 'boolean') {
|
|
99
|
-
toReturn.push(flip())
|
|
99
|
+
toReturn.push(flip({ fallbackStrategy: 'initialPlacement' }))
|
|
100
100
|
} else {
|
|
101
101
|
toReturn.push(flip(props.flip as FlipOptions))
|
|
102
102
|
}
|
|
@@ -175,16 +175,17 @@
|
|
|
175
175
|
if (hasCustomPosition.value) {
|
|
176
176
|
return undefined
|
|
177
177
|
}
|
|
178
|
+
const width =
|
|
179
|
+
props.triggerWidth && referenceEl.value
|
|
180
|
+
? `${referenceEl.value?.offsetWidth}px`
|
|
181
|
+
: undefined
|
|
178
182
|
return {
|
|
179
183
|
position: strategy.value,
|
|
180
184
|
top: `${y.value ?? 0}px`,
|
|
181
185
|
left: `${x.value ?? 0}px`,
|
|
182
|
-
maxWidth: maxWidth.value,
|
|
186
|
+
maxWidth: width ? undefined : maxWidth.value,
|
|
183
187
|
maxHeight: maxHeight.value,
|
|
184
|
-
width
|
|
185
|
-
props.triggerWidth && referenceEl.value
|
|
186
|
-
? `${referenceEl.value.offsetWidth}px`
|
|
187
|
-
: undefined,
|
|
188
|
+
width,
|
|
188
189
|
}
|
|
189
190
|
})
|
|
190
191
|
|