File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
uni_modules/wot-design-uni/components/wd-segmented Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 5555<wd-segmented :options =" list1" v-model:value =" current4" :vibrate-short =" true" >
5656 <template #label =" { option }" >
5757 <view class =" section-slot" >
58- <wd-img round width = " 32px" height = " 32px" :src =" option.payload.avatar" />
58+ <image style = " border-radius : 50 % ; width : 32px ; height : 32px " :src =" option.payload.avatar" />
5959 <view class =" name" >
6060 {{ option.value }}
6161 </view >
Original file line number Diff line number Diff line change 3636 <wd-segmented :options =" list1" v-model:value =" current4" :vibrate-short =" true" >
3737 <template #label =" { option } " >
3838 <view class =" section-slot" >
39- <wd-img round width =" 32px" height =" 32px" :src =" option.payload.avatar" />
39+ <image style =" border-radius : 50% ; width : 32px ; height : 32px " :src =" option.payload.avatar" />
40+
4041 <view class =" name" >
4142 {{ option.value }}
4243 </view >
Original file line number Diff line number Diff line change 99 :key =" index"
1010 >
1111 <view class =" wd-segmented__item-label" >
12- <slot name =" label" :option =" isObj(option) ? option : { value: option }" ></slot >
13- <template v-if = " ! $slots . label " >
12+ <slot name =" label" v-if = " $slots.label " :option =" isObj(option) ? option : { value: option }" ></slot >
13+ <template v-else >
1414 {{ isObj(option) ? option.value : option }}
1515 </template >
1616 </view >
You can’t perform that action at this time.
0 commit comments