<template>
    <Input :style="style" v-model="data[filter.code]" :placeholder="filter.label" :clearable="true"></Input>
</template>
<script>
export default {
    name: 'FInput',
    data() {
        return {}
    },
    props: {
        filter: {
            type: Object
        },
        data: {
            type: Object
        }
    },
    computed: {
        style() {
            return {
                'width': (this.filter.width || 100) + 'px'
            }
        }
    },
    methods: {},
    mounted() {}
};
</script>
<style lang="less" scoped>
</style>