From a6d6fd75621ace03026e87b1559f80f97826df46 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: Wed, 24 May 2023 15:46:10 +0300 Subject: [PATCH] Update #3965 - For Rating --- components/lib/rating/BaseRating.vue | 102 +++++++++++++++++++++++++++ components/lib/rating/Rating.d.ts | 20 +++++- components/lib/rating/Rating.vue | 89 ++++------------------- 3 files changed, 134 insertions(+), 77 deletions(-) create mode 100644 components/lib/rating/BaseRating.vue diff --git a/components/lib/rating/BaseRating.vue b/components/lib/rating/BaseRating.vue new file mode 100644 index 000000000..04d298f43 --- /dev/null +++ b/components/lib/rating/BaseRating.vue @@ -0,0 +1,102 @@ + diff --git a/components/lib/rating/Rating.d.ts b/components/lib/rating/Rating.d.ts index 0fea3232f..bb72ebea6 100755 --- a/components/lib/rating/Rating.d.ts +++ b/components/lib/rating/Rating.d.ts @@ -168,6 +168,11 @@ export interface RatingProps { * @type {RatingPassThroughOptions} */ pt?: RatingPassThroughOptions; + /** + * When enabled, it removes component related styles in the core. + * @defaultValue false + */ + unstyled?: boolean; } /** @@ -177,7 +182,12 @@ export interface RatingSlots { /** * Custom cancel icon template. */ - cancelicon(): VNode[]; + cancelicon(scope: { + /** + * Style class of the icon. + */ + class: string; + }): VNode[]; /** * Custom on icon template. * @param {Object} scope - on icon slot's params. @@ -187,6 +197,10 @@ export interface RatingSlots { * Item value */ value: number; + /** + * Style class of the icon. + */ + class: string; }): VNode[]; /** * Custom off icon template. @@ -197,6 +211,10 @@ export interface RatingSlots { * Item value */ value: number; + /** + * Style class of the icon. + */ + class: string; }): VNode[]; } diff --git a/components/lib/rating/Rating.vue b/components/lib/rating/Rating.vue index 92a5fedd7..e66ab8569 100755 --- a/components/lib/rating/Rating.vue +++ b/components/lib/rating/Rating.vue @@ -1,7 +1,7 @@ - -