站長資訊網
        最全最豐富的資訊網站

        uni-app怎么引入插件

        uni-app引入插件的方法:1、在uni-app的官網上找到需要的插件;2、點擊右側頂部的【使用HX導入】;3、選擇要導入到的一個項目中即可。

        uni-app怎么引入插件

        本文操作環境:Windows7系統、uni-app2.5.1版,DELL G3電腦

        uni-app怎么引入插件?

        在uni-app中快速導入自己需要的插件 在uni-app的官網上;找到自己需要的插件;  然后點擊右側頂部的【使用HX導入】這一步的前提是你必須要用自己的賬好登錄; 然后選擇你要導入哪一個項目 然后就可以了

        uni-app怎么引入插件

        uni-app怎么引入插件

        插件

        <template> 	<!-- 獲取一個數組,結構為[{date:'時間',info:'內容內容'}] --> 	<!-- @click事件返回點擊標簽元素的索引值 第一項為0 --> 	<!--   	 	 在uni-app中快速導入自己需要的插件 	 在uni-app的官網上;找到自己需要的插件;  	 然后點擊右側頂部的【使用HX導入】這一步的前提是你必須要用自己的賬好登錄; 	 然后選擇你要導入哪一個項目 然后就可以了 	 --> 	<view class="bg"> 		<view class="steps"> 			<view class="steps_item" v-for="(i, index) in infoList"> 				<view class="s_r"> 					<view class="line" :style="{backgroundColor:index != 0?backgroundColor:'rgba(0,0,0,0)'}"></view> 					<view class="index" :style="{backgroundColor:backgroundColor,color:color}"> 						{{ index + 1 }} 					</view> 					<view class="line" :style="{backgroundColor:index != infoList.length-1?backgroundColor:'rgba(0,0,0,0)'}"></view> 				</view> 				<view class="s_l"> 					<view class="info_item" @tap="topage(index)"> 						<text>{{ i.date }}</text> 						<view :style="{WebkitLineClamp:lineNum!=0?lineNum:''}">{{ i.info }}</view> 					</view> 				</view> 			</view> 		</view> 	</view> </template>  <script> 	export default { 		name: 'YSteps', 		props: { 			infoList: { 				type: Array, 				default: [] 			}, 			color: { 				type: String, 				default: '#fff' 			}, 			backgroundColor: { 				type: String, 				default: '#ff3838' 			}, 			lineNum: { 				type: Number, 				default: 0 			} 		}, 		data() { 			return {}; 		}, 		onLoad(e) { 			//獲取列表 		}, 		methods: { 			topage(e) { 				this.$emit('click', e); 			} 		} 	}; </script>  <style lang="scss" scoped> 	page { 		background-color: #f2f2f2; 	}  	.bg { 		margin: 20upx 0; 		background-color: #f2f2f2; 		display: flex; 	}  	.steps { 		display: flex; 		flex-direction: column;  		.steps_item { 			display: flex;  			.s_r { 				padding: 0 20rpx; 				display: flex; 				flex-direction: column; 				align-items: center;  				.line { 					flex: 1; 					width: 5rpx; 					background-color: #fff; 				}  				.index { 					width: 40rpx; 					height: 40rpx; 					font-size: 12px; 					text-align: center; 					line-height: 40rpx; 					border-radius: 50rpx; 				} 			}  			.s_l { 				display: flex; 				flex-direction: column; 				padding: 20rpx 0;  				.info_item { 					background-color: #FFFFFF; 					margin-right: 30upx; 					border-radius: 10upx; 					display: flex; 					flex-direction: column; 					justify-content: center; 					padding: 30upx; 					box-shadow: 0 10rpx 30rpx #ddd; 					width: 580rpx;  					text { 						font-size: 18px; 						font-weight: 500; 						color: rgba(51, 51, 51, 1); 						line-height: 25px; 					}  					view { 						font-size: 14px; 						font-weight: 400; 						color: rgba(102, 102, 102, 1); 						line-height: 20px; 						overflow: hidden; 						text-overflow: ellipsis; 						display: -webkit-box;  						flex-direction: column; 					} 				}  				.info_item:active { 					background-color: #f4f4f4; 				} 			} 		} 	}   	// .steps { 	// 	display: flex; 	// 	flex-direction: column; 	// 	margin: 0 30upx;  	// 	.steps_item { 	// 		display: flex; 	// 		align-items:center ; 	// 		background-color: #fff; 	// 		margin-top: 10rpx; 	// 		.s_r { 	// 			display: flex; 	// 			flex-direction: column; 	// 			align-items: center; 	// 			height: 100%; 	// 			background-color: #f3f; 	// 			flex: 1; 	// 			view { 	// 				height: 100%; 	// 				display: flex; 	// 				flex: 1; 	// 				height: 100%; 	// 				width: 5upx; 	// 			}  	// 			text { 	// 				display: flex; 	// 				flex-direction: column; 	// 				align-items: center; 	// 				width: 40upx; 	// 				line-height: 40upx; 	// 				height: 40upx; 	// 				border-radius: 50%; 	// 				background-color: #ff3838; 	// 				color: #ffffff; 	// 				font-size: 10px; 	// 			} 	// 		} 	// 	} 	// }  	// .info_list { 	// 	display: flex; 	// 	flex-direction: column; 	// 	flex: 1;  	// 	.info_item { 	// 		background-color: #fff; 	// 		height: 200upx; 	// 		margin: 20upx 0; 	// 		margin-right: 30upx; 	// 		border-radius: 10upx; 	// 		display: flex; 	// 		flex-direction: column; 	// 		justify-content: center; 	// 		padding: 0 30upx;  	// 		text { 	// 			font-size: 18px; 	// 			font-family: PingFangSC-Medium, PingFang SC; 	// 			font-weight: 500; 	// 			color: rgba(51, 51, 51, 1); 	// 			line-height: 25px; 	// 		}  	// 		view { 	// 			font-size: 14px; 	// 			font-family: PingFangSC-Regular, PingFang SC; 	// 			font-weight: 400; 	// 			color: rgba(102, 102, 102, 1); 	// 			line-height: 20px; 	// 			overflow: hidden; 	// 			text-overflow: ellipsis; 	// 			display: -webkit-box; 	// 			-webkit-line-clamp: 2; 	// 			flex-direction: column; 	// 		} 	// 	}  	// 	.info_item:active { 	// 		opacity: 0.6; 	// 	} 	// } </style>

        使用【推薦學習:uni-app教程】

        <view style="background-color: #f2f2f2;padding-top: 100rpx;"> 	 <YSteps lineNum='0' color='#fff' backgroundColor='#000fff' :infoList='list'></YSteps> </view>  import YSteps from '../../components/Y-Steps/Y-Steps.vue'  list: [ 					{ 						date: '2020-1-4', 						info: '我一次來到這個這個閱讀網站' 					}, 					{ 						date: '2020-2-4', 						info: '我寫下了自己的第一篇文章' 					}, 					{ 						date: '2020-3-4', 						info: '我的文章超閱讀量過了10W' 					}, 					{ 						date: '2020-4-4', 						info: '我成為寫作達人' 					}, ],   components:{       YSteps }

        贊(0)
        分享到: 更多 (0)
        網站地圖   滬ICP備18035694號-2    滬公網安備31011702889846號
        主站蜘蛛池模板: 精品久久人妻av中文字幕| 国产国产成人精品久久| 国产福利视精品永久免费| 四虎国产精品永久在线看| 亚洲天堂久久精品| 在线观看自拍少妇精品| 国产精品自在欧美一区| 国产精品无码无需播放器| 蜜桃麻豆www久久国产精品 | 久久精品国产精品亚洲人人| 免费精品99久久国产综合精品| 久久精品国产亚洲AV电影| 无码精品人妻一区二区三区影院 | 国产精品丝袜久久久久久不卡| 国产成人精品免费视频大| 久久久无码精品亚洲日韩蜜臀浪潮| 国产精品污WWW一区二区三区| 四虎精品影院永久在线播放| 午夜精品一区二区三区免费视频| 国产亚洲精品a在线观看 | 国产在线精品一区二区三区不卡| 色综合久久精品中文字幕首页| 国产91久久精品一区二区| 国产精品丝袜黑色高跟鞋| 精品久久久久久无码专区| 精品人伦一区二区三区潘金莲| 久久精品亚洲中文字幕无码麻豆 | 精品人妻中文字幕有码在线| 久久久久久亚洲Av无码精品专口| 亚洲色精品aⅴ一区区三区 | 久久亚洲国产精品五月天婷| 久久精品一区二区影院| 久久精品国产黑森林| 欧美成人精品高清在线播放| 欧美国产成人精品一区二区三区 | 亚洲精品你懂的| 最新国产の精品合集| 国产精品1024视频| 国产女人18毛片水真多18精品| 黄床大片免费30分钟国产精品 | 欧美激情精品久久久久久|