From 0a105eb0f2336884da78ad1cbe112ab0a414469f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bahad=C4=B1r=20Sofuo=C4=9Flu?= Date: Wed, 24 May 2023 13:36:51 +0300 Subject: [PATCH] Refactor #3965 - For Skeleton --- components/lib/skeleton/BaseSkeleton.vue | 94 ++++++++++++++++++++++++ components/lib/skeleton/Skeleton.d.ts | 5 ++ components/lib/skeleton/Skeleton.vue | 77 +------------------ 3 files changed, 102 insertions(+), 74 deletions(-) create mode 100644 components/lib/skeleton/BaseSkeleton.vue diff --git a/components/lib/skeleton/BaseSkeleton.vue b/components/lib/skeleton/BaseSkeleton.vue new file mode 100644 index 000000000..dbceb652b --- /dev/null +++ b/components/lib/skeleton/BaseSkeleton.vue @@ -0,0 +1,94 @@ + diff --git a/components/lib/skeleton/Skeleton.d.ts b/components/lib/skeleton/Skeleton.d.ts index 5035dc031..1710cf1c7 100644 --- a/components/lib/skeleton/Skeleton.d.ts +++ b/components/lib/skeleton/Skeleton.d.ts @@ -73,6 +73,11 @@ export interface SkeletonProps { * @type {SkeletonPassThroughOptions} */ pt?: SkeletonPassThroughOptions; + /** + * When enabled, it removes component related styles in the core. + * @defaultValue false + */ + unstyled?: boolean; } /** diff --git a/components/lib/skeleton/Skeleton.vue b/components/lib/skeleton/Skeleton.vue index f8bfa5f03..6717c1dea 100644 --- a/components/lib/skeleton/Skeleton.vue +++ b/components/lib/skeleton/Skeleton.vue @@ -1,49 +1,14 @@ - -