This commit is contained in:
syuilo 2018-02-18 12:35:18 +09:00
parent 61b95e0c26
commit 99b3499364
103 changed files with 878 additions and 790 deletions

View file

@ -33,12 +33,6 @@ export default Vue.extend({
},
type: {
default: 'text'
},
onOk: {
type: Function
},
onCancel: {
type: Function
}
},
data() {
@ -63,9 +57,9 @@ export default Vue.extend({
},
beforeClose() {
if (this.done) {
this.onOk(this.text);
this.$emit('done', this.text);
} else {
if (this.onCancel) this.onCancel();
this.$emit('canceled');
}
},
onKeydown(e) {