fix: remove alert close warning
							parent
							
								
									3880d6027c
								
							
						
					
					
						commit
						5624f92a33
					
				|  | @ -1 +1 @@ | |||
| Subproject commit be021daafff40a95ec5bdb5a0d2123abd6ec725b | ||||
| Subproject commit 62f1a9dd2be9db1635b8b773c33fd445103fc725 | ||||
|  | @ -53,6 +53,7 @@ export const AlertProps = { | |||
|   prefixCls: PropTypes.string, | ||||
|   banner: PropTypes.bool, | ||||
|   icon: PropTypes.any, | ||||
|   onClose: PropTypes.func, | ||||
| }; | ||||
| 
 | ||||
| const Alert = { | ||||
|  | @ -142,7 +143,7 @@ const Alert = { | |||
| 
 | ||||
|     const transitionProps = getTransitionProps(`${prefixCls}-slide-up`, { | ||||
|       appear: false, | ||||
|       afterLeave: this.animationEnd, | ||||
|       onAfterLeave: this.animationEnd, | ||||
|     }); | ||||
|     return closed ? null : ( | ||||
|       <Transition {...transitionProps}> | ||||
|  |  | |||
|  | @ -2,47 +2,7 @@ import '@babel/polyfill'; | |||
| import 'ant-design-vue/style.js'; | ||||
| import { createApp, version } from 'vue'; | ||||
| import App from './App.vue'; | ||||
| import { | ||||
|   Affix, | ||||
|   Badge, | ||||
|   AutoComplete, | ||||
|   Radio, | ||||
|   Spin, | ||||
|   Select, | ||||
|   Input, | ||||
|   InputNumber, | ||||
|   Rate, | ||||
|   Button, | ||||
|   Upload, | ||||
|   Icon, | ||||
|   Modal, | ||||
|   Progress, | ||||
|   Tooltip, | ||||
|   Col, | ||||
|   Row, | ||||
|   FormModel, | ||||
|   Switch, | ||||
|   Checkbox, | ||||
|   Cascader, | ||||
|   Pagination, | ||||
|   List, | ||||
|   Collapse, | ||||
|   Card, | ||||
|   Avatar, | ||||
|   Tree, | ||||
|   TreeSelect, | ||||
|   Transfer, | ||||
|   Slider, | ||||
|   Carousel, | ||||
|   TimePicker, | ||||
|   Calendar, | ||||
|   DatePicker, | ||||
|   Table, | ||||
|   Tag, | ||||
|   Divider, | ||||
|   notification, | ||||
|   message, | ||||
| } from 'ant-design-vue'; | ||||
| import antd from 'ant-design-vue/index.js'; | ||||
| 
 | ||||
| // eslint-disable-next-line no-console
 | ||||
| console.log('Vue version: ', version); | ||||
|  | @ -50,49 +10,11 @@ const basic = (_, { slots }) => { | |||
|   return slots?.default(); | ||||
| }; | ||||
| const app = createApp(App); | ||||
| app.config.globalProperties.$notification = notification; | ||||
| app.config.globalProperties.$message = message; | ||||
| app | ||||
|   .component('demo-sort', basic) | ||||
|   .component('md', basic) | ||||
|   .component('api', basic) | ||||
|   .component('CN', basic) | ||||
|   .component('US', basic) | ||||
|   .use(Pagination) | ||||
|   .use(Select) | ||||
|   .use(Spin) | ||||
|   .use(Upload) | ||||
|   .use(Button) | ||||
|   .use(Icon) | ||||
|   .use(Modal) | ||||
|   .use(Progress) | ||||
|   .use(Rate) | ||||
|   .use(Input) | ||||
|   .use(Tooltip) | ||||
|   .use(Col) | ||||
|   .use(Row) | ||||
|   .use(Badge) | ||||
|   .use(Radio) | ||||
|   .use(Switch) | ||||
|   .use(Checkbox) | ||||
|   .use(InputNumber) | ||||
|   .use(AutoComplete) | ||||
|   .use(FormModel) | ||||
|   .use(Cascader) | ||||
|   .use(List) | ||||
|   .use(Collapse) | ||||
|   .use(Avatar) | ||||
|   .use(Card) | ||||
|   .use(Tree) | ||||
|   .use(TreeSelect) | ||||
|   .use(Transfer) | ||||
|   .use(Slider) | ||||
|   .use(Carousel) | ||||
|   .use(TimePicker) | ||||
|   .use(Calendar) | ||||
|   .use(DatePicker) | ||||
|   .use(Table) | ||||
|   .use(Tag) | ||||
|   .use(Divider) | ||||
|   .use(Affix) | ||||
|   .use(antd) | ||||
|   .mount('#app'); | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 tangjinzhou
						tangjinzhou