6 changed files with 7 additions and 24 deletions
			
			
		| @ -1,17 +0,0 @@ | |||||
| <template> |  | ||||
|   <a :href="href" style="cursor: pointer; color: blue" v-bind="attrs">{{ label }}</a> |  | ||||
| </template> |  | ||||
| 
 |  | ||||
| <script setup lang="ts"> |  | ||||
| import { defineProps, useAttrs } from 'vue'; |  | ||||
| 
 |  | ||||
| const attrs = useAttrs(); |  | ||||
| 
 |  | ||||
| /** |  | ||||
|  * A标签组件接收属性 |  | ||||
|  */ |  | ||||
| const props = defineProps({ |  | ||||
|   label: { type: String, default: '' }, |  | ||||
|   href: { type: String, default: 'javascript:void 0;' }, |  | ||||
| }); |  | ||||
| </script> |  | ||||
					Loading…
					
					
				
		Reference in new issue