adminforth 2.17.0-next.18 → 2.17.0-next.19

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.
@@ -9,9 +9,7 @@
9
9
  ref="tooltip"
10
10
  >
11
11
  <slot name="tooltip"></slot>
12
- <div class="tooltip-arrow absolute -top-2" data-popper-arrow>
13
- <div class="absolute top-0 -left-0.5 w-0 h-0 border-l-8 border-r-8 border-b-8 border-l-transparent border-r-transparent border-b-lightTooltipBackground dark:border-b-darkTooltipBackground"></div>
14
- </div>
12
+ <div class="tooltip-arrow" data-popper-arrow></div>
15
13
  </div>
16
14
  </teleport>
17
15
  </template>
@@ -50,4 +48,40 @@ function mouseOff() {
50
48
  showTooltip.value = false;
51
49
  }
52
50
 
53
- </script>
51
+ </script>
52
+
53
+ <style>
54
+ .tooltip .tooltip-arrow,
55
+ .tooltip .tooltip-arrow::before {
56
+ position: absolute;
57
+ width: 8px;
58
+ height: 8px;
59
+ background: inherit;
60
+ }
61
+
62
+ .tooltip .tooltip-arrow {
63
+ visibility: hidden;
64
+ }
65
+
66
+ .tooltip .tooltip-arrow::before {
67
+ visibility: visible;
68
+ content: '';
69
+ transform: rotate(45deg);
70
+ }
71
+
72
+ .tooltip[data-popper-placement^='top'] > .tooltip-arrow {
73
+ bottom: -4px;
74
+ }
75
+
76
+ .tooltip[data-popper-placement^='bottom'] > .tooltip-arrow {
77
+ top: -4px;
78
+ }
79
+
80
+ .tooltip[data-popper-placement^='left'] > .tooltip-arrow {
81
+ right: -4px;
82
+ }
83
+
84
+ .tooltip[data-popper-placement^='right'] > .tooltip-arrow {
85
+ left: -4px;
86
+ }
87
+ </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "2.17.0-next.18",
3
+ "version": "2.17.0-next.19",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",