Skip to content
This repository was archived by the owner on Mar 17, 2021. It is now read-only.

Commit 650352c

Browse files
committed
Added slot for table-header, make handleSearchInput function instead of object
1 parent d5ca5c7 commit 650352c

File tree

1 file changed

+5
-4
lines changed
  • src/components/Table/TableHeader

1 file changed

+5
-4
lines changed

src/components/Table/TableHeader/main.vue

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
<template>
22
<div class="table-header">
3-
<h2 class="table-header__title">{{ title }}</h2>
3+
<slot name="title">
4+
<h2 class="table-header__title">{{ title }}</h2>
5+
</slot>
46

57
<div class="table-header__actions">
68
<div class="table-header__search" v-if="searchable">
79
<v-textbox
8-
@input="handleSearchInput.input"
10+
@input="handleSearchInput"
911
floated
1012
label="Search"
1113
type="text"
@@ -37,8 +39,7 @@ export default {
3739
default: true,
3840
},
3941
handleSearchInput: {
40-
type: Object,
41-
default: () => {},
42+
type: Function,
4243
},
4344
disabledSearch: {
4445
type: Boolean,

0 commit comments

Comments
 (0)