ss-component-new 1.2.162 → 1.2.163
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{MTLLoader-yFIR0Q1q.js → MTLLoader-BNmuQ4bU.js} +1 -1
- package/dist/{MTLLoader-DHl-MsFG.cjs → MTLLoader-nfe35Lce.cjs} +1 -1
- package/dist/{OrbitControls-b3svC7lz.js → OrbitControls-DM5kqFgC.js} +1 -1
- package/dist/{OrbitControls-DDMUyTna.cjs → OrbitControls-_twFX8YB.cjs} +1 -1
- package/dist/{URDFLoader-Bi-P4l_C.cjs → URDFLoader-BytGrUmg.cjs} +1 -1
- package/dist/{URDFLoader-CoPcIMnQ.js → URDFLoader-GHbYcXT9.js} +2 -2
- package/dist/{animationData-C5s90SIQ.cjs → animationData-BKw5s9e5.cjs} +1 -1
- package/dist/{animationData-BKwYnqZS.js → animationData-eNObrrUg.js} +1 -1
- package/dist/{array-CTcRu-yX.js → array-BuuA9uHC.js} +1 -1
- package/dist/{array-BOnTlF9h.cjs → array-Csvxd61S.cjs} +1 -1
- package/dist/{iconfont-BMhzhVJJ.cjs → iconfont-0hKmXPPO.cjs} +1 -1
- package/dist/{iconfont-CsvHeQ3r.js → iconfont-BgckB2Vn.js} +2 -2
- package/dist/{index-BVUPfPv6.cjs → index--O8k9XH8.cjs} +1 -1
- package/dist/{index-BPhvNU1s.cjs → index-2KgLHMWm.cjs} +1 -1
- package/dist/{index-DIf6vGiU.cjs → index-B912SDr_.cjs} +1 -1
- package/dist/{index-BRpd7mlP.js → index-BGP4St41.js} +1 -1
- package/dist/{index-ivAOakz7.js → index-BND0qK1p.js} +3 -3
- package/dist/{index-BygvWjTm.cjs → index-BTMi9bkq.cjs} +1 -1
- package/dist/{index-DgorODjn.cjs → index-BVNLn1BE.cjs} +1 -1
- package/dist/{index-LDkpO1-W.cjs → index-B_FhWY3g.cjs} +1 -1
- package/dist/{index-Cp4EY9vc.cjs → index-BpgqbsMU.cjs} +1 -1
- package/dist/{index-DQ3NUQTq.js → index-CIudunlV.js} +1 -1
- package/dist/{index-QJebf9oJ.js → index-CTuQlaKu.js} +7 -7
- package/dist/{index-CL3rdX-G.cjs → index-CWg0GALZ.cjs} +1 -1
- package/dist/{index-CRQLUMgt.cjs → index-CmE9DK-x.cjs} +1 -1
- package/dist/{index-DO3yWQr4.js → index-CpiMfJxt.js} +1 -1
- package/dist/{index-Cm4pb6d9.cjs → index-CuTjPhXT.cjs} +1 -1
- package/dist/{index-ea40G6BX.js → index-CxwVc9EV.js} +16 -16
- package/dist/{index-BmZHT29_.cjs → index-D2yH4vy_.cjs} +1 -1
- package/dist/{index-hD6upDSN.js → index-D3fp8K0R.js} +1 -1
- package/dist/{index-3SnIgTM-.cjs → index-D8cU4idy.cjs} +1 -1
- package/dist/{index-oU4PL8cb.js → index-DBL88T4-.js} +3 -3
- package/dist/{index-DWJFRw3P.cjs → index-DD0L7WCZ.cjs} +1 -1
- package/dist/{index-BA-iAx58.cjs → index-DIAW1G0w.cjs} +1 -1
- package/dist/{index-NIUZIeAD.cjs → index-DISYfV0A.cjs} +1 -1
- package/dist/{index-CbPPM1zP.js → index-DSGQzNk2.js} +4 -4
- package/dist/{index-tXW4mvuL.js → index-DUaw0Qmt.js} +1 -1
- package/dist/{index-urrt4nU9.js → index-DX5_ST-7.js} +4 -4
- package/dist/{index-Ca2vCRTz.js → index-D_ehu1KG.js} +1 -1
- package/dist/{index-B6_478eX.cjs → index-DkJolGgg.cjs} +1 -1
- package/dist/{index-2tjhV9fS.js → index-Dkw-0Onh.js} +8 -8
- package/dist/{index-QKpYJla2.cjs → index-DqyXFZs-.cjs} +1 -1
- package/dist/{index-BrvAcDAx.cjs → index-DrVQ9nWH.cjs} +1 -1
- package/dist/{index-BD520Bdq.js → index-Drf0UHtA.js} +2 -2
- package/dist/{index-GHNa0oiB.cjs → index-DuCF3sUz.cjs} +1 -1
- package/dist/{index-DWAPgVTC.js → index-DwpiuFOt.js} +1 -1
- package/dist/{index-D7ImgWoG.js → index-Gqj_J72M.js} +2 -2
- package/dist/{index-87JgKbhS.js → index-JUVkpquF.js} +5 -5
- package/dist/{index-GlI_cUmE.js → index-KQKwRHYH.js} +1 -1
- package/dist/{index-CMvdesXG.js → index-VUa2nWEE.js} +4 -4
- package/dist/{index-BixLw152.cjs → index-XBprM4fq.cjs} +1 -1
- package/dist/{index-DbKgNNNx.js → index-Z4h-aA4E.js} +1 -1
- package/dist/{index-Bmo81oyI.cjs → index-cxT9czjb.cjs} +1 -1
- package/dist/{index-RiQoG5eW.js → index-p8PoF9o7.js} +1 -1
- package/dist/{index-nwHJIeA3.cjs → index-pfU_XNbI.cjs} +1 -1
- package/dist/{index-B8jrdapR.js → index-qWOZEdHu.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-CDsBC2Z1.cjs → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-BOQQVWR8.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-DHpiwUSI.js → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-CJNNyWAx.js} +7 -7
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-B_zo3qhc.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-B62qEXhy.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BGlcsi-a.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-B_v5GuXi.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_140f5e74_lang-DzzKuA7Q.js → index.vue_vue_type_style_index_0_scoped_140f5e74_lang-CUyDKgmU.js} +4 -4
- package/dist/{index.vue_vue_type_style_index_0_scoped_140f5e74_lang-DaZpa7oY.cjs → index.vue_vue_type_style_index_0_scoped_140f5e74_lang-DlQue1vz.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-Xcpg85c2.cjs → index.vue_vue_type_style_index_1_lang-B6iI3wjr.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-C5Nub6V0.js → index.vue_vue_type_style_index_1_lang-Cwt1_SYX.js} +3 -3
- package/dist/{main-qWpjg-RJ.cjs → main-BNCpQWhK.cjs} +1 -1
- package/dist/{main-CMh3u4tC.js → main-DyO6Q6F8.js} +3 -3
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.js +9 -9
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +10 -10
- package/dist/{threeModel-DFsI04Sg.cjs → threeModel-B9YW6NrH.cjs} +1 -1
- package/dist/{threeModel-Bt2R7DZG.js → threeModel-DhZGVIaw.js} +4 -4
- package/dist/{threePreview-B7R4HTui.js → threePreview-CHKsJcoK.js} +3 -3
- package/dist/{threePreview-BZH5nBKl.cjs → threePreview-DwigQHAL.cjs} +1 -1
- package/dist/{threeSceneView-IhIx7Ccr.cjs → threeSceneView-BTPPwF7w.cjs} +1 -1
- package/dist/{threeSceneView-DVWzWbFV.js → threeSceneView-DvFUSWJp.js} +8 -8
- package/dist/{threeSceneViewForCPMPIP-BV-IOnCC.js → threeSceneViewForCPMPIP-DlF5rNcF.js} +7 -7
- package/dist/{threeSceneViewForCPMPIP-Edyd6E8Q.cjs → threeSceneViewForCPMPIP-jMVJXNwq.cjs} +1 -1
- package/dist/{threeTrackPathView-C0TjsP3P.js → threeTrackPathView-Dk26Z18y.js} +3 -3
- package/dist/{threeTrackPathView-s7G2SBvd.cjs → threeTrackPathView-YwGgHZIp.cjs} +1 -1
- package/dist/{threeViewerHost-hLCXix-l.js → threeViewerHost-CHH4zCel.js} +2 -2
- package/dist/{threeViewerHost-PCzDzyiB.cjs → threeViewerHost-CL8nl9YW.cjs} +1 -1
- package/dist/{urdfTree-By95fHW4.js → urdfTree-Et3kzNVe.js} +1 -1
- package/dist/{urdfTree-Y6xeAMAm.cjs → urdfTree-xVeXXHR6.cjs} +1 -1
- package/dist/{workpieceTreePanel-Ci1zCNuj.cjs → workpieceTreePanel-CWob_ifV.cjs} +1 -1
- package/dist/{workpieceTreePanel-Bm1WCeox.js → workpieceTreePanel-DAr9iWAX.js} +4 -4
- package/package.json +1 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { a as Mr, u as $r, f as Fr, g as Kr, s as jr } from "./index-
|
|
1
|
+
import { a as Mr, u as $r, f as Fr, g as Kr, s as jr } from "./index-JUVkpquF.js";
|
|
2
2
|
import { computed as Ut, ref as ue, watch as _t, onUnmounted as Nr, resolveComponent as Pt, createElementBlock as at, openBlock as Te, createVNode as Ae, createBlock as Tt, createCommentVNode as fa, withCtx as Ke, createElementVNode as re, Fragment as Ht, renderList as Xt, toDisplayString as gt, nextTick as Ka, createTextVNode as zt, defineComponent as ga, resolveDynamicComponent as Na, onMounted as ln, unref as Ot, reactive as Ba, renderSlot as zn, createSlots as Ur, mergeProps as hl, normalizeStyle as an, withModifiers as jn, defineAsyncComponent as Wr, defineProps as Hr, getCurrentInstance as Vr, inject as Co, shallowRef as qr, toRef as Gr, onBeforeMount as gl, watchEffect as Xr, onBeforeUnmount as yl, normalizeClass as So, getCurrentScope as Yr, onScopeDispose as Jr, provide as Do, toRefs as Eo, withDirectives as Zr, vShow as Qr } from "vue";
|
|
3
3
|
import { bO as es, l as oi, bP as ts, bQ as as, bR as ns, s as Qt, p as Jt, u as Ai, c as K, E as Gt, b as Wi, g as na, e as nn, bJ as li, bK as Ln, f as Ua, bI as Oi, h as oo, bS as is, bT as os, bN as ls } from "./index-DIUrwul5.js";
|
|
4
|
-
import { d as ca, b as lo, e as ml, E as bl, f as kl, h as rs, c as wl } from "./index-
|
|
5
|
-
import { a as ro, R as ss, S as Hi, I as us, g as Ft, T as cs, U as so, V as Vi, W as ha, X as Un, Y as qa, Z as On, _ as Mi, $ as fs, o as ds, N as $i, a0 as ps, a1 as To, a2 as Qn, a3 as vs, a4 as gi, b as Io, Q as xl, a5 as ui, a6 as hs, a7 as gs, a8 as ys, a9 as Di, aa as ms, u as bs, p as ks } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
6
|
-
import { s as pa } from "./index-
|
|
7
|
-
import { a as ws, T as xs } from "./threeViewerHost-
|
|
4
|
+
import { d as ca, b as lo, e as ml, E as bl, f as kl, h as rs, c as wl } from "./index-DSGQzNk2.js";
|
|
5
|
+
import { a as ro, R as ss, S as Hi, I as us, g as Ft, T as cs, U as so, V as Vi, W as ha, X as Un, Y as qa, Z as On, _ as Mi, $ as fs, o as ds, N as $i, a0 as ps, a1 as To, a2 as Qn, a3 as vs, a4 as gi, b as Io, Q as xl, a5 as ui, a6 as hs, a7 as gs, a8 as ys, a9 as Di, aa as ms, u as bs, p as ks } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-B62qEXhy.js";
|
|
6
|
+
import { s as pa } from "./index-qWOZEdHu.js";
|
|
7
|
+
import { a as ws, T as xs } from "./threeViewerHost-CHH4zCel.js";
|
|
8
8
|
import { a as Pn, u as Vn, E as ja, ac as _s } from "./index-AIq5wzuR.js";
|
|
9
9
|
import { _ as Zt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
10
|
import { i as Ao } from "./isString-CN3i5s9o.js";
|
|
11
11
|
import { _ as Oo } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
|
|
12
|
-
import { a as Cs, s as Ss } from "./index-
|
|
12
|
+
import { a as Cs, s as Ss } from "./index-BND0qK1p.js";
|
|
13
13
|
import _l from "./index-rlStojTL.js";
|
|
14
|
-
import { s as Ds } from "./index-
|
|
14
|
+
import { s as Ds } from "./index-D_ehu1KG.js";
|
|
15
15
|
import { S as Es } from "./index-BHtNKL1L.js";
|
|
16
16
|
import { useRouter as Ts } from "vue-router";
|
|
17
17
|
import { a as Is, e as As, f as Os, g as zs, h as Bs } from "./index-CAPx0_D4.js";
|
|
@@ -6727,7 +6727,7 @@ function $d() {
|
|
|
6727
6727
|
}(xi)), xi.exports;
|
|
6728
6728
|
}
|
|
6729
6729
|
$d();
|
|
6730
|
-
const qi = Wr(() => import("./index-
|
|
6730
|
+
const qi = Wr(() => import("./index-DSGQzNk2.js").then((a) => a.j));
|
|
6731
6731
|
qi.install = (a) => {
|
|
6732
6732
|
a.component("ssMenu", qi);
|
|
6733
6733
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),u=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),u=require("./index-BTMi9bkq.cjs"),n=require("./index-DOCHgBta.cjs"),a=require("./index-C8qRkCgn.cjs"),s={class:"routerPage-wrapper"},i=t.defineComponent({__name:"index",setup(d){const o=n.useMenuState(),{activeMenuPath:c}=a.storeToRefs(o),r=a.useLoginState(),e=t.reactive({...n.State});return t.onMounted(async()=>{r.getModelSecretAsync(),e.structureId=await n.getActivePageStructureId(c.value)}),(l,g)=>(t.openBlock(),t.createElementBlock("div",s,[t.createVNode(u.ssTable,{index:e.structureId,compName:e.compName,itemData:e.pageData,changedContent:e.changedRow,onChange:e.handleItemDataChange,onOnButtonClick:e.clickRowButton},null,8,["index","compName","itemData","changedContent","onChange","onOnButtonClick"])]))}});exports.default=i;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),B=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
1
|
+
"use strict";const e=require("vue"),B=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-B_v5GuXi.cjs"),a=require("./index-C8qRkCgn.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),T="ElUpload";class R extends Error{constructor(o,l,i,p){super(o),this.name="UploadAjaxError",this.status=l,this.method=i,this.url=p}}function h(r,o,l){let i;return l.response?i=`${l.response.error||l.response}`:l.responseText?i=`${l.responseText}`:i=`fail to ${o.method} ${r} ${l.status}`,new R(i,l.status,o.method,r)}function U(r){const o=r.responseText||r.response;if(!o)return o;try{return JSON.parse(o)}catch{return o}}const D=r=>{typeof XMLHttpRequest>"u"&&a.throwError(T,"XMLHttpRequest is undefined");const o=new XMLHttpRequest,l=r.action;o.upload&&o.upload.addEventListener("progress",t=>{const c=t;c.percent=t.total>0?t.loaded/t.total*100:0,r.onProgress(c)});const i=new FormData;if(r.data)for(const[t,c]of Object.entries(r.data))a.isArray$1(c)&&c.length?i.append(t,...c):i.append(t,c);i.append(r.filename,r.file,r.file.name),o.addEventListener("error",()=>{r.onError(h(l,r,o))}),o.addEventListener("load",()=>{if(o.status<200||o.status>=300)return r.onError(h(l,r,o));r.onSuccess(U(o))}),o.open(r.method,l,!0),r.withCredentials&&"withCredentials"in o&&(o.withCredentials=!0);const p=r.headers||{};if(p instanceof Headers)p.forEach((t,c)=>o.setRequestHeader(c,t));else for(const[t,c]of Object.entries(p))a.isNil(c)||o.setRequestHeader(t,String(c));return o.send(i),o},b=["text","picture","picture-card"];let L=1;const N=()=>Date.now()+L++,x=a.buildProps({action:{type:String,default:"#"},headers:{type:a.definePropType(Object)},method:{type:String,default:"post"},data:{type:a.definePropType([Object,Function,Promise]),default:()=>a.mutable({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:a.definePropType(Array),default:()=>a.mutable([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:b,default:"text"},httpRequest:{type:a.definePropType(Function),default:D},disabled:Boolean,limit:Number}),F=a.buildProps({...x,beforeUpload:{type:a.definePropType(Function),default:a.NOOP},beforeRemove:{type:a.definePropType(Function)},onRemove:{type:a.definePropType(Function),default:a.NOOP},onChange:{type:a.definePropType(Function),default:a.NOOP},onPreview:{type:a.definePropType(Function),default:a.NOOP},onSuccess:{type:a.definePropType(Function),default:a.NOOP},onProgress:{type:a.definePropType(Function),default:a.NOOP},onError:{type:a.definePropType(Function),default:a.NOOP},onExceed:{type:a.definePropType(Function),default:a.NOOP},crossorigin:{type:a.definePropType(String)}}),j={style:{"text-align":"left"}},A={class:"cropper-warp"},q={class:"cropper-warp-left"},$=["src"],H={class:"cropper-warp-right"},z={class:"cropper-warp-right-item"},M={class:"cropper-warp-right-value"},X=["src"],J={class:"cropper-warp-right-item"},G={class:"cropper-warp-right-value"},K=["src"],Q={class:"dialog-footer"},W=e.defineComponent({__name:"index",props:{title:{type:String,default:""}},emits:["submitImage","deleteImage"],setup(r,{expose:o,emit:l}){const i=l,p=e.ref(),t=e.reactive({isShowDialog:!1,cropperImg:"",cropperImgBase64:"",cropper:null}),c=async s=>{if(t.isShowDialog=!0,!s)return;let n=window.URL||window.webkitURL;t.cropperImg=n.createObjectURL(s),e.nextTick(()=>{w()})},f=()=>{var s;(s=t.cropper)==null||s.destroy(),t.isShowDialog=!1},m=()=>{f()},y=async()=>{const s=await v();i("submitImage",{file:s}),f()},d=async()=>{i("deleteImage")},w=()=>{const s=document.querySelector(".cropper-warp-left-img");s&&s.setAttribute("crossOrigin","anonymous"),t.cropper=new B.Cropper(s,{viewMode:1,dragMode:"none",initialAspectRatio:1,aspectRatio:1,preview:".before",background:!0,autoCropArea:1,checkCrossOrigin:!1,crop:()=>{t.cropperImgBase64=t.cropper.getCroppedCanvas().toDataURL("image/jpeg")}})},v=async()=>t!=null&&t.cropper?new Promise(s=>{var n,u;(u=(n=t==null?void 0:t.cropper)==null?void 0:n.getCroppedCanvas())==null||u.toBlob(_=>{s(_)})}):(await fetch(t.cropperImg)).blob(),V=async s=>{var u;let n=window.URL||window.webkitURL;t.cropperImg=n.createObjectURL(s.raw),(u=t.cropper)==null||u.replace(t.cropperImg)},S=s=>{p.value.clearFiles();const n=s[0];n.uid=N(),p.value.handleStart(n)};return o({openDialog:c}),(s,n)=>{const u=e.resolveComponent("ele-Edit"),_=e.resolveComponent("el-icon"),g=e.resolveComponent("el-button"),I=e.resolveComponent("el-upload"),k=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(k,{modelValue:t.isShowDialog,"onUpdate:modelValue":n[0]||(n[0]=O=>t.isShowDialog=O),width:"769px","before-close":m},{header:e.withCtx(()=>[e.createElementVNode("div",j,[e.createVNode(_,{size:"16",style:{"margin-right":"3px",display:"inline","vertical-align":"middle"}},{default:e.withCtx(()=>[e.createVNode(u)]),_:1}),e.createElementVNode("span",null,e.toDisplayString(r.title),1)])]),footer:e.withCtx(()=>[e.createElementVNode("span",Q,[e.createVNode(I,{class:"avatar-uploader",ref_key:"uploadSignRef",ref:p,accept:".jpg,.png",limit:1,"show-file-list":!1,"auto-upload":!1,"on-change":V,"on-exceed":S},{trigger:e.withCtx(()=>[e.createVNode(g,{type:"info",icon:"ele-Picture"},{default:e.withCtx(()=>n[4]||(n[4]=[e.createTextVNode("选择图片")])),_:1,__:[4]})]),default:e.withCtx(()=>[e.createVNode(g,{onClick:d,type:"danger",icon:"ele-Picture",style:{"margin-left":"8px"}},{default:e.withCtx(()=>n[5]||(n[5]=[e.createTextVNode("删除图片")])),_:1,__:[5]})]),_:1},512),e.createElementVNode("div",null,[e.createVNode(g,{onClick:m,id:"themeBorderButton"},{default:e.withCtx(()=>n[6]||(n[6]=[e.createTextVNode("取 消")])),_:1,__:[6]}),e.createVNode(g,{onClick:y,id:"themeButton"},{default:e.withCtx(()=>n[7]||(n[7]=[e.createTextVNode("确 定")])),_:1,__:[7]})])])]),default:e.withCtx(()=>[e.createElementVNode("div",A,[e.createElementVNode("div",q,[e.createElementVNode("img",{src:t.cropperImg,class:"cropper-warp-left-img"},null,8,$)]),e.createElementVNode("div",H,[n[3]||(n[3]=e.createElementVNode("div",{class:"cropper-warp-right-title"},"预览",-1)),e.createElementVNode("div",z,[e.createElementVNode("div",M,[e.createElementVNode("img",{src:t.cropperImgBase64,class:"cropper-warp-right-value-img"},null,8,X)]),n[1]||(n[1]=e.createElementVNode("div",{class:"cropper-warp-right-label"},"100 x 100",-1))]),e.createElementVNode("div",J,[e.createElementVNode("div",G,[e.createElementVNode("img",{src:t.cropperImgBase64,class:"cropper-warp-right-value-img cropper-size"},null,8,K)]),n[2]||(n[2]=e.createElementVNode("div",{class:"cropper-warp-right-label"},"50 x 50",-1))])])])]),_:1},8,["modelValue"])])}}}),E=C._export_sfc(W,[["__scopeId","data-v-4a19ffcf"]]),Y=e.defineComponent({__name:"index",props:{avatarUrl:{type:String,default:""},avatarBlob:{type:Blob,default:""},size:{type:[String,Number],default:"large"},showCropper:{type:Boolean,default:!0},banClick:{type:Boolean,default:!1},clickStop:{type:Boolean,default:!0}},emits:["submitImage","deleteImage","clickAvatar"],setup(r,{emit:o}){const l=r,i=e.ref(),p=e.ref(null),t=o,c=()=>!0,f=async()=>{var d;l!=null&&l.banClick||(t("clickAvatar",l.avatarUrl),(d=i.value)==null||d.openDialog(l.avatarBlob))},m=async d=>{t("submitImage",d)},y=async()=>{t("deleteImage")};return(d,w)=>{const v=e.resolveComponent("el-avatar");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(v,{src:r.avatarUrl,onClick:f,fit:"cover",size:r.size,ref_key:"avatarRef",ref:p,style:{background:"var(--user-avatar-bg)"},alt:"头像查找失败",onError:c},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"avatarDefault",{},void 0,!0)]),_:3},8,["src","size"]),e.withDirectives(e.createVNode(E,{ref_key:"cropperDialogRef",ref:i,title:"更改头像",avatarUrl:r.avatarUrl,onSubmitImage:m,onDeleteImage:y},null,8,["avatarUrl"]),[[e.vShow,r.showCropper&&(l==null?void 0:l.clickStop)]])],64)}}}),P=C._export_sfc(Y,[["__scopeId","data-v-82946fb9"]]),Z=Object.freeze(Object.defineProperty({__proto__:null,default:P},Symbol.toStringTag,{value:"Module"}));exports.CropperDialog=E;exports.genFileId=N;exports.index=Z;exports.ssAvatar=P;exports.uploadBaseProps=x;exports.uploadListTypes=b;exports.uploadProps=F;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ref as s, watch as d, defineComponent as m, reactive as y, onMounted as i, createElementBlock as g, openBlock as D, createVNode as f } from "vue";
|
|
2
2
|
import "./index-BHtNKL1L.js";
|
|
3
|
-
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
3
|
+
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-B62qEXhy.js";
|
|
4
4
|
import { g as h, s as c } from "./index-DIUrwul5.js";
|
|
5
5
|
import { ae as C, ad as _, a as k, u as S, af as v } from "./index-AIq5wzuR.js";
|
|
6
|
-
import { s as T } from "./index-
|
|
6
|
+
import { s as T } from "./index-JUVkpquF.js";
|
|
7
7
|
const A = k(), { itemData: B } = c(A), u = s(0), I = s([
|
|
8
8
|
{
|
|
9
9
|
label: "机构名称",
|