Skip to content

Commit

Permalink
chore: 发布版本 0.8.9
Browse files Browse the repository at this point in the history
  • Loading branch information
juzi214032 authored Sep 16, 2020
2 parents 4317a61 + 8d2c8a5 commit 5aea163
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 14 deletions.
2 changes: 1 addition & 1 deletion dist/avatar/index.wxml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

<view class="l-avatar {{text||_isHaveUserNickName?'l-placement-'+placement:''}}" mut-bind:tap="tapAvatar">
<view class="l-avatar-image {{shape?'l-'+shape:''}} l-class" wx:if="{{_isHaveUserAvatarUrl||icon||src}}" style="width:{{size}}rpx;height:{{size}}rpx">
<view class="l-avatar-image {{shape?'l-'+shape:''}} l-class" wx:if="{{_isHaveUserAvatarUrl||icon||src}}" style="width:{{size}}rpx;height:{{size}}rpx;min-width:{{size}}rpx;min-height:{{size}}rpx;">
<open-data class="open-data" wx:if="{{_isHaveUserAvatarUrl}}" type="userAvatarUrl"/>
<l-icon wx:elif="{{icon}}" size="{{iconSize || size*0.6}}" color="{{iconColor||'#ffffff'}}" name="{{icon}}"/>
<image wx:elif="{{src}}" src="{{src}}" mode="{{mode}}" style="width:{{size}}rpx;height:{{size}}rpx"/>
Expand Down
2 changes: 1 addition & 1 deletion dist/grid-item/index.wxss
Original file line number Diff line number Diff line change
@@ -1 +1 @@
.grid-item{display:flex;justify-content:center;align-items:center;flex-direction:column}.l-gird-item-hover{opacity:.8}
.grid-item{display:flex;justify-content:center;align-items:center;flex-direction:column;padding:32rpx 16rpx;box-sizing:border-box}.l-gird-item-hover{opacity:.8}
4 changes: 2 additions & 2 deletions dist/grid/index.wxml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<view class="l-grid l-class" mut-bind:tap="tapGrid">
<view mut-bind:tap="tapGridItem" data-grid-index="{{item.index}}" class="l-grid-item l-class-grid l-grid-class {{index%rowNum !== rowNum-1 &&(showBorder||showColBorder) ? 'side-grid':''}} {{(index<gridItems.length-(gridItems.length%rowNum||rowNum)) &&(showBorder||showRowBorder)? 'center-grid':''}}" wx:for="{{gridItems}}" wx:key="key" style="min-width:{{100/rowNum}}%;">
<view class="l-grid l-class" bind:tap="tapGrid">
<view bind:tap="tapGridItem" data-grid-index="{{item.index}}" class="l-grid-item l-class-grid l-grid-class {{index%rowNum !== rowNum-1 &&(showBorder||showColBorder) ? 'side-grid':''}} {{(index<gridItems.length-(gridItems.length%rowNum||rowNum)) &&(showBorder||showRowBorder)? 'center-grid':''}}" wx:for="{{gridItems}}" wx:key="key" style="min-width:{{100/rowNum}}%;">
<slot name="{{item.key}}"></slot>
</view>
</view>
2 changes: 1 addition & 1 deletion dist/grid/index.wxss
Original file line number Diff line number Diff line change
@@ -1 +1 @@
.l-grid{display:flex;width:inherit;flex-wrap:wrap}.l-grid .l-grid-item{display:flex;flex-direction:column;text-align:center;box-sizing:border-box;border-style:solid;border-color:#ededed;border-width:0}.l-grid .center-grid{border-bottom-width:2rpx}.l-grid .side-grid{border-right-width:2rpx}
.l-grid{display:flex;width:inherit;flex-wrap:wrap}.l-grid .l-grid-item{display:flex;justify-content:center;flex-direction:column;text-align:center;box-sizing:border-box;border-style:solid;border-color:#ededed;border-width:0}.l-grid .center-grid{border-bottom-width:2rpx}.l-grid .side-grid{border-right-width:2rpx}
2 changes: 1 addition & 1 deletion examples/dist/avatar/index.wxml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

<view class="l-avatar {{text||_isHaveUserNickName?'l-placement-'+placement:''}}" mut-bind:tap="tapAvatar">
<view class="l-avatar-image {{shape?'l-'+shape:''}} l-class" wx:if="{{_isHaveUserAvatarUrl||icon||src}}" style="width:{{size}}rpx;height:{{size}}rpx">
<view class="l-avatar-image {{shape?'l-'+shape:''}} l-class" wx:if="{{_isHaveUserAvatarUrl||icon||src}}" style="width:{{size}}rpx;height:{{size}}rpx;min-width:{{size}}rpx;min-height:{{size}}rpx;">
<open-data class="open-data" wx:if="{{_isHaveUserAvatarUrl}}" type="userAvatarUrl" />
<l-icon wx:elif="{{icon}}" size="{{iconSize || size*0.6}}" color="{{iconColor||'#ffffff'}}" name="{{icon}}" />
<image wx:elif="{{src}}" src="{{src}}" mode="{{mode}}" style="width:{{size}}rpx;height:{{size}}rpx" />
Expand Down
2 changes: 1 addition & 1 deletion examples/dist/grid-item/index.wxss
Original file line number Diff line number Diff line change
@@ -1 +1 @@
.grid-item{display:flex;justify-content:center;align-items:center;flex-direction:column}.l-gird-item-hover{opacity:.8}
.grid-item{display:flex;justify-content:center;align-items:center;flex-direction:column;padding:32rpx 16rpx;box-sizing:border-box}.l-gird-item-hover{opacity:.8}
4 changes: 2 additions & 2 deletions examples/dist/grid/index.wxml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<view class="l-grid l-class" mut-bind:tap="tapGrid">
<view class="l-grid l-class" bind:tap="tapGrid">
<view
mut-bind:tap="tapGridItem"
bind:tap="tapGridItem"
data-grid-index="{{item.index}}"
class="l-grid-item l-class-grid l-grid-class {{index%rowNum !== rowNum-1 &&(showBorder||showColBorder) ? 'side-grid':''}} {{(index<gridItems.length-(gridItems.length%rowNum||rowNum)) &&(showBorder||showRowBorder)? 'center-grid':''}}" wx:for="{{gridItems}}" wx:key="key"
style="min-width:{{100/rowNum}}%;"
Expand Down
2 changes: 1 addition & 1 deletion examples/dist/grid/index.wxss
Original file line number Diff line number Diff line change
@@ -1 +1 @@
.l-grid{display:flex;width:inherit;flex-wrap:wrap}.l-grid .l-grid-item{display:flex;flex-direction:column;text-align:center;box-sizing:border-box;border-style:solid;border-color:#ededed;border-width:0}.l-grid .center-grid{border-bottom-width:2rpx}.l-grid .side-grid{border-right-width:2rpx}
.l-grid{display:flex;width:inherit;flex-wrap:wrap}.l-grid .l-grid-item{display:flex;justify-content:center;flex-direction:column;text-align:center;box-sizing:border-box;border-style:solid;border-color:#ededed;border-width:0}.l-grid .center-grid{border-bottom-width:2rpx}.l-grid .side-grid{border-right-width:2rpx}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lin-ui",
"version": "0.8.8",
"version": "0.8.9",
"description": "A high quality UI components library with MiniProgram",
"main": "app.js",
"directories": {
Expand Down
2 changes: 1 addition & 1 deletion src/avatar/index.wxml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

<view class="l-avatar {{text||_isHaveUserNickName?'l-placement-'+placement:''}}" mut-bind:tap="tapAvatar">
<view class="l-avatar-image {{shape?'l-'+shape:''}} l-class" wx:if="{{_isHaveUserAvatarUrl||icon||src}}" style="width:{{size}}rpx;height:{{size}}rpx">
<view class="l-avatar-image {{shape?'l-'+shape:''}} l-class" wx:if="{{_isHaveUserAvatarUrl||icon||src}}" style="width:{{size}}rpx;height:{{size}}rpx;min-width:{{size}}rpx;min-height:{{size}}rpx;">
<open-data class="open-data" wx:if="{{_isHaveUserAvatarUrl}}" type="userAvatarUrl" />
<l-icon wx:elif="{{icon}}" size="{{iconSize || size*0.6}}" color="{{iconColor||'#ffffff'}}" name="{{icon}}" />
<image wx:elif="{{src}}" src="{{src}}" mode="{{mode}}" style="width:{{size}}rpx;height:{{size}}rpx" />
Expand Down
2 changes: 2 additions & 0 deletions src/grid-item/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
justify-content: center;
align-items: center;
flex-direction: column;
padding: 32rpx 16rpx;
box-sizing: border-box;
}

.l-gird-item-hover {
Expand Down
1 change: 1 addition & 0 deletions src/grid/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

.l-grid-item {
display: flex;
justify-content: center;
flex-direction: column;
text-align: center;
box-sizing: border-box;
Expand Down
4 changes: 2 additions & 2 deletions src/grid/index.wxml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<view class="l-grid l-class" mut-bind:tap="tapGrid">
<view class="l-grid l-class" bind:tap="tapGrid">
<view
mut-bind:tap="tapGridItem"
bind:tap="tapGridItem"
data-grid-index="{{item.index}}"
class="l-grid-item l-class-grid l-grid-class {{index%rowNum !== rowNum-1 &&(showBorder||showColBorder) ? 'side-grid':''}} {{(index<gridItems.length-(gridItems.length%rowNum||rowNum)) &&(showBorder||showRowBorder)? 'center-grid':''}}" wx:for="{{gridItems}}" wx:key="key"
style="min-width:{{100/rowNum}}%;"
Expand Down

0 comments on commit 5aea163

Please sign in to comment.