Skip to content
This repository was archived by the owner on Apr 1, 2022. It is now read-only.

Customize the checkbox style #152

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/Table/MultiSelect.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<template>
<input type="checkbox" v-model="status" @change="toggle" style="margin: 0; vertical-align: middle" name="MultiSelect">
<div class="checkbox check-success">
<input type="checkbox" v-model="status" @change="toggle" style="margin: 0; vertical-align: middle" name="MultiSelect" :id="id">
<label :for="id"></label>
</div>
</template>
<script>
import replaceWith from '../_utils/replaceWith'
Expand All @@ -9,6 +12,7 @@ import replaceWith from '../_utils/replaceWith'
export default {
name: 'MultiSelect',
props: {
id: String,
selection: { type: Array, required: true },
row: Object, // available for tbody checkbox
rows: Array // available for thead checkbox
Expand Down