提交 fd07a40d 编写于 作者: Neuromancer255's avatar Neuromancer255

编辑器抛出值类型修改

上级 391b0052
...@@ -153,7 +153,7 @@ ...@@ -153,7 +153,7 @@
* @memberof AppCheckList * @memberof AppCheckList
*/ */
public change(value: any) { public change(value: any) {
this.curValue = value.detail.value; this.curValue = value.detail.value.toString();
this.$emit('change', value.detail.value); this.$emit('change', value.detail.value);
} }
......
<template> <template>
<ion-input debounce="300" :type="type" :value="value" :placeholder="placeholder" :disabled = "disabled" @ionChange="change" @ionBlur="()=>{this.$emit('blur')}"></ion-input> <ion-input debounce="300" :type="type" :value="value" :placeholder="placeholder" @ionChange="change" @ionBlur="()=>{this.$emit('blur')}"></ion-input>
</template> </template>
<script lang="ts"> <script lang="ts">
...@@ -26,14 +26,6 @@ export default class AppInput extends Vue { ...@@ -26,14 +26,6 @@ export default class AppInput extends Vue {
*/ */
@Prop() public type?: string; @Prop() public type?: string;
/**
* 禁用
*
* @type {boolean}
* @memberof AppInput
*/
@Prop() public disabled?: boolean;
/** /**
* 占位提示文字 * 占位提示文字
* *
......
...@@ -37,7 +37,7 @@ export default class AppRate extends Vue { ...@@ -37,7 +37,7 @@ export default class AppRate extends Vue {
* @memberof AppRate * @memberof AppRate
*/ */
set curValue(val:any){ set curValue(val:any){
this.$emit('change',val); this.$emit('change',val.toString());
} }
public mounted(){ public mounted(){
......
...@@ -27,7 +27,7 @@ export default class AppMobSlider extends Vue { ...@@ -27,7 +27,7 @@ export default class AppMobSlider extends Vue {
* change事件 * change事件
*/ */
public change(data:any) { public change(data:any) {
this.$emit('change',data.detail.value); this.$emit('change',data.detail.value.toString());
} }
public mounted(){ public mounted(){
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册