Commit dd4dde99 authored by JingChao's avatar JingChao

curreny

parent 4bf2825e
Pipeline #3629 failed with stages
......@@ -46,11 +46,13 @@ export default {
},
methods: {
onInput: function (value) {
if (this.disable) return
let uncurrency = this.$options.filter['uncurrency']
this.currencyValue = uncurrency(value)
this.$emit('input', this.currencyValue)
},
onFocus (event) {
if (this.disable) return
this.focused = true
setTimeout(function () {
event.target.type = 'number'
......@@ -58,6 +60,7 @@ export default {
}, 0)
},
onBlur (event) {
if (this.disable) return
event.target.type = 'text'
this.focused = false
},
......
......@@ -28,7 +28,7 @@
<list-item>
<item>
<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>
</item>
</list-item>
......@@ -60,7 +60,7 @@ export default {
},
uploadSuccess: this.fileSuccess, // 上传成功后的回调函数 用于给文件添加服务端唯一标示或其他
},
money: null,
money: 2100.98,
}
},
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