feat: Vue 3 Migration Build support (#5973), close #5765

closes vueComponent/ant-design-vue#5765

Add `compatConfig: { MODE: 3 }` to all component definitions to signal to `@vue/compat` not to use any Vue 2 compatibility features.
pull/6019/head
Garret MH 2022-09-26 06:33:41 -07:00 committed by GitHub
parent b35f63788d
commit a2f7d6d062
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
199 changed files with 205 additions and 0 deletions

View File

@ -26,6 +26,7 @@ function isThenable(thing?: PromiseLike<any>): boolean {
} }
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'ActionButton', name: 'ActionButton',
props: actionButtonProps, props: actionButtonProps,
setup(props, { slots }) { setup(props, { slots }) {

View File

@ -2,6 +2,7 @@ import { defineComponent, ref, withDirectives } from 'vue';
import antInput from './antInputDirective'; import antInput from './antInputDirective';
import PropTypes from './vue-types'; import PropTypes from './vue-types';
const BaseInput = defineComponent({ const BaseInput = defineComponent({
compatConfig: { MODE: 3 },
props: { props: {
value: PropTypes.string.def(''), value: PropTypes.string.def(''),
}, },

View File

@ -11,6 +11,7 @@ import {
import { useInjectPortal } from '../vc-trigger/context'; import { useInjectPortal } from '../vc-trigger/context';
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'Portal', name: 'Portal',
inheritAttrs: false, inheritAttrs: false,
props: { props: {

View File

@ -49,6 +49,7 @@ const getParent = (getContainer: GetContainer) => {
export type GetContainer = string | HTMLElement | (() => HTMLElement); export type GetContainer = string | HTMLElement | (() => HTMLElement);
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'PortalWrapper', name: 'PortalWrapper',
inheritAttrs: false, inheritAttrs: false,
props: { props: {

View File

@ -1,6 +1,7 @@
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'Portal', name: 'Portal',
inheritAttrs: false, inheritAttrs: false,
props: ['getContainer'], props: ['getContainer'],

View File

@ -15,6 +15,7 @@ const inlineStyle = {
}; };
const TransButton = defineComponent({ const TransButton = defineComponent({
compatConfig: { MODE: 3 },
name: 'TransButton', name: 'TransButton',
inheritAttrs: false, inheritAttrs: false,
props: { props: {

View File

@ -21,6 +21,7 @@ function isNotGrey(color: string) {
return true; return true;
} }
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'Wave', name: 'Wave',
props: { props: {
insertExtraNode: Boolean, insertExtraNode: Boolean,

View File

@ -72,6 +72,7 @@ export type AffixExpose = {
export type AffixInstance = ComponentPublicInstance<AffixProps, AffixExpose>; export type AffixInstance = ComponentPublicInstance<AffixProps, AffixExpose>;
const Affix = defineComponent({ const Affix = defineComponent({
compatConfig: { MODE: 3 },
name: 'AAffix', name: 'AAffix',
props: affixProps(), props: affixProps(),
setup(props, { slots, emit, expose }) { setup(props, { slots, emit, expose }) {

View File

@ -63,6 +63,7 @@ export const alertProps = () => ({
export type AlertProps = Partial<ExtractPropTypes<ReturnType<typeof alertProps>>>; export type AlertProps = Partial<ExtractPropTypes<ReturnType<typeof alertProps>>>;
const Alert = defineComponent({ const Alert = defineComponent({
compatConfig: { MODE: 3 },
name: 'AAlert', name: 'AAlert',
inheritAttrs: false, inheritAttrs: false,
props: alertProps(), props: alertProps(),

View File

@ -73,6 +73,7 @@ export interface AnchorState {
} }
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'AAnchor', name: 'AAnchor',
inheritAttrs: false, inheritAttrs: false,
props: anchorProps(), props: anchorProps(),

View File

@ -16,6 +16,7 @@ export const anchorLinkProps = () => ({
export type AnchorLinkProps = Partial<ExtractPropTypes<ReturnType<typeof anchorLinkProps>>>; export type AnchorLinkProps = Partial<ExtractPropTypes<ReturnType<typeof anchorLinkProps>>>;
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'AAnchorLink', name: 'AAnchorLink',
props: initDefaultProps(anchorLinkProps(), { href: '#' }), props: initDefaultProps(anchorLinkProps(), { href: '#' }),
slots: ['title'], slots: ['title'],

View File

@ -39,6 +39,7 @@ export const AutoCompleteOption = Option;
export const AutoCompleteOptGroup = OptGroup; export const AutoCompleteOptGroup = OptGroup;
const AutoComplete = defineComponent({ const AutoComplete = defineComponent({
compatConfig: { MODE: 3 },
name: 'AAutoComplete', name: 'AAutoComplete',
inheritAttrs: false, inheritAttrs: false,
props: autoCompleteProps(), props: autoCompleteProps(),

View File

@ -37,6 +37,7 @@ export const avatarProps = () => ({
export type AvatarProps = Partial<ExtractPropTypes<ReturnType<typeof avatarProps>>>; export type AvatarProps = Partial<ExtractPropTypes<ReturnType<typeof avatarProps>>>;
const Avatar = defineComponent({ const Avatar = defineComponent({
compatConfig: { MODE: 3 },
name: 'AAvatar', name: 'AAvatar',
inheritAttrs: false, inheritAttrs: false,
props: avatarProps(), props: avatarProps(),

View File

@ -27,6 +27,7 @@ export const groupProps = () => ({
export type AvatarGroupProps = Partial<ExtractPropTypes<ReturnType<typeof groupProps>>>; export type AvatarGroupProps = Partial<ExtractPropTypes<ReturnType<typeof groupProps>>>;
const Group = defineComponent({ const Group = defineComponent({
compatConfig: { MODE: 3 },
name: 'AAvatarGroup', name: 'AAvatarGroup',
inheritAttrs: false, inheritAttrs: false,
props: groupProps(), props: groupProps(),

View File

@ -32,6 +32,7 @@ export const backTopProps = () => ({
export type BackTopProps = Partial<ExtractPropTypes<typeof backTopProps>>; export type BackTopProps = Partial<ExtractPropTypes<typeof backTopProps>>;
const BackTop = defineComponent({ const BackTop = defineComponent({
compatConfig: { MODE: 3 },
name: 'ABackTop', name: 'ABackTop',
inheritAttrs: false, inheritAttrs: false,
props: backTopProps(), props: backTopProps(),

View File

@ -34,6 +34,7 @@ export const badgeProps = () => ({
export type BadgeProps = Partial<ExtractPropTypes<ReturnType<typeof badgeProps>>>; export type BadgeProps = Partial<ExtractPropTypes<ReturnType<typeof badgeProps>>>;
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'ABadge', name: 'ABadge',
Ribbon, Ribbon,
inheritAttrs: false, inheritAttrs: false,

View File

@ -16,6 +16,7 @@ export const ribbonProps = () => ({
export type RibbonProps = Partial<ExtractPropTypes<ReturnType<typeof ribbonProps>>>; export type RibbonProps = Partial<ExtractPropTypes<ReturnType<typeof ribbonProps>>>;
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'ABadgeRibbon', name: 'ABadgeRibbon',
inheritAttrs: false, inheritAttrs: false,
props: ribbonProps(), props: ribbonProps(),

View File

@ -18,6 +18,7 @@ const scrollNumberProps = {
export type ScrollNumberProps = Partial<ExtractPropTypes<typeof scrollNumberProps>>; export type ScrollNumberProps = Partial<ExtractPropTypes<typeof scrollNumberProps>>;
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'ScrollNumber', name: 'ScrollNumber',
inheritAttrs: false, inheritAttrs: false,
props: scrollNumberProps, props: scrollNumberProps,

View File

@ -45,6 +45,7 @@ function getOffset(start: number, end: number, unit: -1 | 1) {
} }
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'SingleNumber', name: 'SingleNumber',
props: { props: {
prefixCls: String, prefixCls: String,

View File

@ -52,6 +52,7 @@ function defaultItemRender(opt: {
} }
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'ABreadcrumb', name: 'ABreadcrumb',
props: breadcrumbProps(), props: breadcrumbProps(),
slots: ['separator', 'itemRender'], slots: ['separator', 'itemRender'],

View File

@ -17,6 +17,7 @@ export const breadcrumbItemProps = () => ({
export type BreadcrumbItemProps = Partial<ExtractPropTypes<ReturnType<typeof breadcrumbItemProps>>>; export type BreadcrumbItemProps = Partial<ExtractPropTypes<ReturnType<typeof breadcrumbItemProps>>>;
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'ABreadcrumbItem', name: 'ABreadcrumbItem',
inheritAttrs: false, inheritAttrs: false,
__ANT_BREADCRUMB_ITEM: true, __ANT_BREADCRUMB_ITEM: true,

View File

@ -11,6 +11,7 @@ export type BreadcrumbSeparatorProps = Partial<
>; >;
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'ABreadcrumbSeparator', name: 'ABreadcrumbSeparator',
__ANT_BREADCRUMB_SEPARATOR: true, __ANT_BREADCRUMB_SEPARATOR: true,
inheritAttrs: false, inheritAttrs: false,

View File

@ -25,6 +25,7 @@ const resetStyle = (node: HTMLSpanElement) => {
} }
}; };
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'LoadingIcon', name: 'LoadingIcon',
props: { props: {
prefixCls: String, prefixCls: String,

View File

@ -16,6 +16,7 @@ export const buttonGroupProps = () => ({
export type ButtonGroupProps = Partial<ExtractPropTypes<ReturnType<typeof buttonGroupProps>>>; export type ButtonGroupProps = Partial<ExtractPropTypes<ReturnType<typeof buttonGroupProps>>>;
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'AButtonGroup', name: 'AButtonGroup',
props: buttonGroupProps(), props: buttonGroupProps(),
setup(props, { slots }) { setup(props, { slots }) {

View File

@ -29,6 +29,7 @@ function isUnborderedButtonType(type: ButtonType | undefined) {
} }
export { buttonProps }; export { buttonProps };
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'AButton', name: 'AButton',
inheritAttrs: false, inheritAttrs: false,
__ANT_BUTTON: true, __ANT_BUTTON: true,

View File

@ -49,6 +49,7 @@ export const cardProps = () => ({
export type CardProps = Partial<ExtractPropTypes<ReturnType<typeof cardProps>>>; export type CardProps = Partial<ExtractPropTypes<ReturnType<typeof cardProps>>>;
const Card = defineComponent({ const Card = defineComponent({
compatConfig: { MODE: 3 },
name: 'ACard', name: 'ACard',
props: cardProps(), props: cardProps(),
slots: ['title', 'extra', 'tabBarExtraContent', 'actions', 'cover', 'customTab'], slots: ['title', 'extra', 'tabBarExtraContent', 'actions', 'cover', 'customTab'],

View File

@ -8,6 +8,7 @@ export const cardGridProps = () => ({
}); });
export type CardGridProps = Partial<ExtractPropTypes<ReturnType<typeof cardGridProps>>>; export type CardGridProps = Partial<ExtractPropTypes<ReturnType<typeof cardGridProps>>>;
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'ACardGrid', name: 'ACardGrid',
__ANT_CARD_GRID: true, __ANT_CARD_GRID: true,
props: cardGridProps(), props: cardGridProps(),

View File

@ -12,6 +12,7 @@ export const cardMetaProps = () => ({
}); });
export type CardGridProps = Partial<ExtractPropTypes<ReturnType<typeof cardMetaProps>>>; export type CardGridProps = Partial<ExtractPropTypes<ReturnType<typeof cardMetaProps>>>;
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'ACardMeta', name: 'ACardMeta',
props: cardMetaProps(), props: cardMetaProps(),
slots: ['title', 'description', 'avatar'], slots: ['title', 'description', 'avatar'],

View File

@ -70,6 +70,7 @@ export const carouselProps = () => ({
}); });
export type CarouselProps = Partial<ExtractPropTypes<ReturnType<typeof carouselProps>>>; export type CarouselProps = Partial<ExtractPropTypes<ReturnType<typeof carouselProps>>>;
const Carousel = defineComponent({ const Carousel = defineComponent({
compatConfig: { MODE: 3 },
name: 'ACarousel', name: 'ACarousel',
inheritAttrs: false, inheritAttrs: false,
props: carouselProps(), props: carouselProps(),

View File

@ -112,6 +112,7 @@ export interface CascaderRef {
} }
const Cascader = defineComponent({ const Cascader = defineComponent({
compatConfig: { MODE: 3 },
name: 'ACascader', name: 'ACascader',
inheritAttrs: false, inheritAttrs: false,
props: initDefaultProps(cascaderProps(), { props: initDefaultProps(cascaderProps(), {

View File

@ -12,6 +12,7 @@ import type { CheckboxChangeEvent, CheckboxProps } from './interface';
import { CheckboxGroupContextKey, checkboxProps } from './interface'; import { CheckboxGroupContextKey, checkboxProps } from './interface';
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'ACheckbox', name: 'ACheckbox',
inheritAttrs: false, inheritAttrs: false,
__ANT_CHECKBOX: true, __ANT_CHECKBOX: true,

View File

@ -6,6 +6,7 @@ import type { CheckboxOptionType } from './interface';
import { CheckboxGroupContextKey, checkboxGroupProps } from './interface'; import { CheckboxGroupContextKey, checkboxGroupProps } from './interface';
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'ACheckboxGroup', name: 'ACheckboxGroup',
props: checkboxGroupProps(), props: checkboxGroupProps(),
// emits: ['change', 'update:value'], // emits: ['change', 'update:value'],

View File

@ -31,6 +31,7 @@ function getActiveKeysArray(activeKey: Key | Key[]) {
export { collapseProps }; export { collapseProps };
export type CollapseProps = Partial<ExtractPropTypes<ReturnType<typeof collapseProps>>>; export type CollapseProps = Partial<ExtractPropTypes<ReturnType<typeof collapseProps>>>;
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'ACollapse', name: 'ACollapse',
inheritAttrs: false, inheritAttrs: false,
props: initDefaultProps(collapseProps(), { props: initDefaultProps(collapseProps(), {

View File

@ -11,6 +11,7 @@ import useConfigInject from '../_util/hooks/useConfigInject';
export { collapsePanelProps }; export { collapsePanelProps };
export type CollapsePanelProps = Partial<ExtractPropTypes<ReturnType<typeof collapsePanelProps>>>; export type CollapsePanelProps = Partial<ExtractPropTypes<ReturnType<typeof collapsePanelProps>>>;
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'ACollapsePanel', name: 'ACollapsePanel',
inheritAttrs: false, inheritAttrs: false,
props: initDefaultProps(collapsePanelProps(), { props: initDefaultProps(collapsePanelProps(), {

View File

@ -3,6 +3,7 @@ import { collapsePanelProps } from './commonProps';
import classNames from '../_util/classNames'; import classNames from '../_util/classNames';
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'PanelContent', name: 'PanelContent',
props: collapsePanelProps(), props: collapsePanelProps(),
setup(props, { slots }) { setup(props, { slots }) {

View File

@ -22,6 +22,7 @@ export const commentProps = () => ({
export type CommentProps = Partial<ExtractPropTypes<ReturnType<typeof commentProps>>>; export type CommentProps = Partial<ExtractPropTypes<ReturnType<typeof commentProps>>>;
const Comment = defineComponent({ const Comment = defineComponent({
compatConfig: { MODE: 3 },
name: 'AComment', name: 'AComment',
props: commentProps(), props: commentProps(),
slots: ['actions', 'author', 'avatar', 'content', 'datetime'], slots: ['actions', 'author', 'avatar', 'content', 'datetime'],

View File

@ -105,6 +105,7 @@ export const globalConfig = () => ({
}); });
const ConfigProvider = defineComponent({ const ConfigProvider = defineComponent({
compatConfig: { MODE: 3 },
name: 'AConfigProvider', name: 'AConfigProvider',
inheritAttrs: false, inheritAttrs: false,
props: configProviderProps(), props: configProviderProps(),

View File

@ -24,6 +24,7 @@ export default function generateRangePicker<DateType, ExtraProps = {}>(
extraProps: ExtraProps, extraProps: ExtraProps,
) { ) {
const RangePicker = defineComponent({ const RangePicker = defineComponent({
compatConfig: { MODE: 3 },
name: 'ARangePicker', name: 'ARangePicker',
inheritAttrs: false, inheritAttrs: false,
props: { props: {

View File

@ -28,6 +28,7 @@ export default function generateSinglePicker<DateType, ExtraProps = {}>(
...extraProps, ...extraProps,
}; };
return defineComponent({ return defineComponent({
compatConfig: { MODE: 3 },
name: displayName, name: displayName,
inheritAttrs: false, inheritAttrs: false,
props: comProps, props: comProps,

View File

@ -46,6 +46,7 @@ export type DescriptionsItemProp = Partial<
>; >;
export const DescriptionsItem = defineComponent({ export const DescriptionsItem = defineComponent({
compatConfig: { MODE: 3 },
name: 'ADescriptionsItem', name: 'ADescriptionsItem',
props: descriptionsItemProp(), props: descriptionsItemProp(),
slots: ['label'], slots: ['label'],
@ -157,6 +158,7 @@ export const descriptionsContext: InjectionKey<DescriptionsContextProp> =
Symbol('descriptionsContext'); Symbol('descriptionsContext');
const Descriptions = defineComponent({ const Descriptions = defineComponent({
compatConfig: { MODE: 3 },
name: 'ADescriptions', name: 'ADescriptions',
props: descriptionsProps(), props: descriptionsProps(),
slots: ['title', 'extra'], slots: ['title', 'extra'],

View File

@ -27,6 +27,7 @@ export const dividerProps = () => ({
export type DividerProps = Partial<ExtractPropTypes<ReturnType<typeof dividerProps>>>; export type DividerProps = Partial<ExtractPropTypes<ReturnType<typeof dividerProps>>>;
const Divider = defineComponent({ const Divider = defineComponent({
compatConfig: { MODE: 3 },
name: 'ADivider', name: 'ADivider',
props: dividerProps(), props: dividerProps(),
setup(props, { slots }) { setup(props, { slots }) {

View File

@ -90,6 +90,7 @@ export const drawerProps = () => ({
export type DrawerProps = Partial<ExtractPropTypes<ReturnType<typeof drawerProps>>>; export type DrawerProps = Partial<ExtractPropTypes<ReturnType<typeof drawerProps>>>;
const Drawer = defineComponent({ const Drawer = defineComponent({
compatConfig: { MODE: 3 },
name: 'ADrawer', name: 'ADrawer',
inheritAttrs: false, inheritAttrs: false,
props: initDefaultProps(drawerProps(), { props: initDefaultProps(drawerProps(), {

View File

@ -12,6 +12,7 @@ const ButtonGroup = Button.Group;
export type DropdownButtonProps = Partial<ExtractPropTypes<ReturnType<typeof dropdownButtonProps>>>; export type DropdownButtonProps = Partial<ExtractPropTypes<ReturnType<typeof dropdownButtonProps>>>;
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'ADropdownButton', name: 'ADropdownButton',
inheritAttrs: false, inheritAttrs: false,
__ANT_BUTTON: true, __ANT_BUTTON: true,

View File

@ -15,6 +15,7 @@ import getPlacements from '../tooltip/placements';
export type DropdownProps = Partial<ExtractPropTypes<ReturnType<typeof dropdownProps>>>; export type DropdownProps = Partial<ExtractPropTypes<ReturnType<typeof dropdownProps>>>;
const Dropdown = defineComponent({ const Dropdown = defineComponent({
compatConfig: { MODE: 3 },
name: 'ADropdown', name: 'ADropdown',
inheritAttrs: false, inheritAttrs: false,
props: initDefaultProps(dropdownProps(), { props: initDefaultProps(dropdownProps(), {

View File

@ -14,6 +14,7 @@ export interface ErrorListProps {
} }
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'ErrorList', name: 'ErrorList',
props: ['errors', 'help', 'onDomErrorVisibleChange', 'helpStatus', 'warnings'], props: ['errors', 'help', 'onDomErrorVisibleChange', 'helpStatus', 'warnings'],
setup(props) { setup(props) {

View File

@ -99,6 +99,7 @@ function isEqualName(name1: NamePath, name2: NamePath) {
} }
const Form = defineComponent({ const Form = defineComponent({
compatConfig: { MODE: 3 },
name: 'AForm', name: 'AForm',
inheritAttrs: false, inheritAttrs: false,
props: initDefaultProps(formProps(), { props: initDefaultProps(formProps(), {

View File

@ -122,6 +122,7 @@ let indexGuid = 0;
const defaultItemNamePrefixCls = 'form_item'; const defaultItemNamePrefixCls = 'form_item';
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'AFormItem', name: 'AFormItem',
inheritAttrs: false, inheritAttrs: false,
__ANT_NEW_FORM_ITEM: true, __ANT_NEW_FORM_ITEM: true,

View File

@ -94,6 +94,7 @@ export const useInjectFormItemContext = () => {
}; };
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'AFormItemRest', name: 'AFormItemRest',
setup(_, { slots }) { setup(_, { slots }) {
provide(InternalContextKey, defaultInternalContext); provide(InternalContextKey, defaultInternalContext);

View File

@ -34,6 +34,7 @@ const iconMap: { [key: string]: any } = {
validating: LoadingOutlined, validating: LoadingOutlined,
}; };
const FormItemInput = defineComponent({ const FormItemInput = defineComponent({
compatConfig: { MODE: 3 },
slots: ['help', 'extra', 'errors'], slots: ['help', 'extra', 'errors'],
inheritAttrs: false, inheritAttrs: false,
props: [ props: [

View File

@ -69,6 +69,7 @@ export const colProps = () => ({
export type ColProps = Partial<ExtractPropTypes<ReturnType<typeof colProps>>>; export type ColProps = Partial<ExtractPropTypes<ReturnType<typeof colProps>>>;
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'ACol', name: 'ACol',
props: colProps(), props: colProps(),
setup(props, { slots }) { setup(props, { slots }) {

View File

@ -31,6 +31,7 @@ export const rowProps = () => ({
export type RowProps = Partial<ExtractPropTypes<ReturnType<typeof rowProps>>>; export type RowProps = Partial<ExtractPropTypes<ReturnType<typeof rowProps>>>;
const ARow = defineComponent({ const ARow = defineComponent({
compatConfig: { MODE: 3 },
name: 'ARow', name: 'ARow',
props: rowProps(), props: rowProps(),
setup(props, { slots }) { setup(props, { slots }) {

View File

@ -21,6 +21,7 @@ export const icons = {
}; };
const InternalPreviewGroup = defineComponent({ const InternalPreviewGroup = defineComponent({
compatConfig: { MODE: 3 },
name: 'AImagePreviewGroup', name: 'AImagePreviewGroup',
inheritAttrs: false, inheritAttrs: false,
props: { previewPrefixCls: String }, props: { previewPrefixCls: String },

View File

@ -30,6 +30,7 @@ export const inputNumberProps = () => ({
export type InputNumberProps = Partial<ExtractPropTypes<ReturnType<typeof inputNumberProps>>>; export type InputNumberProps = Partial<ExtractPropTypes<ReturnType<typeof inputNumberProps>>>;
const InputNumber = defineComponent({ const InputNumber = defineComponent({
compatConfig: { MODE: 3 },
name: 'AInputNumber', name: 'AInputNumber',
inheritAttrs: false, inheritAttrs: false,
props: inputNumberProps(), props: inputNumberProps(),

View File

@ -79,6 +79,7 @@ export const inputNumberProps = () => ({
}); });
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'InnerInputNumber', name: 'InnerInputNumber',
inheritAttrs: false, inheritAttrs: false,
props: { props: {

View File

@ -14,6 +14,7 @@ const STEP_INTERVAL = 200;
const STEP_DELAY = 600; const STEP_DELAY = 600;
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'StepHandler', name: 'StepHandler',
inheritAttrs: false, inheritAttrs: false,
props: { props: {

View File

@ -12,6 +12,7 @@ import { getInputClassName, hasAddon, hasPrefixSuffix } from './util';
const ClearableInputType = ['text', 'input']; const ClearableInputType = ['text', 'input'];
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'ClearableLabeledInput', name: 'ClearableLabeledInput',
inheritAttrs: false, inheritAttrs: false,
props: { props: {

View File

@ -5,6 +5,7 @@ import type { FocusEventHandler, MouseEventHandler } from '../_util/EventInterfa
import useConfigInject from '../_util/hooks/useConfigInject'; import useConfigInject from '../_util/hooks/useConfigInject';
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'AInputGroup', name: 'AInputGroup',
props: { props: {
prefixCls: String, prefixCls: String,

View File

@ -105,6 +105,7 @@ export function triggerFocus(
} }
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'AInput', name: 'AInput',
inheritAttrs: false, inheritAttrs: false,
props: inputProps(), props: inputProps(),

View File

@ -17,6 +17,7 @@ const ActionMap = {
const defaultIconRender = (visible: boolean) => const defaultIconRender = (visible: boolean) =>
visible ? <EyeOutlined /> : <EyeInvisibleOutlined />; visible ? <EyeOutlined /> : <EyeInvisibleOutlined />;
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'AInputPassword', name: 'AInputPassword',
inheritAttrs: false, inheritAttrs: false,
props: { props: {

View File

@ -23,6 +23,7 @@ const RESIZE_STATUS_RESIZING = 1;
const RESIZE_STATUS_RESIZED = 2; const RESIZE_STATUS_RESIZED = 2;
const ResizableTextArea = defineComponent({ const ResizableTextArea = defineComponent({
compatConfig: { MODE: 3 },
name: 'ResizableTextArea', name: 'ResizableTextArea',
inheritAttrs: false, inheritAttrs: false,
props: textAreaProps(), props: textAreaProps(),

View File

@ -14,6 +14,7 @@ import omit from '../_util/omit';
import isMobile from '../_util/isMobile'; import isMobile from '../_util/isMobile';
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'AInputSearch', name: 'AInputSearch',
inheritAttrs: false, inheritAttrs: false,
props: { props: {

View File

@ -45,6 +45,7 @@ function setTriggerValue(
} }
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'ATextarea', name: 'ATextarea',
inheritAttrs: false, inheritAttrs: false,
props: textAreaProps(), props: textAreaProps(),

View File

@ -58,6 +58,7 @@ const generateId = (() => {
})(); })();
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'ALayoutSider', name: 'ALayoutSider',
inheritAttrs: false, inheritAttrs: false,
props: initDefaultProps(siderProps(), { props: initDefaultProps(siderProps(), {

View File

@ -20,6 +20,7 @@ type GeneratorArgument = {
function generator({ suffixCls, tagName, name }: GeneratorArgument) { function generator({ suffixCls, tagName, name }: GeneratorArgument) {
return (BasicComponent: typeof Basic) => { return (BasicComponent: typeof Basic) => {
const Adapter = defineComponent({ const Adapter = defineComponent({
compatConfig: { MODE: 3 },
name, name,
props: basicProps(), props: basicProps(),
setup(props, { slots }) { setup(props, { slots }) {
@ -39,6 +40,7 @@ function generator({ suffixCls, tagName, name }: GeneratorArgument) {
} }
const Basic = defineComponent({ const Basic = defineComponent({
compatConfig: { MODE: 3 },
props: basicProps(), props: basicProps(),
setup(props, { slots }) { setup(props, { slots }) {
return () => createVNode(props.tagName, { class: props.prefixCls }, slots); return () => createVNode(props.tagName, { class: props.prefixCls }, slots);
@ -46,6 +48,7 @@ const Basic = defineComponent({
}); });
const BasicLayout = defineComponent({ const BasicLayout = defineComponent({
compatConfig: { MODE: 3 },
props: basicProps(), props: basicProps(),
setup(props, { slots }) { setup(props, { slots }) {
const { direction } = useConfigInject('', props); const { direction } = useConfigInject('', props);

View File

@ -20,6 +20,7 @@ export const listItemProps = () => ({
export type ListItemProps = Partial<ExtractPropTypes<ReturnType<typeof listItemProps>>>; export type ListItemProps = Partial<ExtractPropTypes<ReturnType<typeof listItemProps>>>;
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'AListItem', name: 'AListItem',
inheritAttrs: false, inheritAttrs: false,
Meta: ItemMeta, Meta: ItemMeta,

View File

@ -13,6 +13,7 @@ export const listItemMetaProps = () => ({
export type ListItemMetaProps = Partial<ExtractPropTypes<ReturnType<typeof listItemMetaProps>>>; export type ListItemMetaProps = Partial<ExtractPropTypes<ReturnType<typeof listItemMetaProps>>>;
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'AListItemMeta', name: 'AListItemMeta',
props: listItemMetaProps(), props: listItemMetaProps(),
displayName: 'AListItemMeta', // displayName: 'AListItemMeta', //

View File

@ -77,6 +77,7 @@ import { ListContextKey } from './contextKey';
import type { RenderEmptyHandler } from '../config-provider/renderEmpty'; import type { RenderEmptyHandler } from '../config-provider/renderEmpty';
const List = defineComponent({ const List = defineComponent({
compatConfig: { MODE: 3 },
name: 'AList', name: 'AList',
Item, Item,
props: initDefaultProps(listProps(), { props: initDefaultProps(listProps(), {

View File

@ -19,6 +19,7 @@ export interface LocaleReceiverContext {
} }
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'LocaleReceiver', name: 'LocaleReceiver',
props: { props: {
componentName: String as PropType<LocaleComponentName>, componentName: String as PropType<LocaleComponentName>,

View File

@ -53,6 +53,7 @@ export interface LocaleProviderProps {
export const ANT_MARK = 'internalMark'; export const ANT_MARK = 'internalMark';
const LocaleProvider = defineComponent({ const LocaleProvider = defineComponent({
compatConfig: { MODE: 3 },
name: 'ALocaleProvider', name: 'ALocaleProvider',
props: { props: {
locale: { locale: {

View File

@ -88,6 +88,7 @@ export const mentionsProps = () => ({
export type MentionsProps = Partial<ExtractPropTypes<ReturnType<typeof mentionsProps>>>; export type MentionsProps = Partial<ExtractPropTypes<ReturnType<typeof mentionsProps>>>;
const Mentions = defineComponent({ const Mentions = defineComponent({
compatConfig: { MODE: 3 },
name: 'AMentions', name: 'AMentions',
inheritAttrs: false, inheritAttrs: false,
props: mentionsProps(), props: mentionsProps(),
@ -204,6 +205,7 @@ const Mentions = defineComponent({
/* istanbul ignore next */ /* istanbul ignore next */
export const MentionsOption = defineComponent({ export const MentionsOption = defineComponent({
compatConfig: { MODE: 3 },
...Option, ...Option,
name: 'AMentionsOption', name: 'AMentionsOption',
props: optionProps, props: optionProps,

View File

@ -10,6 +10,7 @@ export const menuDividerProps = () => ({
export type MenuDividerProps = Partial<ExtractPropTypes<ReturnType<typeof menuDividerProps>>>; export type MenuDividerProps = Partial<ExtractPropTypes<ReturnType<typeof menuDividerProps>>>;
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'AMenuDivider', name: 'AMenuDivider',
props: menuDividerProps(), props: menuDividerProps(),
setup(props) { setup(props) {

View File

@ -5,6 +5,7 @@ import type { MenuMode } from './interface';
import SubMenuList from './SubMenuList'; import SubMenuList from './SubMenuList';
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'InlineSubMenuList', name: 'InlineSubMenuList',
inheritAttrs: false, inheritAttrs: false,
props: { props: {

View File

@ -12,6 +12,7 @@ export const menuItemGroupProps = () => ({
export type MenuItemGroupProps = Partial<ExtractPropTypes<ReturnType<typeof menuItemGroupProps>>>; export type MenuItemGroupProps = Partial<ExtractPropTypes<ReturnType<typeof menuItemGroupProps>>>;
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'AMenuItemGroup', name: 'AMenuItemGroup',
inheritAttrs: false, inheritAttrs: false,
props: menuItemGroupProps(), props: menuItemGroupProps(),

View File

@ -84,6 +84,7 @@ export type MenuProps = Partial<ExtractPropTypes<ReturnType<typeof menuProps>>>;
const EMPTY_LIST: string[] = []; const EMPTY_LIST: string[] = [];
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'AMenu', name: 'AMenu',
inheritAttrs: false, inheritAttrs: false,
props: menuProps(), props: menuProps(),

View File

@ -31,6 +31,7 @@ export const menuItemProps = () => ({
export type MenuItemProps = Partial<ExtractPropTypes<ReturnType<typeof menuItemProps>>>; export type MenuItemProps = Partial<ExtractPropTypes<ReturnType<typeof menuItemProps>>>;
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'AMenuItem', name: 'AMenuItem',
inheritAttrs: false, inheritAttrs: false,
props: menuItemProps(), props: menuItemProps(),

View File

@ -15,6 +15,7 @@ const popupPlacementMap = {
'vertical-right': 'leftTop', 'vertical-right': 'leftTop',
}; };
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'PopupTrigger', name: 'PopupTrigger',
inheritAttrs: false, inheritAttrs: false,
props: { props: {

View File

@ -42,6 +42,7 @@ export const subMenuProps = () => ({
export type SubMenuProps = Partial<ExtractPropTypes<ReturnType<typeof subMenuProps>>>; export type SubMenuProps = Partial<ExtractPropTypes<ReturnType<typeof subMenuProps>>>;
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'ASubMenu', name: 'ASubMenu',
inheritAttrs: false, inheritAttrs: false,
props: subMenuProps(), props: subMenuProps(),

View File

@ -28,6 +28,7 @@ const useProvideKeyPath = (eventKey: string, key: Key, menuInfo: StoreMenuInfo)
const measure = Symbol('measure'); const measure = Symbol('measure');
export const PathContext = defineComponent({ export const PathContext = defineComponent({
compatConfig: { MODE: 3 },
setup(_props, { slots }) { setup(_props, { slots }) {
// 不需要响应式 // 不需要响应式
provide(measure, true); provide(measure, true);

View File

@ -109,6 +109,7 @@ const useInjectFirstLevel = () => {
}; };
const MenuContextProvider = defineComponent({ const MenuContextProvider = defineComponent({
compatConfig: { MODE: 3 },
name: 'MenuContextProvider', name: 'MenuContextProvider',
inheritAttrs: false, inheritAttrs: false,
props: { props: {

View File

@ -140,6 +140,7 @@ export interface ModalLocale {
export const destroyFns = []; export const destroyFns = [];
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'AModal', name: 'AModal',
inheritAttrs: false, inheritAttrs: false,
props: initDefaultProps(modalProps(), { props: initDefaultProps(modalProps(), {

View File

@ -32,6 +32,7 @@ export const pageHeaderProps = () => ({
export type PageHeaderProps = Partial<ExtractPropTypes<ReturnType<typeof pageHeaderProps>>>; export type PageHeaderProps = Partial<ExtractPropTypes<ReturnType<typeof pageHeaderProps>>>;
const PageHeader = defineComponent({ const PageHeader = defineComponent({
compatConfig: { MODE: 3 },
name: 'APageHeader', name: 'APageHeader',
props: pageHeaderProps(), props: pageHeaderProps(),
// emits: ['back'], // emits: ['back'],

View File

@ -2,6 +2,7 @@ import { defineComponent } from 'vue';
import VcSelect, { selectProps } from '../select'; import VcSelect, { selectProps } from '../select';
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
inheritAttrs: false, inheritAttrs: false,
props: selectProps(), props: selectProps(),
Option: VcSelect.Option, Option: VcSelect.Option,

View File

@ -75,6 +75,7 @@ export interface PaginationLocale {
} }
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'APagination', name: 'APagination',
inheritAttrs: false, inheritAttrs: false,
props: paginationProps(), props: paginationProps(),

View File

@ -56,6 +56,7 @@ export interface PopconfirmLocale {
} }
const Popconfirm = defineComponent({ const Popconfirm = defineComponent({
compatConfig: { MODE: 3 },
name: 'APopconfirm', name: 'APopconfirm',
props: initDefaultProps(popconfirmProps(), { props: initDefaultProps(popconfirmProps(), {
...tooltipDefaultProps(), ...tooltipDefaultProps(),

View File

@ -19,6 +19,7 @@ export const popoverProps = () => ({
export type PopoverProps = Partial<ExtractPropTypes<ReturnType<typeof popoverProps>>>; export type PopoverProps = Partial<ExtractPropTypes<ReturnType<typeof popoverProps>>>;
const Popover = defineComponent({ const Popover = defineComponent({
compatConfig: { MODE: 3 },
name: 'APopover', name: 'APopover',
props: initDefaultProps(popoverProps(), { props: initDefaultProps(popoverProps(), {
...tooltipDefaultProps(), ...tooltipDefaultProps(),

View File

@ -22,6 +22,7 @@ function getStrokeColor({
} }
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'Circle', name: 'Circle',
inheritAttrs: false, inheritAttrs: false,
props: progressProps(), props: progressProps(),

View File

@ -68,6 +68,7 @@ export const handleGradient = (strokeColor: ProgressGradient, directionConfig: D
}; };
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'Line', name: 'Line',
props: lineProps(), props: lineProps(),
setup(props, { slots }) { setup(props, { slots }) {

View File

@ -17,6 +17,7 @@ export const stepsProps = () => ({
export type StepsProps = Partial<ExtractPropTypes<typeof stepsProps>>; export type StepsProps = Partial<ExtractPropTypes<typeof stepsProps>>;
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'Steps', name: 'Steps',
props: stepsProps(), props: stepsProps(),
setup(props, { slots }) { setup(props, { slots }) {

View File

@ -14,6 +14,7 @@ import { progressProps, progressStatuses } from './props';
import type { VueNode } from '../_util/type'; import type { VueNode } from '../_util/type';
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'AProgress', name: 'AProgress',
props: initDefaultProps(progressProps(), { props: initDefaultProps(progressProps(), {
type: 'line', type: 'line',

View File

@ -39,6 +39,7 @@ export const radioGroupProps = () => ({
export type RadioGroupProps = Partial<ExtractPropTypes<ReturnType<typeof radioGroupProps>>>; export type RadioGroupProps = Partial<ExtractPropTypes<ReturnType<typeof radioGroupProps>>>;
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'ARadioGroup', name: 'ARadioGroup',
props: radioGroupProps(), props: radioGroupProps(),
// emits: ['update:value', 'change'], // emits: ['update:value', 'change'],

View File

@ -29,6 +29,7 @@ export const radioProps = () => ({
export type RadioProps = Partial<ExtractPropTypes<ReturnType<typeof radioProps>>>; export type RadioProps = Partial<ExtractPropTypes<ReturnType<typeof radioProps>>>;
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'ARadio', name: 'ARadio',
props: radioProps(), props: radioProps(),
// emits: ['update:checked', 'update:value', 'change', 'blur', 'focus'], // emits: ['update:checked', 'update:value', 'change', 'blur', 'focus'],

View File

@ -5,6 +5,7 @@ import useConfigInject from '../_util/hooks/useConfigInject';
import type { RadioGroupContext } from './interface'; import type { RadioGroupContext } from './interface';
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'ARadioButton', name: 'ARadioButton',
props: radioProps(), props: radioProps(),
setup(props, { slots }) { setup(props, { slots }) {

View File

@ -20,6 +20,7 @@ export const starProps = {
export type StarProps = Partial<ExtractPropTypes<typeof starProps>>; export type StarProps = Partial<ExtractPropTypes<typeof starProps>>;
export default defineComponent({ export default defineComponent({
compatConfig: { MODE: 3 },
name: 'Star', name: 'Star',
inheritAttrs: false, inheritAttrs: false,
props: starProps, props: starProps,

View File

@ -40,6 +40,7 @@ export const rateProps = () => ({
export type RateProps = Partial<ExtractPropTypes<ReturnType<typeof rateProps>>>; export type RateProps = Partial<ExtractPropTypes<ReturnType<typeof rateProps>>>;
const Rate = defineComponent({ const Rate = defineComponent({
compatConfig: { MODE: 3 },
name: 'ARate', name: 'ARate',
inheritAttrs: false, inheritAttrs: false,
props: initDefaultProps(rateProps(), { props: initDefaultProps(rateProps(), {

View File

@ -59,6 +59,7 @@ const renderExtra = (prefixCls: string, extra: VNodeTypes) =>
extra && <div class={`${prefixCls}-extra`}>{extra}</div>; extra && <div class={`${prefixCls}-extra`}>{extra}</div>;
const Result = defineComponent({ const Result = defineComponent({
compatConfig: { MODE: 3 },
name: 'AResult', name: 'AResult',
props: resultProps(), props: resultProps(),
slots: ['title', 'subTitle', 'icon', 'extra'], slots: ['title', 'subTitle', 'icon', 'extra'],

View File

@ -55,6 +55,7 @@ export type SelectProps = Partial<ExtractPropTypes<ReturnType<typeof selectProps
const SECRET_COMBOBOX_MODE_DO_NOT_USE = 'SECRET_COMBOBOX_MODE_DO_NOT_USE'; const SECRET_COMBOBOX_MODE_DO_NOT_USE = 'SECRET_COMBOBOX_MODE_DO_NOT_USE';
const Select = defineComponent({ const Select = defineComponent({
compatConfig: { MODE: 3 },
name: 'ASelect', name: 'ASelect',
Option, Option,
OptGroup, OptGroup,

View File

@ -15,6 +15,7 @@ export const avatarProps = () => {
export type SkeletonAvatarProps = Partial<ExtractPropTypes<ReturnType<typeof avatarProps>>>; export type SkeletonAvatarProps = Partial<ExtractPropTypes<ReturnType<typeof avatarProps>>>;
const SkeletonAvatar = defineComponent({ const SkeletonAvatar = defineComponent({
compatConfig: { MODE: 3 },
name: 'ASkeletonAvatar', name: 'ASkeletonAvatar',
props: initDefaultProps(avatarProps(), { props: initDefaultProps(avatarProps(), {
size: 'default', size: 'default',

View File

@ -16,6 +16,7 @@ export const skeletonButtonProps = () => {
export type SkeletonButtonProps = Partial<ExtractPropTypes<ReturnType<typeof skeletonButtonProps>>>; export type SkeletonButtonProps = Partial<ExtractPropTypes<ReturnType<typeof skeletonButtonProps>>>;
const SkeletonButton = defineComponent({ const SkeletonButton = defineComponent({
compatConfig: { MODE: 3 },
name: 'ASkeletonButton', name: 'ASkeletonButton',
props: initDefaultProps(skeletonButtonProps(), { props: initDefaultProps(skeletonButtonProps(), {
size: 'default', size: 'default',

View File

@ -11,6 +11,7 @@ const path =
'M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z'; 'M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z';
const SkeletonImage = defineComponent({ const SkeletonImage = defineComponent({
compatConfig: { MODE: 3 },
name: 'ASkeletonImage', name: 'ASkeletonImage',
props: omit(skeletonElementProps(), ['size', 'shape', 'active']), props: omit(skeletonElementProps(), ['size', 'shape', 'active']),
setup(props) { setup(props) {

View File

@ -11,6 +11,7 @@ export interface SkeletonInputProps extends Omit<SkeletonElementProps, 'size' |
} }
const SkeletonInput = defineComponent({ const SkeletonInput = defineComponent({
compatConfig: { MODE: 3 },
name: 'ASkeletonInput', name: 'ASkeletonInput',
props: { props: {
...omit(skeletonElementProps(), ['shape']), ...omit(skeletonElementProps(), ['shape']),

Some files were not shown because too many files have changed in this diff Show More