inputNumber数字框
... 2022-9-15 Less than 1 minute
# inputNumber数字框
值:1
值:1
有最小最大值的数据:1
Copy
<el-row :span="24">
<el-col :span="6">
值:{{form}}<br/>
<avue-input-number v-model="form"></avue-input-number>
</el-col>
<el-col :span="24"></el-col>
<el-col :span="6">
值:{{form}}<br/>
<avue-input-number v-model="form" precision="2" controls-position=""></avue-input-number>
</el-col>
<el-col :span="24"></el-col>
<el-col :span="6">
有最小最大值的数据:{{hasMinMaxForm}}<br/>
<avue-input-number v-model="hasMinMaxForm" precision="2" controls-position="" :min="min" :max="max"></avue-input-number>
</el-col>
</el-row>
<script>
export default {
data() {
return {
form:1,
hasMinMaxForm: 1,
min: 0, // 最小值
max: 10 // 最大值
}
}
}
</script>
This app can be installed on your PC or mobile device. This will allow this web app to look and behave like any other installed app. You will find it in your app lists and be able to pin it to your home screen, start menus or task bars. This installed web app will also be able to safely interact with other apps and your operating system.