23 lines
390 B
JavaScript
23 lines
390 B
JavaScript
|
|
Component({
|
||
|
|
properties: {
|
||
|
|
items: {
|
||
|
|
type: Array,
|
||
|
|
value: [],
|
||
|
|
},
|
||
|
|
value: {
|
||
|
|
type: String,
|
||
|
|
value: '',
|
||
|
|
},
|
||
|
|
},
|
||
|
|
data: {
|
||
|
|
currentValue: '',
|
||
|
|
},
|
||
|
|
methods: {
|
||
|
|
onChange(event) {
|
||
|
|
this.setData({
|
||
|
|
currentValue: event.detail.name,
|
||
|
|
});
|
||
|
|
},
|
||
|
|
},
|
||
|
|
});
|