project init
This commit is contained in:
17
components/action-sheet/template/action-sheet-item.wxml
Normal file
17
components/action-sheet/template/action-sheet-item.wxml
Normal file
@@ -0,0 +1,17 @@
|
||||
<wxs src="../action-sheet.wxs" module="this" />
|
||||
<template name="item">
|
||||
<block>
|
||||
<t-image
|
||||
slot="image"
|
||||
wx:if="{{ this.isImage(item.icon) }}"
|
||||
lazy
|
||||
class="{{classPrefix}}__square-image"
|
||||
src="{{item.icon}}"
|
||||
mode="aspectFill"
|
||||
/>
|
||||
<t-icon slot="image" wx:else name="{{item.icon}}" class="{{classPrefix}}__square-image" size="72rpx" />
|
||||
</block>
|
||||
<view slot="text" style="{{ item.color ? 'color: ' + item.color : '' }}" class="{{classPrefix}}__square-text">
|
||||
{{item.label}}
|
||||
</view>
|
||||
</template>
|
||||
Reference in New Issue
Block a user