Skip to content

Commit 39be933

Browse files
committed
fix: 更新uni_modules、更新示例组件
1 parent c4dad26 commit 39be933

File tree

41 files changed

+1102
-1980
lines changed

Some content is hidden

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

41 files changed

+1102
-1980
lines changed

manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@
165165
"enable" : true
166166
}
167167
},
168-
"vueVersion" : "2",
168+
"vueVersion" : "3",
169169
"mp-kuaishou" : {
170170
"uniStatistics" : {
171171
"enable" : true

pages/API/navigator/navigator.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@
8383
title:'页面预载成功'
8484
})
8585
},
86-
fail(){
86+
fail(e){
87+
console.error(e);
8788
uni.showToast({
8889
title:'页面预载失败'
8990
})
File renamed without changes.

pages/extUI/tooltip/tooltip.vue

+37-12
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,38 @@
22
<view class="container">
33
<uni-card is-full :is-shadow="false">
44
<text class="uni-h6">常用于展示鼠标 hover 时的提示信息,注意:无法覆盖原生组件</text>
5+
56
</uni-card>
67
<uni-section title="基础用法" type="line" padding>
7-
<uni-tooltip content="提示文字">
8-
<button size="mini">左下</button>
9-
</uni-tooltip>
8+
<view class="content">
9+
<uni-tooltip class="tooltip" content="提示文字" placement="left">
10+
<button size="mini" type="primary" plain>左</button>
11+
</uni-tooltip>
12+
<uni-tooltip class="tooltip" content="提示文字" placement="bottom">
13+
<button size="mini" type="primary" plain>底</button>
14+
</uni-tooltip>
15+
<uni-tooltip class="tooltip" content="提示文字" placement="top">
16+
<button size="mini" type="primary" plain>上</button>
17+
</uni-tooltip>
18+
<uni-tooltip class="tooltip" content="提示文字" placement="right">
19+
<button size="mini" type="primary" plain>右</button>
20+
</uni-tooltip>
21+
</view>
22+
1023
</uni-section>
1124

1225
<uni-section title="弹出层插槽" type="line" padding>
13-
<uni-tooltip>
14-
<button size="mini">多行文字提示</button>
15-
<template v-slot:content>
16-
<view class="uni-stat-tooltip">
17-
一段文字一段文字一段文字一段文字一段文字一段文字一段文字
18-
一段文字一段文字一段文字一段文字一段文字一段文字一段文字
19-
</view>
20-
</template>
21-
</uni-tooltip>
26+
<view class="content">
27+
<uni-tooltip class="tooltip" placement="bottom">
28+
<button size="mini" type="primary" plain>多行文字提示</button>
29+
<template v-slot:content>
30+
<view class="uni-stat-tooltip">
31+
一段文字一段文字一段文字一段文字一段文字一段文字一段文字
32+
一段文字一段文字一段文字一段文字一段文字一段文字一段文字
33+
</view>
34+
</template>
35+
</uni-tooltip>
36+
</view>
2237
</uni-section>
2338
</view>
2439
</template>
@@ -38,4 +53,14 @@
3853
.uni-stat-tooltip {
3954
width: 160px;
4055
}
56+
57+
.tooltip {
58+
margin: 10px;
59+
}
60+
61+
.content {
62+
display: flex;
63+
justify-content: center;
64+
65+
}
4166
</style>

pages/tabBar/extUI/extUI.nvue

+12-10
Original file line numberDiff line numberDiff line change
@@ -223,15 +223,17 @@
223223
},
224224
onLoad() {},
225225
onReady() {
226-
// // #ifdef APP-NVUE
227-
// uni.preloadPage({
228-
// url: "/pages/extUI/calendar/calendar",
229-
// success() {
230-
// console.log("preloadPage /pages/extUI/calendar/calendar")
231-
// },
232-
// fail() {}
233-
// })
234-
// // #endif
226+
// #ifdef APP-NVUE
227+
uni.preloadPage({
228+
url: "/pages/extUI/calendar/calendar",
229+
success() {
230+
console.log("preloadPage/pages/extUI/calendar/calendar")
231+
},
232+
fail(e) {
233+
console.log(e);
234+
}
235+
})
236+
// #endif
235237
},
236238
onShareAppMessage() {
237239
return {
@@ -263,4 +265,4 @@
263265

264266
<style>
265267
@import '../../../common/uni-nvue.css';
266-
</style>
268+
</style>

uni_modules/uni-collapse/changelog.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## 1.4.4(2024-03-20)
2+
- 修复 titleBorder类型修正
13
## 1.4.3(2022-01-25)
24
- 修复 初始化的时候 ,open 属性失效的bug
35
## 1.4.2(2022-01-21)

uni_modules/uni-collapse/components/uni-collapse-item/uni-collapse-item.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
* @property {String} name 唯一标志符
4141
* @property {Boolean} open = [true|false] 是否展开组件
4242
* @property {Boolean} titleBorder = [true|false] 是否显示标题分隔线
43-
* @property {Boolean} border = [true|false] 是否显示分隔线
43+
* @property {String} border = ['auto'|'show'|'none'] 是否显示分隔线
4444
* @property {Boolean} disabled = [true|false] 是否展开面板
4545
* @property {Boolean} showAnimation = [true|false] 开启动画
4646
* @property {Boolean} showArrow = [true|false] 是否显示右侧箭头

uni_modules/uni-collapse/package.json

+4-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "uni-collapse",
33
"displayName": "uni-collapse 折叠面板",
4-
"version": "1.4.3",
4+
"version": "1.4.4",
55
"description": "Collapse 组件,可以折叠 / 展开的内容区域。",
66
"keywords": [
77
"uni-ui",
@@ -16,11 +16,7 @@
1616
"directories": {
1717
"example": "../../temps/example_temps"
1818
},
19-
"dcloudext": {
20-
"category": [
21-
"前端组件",
22-
"通用组件"
23-
],
19+
"dcloudext": {
2420
"sale": {
2521
"regular": {
2622
"price": "0.00"
@@ -37,7 +33,8 @@
3733
"data": "",
3834
"permissions": ""
3935
},
40-
"npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui"
36+
"npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui",
37+
"type": "component-vue"
4138
},
4239
"uni_modules": {
4340
"dependencies": [

uni_modules/uni-data-checkbox/changelog.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## 1.0.5(2024-03-20)
2+
- 修复 单选模式下选中样式不生效的bug
13
## 1.0.4(2024-01-27)
24
- 修复 修复错别字chagne为change
35
## 1.0.3(2022-09-16)

0 commit comments

Comments
 (0)