<div class="modal fade" tabindex="-1" role="dialog" id="modal">
    <div class="modal-dialog modal-lg modal-dialog-centered modal-dialog-scrollable">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
            </div>
            <div class="modal-body">
                <div class="row">
                    <label class="col-2 offset-1" for="name">标签名</label>
                    <input class="col-7 form-control form-control-sm" :class="errors.name ? 'is-invalid' : ''" id="name" type="text" v-model="tag.name">
                    <span class="invalid-feedback mt-0 offset-3" role="alert" v-if="errors.name">
                        <strong>@{{ errors.name[0] }}</strong>
                    </span>
                </div>
                <div class="row mt-2">
                    <label class="col-2 offset-1" for="explanation">说明</label>
                    <textarea class="col-7 form-control form-control-sm" :class="errors.explanation ? 'is-invalid' : ''" id="explanation" type="text" v-model="tag.explanation"></textarea>
                    <span class="invalid-feedback mt-0 offset-3" role="alert" v-if="errors.explanation">
                        <strong>@{{ errors.explanation[0] }}</strong>
                    </span>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-success" @click="submitCustomerTag()">提交</button>
            </div>
        </div>
    </div>
</div>