fix: default value for direction in configProvider (#6890)
* fix: default value for direction in configProvider * update defaultConfigProviderpull/6917/head
parent
7a0c2a384c
commit
70102039c4
|
@ -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 = () => {
|
||||||
|
|
Loading…
Reference in New Issue