mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-31 02:08:43 +08:00 
			
		
		
		
	uni-app引入使用uView
This commit is contained in:
		
							
								
								
									
										69
									
								
								yudao-ui-app/uni_modules/uview-ui/components/u-rate/props.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										69
									
								
								yudao-ui-app/uni_modules/uview-ui/components/u-rate/props.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,69 @@ | ||||
| export default { | ||||
|     props: { | ||||
|         // 用于v-model双向绑定选中的星星数量 | ||||
|         value: { | ||||
|             type: [String, Number], | ||||
|             default: uni.$u.props.rate.value | ||||
|         }, | ||||
|         // 要显示的星星数量 | ||||
|         count: { | ||||
|             type: [String, Number], | ||||
|             default: uni.$u.props.rate.count | ||||
|         }, | ||||
|         // 是否不可选中 | ||||
|         disabled: { | ||||
|             type: Boolean, | ||||
|             default: uni.$u.props.rate.disabled | ||||
|         }, | ||||
|         // 是否只读 | ||||
|         readonly: { | ||||
|             type: Boolean, | ||||
|             default: uni.$u.props.rate.readonly | ||||
|         }, | ||||
|         // 星星的大小,单位px | ||||
|         size: { | ||||
|             type: [String, Number], | ||||
|             default: uni.$u.props.rate.size | ||||
|         }, | ||||
|         // 未选中时的颜色 | ||||
|         inactiveColor: { | ||||
|             type: String, | ||||
|             default: uni.$u.props.rate.inactiveColor | ||||
|         }, | ||||
|         // 选中的颜色 | ||||
|         activeColor: { | ||||
|             type: String, | ||||
|             default: uni.$u.props.rate.activeColor | ||||
|         }, | ||||
|         // 星星之间的间距,单位px | ||||
|         gutter: { | ||||
|             type: [String, Number], | ||||
|             default: uni.$u.props.rate.gutter | ||||
|         }, | ||||
|         // 最少能选择的星星个数 | ||||
|         minCount: { | ||||
|             type: [String, Number], | ||||
|             default: uni.$u.props.rate.minCount | ||||
|         }, | ||||
|         // 是否允许半星 | ||||
|         allowHalf: { | ||||
|             type: Boolean, | ||||
|             default: uni.$u.props.rate.allowHalf | ||||
|         }, | ||||
|         // 选中时的图标(星星) | ||||
|         activeIcon: { | ||||
|             type: String, | ||||
|             default: uni.$u.props.rate.activeIcon | ||||
|         }, | ||||
|         // 未选中时的图标(星星) | ||||
|         inactiveIcon: { | ||||
|             type: String, | ||||
|             default: uni.$u.props.rate.inactiveIcon | ||||
|         }, | ||||
|         // 是否可以通过滑动手势选择评分 | ||||
|         touchable: { | ||||
|             type: Boolean, | ||||
|             default: uni.$u.props.rate.touchable | ||||
|         } | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 sfmind
					sfmind