gd-bs 6.7.7 → 6.7.8
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/build/bs.js +1 -1
- package/build/components/floating-ui/index.js +4 -1
- package/dist/gd-bs-icons.js +1 -1
- package/dist/gd-bs-icons.min.js +1 -1
- package/dist/gd-bs.js +1 -1
- package/dist/gd-bs.min.js +1 -1
- package/indexv2.html +26 -1
- package/package.json +60 -60
- package/src/components/floating-ui/index.ts +5 -1
- package/src/styles/_floating-ui.scss +2 -0
|
@@ -306,12 +306,15 @@ var _FloatingUI = /** @class */ (function () {
|
|
|
306
306
|
if (_this._elArrow) {
|
|
307
307
|
var arrowX = middlewareData.arrow.x;
|
|
308
308
|
var arrowY = middlewareData.arrow.y;
|
|
309
|
+
var placement = (((_c = middlewareData.offset) === null || _c === void 0 ? void 0 : _c.placement) || _this._options.placement).split('-')[0];
|
|
309
310
|
var side = {
|
|
310
311
|
top: 'bottom',
|
|
311
312
|
right: 'left',
|
|
312
313
|
bottom: 'top',
|
|
313
314
|
left: 'right'
|
|
314
|
-
}[
|
|
315
|
+
}[placement];
|
|
316
|
+
// Set the placement
|
|
317
|
+
_this._elContent.setAttribute("data-placement", placement);
|
|
315
318
|
// Update the location
|
|
316
319
|
Object.assign(_this._elArrow.style, (_b = {
|
|
317
320
|
left: arrowX != null ? "".concat(arrowX, "px") : '',
|