Skip to content

Commit

Permalink
feat: form button content support computed value
Browse files Browse the repository at this point in the history
  • Loading branch information
mynetfan committed Jan 10, 2025
1 parent afaa8b7 commit 0a4d2d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/@core/ui-kit/form-ui/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { ZodTypeAny } from 'zod';
import type { Component, HtmlHTMLAttributes, Ref } from 'vue';

import type { VbenButtonProps } from '@vben-core/shadcn-ui';
import type { ClassType, Nullable } from '@vben-core/typings';
import type { ClassType, MaybeComputedRef, Nullable } from '@vben-core/typings';

import type { FormApi } from './form-api';

Expand Down Expand Up @@ -316,7 +316,7 @@ export interface FormRenderProps<

export interface ActionButtonOptions extends VbenButtonProps {
[key: string]: any;
content?: string;
content?: MaybeComputedRef<string>;
show?: boolean;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/effects/plugins/src/vxe-table/use-vxe-grid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const [Form, formApi] = useTableForm({
},
showCollapseButton: true,
submitButtonOptions: {
content: $t('common.query'),
content: computed(() => $t('common.search')),
},
wrapperClass: 'grid-cols-1 md:grid-cols-2 lg:grid-cols-3',
});
Expand Down

0 comments on commit 0a4d2d5

Please sign in to comment.