From ee81d3b10ca64d235fa17118abb1e9460e57caa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bahad=C4=B1r=20Sofuo=C4=9Flu?= Date: Wed, 24 May 2023 14:44:15 +0300 Subject: [PATCH] Refactor #3965 - For ProgressSpinner --- .../progressspinner/BaseProgressSpinner.vue | 70 +++++++++++++++++++ .../lib/progressspinner/ProgressSpinner.d.ts | 5 ++ .../lib/progressspinner/ProgressSpinner.vue | 48 +------------ 3 files changed, 78 insertions(+), 45 deletions(-) create mode 100644 components/lib/progressspinner/BaseProgressSpinner.vue diff --git a/components/lib/progressspinner/BaseProgressSpinner.vue b/components/lib/progressspinner/BaseProgressSpinner.vue new file mode 100644 index 000000000..def707578 --- /dev/null +++ b/components/lib/progressspinner/BaseProgressSpinner.vue @@ -0,0 +1,70 @@ + diff --git a/components/lib/progressspinner/ProgressSpinner.d.ts b/components/lib/progressspinner/ProgressSpinner.d.ts index 23fb36c1d..2deea45cb 100755 --- a/components/lib/progressspinner/ProgressSpinner.d.ts +++ b/components/lib/progressspinner/ProgressSpinner.d.ts @@ -67,6 +67,11 @@ export interface ProgressSpinnerProps { * @type {ProgressSpinnerPassThroughOptions} */ pt?: ProgressSpinnerPassThroughOptions; + /** + * When enabled, it removes component related styles in the core. + * @defaultValue false + */ + unstyled?: boolean; } /** diff --git a/components/lib/progressspinner/ProgressSpinner.vue b/components/lib/progressspinner/ProgressSpinner.vue index c10da4e18..29c654914 100755 --- a/components/lib/progressspinner/ProgressSpinner.vue +++ b/components/lib/progressspinner/ProgressSpinner.vue @@ -1,7 +1,7 @@ @@ -12,20 +12,6 @@ import BaseComponent from 'primevue/basecomponent'; export default { name: 'ProgressSpinner', extends: BaseComponent, - props: { - strokeWidth: { - type: String, - default: '2' - }, - fill: { - type: String, - default: 'none' - }, - animationDuration: { - type: String, - default: '2s' - } - }, computed: { svgStyle() { return { @@ -35,31 +21,3 @@ export default { } }; - -