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
Show file tree
Hide file tree
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
Expand Up @@ -28,7 +28,6 @@ function isThenable<T>(thing?: PromiseLike<T>): boolean {
}

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

export default defineComponent({
compatConfig: { MODE: 3 },
name: 'Portal',
inheritAttrs: false,
props: {
Expand Down
1 change: 0 additions & 1 deletion components/_util/PortalWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
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'],
Expand Down
1 change: 0 additions & 1 deletion components/_util/transButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ const inlineStyle = {
};

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

export default defineComponent({
compatConfig: { MODE: 3 },
name: 'Wave',
props: {
disabled: Boolean,
Expand Down
1 change: 0 additions & 1 deletion components/affix/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
1 change: 0 additions & 1 deletion components/alert/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
1 change: 0 additions & 1 deletion components/anchor/Anchor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ export interface AnchorState {
}

export default defineComponent({
compatConfig: { MODE: 3 },
name: 'AAnchor',
inheritAttrs: false,
props: anchorProps(),
Expand Down
1 change: 0 additions & 1 deletion components/anchor/AnchorLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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: '#' }),
Expand Down
1 change: 0 additions & 1 deletion components/auto-complete/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ export const AutoCompleteOption = Option;
export const AutoCompleteOptGroup = OptGroup;

const AutoComplete = defineComponent({
compatConfig: { MODE: 3 },
name: 'AAutoComplete',
inheritAttrs: false,
props: autoCompleteProps(),
Expand Down
1 change: 0 additions & 1 deletion components/avatar/Avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
1 change: 0 additions & 1 deletion components/avatar/Group.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
1 change: 0 additions & 1 deletion components/badge/Badge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion components/badge/Ribbon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
1 change: 0 additions & 1 deletion components/badge/ScrollNumber.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion components/badge/SingleNumber.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ function getOffset(start: number, end: number, unit: -1 | 1) {
}

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

export default defineComponent({
compatConfig: { MODE: 3 },
name: 'ABreadcrumb',
inheritAttrs: false,
props: breadcrumbProps(),
Expand Down
1 change: 0 additions & 1 deletion components/breadcrumb/BreadcrumbItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion components/breadcrumb/BreadcrumbSeparator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export type BreadcrumbSeparatorProps = Partial<
>;

export default defineComponent({
compatConfig: { MODE: 3 },
name: 'ABreadcrumbSeparator',
__ANT_BREADCRUMB_SEPARATOR: true,
inheritAttrs: false,
Expand Down
1 change: 0 additions & 1 deletion components/button/LoadingIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ const resetStyle = (node: HTMLSpanElement) => {
}
};
export default defineComponent({
compatConfig: { MODE: 3 },
name: 'LoadingIcon',
props: {
prefixCls: String,
Expand Down
1 change: 0 additions & 1 deletion components/button/button-group.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export const GroupSizeContext = createContext<{
size: SizeType;
}>();
export default defineComponent({
compatConfig: { MODE: 3 },
name: 'AButtonGroup',
props: buttonGroupProps(),
setup(props, { slots }) {
Expand Down
1 change: 0 additions & 1 deletion components/button/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ function isUnBorderedButtonType(type: ButtonType | undefined) {
}
export { buttonProps };
export default defineComponent({
compatConfig: { MODE: 3 },
name: 'AButton',
inheritAttrs: false,
__ANT_BUTTON: true,
Expand Down
1 change: 0 additions & 1 deletion components/card/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
1 change: 0 additions & 1 deletion components/card/Grid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
1 change: 0 additions & 1 deletion components/card/Meta.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<{
Expand Down
1 change: 0 additions & 1 deletion components/carousel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
1 change: 0 additions & 1 deletion components/cascader/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ export interface CascaderRef {
}

const Cascader = defineComponent({
compatConfig: { MODE: 3 },
name: 'ACascader',
inheritAttrs: false,
props: initDefaultProps(cascaderProps(), {
Expand Down
1 change: 0 additions & 1 deletion components/checkbox/Checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion components/checkbox/Group.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
1 change: 0 additions & 1 deletion components/collapse/Collapse.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(), {
Expand Down
1 change: 0 additions & 1 deletion components/collapse/CollapsePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(), {
Expand Down
1 change: 0 additions & 1 deletion components/collapse/PanelContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) {
Expand Down
1 change: 0 additions & 1 deletion components/comment/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
1 change: 0 additions & 1 deletion components/config-provider/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ export const globalConfig = () => ({
});

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

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

const Descriptions = defineComponent({
compatConfig: { MODE: 3 },
name: 'ADescriptions',
inheritAttrs: false,
props: descriptionsProps(),
Expand Down
1 change: 0 additions & 1 deletion components/divider/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 0 additions & 1 deletion components/drawer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(), {
Expand Down
1 change: 0 additions & 1 deletion components/dropdown/dropdown-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion components/dropdown/dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(), {
Expand Down
1 change: 0 additions & 1 deletion components/empty/empty.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import type { CSSProperties } from 'vue';
import { defineComponent, computed } from 'vue';

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

Expand Down
1 change: 0 additions & 1 deletion components/empty/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) {
Expand Down
1 change: 0 additions & 1 deletion components/empty/simple.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { computed, defineComponent } from 'vue';
import { useToken } from '../theme/internal';

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

Expand Down
1 change: 0 additions & 1 deletion components/float-button/BackTop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(), {
Expand Down
1 change: 0 additions & 1 deletion components/float-button/FloatButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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' }),
Expand Down
Loading
Loading