chore: 升级 shadcn-vue 组件到v4最新版 (#7972)
* fix: useStore is deprecated * chore: update deps * feat: 升级shadcn-ui v4 * fix: workbench style * feat: 升级shadcn-ui v4 step2 * feat: 升级shadcn-ui v4 step3 * chore: 升级shadcn v4 * fix: pagination * fix: dark style * fix: doc import * feat: 增加详情组件,参考 antdv-next * docs: descriptions docs * docs: Browser Support * feat: add table action * feat: icon use vbenIcon * fix: type error * fix: dropdown popConfirm * feat: 使用默认的文字交互 * feat: 优化渲染性能
This commit is contained in:
@@ -11,13 +11,13 @@ import {
|
||||
Button,
|
||||
Input,
|
||||
Pagination,
|
||||
PaginationContent,
|
||||
PaginationEllipsis,
|
||||
PaginationFirst,
|
||||
PaginationItem,
|
||||
PaginationLast,
|
||||
PaginationList,
|
||||
PaginationListItem,
|
||||
PaginationNext,
|
||||
PaginationPrev,
|
||||
PaginationPrevious,
|
||||
VbenIcon,
|
||||
VbenIconButton,
|
||||
VbenPopover,
|
||||
@@ -256,14 +256,14 @@ defineExpose({ toggleOpenState, open, close });
|
||||
size="small"
|
||||
@update:page="handlePageChange"
|
||||
>
|
||||
<PaginationList
|
||||
<PaginationContent
|
||||
v-slot="{ items }"
|
||||
class="flex w-full items-center gap-1"
|
||||
>
|
||||
<PaginationFirst class="size-5" />
|
||||
<PaginationPrev class="size-5" />
|
||||
<PaginationPrevious class="size-5" />
|
||||
<template v-for="(item, index) in items">
|
||||
<PaginationListItem
|
||||
<PaginationItem
|
||||
v-if="item.type === 'page'"
|
||||
:key="index"
|
||||
:value="item.value"
|
||||
@@ -275,7 +275,7 @@ defineExpose({ toggleOpenState, open, close });
|
||||
>
|
||||
{{ item.value }}
|
||||
</Button>
|
||||
</PaginationListItem>
|
||||
</PaginationItem>
|
||||
<PaginationEllipsis
|
||||
v-else
|
||||
:key="item.type"
|
||||
@@ -285,7 +285,7 @@ defineExpose({ toggleOpenState, open, close });
|
||||
</template>
|
||||
<PaginationNext class="size-5" />
|
||||
<PaginationLast class="size-5" />
|
||||
</PaginationList>
|
||||
</PaginationContent>
|
||||
</Pagination>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -24,6 +24,8 @@ export {
|
||||
VbenCollapsibleParams,
|
||||
VbenContextMenu,
|
||||
VbenCountToAnimator,
|
||||
VbenDescriptions,
|
||||
VbenDescriptionsItem,
|
||||
VbenFullScreen,
|
||||
VbenIconButton,
|
||||
VbenInputPassword,
|
||||
@@ -32,11 +34,18 @@ export {
|
||||
VbenPinInput,
|
||||
VbenSelect,
|
||||
VbenSpinner,
|
||||
VbenTableAction,
|
||||
} from '@vben-core/shadcn-ui';
|
||||
|
||||
export type {
|
||||
ActionItem,
|
||||
CollapsibleParamSchema,
|
||||
CollapsibleParamsProps,
|
||||
DescriptionsColumn,
|
||||
DescriptionsItemType,
|
||||
DescriptionsProps,
|
||||
DescriptionsSize,
|
||||
FlattenedItem,
|
||||
TableActionProps,
|
||||
} from '@vben-core/shadcn-ui';
|
||||
export { globalShareState } from '@vben-core/shared/global-state';
|
||||
|
||||
Reference in New Issue
Block a user