Skip to content

Commit

Permalink
fix: 完善pi-radio-group注释
Browse files Browse the repository at this point in the history
  • Loading branch information
sadais-lwt committed Mar 2, 2021
1 parent 36730d2 commit 96a9e6f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion components/pi-radio-group/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default {
},
// 形状
shape: {
// round || square
// 'round', 'square', 'dot', 'text'
type: String,
// ''
default: radioGroup.shape,
Expand Down Expand Up @@ -120,13 +120,19 @@ export default {
activeMode: {
// '', 'line', 'fill'
type: [String],
// 'line'
default: radioGroup.activeMode,
validator: function(value) {
return ['', 'line', 'fill'].includes(value)
}
}
},
methods: {
/**
* @vuese
* 用于给子子组件pi-radio调用,从而更新value
* @arg pi-radio的name属性值
*/
emitChange(childName) {
this.val = childName
this.handleEmitChange()
Expand Down

0 comments on commit 96a9e6f

Please sign in to comment.