一.swiper組件介紹說明
語法結(jié)構(gòu):?
<swiper>
<swiper-item?>
?<image?src="?">? ? </image>
</swiper-item>
</swiper>
組件介紹:
swiper可以理解為小程序內(nèi)置的輪播圖標簽 使用了他可以更方便使用輪播圖功能
屬性介紹:
? ? 屬性名? ? ? ? ? ? ? ? ? ? ?類型? ? ? ? ? ? ?說明
indicator-dots? ? ? ? ?Boolean? ? ? ? 是否顯示面板指示點
autoplay? ? ? ? ? ? ? ? ? Boolean? ? ? ? 是否自動切換
circular? ? ? ? ? ? ? ? ? ??Boolean? ? ? ? 是否在切換最后一張圖片后連接性輪播
二.navigator組件結(jié)構(gòu) 組件介紹 屬性介紹
語法結(jié)構(gòu):
<navigator?url="路徑">
</navigator>
組件介紹:
-
navigator 是小程序開中的導航標簽 類似于web中的a標簽
-
通過 url 來指定跳轉(zhuǎn)頁面
-
可以跳轉(zhuǎn)到其他小程序
屬性結(jié)構(gòu):??short-link="小程序鏈接"
屬性:?short-link
值:? ? 小程序鏈接 或 小程序appid
屬性介紹:
屬性名 |
類型 |
說明 |
url |
String |
當前小程序內(nèi)跳轉(zhuǎn)鏈接 |
open-type |
String |
跳轉(zhuǎn)方式 |
target |
String |
在那個目標上發(fā)生跳轉(zhuǎn) 默認當前小程序 |
屬性值:?
(1)? target
self? ? ? ? ? ? ? ? ?當前小程序
miniProgram? ?其他小程序
(2)?open-type
switchTab? 跳轉(zhuǎn)到app.json tabBar下的頁面
?文章來源地址http://www.zghlxwxcb.cn/news/detail-501637.html
文章來源:http://www.zghlxwxcb.cn/news/detail-501637.html
到了這里,關于小程序02/小程序 swiper組件 屬性介紹說明、navigator組件結(jié)構(gòu) 組件介紹 屬性介紹的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網(wǎng)!