QuestionComponentMixin.js 244 B

1234567891011121314151617
  1. export default {
  2. data() {
  3. return {
  4. color: '#f4ae1b'
  5. }
  6. },
  7. props: ['value'],
  8. methods: {
  9. getOptionValue(index) {
  10. return String.fromCharCode(65 + index);
  11. },
  12. updateValue: function(value) {
  13. this.$emit('input', value);
  14. }
  15. }
  16. }