ss-component-new 1.1.821 → 1.1.823
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/{OrbitControls-D6pgin7s.js → OrbitControls-Cm4Xs_Bq.js} +1 -1
- package/dist/{OrbitControls-Ff5ikkUQ.cjs → OrbitControls-D-XDZGf-.cjs} +1 -1
- package/dist/{STLLoader-BNh7D2zV.cjs → STLLoader-BxpEhvEg.cjs} +161 -161
- package/dist/{STLLoader-LGKv5i3H.js → STLLoader-DofhZbOw.js} +522 -593
- package/dist/{array-D1hKYLwI.cjs → array-Bfmx0w6P.cjs} +2 -2
- package/dist/{array-C60T9pDZ.js → array-DbAuNWGt.js} +1 -1
- package/dist/{iconfont-v9CcCMwF.js → iconfont-DQodgJo8.js} +73 -75
- package/dist/iconfont-Di4uXnX1.cjs +1 -0
- package/dist/icons/svg/editTable.svg +1 -1
- package/dist/icons/svg/export.svg +1 -0
- package/dist/icons/svg/model.svg +1 -0
- package/dist/icons/svg/three.svg +1 -0
- package/dist/index-1i-XlS2m.js +101 -0
- package/dist/{index-BdsJiFeW.cjs → index-6jSC3unU.cjs} +1 -1
- package/dist/{index-2kzGjuzu.js → index-6zbHinQ6.js} +10 -9
- package/dist/index-B-oe2x1V.cjs +109 -0
- package/dist/index-B-qent3l.cjs +1 -0
- package/dist/{index-CukZ8eDZ.js → index-BBo52W9F.js} +4 -4
- package/dist/index-BOev8isw.cjs +21 -0
- package/dist/index-BQgnYD51.js +6492 -0
- package/dist/{index-owcnOlVq.js → index-BYW-ix_Q.js} +5 -5
- package/dist/{index-4_M1SpeV.js → index-Bi1gr72d.js} +14 -14
- package/dist/{index-DnVaHi8q.js → index-BmHmnXS9.js} +7 -7
- package/dist/index-BoS30LXH.cjs +1 -0
- package/dist/index-BuBMi9JA.cjs +1 -0
- package/dist/{index-Zi9xLtwj.js → index-BvE05H-i.js} +2 -2
- package/dist/index-BwpOMKef.cjs +1 -0
- package/dist/index-C18ZPRC7.cjs +1 -0
- package/dist/{index-HVJSfh2g.js → index-CJx2DcDb.js} +21 -19
- package/dist/{index-B3cUSGXB.js → index-CL59qQ_W.js} +9 -8
- package/dist/{index-DDsJpzfR.js → index-CLdN0W98.js} +47 -47
- package/dist/index-CPP7L10q.cjs +1 -0
- package/dist/index-CSWIBSmo.cjs +1 -0
- package/dist/{index-DEobyz7r.js → index-CTgZZ96L.js} +6 -5
- package/dist/{index-WXpPDsev.js → index-CZ1ui4mT.js} +1 -1
- package/dist/index-CfQvGqaX.cjs +1 -0
- package/dist/index-CgJYAzeA.cjs +1 -0
- package/dist/{index-Cuj-fGNO.cjs → index-ChZHGw_N.cjs} +1 -1
- package/dist/index-ChtmIuBu.js +29771 -0
- package/dist/index-CjFcaJcL.cjs +1 -0
- package/dist/index-CjTmkzBO.js +24 -0
- package/dist/{index-Dtw4WkUo.cjs → index-CngO0AUc.cjs} +1 -1
- package/dist/index-CqCPdyGu.js +1248 -0
- package/dist/index-Cr6pWv0l.cjs +1 -0
- package/dist/{index-Cw95lvvp.js → index-D8Msszln.js} +223 -223
- package/dist/index-DDvUG6fk.js +22 -0
- package/dist/{index-CdMrhxHS.js → index-DMlIMlyC.js} +10 -10
- package/dist/{index-3Cdyqd1B.cjs → index-DOBeGYzT.cjs} +1 -1
- package/dist/index-DP0k43fj.cjs +1 -0
- package/dist/index-DTxccgVM.cjs +1 -0
- package/dist/{index-JAJeIBYE.cjs → index-DVAGljX0.cjs} +1 -1
- package/dist/{index-B5Vi6RBj.cjs → index-DVCrYVKw.cjs} +1 -1
- package/dist/{index-CY2iphpd.cjs → index-DbniLh9G.cjs} +1 -1
- package/dist/index-Dj_ofPeK.cjs +1 -0
- package/dist/{index-DtogzZej.js → index-DocnYz5P.js} +1 -1
- package/dist/index-DrL7vroa.js +319 -0
- package/dist/index-Dt2McMki.js +13668 -0
- package/dist/{index-Cphx1eY1.js → index-Gba1Qfcc.js} +7 -8
- package/dist/{index-DMb9Vu-7.js → index-IUkCD4R_.js} +1 -1
- package/dist/{index-DAyzDsjs.js → index-K6BRW_Bw.js} +1 -1
- package/dist/{index-DzM8zZqe.js → index-OH9t-y2p.js} +4 -4
- package/dist/index-PNDdZKYG.cjs +1 -0
- package/dist/{index-Dn04IPFM.js → index-QETLKFyV.js} +10 -10
- package/dist/{index-BWHtpT9o.cjs → index-RgTvyK54.cjs} +1 -1
- package/dist/{index-CF_0RdqV.cjs → index-dukFqRog.cjs} +1 -1
- package/dist/{index-C9Boo2Cw.cjs → index-dyoOdMKX.cjs} +1 -1
- package/dist/index-f9bwREQl.cjs +1 -0
- package/dist/{index-Dxoxm0Cc.js → index-mmWAqzR5.js} +25 -25
- package/dist/index-rPc9VS0S.cjs +1 -0
- package/dist/index-tPamnhR2.js +236 -0
- package/dist/{index-H3kf9EQv.js → index-tX2Hs05F.js} +11 -10
- package/dist/{index-DEU-pXeW.js → index-uvns6W6E.js} +1838 -1812
- package/dist/index-weauvEnW.cjs +4 -0
- package/dist/{index-B8xEed7C.cjs → index-wlnPb2aB.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-iyZtrhDf.js → index.vue_vue_type_script_setup_true_lang-C4G6mB7R.js} +28 -28
- package/dist/{index.vue_vue_type_script_setup_true_lang-CaYQQb8M.cjs → index.vue_vue_type_script_setup_true_lang-CWi4UVPF.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-qefZ9E5G.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CtN9Ij0Y.js} +53 -23
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CTcahF4Z.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-mQIxU0SD.cjs} +90 -90
- package/dist/{index.vue_vue_type_style_index_0_scoped_6bfd62db_lang-Cxjh1E1z.js → index.vue_vue_type_style_index_0_scoped_1966237d_lang-D3xcEtDT.js} +6488 -6474
- package/dist/{index.vue_vue_type_style_index_0_scoped_6bfd62db_lang-0eNHRdYw.cjs → index.vue_vue_type_style_index_0_scoped_1966237d_lang-DwIFJsxs.cjs} +14 -14
- package/dist/{index.vue_vue_type_style_index_0_scoped_86d2b6b8_lang-kymzIBO8.js → index.vue_vue_type_style_index_0_scoped_86d2b6b8_lang-D5CTJUDi.js} +17 -17
- package/dist/{index.vue_vue_type_style_index_0_scoped_86d2b6b8_lang-GlR2V0TC.cjs → index.vue_vue_type_style_index_0_scoped_86d2b6b8_lang-VPQBXOPW.cjs} +1 -1
- package/dist/index.vue_vue_type_style_index_1_lang-DraQDAAw.cjs +32 -0
- package/dist/index.vue_vue_type_style_index_1_lang-hffXwR3x.js +7028 -0
- package/dist/isUndefined-4Qg9wncf.js +84 -0
- package/dist/isUndefined-BEt4O79g.cjs +1 -0
- package/dist/{main-C6I42yaU.js → main-CBCk94h5.js} +30 -29
- package/dist/main-DO_PN7jt.cjs +1 -0
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +11 -11
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +12 -12
- package/dist/threeModel-GKSAzHfe.cjs +1 -0
- package/dist/{threeModel-BEt5OVCP.js → threeModel-RJwJMtfW.js} +91 -92
- package/dist/{threePreview-BUZRvBRx.js → threePreview-BSqdALPK.js} +3 -3
- package/dist/{threePreview-Dyzqu5s7.cjs → threePreview-CKvbwCiX.cjs} +1 -1
- package/dist/threeSceneView-BVbVe_Et.js +1277 -0
- package/dist/threeSceneView-KvCERteS.cjs +5 -0
- package/dist/{threeViewerHost-IhSFkCeD.js → threeViewerHost-AuhfL2Cn.js} +55 -57
- package/dist/threeViewerHost-D0pu5wk5.cjs +1 -0
- package/package.json +1 -1
- package/public/icons/svg/editTable.svg +1 -1
- package/public/icons/svg/export.svg +1 -0
- package/public/icons/svg/model.svg +1 -0
- package/public/icons/svg/three.svg +1 -0
- package/dist/animationData-B2T3Oamw.js +0 -108
- package/dist/animationData-Db_9HBoM.cjs +0 -1
- package/dist/iconfont-CZj6ltAs.cjs +0 -1
- package/dist/index-2KKrCkl8.cjs +0 -1
- package/dist/index-2OWkrGDh.js +0 -24
- package/dist/index-B1iXzkUF.cjs +0 -1
- package/dist/index-BBB4VObc.cjs +0 -11
- package/dist/index-BIVWMqJQ.cjs +0 -1
- package/dist/index-BWpZSzL1.cjs +0 -1
- package/dist/index-BllULnvx.cjs +0 -1
- package/dist/index-BvO1uTn0.js +0 -21
- package/dist/index-C2bI4adc.js +0 -8628
- package/dist/index-C9pN8_un.js +0 -548
- package/dist/index-CPdKWCSo.cjs +0 -1
- package/dist/index-CQfFbeTJ.cjs +0 -1
- package/dist/index-CZJOPfp5.js +0 -1152
- package/dist/index-Cb0q1Y5b.cjs +0 -1
- package/dist/index-Cfomm0G1.cjs +0 -109
- package/dist/index-CvvFU_QA.cjs +0 -1
- package/dist/index-DYMLmifU.cjs +0 -1
- package/dist/index-DfPyuGyq.js +0 -101
- package/dist/index-Dm2qfeUm.cjs +0 -1
- package/dist/index-DtX1F0sz.cjs +0 -4
- package/dist/index-Du3VUDcF.cjs +0 -1
- package/dist/index-VWNqRYy9.js +0 -36270
- package/dist/index-kmj8K3JX.cjs +0 -1
- package/dist/index-ndZw4AQJ.cjs +0 -1
- package/dist/index-y5FEcncv.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_1_lang-Bmwy3cgo.cjs +0 -42
- package/dist/index.vue_vue_type_style_index_1_lang-Rs1M3B8e.js +0 -11984
- package/dist/main-2gDZp_zL.cjs +0 -1
- package/dist/threeModel-DgOcIXVI.cjs +0 -1
- package/dist/threeSceneView-BZx98QgN.js +0 -1450
- package/dist/threeSceneView-DSkGJN5d.cjs +0 -5
- package/dist/threeViewerHost-T_51aUg5.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-Cr6pWv0l.cjs"),r=require("./index-B-oe2x1V.cjs"),i=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),s={class:"log-wrap"},u=t.defineComponent({__name:"index",setup(_){const e=t.reactive({...c.State});t.onMounted(async()=>{e.tableData=await e.getLogTableDataAsync()});const l=n=>{var o;e.clickButton(n,(o=e.tableData)==null?void 0:o.map(a=>a.id),a=>{console.log("清空操作成功:",a),a&&(e.tableData=[])})};return(n,o)=>(t.openBlock(),t.createElementBlock("div",s,[t.createVNode(r.ssTable,{itemData:e.pageData,allowOperate:!1,allowSelect:!1,onOnButtonClick:l},null,8,["itemData"])]))}}),d=i._export_sfc(u,[["__scopeId","data-v-b4bfde04"]]);exports.default=d;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as k, ref as C, reactive as A, resolveComponent as m, createElementBlock as B, openBlock as
|
|
2
|
-
import { C as V } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
3
|
-
import {
|
|
1
|
+
import { defineComponent as k, ref as C, reactive as A, resolveComponent as m, createElementBlock as B, openBlock as U, createVNode as u, withCtx as d, createElementVNode as l, createTextVNode as w, toDisplayString as N, nextTick as T, Fragment as q, withDirectives as z, renderSlot as H, vShow as $ } from "vue";
|
|
2
|
+
import { C as V } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CtN9Ij0Y.js";
|
|
3
|
+
import { F as M, U as X, ai as J, y as x, z as c, ah as I, P as g } from "./index-Dt2McMki.js";
|
|
4
4
|
import { _ as G } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const K = "ElUpload";
|
|
6
6
|
class Q extends Error {
|
|
@@ -49,7 +49,7 @@ const Y = (t) => {
|
|
|
49
49
|
return r.send(n), r;
|
|
50
50
|
}, Z = ["text", "picture", "picture-card"];
|
|
51
51
|
let ee = 1;
|
|
52
|
-
const te = () => Date.now() + ee++, re =
|
|
52
|
+
const te = () => Date.now() + ee++, re = x({
|
|
53
53
|
action: {
|
|
54
54
|
type: String,
|
|
55
55
|
default: "#"
|
|
@@ -63,7 +63,7 @@ const te = () => Date.now() + ee++, re = E({
|
|
|
63
63
|
},
|
|
64
64
|
data: {
|
|
65
65
|
type: c([Object, Function, Promise]),
|
|
66
|
-
default: () =>
|
|
66
|
+
default: () => I({})
|
|
67
67
|
},
|
|
68
68
|
multiple: Boolean,
|
|
69
69
|
name: {
|
|
@@ -82,7 +82,7 @@ const te = () => Date.now() + ee++, re = E({
|
|
|
82
82
|
},
|
|
83
83
|
fileList: {
|
|
84
84
|
type: c(Array),
|
|
85
|
-
default: () =>
|
|
85
|
+
default: () => I([])
|
|
86
86
|
},
|
|
87
87
|
autoUpload: {
|
|
88
88
|
type: Boolean,
|
|
@@ -99,7 +99,7 @@ const te = () => Date.now() + ee++, re = E({
|
|
|
99
99
|
},
|
|
100
100
|
disabled: Boolean,
|
|
101
101
|
limit: Number
|
|
102
|
-
}), be =
|
|
102
|
+
}), be = x({
|
|
103
103
|
...re,
|
|
104
104
|
beforeUpload: {
|
|
105
105
|
type: c(Function),
|
|
@@ -158,19 +158,19 @@ const te = () => Date.now() + ee++, re = E({
|
|
|
158
158
|
if (!s) return;
|
|
159
159
|
let a = window.URL || window.webkitURL;
|
|
160
160
|
e.cropperImg = a.createObjectURL(s), e.isShowDialog = !0, T(() => {
|
|
161
|
-
|
|
161
|
+
S();
|
|
162
162
|
});
|
|
163
|
-
},
|
|
163
|
+
}, y = () => {
|
|
164
164
|
var s;
|
|
165
165
|
(s = e.cropper) == null || s.destroy(), e.isShowDialog = !1;
|
|
166
|
-
},
|
|
167
|
-
|
|
166
|
+
}, v = () => {
|
|
167
|
+
y();
|
|
168
168
|
}, h = async () => {
|
|
169
169
|
const s = await b();
|
|
170
|
-
n("submitImage", { file: s }),
|
|
170
|
+
n("submitImage", { file: s }), y();
|
|
171
171
|
}, f = async () => {
|
|
172
172
|
n("deleteImage");
|
|
173
|
-
},
|
|
173
|
+
}, S = () => {
|
|
174
174
|
const s = document.querySelector(".cropper-warp-left-img");
|
|
175
175
|
s && s.setAttribute("crossOrigin", "anonymous"), e.cropper = new V(s, {
|
|
176
176
|
viewMode: 1,
|
|
@@ -190,7 +190,7 @@ const te = () => Date.now() + ee++, re = E({
|
|
|
190
190
|
e.cropper.getCroppedCanvas().toBlob((a) => {
|
|
191
191
|
s(a);
|
|
192
192
|
});
|
|
193
|
-
}),
|
|
193
|
+
}), E = async (s) => {
|
|
194
194
|
let a = window.URL || window.webkitURL;
|
|
195
195
|
e.cropperImg = a.createObjectURL(s.raw), e.cropper.replace(e.cropperImg);
|
|
196
196
|
}, D = (s) => {
|
|
@@ -202,12 +202,12 @@ const te = () => Date.now() + ee++, re = E({
|
|
|
202
202
|
openDialog: i
|
|
203
203
|
}), (s, a) => {
|
|
204
204
|
const L = m("ele-Edit"), F = m("el-icon"), _ = m("el-button"), P = m("el-upload"), O = m("el-dialog");
|
|
205
|
-
return
|
|
205
|
+
return U(), B("div", null, [
|
|
206
206
|
u(O, {
|
|
207
207
|
modelValue: e.isShowDialog,
|
|
208
208
|
"onUpdate:modelValue": a[0] || (a[0] = (j) => e.isShowDialog = j),
|
|
209
209
|
width: "769px",
|
|
210
|
-
"before-close":
|
|
210
|
+
"before-close": v
|
|
211
211
|
}, {
|
|
212
212
|
header: d(() => [
|
|
213
213
|
l("div", ae, [
|
|
@@ -233,7 +233,7 @@ const te = () => Date.now() + ee++, re = E({
|
|
|
233
233
|
limit: 1,
|
|
234
234
|
"show-file-list": !1,
|
|
235
235
|
"auto-upload": !1,
|
|
236
|
-
"on-change":
|
|
236
|
+
"on-change": E,
|
|
237
237
|
"on-exceed": D
|
|
238
238
|
}, {
|
|
239
239
|
trigger: d(() => [
|
|
@@ -266,7 +266,7 @@ const te = () => Date.now() + ee++, re = E({
|
|
|
266
266
|
}, 512),
|
|
267
267
|
l("div", null, [
|
|
268
268
|
u(_, {
|
|
269
|
-
onClick:
|
|
269
|
+
onClick: v,
|
|
270
270
|
id: "themeBorderButton"
|
|
271
271
|
}, {
|
|
272
272
|
default: d(() => a[6] || (a[6] = [
|
|
@@ -324,7 +324,7 @@ const te = () => Date.now() + ee++, re = E({
|
|
|
324
324
|
]);
|
|
325
325
|
};
|
|
326
326
|
}
|
|
327
|
-
}),
|
|
327
|
+
}), ye = /* @__PURE__ */ G(me, [["__scopeId", "data-v-5d760968"]]), Ce = /* @__PURE__ */ k({
|
|
328
328
|
__name: "index",
|
|
329
329
|
props: {
|
|
330
330
|
avatarUrl: {
|
|
@@ -350,20 +350,20 @@ const te = () => Date.now() + ee++, re = E({
|
|
|
350
350
|
},
|
|
351
351
|
emits: ["submitImage", "deleteImage", "clickAvatar"],
|
|
352
352
|
setup(t, { emit: r }) {
|
|
353
|
-
const o = t, n = C(), p = C(null), e = r, i = () => !0,
|
|
353
|
+
const o = t, n = C(), p = C(null), e = r, i = () => !0, y = async () => {
|
|
354
354
|
var f;
|
|
355
355
|
o != null && o.banClick || (e("clickAvatar", o.avatarUrl), (f = n.value) == null || f.openDialog(o.avatarBlob));
|
|
356
|
-
},
|
|
356
|
+
}, v = async (f) => {
|
|
357
357
|
e("submitImage", f);
|
|
358
358
|
}, h = async () => {
|
|
359
359
|
e("deleteImage");
|
|
360
360
|
};
|
|
361
|
-
return (f,
|
|
361
|
+
return (f, S) => {
|
|
362
362
|
const b = m("el-avatar");
|
|
363
|
-
return
|
|
363
|
+
return U(), B(q, null, [
|
|
364
364
|
u(b, {
|
|
365
365
|
src: t.avatarUrl,
|
|
366
|
-
onClick:
|
|
366
|
+
onClick: y,
|
|
367
367
|
fit: "cover",
|
|
368
368
|
size: t.size,
|
|
369
369
|
ref_key: "avatarRef",
|
|
@@ -373,19 +373,19 @@ const te = () => Date.now() + ee++, re = E({
|
|
|
373
373
|
onError: i
|
|
374
374
|
}, {
|
|
375
375
|
default: d(() => [
|
|
376
|
-
|
|
376
|
+
H(f.$slots, "avatarDefault")
|
|
377
377
|
]),
|
|
378
378
|
_: 3
|
|
379
379
|
}, 8, ["src", "size"]),
|
|
380
|
-
|
|
380
|
+
z(u(ye, {
|
|
381
381
|
ref_key: "cropperDialogRef",
|
|
382
382
|
ref: n,
|
|
383
383
|
title: "更改头像",
|
|
384
384
|
avatarUrl: t.avatarUrl,
|
|
385
|
-
onSubmitImage:
|
|
385
|
+
onSubmitImage: v,
|
|
386
386
|
onDeleteImage: h
|
|
387
387
|
}, null, 8, ["avatarUrl"]), [
|
|
388
|
-
[
|
|
388
|
+
[$, t.showCropper]
|
|
389
389
|
])
|
|
390
390
|
], 64);
|
|
391
391
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),S=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
1
|
+
"use strict";const e=require("vue"),S=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-mQIxU0SD.cjs"),a=require("./index-BOev8isw.cjs"),k=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),B="ElUpload";class O extends Error{constructor(o,s,i,p){super(o),this.name="UploadAjaxError",this.status=s,this.method=i,this.url=p}}function _(r,o,s){let i;return s.response?i=`${s.response.error||s.response}`:s.responseText?i=`${s.responseText}`:i=`fail to ${o.method} ${r} ${s.status}`,new O(i,s.status,o.method,r)}function R(r){const o=r.responseText||r.response;if(!o)return o;try{return JSON.parse(o)}catch{return o}}const T=r=>{typeof XMLHttpRequest>"u"&&a.throwError(B,"XMLHttpRequest is undefined");const o=new XMLHttpRequest,s=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(_(s,r,o))}),o.addEventListener("load",()=>{if(o.status<200||o.status>=300)return r.onError(_(s,r,o));r.onSuccess(R(o))}),o.open(r.method,s,!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},w=["text","picture","picture-card"];let U=1;const h=()=>Date.now()+U++,C=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:w,default:"text"},httpRequest:{type:a.definePropType(Function),default:T},disabled:Boolean,limit:Number}),D=a.buildProps({...C,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)}}),L={style:{"text-align":"left"}},F={class:"cropper-warp"},j={class:"cropper-warp-left"},q=["src"],A={class:"cropper-warp-right"},H={class:"cropper-warp-right-item"},$={class:"cropper-warp-right-value"},z=["src"],M={class:"cropper-warp-right-item"},X={class:"cropper-warp-right-value"},J=["src"],G={class:"dialog-footer"},K=e.defineComponent({__name:"index",props:{title:{type:String,default:""}},emits:["submitImage","deleteImage"],setup(r,{expose:o,emit:s}){const i=s,p=e.ref(),t=e.reactive({isShowDialog:!1,cropperImg:"",cropperImgBase64:"",cropper:null}),c=async l=>{if(!l)return;let n=window.URL||window.webkitURL;t.cropperImg=n.createObjectURL(l),t.isShowDialog=!0,e.nextTick(()=>{v()})},u=()=>{var l;(l=t.cropper)==null||l.destroy(),t.isShowDialog=!1},f=()=>{u()},g=async()=>{const l=await y();i("submitImage",{file:l}),u()},d=async()=>{i("deleteImage")},v=()=>{const l=document.querySelector(".cropper-warp-left-img");l&&l.setAttribute("crossOrigin","anonymous"),t.cropper=new S.Cropper(l,{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")}})},y=()=>new Promise(l=>{t.cropper.getCroppedCanvas().toBlob(n=>{l(n)})}),N=async l=>{let n=window.URL||window.webkitURL;t.cropperImg=n.createObjectURL(l.raw),t.cropper.replace(t.cropperImg)},E=l=>{p.value.clearFiles();const n=l[0];n.uid=h(),p.value.handleStart(n)};return o({openDialog:c}),(l,n)=>{const b=e.resolveComponent("ele-Edit"),x=e.resolveComponent("el-icon"),m=e.resolveComponent("el-button"),P=e.resolveComponent("el-upload"),V=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(V,{modelValue:t.isShowDialog,"onUpdate:modelValue":n[0]||(n[0]=I=>t.isShowDialog=I),width:"769px","before-close":f},{header:e.withCtx(()=>[e.createElementVNode("div",L,[e.createVNode(x,{size:"16",style:{"margin-right":"3px",display:"inline","vertical-align":"middle"}},{default:e.withCtx(()=>[e.createVNode(b)]),_:1}),e.createElementVNode("span",null,e.toDisplayString(r.title),1)])]),footer:e.withCtx(()=>[e.createElementVNode("span",G,[e.createVNode(P,{class:"avatar-uploader",ref_key:"uploadSignRef",ref:p,accept:".jpg,.png",limit:1,"show-file-list":!1,"auto-upload":!1,"on-change":N,"on-exceed":E},{trigger:e.withCtx(()=>[e.createVNode(m,{type:"info",icon:"ele-Picture"},{default:e.withCtx(()=>n[4]||(n[4]=[e.createTextVNode("选择图片")])),_:1,__:[4]})]),default:e.withCtx(()=>[e.createVNode(m,{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(m,{onClick:f,id:"themeBorderButton"},{default:e.withCtx(()=>n[6]||(n[6]=[e.createTextVNode("取 消")])),_:1,__:[6]}),e.createVNode(m,{onClick:g,id:"themeButton"},{default:e.withCtx(()=>n[7]||(n[7]=[e.createTextVNode("确 定")])),_:1,__:[7]})])])]),default:e.withCtx(()=>[e.createElementVNode("div",F,[e.createElementVNode("div",j,[e.createElementVNode("img",{src:t.cropperImg,class:"cropper-warp-left-img"},null,8,q)]),e.createElementVNode("div",A,[n[3]||(n[3]=e.createElementVNode("div",{class:"cropper-warp-right-title"},"预览",-1)),e.createElementVNode("div",H,[e.createElementVNode("div",$,[e.createElementVNode("img",{src:t.cropperImgBase64,class:"cropper-warp-right-value-img"},null,8,z)]),n[1]||(n[1]=e.createElementVNode("div",{class:"cropper-warp-right-label"},"100 x 100",-1))]),e.createElementVNode("div",M,[e.createElementVNode("div",X,[e.createElementVNode("img",{src:t.cropperImgBase64,class:"cropper-warp-right-value-img cropper-size"},null,8,J)]),n[2]||(n[2]=e.createElementVNode("div",{class:"cropper-warp-right-label"},"50 x 50",-1))])])])]),_:1},8,["modelValue"])])}}}),Q=k._export_sfc(K,[["__scopeId","data-v-5d760968"]]),W=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}},emits:["submitImage","deleteImage","clickAvatar"],setup(r,{emit:o}){const s=r,i=e.ref(),p=e.ref(null),t=o,c=()=>!0,u=async()=>{var d;s!=null&&s.banClick||(t("clickAvatar",s.avatarUrl),(d=i.value)==null||d.openDialog(s.avatarBlob))},f=async d=>{t("submitImage",d)},g=async()=>{t("deleteImage")};return(d,v)=>{const y=e.resolveComponent("el-avatar");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(y,{src:r.avatarUrl,onClick:u,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")]),_:3},8,["src","size"]),e.withDirectives(e.createVNode(Q,{ref_key:"cropperDialogRef",ref:i,title:"更改头像",avatarUrl:r.avatarUrl,onSubmitImage:f,onDeleteImage:g},null,8,["avatarUrl"]),[[e.vShow,r.showCropper]])],64)}}});exports._sfc_main=W;exports.genFileId=h;exports.uploadBaseProps=C;exports.uploadListTypes=w;exports.uploadProps=D;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
var sit = Object.defineProperty;
|
|
2
2
|
var lit = (r, e, t) => e in r ? sit(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
3
|
var Cr = (r, e, t) => lit(r, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import {
|
|
5
|
-
import { computed as
|
|
6
|
-
import {
|
|
4
|
+
import { r as S9, i as cW, bz as uit, bA as fW, bv as hW, bw as cit, bB as fit, bC as hit, o as dit, bD as dW, bE as pit, bF as vit, l as lO, bG as git, bH as mit, bI as yit, bJ as uO, bK as bit, bL as wit, bM as xit, g as _it, c as Ea } from "./index-Dt2McMki.js";
|
|
5
|
+
import { computed as Sit } from "vue";
|
|
6
|
+
import { aC as kit, aD as Tit, aE as Cit, i as pW, ao as Ait, B as k9 } from "./index.vue_vue_type_style_index_1_lang-hffXwR3x.js";
|
|
7
7
|
function Eit(r, e) {
|
|
8
|
-
return
|
|
8
|
+
return kit(Tit(r, e, Cit), r + "");
|
|
9
9
|
}
|
|
10
10
|
function Mit(r, e, t) {
|
|
11
11
|
if (!S9(t))
|
|
12
12
|
return !1;
|
|
13
13
|
var n = typeof e;
|
|
14
|
-
return (n == "number" ?
|
|
14
|
+
return (n == "number" ? cW(t) && uit(e, t.length) : n == "string" && e in t) ? fW(t[e], r) : !1;
|
|
15
15
|
}
|
|
16
16
|
function Iit(r) {
|
|
17
17
|
return Eit(function(e, t) {
|
|
@@ -25,9 +25,9 @@ function Iit(r) {
|
|
|
25
25
|
}
|
|
26
26
|
var Dit = "[object Object]", Rit = Function.prototype, Oit = Object.prototype, vW = Rit.toString, Lit = Oit.hasOwnProperty, Nit = vW.call(Object);
|
|
27
27
|
function Pit(r) {
|
|
28
|
-
if (!
|
|
28
|
+
if (!hW(r) || cit(r) != Dit)
|
|
29
29
|
return !1;
|
|
30
|
-
var e =
|
|
30
|
+
var e = fit(r);
|
|
31
31
|
if (e === null)
|
|
32
32
|
return !0;
|
|
33
33
|
var t = Lit.call(e, "constructor") && e.constructor;
|
|
@@ -45,17 +45,17 @@ function Bit(r) {
|
|
|
45
45
|
}
|
|
46
46
|
var Fit = Bit();
|
|
47
47
|
function mE(r, e, t) {
|
|
48
|
-
(t !== void 0 && !
|
|
48
|
+
(t !== void 0 && !fW(r[e], t) || t === void 0 && !(e in r)) && hit(r, e, t);
|
|
49
49
|
}
|
|
50
50
|
function zit(r) {
|
|
51
|
-
return
|
|
51
|
+
return hW(r) && cW(r);
|
|
52
52
|
}
|
|
53
53
|
function yE(r, e) {
|
|
54
54
|
if (!(e === "constructor" && typeof r[e] == "function") && e != "__proto__")
|
|
55
55
|
return r[e];
|
|
56
56
|
}
|
|
57
57
|
function jit(r) {
|
|
58
|
-
return
|
|
58
|
+
return dit(r, dW(r));
|
|
59
59
|
}
|
|
60
60
|
function Vit(r, e, t, n, i, a, o) {
|
|
61
61
|
var s = yE(r, t), l = yE(e, t), u = o.get(l);
|
|
@@ -65,14 +65,14 @@ function Vit(r, e, t, n, i, a, o) {
|
|
|
65
65
|
}
|
|
66
66
|
var c = a ? a(s, l, t + "", r, e, o) : void 0, f = c === void 0;
|
|
67
67
|
if (f) {
|
|
68
|
-
var h = lO(l), d = !h &&
|
|
69
|
-
c = l, h || d || p ? lO(s) ? c = s : zit(s) ? c =
|
|
68
|
+
var h = lO(l), d = !h && pit(l), p = !h && !d && vit(l);
|
|
69
|
+
c = l, h || d || p ? lO(s) ? c = s : zit(s) ? c = git(s) : d ? (f = !1, c = mit(l, !0)) : p ? (f = !1, c = yit(l, !0)) : c = [] : Pit(l) || uO(l) ? (c = s, uO(s) ? c = jit(s) : (!S9(s) || bit(s)) && (c = wit(l))) : f = !1;
|
|
70
70
|
}
|
|
71
71
|
f && (o.set(l, c), i(c, l, n, a, o), o.delete(l)), mE(r, t, c);
|
|
72
72
|
}
|
|
73
73
|
function gW(r, e, t, n, i) {
|
|
74
74
|
r !== e && Fit(e, function(a, o) {
|
|
75
|
-
if (i || (i = new
|
|
75
|
+
if (i || (i = new xit()), S9(a))
|
|
76
76
|
Vit(r, e, o, t, gW, n, i);
|
|
77
77
|
else {
|
|
78
78
|
var s = n ? n(yE(r, o), a, o + "", r, e, i) : void 0;
|
|
@@ -387,7 +387,7 @@ var Git = Wit();
|
|
|
387
387
|
const I9t = /* @__PURE__ */ bx(Git), $it = (r) => r == null ? void 0 : r.map((t) => (t = yW(t), t)), mW = async () => {
|
|
388
388
|
var t, n, i, a, o, s, l, u, c, f, h, d;
|
|
389
389
|
let r;
|
|
390
|
-
const e = await
|
|
390
|
+
const e = await _it({
|
|
391
391
|
key: {
|
|
392
392
|
type: "structure",
|
|
393
393
|
pageKey: "menu",
|
|
@@ -472,6 +472,11 @@ const I9t = /* @__PURE__ */ bx(Git), $it = (r) => r == null ? void 0 : r.map((t)
|
|
|
472
472
|
label: "标签名",
|
|
473
473
|
type: "Input"
|
|
474
474
|
},
|
|
475
|
+
{
|
|
476
|
+
key: "prop",
|
|
477
|
+
label: "属性名",
|
|
478
|
+
type: "Input"
|
|
479
|
+
},
|
|
475
480
|
{
|
|
476
481
|
key: "type",
|
|
477
482
|
label: "类型",
|
|
@@ -514,6 +519,11 @@ const I9t = /* @__PURE__ */ bx(Git), $it = (r) => r == null ? void 0 : r.map((t)
|
|
|
514
519
|
label: "标签名",
|
|
515
520
|
type: "Input"
|
|
516
521
|
},
|
|
522
|
+
{
|
|
523
|
+
key: "prop",
|
|
524
|
+
label: "属性名",
|
|
525
|
+
type: "Input"
|
|
526
|
+
},
|
|
517
527
|
{
|
|
518
528
|
key: "type",
|
|
519
529
|
label: "类型",
|
|
@@ -589,12 +599,17 @@ const I9t = /* @__PURE__ */ bx(Git), $it = (r) => r == null ? void 0 : r.map((t)
|
|
|
589
599
|
type: "Input",
|
|
590
600
|
contents: []
|
|
591
601
|
}
|
|
592
|
-
], Jit =
|
|
602
|
+
], Jit = Sit(async () => await Zit()), Qit = [
|
|
593
603
|
{
|
|
594
604
|
key: "label",
|
|
595
605
|
label: "标签名",
|
|
596
606
|
type: "Input"
|
|
597
607
|
},
|
|
608
|
+
{
|
|
609
|
+
key: "prop",
|
|
610
|
+
label: "属性名",
|
|
611
|
+
type: "Input"
|
|
612
|
+
},
|
|
598
613
|
{
|
|
599
614
|
key: "type",
|
|
600
615
|
label: "类型",
|
|
@@ -618,6 +633,11 @@ const I9t = /* @__PURE__ */ bx(Git), $it = (r) => r == null ? void 0 : r.map((t)
|
|
|
618
633
|
label: "标签名",
|
|
619
634
|
type: "Input"
|
|
620
635
|
},
|
|
636
|
+
{
|
|
637
|
+
key: "prop",
|
|
638
|
+
label: "属性名",
|
|
639
|
+
type: "Input"
|
|
640
|
+
},
|
|
621
641
|
{
|
|
622
642
|
key: "type",
|
|
623
643
|
label: "类型",
|
|
@@ -635,6 +655,11 @@ const I9t = /* @__PURE__ */ bx(Git), $it = (r) => r == null ? void 0 : r.map((t)
|
|
|
635
655
|
label: "标签名",
|
|
636
656
|
type: "Input"
|
|
637
657
|
},
|
|
658
|
+
{
|
|
659
|
+
key: "prop",
|
|
660
|
+
label: "属性名",
|
|
661
|
+
type: "Input"
|
|
662
|
+
},
|
|
638
663
|
{
|
|
639
664
|
key: "type",
|
|
640
665
|
label: "类型",
|
|
@@ -647,6 +672,11 @@ const I9t = /* @__PURE__ */ bx(Git), $it = (r) => r == null ? void 0 : r.map((t)
|
|
|
647
672
|
label: "标签名",
|
|
648
673
|
type: "Input"
|
|
649
674
|
},
|
|
675
|
+
{
|
|
676
|
+
key: "prop",
|
|
677
|
+
label: "属性名",
|
|
678
|
+
type: "Input"
|
|
679
|
+
},
|
|
650
680
|
{
|
|
651
681
|
key: "type",
|
|
652
682
|
label: "类型",
|
|
@@ -110998,18 +111028,18 @@ export {
|
|
|
110998
111028
|
Fit as b,
|
|
110999
111029
|
zit as c,
|
|
111000
111030
|
I9t as d,
|
|
111001
|
-
|
|
111002
|
-
|
|
111031
|
+
O9t as e,
|
|
111032
|
+
D9t as f,
|
|
111003
111033
|
bx as g,
|
|
111004
|
-
|
|
111034
|
+
N9t as h,
|
|
111005
111035
|
Pit as i,
|
|
111006
111036
|
B9t as j,
|
|
111007
|
-
|
|
111008
|
-
|
|
111037
|
+
L9t as k,
|
|
111038
|
+
mW as l,
|
|
111009
111039
|
jp as m,
|
|
111010
|
-
|
|
111011
|
-
|
|
111012
|
-
|
|
111040
|
+
Ys as n,
|
|
111041
|
+
Yyt as o,
|
|
111042
|
+
Yit as p,
|
|
111013
111043
|
Y9t as q,
|
|
111014
111044
|
F9t as r,
|
|
111015
111045
|
P9t as s,
|