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 @@ - -