Skip to content

Commit

Permalink
feat: loading-page增加zIndex属性
Browse files Browse the repository at this point in the history
  • Loading branch information
jry committed Jul 31, 2024
1 parent 3d1aa35 commit d990b99
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
6 changes: 5 additions & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,11 @@
"optimization" : {
"subPackages" : true
},
"appid" : ""
"appid" : "123",
"setting" : {
"minified" : true,
"urlCheck" : false
}
},
"mp-baidu" : {
"usingComponents" : true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ export const props = defineMixin({
loadingColor: {
type: String,
default: () => defProps.loadingPage.loadingColor
}
},
// 层级
zIndex: {
type: [Number],
default: () => defProps.loadingPage.zIndex
},
}
})
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
bottom: 0,
backgroundColor: bgColor,
display: 'flex',
zIndex: zIndex,
...customStyle
}"
>
<view class="u-loading-page">
Expand Down Expand Up @@ -64,6 +66,7 @@ import { addUnit } from '../../libs/function/index';
* @property {String | Number} fontSize 文字大小 (默认 19 )
* @property {String | Number} iconSize 图标大小 (默认 28 )
* @property {String} loadingColor 加载中图标的颜色,只能rgb或者十六进制颜色值 (默认 '#C8C8C8' )
* @property {Number} zIndex z-index层级 (默认10 )
* @property {Object} customStyle 自定义样式
* @example <u-loading mode="circle"></u-loading>
*/
Expand Down
3 changes: 2 additions & 1 deletion src/uni_modules/uview-plus/libs/config/props/loadingPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export default {
color: '#C8C8C8',
fontSize: 19,
iconSize: 28,
loadingColor: '#C8C8C8'
loadingColor: '#C8C8C8',
zIndex: 10
}
}

0 comments on commit d990b99

Please sign in to comment.