<template>
    <BaseModal title="SQL参数">
        <Form :label-width="80"
            :model="data">
            <FormItem label="参数名称"
                prop="name">
                <Input v-model="data.name"></Input>
            </FormItem>
            <FormItem label="数据类型"
                prop="type">
                <Select v-model="data.type">
                    <Option v-for="item in parameterTypes"
                        :value="item"
                        :key="item">{{item}}</Option>
                </Select>
            </FormItem>
            <FormItem label="默认值"
                prop="defaultValue">
                <Input v-model="data.defaultValue"></Input>
            </FormItem>
        </Form>
    </BaseModal>
</template>
<script>

export default {
    name: 'SqlParametersDialog',
    data() {
        return {
            parameterTypes: ['String', 'Integer', 'Float', 'Boolean', 'Date', 'List']
        }
    },
    components: {
    }
};

</script>
