Commit dd4dde99 authored by JingChao's avatar JingChao

curreny

parent 4bf2825e
Pipeline #3629 failed with stages
...@@ -46,11 +46,13 @@ export default { ...@@ -46,11 +46,13 @@ export default {
}, },
methods: { methods: {
onInput: function (value) { onInput: function (value) {
if (this.disable) return
let uncurrency = this.$options.filter['uncurrency'] let uncurrency = this.$options.filter['uncurrency']
this.currencyValue = uncurrency(value) this.currencyValue = uncurrency(value)
this.$emit('input', this.currencyValue) this.$emit('input', this.currencyValue)
}, },
onFocus (event) { onFocus (event) {
if (this.disable) return
this.focused = true this.focused = true
setTimeout(function () { setTimeout(function () {
event.target.type = 'number' event.target.type = 'number'
...@@ -58,6 +60,7 @@ export default { ...@@ -58,6 +60,7 @@ export default {
}, 0) }, 0)
}, },
onBlur (event) { onBlur (event) {
if (this.disable) return
event.target.type = 'text' event.target.type = 'text'
this.focused = false this.focused = false
}, },
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
<list-item> <list-item>
<item> <item>
<div slot="name">融资额</div> <div slot="name">融资额</div>
<currency-input slot="content" v-model="money"/> <currency-input slot="content" v-model="money" :disable="true"/>
<div slot="right-icon">¥</div> <div slot="right-icon">¥</div>
</item> </item>
</list-item> </list-item>
...@@ -60,7 +60,7 @@ export default { ...@@ -60,7 +60,7 @@ export default {
}, },
uploadSuccess: this.fileSuccess, // 上传成功后的回调函数 用于给文件添加服务端唯一标示或其他 uploadSuccess: this.fileSuccess, // 上传成功后的回调函数 用于给文件添加服务端唯一标示或其他
}, },
money: null, money: 2100.98,
} }
}, },
methods: { methods: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment