Vue

※前提条件:本文基于 Vue 2.0 创作

在表单里面使用提示 [edit]

显示在输入框的右边 [edit]

<el-form-item label="密码" prop="password">
  <el-input v-model="selfForm.password" style="width: 260px" />
  <el-tooltip class="item" effect="dark" content="密码可以不填。" placement="top-end">
    <i class="el-icon-question"/>
  </el-tooltip>
</el-form-item>

显示在Label的右边 [edit]

<el-form-item prop="password">
  <template slot="label">
    <span>密码</span>
    <el-tooltip class="item" effect="dark" content="密码可以不填。" placement="top-end">
      <i class="el-icon-question" />
    </el-tooltip>
    <span>:</span>
  </template>
  <el-input v-model="selfForm.password" style="width: 260px" />
</el-form-item>

コメント:



(画像の文字列を入力して下さい)

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS