docs: remove app.config.productionTip (#5084)
parent
30bbd4c3b4
commit
620214d536
|
@ -47,7 +47,6 @@ import App from './App';
|
||||||
import 'ant-design-vue/dist/antd.css';
|
import 'ant-design-vue/dist/antd.css';
|
||||||
|
|
||||||
const app = createApp();
|
const app = createApp();
|
||||||
app.config.productionTip = false;
|
|
||||||
|
|
||||||
app.use(Antd);
|
app.use(Antd);
|
||||||
```
|
```
|
||||||
|
@ -62,7 +61,6 @@ import { Button, message } from 'ant-design-vue';
|
||||||
import App from './App';
|
import App from './App';
|
||||||
|
|
||||||
const app = createApp(App);
|
const app = createApp(App);
|
||||||
app.config.productionTip = false;
|
|
||||||
|
|
||||||
/* Automatically register components under Button, such as Button.Group */
|
/* Automatically register components under Button, such as Button.Group */
|
||||||
app.use(Button).mount('#app');
|
app.use(Button).mount('#app');
|
||||||
|
|
|
@ -49,7 +49,6 @@ import App from './App';
|
||||||
import 'ant-design-vue/dist/antd.css';
|
import 'ant-design-vue/dist/antd.css';
|
||||||
|
|
||||||
const app = createApp();
|
const app = createApp();
|
||||||
app.config.productionTip = false;
|
|
||||||
|
|
||||||
app.use(Antd);
|
app.use(Antd);
|
||||||
```
|
```
|
||||||
|
@ -64,7 +63,6 @@ import { Button, message } from 'ant-design-vue';
|
||||||
import App from './App';
|
import App from './App';
|
||||||
|
|
||||||
const app = createApp(App);
|
const app = createApp(App);
|
||||||
app.config.productionTip = false;
|
|
||||||
|
|
||||||
/* 会自动注册 Button 下的子组件, 例如 Button.Group */
|
/* 会自动注册 Button 下的子组件, 例如 Button.Group */
|
||||||
app.use(Button).mount('#app');
|
app.use(Button).mount('#app');
|
||||||
|
|
|
@ -153,7 +153,7 @@ Remove the `import 'ant-design-vue/dist/antd.css';` statement added before becau
|
||||||
|
|
||||||
Vue.component(Button.name, Button)
|
Vue.component(Button.name, Button)
|
||||||
|
|
||||||
Vue.config.productionTip = false
|
- Vue.config.productionTip = false
|
||||||
|
|
||||||
new Vue({
|
new Vue({
|
||||||
render: h => h(App)
|
render: h => h(App)
|
||||||
|
|
|
@ -67,7 +67,6 @@ import 'ant-design-vue/dist/antd.css';
|
||||||
import App from './App';
|
import App from './App';
|
||||||
|
|
||||||
const app = createApp(App);
|
const app = createApp(App);
|
||||||
app.config.productionTip = false;
|
|
||||||
|
|
||||||
/* 会自动注册 Button 下的子组件, 例如 Button.Group */
|
/* 会自动注册 Button 下的子组件, 例如 Button.Group */
|
||||||
app.use(Button).mount('#app');
|
app.use(Button).mount('#app');
|
||||||
|
@ -153,7 +152,7 @@ $ yarn add babel-plugin-import --dev
|
||||||
|
|
||||||
Vue.component(Button.name, Button)
|
Vue.component(Button.name, Button)
|
||||||
|
|
||||||
Vue.config.productionTip = false
|
- Vue.config.productionTip = false
|
||||||
|
|
||||||
new Vue({
|
new Vue({
|
||||||
render: h => h(App)
|
render: h => h(App)
|
||||||
|
|
Loading…
Reference in New Issue