my_item.vue 386 Bytes
Newer Older
陈浩玮's avatar
陈浩玮 committed
1 2 3
<template>
    <a-col v-bind="span">
        <a-form-model-item v-bind="layout">
陈浩玮's avatar
陈浩玮 committed
4
            <slot />
陈浩玮's avatar
陈浩玮 committed
5 6 7 8 9 10 11 12 13
        </a-form-model-item>
    </a-col>
</template>

<script>
export default {
    data() {
        return {
            span: { xs: 24, sm: 24, lg: 12, xl: 6 },
陈浩玮's avatar
陈浩玮 committed
14
            layout: { labelCol: { span: 6 }, wrapperCol: { span: 18 }, ...this.$attrs },
陈浩玮's avatar
陈浩玮 committed
15 16 17 18
        };
    },
};
</script>