-
Notifications
You must be signed in to change notification settings - Fork 393
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
feat(components): add data-table #167
Conversation
Codecov Report
@@ Coverage Diff @@
## next #167 +/- ##
===================================
Coverage 100% 100%
===================================
Files 61 66 +5
Lines 1109 1192 +83
Branches 150 161 +11
===================================
+ Hits 1109 1192 +83
Continue to review full report at Codecov.
|
sortKey: null, | ||
sortDirection: 'asc', | ||
currentPage: 0, | ||
maxPages: 1, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
computed prop, to remove the watcher and cache the result
} | ||
|
||
const searchRegex: RegExp = new RegExp(`${this.searchTerm}`, 'gmi'); | ||
const filter = (columns: any[]) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
object, not array
return `${100 / this.columns.length}%`; | ||
}, | ||
rows() { | ||
return this.displayData.map((row: any[]) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
object, not array
data: dataTableDataFixture, | ||
}; | ||
}, | ||
template: `<vueDataTable :header="header" :data="data" placeholder="Search" @click="action" />`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vue-data-table
data: dataTableDataFixture, | ||
}; | ||
}, | ||
template: `<vueDataTable :header="header" :data="data" :show-search="false" :page="1" :max-rows="10" @click="action" />`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vue-data-table
f95d0eb
to
a03b854
Compare
closes #141
What is accomplished by your PR?
This PR adds a new DataTable component which includes following features:
Is there something controversial in your PR?
nope
Link to the Issue
#141
Checklist
New Feature / Bug Fix