diff --git a/package.json b/package.json index 275671b3..bf404782 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ "notification-koro1": "^1.1.1", "tinymce": "^5.8.1", "tui-calendar-hi": "^1.13.0-5", - "view-design-hi": "^4.6.1-1", + "view-design-hi": "^4.6.1-2", "vue-clipboard2": "^0.3.1", "vue-emoji-picker": "^1.0.1", "vue-kityminder-gg": "^1.3.6", diff --git a/resources/assets/js/components/QuickEdit.vue b/resources/assets/js/components/QuickEdit.vue index 053389a6..15de06a5 100644 --- a/resources/assets/js/components/QuickEdit.vue +++ b/resources/assets/js/components/QuickEdit.vue @@ -1,12 +1,12 @@ @@ -15,7 +15,12 @@ export default { name: 'QuickEdit', props: { - value: {}, + value: { + + }, + autoEdit: { + + }, }, data() { @@ -26,14 +31,25 @@ export default { } }, + mounted() { + if (this.autoEdit === true) { + this.onEdit(); + } + }, + watch: { isEdit(val) { - this.$emit("on-edit", val); + this.$emit("on-edit-change", val); + }, + autoEdit(val) { + if (val === true) { + this.onEdit(); + } } }, methods: { - onClick() { + onEdit() { this.content = this.value; this.isEdit = true; this.$nextTick(() => { @@ -41,6 +57,10 @@ export default { }) }, + onBlur() { + this.onEnter(); + }, + onEnter() { if (this.content == this.value) { this.isEdit = false; diff --git a/resources/assets/js/pages/login.vue b/resources/assets/js/pages/login.vue index 1d3779a8..fb16414c 100644 --- a/resources/assets/js/pages/login.vue +++ b/resources/assets/js/pages/login.vue @@ -29,7 +29,7 @@
{{currentLanguage}} - +
{{item}} diff --git a/resources/assets/js/pages/manage.vue b/resources/assets/js/pages/manage.vue index 905b7a60..2c158136 100644 --- a/resources/assets/js/pages/manage.vue +++ b/resources/assets/js/pages/manage.vue @@ -38,20 +38,20 @@