@@ -9,6 +9,12 @@ import {
9
9
PROP_TYPE_STRING
10
10
} from '../../constants/props'
11
11
import { CODE_LEFT , CODE_RIGHT , CODE_UP , CODE_DOWN } from '../../constants/key-codes'
12
+ import {
13
+ SLOT_NAME_ICON_CLEAR ,
14
+ SLOT_NAME_ICON_EMPTY ,
15
+ SLOT_NAME_ICON_FULL ,
16
+ SLOT_NAME_ICON_HALF
17
+ } from '../../constants/slots'
12
18
import { arrayIncludes , concat } from '../../utils/array'
13
19
import { attemptBlur , attemptFocus } from '../../utils/dom'
14
20
import { stopEvent } from '../../utils/events'
@@ -295,7 +301,7 @@ export const BFormRating = /*#__PURE__*/ Vue.extend({
295
301
296
302
if ( showClear && ! disabled && ! readonly ) {
297
303
const $icon = h ( 'span' , { staticClass : 'b-rating-icon' } , [
298
- ( $scopedSlots [ 'icon-clear' ] || this . iconClearFn ) ( )
304
+ ( $scopedSlots [ SLOT_NAME_ICON_CLEAR ] || this . iconClearFn ) ( )
299
305
] )
300
306
$content . push (
301
307
h (
@@ -329,9 +335,9 @@ export const BFormRating = /*#__PURE__*/ Vue.extend({
329
335
} ,
330
336
on : { selected : this . onSelected } ,
331
337
scopedSlots : {
332
- empty : $scopedSlots [ 'icon-empty' ] || this . iconEmptyFn ,
333
- half : $scopedSlots [ 'icon-half' ] || this . iconHalfFn ,
334
- full : $scopedSlots [ 'icon-full' ] || this . iconFullFn
338
+ empty : $scopedSlots [ SLOT_NAME_ICON_EMPTY ] || this . iconEmptyFn ,
339
+ half : $scopedSlots [ SLOT_NAME_ICON_HALF ] || this . iconHalfFn ,
340
+ full : $scopedSlots [ SLOT_NAME_ICON_FULL ] || this . iconFullFn
335
341
} ,
336
342
key : index
337
343
} )
0 commit comments