Skip to content

feat(table): add borderless prop #2300

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 16, 2018
Merged
Show file tree
Hide file tree
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
23 changes: 14 additions & 9 deletions src/components/table/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ fields: [
| ---- | ---- | -----------
| `striped` | Boolean | Add zebra-striping to the table rows within the `<tbody>`
| `bordered` | Boolean | For borders on all sides of the table and cells.
| `borderless` | Boolean | removes inner borders from table.
| `outlined` | Boolean | For a thin border on all sides of the table. Has no effect if `bordered` is set.
| `small` | Boolean | To make tables more compact by cutting cell padding in half.
| `hover` | Boolean | To enable a hover highlighting state on table rows within a `<tbody>`
Expand All @@ -334,17 +335,20 @@ fields: [
```html
<template>
<div>
<b-form-checkbox inline v-model="striped">Striped</b-form-checkbox>
<b-form-checkbox inline v-model="bordered">Bordered</b-form-checkbox>
<b-form-checkbox inline v-model="outlined">Outlined</b-form-checkbox>
<b-form-checkbox inline v-model="small">Small</b-form-checkbox>
<b-form-checkbox inline v-model="hover">Hover</b-form-checkbox>
<b-form-checkbox inline v-model="dark">Dark</b-form-checkbox>
<b-form-checkbox inline v-model="fixed">Fixed</b-form-checkbox>
<b-form-checkbox inline v-model="footClone">Foot Clone</b-form-checkbox>

<b-form-group label="Table Options">
<b-form-checkbox inline v-model="striped">Striped</b-form-checkbox>
<b-form-checkbox inline v-model="bordered">Bordered</b-form-checkbox>
<b-form-checkbox inline v-model="borderless">Borderless</b-form-checkbox>
<b-form-checkbox inline v-model="outlined">Outlined</b-form-checkbox>
<b-form-checkbox inline v-model="small">Small</b-form-checkbox>
<b-form-checkbox inline v-model="hover">Hover</b-form-checkbox>
<b-form-checkbox inline v-model="dark">Dark</b-form-checkbox>
<b-form-checkbox inline v-model="fixed">Fixed</b-form-checkbox>
<b-form-checkbox inline v-model="footClone">Foot Clone</b-form-checkbox>
</b-form-group>
<b-table :striped="striped"
:bordered="bordered"
:borderless="borderless"
:outlined="outlined"
:small="small"
:hover="hover"
Expand All @@ -369,6 +373,7 @@ export default {
],
striped: false,
bordered: false,
borderless: false,
outlined: false,
small: false,
hover: false,
Expand Down
5 changes: 5 additions & 0 deletions src/components/table/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,10 @@ export default {
type: Boolean,
default: false
},
borderless: {
type: Boolean,
default: false
},
outlined: {
type: Boolean,
default: false
Expand Down Expand Up @@ -378,6 +382,7 @@ export default {
'table-hover': this.hover,
'table-dark': this.dark,
'table-bordered': this.bordered,
'table-borderless': this.borderless,
'table-sm': this.small,
'border': this.outlined,
// The following are b-table custom styles
Expand Down