feat: Feature/pro docs (#70)

* chore: merge main

* feat: update docs

* feat: remove coze-assistant

* feat: add watermark plugin

* feat: update preferences

* feat: update docs

---------

Co-authored-by: vince <vince292007@gmail.com>
This commit is contained in:
Vben
2024-07-28 14:29:05 +08:00
committed by GitHub
parent 14538f7ed5
commit 376fd17a61
225 changed files with 7731 additions and 1784 deletions

View File

@@ -48,8 +48,8 @@
"@vben-core/typings": "workspace:*",
"@vueuse/core": "^10.11.0",
"class-variance-authority": "^0.7.0",
"lucide-vue-next": "^0.414.0",
"lucide-vue-next": "^0.416.0",
"radix-vue": "^1.9.2",
"vue": "^3.4.33"
"vue": "^3.4.34"
}
}

View File

@@ -32,14 +32,14 @@ function handleItemClick(menu: IDropdownMenuItem) {
</DropdownMenuTrigger>
<DropdownMenuContent align="start">
<DropdownMenuGroup>
<template v-for="menu in menus" :key="menu.key">
<template v-for="menu in menus" :key="menu.value">
<DropdownMenuItem
:disabled="menu.disabled"
class="data-[state=checked]:bg-accent data-[state=checked]:text-accent-foreground text-foreground/80 mb-1 cursor-pointer"
@click="handleItemClick(menu)"
>
<component :is="menu.icon" v-if="menu.icon" class="mr-2 size-4" />
{{ menu.text }}
{{ menu.label }}
</DropdownMenuItem>
<DropdownMenuSeparator v-if="menu.separator" class="bg-border" />
</template>

View File

@@ -30,18 +30,20 @@ function handleItemClick(value: string) {
<template v-for="menu in menus" :key="menu.key">
<DropdownMenuItem
:class="
menu.key === modelValue ? 'bg-accent text-accent-foreground' : ''
menu.value === modelValue
? 'bg-accent text-accent-foreground'
: ''
"
class="data-[state=checked]:bg-accent data-[state=checked]:text-accent-foreground text-foreground/80 mb-1 cursor-pointer"
@click="handleItemClick(menu.key)"
@click="handleItemClick(menu.value)"
>
<component :is="menu.icon" v-if="menu.icon" class="mr-2 size-4" />
<span
v-if="!menu.icon"
:class="menu.key === modelValue ? 'bg-foreground' : ''"
:class="menu.value === modelValue ? 'bg-foreground' : ''"
class="mr-2 size-1.5 rounded-full"
></span>
{{ menu.text }}
{{ menu.label }}
</DropdownMenuItem>
</template>
</DropdownMenuGroup>

View File

@@ -12,17 +12,17 @@ interface VbenDropdownMenuItem {
*/
icon?: Component;
/**
* @zh_CN 唯一标识
* @zh_CN 标题
*/
key: string;
label: string;
/**
* @zh_CN 是否是分割线
*/
separator?: boolean;
/**
* @zh_CN 标题
* @zh_CN 唯一标识
*/
text: string;
value: string;
}
interface DropdownMenuProps {