站長資訊網(wǎng)
最全最豐富的資訊網(wǎng)站

uni-app怎么引入插件

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

uni-app怎么引入插件

本文操作環(huán)境:Windows7系統(tǒng)、uni-app2.5.1版,DELL G3電腦

uni-app怎么引入插件?

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

uni-app怎么引入插件

uni-app怎么引入插件

插件

<template> 	<!-- 獲取一個數(shù)組,結(jié)構(gòu)為[{date:'時間',info:'內(nèi)容內(nèi)容'}] --> 	<!-- @click事件返回點擊標(biāo)簽元素的索引值 第一項為0 --> 	<!--   	 	 在uni-app中快速導(dǎo)入自己需要的插件 	 在uni-app的官網(wǎng)上;找到自己需要的插件;  	 然后點擊右側(cè)頂部的【使用HX導(dǎo)入】這一步的前提是你必須要用自己的賬好登錄; 	 然后選擇你要導(dǎo)入哪一個項目 然后就可以了 	 --> 	<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>

使用【推薦學(xué)習(xí):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: '我一次來到這個這個閱讀網(wǎng)站' 					}, 					{ 						date: '2020-2-4', 						info: '我寫下了自己的第一篇文章' 					}, 					{ 						date: '2020-3-4', 						info: '我的文章超閱讀量過了10W' 					}, 					{ 						date: '2020-4-4', 						info: '我成為寫作達(dá)人' 					}, ],   components:{       YSteps }

贊(0)
分享到: 更多 (0)
網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號
亚洲日韩VA无码中文字幕| 一本色道久久88—综合亚洲精品| 精品99久久aaa一级毛片| 日韩有码在线视频| 国产真实乱子伦精品视频| 亚洲Av永久无码精品一区二区| 久久久久精品国产亚洲AV无码| 久久99精品久久久久子伦小说| 精品国产_亚洲人成在线高清| 三上悠亚国产精品一区| 国产精品成人小电影在线观看| 日韩免费一区二区三区| 日韩精品无码AV成人观看| 国产亚洲精品美女2020久久| 国产精品高清在线观看93| 午夜精品视频任你躁| 久久久一本精品99久久精品66直播| 亚洲婷婷第一狠人综合精品| 亚洲国产精品综合一区在线| 精品亚洲国产成AV人片传媒| 乱精品一区字幕二区| 久久亚洲美女精品国产精品 | 亚洲精品少妇30p| 99精品免费视品| 国内精品久久久久久麻豆| 久久久久久久久久免免费精品| 国产精品99久久久久久猫咪| 亚洲国产综合精品一区在线播放| 人妻精品久久久久中文字幕| 黄大色黄美女精品大毛片| 午夜肉伦伦影院久久精品免费看国产一区二区三区| 亚洲日韩在线观看免费视频| 亚洲电影日韩精品| 无码中文字幕日韩专区视频| 亚洲av日韩av无码av| 日韩一级视频免费观看| 精品视频在线观看一区二区三区| 无码精品蜜桃一区二区三区WW| 亚洲七七久久精品中文国产| 精品人妻少妇一区二区三区| 97国产精品视频|