File tree 3 files changed +8
-3
lines changed
3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 153
153
'hover:bg-gray-100': striped,
154
154
'hover:bg-gray-50': !striped
155
155
}"
156
+ @click =" rowClick(item, key)"
156
157
>
157
158
<td
158
159
v-for =" column in queryBuilderProps.columns"
@@ -291,6 +292,8 @@ const props = defineProps({
291
292
}
292
293
});
293
294
295
+ const emit = defineEmits ([" rowClick" ]);
296
+
294
297
provide (" activeClasses" , props .activeClasses );
295
298
296
299
const app = getCurrentInstance ();
@@ -387,7 +390,9 @@ const hasData = computed(() => {
387
390
return false ;
388
391
});
389
392
390
- //
393
+ function rowClick (item , key ) {
394
+ emit (" rowClick" , item, key);
395
+ }
391
396
392
397
function disableSearchInput (key ) {
393
398
forcedVisibleSearchInputs .value = forcedVisibleSearchInputs .value .filter ((search ) => search != key);
Original file line number Diff line number Diff line change 13
13
clip-rule =" evenodd"
14
14
/>
15
15
</svg >
16
- <span class =" text-gray-400 ml-1" >{{ numFilters }} active <span v-text =" numFilters === 1 ? 'filter' : 'filters'" ></ span >:</span >
16
+ <span class =" text-gray-400 ml-1" >{{ numFilters }} active <span v-text =" numFilters === 1 ? 'filter' : 'filters'" / >:</span >
17
17
</div >
18
18
19
19
<button
Original file line number Diff line number Diff line change 6
6
use Illuminate \Pagination \Paginator ;
7
7
use Illuminate \Support \Collection ;
8
8
use Illuminate \Support \Str ;
9
- use Inertia \Response ;
10
9
use Illuminate \Support \Traits \Conditionable ;
10
+ use Inertia \Response ;
11
11
12
12
class InertiaTable
13
13
{
You can’t perform that action at this time.
0 commit comments