Skip to content

Commit

Permalink
chore: 发布版本 0.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
juzi214032 authored Dec 21, 2020
2 parents 7e488e5 + 42b3ede commit 7f9ac7a
Show file tree
Hide file tree
Showing 318 changed files with 1,859 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const path = require('path');

const componentData = require('./until');
const result = `{common/*,core/*,behaviors,utils,${componentData()}}`;
const isCustom = (result !== '{common/*,behaviors,utils,}');
const isCustom = (result !== '{common/*,core/*,behaviors,utils,}');

const distPath = path.resolve(__dirname, '../dist');
const examplePath = path.resolve(__dirname, '../examples/dist');
Expand Down
1 change: 1 addition & 0 deletions dist/action-sheet/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/action-sheet/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"component":true,"usingComponents":{"l-icon":"../icon/index","l-popup":"../popup/index","l-button":"../button/index"} }
21 changes: 21 additions & 0 deletions dist/action-sheet/index.wxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<l-popup show="{{show}}" showMask="{{true}}" contentAlign="bottom" locked="{{locked}}" bind:lintap="handleClickPopUp" z-index="{{zIndex}}">
<view class="l-action-sheet">
<view class="l-item-button l-class-title l-title-class" wx:if="{{title}}">
{{ title }}
</view>
<view wx:for="{{ itemList }}" wx:key="name" hover-class="{{isHover?'list-hover':''}}">
<l-button bind:lintap="handleClickItem" data-index="{{ index }}" data-item="{{ item }}" open-type="{{ item.openType }}" icon="{{ item.icon }}" type="default" size="large" special="{{true}}" long>
<view style="{{ item.color ? 'color: ' + item.color : '' }}" class="l-item-button l-class-item l-item-class {{item.image || item.icon ? 'l-image-button':''}}">
<image wx:if="{{item.image}}" class="l-button-image" src="{{item.image}}" style="{{item.imageStyle}}"/>
<l-icon wx:elif="{{ item.icon }}" name="{{ item.icon }}" l-class="l-item-button" size="{{ item.iconSize }}" color="{{item.iconColor?item.iconColor:item.color}}"></l-icon>
<text class="l-button-text">{{ item.name }}</text>
</view>
</l-button>
</view>
<view class="l-cancel l-class-cancel l-cancel-class {{isIphoneX ? 'l-cancel-x':''}}" wx:if="{{ showCancel }}" hover-class="{{isHover?'list-hover':''}}">
<l-button type="default" size="large" long="true" bind:lintap="handleClickCancel" special="{{true}}">
<view class="l-item-button l-cancel-button">{{ cancelText }}</view>
</l-button>
</view>
</view>
</l-popup>
1 change: 1 addition & 0 deletions dist/action-sheet/index.wxss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.l-action-sheet{background:#f7f7f7}.l-item-button{height:88rpx;line-height:88rpx;text-align:center;background:#fff;border-bottom:2rpx solid #f3f3f3;font-size:28rpx;color:#45526b;display:flex;align-items:center;justify-content:center;width:100%;overflow:hidden}.l-cancel{margin-top:12rpx}.l-cancel-x .l-item-button{padding-bottom:44rpx}.l-image-button>.l-button-text{margin-left:20rpx}.list-hover{opacity:.8}
1 change: 1 addition & 0 deletions dist/album/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/album/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"component":true,"usingComponents":{}}
12 changes: 12 additions & 0 deletions dist/album/index.wxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<wxs src="index.wxs" module="album"></wxs>

<view style="display:flex">
<view style="{{album.gridStyle(gapRow, gapColumn, multipleSize, everyRowNumber)}}">
<block wx:for="{{showUrls}}" wx:key="index" class="child">
<view class="imageContainer {{album.dimBack(isLong, index, maxNumber, previewFullImage)}}" style="{{album.blockStyle(urls, horizontalScreen, shortSideValue, singleSize, multipleSize)}}">
<image class="{{album.dim(isLong, index, maxNumber, previewFullImage)}}}" id="{{index}}" bind:tap="onPreviewTap" style="{{album.blockStyle(urls, horizontalScreen, shortSideValue, singleSize, multipleSize)}}" src="{{newType?item[key]:item}}" mode="{{urls.length === 1?singleMode:multipleMode}}"/>
<view wx:if="{{album.image(isLong, index, maxNumber, previewFullImage)}}" class="text">+{{urls.length-maxNumber}}</view>
</view>
</block>
</view>
</view>
79 changes: 79 additions & 0 deletions dist/album/index.wxs
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
var containerStyle = function (urls, multipleSize, gapRow, gapColumn) {
if (urls.length === 2 || urls.length === 4) {
return 'width:' + (2 * multipleSize + gapRow) + 'rpx; grid-row-gap:' + gapColumn + 'rpx; grid-column-gap:' + gapRow + 'rpx;grid-template-columns:repeat(auto-fit, ' + multipleSize + 'rpx);'
} else {
return 'width:' + (3 * multipleSize + 2 * gapRow) + 'rpx; grid-row-gap:' + gapColumn + 'rpx; grid-column-gap:' + gapRow + 'rpx;grid-template-columns:repeat(auto-fit, ' + multipleSize + 'rpx);'
}

}

var blockClass = function (urls, horizontalScreen) {
if (urls.length === 1) {
if (horizontalScreen) {
return 'l-single-image-class'
} else {
return 'vertical l-single-image-class'
}
} else {
return 'l-multi-image-class'
}
}

var blockStyle = function (urls, horizontalScreen, shortSideValue, singleSize, multipleSize) {
if (urls.length === 1) {
if (horizontalScreen) {
return 'height:' + shortSideValue + 'rpx;width:' + singleSize + 'rpx;'
} else {
return 'width:' + shortSideValue + 'rpx;height:' + singleSize + 'rpx;'
}
} else {
return 'height:' + multipleSize + 'rpx;width:' + multipleSize + 'rpx;'
}
}

var gridStyle = function (gapRow, gapColumn, multipleSize, everyRowNumber) {
return 'display:inline-grid;grid-template-columns: repeat(' + everyRowNumber + ',' + multipleSize + 'rpx);grid-row-gap:' + gapRow + 'rpx;grid-column-gap:' + gapColumn + 'rpx;'
}

var dimBack = function (isLong, index, maxNumber, previewFullImage) {
if (previewFullImage) {
if (isLong) {
if (index == maxNumber - 1) {
return 'dimback'
}
}
}
return ''
}

var dim = function (isLong, index, maxNumber, previewFullImage) {
if (previewFullImage) {
if (isLong) {
if (index == maxNumber - 1) {
return 'dim'
}
}
}
return ''
}

var image = function (isLong, index, maxNumber, previewFullImage) {
if (previewFullImage) {
if (isLong) {
if (index == maxNumber - 1) {
return true
}
}
}
return false
}

module.exports = {
containerStyle: containerStyle,
blockClass: blockClass,
blockStyle: blockStyle,
gridStyle: gridStyle,
dimBack: dimBack,
dim: dim,
image: image,
}
1 change: 1 addition & 0 deletions dist/album/index.wxss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.container{display:grid}.vertical{height:360rpx}.parent{display:inline-grid;grid-template-columns:repeat(auto-fill)}.child{box-sizing:border-box;background-color:#fff;flex:0 0 44%;height:100px;border:1px solid red;margin-top:4%;margin-left:2%;margin-right:2%}.dimback{background:#000}.dim{opacity:.6}.imageContainer{position:relative}.imageContainer:last-child>.text{color:#fff;font-weight:700;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:larger}
1 change: 1 addition & 0 deletions dist/arc-popup/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/arc-popup/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"component":true,"usingComponents":{"l-popup":"../popup/index"}}
10 changes: 10 additions & 0 deletions dist/arc-popup/index.wxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<l-popup show="{{show}}" direction="{{direction}}" transition="{{transition}}" opacity="{{opacity}}" locked="{{locked}}" z-index="{{zIndex}}" l-class="l-class" l-bg-class="l-bg-class" bind:lintap="onArcPopupTap">
<scroll-view scroll-y="true" class="arc-popup l-panel-class" style="{{arcStyle}}">
<view class="header-popup {{headerFixed ? 'fixed' : ''}} l-header-class">
<slot name="header"/>
</view>
<view class="content-arc-popup">
<slot/>
</view>
</scroll-view>
</l-popup>
1 change: 1 addition & 0 deletions dist/arc-popup/index.wxss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.container-arc-popup{width:100%}.arc-popup{overflow:hidden;width:100%;background:#fff}.content-arc-popup{padding:30rpx;box-sizing:border-box}.header-popup{width:100%;z-index:999}.header-popup.fixed{position:sticky;top:0;background-color:#fff}
1 change: 1 addition & 0 deletions dist/avatar/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/avatar/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"component":true,"usingComponents":{"l-icon":"../icon/index"} }
12 changes: 12 additions & 0 deletions dist/avatar/index.wxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

<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;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"/>
</view>
<view class="l-avatar-text l-class-text l-text-class" wx:if="{{text||_isHaveUserNickName}}">
<open-data class="open-data" wx:if="{{_isHaveUserNickName}}" type="userNickName"/>
<text class="l-avatar-text-text" wx:elif="{{text}}">{{text}}</text>
</view>
</view>
1 change: 1 addition & 0 deletions dist/avatar/index.wxss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.l-avatar{display:inline-flex;justify-content:center;align-items:center}.l-avatar-image{flex:1;display:inline-flex;justify-content:center;align-items:center;background:#ccc;overflow:hidden}.l-avatar-text{display:inline-block;height:max-content;width:max-content;font-size:28rpx;color:#45526b;line-height:40px}.open-data{width:100%;height:100%}.l-avatar-text .l-avatar-text-text,.l-avatar-text .open-data{font-size:inherit;color:inherit;line-height:inherit}.l-square{border-radius:8rpx}.l-circle{border-radius:50%}.l-placement-left,.l-placement-right{align-items:center;justify-content:center}.l-placement-left{margin-right:24rpx;flex-direction:row-reverse}.l-placement-left .l-avatar-text{margin-right:24rpx}.l-placement-right{flex-direction:row}.l-placement-right .l-avatar-text{margin-left:24rpx}.l-placement-top{flex-direction:column-reverse}.l-placement-top .l-avatar-text{margin-bottom:12rpx}.l-placement-bottom{flex-direction:column}.l-placement-bottom .l-avatar-text{margin-top:12rpx}
1 change: 1 addition & 0 deletions dist/badge/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/badge/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"component":true,"usingComponents":{}}
7 changes: 7 additions & 0 deletions dist/badge/index.wxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<view class="l-badge" mut-bind:tap="handleTap">
<slot/>
<block wx:if="{{show}}">
<view wx:if="{{dot}}" class="l-badge-dot l-class l-class-self l-self-class"></view>
<view wx:else class="{{'l-badge-content-'+shape}} l-badge-content l-class l-class-self l-self-class">{{finalCount}}</view>
</block>
</view>
1 change: 1 addition & 0 deletions dist/badge/index.wxss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.l-badge{position:relative;display:inline-block;line-height:1;vertical-align:middle}.l-badge-content{max-width:650rpx;left:70%;background-color:#ff474b;color:#fff;position:absolute;font-size:20rpx;display:inline-block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;text-align:center;box-sizing:border-box;z-index:10;letter-spacing:.5rpx}.l-badge-content-horn{height:28rpx;min-width:54rpx;padding:0 8rpx;border-radius:14rpx 14rpx 14rpx 0rpx;line-height:28rpx;top:-10rpx}.l-badge-content-circle{height:32rpx;min-width:32rpx;padding:0 10rpx;border-radius:16rpx;line-height:32rpx;top:-10rpx}.l-badge-dot{height:16rpx;width:16rpx;transform:translateX(50%);border-radius:50%;background-color:#ff474b;position:absolute;top:-4rpx;right:0rpx}
1 change: 1 addition & 0 deletions dist/button/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/button/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"component":true,"usingComponents":{"l-icon":"../icon/index"}}
Loading

0 comments on commit 7f9ac7a

Please sign in to comment.