以下のように、
Laravel5.7 + vue.js コンポーネントと、Bootstrap4 を使用して
コンポーネントを作成しました。
comp.vue
1<template> 2 3 <div id="generalmodal"> 4 5 <div class="form-group row"> 6 <div class="col-md-1"> 7 <label for="cd" class="col-form-label"> 8 <slot name="title"></slot> 9 </label> 10 </div> 11 12 <div class="col-md-1"> 13 <input type="text" name="cd" v-model="cd" class="form-control code_ref" oncontextmenu="return false;" @mouseup.right="eventMouseRightClick()" @keyup.f4="eventMouseRightClick()" v-bind:maxlength="maxlength"> 14 </div> 15 16 <div class="col-md-2"> 17 <label for="name" class="col-form-label">{{ name }}</label> 18 </div> 19 20 <div class="col-md-auto"> 21 </div> 22 </div> 23 24 25 26 </div> 27 28</template> 29
本コンポーネント配置後に、右側にラベルと、テキストボックス
をインラインで配置したいのですが、位置がずれてしまいます。
イメージは、
ラベルCD テキストcd ラベルNAME ラベルB テキストB
こうで、
ラベルCD テキストcd ラベルNAMEが上記のコンポーネントで
ラベルB テキストB
をインラインで配置したく思います。
どうかよろしくお願い致します。
あなたの回答
tips
プレビュー