Skip to content

Commit

Permalink
Add name prop for TableDisplay.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrichar1 committed Mar 5, 2024
1 parent c517c9e commit f639bd0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@uoe-eng/tabularasa",
"version": "1.31.0",
"version": "1.31.1",
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build --target lib --name tabularasa src/index.js",
Expand Down
4 changes: 4 additions & 0 deletions src/components/fieldBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ export default () => {
type: Object,
default: () => ({}),
},
name: {
type: String,
default: '',
},
newItem: {
type: Object,
default: () => ({}),
Expand Down
2 changes: 1 addition & 1 deletion src/components/fields/TableDisplay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default {
})
const onRowSelect = (event) => {
trBus.emit(`TRDetail:TableDisplay`, {
trBus.emit(`TRDetail:TableDisplay:${useProps.name}`, {
config: methods.value.config,
data: event.data,
})
Expand Down

0 comments on commit f639bd0

Please sign in to comment.