uview-plus 3.4.0 → 3.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/changelog.md
CHANGED
|
@@ -30,16 +30,23 @@
|
|
|
30
30
|
</view>
|
|
31
31
|
</slot>
|
|
32
32
|
</view>
|
|
33
|
-
<view class="u-steps-item__content" :class="[`u-steps-item__content--${parentData.direction}
|
|
34
|
-
:
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
<view class="u-steps-item__content" :class="[`u-steps-item__content--${parentData.direction}`,
|
|
34
|
+
parentData.current == index ? 'u-steps-item__content--current' : '']"
|
|
35
|
+
:style="[contentStyle]">
|
|
36
|
+
<slot name="content" :index="index">
|
|
37
|
+
</slot>
|
|
37
38
|
<template v-if="!$slots['content']">
|
|
38
|
-
<
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
<up-text :text="
|
|
42
|
-
|
|
39
|
+
<view class="u-steps-item__content__title">
|
|
40
|
+
<slot name="title">
|
|
41
|
+
</slot>
|
|
42
|
+
<up-text v-if="!$slots['title']" :text="title" :type="parentData.current == index ? 'main' : 'content'" lineHeight="20px"
|
|
43
|
+
:size="parentData.current == index ? 14 : 13"></up-text>
|
|
44
|
+
</view>
|
|
45
|
+
<view class="u-steps-item__content__desc">
|
|
46
|
+
<slot name="desc">
|
|
47
|
+
</slot>
|
|
48
|
+
<up-text v-if="!$slots['desc']" :text="desc" type="tips" size="12"></up-text>
|
|
49
|
+
</view>
|
|
43
50
|
</template>
|
|
44
51
|
</view>
|
|
45
52
|
<!-- <view
|
package/index.js
CHANGED
|
@@ -119,8 +119,12 @@ const install = (Vue, upuiParams = '') => {
|
|
|
119
119
|
if (upuiParams) {
|
|
120
120
|
uni.upuiParams = upuiParams
|
|
121
121
|
let temp = upuiParams()
|
|
122
|
-
temp.httpIns
|
|
123
|
-
|
|
122
|
+
if (temp.httpIns) {
|
|
123
|
+
temp.httpIns(http)
|
|
124
|
+
}
|
|
125
|
+
if (temp.options) {
|
|
126
|
+
setConfig(temp.options)
|
|
127
|
+
}
|
|
124
128
|
}
|
|
125
129
|
|
|
126
130
|
// 同时挂载到uni和Vue.prototype中
|
package/libs/config/config.js
CHANGED
package/libs/config/props.js
CHANGED
|
@@ -203,8 +203,12 @@ function setConfig(configs) {
|
|
|
203
203
|
if (uni && uni.upuiParams) {
|
|
204
204
|
console.log('setting uview-plus')
|
|
205
205
|
let temp = uni.upuiParams()
|
|
206
|
-
temp.httpIns
|
|
207
|
-
|
|
206
|
+
if (temp.httpIns) {
|
|
207
|
+
temp.httpIns(http)
|
|
208
|
+
}
|
|
209
|
+
if (temp.options) {
|
|
210
|
+
setConfig(temp.options)
|
|
211
|
+
}
|
|
208
212
|
}
|
|
209
213
|
|
|
210
214
|
export default props
|
|
@@ -34,7 +34,7 @@ export default class Request {
|
|
|
34
34
|
* @param {Function(statusCode):Boolean} arg.validateStatus - 全局默认的自定义验证器。默认statusCode >= 200 && statusCode < 300
|
|
35
35
|
*/
|
|
36
36
|
constructor(arg = {}) {
|
|
37
|
-
console.info('初始化luch-request')
|
|
37
|
+
// console.info('初始化luch-request')
|
|
38
38
|
if (!isPlainObject(arg)) {
|
|
39
39
|
arg = {}
|
|
40
40
|
console.warn('设置全局参数必须接收一个Object')
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "uview-plus",
|
|
3
3
|
"name": "uview-plus",
|
|
4
4
|
"displayName": "零云®uview-plus3.0重磅发布,全面的Vue3鸿蒙移动组件库。",
|
|
5
|
-
"version": "3.4.
|
|
5
|
+
"version": "3.4.2",
|
|
6
6
|
"description": "零云®uview-plus已兼容vue3,全面的组件和便捷的工具会让您信手拈来,如鱼得水",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"uview",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"qq": "598821125"
|
|
33
33
|
},
|
|
34
34
|
"declaration": {
|
|
35
|
-
"ads": "
|
|
35
|
+
"ads": "请注意本插件开发文档包含弹窗广告每日展示一次,源码纯净无广告。",
|
|
36
36
|
"data": "无",
|
|
37
37
|
"permissions": "无"
|
|
38
38
|
},
|