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

        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| 亚洲AV无码成人精品区大在线| 九九精品免视看国产成人| 亚洲日韩国产精品第一页一区| 在线成人精品国产区免费| 国产亚洲精品一品区99热| 亚洲欧美日韩国产精品| 日韩精品国产自在欧美| 日本aⅴ精品中文字幕| 国产区精品福利在线观看精品| 精品一区二区三区四区| 久久精品嫩草影院| 欧美精品v欧洲精品| 午夜在线视频91精品| 国产精品户外野外| 久久九九有精品国产23百花影院| 久久99热只有频精品8| 亚洲精品国产精品乱码不卡| 国产乱人伦偷精品视频免观看 | 久久发布国产伦子伦精品| 欧美激情精品久久久久久| 国产精品成人观看视频网站| 999精品在线| 亚洲精品视频免费观看| 久久久久国产精品嫩草影院| 国产精品免费视频观看拍拍| 国产精品露脸国语对白| 日韩精品中文字幕无码一区| 亚洲精品无码成人片久久| 欧美亚洲精品中文字幕乱码免费高清| 97精品伊人久久久大香线蕉| 久久国产欧美日韩精品| 亚洲处破女AV日韩精品| 亚洲精品国产美女久久久| 亚洲中文久久精品无码| 香蕉国产精品麻豆亚洲欧美日韩精品自拍欧美v国| 精品国产日韩亚洲一区| 国产日韩精品无码区免费专区国产| 黑人巨大精品欧美一区二区| 国产精品狼人久久久久影院 |