mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-04 04:58:16 +08:00
26 lines
467 B
Vue
26 lines
467 B
Vue
|
|
import PropTypes from '../_util/vue-types'
|
|
|
|
const ConfigProvider = {
|
|
name: 'AConfigProvider',
|
|
props: {
|
|
getPopupContainer: PropTypes.func,
|
|
},
|
|
provide () {
|
|
return {
|
|
configProvider: this.$props,
|
|
}
|
|
},
|
|
render () {
|
|
return this.$slots.default ? this.$slots.default[0] : null
|
|
},
|
|
}
|
|
|
|
/* istanbul ignore next */
|
|
ConfigProvider.install = function (Vue) {
|
|
Vue.component(ConfigProvider.name, ConfigProvider)
|
|
}
|
|
|
|
export default ConfigProvider
|
|
|