使VSCode 编写 ttml 语法支持及代码片段
https://github.com/Tinolee615/ttml
- 编辑器Extensions搜索 ttml。
- 点击安装
键入关键词,然后回车。关键词不区分大小写
-
view
<view> </view>
-
swiper
<swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}"> <block tt:for="{{imgUrls}}"> <swiper-item> <image src="{{item}}" class="slide-image" /> </swiper-item> </block> </swiper>
-
ttfor
tt:for="{{items}}"
...