更新记录

1.0.0(2024-11-18) 下载此版本

初始组件


平台兼容性

uni-app(4.28)

Vue2 Vue3 Chrome Safari app-vue app-nvue Android iOS 鸿蒙
-
微信小程序 支付宝小程序 抖音小程序 百度小程序 快手小程序 京东小程序 鸿蒙元服务 QQ小程序 飞书小程序 快应用-华为 快应用-联盟
- - - - -

其他

多语言 暗黑模式 宽屏模式
× ×

wsx-loading 全局设定 Js调用 自定义加载动画 loading页 Gif 全端通用

组件名:wsx-loading 关联组件:loadingwsx

wsx-loading,全局设定,H5,Js调用,自定义加载动画,美观的loading组件,可定制loading组件,支持微信小程序,H5,app等多端组件。

自定义描述:

遮罩颜色:修改 .wsx-loading-mask class 中的 background-color 属性 自定义动画:1.当动画为图片时,修改.wsx-loading-animate 中background 属性图片 animation为旋转属性 2.当动画为Gif时,修改.wsx-loading-animate 中background 属性gif图 注掉animation旋转属性 .wsx-loading-animate 中 width height 修改图片宽高

使用方式:

H5可在项目全局配置 JS调用 非H5component组件使用

script 中引用组件


<script>
export default {
    data() {
        return {
            loading: false
        }
    },
    onLoad() {
        this.open()
    },
    methods: {
        open() {
            // #ifndef H5
            this.loading = true
            // #endif
            // #ifdef H5
            this.$loading.show()
            // #endif
        },
        close() {
            // #ifndef H5
            this.loading = false
            // #endif
            // #ifdef H5
            this.$loading.hide()
            // #endif
        }
    }
}
</script>

main.js 中使用组件

// #ifdef H5
import Loading from '@/uni_modules/wsx-loading/loading.js'
Vue.use(Loading)
// #endif
import wsxLoading from "@/uni_modules/wsx-loading/wsx-loading.vue"
Vue.component('wsx-loading', wsxLoading);

感谢支持

爱人者,人恒爱之;敬人者,人恒敬之;
制作不易, 每一份支持, 都是对我最大的肯定, 让我更有动力创造美好!
如果你在项目中使用该插件并解决了你的问题,请给予厚爱!

隐私、权限声明

1. 本插件需要申请的系统权限列表:

2. 本插件采集的数据、发送的服务器地址、以及数据用途说明:

插件不采集任何数据

3. 本插件是否包含广告,如包含需详细说明广告表达方式、展示频率:

许可协议

MIT协议

使用中有什么不明白的地方,就向插件作者提问吧~ 我要提问