@advdominion/tooltip@7.2.0
This commit is contained in:
4 files changed
+142
-21
No files matched your search
@@ -59,6 +59,7 @@ export const createTooltip = ($el, initialContent, initialOptions) => {
|
||||
delay: [0, 0],
|
||||
duration: [0, 0],
|
||||
easing: ['linear', 'linear'],
|
||||
flipPadding: 0,
|
||||
hideOnClick: true, // Возможные значения: true, 'all', 'toggle'
|
||||
interactive: true,
|
||||
offset: [0, 8],
|
||||
@@ -204,6 +205,7 @@ export const createTooltip = ($el, initialContent, initialOptions) => {
|
||||
|
||||
if (
|
||||
updatedOptions.offset !== undefined ||
|
||||
updatedOptions.flipPadding !== undefined ||
|
||||
updatedOptions.shiftPadding !== undefined ||
|
||||
updatedOptions.arrow !== undefined
|
||||
) {
|
||||
@@ -337,7 +339,7 @@ export const createTooltip = ($el, initialContent, initialOptions) => {
|
||||
const arrowSize = $el._tooltip.$arrow?.offsetWidth ?? 0;
|
||||
return [
|
||||
offset({ mainAxis: options.offset[1], crossAxis: options.offset[0] }),
|
||||
flip(),
|
||||
flip({ padding: options.flipPadding }),
|
||||
shift({
|
||||
padding: {
|
||||
top: options.shiftPadding[1],
|
||||
|
||||
Reference in new issue
Block a user