This repository was archived by the owner on Jun 27, 2024. It is now read-only.
File tree 2 files changed +13
-4
lines changed
2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -209,15 +209,21 @@ import isEqual from "lodash-es/isEqual";
209
209
import map from " lodash-es/map" ;
210
210
import pickBy from " lodash-es/pickBy" ;
211
211
212
- const app = getCurrentInstance ()
213
- const $inertia = app .appContext .config .globalProperties .$inertia ;
214
-
215
212
const props = defineProps ({
213
+ inertia: {
214
+ type: Object ,
215
+ default : () => {
216
+ return {};
217
+ },
218
+ required: false ,
219
+ },
220
+
216
221
name: {
217
222
type: String ,
218
223
default: " default" ,
219
224
required: false ,
220
225
},
226
+
221
227
striped: {
222
228
type: Boolean ,
223
229
default: false ,
@@ -267,6 +273,9 @@ const props = defineProps({
267
273
},
268
274
});
269
275
276
+ const app = getCurrentInstance ()
277
+ const $inertia = app ? app .appContext .config .globalProperties .$inertia : props .inertia ;
278
+
270
279
const updates = ref (0 )
271
280
272
281
const queryBuilderProps = computed (() => {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @protonemedia/inertiajs-tables-laravel-query-builder" ,
3
- "version" : " 2.0.0 " ,
3
+ "version" : " 2.0.1 " ,
4
4
"description" : " Inertia.js Front-end Components for Spatie's Laravel Query Builder" ,
5
5
"author" :
" Pascal Baljet <[email protected] >" ,
6
6
"license" : " MIT" ,
You can’t perform that action at this time.
0 commit comments