<template>
  <div>
    <a-form-item label="提示文字">
      <a-input
        v-model="value.placeholder"
        size="small"
        placeholder="请设置提示语"
      />
    </a-form-item>
    <a-form-item label="保留小数">
      <a-input-number
        v-model="value.precision"
        :min="0"
        :max="3"
        :precision="0"
        :controls="true"
        size="small"
        placeholder="小数位数"
      />
      位
    </a-form-item>
    <a-form-item label="展示大写">
      <a-switch v-model="value.showChinese" />
    </a-form-item>
  </div>
</template>

<script>
export default {
  name: 'AmountInputConfig',
  props: {
    value: {
      type: Object,
      default: () => ({
        placeholder: '',
        precision: 0,
        showChinese: false,
      }),
    },
  },
};
</script>

<style scoped>
</style>
