Skip to content

Commit 7f9ac7a

Browse files
authored
chore: 发布版本 0.9.1
2 parents 7e488e5 + 42b3ede commit 7f9ac7a

File tree

318 files changed

+1859
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

318 files changed

+1859
-2
lines changed

build/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const path = require('path');
1717

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

2222
const distPath = path.resolve(__dirname, '../dist');
2323
const examplePath = path.resolve(__dirname, '../examples/dist');

dist/action-sheet/index.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/action-sheet/index.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"component":true,"usingComponents":{"l-icon":"../icon/index","l-popup":"../popup/index","l-button":"../button/index"} }

dist/action-sheet/index.wxml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<l-popup show="{{show}}" showMask="{{true}}" contentAlign="bottom" locked="{{locked}}" bind:lintap="handleClickPopUp" z-index="{{zIndex}}">
2+
<view class="l-action-sheet">
3+
<view class="l-item-button l-class-title l-title-class" wx:if="{{title}}">
4+
{{ title }}
5+
</view>
6+
<view wx:for="{{ itemList }}" wx:key="name" hover-class="{{isHover?'list-hover':''}}">
7+
<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>
8+
<view style="{{ item.color ? 'color: ' + item.color : '' }}" class="l-item-button l-class-item l-item-class {{item.image || item.icon ? 'l-image-button':''}}">
9+
<image wx:if="{{item.image}}" class="l-button-image" src="{{item.image}}" style="{{item.imageStyle}}"/>
10+
<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>
11+
<text class="l-button-text">{{ item.name }}</text>
12+
</view>
13+
</l-button>
14+
</view>
15+
<view class="l-cancel l-class-cancel l-cancel-class {{isIphoneX ? 'l-cancel-x':''}}" wx:if="{{ showCancel }}" hover-class="{{isHover?'list-hover':''}}">
16+
<l-button type="default" size="large" long="true" bind:lintap="handleClickCancel" special="{{true}}">
17+
<view class="l-item-button l-cancel-button">{{ cancelText }}</view>
18+
</l-button>
19+
</view>
20+
</view>
21+
</l-popup>

dist/action-sheet/index.wxss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
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}

dist/album/index.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/album/index.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"component":true,"usingComponents":{}}

dist/album/index.wxml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<wxs src="index.wxs" module="album"></wxs>
2+
3+
<view style="display:flex">
4+
<view style="{{album.gridStyle(gapRow, gapColumn, multipleSize, everyRowNumber)}}">
5+
<block wx:for="{{showUrls}}" wx:key="index" class="child">
6+
<view class="imageContainer {{album.dimBack(isLong, index, maxNumber, previewFullImage)}}" style="{{album.blockStyle(urls, horizontalScreen, shortSideValue, singleSize, multipleSize)}}">
7+
<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}}"/>
8+
<view wx:if="{{album.image(isLong, index, maxNumber, previewFullImage)}}" class="text">+{{urls.length-maxNumber}}</view>
9+
</view>
10+
</block>
11+
</view>
12+
</view>

dist/album/index.wxs

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
var containerStyle = function (urls, multipleSize, gapRow, gapColumn) {
2+
if (urls.length === 2 || urls.length === 4) {
3+
return 'width:' + (2 * multipleSize + gapRow) + 'rpx; grid-row-gap:' + gapColumn + 'rpx; grid-column-gap:' + gapRow + 'rpx;grid-template-columns:repeat(auto-fit, ' + multipleSize + 'rpx);'
4+
} else {
5+
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);'
6+
}
7+
8+
}
9+
10+
var blockClass = function (urls, horizontalScreen) {
11+
if (urls.length === 1) {
12+
if (horizontalScreen) {
13+
return 'l-single-image-class'
14+
} else {
15+
return 'vertical l-single-image-class'
16+
}
17+
} else {
18+
return 'l-multi-image-class'
19+
}
20+
}
21+
22+
var blockStyle = function (urls, horizontalScreen, shortSideValue, singleSize, multipleSize) {
23+
if (urls.length === 1) {
24+
if (horizontalScreen) {
25+
return 'height:' + shortSideValue + 'rpx;width:' + singleSize + 'rpx;'
26+
} else {
27+
return 'width:' + shortSideValue + 'rpx;height:' + singleSize + 'rpx;'
28+
}
29+
} else {
30+
return 'height:' + multipleSize + 'rpx;width:' + multipleSize + 'rpx;'
31+
}
32+
}
33+
34+
var gridStyle = function (gapRow, gapColumn, multipleSize, everyRowNumber) {
35+
return 'display:inline-grid;grid-template-columns: repeat(' + everyRowNumber + ',' + multipleSize + 'rpx);grid-row-gap:' + gapRow + 'rpx;grid-column-gap:' + gapColumn + 'rpx;'
36+
}
37+
38+
var dimBack = function (isLong, index, maxNumber, previewFullImage) {
39+
if (previewFullImage) {
40+
if (isLong) {
41+
if (index == maxNumber - 1) {
42+
return 'dimback'
43+
}
44+
}
45+
}
46+
return ''
47+
}
48+
49+
var dim = function (isLong, index, maxNumber, previewFullImage) {
50+
if (previewFullImage) {
51+
if (isLong) {
52+
if (index == maxNumber - 1) {
53+
return 'dim'
54+
}
55+
}
56+
}
57+
return ''
58+
}
59+
60+
var image = function (isLong, index, maxNumber, previewFullImage) {
61+
if (previewFullImage) {
62+
if (isLong) {
63+
if (index == maxNumber - 1) {
64+
return true
65+
}
66+
}
67+
}
68+
return false
69+
}
70+
71+
module.exports = {
72+
containerStyle: containerStyle,
73+
blockClass: blockClass,
74+
blockStyle: blockStyle,
75+
gridStyle: gridStyle,
76+
dimBack: dimBack,
77+
dim: dim,
78+
image: image,
79+
}

dist/album/index.wxss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
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}

0 commit comments

Comments
 (0)