Skip to content

Commit

Permalink
refactor(maz-ui): MazTable - add data row into the actions slot
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisMazel committed Mar 24, 2024
1 parent f61a91a commit 59f717a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 2 additions & 1 deletion packages/lib/components/MazTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,9 @@
<MazTableCell v-if="$slots.actions">
<!--
@slot actions - will add actions column
@binding {Object} row - row data
-->
<slot name="actions"></slot>
<slot name="actions" :row="row"></slot>
</MazTableCell>
</MazTableRow>
</template>
Expand Down
6 changes: 2 additions & 4 deletions packages/lib/modules/helpers/sleep.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
export const sleep = (duration: number) => {
return new Promise((resolve) => {
setTimeout(resolve, duration)
})
export function sleep(duration: number) {
return new Promise((resolve) => setTimeout(resolve, duration))
}
2 changes: 1 addition & 1 deletion packages/lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
"dropzone": "^5.9.3",
"libphonenumber-js": "^1.9.44",
"nuxt": "^3.4.0",
"unplugin-vue-components": "^0.25.0",
"unplugin-vue-components": "^0.26.0",
"vue": "^3.0.0",
"vue-router": "^4.0.0"
},
Expand Down

0 comments on commit 59f717a

Please sign in to comment.