<template>
    <span :class="label?'sel-span':''">
        <span v-if="label">{{$dict.tranByPubMap(label)}} :</span>
        <el-date-picker :type="$attrs.type? $attrs.type: 'date'"
            v-bind="$attrs" v-on="$listeners" :style="$attrs.elstyle" style="width:135px;" clearable
            value-format="yyyy-MM-dd" format="yyyy-MM-dd"></el-date-picker>
    </span>
    
</template>


<script>

export default {
    props:["label"],
    data() {
        return {
            optList:[]
        }
    },

    mounted() {
    },
    computed: {
    },

    methods: {
    }
}
</script>

<style lang="less" scoped>
    .sel-span{
        display: inline-block;
        margin-left: 10px;
        margin-right: 10px;
        margin-top: 5px;
        >span{
            display: inline-block;
            white-space: nowrap;
            color:gray;
            font-size: 15px;
        }
    }
</style>