Skip to content

Commit ae427ee

Browse files
committed
style(wxml): 优化开源许可页面样式
- 调整标题和标签的布局和间距 - 更新标签大小和主题 - 优化列表项的结构和样式 - 升级 unocss 依赖到 65.5.0 版本
1 parent e68405b commit ae427ee

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

source/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"shelljs": "^0.8.5",
1616
"spdx-license-list": "^6.9.0",
1717
"uglify-js": "^3.19.3",
18-
"unocss": "^65.4.3"
18+
"unocss": "^65.5.0"
1919
},
2020
"scripts": {
2121
"unocss": "unocss pages/**/*.wxml !pages/**/node_modules/** !pages/**/miniprogram_npm/** -c uno.config.js --watch -o unocss.wxss",

source/pages/oss-licenses-menu/oss-licenses-menu.wxml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,19 @@ See the Mulan PubL v2 for more details.
2222

2323
<scroll-view class="overflow-y-auto" enhanced scroll-y style="height:{{heightRecycle+'px'}};"
2424
type="list">
25-
<t-cell arrow bind:tap="licenseDistClick" data-index="{{index}}" description="{{item.description}}" hover
25+
<t-cell bind:tap="licenseDistClick" data-index="{{index}}" description="{{item.description}}" hover
2626
wx:for="{{ossLicensesDist}}" wx:key="index">
2727
<view slot="title">
28-
<text class="text-32rpx inline">{{item.name + (item.publisher !== '' ? (' (' + item.publisher + ')') : '')}}</text>
29-
<t-tag class="ml-16rpx inline-block vertical-bottom" size="small" theme="default" variant="light">
28+
<text class="text-32rpx">{{item.name + (item.publisher !== '' ? (' (' + item.publisher + ')') : '')}}</text>
29+
</view>
30+
<view class="inline" slot="description">
31+
<t-tag class="mr-16rpx mt-12rpx inline-block" size="medium" theme="default" variant="light">
3032
{{utils.formatVersion(item.version)}}
3133
</t-tag>
34+
<t-tag class="mt-12rpx inline-block" size="medium" theme="primary" variant="light">
35+
{{item.licenseName}}
36+
</t-tag>
3237
</view>
33-
<t-tag class="mt-12rpx" size="medium" slot="description" theme="primary" variant="light">
34-
{{item.licenseName}}
35-
</t-tag>
3638
</t-cell>
3739
<view class="cell-color" style="height:{{safeBottomPadding+'px'}};"></view>
3840
</scroll-view>

source/pages/oss-licenses/oss-licenses.wxml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ See the Mulan PubL v2 for more details.
1919
<view id="titleTop1">
2020
<t-navbar left-arrow t-class-content="t-navbar-content" t-class-placeholder="t-navbar-placeholder">
2121
<view class="ml-16rpx" slot="left">
22-
<view class=" text-36rpx font-600 inline">{{title}}</view>
23-
<t-tag class="ml-16rpx inline-block vertical-bottom" size="small" theme="default" variant="light">
22+
<view class="mr-16rpx text-36rpx font-600 inline">{{title}}</view>
23+
<t-tag class="inline-block vertical-bottom" size="small" theme="default" variant="light">
2424
{{utils.formatVersion(version)}}
2525
</t-tag>
2626
</view>

0 commit comments

Comments
 (0)