27 lines
		
	
	
		
			402 B
		
	
	
	
		
			Markdown
		
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			402 B
		
	
	
	
		
			Markdown
		
	
	
| <cn>
 | |
| #### ๅบๅฎ็ถๆๆนๅ็ๅ่ฐ
 | |
| ๅฏไปฅ่ทๅพๆฏๅฆๅบๅฎ็็ถๆใ
 | |
| </cn>
 | |
| 
 | |
| <us>
 | |
| #### Callback
 | |
| Callback with affixed state.
 | |
| </us>
 | |
| 
 | |
| ```tpl
 | |
| <template>
 | |
|   <a-affix :offsetTop="120" @change="change">
 | |
|     <a-button>120px to affix top</a-button>
 | |
|   </a-affix>
 | |
| </template>
 | |
| <script>
 | |
|   export default {
 | |
|     methods: {
 | |
|       change(affixed) {
 | |
|         console.log(affixed);
 | |
|       },
 | |
|     },
 | |
|   };
 | |
| </script>
 | |
| ```
 |