mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-28 05:39:34 +08:00
perf: perf component
This commit is contained in:
@@ -2,7 +2,7 @@ import type { ColEx } from './types/index';
|
||||
|
||||
import { defineComponent, unref, computed, PropType } from 'vue';
|
||||
import { Form, Col } from 'ant-design-vue';
|
||||
import Button from '/@/components/Button/index.vue';
|
||||
import { Button } from '/@/components/Button';
|
||||
import { BasicArrow } from '/@/components/Basic/index';
|
||||
|
||||
import { getSlot } from '/@/utils/helper/tsxHelper';
|
||||
@@ -12,7 +12,6 @@ const { t } = useI18n('component.form');
|
||||
|
||||
export default defineComponent({
|
||||
name: 'BasicFormAction',
|
||||
emits: ['toggle-advanced'],
|
||||
props: {
|
||||
show: {
|
||||
type: Boolean,
|
||||
@@ -55,6 +54,7 @@ export default defineComponent({
|
||||
default: false,
|
||||
},
|
||||
},
|
||||
emits: ['toggle-advanced'],
|
||||
setup(props, { slots, emit }) {
|
||||
const getResetBtnOptionsRef = computed(() => {
|
||||
return {
|
||||
@@ -112,7 +112,7 @@ export default defineComponent({
|
||||
{() => (
|
||||
<>
|
||||
{isAdvanced ? t('putAway') : t('unfold')}
|
||||
<BasicArrow expand={!isAdvanced} />
|
||||
<BasicArrow expand={!isAdvanced} top />
|
||||
</>
|
||||
)}
|
||||
</Button>
|
||||
|
@@ -1,9 +1,10 @@
|
||||
import type { NamePath, RuleObject } from 'ant-design-vue/lib/form/interface';
|
||||
import type { VNode } from 'vue';
|
||||
import type { BasicButtonProps } from '/@/components/Button/types';
|
||||
import type { ButtonProps as AntdButtonProps } from 'ant-design-vue/es/button/buttonTypes';
|
||||
|
||||
import type { FormItem } from './formItem';
|
||||
import type { ColEx, ComponentType } from './index';
|
||||
import { TableActionType } from '../../../Table/src/types/table';
|
||||
import type { TableActionType } from '/@/components/Table/src/types/table';
|
||||
|
||||
export type FieldMapToTime = [string, [string, string], string?][];
|
||||
|
||||
@@ -18,7 +19,7 @@ export interface RenderCallbackParams {
|
||||
field: string;
|
||||
}
|
||||
|
||||
export interface ButtonProps extends BasicButtonProps {
|
||||
export interface ButtonProps extends AntdButtonProps {
|
||||
text?: string;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user