
Security News
Rolldown Pulls Rust React Compiler Integration After Binary Size Increase
Rolldown paused Rust React Compiler integration after a 5MB binary size increase raised concerns about shipping React-specific code to all Vite users.
@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
Rolldown paused Rust React Compiler integration after a 5MB binary size increase raised concerns about shipping React-specific code to all Vite users.

Security News
/Research
Mini Shai-Hulud expands into the Go ecosystem after hitting LeoPlatform npm packages and targeting GitHub Actions workflows.

Security News
The Fable shutdown shows how quickly model access can become a business continuity risk for AI-dependent engineering teams.