From 21d3ee6fdf8d06ce7b0a01cd121eef627f7446ca 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: Tue, 12 Oct 2021 12:19:52 +0300 Subject: [PATCH] Fixed #1658 - Menu Model icon defect for Dock --- api-generator/components/dock.js | 4 + src/components/dock/Dock.d.ts | 1 + src/components/dock/Dock.vue | 2 +- src/components/dock/DockSub.vue | 16 ++-- src/views/dock/DockDemo.vue | 40 ++++++--- src/views/dock/DockDoc.vue | 143 +++++++++++++++++++++---------- 6 files changed, 141 insertions(+), 65 deletions(-) diff --git a/api-generator/components/dock.js b/api-generator/components/dock.js index 3920dba71..c8800bfb1 100644 --- a/api-generator/components/dock.js +++ b/api-generator/components/dock.js @@ -41,6 +41,10 @@ const DockSlots = [ { name: "item", description: "Custom content for the item." + }, + { + name: "icon", + description: "Custom content for the item." } ]; diff --git a/src/components/dock/Dock.d.ts b/src/components/dock/Dock.d.ts index 9ea7619bd..cef2af843 100644 --- a/src/components/dock/Dock.d.ts +++ b/src/components/dock/Dock.d.ts @@ -13,6 +13,7 @@ declare class Dock { $props: DockProps; $slots: { 'item': VNode[]; + 'icon': VNode[]; } } diff --git a/src/components/dock/Dock.vue b/src/components/dock/Dock.vue index 29a96a110..1f41aa9b9 100644 --- a/src/components/dock/Dock.vue +++ b/src/components/dock/Dock.vue @@ -1,6 +1,6 @@ diff --git a/src/components/dock/DockSub.vue b/src/components/dock/DockSub.vue index 458016d83..1a72683ed 100644 --- a/src/components/dock/DockSub.vue +++ b/src/components/dock/DockSub.vue @@ -2,25 +2,25 @@