Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <template>
- <div class="container">
- <h1 class="text-center">List member</h1>
- <table class="table table-bordered">
- <thead>
- <tr>
- <th class="text-center">ID</th>
- <th class="text-center">Name</th>
- <th class="text-center">Birthday</th>
- <th class="text-center">Score</th>
- <th class="text-center">Action</th>
- </tr>
- </thead>
- <tbody>
- <tr v-for="person in people">
- <td class="text-center">{{ person.id }}</td>
- <td class="text-center">{{ person.name }}</td>
- <td class="text-center">{{ person.birthday }}</td>
- <td class="text-center">{{ person.score }}</td>
- <td class="text-center">
- <b-btn v-b-modal.my-modal>Edit</b-btn>
- </td>
- </tr>
- </tbody>
- </table>
- <!-- Modal Component -->
- <b-modal id="my-modal" ref="modal" title="Edit profile" @ok="handleOk"
- @shown="clearName">
- <form @submit.stop.prevent="handleSubmit">
- <b-form-input type="text">{{ person.name }}</b-form-input>
- <br>
- <b-form-input type="text"></b-form-input>
- <br>
- <b-form-input type="text"></b-form-input>
- </form>
- </b-modal>
- </div>
- </div>
- </template>
Add Comment
Please, Sign In to add comment