diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index 287ba1226f4..886190914c5 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -16,7 +16,7 @@ categories: - title: '🐞 Bug Fixes' labels: - 'bug' - - title: 'πŸ“ˆ Performance' + - title: 'πŸ“ˆ Performance & Enhancement' labels: - 'perf' - 'enhancement' diff --git a/apps/web-antd/src/views/_core/authentication/register.vue b/apps/web-antd/src/views/_core/authentication/register.vue index 0cff0fd1803..b1a5de726d2 100644 --- a/apps/web-antd/src/views/_core/authentication/register.vue +++ b/apps/web-antd/src/views/_core/authentication/register.vue @@ -46,7 +46,7 @@ const formSchema = computed((): VbenFormSchema[] => { rules(values) { const { password } = values; return z - .string() + .string({ required_error: $t('authentication.passwordTip') }) .min(1, { message: $t('authentication.passwordTip') }) .refine((value) => value === password, { message: $t('authentication.confirmPasswordTip'), @@ -56,7 +56,6 @@ const formSchema = computed((): VbenFormSchema[] => { }, fieldName: 'confirmPassword', label: $t('authentication.confirmPassword'), - rules: z.string().min(1, { message: $t('authentication.passwordTip') }), }, { component: 'VbenCheckbox', @@ -68,15 +67,10 @@ const formSchema = computed((): VbenFormSchema[] => { h( 'a', { - class: - 'cursor-pointer text-primary ml-1 hover:text-primary-hover', + class: 'vben-link ml-1 ', href: '', }, - [ - $t('authentication.privacyPolicy'), - '&', - $t('authentication.terms'), - ], + `${$t('authentication.privacyPolicy')} & ${$t('authentication.terms')}`, ), ]), }), diff --git a/apps/web-ele/src/views/_core/authentication/register.vue b/apps/web-ele/src/views/_core/authentication/register.vue index 0cff0fd1803..b1a5de726d2 100644 --- a/apps/web-ele/src/views/_core/authentication/register.vue +++ b/apps/web-ele/src/views/_core/authentication/register.vue @@ -46,7 +46,7 @@ const formSchema = computed((): VbenFormSchema[] => { rules(values) { const { password } = values; return z - .string() + .string({ required_error: $t('authentication.passwordTip') }) .min(1, { message: $t('authentication.passwordTip') }) .refine((value) => value === password, { message: $t('authentication.confirmPasswordTip'), @@ -56,7 +56,6 @@ const formSchema = computed((): VbenFormSchema[] => { }, fieldName: 'confirmPassword', label: $t('authentication.confirmPassword'), - rules: z.string().min(1, { message: $t('authentication.passwordTip') }), }, { component: 'VbenCheckbox', @@ -68,15 +67,10 @@ const formSchema = computed((): VbenFormSchema[] => { h( 'a', { - class: - 'cursor-pointer text-primary ml-1 hover:text-primary-hover', + class: 'vben-link ml-1 ', href: '', }, - [ - $t('authentication.privacyPolicy'), - '&', - $t('authentication.terms'), - ], + `${$t('authentication.privacyPolicy')} & ${$t('authentication.terms')}`, ), ]), }), diff --git a/apps/web-naive/src/views/_core/authentication/register.vue b/apps/web-naive/src/views/_core/authentication/register.vue index 0cff0fd1803..daf89c447a3 100644 --- a/apps/web-naive/src/views/_core/authentication/register.vue +++ b/apps/web-naive/src/views/_core/authentication/register.vue @@ -46,7 +46,7 @@ const formSchema = computed((): VbenFormSchema[] => { rules(values) { const { password } = values; return z - .string() + .string({ required_error: $t('authentication.passwordTip') }) .min(1, { message: $t('authentication.passwordTip') }) .refine((value) => value === password, { message: $t('authentication.confirmPasswordTip'), @@ -56,7 +56,6 @@ const formSchema = computed((): VbenFormSchema[] => { }, fieldName: 'confirmPassword', label: $t('authentication.confirmPassword'), - rules: z.string().min(1, { message: $t('authentication.passwordTip') }), }, { component: 'VbenCheckbox', @@ -68,15 +67,10 @@ const formSchema = computed((): VbenFormSchema[] => { h( 'a', { - class: - 'cursor-pointer text-primary ml-1 hover:text-primary-hover', + class: 'vben-link ml-1', href: '', }, - [ - $t('authentication.privacyPolicy'), - '&', - $t('authentication.terms'), - ], + `${$t('authentication.privacyPolicy')} & ${$t('authentication.terms')}`, ), ]), }), diff --git a/packages/@core/base/design/src/css/global.css b/packages/@core/base/design/src/css/global.css index 2cee217f286..9b96a78d9d2 100644 --- a/packages/@core/base/design/src/css/global.css +++ b/packages/@core/base/design/src/css/global.css @@ -142,6 +142,10 @@ @apply outline-primary left-0 top-0 h-full w-full p-1 opacity-100; } + .vben-link { + @apply text-primary hover:text-primary-hover active:text-primary-active cursor-pointer; + } + .card-box { @apply bg-card text-card-foreground border-border rounded-xl border; } diff --git a/packages/@core/ui-kit/form-ui/src/form-render/expandable.ts b/packages/@core/ui-kit/form-ui/src/form-render/expandable.ts index a32614b250a..a7b8ef418d1 100644 --- a/packages/@core/ui-kit/form-ui/src/form-render/expandable.ts +++ b/packages/@core/ui-kit/form-ui/src/form-render/expandable.ts @@ -22,6 +22,7 @@ export function useExpandable(props: FormRenderProps) { for (let index = 1; index <= rows; index++) { maxItem += mapping?.[index] ?? 0; } + // δΏζŒδΈ€θ‘Œ return maxItem - 1 || 1; }); @@ -35,6 +36,7 @@ export function useExpandable(props: FormRenderProps) { if (val) { await nextTick(); rowMapping.value = {}; + isCalculated.value = false; await calculateRowMapping(); } }, diff --git a/packages/@core/ui-kit/form-ui/src/form-render/form-field.vue b/packages/@core/ui-kit/form-ui/src/form-render/form-field.vue index 17c85aea5f8..af0ed900576 100644 --- a/packages/@core/ui-kit/form-ui/src/form-render/form-field.vue +++ b/packages/@core/ui-kit/form-ui/src/form-render/form-field.vue @@ -279,7 +279,7 @@ function autofocus() { 'flex leading-6', { 'mr-2 flex-shrink-0 justify-end': !isVertical, - 'flex-row': isVertical, + 'mb-1 flex-row': isVertical, }, labelClass, ) diff --git a/packages/@core/ui-kit/form-ui/src/form-render/form-label.vue b/packages/@core/ui-kit/form-ui/src/form-render/form-label.vue index 53d84041bd2..459d5ee56b6 100644 --- a/packages/@core/ui-kit/form-ui/src/form-render/form-label.vue +++ b/packages/@core/ui-kit/form-ui/src/form-render/form-label.vue @@ -12,7 +12,7 @@ const props = defineProps();