mixit/src/components/input/BaseSetting.ts

18 lines
298 B
TypeScript
Raw Normal View History

2019-05-01 15:07:08 +00:00
import { Component, Emit, Prop, Vue } from 'vue-property-decorator'
@Component
export default class BaseSetting extends Vue {
@Prop(String)
readonly id!: string
@Prop(String)
readonly title!: string
@Emit('change')
sendChange(value: any) {
return { key: this.id, value }
}
}