<style>
.ivu-form-item-label {
    width: 100%;
}
</style>
<template>
    <div :class="nxLabelClass">
        <span class="ivu-form-item-label">{{config.caption}}</span>
    </div>
</template>
<script>
export default {
    name: 'XLabel',
    data() {
        return {}
    },
    props: {
        config: {
            type: Object,
            default: () => {
                return {}
            }
        }
    },
    computed: {
        style() {
            return {}
        },
        nxLabelClass() {
            return {
                'ivu-form-item-required': this.config.requiredFlag
            }
        }
    },
    mounted() {},
    methods: {}
}
</script>
</style>
<template>
    <div :class="nxLabelClass">
        <span class="ivu-form-item-label">{{config.caption}}</span>
    </div>
</template>
<script>
export default {
    name: 'XLabel',
    data() {
        return {}
    },
    props: {
        'config': {
            type: Object,
            default: () => { return {} }
        }
    },
    computed: {
        style() {
            return {

            }
        },
        nxLabelClass() {
            return {
                'ivu-form-item-required': this.config.requiredFlag
            }
        }
    },
    mounted() {},
    methods: {}
};
</script>