mirror of
https://github.com/silenty4ng/k5web
synced 2025-01-15 16:22:44 +00:00
33 lines
11 KiB
JavaScript
33 lines
11 KiB
JavaScript
import{G as y,M as P,c as M,w as R,h as q,Y as X,_ as W}from"./index.3a834e58.js";/* empty css *//* empty css */import{d as g,c as m,o as Y,b as Q,f as Z,t as ee,p as te,r as z,aI as p,aU as I,i as ne,bD as re,C as w,D as C,aH as b,aK as ae,aJ as oe,aE as ce,G as se,u as x,bE as ie,bJ as ue}from"./arco.b289f6bb.js";import{f as le}from"./vue.e0867ae8.js";import{u as T,r as L,_ as V}from"./dep-281dbb92.fa8dfc7c.js";import{B as pe}from"./index.1865e741.js";import{_ as f,u as G}from"./useConfig.1a69b527.js";import{i as j,h as fe}from"./index.a4c8797a.js";import{d as O,i as S}from"./index.9e72de03.js";import{C as de}from"./index.417ea4e6.js";import"./chart.7501771f.js";import"./useDisabled.e7ff81a3.js";function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),n.push.apply(n,r)}return n}function E(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?N(Object(n),!0).forEach(function(r){V(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var be={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M17.66 7.17l-5.3 5.3-1.42-1.41 5.3-5.3 1.42 1.41zm5.65 0l-10.6 10.6-6.37-6.36L7.76 10l4.95 4.95 9.19-9.2 1.41 1.42zM2.11 10l4.94 4.95.35-.35L8.82 16l-1.77 1.77L.69 11.4 2.1 10z"}}]},me=g({name:"CheckDoubleIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=m(()=>e.size),{className:c,style:s}=T(r),o=m(()=>["t-icon","t-icon-check-double",c.value]),a=m(()=>E(E({},s.value),n.style)),u=m(()=>({class:o.value,style:a.value,onClick:l=>{var i;return(i=e.onClick)===null||i===void 0?void 0:i.call(e,{e:l})}}));return()=>L(be,u.value)}});const ve=me;function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?D(Object(n),!0).forEach(function(r){V(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var ye={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M10.88 1.38l1.28.22a4 4 0 013.34 3.94V8h5.32a2 2 0 011.97 2.33l-1.66 10A2 2 0 0119.15 22H7V10.8l3.88-9.42zm1.23 2.26L9 11.2V20h10.15l1.67-10H13.5V5.54a2 2 0 00-1.39-1.9zM4 10v12H2V10h2z"}}]},Oe=g({name:"ThumbUpIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:n}=t,r=m(()=>e.size),{className:c,style:s}=T(r),o=m(()=>["t-icon","t-icon-thumb-up",c.value]),a=m(()=>k(k({},s.value),n.style)),u=m(()=>({class:o.value,style:a.value,onClick:l=>{var i;return(i=e.onClick)===null||i===void 0?void 0:i.call(e,{e:l})}}));return()=>L(ye,u.value)}});const ge=Oe;/**
|
|
* tdesign v1.9.4
|
|
* (c) 2024 tdesign
|
|
* @license MIT
|
|
*/var _e={align:{type:String,default:"top",validator:function(t){return t?["start","end","center","stretch","baseline","top","middle","bottom"].includes(t):!0}},gutter:{type:[Number,Object,Array],default:0},justify:{type:String,default:"start",validator:function(t){return t?["start","end","center","space-around","space-between"].includes(t):!0}},tag:{type:String,default:"div"}};/**
|
|
* tdesign v1.9.4
|
|
* (c) 2024 tdesign
|
|
* @license MIT
|
|
*/var $=function(t){var n="xs";return t<768?n="xs":t>=768&&t<992?n="sm":t>=992&&t<1200?n="md":t>=1200&&t<1400?n="lg":t>=1400&&t<1880?n="xl":n="xxl",n};/**
|
|
* tdesign v1.9.4
|
|
* (c) 2024 tdesign
|
|
* @license MIT
|
|
*/function je(e,t){Y(function(){window.addEventListener(e,t)}),Q(function(){window.removeEventListener(e,t)})}/**
|
|
* tdesign v1.9.4
|
|
* (c) 2024 tdesign
|
|
* @license MIT
|
|
*/function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?A(Object(n),!0).forEach(function(r){f(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function K(){var e=Z($(S?0:window.innerWidth)),t=function(){e.value=$(S?0:window.innerWidth)};return je("resize",t),e}function we(e,t){var n=t.justify,r=t.align;return[e,f(f({},"".concat(e,"--").concat(n),n),"".concat(e,"--align-").concat(r),r)]}function he(e,t){var n={},r=function(a){return Object.assign(n,{marginLeft:"".concat(a/-2,"px"),marginRight:"".concat(a/-2,"px")})},c=function(a){return Object.assign(n,{rowGap:"".concat(a,"px")})},s={isNumber:function(a){O(a)&&r(a)},isArray:function(a){P(a)&&a.length&&(s.isNumber(a[0]),O(a[1])&&c(a[1]),y(a[0])&&!j(a[0][t])&&r(a[0][t]),y(a[1])&&!j(a[1][t])&&c(a[1][t]))},isObject:function(a){y(a)&&a[t]&&(P(a)&&a.length?(r(a[t][0]),c(a[t][1])):r(a[t]))}};return Object.keys(s).forEach(function(o){s[o](e)}),n}function Pe(e){return O(e)?"".concat(e," ").concat(e," 0"):/^\d+(\.\d+)?(px|r?em|%)$/.test(e)?"0 0 ".concat(e):e}function Ce(e,t){var n={},r=function(o){return Object.assign(n,{paddingLeft:"".concat(o/2,"px"),paddingRight:"".concat(o/2,"px")})},c={isNumber:function(o){O(o)&&r(o)},isArray:function(o){P(o)&&o.length&&(O(o[0])&&r(o[0]),y(o[0])&&o[0][t]&&r(o[0][t]))},isObject:function(o){y(o)&&o[t]&&r(o[t])}};return Object.keys(c).forEach(function(s){c[s](e)}),n}function xe(e,t){var n=t.span,r=t.order,c=t.offset,s=t.push,o=t.pull,a=["xs","sm","md","lg","xl","xxl"],u=a.reduce(function(l,i){var v=t[i],d={};return O(v)?d.span=v:y(v)&&(d=v||{}),h(h({},l),{},f(f(f(f(f({},"".concat(e,"-").concat(i,"-").concat(d.span),!j(d.span)),"".concat(e,"-").concat(i,"-order-").concat(d.order),parseInt(d.order,10)>=0),"".concat(e,"-").concat(i,"-offset-").concat(d.offset),parseInt(d.offset,10)>=0),"".concat(e,"-").concat(i,"-push-").concat(d.push),parseInt(d.push,10)>=0),"".concat(e,"-").concat(i,"-pull-").concat(d.pull),parseInt(d.pull,10)>=0))},{});return h(f(f(f(f(f(f({},"".concat(e),!0),"".concat(e,"-").concat(n),!j(n)),"".concat(e,"-order-").concat(r),r),"".concat(e,"-offset-").concat(c),c),"".concat(e,"-push-").concat(s),s),"".concat(e,"-pull-").concat(o),o),u)}/**
|
|
* tdesign v1.9.4
|
|
* (c) 2024 tdesign
|
|
* @license MIT
|
|
*/function F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),n.push.apply(n,r)}return n}function Se(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?F(Object(n),!0).forEach(function(r){f(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ne(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!I(e)}var Ee=g({name:"TRow",props:Se({},_e),setup:function(t){var n=ee(t),r=n.gutter,c=M();te("rowContext",z({gutter:r}));var s=K(),o=G("row"),a=m(function(){return we(o.value,t)}),u=m(function(){return he(t.gutter,s.value)});return function(){var l,i=t.tag;return p(i,{class:a.value,style:u.value},Ne(l=c("default"))?l:{default:function(){return[l]}})}}});/**
|
|
* tdesign v1.9.4
|
|
* (c) 2024 tdesign
|
|
* @license MIT
|
|
*/var De={flex:{type:[String,Number]},lg:{type:[Number,Object]},md:{type:[Number,Object]},offset:{type:Number,default:0},order:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},sm:{type:[Number,Object]},span:{type:Number},tag:{type:String,default:"div"},xl:{type:[Number,Object]},xs:{type:[Number,Object]},xxl:{type:[Number,Object]}};/**
|
|
* tdesign v1.9.4
|
|
* (c) 2024 tdesign
|
|
* @license MIT
|
|
*/function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),n.push.apply(n,r)}return n}function ke(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?B(Object(n),!0).forEach(function(r){f(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $e(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!I(e)}var Ae=g({name:"TCol",inject:["rowContext"],props:ke({},De),setup:function(t){var n=G("col"),r=M(),c=ne("rowContext",Object.create(null)),s=K(),o=m(function(){return xe(n.value,t)}),a=m(function(){var u={},l=t.flex;if(l&&(u.flex=Pe(l)),c){var i=c.gutter;Object.assign(u,Ce(i,s.value))}return u});return function(){var u,l=t.tag;return p(l,{class:o.value,style:a.value},$e(u=r("default"))?u:{default:function(){return[u]}})}}});/**
|
|
* tdesign v1.9.4
|
|
* (c) 2024 tdesign
|
|
* @license MIT
|
|
*/var Fe=R(Ee),Be=R(Ae);const Me={class:"container"},Re=["title","src"],ze={name:"Backup"},Ie=g({...ze,setup(e){q();const t=le();z({binaryFile:void 0,loading:!1});const n=c=>{alert("\u56FE\u7247\u5DE5\u574A\u5373\u5C06\u63A8\u51FA")},r=c=>{t.push({path:"/tool/image",query:{url:c.url}})};return(c,s)=>{const o=X,a=pe,u=Be,l=Fe,i=de,v=ie,d=ue,U=fe,J=re;return w(),C("div",Me,[p(o,{items:[c.$t("menu.workshop"),c.$t("menu.image")]},null,8,["items"]),p(d,{gutter:20,align:"stretch"},{default:b(()=>[p(v,{span:24},{default:b(()=>[p(J,{class:"general-card",title:c.$t("menu.image")},{default:b(()=>[p(d,{gutter:20},{default:b(()=>[(w(!0),C(ae,null,oe([{name:"\u7F57\u72EE\u864E",url:"/img1.png"},{name:"\u79BB\u7EBF\u5C0F\u6050\u9F99",url:"/img2.png"},{name:"\u4E0D\u5FD8\u521D\u5FC3\u7262\u8BB0\u4F7F\u547D",url:"/img3.png"},{name:"\u4E3A\u4EBA\u6C11\u670D\u52A1",url:"/img4.png"},{name:"\u4E25\u7981\u6536\u542C\u654C\u53F0\u5E7F\u64AD",url:"/img5.png"},{name:"\u7231\u56E0\u65AF\u5766",url:"/img6.png"}],_=>(w(),ce(v,{span:4},{default:b(()=>[p(i,{style:{width:"100%",marginBottom:"10px"}},{cover:b(()=>[se("img",{title:_.name,src:_.url},null,8,Re)]),footer:b(()=>[p(l,{align:"middle",justify:"center",style:{gap:"24px"}},{default:b(()=>[p(u,{flex:"auto",style:{display:"inline-flex","justify-content":"center"}},{default:b(()=>[p(a,{variant:"text",shape:"square",onClick:H=>n(_)},{default:b(()=>[p(x(ge))]),_:2},1032,["onClick"])]),_:2},1024),p(u,{flex:"auto",style:{display:"inline-flex","justify-content":"center"}},{default:b(()=>[p(a,{variant:"text",shape:"square",onClick:H=>r(_)},{default:b(()=>[p(x(ve))]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024))),256))]),_:1}),p(U,{style:{margin:"10px"},total:6,showPageNumber:"",showPageSize:!1})]),_:1},8,["title"])]),_:1})]),_:1})])}}});const Ze=W(Ie,[["__scopeId","data-v-e4b43687"]]);export{Ze as default};
|