From 6174cdde940f9bbbf2ad54b93357d8a742b1e004 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bahad=C4=B1r=20Sofuo=C4=9Flu?= Date: Wed, 24 May 2023 17:08:05 +0300 Subject: [PATCH] Refactor #3965 - For ScrollPanel --- .../lib/scrollpanel/BaseScrollPanel.vue | 94 ++++++++++++++++ components/lib/scrollpanel/ScrollPanel.d.ts | 5 + components/lib/scrollpanel/ScrollPanel.vue | 100 ++++-------------- 3 files changed, 117 insertions(+), 82 deletions(-) create mode 100644 components/lib/scrollpanel/BaseScrollPanel.vue diff --git a/components/lib/scrollpanel/BaseScrollPanel.vue b/components/lib/scrollpanel/BaseScrollPanel.vue new file mode 100644 index 000000000..683b86f66 --- /dev/null +++ b/components/lib/scrollpanel/BaseScrollPanel.vue @@ -0,0 +1,94 @@ + diff --git a/components/lib/scrollpanel/ScrollPanel.d.ts b/components/lib/scrollpanel/ScrollPanel.d.ts index c41848e15..6ff746acd 100644 --- a/components/lib/scrollpanel/ScrollPanel.d.ts +++ b/components/lib/scrollpanel/ScrollPanel.d.ts @@ -93,6 +93,11 @@ export interface ScrollPanelProps { * @type {ScrollPanelPassThroughOptions} */ pt?: ScrollPanelPassThroughOptions; + /** + * When enabled, it removes component related styles in the core. + * @defaultValue false + */ + unstyled?: boolean; } /** diff --git a/components/lib/scrollpanel/ScrollPanel.vue b/components/lib/scrollpanel/ScrollPanel.vue index 5fdec645b..ed3d11fc9 100644 --- a/components/lib/scrollpanel/ScrollPanel.vue +++ b/components/lib/scrollpanel/ScrollPanel.vue @@ -1,13 +1,13 @@