This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
handingkang-ohmyweb/static/use-fullscreen-loading-29628eb7.js
2023-01-09 08:41:10 +00:00

2 lines
1.2 KiB
JavaScript

import{a,b as s}from"./mock-5ab86b79.js";import{E as t}from"./index-5f3aab4a.js";import{bs as e}from"./index-1c00c85b.js";import{a4 as n,W as r,a2 as o,b1 as c,aG as i,ay as l,a1 as m}from"./runtime-core.esm-bundler-9099a418.js";const u={lock:!0,text:"加载中...",background:"rgba(0, 0, 0, 0.7)"},d=(a,s={})=>{let e;const n=()=>{e&&e.close()},r={...u,...s};return(...s)=>{try{o=r,e=t.service(o);const c=a(...s);return c instanceof Promise?c.then((a=>(n(),a))).catch((a=>{throw n(),a})):(n(),Promise.resolve(c))}catch(c){throw n(),c}var o}},p={class:"app-container"},b=n({__name:"use-fullscreen-loading",setup(t){const n=async()=>{const a=await d(s)();e.success(a.map((a=>a.name)).join())},u=async()=>{try{await d(a,{text:"自定义加载文字",background:"rgba(255, 214, 210, 0.7)",svg:'\n <path class="path" d="\n M 30 15\n L 28 17\n M 25.61 25.61\n A 15 15, 0, 0, 1, 15 30\n A 15 15, 0, 1, 1, 27.99 7.5\n L 15 15\n " style="stroke-width: 4px; fill: rgba(0, 0, 0, 0)"/>\n',svgViewBox:"-10, -10, 50, 50"})(233)}catch(s){e.error(s.message)}};return(a,s)=>{const t=i("el-button");return l(),r("div",p,[o(t,{onClick:n},{default:c((()=>[m("查询成功")])),_:1}),o(t,{onClick:u},{default:c((()=>[m("查询失败")])),_:1})])}}});export{b as default};