修复商品编辑小程序无法输入小数问题
This commit is contained in:
@@ -330,7 +330,7 @@
|
||||
<text>起售数量</text>
|
||||
</view>
|
||||
<view class="u-m-t-16">
|
||||
<price-number-box placeholder="请输入起售数量"
|
||||
<price-number-box inputType="number" placeholder="请输入起售数量"
|
||||
v-model="sku.suit"></price-number-box>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="u-flex number-box">
|
||||
<view class="u-flex u-flex-1">
|
||||
<up-input @blur="priceFormat" border="none" v-model="number" type="number" :placeholder="placeholder"></up-input>
|
||||
<up-input @blur="priceFormat" border="none" v-model="number" :type="inputType" :placeholder="placeholder"></up-input>
|
||||
</view>
|
||||
<view class="u-flex u-flex-col right">
|
||||
<view class="u-flex-1 u-p-l-8 u-p-r-8" @click="changeNumber('add')">
|
||||
@@ -24,6 +24,10 @@
|
||||
watch,nextTick
|
||||
} from 'vue';
|
||||
const props = defineProps({
|
||||
inputType:{
|
||||
type:String,
|
||||
default:'digit'
|
||||
},
|
||||
modelValue: {
|
||||
type: [String, Number]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user