
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
@tuhu/loading
Advanced tools
nrm use lord
npm login
npm install @tuhu/loading --save
// index.wpy
<template>
<loading></loading>
</template>
<script>
import wepy from 'wepy';
import loading from '@tuhu/loading';
export default class Index extends wepy.page {
components = {
loading: loading
};
}
</script>
showLoading(){
var self = this;
this.$invoke('loading','show',{
border:false,
text:'Loading',
spinnerType:'dot',
position:'top'
})
//关闭
setTimeout(function () {
self.$invoke('loading','close');
},2000)
}
组件有6个参数,如下:
border: false,//默认没有边框
text: '',//默认没有文字
spinnerType:'',//spinnerType传'dot'或者'snake',分别是三个点的加载中,和转圈的加载中,默认值为dot
position:''//默认居中,传值'bottom'或者'top'
size: '20rpx',//加载图案大小,默认20rpx
textSize: '20rpx'//字体大小,默认20rpx
FAQs
途虎wepy-loading组件
The npm package @tuhu/loading receives a total of 3 weekly downloads. As such, @tuhu/loading popularity was classified as not popular.
We found that @tuhu/loading demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.