【新增】申请证书算法配置

【新增】调整证书信息
This commit is contained in:
chudong
2025-05-19 17:45:17 +08:00
parent 4e91f10a4f
commit 59dc0a4108
99 changed files with 262 additions and 219 deletions

View File

@@ -1,4 +1,4 @@
import { ref, Ref, toRef, effectScope, onScopeDispose, shallowRef, toRefs, watch, isRef } from 'vue'
import { ref, Ref, toRef, effectScope, onScopeDispose, shallowRef, toRefs, isRef } from 'vue'
import {
NForm,
NFormItem,
@@ -46,7 +46,7 @@ import {
type CheckboxGroupProps,
SwitchSlots,
} from 'naive-ui'
import { LeftOutlined, DownOutlined } from '@vicons/antd'
import { DownOutlined, UpOutlined } from '@vicons/antd'
import { translation, TranslationModule, type TranslationLocale } from '../locals/translation'
import type {
FormInstanceWithComponent,
@@ -739,18 +739,13 @@ const useFormMore = (isMore: Ref<boolean>, content?: string) => {
return {
type: 'custom',
render: () => (
<NDivider
class="cursor-pointer w-full"
onClick={() => {
isMore.value = !isMore.value
}}
>
<NDivider class="cursor-pointer w-full !m-[1rem]" onClick={() => (isMore.value = !isMore.value)}>
<div class="flex items-center w-full" style={{ color }}>
<span class="mr-[4px]">
{!isMore.value ? hookT('expand') : hookT('collapse')}
{content || hookT('moreConfig')}
</span>
<NIcon>{isMore.value ? <DownOutlined /> : <LeftOutlined />}</NIcon>
<NIcon>{isMore.value ? <DownOutlined /> : <UpOutlined />}</NIcon>
</div>
</NDivider>
),

View File

@@ -15,11 +15,11 @@ const defaultLight: ThemeTemplate = {
title: '默认亮色主题', // 主题名称
themeOverrides: {
common: {
borderRadius: '0.6rem', // 圆角
primaryColor: '#4caf50', // 主色
primaryColorHover: '#20a53a', // 主色悬停
primaryColorPressed: '#157f3a', // 主色按下
primaryColorSuppl: '#4caf50', // 主色补充
// borderRadius: '0.6rem', // 圆角
// primaryColor: '#4caf50', // 主色
// primaryColorHover: '#20a53a', // 主色悬停
// primaryColorPressed: '#157f3a', // 主色按下
// primaryColorSuppl: '#4caf50', // 主色补充
},
}, // 主题变量
presetsOverrides: presets, // 预设变量
@@ -33,22 +33,22 @@ const defaultDark: ThemeTemplate = {
themeOverrides: {
common: {
// baseColor: '#F1F1F1', // 基础色
primaryColor: '#4caf50', // 主色
primaryColorHover: '#20a53a', // 主色悬停
primaryColorPressed: '#157f3a', // 主色按下
primaryColorSuppl: '#4caf50', // 主色补充
borderRadius: '0.6rem', // 圆角
// primaryColor: '#4caf50', // 主色
// primaryColorHover: '#20a53a', // 主色悬停
// primaryColorPressed: '#157f3a', // 主色按下
// primaryColorSuppl: '#4caf50', // 主色补充
// borderRadius: '0.6rem', // 圆角
},
Popover: {
// color: '#ffffff', // 弹出层背景色
},
Button: {
textColorPrimary: '#ffffff', // 主按钮文本色
textColorHoverPrimary: '#ffffff', // 主按钮文本色悬停
textColorPressedPrimary: '#ffffff', // 主按钮文本色按下
textColorFocusPrimary: '#ffffff', // 主按钮文本色聚焦
},
// Button: {
// textColorPrimary: '#ffffff', // 主按钮文本色
// textColorHoverPrimary: '#ffffff', // 主按钮文本色悬停
// textColorPressedPrimary: '#ffffff', // 主按钮文本色按下
// textColorFocusPrimary: '#ffffff', // 主按钮文本色聚焦
// },
Radio: {
buttonTextColorActive: '#ffffff', // 单选框文本色
},