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

* fix: default value for direction in configProvider

* update defaultConfigProvider
pull/6917/head
Konv Suu 1 year ago committed by GitHub
parent 7a0c2a384c
commit 70102039c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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 = () => {

Loading…
Cancel
Save