File tree Expand file tree Collapse file tree 3 files changed +23
-2
lines changed
Expand file tree Collapse file tree 3 files changed +23
-2
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
1212See the Mulan PubL v2 for more details.
1313-->
1414
15+ <wxs module="utils" src="../../utils/util.wxs"></wxs>
16+
1517<view id="titleTop1">
1618 <t-navbar left-arrow t-class-content="t-navbar-content" t-class-placeholder="t-navbar-placeholder">
1719 <view class="ml-16rpx text-36rpx font-600" slot="left">开放源代码许可</view>
@@ -25,7 +27,7 @@ See the Mulan PubL v2 for more details.
2527 <view slot="title">
2628 <text class="text-32rpx inline">{{item.name + (item.publisher !== '' ? (' (' + item.publisher + ')') : '')}}</text>
2729 <t-tag class="ml-16rpx inline-block vertical-bottom" size="small" theme="default" variant="light">
28- {{'v' + item.version}}
30+ {{utils.formatVersion( item.version) }}
2931 </t-tag>
3032 </view>
3133 <t-tag class="mt-12rpx" size="medium" slot="description" theme="primary" variant="light">
Original file line number Diff line number Diff line change @@ -12,14 +12,16 @@ MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
1212See the Mulan PubL v2 for more details.
1313-->
1414
15+ <wxs module="utils" src="../../utils/util.wxs"></wxs>
16+
1517<t-message id="t-message"/>
1618
1719<view id="titleTop1">
1820 <t-navbar left-arrow t-class-content="t-navbar-content" t-class-placeholder="t-navbar-placeholder">
1921 <view class="ml-16rpx" slot="left">
2022 <view class=" text-36rpx font-600 inline">{{title}}</view>
2123 <t-tag class="ml-16rpx inline-block vertical-bottom" size="small" theme="default" variant="light">
22- {{'v' + version}}
24+ {{utils.formatVersion( version) }}
2325 </t-tag>
2426 </view>
2527 </t-navbar>
Original file line number Diff line number Diff line change 1+ /*
2+ Copyright (c) 2024 ArcticFoxPro
3+ Qverbow Vigor is licensed under Mulan PubL v2.
4+ You can use this software according to the terms and conditions of the Mulan PubL v2.
5+ You may obtain a copy of Mulan PubL v2 at:
6+ http://license.coscl.org.cn/MulanPubL-2.0
7+ THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
8+ EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
9+ MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
10+ See the Mulan PubL v2 for more details.
11+ */
12+
13+ module.exports = {
14+ formatVersion: function(version) {
15+ return '1234567890'.indexOf(version[0]) !== -1 ? 'v' + version : version;
16+ }
17+ };
You can’t perform that action at this time.
0 commit comments