<template>
  <el-form-item :label="options.name" :required="options.required">

    <el-input-number v-model="formData[options.key || ('input-number-'+options.uuid)]" :disabled="options.disabled"
                     :step="options.step" :min="options.min || -Infinity" :max="options.max || Infinity"
                     :controls-position="options.controlsPosition?'right':'' "
    />
  </el-form-item>
</template>
<script lang="ts" setup>

defineOptions({
  name: 'hw-input-view'
});

const props = defineProps({
  options: Object,
  formData: Object
});
const { options, formData } = toRefs(props);
</script>
<style scoped lang="less">
</style>



