Merge branch 'main' of https://github.com/vbenjs/vue-vben-admin into antdv-next

This commit is contained in:
dap
2026-01-26 18:50:23 +08:00
68 changed files with 1850 additions and 286 deletions

View File

@@ -5,6 +5,8 @@ import type { VbenFormSchema } from '@vben-core/form-ui';
import { computed, reactive } from 'vue';
import { $t } from '@vben/locales';
import { useVbenForm } from '@vben-core/form-ui';
import { VbenButton } from '@vben-core/shadcn-ui';
@@ -50,7 +52,7 @@ defineExpose({
<div @keydown.enter.prevent="handleSubmit">
<Form />
<VbenButton type="submit" class="mt-4" @click="handleSubmit">
更新基本信息
{{ $t('profile.updateBasicProfile') }}
</VbenButton>
</div>
</template>

View File

@@ -5,6 +5,8 @@ import type { VbenFormSchema } from '@vben-core/form-ui';
import { computed, reactive } from 'vue';
import { $t } from '@vben/locales';
import { useVbenForm } from '@vben-core/form-ui';
import { VbenButton } from '@vben-core/shadcn-ui';
@@ -23,6 +25,7 @@ const emit = defineEmits<{
const [Form, formApi] = useVbenForm(
reactive({
commonConfig: {
labelWidth: 130,
// 所有表单项
componentProps: {
class: 'w-full',
@@ -50,7 +53,7 @@ defineExpose({
<div>
<Form />
<VbenButton type="submit" class="mt-4" @click="handleSubmit">
更新密码
{{ $t('profile.updatePassword') }}
</VbenButton>
</div>
</template>