Alerts
2 years ago
BoxActions
2 years ago
PaymentsPage
2 years ago
TableColumns
2 years ago
VuiBoxes
2 years ago
ActionsWithFilters.vue
2 years ago
ChooseAction.vue
2 years ago
ClearFiltersButton.vue
2 years ago
DetailsTableWithStore.vue
2 years ago
EntriesList.vue
2 years ago
EntriesTable.vue
2 years ago
EntriesTableSkeleton.vue
2 years ago
EntryColumnList.vue
2 years ago
EntryColumnsTable.vue
2 years ago
FormBuilderPage.vue
2 years ago
PageActions.vue
2 years ago
PostBoxContainer.vue
2 years ago
PostBoxGrid.vue
2 years ago
PostBoxSimple.vue
2 years ago
PostBoxSkeleton.vue
2 years ago
PostBoxTable.vue
2 years ago
SideBarBoxes.vue
2 years ago
TablePagination.vue
2 years ago
DetailsTableWithStore.vue
37 lines
| 1 | <template> |
| 2 | <DetailsTable |
| 3 | :columns="columnsFromStore" |
| 4 | :source="currentFromStore" |
| 5 | /> |
| 6 | </template> |
| 7 | |
| 8 | <script> |
| 9 | const { DetailsTable } = JetFBComponents |
| 10 | |
| 11 | export default { |
| 12 | name: 'DetailsTableWithStore', |
| 13 | props: { |
| 14 | columns: { |
| 15 | type: String, |
| 16 | default: 'columns', |
| 17 | }, |
| 18 | current: { |
| 19 | type: String, |
| 20 | default: 'currentPopupData', |
| 21 | }, |
| 22 | }, |
| 23 | components: { DetailsTable }, |
| 24 | computed: { |
| 25 | columnsFromStore() { |
| 26 | return this.$store.state[ this.columns ]; |
| 27 | }, |
| 28 | currentFromStore() { |
| 29 | return this.$store.state[ this.current ]; |
| 30 | }, |
| 31 | }, |
| 32 | }; |
| 33 | </script> |
| 34 | |
| 35 | <style> |
| 36 | |
| 37 | </style> |