2018-05-29 22:29:16 +08:00

29 lines
460 B
JavaScript

'use strict';
Component({
properties: {
items: {
type: Array,
value: []
},
name: {
type: String,
value: ''
},
checkedValue: {
type: String,
value: ''
},
activeColor: {
type: String,
value: '#ff4444'
}
},
methods: {
handleSelectChange: function handleSelectChange(e) {
var value = e.detail.value;
this.triggerEvent('change', { value: value });
}
}
});