|
@@ -1,14 +1,15 @@
|
|
|
import { defineComponent, renderSlot, watch } from 'vue'
|
|
|
import { buildProps, definePropType } from '@kankan-components/utils'
|
|
|
-import { provideGlobalConfig, useSizeProp } from '@kankan-components/hooks'
|
|
|
+import { provideGlobalConfig } from '@kankan-components/hooks'
|
|
|
|
|
|
import type { ExtractPropTypes } from 'vue'
|
|
|
-import type { ExperimentalFeatures } from '@kankan-components/tokens'
|
|
|
-import type { Language } from '@kankan-components/locale'
|
|
|
-import type { ButtonConfigContext } from '@kankan-components/components/basic/button'
|
|
|
-import type { MessageConfigContext } from '@kankan-components/components/message'
|
|
|
+// import type { ExperimentalFeatures } from '@kankan-components/tokens'
|
|
|
+// import type { Language } from '@kankan-components/locale'
|
|
|
+// import type { ButtonConfigContext } from '@kankan-components/components/basic/button'
|
|
|
+// import type { MessageConfigContext } from '@kankan-components/components/message'
|
|
|
|
|
|
-export const messageConfig: MessageConfigContext = {}
|
|
|
+// export const messageConfig: MessageConfigContext = {}
|
|
|
+export const messageConfig = {}
|
|
|
|
|
|
export const configProviderProps = buildProps({
|
|
|
// Controlling if the users want a11y features.
|
|
@@ -17,19 +18,19 @@ export const configProviderProps = buildProps({
|
|
|
default: true,
|
|
|
},
|
|
|
|
|
|
- locale: {
|
|
|
- type: definePropType<Language>(Object),
|
|
|
- },
|
|
|
+ // locale: {
|
|
|
+ // type: definePropType<Language>(Object),
|
|
|
+ // },
|
|
|
|
|
|
- size: useSizeProp,
|
|
|
+ // size: useSizeProp,
|
|
|
|
|
|
- button: {
|
|
|
- type: definePropType<ButtonConfigContext>(Object),
|
|
|
- },
|
|
|
+ // button: {
|
|
|
+ // type: definePropType<ButtonConfigContext>(Object),
|
|
|
+ // },
|
|
|
|
|
|
- experimentalFeatures: {
|
|
|
- type: definePropType<ExperimentalFeatures>(Object),
|
|
|
- },
|
|
|
+ // experimentalFeatures: {
|
|
|
+ // type: definePropType<ExperimentalFeatures>(Object),
|
|
|
+ // },
|
|
|
|
|
|
// Controls if we should handle keyboard navigation
|
|
|
keyboardNavigation: {
|
|
@@ -38,20 +39,20 @@ export const configProviderProps = buildProps({
|
|
|
},
|
|
|
|
|
|
message: {
|
|
|
- type: definePropType<MessageConfigContext>(Object),
|
|
|
+ type: definePropType<any>(Object),
|
|
|
},
|
|
|
|
|
|
zIndex: Number,
|
|
|
|
|
|
namespace: {
|
|
|
type: String,
|
|
|
- default: 'el',
|
|
|
+ default: 'ui',
|
|
|
},
|
|
|
} as const)
|
|
|
export type ConfigProviderProps = ExtractPropTypes<typeof configProviderProps>
|
|
|
|
|
|
const ConfigProvider = defineComponent({
|
|
|
- name: 'ElConfigProvider',
|
|
|
+ name: 'UIConfigProvider',
|
|
|
props: configProviderProps,
|
|
|
|
|
|
setup(props, { slots }) {
|