33 lines
443 B
Markdown
33 lines
443 B
Markdown
<cn>
|
|
#### 基本
|
|
数字输入框。
|
|
</cn>
|
|
|
|
<us>
|
|
#### Basic
|
|
Numeric-only input box.
|
|
</us>
|
|
|
|
```tpl
|
|
<template>
|
|
<div>
|
|
<a-input-number :min="1" :max="10" v-model="value" @change="onChange" />
|
|
当前值:{{value}}
|
|
</div>
|
|
</template>
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
value: 3,
|
|
};
|
|
},
|
|
methods: {
|
|
onChange(value) {
|
|
console.log('changed', value);
|
|
},
|
|
},
|
|
};
|
|
</script>
|
|
```
|