From ff78ee47aa6e6b2025507528ad0160b54a63ea4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Mon, 20 Sep 2021 13:52:30 +0300 Subject: [PATCH] Fixed #1564 - Add tooltipOptions property to Dock v2 --- api-generator/components/dock.js | 6 ++++++ src/components/dock/Dock.d.ts | 1 + src/components/dock/Dock.vue | 5 +++-- src/components/dock/DockSub.vue | 9 +++++---- src/views/dock/DockDoc.vue | 6 ++++++ 5 files changed, 21 insertions(+), 6 deletions(-) diff --git a/api-generator/components/dock.js b/api-generator/components/dock.js index 64d5863cd7..f20d3033a6 100644 --- a/api-generator/components/dock.js +++ b/api-generator/components/dock.js @@ -22,6 +22,12 @@ const DockProps = [ type: "object", default: "null", description: "Inline style of the element." + }, + { + name: "tooltipOptions", + type: "object", + default: "null", + description: "Whether to display the tooltip on items. The modifiers of tooltip can be used like an object in it. Valid keys are 'event' and 'position'." } ]; diff --git a/src/components/dock/Dock.d.ts b/src/components/dock/Dock.d.ts index b55175f5e2..d1e45c9aeb 100644 --- a/src/components/dock/Dock.d.ts +++ b/src/components/dock/Dock.d.ts @@ -5,6 +5,7 @@ declare class Dock extends Vue { model?: any[]; className?: string; styles?: any; + tooltipOptions?: any; $slots: { 'item': VNode[]; } diff --git a/src/components/dock/Dock.vue b/src/components/dock/Dock.vue index e8e9f68778..c1f51c131e 100644 --- a/src/components/dock/Dock.vue +++ b/src/components/dock/Dock.vue @@ -1,6 +1,6 @@ @@ -16,7 +16,8 @@ export default { }, model: null, className: null, - styles: null + styles: null, + tooltipOptions: null }, data() { return { diff --git a/src/components/dock/DockSub.vue b/src/components/dock/DockSub.vue index cff37ba46b..4c9b4afa9d 100644 --- a/src/components/dock/DockSub.vue +++ b/src/components/dock/DockSub.vue @@ -1,11 +1,11 @@