Skip to content

Commit 13e8397

Browse files
committed
chore: delete compatConfig
1 parent 45c7109 commit 13e8397

File tree

206 files changed

+0
-212
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

206 files changed

+0
-212
lines changed

components/_util/ActionButton.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ function isThenable<T>(thing?: PromiseLike<T>): boolean {
2828
}
2929

3030
export default defineComponent({
31-
compatConfig: { MODE: 3 },
3231
name: 'ActionButton',
3332
props: actionButtonProps,
3433
setup(props, { slots }) {

components/_util/BaseInput.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ export interface BaseInputExpose {
2121
setScrollTop: (scrollTop: number) => void;
2222
}
2323
const BaseInput = defineComponent({
24-
compatConfig: { MODE: 3 },
2524
inheritAttrs: false,
2625
props: {
2726
disabled: PropTypes.looseBool,

components/_util/BaseInputInner.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ export interface BaseInputInnerExpose {
1818
setScrollTop: (scrollTop: number) => void;
1919
}
2020
const BaseInputInner = defineComponent({
21-
compatConfig: { MODE: 3 },
2221
// inheritAttrs: false,
2322
props: {
2423
disabled: PropTypes.looseBool,

components/_util/Portal.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import {
1111
import { useInjectPortal } from '../vc-trigger/context';
1212

1313
export default defineComponent({
14-
compatConfig: { MODE: 3 },
1514
name: 'Portal',
1615
inheritAttrs: false,
1716
props: {

components/_util/PortalWrapper.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ const getParent = (getContainer: GetContainer) => {
4444
export type GetContainer = string | HTMLElement | (() => HTMLElement);
4545

4646
export default defineComponent({
47-
compatConfig: { MODE: 3 },
4847
name: 'PortalWrapper',
4948
inheritAttrs: false,
5049
props: {

components/_util/__mocks__/Portal.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { defineComponent } from 'vue';
22

33
export default defineComponent({
4-
compatConfig: { MODE: 3 },
54
name: 'Portal',
65
inheritAttrs: false,
76
props: ['getContainer'],

components/_util/transButton.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ const inlineStyle = {
1515
};
1616

1717
const TransButton = defineComponent({
18-
compatConfig: { MODE: 3 },
1918
name: 'TransButton',
2019
inheritAttrs: false,
2120
props: {

components/_util/wave/index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ export interface WaveProps {
1919
}
2020

2121
export default defineComponent({
22-
compatConfig: { MODE: 3 },
2322
name: 'Wave',
2423
props: {
2524
disabled: Boolean,

components/affix/index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ export type AffixExpose = {
7272

7373
export type AffixInstance = ComponentPublicInstance<AffixProps, AffixExpose>;
7474
const Affix = defineComponent({
75-
compatConfig: { MODE: 3 },
7675
name: 'AAffix',
7776
inheritAttrs: false,
7877
props: affixProps(),

components/alert/index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ export const alertProps = () => ({
6464
export type AlertProps = Partial<ExtractPropTypes<ReturnType<typeof alertProps>>>;
6565

6666
const Alert = defineComponent({
67-
compatConfig: { MODE: 3 },
6867
name: 'AAlert',
6968
inheritAttrs: false,
7069
props: alertProps(),

components/anchor/Anchor.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ export interface AnchorState {
8484
}
8585

8686
export default defineComponent({
87-
compatConfig: { MODE: 3 },
8887
name: 'AAnchor',
8988
inheritAttrs: false,
9089
props: anchorProps(),

components/anchor/AnchorLink.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ export interface AnchorLinkItemProps {
2929
export type AnchorLinkProps = Partial<ExtractPropTypes<ReturnType<typeof anchorLinkProps>>>;
3030

3131
export default defineComponent({
32-
compatConfig: { MODE: 3 },
3332
name: 'AAnchorLink',
3433
inheritAttrs: false,
3534
props: initDefaultProps(anchorLinkProps(), { href: '#' }),

components/auto-complete/index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ export const AutoCompleteOption = Option;
4444
export const AutoCompleteOptGroup = OptGroup;
4545

4646
const AutoComplete = defineComponent({
47-
compatConfig: { MODE: 3 },
4847
name: 'AAutoComplete',
4948
inheritAttrs: false,
5049
props: autoCompleteProps(),

components/avatar/Avatar.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ export const avatarProps = () => ({
3838
export type AvatarProps = Partial<ExtractPropTypes<ReturnType<typeof avatarProps>>>;
3939

4040
const Avatar = defineComponent({
41-
compatConfig: { MODE: 3 },
4241
name: 'AAvatar',
4342
inheritAttrs: false,
4443
props: avatarProps(),

components/avatar/Group.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ export const groupProps = () => ({
2929
export type AvatarGroupProps = Partial<ExtractPropTypes<ReturnType<typeof groupProps>>>;
3030

3131
const Group = defineComponent({
32-
compatConfig: { MODE: 3 },
3332
name: 'AAvatarGroup',
3433
inheritAttrs: false,
3534
props: groupProps(),

components/badge/Badge.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ export const badgeProps = () => ({
3737
export type BadgeProps = Partial<ExtractPropTypes<ReturnType<typeof badgeProps>>>;
3838

3939
export default defineComponent({
40-
compatConfig: { MODE: 3 },
4140
name: 'ABadge',
4241
Ribbon,
4342
inheritAttrs: false,

components/badge/Ribbon.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ export const ribbonProps = () => ({
1717
export type RibbonProps = Partial<ExtractPropTypes<ReturnType<typeof ribbonProps>>>;
1818

1919
export default defineComponent({
20-
compatConfig: { MODE: 3 },
2120
name: 'ABadgeRibbon',
2221
inheritAttrs: false,
2322
props: ribbonProps(),

components/badge/ScrollNumber.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ const scrollNumberProps = {
1818
export type ScrollNumberProps = Partial<ExtractPropTypes<typeof scrollNumberProps>>;
1919

2020
export default defineComponent({
21-
compatConfig: { MODE: 3 },
2221
name: 'ScrollNumber',
2322
inheritAttrs: false,
2423
props: scrollNumberProps,

components/badge/SingleNumber.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ function getOffset(start: number, end: number, unit: -1 | 1) {
4545
}
4646

4747
export default defineComponent({
48-
compatConfig: { MODE: 3 },
4948
name: 'SingleNumber',
5049
props: {
5150
prefixCls: String,

components/breadcrumb/Breadcrumb.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ function defaultItemRender(opt: {
5454
}
5555

5656
export default defineComponent({
57-
compatConfig: { MODE: 3 },
5857
name: 'ABreadcrumb',
5958
inheritAttrs: false,
6059
props: breadcrumbProps(),

components/breadcrumb/BreadcrumbItem.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ export const breadcrumbItemProps = () => ({
2121

2222
export type BreadcrumbItemProps = Partial<ExtractPropTypes<ReturnType<typeof breadcrumbItemProps>>>;
2323
export default defineComponent({
24-
compatConfig: { MODE: 3 },
2524
name: 'ABreadcrumbItem',
2625
inheritAttrs: false,
2726
__ANT_BREADCRUMB_ITEM: true,

components/breadcrumb/BreadcrumbSeparator.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export type BreadcrumbSeparatorProps = Partial<
1111
>;
1212

1313
export default defineComponent({
14-
compatConfig: { MODE: 3 },
1514
name: 'ABreadcrumbSeparator',
1615
__ANT_BREADCRUMB_SEPARATOR: true,
1716
inheritAttrs: false,

components/button/LoadingIcon.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ const resetStyle = (node: HTMLSpanElement) => {
2424
}
2525
};
2626
export default defineComponent({
27-
compatConfig: { MODE: 3 },
2827
name: 'LoadingIcon',
2928
props: {
3029
prefixCls: String,

components/button/button-group.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ export const GroupSizeContext = createContext<{
1919
size: SizeType;
2020
}>();
2121
export default defineComponent({
22-
compatConfig: { MODE: 3 },
2322
name: 'AButtonGroup',
2423
props: buttonGroupProps(),
2524
setup(props, { slots }) {

components/button/button.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ function isUnBorderedButtonType(type: ButtonType | undefined) {
3333
}
3434
export { buttonProps };
3535
export default defineComponent({
36-
compatConfig: { MODE: 3 },
3736
name: 'AButton',
3837
inheritAttrs: false,
3938
__ANT_BUTTON: true,

components/card/Card.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ export const cardProps = () => ({
5252
export type CardProps = Partial<ExtractPropTypes<ReturnType<typeof cardProps>>>;
5353

5454
const Card = defineComponent({
55-
compatConfig: { MODE: 3 },
5655
name: 'ACard',
5756
inheritAttrs: false,
5857
props: cardProps(),

components/card/Grid.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ export const cardGridProps = () => ({
88
});
99
export type CardGridProps = Partial<ExtractPropTypes<ReturnType<typeof cardGridProps>>>;
1010
export default defineComponent({
11-
compatConfig: { MODE: 3 },
1211
name: 'ACardGrid',
1312
__ANT_CARD_GRID: true,
1413
props: cardGridProps(),

components/card/Meta.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ export const cardMetaProps = () => ({
1313
});
1414
export type CardGridProps = Partial<ExtractPropTypes<ReturnType<typeof cardMetaProps>>>;
1515
export default defineComponent({
16-
compatConfig: { MODE: 3 },
1716
name: 'ACardMeta',
1817
props: cardMetaProps(),
1918
slots: Object as CustomSlotsType<{

components/carousel/index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ export const carouselProps = () => ({
7373
});
7474
export type CarouselProps = Partial<ExtractPropTypes<ReturnType<typeof carouselProps>>>;
7575
const Carousel = defineComponent({
76-
compatConfig: { MODE: 3 },
7776
name: 'ACarousel',
7877
inheritAttrs: false,
7978
props: carouselProps(),

components/cascader/index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ export interface CascaderRef {
127127
}
128128

129129
const Cascader = defineComponent({
130-
compatConfig: { MODE: 3 },
131130
name: 'ACascader',
132131
inheritAttrs: false,
133132
props: initDefaultProps(cascaderProps(), {

components/checkbox/Checkbox.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import { CheckboxGroupContextKey, checkboxProps } from './interface';
2424
import useStyle from './style';
2525

2626
export default defineComponent({
27-
compatConfig: { MODE: 3 },
2827
name: 'ACheckbox',
2928
inheritAttrs: false,
3029
__ANT_CHECKBOX: true,

components/checkbox/Group.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import { CheckboxGroupContextKey, checkboxGroupProps } from './interface';
99
import useStyle from './style';
1010

1111
export default defineComponent({
12-
compatConfig: { MODE: 3 },
1312
name: 'ACheckboxGroup',
1413
inheritAttrs: false,
1514
props: checkboxGroupProps(),

components/collapse/Collapse.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ function getActiveKeysArray(activeKey: Key | Key[]) {
3535
export { collapseProps };
3636
export type CollapseProps = Partial<ExtractPropTypes<ReturnType<typeof collapseProps>>>;
3737
export default defineComponent({
38-
compatConfig: { MODE: 3 },
3938
name: 'ACollapse',
4039
inheritAttrs: false,
4140
props: initDefaultProps(collapseProps(), {

components/collapse/CollapsePanel.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import type { CustomSlotsType } from '../_util/type';
1010
export { collapsePanelProps };
1111
export type CollapsePanelProps = Partial<ExtractPropTypes<ReturnType<typeof collapsePanelProps>>>;
1212
export default defineComponent({
13-
compatConfig: { MODE: 3 },
1413
name: 'ACollapsePanel',
1514
inheritAttrs: false,
1615
props: initDefaultProps(collapsePanelProps(), {

components/collapse/PanelContent.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { collapsePanelProps } from './commonProps';
33
import classNames from '../_util/classNames';
44

55
export default defineComponent({
6-
compatConfig: { MODE: 3 },
76
name: 'PanelContent',
87
props: collapsePanelProps(),
98
setup(props, { slots }) {

components/comment/index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ export const commentProps = () => ({
2626
export type CommentProps = Partial<ExtractPropTypes<ReturnType<typeof commentProps>>>;
2727

2828
const Comment = defineComponent({
29-
compatConfig: { MODE: 3 },
3029
name: 'AComment',
3130
inheritAttrs: false,
3231
props: commentProps(),

components/config-provider/index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ export const globalConfig = () => ({
121121
});
122122

123123
const ConfigProvider = defineComponent({
124-
compatConfig: { MODE: 3 },
125124
name: 'AConfigProvider',
126125
inheritAttrs: false,
127126
props: configProviderProps(),

components/date-picker/generatePicker/generateRangePicker.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ export default function generateRangePicker<DateType, ExtraProps = {}>(
3030
extraProps: ExtraProps,
3131
) {
3232
const RangePicker = defineComponent({
33-
compatConfig: { MODE: 3 },
3433
name: 'ARangePicker',
3534
inheritAttrs: false,
3635
props: {

components/date-picker/generatePicker/generateSinglePicker.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ export default function generateSinglePicker<DateType, ExtraProps = {}>(
3333
...extraProps,
3434
};
3535
return defineComponent({
36-
compatConfig: { MODE: 3 },
3736
name: displayName,
3837
inheritAttrs: false,
3938
props: comProps,

components/descriptions/index.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ export type DescriptionsItemProp = Partial<
4848
>;
4949

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

161160
const Descriptions = defineComponent({
162-
compatConfig: { MODE: 3 },
163161
name: 'ADescriptions',
164162
inheritAttrs: false,
165163
props: descriptionsProps(),

components/divider/index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ export type DividerProps = Partial<ExtractPropTypes<ReturnType<typeof dividerPro
3030
const Divider = defineComponent({
3131
name: 'ADivider',
3232
inheritAttrs: false,
33-
compatConfig: { MODE: 3 },
3433
props: dividerProps(),
3534
setup(props, { slots, attrs }) {
3635
const { prefixCls: prefixClsRef, direction } = useConfigInject('divider', props);

components/drawer/index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ export const drawerProps = () => ({
103103
export type DrawerProps = Partial<ExtractPropTypes<ReturnType<typeof drawerProps>>>;
104104

105105
const Drawer = defineComponent({
106-
compatConfig: { MODE: 3 },
107106
name: 'ADrawer',
108107
inheritAttrs: false,
109108
props: initDefaultProps(drawerProps(), {

components/dropdown/dropdown-button.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ const ButtonGroup = Button.Group;
1616
export type DropdownButtonProps = Partial<ExtractPropTypes<ReturnType<typeof dropdownButtonProps>>>;
1717

1818
export default defineComponent({
19-
compatConfig: { MODE: 3 },
2019
name: 'ADropdownButton',
2120
inheritAttrs: false,
2221
__ANT_BUTTON: true,

components/dropdown/dropdown.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import type { CustomSlotsType } from '../_util/type';
1919
export type DropdownProps = Partial<ExtractPropTypes<ReturnType<typeof dropdownProps>>>;
2020

2121
const Dropdown = defineComponent({
22-
compatConfig: { MODE: 3 },
2322
name: 'ADropdown',
2423
inheritAttrs: false,
2524
props: initDefaultProps(dropdownProps(), {

components/empty/empty.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import type { CSSProperties } from 'vue';
44
import { defineComponent, computed } from 'vue';
55

66
const Empty = defineComponent({
7-
compatConfig: { MODE: 3 },
87
setup() {
98
const [, token] = useToken();
109

components/empty/index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ export type EmptyProps = Partial<ExtractPropTypes<ReturnType<typeof emptyProps>>
2626

2727
const Empty = defineComponent({
2828
name: 'AEmpty',
29-
compatConfig: { MODE: 3 },
3029
inheritAttrs: false,
3130
props: emptyProps(),
3231
setup(props, { slots = {}, attrs }) {

components/empty/simple.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { computed, defineComponent } from 'vue';
33
import { useToken } from '../theme/internal';
44

55
const Simple = defineComponent({
6-
compatConfig: { MODE: 3 },
76
setup() {
87
const [, token] = useToken();
98

components/float-button/BackTop.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import useStyle from './style';
2424
import { useInjectFloatButtonGroupContext } from './context';
2525

2626
const BackTop = defineComponent({
27-
compatConfig: { MODE: 3 },
2827
name: 'ABackTop',
2928
inheritAttrs: false,
3029
props: initDefaultProps(backTopProps(), {

components/float-button/FloatButton.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import useStyle from './style';
1616
export const floatButtonPrefixCls = 'float-btn';
1717

1818
const FloatButton = defineComponent({
19-
compatConfig: { MODE: 3 },
2019
name: 'AFloatButton',
2120
inheritAttrs: false,
2221
props: initDefaultProps(floatButtonProps(), { type: 'default', shape: 'circle' }),

0 commit comments

Comments
 (0)