Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: delete compatConfig #7996

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion components/_util/ActionButton.tsx
Original file line number Diff line number Diff line change
@@ -28,7 +28,6 @@ function isThenable<T>(thing?: PromiseLike<T>): boolean {
}

export default defineComponent({
compatConfig: { MODE: 3 },
name: 'ActionButton',
props: actionButtonProps,
setup(props, { slots }) {
1 change: 0 additions & 1 deletion components/_util/BaseInput.tsx
Original file line number Diff line number Diff line change
@@ -21,7 +21,6 @@ export interface BaseInputExpose {
setScrollTop: (scrollTop: number) => void;
}
const BaseInput = defineComponent({
compatConfig: { MODE: 3 },
inheritAttrs: false,
props: {
disabled: PropTypes.looseBool,
1 change: 0 additions & 1 deletion components/_util/BaseInputInner.tsx
Original file line number Diff line number Diff line change
@@ -18,7 +18,6 @@ export interface BaseInputInnerExpose {
setScrollTop: (scrollTop: number) => void;
}
const BaseInputInner = defineComponent({
compatConfig: { MODE: 3 },
// inheritAttrs: false,
props: {
disabled: PropTypes.looseBool,
1 change: 0 additions & 1 deletion components/_util/Portal.tsx
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ import {
import { useInjectPortal } from '../vc-trigger/context';

export default defineComponent({
compatConfig: { MODE: 3 },
name: 'Portal',
inheritAttrs: false,
props: {
1 change: 0 additions & 1 deletion components/_util/PortalWrapper.tsx
Original file line number Diff line number Diff line change
@@ -44,7 +44,6 @@ const getParent = (getContainer: GetContainer) => {
export type GetContainer = string | HTMLElement | (() => HTMLElement);

export default defineComponent({
compatConfig: { MODE: 3 },
name: 'PortalWrapper',
inheritAttrs: false,
props: {
1 change: 0 additions & 1 deletion components/_util/__mocks__/Portal.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { defineComponent } from 'vue';

export default defineComponent({
compatConfig: { MODE: 3 },
name: 'Portal',
inheritAttrs: false,
props: ['getContainer'],
1 change: 0 additions & 1 deletion components/_util/transButton.tsx
Original file line number Diff line number Diff line change
@@ -15,7 +15,6 @@ const inlineStyle = {
};

const TransButton = defineComponent({
compatConfig: { MODE: 3 },
name: 'TransButton',
inheritAttrs: false,
props: {
1 change: 0 additions & 1 deletion components/_util/wave/index.tsx
Original file line number Diff line number Diff line change
@@ -19,7 +19,6 @@ export interface WaveProps {
}

export default defineComponent({
compatConfig: { MODE: 3 },
name: 'Wave',
props: {
disabled: Boolean,
1 change: 0 additions & 1 deletion components/affix/index.tsx
Original file line number Diff line number Diff line change
@@ -72,7 +72,6 @@ export type AffixExpose = {

export type AffixInstance = ComponentPublicInstance<AffixProps, AffixExpose>;
const Affix = defineComponent({
compatConfig: { MODE: 3 },
name: 'AAffix',
inheritAttrs: false,
props: affixProps(),
1 change: 0 additions & 1 deletion components/alert/index.tsx
Original file line number Diff line number Diff line change
@@ -64,7 +64,6 @@ export const alertProps = () => ({
export type AlertProps = Partial<ExtractPropTypes<ReturnType<typeof alertProps>>>;

const Alert = defineComponent({
compatConfig: { MODE: 3 },
name: 'AAlert',
inheritAttrs: false,
props: alertProps(),
1 change: 0 additions & 1 deletion components/anchor/Anchor.tsx
Original file line number Diff line number Diff line change
@@ -84,7 +84,6 @@ export interface AnchorState {
}

export default defineComponent({
compatConfig: { MODE: 3 },
name: 'AAnchor',
inheritAttrs: false,
props: anchorProps(),
1 change: 0 additions & 1 deletion components/anchor/AnchorLink.tsx
Original file line number Diff line number Diff line change
@@ -29,7 +29,6 @@ export interface AnchorLinkItemProps {
export type AnchorLinkProps = Partial<ExtractPropTypes<ReturnType<typeof anchorLinkProps>>>;

export default defineComponent({
compatConfig: { MODE: 3 },
name: 'AAnchorLink',
inheritAttrs: false,
props: initDefaultProps(anchorLinkProps(), { href: '#' }),
1 change: 0 additions & 1 deletion components/auto-complete/index.tsx
Original file line number Diff line number Diff line change
@@ -44,7 +44,6 @@ export const AutoCompleteOption = Option;
export const AutoCompleteOptGroup = OptGroup;

const AutoComplete = defineComponent({
compatConfig: { MODE: 3 },
name: 'AAutoComplete',
inheritAttrs: false,
props: autoCompleteProps(),
1 change: 0 additions & 1 deletion components/avatar/Avatar.tsx
Original file line number Diff line number Diff line change
@@ -38,7 +38,6 @@ export const avatarProps = () => ({
export type AvatarProps = Partial<ExtractPropTypes<ReturnType<typeof avatarProps>>>;

const Avatar = defineComponent({
compatConfig: { MODE: 3 },
name: 'AAvatar',
inheritAttrs: false,
props: avatarProps(),
1 change: 0 additions & 1 deletion components/avatar/Group.tsx
Original file line number Diff line number Diff line change
@@ -29,7 +29,6 @@ export const groupProps = () => ({
export type AvatarGroupProps = Partial<ExtractPropTypes<ReturnType<typeof groupProps>>>;

const Group = defineComponent({
compatConfig: { MODE: 3 },
name: 'AAvatarGroup',
inheritAttrs: false,
props: groupProps(),
1 change: 0 additions & 1 deletion components/badge/Badge.tsx
Original file line number Diff line number Diff line change
@@ -37,7 +37,6 @@ export const badgeProps = () => ({
export type BadgeProps = Partial<ExtractPropTypes<ReturnType<typeof badgeProps>>>;

export default defineComponent({
compatConfig: { MODE: 3 },
name: 'ABadge',
Ribbon,
inheritAttrs: false,
1 change: 0 additions & 1 deletion components/badge/Ribbon.tsx
Original file line number Diff line number Diff line change
@@ -17,7 +17,6 @@ export const ribbonProps = () => ({
export type RibbonProps = Partial<ExtractPropTypes<ReturnType<typeof ribbonProps>>>;

export default defineComponent({
compatConfig: { MODE: 3 },
name: 'ABadgeRibbon',
inheritAttrs: false,
props: ribbonProps(),
1 change: 0 additions & 1 deletion components/badge/ScrollNumber.tsx
Original file line number Diff line number Diff line change
@@ -18,7 +18,6 @@ const scrollNumberProps = {
export type ScrollNumberProps = Partial<ExtractPropTypes<typeof scrollNumberProps>>;

export default defineComponent({
compatConfig: { MODE: 3 },
name: 'ScrollNumber',
inheritAttrs: false,
props: scrollNumberProps,
1 change: 0 additions & 1 deletion components/badge/SingleNumber.tsx
Original file line number Diff line number Diff line change
@@ -45,7 +45,6 @@ function getOffset(start: number, end: number, unit: -1 | 1) {
}

export default defineComponent({
compatConfig: { MODE: 3 },
name: 'SingleNumber',
props: {
prefixCls: String,
1 change: 0 additions & 1 deletion components/breadcrumb/Breadcrumb.tsx
Original file line number Diff line number Diff line change
@@ -54,7 +54,6 @@ function defaultItemRender(opt: {
}

export default defineComponent({
compatConfig: { MODE: 3 },
name: 'ABreadcrumb',
inheritAttrs: false,
props: breadcrumbProps(),
1 change: 0 additions & 1 deletion components/breadcrumb/BreadcrumbItem.tsx
Original file line number Diff line number Diff line change
@@ -21,7 +21,6 @@ export const breadcrumbItemProps = () => ({

export type BreadcrumbItemProps = Partial<ExtractPropTypes<ReturnType<typeof breadcrumbItemProps>>>;
export default defineComponent({
compatConfig: { MODE: 3 },
name: 'ABreadcrumbItem',
inheritAttrs: false,
__ANT_BREADCRUMB_ITEM: true,
1 change: 0 additions & 1 deletion components/breadcrumb/BreadcrumbSeparator.tsx
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ export type BreadcrumbSeparatorProps = Partial<
>;

export default defineComponent({
compatConfig: { MODE: 3 },
name: 'ABreadcrumbSeparator',
__ANT_BREADCRUMB_SEPARATOR: true,
inheritAttrs: false,
1 change: 0 additions & 1 deletion components/button/LoadingIcon.tsx
Original file line number Diff line number Diff line change
@@ -24,7 +24,6 @@ const resetStyle = (node: HTMLSpanElement) => {
}
};
export default defineComponent({
compatConfig: { MODE: 3 },
name: 'LoadingIcon',
props: {
prefixCls: String,
1 change: 0 additions & 1 deletion components/button/button-group.tsx
Original file line number Diff line number Diff line change
@@ -19,7 +19,6 @@ export const GroupSizeContext = createContext<{
size: SizeType;
}>();
export default defineComponent({
compatConfig: { MODE: 3 },
name: 'AButtonGroup',
props: buttonGroupProps(),
setup(props, { slots }) {
1 change: 0 additions & 1 deletion components/button/button.tsx
Original file line number Diff line number Diff line change
@@ -33,7 +33,6 @@ function isUnBorderedButtonType(type: ButtonType | undefined) {
}
export { buttonProps };
export default defineComponent({
compatConfig: { MODE: 3 },
name: 'AButton',
inheritAttrs: false,
__ANT_BUTTON: true,
1 change: 0 additions & 1 deletion components/card/Card.tsx
Original file line number Diff line number Diff line change
@@ -52,7 +52,6 @@ export const cardProps = () => ({
export type CardProps = Partial<ExtractPropTypes<ReturnType<typeof cardProps>>>;

const Card = defineComponent({
compatConfig: { MODE: 3 },
name: 'ACard',
inheritAttrs: false,
props: cardProps(),
1 change: 0 additions & 1 deletion components/card/Grid.tsx
Original file line number Diff line number Diff line change
@@ -8,7 +8,6 @@ export const cardGridProps = () => ({
});
export type CardGridProps = Partial<ExtractPropTypes<ReturnType<typeof cardGridProps>>>;
export default defineComponent({
compatConfig: { MODE: 3 },
name: 'ACardGrid',
__ANT_CARD_GRID: true,
props: cardGridProps(),
1 change: 0 additions & 1 deletion components/card/Meta.tsx
Original file line number Diff line number Diff line change
@@ -13,7 +13,6 @@ export const cardMetaProps = () => ({
});
export type CardGridProps = Partial<ExtractPropTypes<ReturnType<typeof cardMetaProps>>>;
export default defineComponent({
compatConfig: { MODE: 3 },
name: 'ACardMeta',
props: cardMetaProps(),
slots: Object as CustomSlotsType<{
1 change: 0 additions & 1 deletion components/carousel/index.tsx
Original file line number Diff line number Diff line change
@@ -73,7 +73,6 @@ export const carouselProps = () => ({
});
export type CarouselProps = Partial<ExtractPropTypes<ReturnType<typeof carouselProps>>>;
const Carousel = defineComponent({
compatConfig: { MODE: 3 },
name: 'ACarousel',
inheritAttrs: false,
props: carouselProps(),
1 change: 0 additions & 1 deletion components/cascader/index.tsx
Original file line number Diff line number Diff line change
@@ -127,7 +127,6 @@ export interface CascaderRef {
}

const Cascader = defineComponent({
compatConfig: { MODE: 3 },
name: 'ACascader',
inheritAttrs: false,
props: initDefaultProps(cascaderProps(), {
1 change: 0 additions & 1 deletion components/checkbox/Checkbox.tsx
Original file line number Diff line number Diff line change
@@ -24,7 +24,6 @@ import { CheckboxGroupContextKey, checkboxProps } from './interface';
import useStyle from './style';

export default defineComponent({
compatConfig: { MODE: 3 },
name: 'ACheckbox',
inheritAttrs: false,
__ANT_CHECKBOX: true,
1 change: 0 additions & 1 deletion components/checkbox/Group.tsx
Original file line number Diff line number Diff line change
@@ -9,7 +9,6 @@ import { CheckboxGroupContextKey, checkboxGroupProps } from './interface';
import useStyle from './style';

export default defineComponent({
compatConfig: { MODE: 3 },
name: 'ACheckboxGroup',
inheritAttrs: false,
props: checkboxGroupProps(),
1 change: 0 additions & 1 deletion components/collapse/Collapse.tsx
Original file line number Diff line number Diff line change
@@ -35,7 +35,6 @@ function getActiveKeysArray(activeKey: Key | Key[]) {
export { collapseProps };
export type CollapseProps = Partial<ExtractPropTypes<ReturnType<typeof collapseProps>>>;
export default defineComponent({
compatConfig: { MODE: 3 },
name: 'ACollapse',
inheritAttrs: false,
props: initDefaultProps(collapseProps(), {
1 change: 0 additions & 1 deletion components/collapse/CollapsePanel.tsx
Original file line number Diff line number Diff line change
@@ -10,7 +10,6 @@ import type { CustomSlotsType } from '../_util/type';
export { collapsePanelProps };
export type CollapsePanelProps = Partial<ExtractPropTypes<ReturnType<typeof collapsePanelProps>>>;
export default defineComponent({
compatConfig: { MODE: 3 },
name: 'ACollapsePanel',
inheritAttrs: false,
props: initDefaultProps(collapsePanelProps(), {
1 change: 0 additions & 1 deletion components/collapse/PanelContent.tsx
Original file line number Diff line number Diff line change
@@ -3,7 +3,6 @@ import { collapsePanelProps } from './commonProps';
import classNames from '../_util/classNames';

export default defineComponent({
compatConfig: { MODE: 3 },
name: 'PanelContent',
props: collapsePanelProps(),
setup(props, { slots }) {
1 change: 0 additions & 1 deletion components/comment/index.tsx
Original file line number Diff line number Diff line change
@@ -26,7 +26,6 @@ export const commentProps = () => ({
export type CommentProps = Partial<ExtractPropTypes<ReturnType<typeof commentProps>>>;

const Comment = defineComponent({
compatConfig: { MODE: 3 },
name: 'AComment',
inheritAttrs: false,
props: commentProps(),
1 change: 0 additions & 1 deletion components/config-provider/index.tsx
Original file line number Diff line number Diff line change
@@ -121,7 +121,6 @@ export const globalConfig = () => ({
});

const ConfigProvider = defineComponent({
compatConfig: { MODE: 3 },
name: 'AConfigProvider',
inheritAttrs: false,
props: configProviderProps(),
Original file line number Diff line number Diff line change
@@ -30,7 +30,6 @@ export default function generateRangePicker<DateType, ExtraProps = {}>(
extraProps: ExtraProps,
) {
const RangePicker = defineComponent({
compatConfig: { MODE: 3 },
name: 'ARangePicker',
inheritAttrs: false,
props: {
Original file line number Diff line number Diff line change
@@ -33,7 +33,6 @@ export default function generateSinglePicker<DateType, ExtraProps = {}>(
...extraProps,
};
return defineComponent({
compatConfig: { MODE: 3 },
name: displayName,
inheritAttrs: false,
props: comProps,
2 changes: 0 additions & 2 deletions components/descriptions/index.tsx
Original file line number Diff line number Diff line change
@@ -48,7 +48,6 @@ export type DescriptionsItemProp = Partial<
>;

export const DescriptionsItem = defineComponent({
compatConfig: { MODE: 3 },
name: 'ADescriptionsItem',
props: descriptionsItemProp(),
setup(_, { slots }) {
@@ -159,7 +158,6 @@ export const descriptionsContext: InjectionKey<DescriptionsContextProp> =
Symbol('descriptionsContext');

const Descriptions = defineComponent({
compatConfig: { MODE: 3 },
name: 'ADescriptions',
inheritAttrs: false,
props: descriptionsProps(),
1 change: 0 additions & 1 deletion components/divider/index.tsx
Original file line number Diff line number Diff line change
@@ -30,7 +30,6 @@ export type DividerProps = Partial<ExtractPropTypes<ReturnType<typeof dividerPro
const Divider = defineComponent({
name: 'ADivider',
inheritAttrs: false,
compatConfig: { MODE: 3 },
props: dividerProps(),
setup(props, { slots, attrs }) {
const { prefixCls: prefixClsRef, direction } = useConfigInject('divider', props);
1 change: 0 additions & 1 deletion components/drawer/index.tsx
Original file line number Diff line number Diff line change
@@ -103,7 +103,6 @@ export const drawerProps = () => ({
export type DrawerProps = Partial<ExtractPropTypes<ReturnType<typeof drawerProps>>>;

const Drawer = defineComponent({
compatConfig: { MODE: 3 },
name: 'ADrawer',
inheritAttrs: false,
props: initDefaultProps(drawerProps(), {
1 change: 0 additions & 1 deletion components/dropdown/dropdown-button.tsx
Original file line number Diff line number Diff line change
@@ -16,7 +16,6 @@ const ButtonGroup = Button.Group;
export type DropdownButtonProps = Partial<ExtractPropTypes<ReturnType<typeof dropdownButtonProps>>>;

export default defineComponent({
compatConfig: { MODE: 3 },
name: 'ADropdownButton',
inheritAttrs: false,
__ANT_BUTTON: true,
1 change: 0 additions & 1 deletion components/dropdown/dropdown.tsx
Original file line number Diff line number Diff line change
@@ -19,7 +19,6 @@ import type { CustomSlotsType } from '../_util/type';
export type DropdownProps = Partial<ExtractPropTypes<ReturnType<typeof dropdownProps>>>;

const Dropdown = defineComponent({
compatConfig: { MODE: 3 },
name: 'ADropdown',
inheritAttrs: false,
props: initDefaultProps(dropdownProps(), {
1 change: 0 additions & 1 deletion components/empty/empty.tsx
Original file line number Diff line number Diff line change
@@ -4,7 +4,6 @@ import type { CSSProperties } from 'vue';
import { defineComponent, computed } from 'vue';

const Empty = defineComponent({
compatConfig: { MODE: 3 },
setup() {
const [, token] = useToken();

1 change: 0 additions & 1 deletion components/empty/index.tsx
Original file line number Diff line number Diff line change
@@ -26,7 +26,6 @@ export type EmptyProps = Partial<ExtractPropTypes<ReturnType<typeof emptyProps>>

const Empty = defineComponent({
name: 'AEmpty',
compatConfig: { MODE: 3 },
inheritAttrs: false,
props: emptyProps(),
setup(props, { slots = {}, attrs }) {
1 change: 0 additions & 1 deletion components/empty/simple.tsx
Original file line number Diff line number Diff line change
@@ -3,7 +3,6 @@ import { computed, defineComponent } from 'vue';
import { useToken } from '../theme/internal';

const Simple = defineComponent({
compatConfig: { MODE: 3 },
setup() {
const [, token] = useToken();

1 change: 0 additions & 1 deletion components/float-button/BackTop.tsx
Original file line number Diff line number Diff line change
@@ -24,7 +24,6 @@ import useStyle from './style';
import { useInjectFloatButtonGroupContext } from './context';

const BackTop = defineComponent({
compatConfig: { MODE: 3 },
name: 'ABackTop',
inheritAttrs: false,
props: initDefaultProps(backTopProps(), {
1 change: 0 additions & 1 deletion components/float-button/FloatButton.tsx
Original file line number Diff line number Diff line change
@@ -16,7 +16,6 @@ import useStyle from './style';
export const floatButtonPrefixCls = 'float-btn';

const FloatButton = defineComponent({
compatConfig: { MODE: 3 },
name: 'AFloatButton',
inheritAttrs: false,
props: initDefaultProps(floatButtonProps(), { type: 'default', shape: 'circle' }),
Loading
Oops, something went wrong.
Loading
Oops, something went wrong.