Files
cmgd-mini-app/uni_modules/nutui-uni/components/configprovider/configprovider.ts
2026-01-05 12:47:14 +08:00

20 lines
567 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import type { ExtractPropTypes } from 'vue'
import { makeStringProp } from '../_utils'
export const configProviderProps = {
/**
* @description 主题风格,设置为 `dark` 来开启深色模式,全局生效
*/
theme: makeStringProp<string | 'dark' & {}>(''),
/**
* @description 自定义主题变量
*/
themeVars: { type: Object, default: {} },
/**
* @description 设置所有弹窗类组件的 z-index该属性对全局生效
*/
zIndex: Number,
}
export type ConfigProviderProps = ExtractPropTypes<typeof configProviderProps>