fix docs
							parent
							
								
									df29c56d71
								
							
						
					
					
						commit
						24440f2d81
					
				|  | @ -11,7 +11,7 @@ More than one panel can be expanded at a time, the first panel is initialized to | |||
| ```html | ||||
| <template> | ||||
|   <div> | ||||
|     <a-collapse v-model="activeKey" @change="changeActivekey"> | ||||
|     <a-collapse v-model="activeKey"> | ||||
|       <a-collapse-panel header="This is panel header 1" key="1"> | ||||
|         <p>{{text}}</p> | ||||
|       </a-collapse-panel> | ||||
|  | @ -32,10 +32,10 @@ More than one panel can be expanded at a time, the first panel is initialized to | |||
|         activeKey: ['1'] | ||||
|       } | ||||
|     }, | ||||
|     methods: { | ||||
|       changeActivekey (key) { | ||||
|     watch: { | ||||
|       activeKey(key){ | ||||
|         console.log(key) | ||||
|       }, | ||||
|       } | ||||
|     }, | ||||
|   } | ||||
| </script> | ||||
|  |  | |||
|  | @ -4,9 +4,13 @@ | |||
| 
 | ||||
| | Property | Description | Type | Default | | ||||
| | -------- | ----------- | ---- | ------- | | ||||
| | activeKey | Key of the active panel | string\[]\|string | No default value. In `accordion` mode, it's the key of the first panel. | | ||||
| | activeKey(v-model) | Key of the active panel | string\[]\|string | No default value. In `accordion` mode, it's the key of the first panel. | | ||||
| | defaultActiveKey | Key of the initial active panel | string | - | | ||||
| | change | Callback function executed when active panel is changed | Function | - | | ||||
| 
 | ||||
| ### events | ||||
| | Events Name | Description | Arguments | | ||||
| | --- | --- | --- | | ||||
| | change | Callback function executed when active panel is changed  | function(key) | | ||||
| 
 | ||||
| ### Collapse.Panel | ||||
| 
 | ||||
|  |  | |||
|  | @ -4,9 +4,13 @@ | |||
| 
 | ||||
| | 参数 | 说明 | 类型 | 默认值 | | ||||
| | --- | --- | --- | --- | | ||||
| | activeKey | 当前激活 tab 面板的 key | string\[]\|string | 默认无,accordion模式下默认第一个元素 | | ||||
| | activeKey(v-model) | 当前激活 tab 面板的 key | string\[]\|string | 默认无,accordion模式下默认第一个元素 | | ||||
| | defaultActiveKey | 初始化选中面板的 key | string | 无 | | ||||
| | change | 切换面板的回调 | Function | 无 | | ||||
| 
 | ||||
| ### 事件 | ||||
| | 事件名称 | 说明 | 回调参数 | | ||||
| | --- | --- | --- | | ||||
| | change | 切换面板的回调 | function(key) | | ||||
| 
 | ||||
| ### Collapse.Panel | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 tangjinzhou
						tangjinzhou