Skip to content

message 组建文档没有提供全局配置方法 #530

@c0dezli

Description

@c0dezli
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.3.5

Environment

Vue 2.5, vue-ant-design 1.3.5

Reproduction link

Edit on CodeSandbox

Steps to reproduce

main.js

import Vue from 'vue';
import Antd from 'ant-design-vue';
import App from './App.vue';
import router from './router';
import store from './store/index';

import './styles/theme.less';

Vue.config.productionTip = false;
Vue.use(Antd);
// message.config({ top: '100px' }); 无效
// Vue.message.config({ top: '100px' }); 无效
// Vue.$message.config({ top: '100px' }); 无效
// $message.config({ top: '100px' }); 无效

new Vue({
router,
store,
render: (h) => h(App),
}).$mount('#app');

What is expected?

文档中应该提供详细的全局配置方法

What is actually happening?

文档没有提供任何帮助


这个文档的体验真的很糟糕

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions