diff --git a/src/components/GuipInput.vue b/src/components/GuipInput.vue
index adbad6a..2983dff 100644
--- a/src/components/GuipInput.vue
+++ b/src/components/GuipInput.vue
@@ -4,9 +4,9 @@
:prop="prop" :rules="rules">
{{ desc }}
+ @blur="$emit('blur', inputValue)" @focus="$emit('focus', inputValue)" >
@@ -58,6 +58,12 @@ export default {
// },
value(newVal) {
this.inputValue = newVal;
+ },
+ defaultValue(newVal) {
+ // 如果没有value但有defaultValue变化时更新
+ if (!this.value && newVal !== this.inputValue) {
+ this.inputValue = newVal;
+ }
}
},
created() {
diff --git a/src/components/SetLeftMenu.vue b/src/components/SetLeftMenu.vue
index 57edffb..3e9b659 100644
--- a/src/components/SetLeftMenu.vue
+++ b/src/components/SetLeftMenu.vue
@@ -1,6 +1,6 @@