Skip to content

Commit a86f9b7

Browse files
committed
updated docs playground
1 parent 1c5357e commit a86f9b7

File tree

3 files changed

+6
-14
lines changed

3 files changed

+6
-14
lines changed

docs/.vuepress/components/BaseInput.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
:value="modelValue"
44
type="text"
55
class="shadow-sm rounded-md text-base transition-all disabled:cursor-not-allowed disabled:border-gray-300 disabled:text-gray-300 focus:border-primary focus:ring focus:ring-offset-0 focus:ring-primary focus:ring-opacity-50"
6-
@input="$emit('update:modelValue', $event.target.value)"
6+
@change="$emit('update:modelValue', $event.target.value)"
77
/>
88
</template>
99

docs/.vuepress/components/BaseNumber.vue

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<script>
1414
import directive from "../../../src/directive";
1515
import options from "../../../src/options";
16+
let emitTimer;
1617
1718
export default {
1819
props: {
@@ -103,12 +104,6 @@ export default {
103104
this.maskedValue = val;
104105
}
105106
},
106-
config: {
107-
immediate: true,
108-
handler(val) {
109-
this.$emit("update:model-value", this.emittedValue || this.modelValue);
110-
},
111-
},
112107
},
113108
};
114109
</script>

docs/.vuepress/components/PlayGround.vue

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,10 @@ export default {
111111
config: {
112112
deep: true,
113113
handler (val) {
114-
clearTimeout(emitTimer);
115-
emitTimer = setTimeout(() => {
116-
this.updated = false
117-
this.$nextTick(() => {
118-
this.updated = true;
119-
});
120-
}, 1000);
114+
this.updated = false
115+
this.$nextTick(() => {
116+
this.updated = true;
117+
});
121118
}
122119
}
123120
}

0 commit comments

Comments
 (0)