You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
652 B
Vue

<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>