mirror of
				https://github.com/vuejs/babel-plugin-jsx.git
				synced 2025-10-31 09:22:19 +08:00 
			
		
		
		
	docs: update slot's description (#116)
* docs: update slot's description
This commit is contained in:
		| @@ -186,7 +186,24 @@ const App = { | ||||
|  | ||||
| ### 插槽  | ||||
|  | ||||
| > 注意: 在 `jsx` 中,应该使用 **`v-slots`** 代替 *`v-slot`* | ||||
|  | ||||
| ```jsx | ||||
| const App = { | ||||
|   setup() { | ||||
|     const slots = { | ||||
|       foo: () => <span>B</span> | ||||
|     }; | ||||
|     return () => ( | ||||
|       <A v-slots={slots}> | ||||
|         <div>A</div> | ||||
|       </A> | ||||
|     ); | ||||
|   } | ||||
| }; | ||||
|  | ||||
| // or | ||||
|  | ||||
| const App = { | ||||
|   setup() { | ||||
|     const slots = { | ||||
|   | ||||
| @@ -186,7 +186,24 @@ const App = { | ||||
|  | ||||
| ### Slot  | ||||
|  | ||||
| > Note: In `jsx`, *`v-slot`* should be replace with **`v-slots`** | ||||
|  | ||||
| ```jsx | ||||
| const App = { | ||||
|   setup() { | ||||
|     const slots = { | ||||
|       foo: () => <span>B</span> | ||||
|     }; | ||||
|     return () => ( | ||||
|       <A v-slots={slots}> | ||||
|         <div>A</div> | ||||
|       </A> | ||||
|     ); | ||||
|   } | ||||
| }; | ||||
|  | ||||
| // or | ||||
|  | ||||
| const App = { | ||||
|   setup() { | ||||
|     const slots = { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user