project init
This commit is contained in:
6
components/icon/icon.wxml
Normal file
6
components/icon/icon.wxml
Normal file
@@ -0,0 +1,6 @@
|
||||
<view class="{{ prefix ? prefix : classPrefix}} {{componentPrefix}}-class" style="{{ iconStyle }}" bind:tap="onTap">
|
||||
<view wx:if="{{ isImage }}" class="{{classPrefix}}--image">
|
||||
<image src="{{ name }}" mode="aspectFit" class="{{classPrefix}}__image" />
|
||||
</view>
|
||||
<label wx:else class="{{ prefix ? prefix : classPrefix }}-{{ name }} {{ classPrefix }}-base"> </label>
|
||||
</view>
|
||||
Reference in New Issue
Block a user