This commit is contained in:
dap
2025-01-01 12:57:20 +08:00
251 changed files with 619 additions and 959 deletions

View File

@@ -10,7 +10,7 @@ import { computed } from 'vue';
import { Avatar, AvatarFallback, AvatarImage } from '../../ui';
interface Props extends AvatarRootProps, AvatarFallbackProps, AvatarImageProps {
interface Props extends AvatarFallbackProps, AvatarImageProps, AvatarRootProps {
alt?: string;
class?: ClassType;
dot?: boolean;

View File

@@ -1,5 +1,4 @@
import type { BreadcrumbStyleType } from '@vben-core/typings';
import type { Component } from 'vue';
export interface IBreadcrumb {

View File

@@ -1,9 +1,8 @@
import type { AsTag } from 'radix-vue';
import type { Component } from 'vue';
import type { ButtonVariants, ButtonVariantSize } from '../../ui';
import type { Component } from 'vue';
export interface VbenButtonProps {
/**
* The element or component this component should render as. Can be overwrite by `asChild`

View File

@@ -8,9 +8,8 @@ import type {
import type { IContextMenuItem } from './interface';
import { computed } from 'vue';
import { useForwardPropsEmits } from 'radix-vue';
import { computed } from 'vue';
import {
ContextMenu,

View File

@@ -6,9 +6,8 @@ import type {
HoverCardRootProps,
} from 'radix-vue';
import { computed } from 'vue';
import { useForwardPropsEmits } from 'radix-vue';
import { computed } from 'vue';
import { HoverCard, HoverCardContent, HoverCardTrigger } from '../../ui';

View File

@@ -1,5 +1,5 @@
<script setup lang="ts">
import { type Component, computed } from 'vue';
import type { Component } from 'vue';
import { IconDefault, IconifyIcon } from '@vben-core/icons';
import {
@@ -8,6 +8,7 @@ import {
isObject,
isString,
} from '@vben-core/shared/utils';
import { computed } from 'vue';
const props = defineProps<{
// 没有是否显示默认图标

View File

@@ -6,9 +6,8 @@ import type {
PopoverRootProps,
} from 'radix-vue';
import { computed } from 'vue';
import { useForwardPropsEmits } from 'radix-vue';
import { computed } from 'vue';
import {
PopoverContent,

View File

@@ -1,8 +1,8 @@
<script lang="ts">
import type { Component, PropType } from 'vue';
import { defineComponent, h } from 'vue';
import { isFunction, isObject } from '@vben-core/shared/utils';
import { defineComponent, h } from 'vue';
export default defineComponent({
name: 'RenderContent',

View File

@@ -1,11 +1,9 @@
<script setup lang="ts">
import type { TabsIndicatorProps } from 'radix-vue';
import { computed } from 'vue';
import { cn } from '@vben-core/shared/utils';
import { TabsIndicator, useForwardProps } from 'radix-vue';
import { computed } from 'vue';
const props = defineProps<{ class?: any } & TabsIndicatorProps>();

View File

@@ -1,7 +1,6 @@
<script setup lang="ts">
import type { ClassType } from '@vben-core/typings';
import type { TooltipContentProps } from 'radix-vue';
import type { StyleValue } from 'vue';
import {