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