mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
docs(table): fix examples width (#2478)
This commit is contained in:
@@ -99,7 +99,7 @@ const columnFilters = ref([{
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="flex flex-col flex-1">
|
||||
<div class="flex flex-col flex-1 w-full">
|
||||
<div class="flex px-4 py-3.5 border-b border-[var(--ui-border-accented)]">
|
||||
<UInput
|
||||
:model-value="(table?.tableApi?.getColumn('email')?.getFilterValue() as string)"
|
||||
|
||||
@@ -99,7 +99,7 @@ const columnVisibility = ref({
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="flex flex-col flex-1">
|
||||
<div class="flex flex-col flex-1 w-full">
|
||||
<div class="flex justify-end px-4 py-3.5 border-b border-[var(--ui-border-accented)]">
|
||||
<UDropdownMenu
|
||||
:items="table?.tableApi?.getAllColumns().filter(column => column.getCanHide()).map(column => ({
|
||||
|
||||
@@ -264,11 +264,11 @@ function randomize() {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="flex-1 divide-y divide-[var(--ui-border-accented)]">
|
||||
<div class="flex items-center gap-2 px-4 py-3.5">
|
||||
<div class="flex-1 divide-y divide-[var(--ui-border-accented)] w-full">
|
||||
<div class="flex items-center gap-2 px-4 py-3.5 overflow-x-auto">
|
||||
<UInput
|
||||
:model-value="(table?.tableApi?.getColumn('email')?.getFilterValue() as string)"
|
||||
class="max-w-sm"
|
||||
class="max-w-sm min-w-[12ch]"
|
||||
placeholder="Filter emails..."
|
||||
@update:model-value="table?.tableApi?.getColumn('email')?.setFilterValue($event)"
|
||||
/>
|
||||
|
||||
@@ -96,7 +96,7 @@ const globalFilter = ref('45')
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="flex flex-col flex-1">
|
||||
<div class="flex flex-col flex-1 w-full">
|
||||
<div class="flex px-4 py-3.5 border-b border-[var(--ui-border-accented)]">
|
||||
<UInput
|
||||
v-model="globalFilter"
|
||||
|
||||
@@ -106,7 +106,7 @@ const rowSelection = ref({ 1: true })
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="flex-1">
|
||||
<div class="flex-1 w-full">
|
||||
<UTable
|
||||
ref="table"
|
||||
v-model:row-selection="rowSelection"
|
||||
|
||||
Reference in New Issue
Block a user