Skip to content

Commit 0dbc690

Browse files
committed
dev-demo: add json viewer at the "af-components page"
1 parent 56859a9 commit 0dbc690

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

dev-demo/custom/AfComponents.vue

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,24 @@
346346

347347
</Select>
348348

349+
<JsonViewer
350+
:value="[
351+
{
352+
id: 1,
353+
name: 'Alice',
354+
meta: {
355+
age: 30,
356+
hobbies: ['reading', 'biking'],
357+
}
358+
},
359+
{
360+
id: 2,
361+
name: 'Bob',
362+
}
363+
]"
364+
:expandDepth="2"
365+
/>
366+
349367
</div>
350368

351369

@@ -380,6 +398,8 @@ import CustomRangePicker from "@/components/CustomRangePicker.vue";
380398
import Toast from '@/components/Toast.vue';
381399
import { useAdminforth } from '@/adminforth';
382400
import { callApi } from '@/utils';
401+
import { JsonViewer } from '@/afcl'
402+
383403
384404
const { alert } = useAdminforth();
385405
import adminforth from '@/adminforth';

0 commit comments

Comments
 (0)