diff --git a/components/config-provider/context.ts b/components/config-provider/context.ts index aa2626673..2fd2ced3d 100644 --- a/components/config-provider/context.ts +++ b/components/config-provider/context.ts @@ -88,6 +88,7 @@ export const configProviderProps = () => ({ componentDisabled: { type: Boolean, default: undefined }, direction: { type: String as PropType<'ltr' | 'rtl'>, + default: 'ltr', }, space: objectType<{ size?: SizeType | number }>(), virtual: { type: Boolean, default: undefined }, @@ -155,6 +156,7 @@ export const defaultConfigProvider: ConfigProviderInnerProps = { }, iconPrefixCls: computed(() => defaultIconPrefixCls), getPopupContainer: computed(() => () => document.body), + direction: computed(() => 'ltr'), }; export const useConfigContextInject = () => {