diff --git a/uni_modules/uni-number-box/components/uni-number-box/uni-number-box.vue b/uni_modules/uni-number-box/components/uni-number-box/uni-number-box.vue index 40786f5..42f7954 100644 --- a/uni_modules/uni-number-box/components/uni-number-box/uni-number-box.vue +++ b/uni_modules/uni-number-box/components/uni-number-box/uni-number-box.vue @@ -1,12 +1,15 @@ @@ -66,7 +69,8 @@ }, data() { return { - inputValue: 0 + inputValue: 0, + showText: false }; }, watch: { @@ -86,6 +90,12 @@ } }, methods: { + showText() { + this.showText = true + }, + showEdit() { + this.showText = false + }, _calcValue(type) { if (this.disabled) { return; @@ -154,7 +164,7 @@ } }; - + \ No newline at end of file