@policystudio/policy-studio-ui-vue 1.0.84 → 1.0.86
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
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
:class="getComponentClass"
|
|
20
20
|
>
|
|
21
21
|
<h2 v-if="title">{{ title}}</h2>
|
|
22
|
-
<div class="psui-el-tooltip-content-wrapper">
|
|
22
|
+
<div v-else class="psui-el-tooltip-content-wrapper">
|
|
23
23
|
<slot name="content"></slot>
|
|
24
24
|
</div>
|
|
25
25
|
</div>
|
|
@@ -118,7 +118,7 @@ export default {
|
|
|
118
118
|
|
|
119
119
|
if (rectTrigger.x + rectDialog.width + 20 > windowWidth) {
|
|
120
120
|
dialog.style.left = `${windowWidth - rectDialog.width - 30}px`
|
|
121
|
-
} else if (rectTrigger.x -
|
|
121
|
+
} else if ((rectTrigger.x - rectDialog.width) < 0) {
|
|
122
122
|
dialog.style.left = `${rectTrigger.x + 10}px`
|
|
123
123
|
} else if (rectDialog.width >= rectTrigger.width){
|
|
124
124
|
dialog.style.left = `${rectTrigger.x - ((rectDialog.width - rectTrigger.width)/2)}px`
|