# loading **Repository Path**: js07/loading ## Basic Information - **Project Name**: loading - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-07-26 - **Last Updated**: 2024-07-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 覆盖加载状态 ``` npm i @w07/loading ``` ```
``` ``` import {WLoading} from "@w07/loading"; //svgTyp=>['cricle1','cricle2','cricle2','line1','line2','line3','line4','line5'] let wLoading = new WLoading({ domSelector: ".box", zIndex: 100, backgroundColor: "rgba(0,0,0,0.4)", svgTyp="line5", svgSize = 2, svgColor = "#FF6700" }); wLoading.show(); wLoading.hide(); ``` ``` import {WLoading} from "@w07/loading"; //自定义加载图标 let wLoading = new WLoading({ domSelector: ".box", zIndex: 100, backgroundColor: "rgba(0,0,0,0.4)", imgSrc:"./assets/vue.svg",imgClass="box_img",imgStyle="width:60px;" }); wLoading.show(); wLoading.hide(); ``` ```