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

@@ -8,6 +8,7 @@ import { $t } from '@vben/locales';
import {
BUILT_IN_THEME_PRESETS,
type BuiltinThemePreset,
preferences,
} from '@vben/preferences';
import { convertToHsl, TinyColor } from '@vben/utils';
@@ -25,6 +26,16 @@ const inputValue = computed(() => {
return new TinyColor(themeColorPrimary.value).toHexString();
});
const builtinThemePresets = computed(() => {
return [
{
color: preferences.theme.colorPrimary,
type: 'default',
},
...BUILT_IN_THEME_PRESETS,
];
});
function typeView(name: BuiltinThemeType) {
switch (name) {
case 'default': {
@@ -97,7 +108,7 @@ function selectColor() {
<template>
<div class="flex w-full flex-wrap justify-between">
<template v-for="theme in BUILT_IN_THEME_PRESETS" :key="theme.type">
<template v-for="theme in builtinThemePresets" :key="theme.type">
<div class="flex cursor-pointer flex-col" @click="handleSelect(theme)">
<div
:class="{