28 lines
		
	
	
		
			583 B
		
	
	
	
		
			JavaScript
		
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			583 B
		
	
	
	
		
			JavaScript
		
	
	
	
| import { VantComponent } from '../common/component';
 | |
| VantComponent({
 | |
|     props: {
 | |
|         dot: Boolean,
 | |
|         info: null,
 | |
|         size: null,
 | |
|         color: String,
 | |
|         customStyle: String,
 | |
|         classPrefix: {
 | |
|             type: String,
 | |
|             value: 'van-icon'
 | |
|         },
 | |
|         name: {
 | |
|             type: String,
 | |
|             observer(val) {
 | |
|                 this.setData({
 | |
|                     isImageName: val.indexOf('/') !== -1
 | |
|                 });
 | |
|             }
 | |
|         }
 | |
|     },
 | |
|     methods: {
 | |
|         onClick() {
 | |
|             this.$emit('click');
 | |
|         }
 | |
|     }
 | |
| });
 |