fix: default value for direction in configProvider (#6890)

* fix: default value for direction in configProvider

* update defaultConfigProvider
pull/6917/head
Konv Suu 2023-08-30 15:12:10 +08:00 committed by GitHub
parent 7a0c2a384c
commit 70102039c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -88,6 +88,7 @@ export const configProviderProps = () => ({
componentDisabled: { type: Boolean, default: undefined }, componentDisabled: { type: Boolean, default: undefined },
direction: { direction: {
type: String as PropType<'ltr' | 'rtl'>, type: String as PropType<'ltr' | 'rtl'>,
default: 'ltr',
}, },
space: objectType<{ size?: SizeType | number }>(), space: objectType<{ size?: SizeType | number }>(),
virtual: { type: Boolean, default: undefined }, virtual: { type: Boolean, default: undefined },
@ -155,6 +156,7 @@ export const defaultConfigProvider: ConfigProviderInnerProps = {
}, },
iconPrefixCls: computed(() => defaultIconPrefixCls), iconPrefixCls: computed(() => defaultIconPrefixCls),
getPopupContainer: computed(() => () => document.body), getPopupContainer: computed(() => () => document.body),
direction: computed(() => 'ltr'),
}; };
export const useConfigContextInject = () => { export const useConfigContextInject = () => {