Skip to content

Commit 3c9c69f

Browse files
authored
chore: 发布版本 0.9.3
2 parents 5adf1d9 + d2fc2ec commit 3c9c69f

Some content is hidden

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

69 files changed

+1133
-838
lines changed

README.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
<a href="https://www.npmjs.com/package/lin-ui">
2525
<img alt="周下载量" src="https://img.shields.io/npm/dw/lin-ui?color=%233c973c&label=%E5%91%A8%E4%B8%8B%E8%BD%BD%E9%87%8F&logo=node.js&logoColor=white" />
2626
</a>
27+
<a href="https://www.npmjs.com/package/lin-ui">
28+
<img alt="基础库版本" src="https://img.shields.io/badge/%E5%9F%BA%E7%A1%80%E5%BA%93%E7%89%88%E6%9C%AC-%3E%3D2.8.2-brightgreen" />
29+
</a>
2730
</div>
2831

2932
---
@@ -70,6 +73,8 @@ Lin UI 是一套基于 **微信小程序原生语法** 实现的高质量 UI 组
7073

7174
## 快速上手
7275

76+
**务必勾选`增强编译``Es6 转 ES5`以及`使用 npm 模块`选项**[参考图片](https://cdn.talelin.com/20210128165243.png)
77+
7378
### 安装
7479
1. 初始化你的项目为一个 NPM 项目
7580

@@ -86,7 +91,10 @@ Lin UI 是一套基于 **微信小程序原生语法** 实现的高质量 UI 组
8691
```
8792

8893
3. 配置微信开发者工具
89-
要正确安装 Lin UI,需将微信开发者工具的 `使用 npm 模块` 选项勾选上
94+
要正确安装 Lin UI,需将微信开发者工具的如下**三个选项全部勾选上**[参考图片](https://cdn.talelin.com/20210128165243.png)
95+
- `使用 npm 模块`
96+
- `增强编译`
97+
- `ES6 转 ES5`
9098

9199
> 设置路径:微信开发者工具右上角 -> 详情 -> 本地设置
92100
@@ -100,9 +108,12 @@ Lin UI 是一套基于 **微信小程序原生语法** 实现的高质量 UI 组
100108

101109
1. 配置微信开发者工具
102110

103-
要正确使用 Lin UI,需将微信开发者工具的 `Es6 转 ES5``增强编译` 选项勾选上
111+
- 要正确使用 Lin UI,需将微信开发者工具的 `Es6 转 ES5``增强编译` 选项勾选上
112+
113+
> 设置路径:微信开发者工具右上角 -> 详情 -> 本地设置
114+
115+
- **将基础库版本设置到 `>=2.8.2`**
104116

105-
> 设置路径:微信开发者工具右上角 -> 详情 -> 本地设置
106117
2. 在页面中引入
107118
```json
108119
{

build/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ const {
1616
const path = require('path');
1717

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

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

build/release.sh

Lines changed: 0 additions & 63 deletions
This file was deleted.

commitlint.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ module.exports = {
7474
'ImageClipper',
7575
'TabBar',
7676
'DynamicBuild',
77-
'Calendar'
77+
'Calendar',
78+
'Script'
7879
]
7980
]
8081
}

config/styles/_mixins.less

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,10 @@
2727
content: ' ';
2828
background-color: @active-color;
2929
border-color: @active-color;
30+
}
31+
32+
// 解决全屏幕机型底部适配问题
33+
.safe-area-inset-bottom() {
34+
padding-bottom: constant(safe-area-inset-bottom) !important; /* 兼容 iOS < 11.2 */
35+
padding-bottom: env(safe-area-inset-bottom) !important; /* 兼容 iOS >= 11.2 */
3036
}

dist/calendar/calendar.wxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</mounth>
99
</scroll-view>
1010
<view>
11-
<l-button type="default" size="long" bind:lintap="onClickConfirm" bg-color="{{ color }}">{{confirmText}}</l-button>
11+
<l-button type="default" l-class="bottom-button" size="long" bind:lintap="onClickConfirm" bg-color="{{ color }}">{{confirmText}}</l-button>
1212
</view>
1313
</view>
1414
</template>

dist/calendar/dete.js

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

dist/calendar/index.wxss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
.calendar-container{display:flex;height:1000rpx;flex-direction:column;background-color:#fff}.calendar-container .calendar-body-wrap{flex:1;overflow:auto;padding:0 20rpx;width:auto}
1+
.calendar-container{display:flex;height:1000rpx;flex-direction:column;background-color:#fff}.calendar-container .calendar-body-wrap{flex:1;overflow:auto;padding:0 20rpx;width:auto}.bottom-button{padding:0!important;padding-bottom:constant(safe-area-inset-bottom)!important;padding-bottom:env(safe-area-inset-bottom)!important;box-sizing:content-box!important}

dist/capsule-bar/index.js

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

dist/capsule-bar/index.wxml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@
1717
<cover-view wx:if="{{!hiddenCapsule}}" class="capsule-button" style="border-color: rgba({{capsuleColor==='black'?'0,0,0,0.1':'255,255,255,0.25'}});background-color: rgba({{capsuleColor==='black'?'255,255,255,0.6':'0,0,0,0.15'}});width: {{capsuleButtonInfo.width}}px;height: {{capsuleButtonInfo.height}}px;left: {{capsuleButtonInfo.left}}px;top: {{capsuleButtonInfo.top}}px;">
1818

1919
<cover-view mut-bind:tap="onTapLeftButton" catch:longpress="onLongPressLeftButton" hover-class="icon-wrapper-hover-{{capsuleColor}}" class="icon-wrapper" style="width: {{capsuleButtonInfo.width/2}}px;height: {{capsuleButtonInfo.height}}px;">
20-
<cover-image class="icon-left" src="icons/capsule-left-{{capsuleColor}}.png"></cover-image>
20+
<cover-image class="icon-left" style="width:{{capsuleLeftIconWidth?capsuleLeftIconWidth+'rpx':''}};height:{{capsuleLeftIconHeight?capsuleLeftIconHeight+'rpx':''}};" src="{{capsuleLeftIconPath?capsuleLeftIconPath:'icons/capsule-left-'+capsuleColor+'.png'}}"></cover-image>
2121
</cover-view>
2222

2323

2424
<cover-view class="line"></cover-view>
2525

2626

2727
<cover-view mut-bind:tap="onTapRightButton" catch:longpress="onLongPressRightButton" hover-class="icon-wrapper-hover-{{capsuleColor}}" class="icon-wrapper" style="width: {{capsuleButtonInfo.width/2}}px;height: {{capsuleButtonInfo.height}}px;">
28-
<cover-image class="icon-right" src="icons/capsule-right-{{capsuleColor}}.png"></cover-image>
28+
<cover-image class="icon-right" style="width:{{capsuleRightIconWidth?capsuleRightIconWidth+'rpx':''}};height:{{capsuleRightIconHeight?capsuleRightIconHeight+'rpx':''}}" src="{{capsuleRightIconPath?capsuleRightIconPath:'icons/capsule-right-'+capsuleColor+'.png'}}"></cover-image>
2929
</cover-view>
3030
</cover-view>
3131
</cover-view>

0 commit comments

Comments
 (0)