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

        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號
        主站蜘蛛池模板: 国产精品超碰12396| 永久无码精品三区在线4| 国精品无码A区一区二区| 久久精品亚洲日本波多野结衣 | 日韩精品无码一区二区三区| 国产精品久久久久久久午夜片 | 九九热精品在线| 精品一区二区三区在线观看视频| 久久国产乱子伦精品免费午夜| 久久亚洲精品中文字幕三区| xxx国产精品视频| 老汉精品免费AV在线播放| 亚洲?V无码乱码国产精品| 国产在线91精品入口| 杨幂国产精品福利在线观看 | 久99精品视频在线观看婷亚洲片国产一区一级在线 | 国内少妇偷人精品视频免费| 合区精品中文字幕| 久久青青草原精品国产不卡| 国产精品久久久久一区二区三区 | 国产精品丝袜久久久久久不卡| 久久99久久99小草精品免视看| 国产精品久久久亚洲| 精品亚洲国产成AV人片传媒| 无码精品视频一区二区三区| 亚洲性日韩精品一区二区三区| 亚洲欧美国产精品第1页| 日韩亚洲精品福利| 午夜精品久久久久久久无码| 欧美成人精品第一区二区| 精品熟女少妇aⅴ免费久久| 精品国产高清在线拍| 国产精品成人h片在线| 国产精品九九久久免费视频| 国产亚洲精品资在线| 久久www免费人成精品香蕉| 久久国产香蕉一区精品 | 欧美精品888| 999久久久国产精品| 国产精品igao视频| 精品成人av一区二区三区|