sun-card-design 1.1.2 → 1.1.10
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/mobile/sun-card-design-mobile.es13.js +1 -1
- package/dist/mobile/sun-card-design-mobile.es14.js +3 -3
- package/dist/mobile/sun-card-design-mobile.es15.js +7 -3
- package/dist/mobile/sun-card-design-mobile.es2.js +8 -4
- package/dist/mobile/sun-card-design-mobile.es25.js +9 -4
- package/dist/mobile/sun-card-design-mobile.es49.js +8 -9
- package/dist/mobile/sun-card-design-mobile.es5.js +7 -12
- package/dist/mobile/sun-card-design-mobile.es67.js +37 -0
- package/dist/mobile/sun-card-design-mobile.es7.js +23 -4
- package/dist/mobile/sun-card-design-mobile.es72.js +4 -4
- package/dist/mobile/sun-card-design-mobile.es73.js +11 -30
- package/dist/mobile/sun-card-design-mobile.es75.js +10 -10
- package/dist/mobile/sun-card-design-mobile.es84.js +2 -4
- package/dist/mobile/sun-card-design-mobile.es85.js +42 -10
- package/dist/mobile/sun-card-design-mobile.es86.js +133 -94
- package/dist/mobile/sun-card-design-mobile.es87.js +110 -12
- package/dist/mobile/sun-card-design-mobile.es88.js +150 -145
- package/dist/mobile/sun-card-design-mobile.es89.js +36 -99
- package/dist/pc/sun-card-design-pc.es13.js +1 -1
- package/dist/pc/sun-card-design-pc.es14.js +3 -3
- package/dist/pc/sun-card-design-pc.es15.js +7 -3
- package/dist/pc/sun-card-design-pc.es2.js +8 -4
- package/dist/pc/sun-card-design-pc.es25.js +9 -4
- package/dist/pc/sun-card-design-pc.es32.js +2 -2
- package/dist/pc/sun-card-design-pc.es33.js +2 -2
- package/dist/pc/sun-card-design-pc.es34.js +2 -2
- package/dist/pc/sun-card-design-pc.es35.js +2 -2
- package/dist/pc/sun-card-design-pc.es36.js +2 -2
- package/dist/pc/sun-card-design-pc.es37.js +2 -2
- package/dist/pc/sun-card-design-pc.es38.js +2 -2
- package/dist/pc/sun-card-design-pc.es49.js +8 -9
- package/dist/pc/sun-card-design-pc.es5.js +7 -12
- package/dist/pc/sun-card-design-pc.es68.js +2 -2
- package/dist/pc/sun-card-design-pc.es7.js +23 -4
- package/dist/pc/sun-card-design-pc.es70.js +2 -2
- package/dist/pc/sun-card-design-pc.es72.js +4 -4
- package/dist/pc/sun-card-design-pc.es73.js +12 -31
- package/dist/pc/sun-card-design-pc.es74.js +2 -175
- package/dist/pc/sun-card-design-pc.es75.js +145 -9
- package/dist/pc/sun-card-design-pc.es76.js +2 -107
- package/dist/pc/sun-card-design-pc.es77.js +2 -2
- package/dist/pc/sun-card-design-pc.es78.js +2 -146
- package/dist/pc/sun-card-design-pc.es79.js +2 -2
- package/dist/pc/sun-card-design-pc.es80.js +2 -2
- package/dist/pc/sun-card-design-pc.es81.js +2 -2
- package/dist/pc/sun-card-design-pc.es82.js +2 -2
- package/dist/pc/sun-card-design-pc.es83.js +2 -2
- package/dist/pc/sun-card-design-pc.es84.js +173 -2
- package/dist/pc/sun-card-design-pc.es85.js +42 -2
- package/dist/pc/sun-card-design-pc.es86.js +146 -2
- package/dist/pc/sun-card-design-pc.es87.js +110 -12
- package/dist/pc/sun-card-design-pc.es88.js +150 -145
- package/dist/pc/sun-card-design-pc.es89.js +36 -99
- package/dist/sun-card-design.css +1 -1
- package/package.json +2 -1
|
@@ -1,112 +1,49 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
r: bound01(r, 255) * 255,
|
|
5
|
-
g: bound01(g, 255) * 255,
|
|
6
|
-
b: bound01(b, 255) * 255
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
function hue2rgb(p, q, t) {
|
|
10
|
-
if (t < 0) {
|
|
11
|
-
t += 1;
|
|
12
|
-
}
|
|
13
|
-
if (t > 1) {
|
|
14
|
-
t -= 1;
|
|
1
|
+
function bound01(n, max) {
|
|
2
|
+
if (isOnePointZero(n)) {
|
|
3
|
+
n = "100%";
|
|
15
4
|
}
|
|
16
|
-
|
|
17
|
-
|
|
5
|
+
var isPercent = isPercentage(n);
|
|
6
|
+
n = max === 360 ? n : Math.min(max, Math.max(0, parseFloat(n)));
|
|
7
|
+
if (isPercent) {
|
|
8
|
+
n = parseInt(String(n * max), 10) / 100;
|
|
18
9
|
}
|
|
19
|
-
if (
|
|
20
|
-
return
|
|
10
|
+
if (Math.abs(n - max) < 1e-6) {
|
|
11
|
+
return 1;
|
|
21
12
|
}
|
|
22
|
-
if (
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
return p;
|
|
26
|
-
}
|
|
27
|
-
function hslToRgb(h, s, l) {
|
|
28
|
-
var r;
|
|
29
|
-
var g;
|
|
30
|
-
var b;
|
|
31
|
-
h = bound01(h, 360);
|
|
32
|
-
s = bound01(s, 100);
|
|
33
|
-
l = bound01(l, 100);
|
|
34
|
-
if (s === 0) {
|
|
35
|
-
g = l;
|
|
36
|
-
b = l;
|
|
37
|
-
r = l;
|
|
13
|
+
if (max === 360) {
|
|
14
|
+
n = (n < 0 ? n % max + max : n % max) / parseFloat(String(max));
|
|
38
15
|
} else {
|
|
39
|
-
|
|
40
|
-
var p = 2 * l - q;
|
|
41
|
-
r = hue2rgb(p, q, h + 1 / 3);
|
|
42
|
-
g = hue2rgb(p, q, h);
|
|
43
|
-
b = hue2rgb(p, q, h - 1 / 3);
|
|
16
|
+
n = n % max / parseFloat(String(max));
|
|
44
17
|
}
|
|
45
|
-
return
|
|
18
|
+
return n;
|
|
46
19
|
}
|
|
47
|
-
function
|
|
48
|
-
|
|
49
|
-
g = bound01(g, 255);
|
|
50
|
-
b = bound01(b, 255);
|
|
51
|
-
var max = Math.max(r, g, b);
|
|
52
|
-
var min = Math.min(r, g, b);
|
|
53
|
-
var h = 0;
|
|
54
|
-
var v = max;
|
|
55
|
-
var d = max - min;
|
|
56
|
-
var s = max === 0 ? 0 : d / max;
|
|
57
|
-
if (max === min) {
|
|
58
|
-
h = 0;
|
|
59
|
-
} else {
|
|
60
|
-
switch (max) {
|
|
61
|
-
case r:
|
|
62
|
-
h = (g - b) / d + (g < b ? 6 : 0);
|
|
63
|
-
break;
|
|
64
|
-
case g:
|
|
65
|
-
h = (b - r) / d + 2;
|
|
66
|
-
break;
|
|
67
|
-
case b:
|
|
68
|
-
h = (r - g) / d + 4;
|
|
69
|
-
break;
|
|
70
|
-
}
|
|
71
|
-
h /= 6;
|
|
72
|
-
}
|
|
73
|
-
return { h, s, v };
|
|
20
|
+
function isOnePointZero(n) {
|
|
21
|
+
return typeof n === "string" && n.indexOf(".") !== -1 && parseFloat(n) === 1;
|
|
74
22
|
}
|
|
75
|
-
function
|
|
76
|
-
|
|
77
|
-
s = bound01(s, 100);
|
|
78
|
-
v = bound01(v, 100);
|
|
79
|
-
var i = Math.floor(h);
|
|
80
|
-
var f = h - i;
|
|
81
|
-
var p = v * (1 - s);
|
|
82
|
-
var q = v * (1 - f * s);
|
|
83
|
-
var t = v * (1 - (1 - f) * s);
|
|
84
|
-
var mod = i % 6;
|
|
85
|
-
var r = [v, q, p, p, t, v][mod];
|
|
86
|
-
var g = [t, v, v, q, p, p][mod];
|
|
87
|
-
var b = [p, p, t, v, v, q][mod];
|
|
88
|
-
return { r: r * 255, g: g * 255, b: b * 255 };
|
|
23
|
+
function isPercentage(n) {
|
|
24
|
+
return typeof n === "string" && n.indexOf("%") !== -1;
|
|
89
25
|
}
|
|
90
|
-
function
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
return hex.join("");
|
|
26
|
+
function boundAlpha(a) {
|
|
27
|
+
a = parseFloat(a);
|
|
28
|
+
if (isNaN(a) || a < 0 || a > 1) {
|
|
29
|
+
a = 1;
|
|
30
|
+
}
|
|
31
|
+
return a;
|
|
97
32
|
}
|
|
98
|
-
function
|
|
99
|
-
|
|
33
|
+
function convertToPercentage(n) {
|
|
34
|
+
if (n <= 1) {
|
|
35
|
+
return "".concat(Number(n) * 100, "%");
|
|
36
|
+
}
|
|
37
|
+
return n;
|
|
100
38
|
}
|
|
101
|
-
function
|
|
102
|
-
return
|
|
39
|
+
function pad2(c) {
|
|
40
|
+
return c.length === 1 ? "0" + c : String(c);
|
|
103
41
|
}
|
|
104
42
|
export {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
rgbToRgb
|
|
43
|
+
bound01,
|
|
44
|
+
boundAlpha,
|
|
45
|
+
convertToPercentage,
|
|
46
|
+
isOnePointZero,
|
|
47
|
+
isPercentage,
|
|
48
|
+
pad2
|
|
112
49
|
};
|
|
@@ -61,7 +61,7 @@ const _sfc_main = {
|
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
|
-
const Panorama = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
64
|
+
const Panorama = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-829605cc"]]);
|
|
65
65
|
export {
|
|
66
66
|
Panorama as default
|
|
67
67
|
};
|
|
@@ -10,9 +10,9 @@ const _sfc_main = {
|
|
|
10
10
|
setup(__props) {
|
|
11
11
|
const props = __props;
|
|
12
12
|
const queryCanvasEl = () => {
|
|
13
|
-
const elTo = document.querySelector(".
|
|
13
|
+
const elTo = document.querySelector(".mb-main");
|
|
14
14
|
if (elTo) return elTo;
|
|
15
|
-
const el = document.querySelector(".
|
|
15
|
+
const el = document.querySelector(".pc-main");
|
|
16
16
|
return el;
|
|
17
17
|
};
|
|
18
18
|
const onGenerate = async () => {
|
|
@@ -53,7 +53,7 @@ const _sfc_main = {
|
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
|
-
const GenerateImg = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
56
|
+
const GenerateImg = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2048419e"]]);
|
|
57
57
|
export {
|
|
58
58
|
GenerateImg as default
|
|
59
59
|
};
|
|
@@ -6,13 +6,16 @@ const _hoisted_1 = { class: "main-grid" };
|
|
|
6
6
|
const _sfc_main = {
|
|
7
7
|
__name: "gridComp",
|
|
8
8
|
props: ["record"],
|
|
9
|
-
emits: ["clickEvent"],
|
|
9
|
+
emits: ["clickEvent", "fileUpdateEvent"],
|
|
10
10
|
setup(__props, { emit: __emit }) {
|
|
11
11
|
const props = __props;
|
|
12
12
|
const emit = __emit;
|
|
13
13
|
const onClick = (record) => {
|
|
14
14
|
emit("clickEvent", record);
|
|
15
15
|
};
|
|
16
|
+
const onUpdate = (record) => {
|
|
17
|
+
emit("fileUpdateEvent", record);
|
|
18
|
+
};
|
|
16
19
|
return (_ctx, _cache) => {
|
|
17
20
|
const _component_a_col = resolveComponent("a-col");
|
|
18
21
|
const _component_a_row = resolveComponent("a-row");
|
|
@@ -43,7 +46,8 @@ const _sfc_main = {
|
|
|
43
46
|
return openBlock(), createBlock(FormItem, {
|
|
44
47
|
record: element,
|
|
45
48
|
key: index2,
|
|
46
|
-
onClickEvent: onClick
|
|
49
|
+
onClickEvent: onClick,
|
|
50
|
+
onFileUpdateEvent: onUpdate
|
|
47
51
|
}, null, 8, ["record"]);
|
|
48
52
|
}), 128))
|
|
49
53
|
], 4)
|
|
@@ -58,7 +62,7 @@ const _sfc_main = {
|
|
|
58
62
|
};
|
|
59
63
|
}
|
|
60
64
|
};
|
|
61
|
-
const Grid = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
65
|
+
const Grid = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4c32288a"]]);
|
|
62
66
|
export {
|
|
63
67
|
Grid as default
|
|
64
68
|
};
|
|
@@ -6,7 +6,7 @@ import _export_sfc from "./sun-card-design-pc.es28.js";
|
|
|
6
6
|
const _sfc_main = {
|
|
7
7
|
__name: "pcPanel",
|
|
8
8
|
props: ["record", "config"],
|
|
9
|
-
emits: ["clickEvent"],
|
|
9
|
+
emits: ["clickEvent", "fileUpdateEvent"],
|
|
10
10
|
setup(__props, { emit: __emit }) {
|
|
11
11
|
const props = __props;
|
|
12
12
|
if (props?.config?.variableList) {
|
|
@@ -17,9 +17,12 @@ const _sfc_main = {
|
|
|
17
17
|
const onClick = (record) => {
|
|
18
18
|
emit("clickEvent", record);
|
|
19
19
|
};
|
|
20
|
+
const onUpdate = (record) => {
|
|
21
|
+
emit("fileUpdateEvent", record);
|
|
22
|
+
};
|
|
20
23
|
return (_ctx, _cache) => {
|
|
21
24
|
return openBlock(), createElementBlock("div", {
|
|
22
|
-
class: "msg-main",
|
|
25
|
+
class: "msg-main pc-main",
|
|
23
26
|
style: normalizeStyle({
|
|
24
27
|
background: props.record.config.background,
|
|
25
28
|
padding: props.record.config.padding + "px",
|
|
@@ -31,14 +34,15 @@ const _sfc_main = {
|
|
|
31
34
|
recordData: props.record,
|
|
32
35
|
record: item,
|
|
33
36
|
key: index,
|
|
34
|
-
onClickEvent: onClick
|
|
37
|
+
onClickEvent: onClick,
|
|
38
|
+
onFileUpdateEvent: onUpdate
|
|
35
39
|
}, null, 8, ["recordData", "record"]);
|
|
36
40
|
}), 128))
|
|
37
41
|
], 4);
|
|
38
42
|
};
|
|
39
43
|
}
|
|
40
44
|
};
|
|
41
|
-
const PcPanel = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
45
|
+
const PcPanel = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-31e053ac"]]);
|
|
42
46
|
export {
|
|
43
47
|
PcPanel as default
|
|
44
48
|
};
|
|
@@ -31,13 +31,16 @@ const _hoisted_1 = {
|
|
|
31
31
|
const _sfc_main = {
|
|
32
32
|
__name: "formItem",
|
|
33
33
|
props: ["record"],
|
|
34
|
-
emits: ["clickEvent"],
|
|
34
|
+
emits: ["clickEvent", "fileUpdateEvent"],
|
|
35
35
|
setup(__props, { emit: __emit }) {
|
|
36
36
|
const props = __props;
|
|
37
37
|
const emit = __emit;
|
|
38
38
|
const onClick = (record) => {
|
|
39
39
|
emit("clickEvent", record);
|
|
40
40
|
};
|
|
41
|
+
const onUpdate = (record) => {
|
|
42
|
+
emit("fileUpdateEvent", record);
|
|
43
|
+
};
|
|
41
44
|
return (_ctx, _cache) => {
|
|
42
45
|
return __props.record.state !== false ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
43
46
|
__props.record.type === "title" ? (openBlock(), createBlock(Title, {
|
|
@@ -57,7 +60,8 @@ const _sfc_main = {
|
|
|
57
60
|
__props.record.type === "file" ? (openBlock(), createBlock(File, {
|
|
58
61
|
key: 3,
|
|
59
62
|
record: props.record,
|
|
60
|
-
onClickEvent: onClick
|
|
63
|
+
onClickEvent: onClick,
|
|
64
|
+
onFileUpdateEvent: onUpdate
|
|
61
65
|
}, null, 8, ["record"])) : createCommentVNode("", true),
|
|
62
66
|
__props.record.type === "upload" ? (openBlock(), createBlock(Upload, {
|
|
63
67
|
key: 4,
|
|
@@ -104,7 +108,8 @@ const _sfc_main = {
|
|
|
104
108
|
__props.record.type === "grid" ? (openBlock(), createBlock(Grid, {
|
|
105
109
|
key: 14,
|
|
106
110
|
record: props.record,
|
|
107
|
-
onClickEvent: onClick
|
|
111
|
+
onClickEvent: onClick,
|
|
112
|
+
onFileUpdateEvent: onUpdate
|
|
108
113
|
}, null, 8, ["record"])) : createCommentVNode("", true),
|
|
109
114
|
__props.record.type === "enterpriseSearch" ? (openBlock(), createBlock(EnterpriseSearch, {
|
|
110
115
|
key: 15,
|
|
@@ -142,7 +147,7 @@ const _sfc_main = {
|
|
|
142
147
|
};
|
|
143
148
|
}
|
|
144
149
|
};
|
|
145
|
-
const FormItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
150
|
+
const FormItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0fe9e516"]]);
|
|
146
151
|
export {
|
|
147
152
|
FormItem as default
|
|
148
153
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createVNode } from "vue";
|
|
2
|
-
import EditOutlined$1 from "./sun-card-design-pc.
|
|
3
|
-
import Icon from "./sun-card-design-pc.
|
|
2
|
+
import EditOutlined$1 from "./sun-card-design-pc.es81.js";
|
|
3
|
+
import Icon from "./sun-card-design-pc.es75.js";
|
|
4
4
|
function _objectSpread(target) {
|
|
5
5
|
for (var i = 1; i < arguments.length; i++) {
|
|
6
6
|
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createVNode } from "vue";
|
|
2
|
-
import DeleteOutlined$1 from "./sun-card-design-pc.
|
|
3
|
-
import Icon from "./sun-card-design-pc.
|
|
2
|
+
import DeleteOutlined$1 from "./sun-card-design-pc.es79.js";
|
|
3
|
+
import Icon from "./sun-card-design-pc.es75.js";
|
|
4
4
|
function _objectSpread(target) {
|
|
5
5
|
for (var i = 1; i < arguments.length; i++) {
|
|
6
6
|
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createVNode } from "vue";
|
|
2
|
-
import CloseOutlined$1 from "./sun-card-design-pc.
|
|
3
|
-
import Icon from "./sun-card-design-pc.
|
|
2
|
+
import CloseOutlined$1 from "./sun-card-design-pc.es78.js";
|
|
3
|
+
import Icon from "./sun-card-design-pc.es75.js";
|
|
4
4
|
function _objectSpread(target) {
|
|
5
5
|
for (var i = 1; i < arguments.length; i++) {
|
|
6
6
|
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createVNode } from "vue";
|
|
2
|
-
import CheckOutlined$1 from "./sun-card-design-pc.
|
|
3
|
-
import Icon from "./sun-card-design-pc.
|
|
2
|
+
import CheckOutlined$1 from "./sun-card-design-pc.es74.js";
|
|
3
|
+
import Icon from "./sun-card-design-pc.es75.js";
|
|
4
4
|
function _objectSpread(target) {
|
|
5
5
|
for (var i = 1; i < arguments.length; i++) {
|
|
6
6
|
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createVNode } from "vue";
|
|
2
|
-
import ClearOutlined$1 from "./sun-card-design-pc.
|
|
3
|
-
import Icon from "./sun-card-design-pc.
|
|
2
|
+
import ClearOutlined$1 from "./sun-card-design-pc.es76.js";
|
|
3
|
+
import Icon from "./sun-card-design-pc.es75.js";
|
|
4
4
|
function _objectSpread(target) {
|
|
5
5
|
for (var i = 1; i < arguments.length; i++) {
|
|
6
6
|
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createVNode } from "vue";
|
|
2
|
-
import DownloadOutlined$1 from "./sun-card-design-pc.
|
|
3
|
-
import Icon from "./sun-card-design-pc.
|
|
2
|
+
import DownloadOutlined$1 from "./sun-card-design-pc.es80.js";
|
|
3
|
+
import Icon from "./sun-card-design-pc.es75.js";
|
|
4
4
|
function _objectSpread(target) {
|
|
5
5
|
for (var i = 1; i < arguments.length; i++) {
|
|
6
6
|
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createVNode } from "vue";
|
|
2
|
-
import SearchOutlined$1 from "./sun-card-design-pc.
|
|
3
|
-
import Icon from "./sun-card-design-pc.
|
|
2
|
+
import SearchOutlined$1 from "./sun-card-design-pc.es82.js";
|
|
3
|
+
import Icon from "./sun-card-design-pc.es75.js";
|
|
4
4
|
function _objectSpread(target) {
|
|
5
5
|
for (var i = 1; i < arguments.length; i++) {
|
|
6
6
|
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref, onUnmounted, createElementBlock, createCommentVNode, openBlock,
|
|
1
|
+
import { ref, onUnmounted, createElementBlock, createCommentVNode, openBlock, createBlock, createElementVNode, unref } from "vue";
|
|
2
2
|
import * as THREE from "three";
|
|
3
3
|
import { OrbitControls } from "./sun-card-design-pc.es58.js";
|
|
4
4
|
import TWEEN from "@tweenjs/tween.js";
|
|
@@ -172,22 +172,21 @@ const _sfc_main = {
|
|
|
172
172
|
});
|
|
173
173
|
return (_ctx, _cache) => {
|
|
174
174
|
return show.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
175
|
+
isClose.value ? (openBlock(), createBlock(unref(CloseCircleFilled), {
|
|
176
|
+
key: 0,
|
|
177
|
+
class: "icon",
|
|
178
|
+
onClick: closeView
|
|
179
|
+
})) : createCommentVNode("", true),
|
|
175
180
|
createElementVNode("div", {
|
|
176
181
|
ref_key: "containerRef",
|
|
177
182
|
ref: containerRef,
|
|
178
183
|
class: "canvas-view"
|
|
179
|
-
},
|
|
180
|
-
isClose.value ? (openBlock(), createBlock(unref(CloseCircleFilled), {
|
|
181
|
-
key: 0,
|
|
182
|
-
class: "icon",
|
|
183
|
-
onClick: closeView
|
|
184
|
-
})) : createCommentVNode("", true)
|
|
185
|
-
], 512)
|
|
184
|
+
}, null, 512)
|
|
186
185
|
])) : createCommentVNode("", true);
|
|
187
186
|
};
|
|
188
187
|
}
|
|
189
188
|
};
|
|
190
|
-
const PanoramaView = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
189
|
+
const PanoramaView = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d6ec0f1f"]]);
|
|
191
190
|
export {
|
|
192
191
|
PanoramaView as default
|
|
193
192
|
};
|
|
@@ -25,27 +25,21 @@ const _sfc_main = {
|
|
|
25
25
|
EditOutlined
|
|
26
26
|
};
|
|
27
27
|
const emit = __emit;
|
|
28
|
-
const obj = {
|
|
29
|
-
primary: "#0066ff",
|
|
30
|
-
default: "#fff",
|
|
31
|
-
unimportant: "#f0f0f0",
|
|
32
|
-
important: "#4e40e5"
|
|
33
|
-
};
|
|
34
28
|
const getWidth = () => {
|
|
35
|
-
const
|
|
29
|
+
const obj = {
|
|
36
30
|
auto: "auto",
|
|
37
31
|
all: "100%",
|
|
38
32
|
fixed: props.record.options.style.widthValue + "px"
|
|
39
33
|
};
|
|
40
|
-
return
|
|
34
|
+
return obj[props.record.options.style.widthType];
|
|
41
35
|
};
|
|
42
36
|
const getAlign = () => {
|
|
43
|
-
const
|
|
37
|
+
const obj = {
|
|
44
38
|
left: "flex-start",
|
|
45
39
|
center: "center",
|
|
46
40
|
right: "flex-end"
|
|
47
41
|
};
|
|
48
|
-
return
|
|
42
|
+
return obj[props.record.options.style.align];
|
|
49
43
|
};
|
|
50
44
|
const onClick = () => {
|
|
51
45
|
emit("clickEvent", props.record);
|
|
@@ -62,8 +56,9 @@ const _sfc_main = {
|
|
|
62
56
|
type: "primary",
|
|
63
57
|
size: props.record.options.style.size,
|
|
64
58
|
style: normalizeStyle({
|
|
65
|
-
background:
|
|
59
|
+
background: props.record.options.style.background,
|
|
66
60
|
color: props.record.options.style.color,
|
|
61
|
+
borderRadius: props.record.options.style.borderRadius + "px",
|
|
67
62
|
width: getWidth(),
|
|
68
63
|
float: props.record.options.style.align
|
|
69
64
|
}),
|
|
@@ -86,7 +81,7 @@ const _sfc_main = {
|
|
|
86
81
|
};
|
|
87
82
|
}
|
|
88
83
|
};
|
|
89
|
-
const Button = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
84
|
+
const Button = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-444f05bb"]]);
|
|
90
85
|
export {
|
|
91
86
|
Button as default
|
|
92
87
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createVNode } from "vue";
|
|
2
|
-
import CloseCircleFilled$1 from "./sun-card-design-pc.
|
|
3
|
-
import Icon from "./sun-card-design-pc.
|
|
2
|
+
import CloseCircleFilled$1 from "./sun-card-design-pc.es77.js";
|
|
3
|
+
import Icon from "./sun-card-design-pc.es75.js";
|
|
4
4
|
function _objectSpread(target) {
|
|
5
5
|
for (var i = 1; i < arguments.length; i++) {
|
|
6
6
|
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createElementBlock, openBlock, createElementVNode, unref, normalizeStyle, toDisplayString } from "vue";
|
|
1
|
+
import { resolveComponent, createElementBlock, openBlock, createElementVNode, createCommentVNode, unref, normalizeStyle, toDisplayString, createVNode, withCtx, createTextVNode } from "vue";
|
|
2
2
|
import { fileIconSvg } from "./sun-card-design-pc.es41.js";
|
|
3
3
|
import { renderTextByVariables } from "./sun-card-design-pc.es26.js";
|
|
4
4
|
/* empty css */
|
|
@@ -8,14 +8,18 @@ const _hoisted_2 = ["innerHTML"];
|
|
|
8
8
|
const _sfc_main = {
|
|
9
9
|
__name: "fileComp",
|
|
10
10
|
props: ["record"],
|
|
11
|
-
emits: ["clickEvent"],
|
|
11
|
+
emits: ["clickEvent", "fileUpdateEvent"],
|
|
12
12
|
setup(__props, { emit: __emit }) {
|
|
13
13
|
const props = __props;
|
|
14
14
|
const emit = __emit;
|
|
15
15
|
const onClick = () => {
|
|
16
16
|
emit("clickEvent", props.record);
|
|
17
17
|
};
|
|
18
|
+
const onUpdate = () => {
|
|
19
|
+
emit("fileUpdateEvent", props.record);
|
|
20
|
+
};
|
|
18
21
|
return (_ctx, _cache) => {
|
|
22
|
+
const _component_a_button = resolveComponent("a-button");
|
|
19
23
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
20
24
|
createElementVNode("div", null, [
|
|
21
25
|
createElementVNode("div", {
|
|
@@ -39,13 +43,28 @@ const _sfc_main = {
|
|
|
39
43
|
lineHeight: "20px",
|
|
40
44
|
margin: "5px 0 0"
|
|
41
45
|
})
|
|
42
|
-
}, toDisplayString(unref(renderTextByVariables)(props.record.options.subtitle)), 5)
|
|
46
|
+
}, toDisplayString(unref(renderTextByVariables)(props.record.options.subtitle)), 5),
|
|
47
|
+
props.record.options?.isUpdate ? (openBlock(), createElementBlock("div", {
|
|
48
|
+
key: 0,
|
|
49
|
+
style: { "margin-top": "8px" },
|
|
50
|
+
onClick: onUpdate
|
|
51
|
+
}, [
|
|
52
|
+
createVNode(_component_a_button, {
|
|
53
|
+
type: "primary",
|
|
54
|
+
size: "small"
|
|
55
|
+
}, {
|
|
56
|
+
default: withCtx(() => [
|
|
57
|
+
createTextVNode(toDisplayString(props.record.options.updateText), 1)
|
|
58
|
+
]),
|
|
59
|
+
_: 1
|
|
60
|
+
})
|
|
61
|
+
])) : createCommentVNode("", true)
|
|
43
62
|
])
|
|
44
63
|
]);
|
|
45
64
|
};
|
|
46
65
|
}
|
|
47
66
|
};
|
|
48
|
-
const File = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
67
|
+
const File = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8e4c7abb"]]);
|
|
49
68
|
export {
|
|
50
69
|
File as default
|
|
51
70
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createVNode } from "vue";
|
|
2
|
-
import UploadOutlined$1 from "./sun-card-design-pc.
|
|
3
|
-
import Icon from "./sun-card-design-pc.
|
|
2
|
+
import UploadOutlined$1 from "./sun-card-design-pc.es83.js";
|
|
3
|
+
import Icon from "./sun-card-design-pc.es75.js";
|
|
4
4
|
function _objectSpread(target) {
|
|
5
5
|
for (var i = 1; i < arguments.length; i++) {
|
|
6
6
|
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { getSecondaryColor, warning, isIconDefinition, generate } from "./sun-card-design-pc.es73.js";
|
|
2
|
-
import { reactive } from "vue";
|
|
1
|
+
import { getSecondaryColor, useInsertStyles, warning, isIconDefinition, generate } from "./sun-card-design-pc.es73.js";
|
|
3
2
|
var _excluded = ["icon", "primaryColor", "secondaryColor"];
|
|
4
3
|
function _objectWithoutProperties(source, excluded) {
|
|
5
4
|
if (source == null) return {};
|
|
@@ -51,11 +50,11 @@ function _defineProperty(obj, key, value) {
|
|
|
51
50
|
}
|
|
52
51
|
return obj;
|
|
53
52
|
}
|
|
54
|
-
var twoToneColorPalette =
|
|
53
|
+
var twoToneColorPalette = {
|
|
55
54
|
primaryColor: "#333",
|
|
56
55
|
secondaryColor: "#E6E6E6",
|
|
57
56
|
calculated: false
|
|
58
|
-
}
|
|
57
|
+
};
|
|
59
58
|
function setTwoToneColors(_ref) {
|
|
60
59
|
var primaryColor = _ref.primaryColor, secondaryColor = _ref.secondaryColor;
|
|
61
60
|
twoToneColorPalette.primaryColor = primaryColor;
|
|
@@ -74,6 +73,7 @@ var IconBase = function IconBase2(props, context) {
|
|
|
74
73
|
secondaryColor: secondaryColor || getSecondaryColor(primaryColor)
|
|
75
74
|
};
|
|
76
75
|
}
|
|
76
|
+
useInsertStyles();
|
|
77
77
|
warning(isIconDefinition(icon), "icon should be icon definiton, but got ".concat(icon));
|
|
78
78
|
if (!isIconDefinition(icon)) {
|
|
79
79
|
return null;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { generate as generate$1 } from "./sun-card-design-pc.
|
|
3
|
-
import
|
|
4
|
-
import { canUseDom, updateCSS } from "./sun-card-design-pc.es76.js";
|
|
1
|
+
import { nextTick, h } from "vue";
|
|
2
|
+
import { generate as generate$1 } from "./sun-card-design-pc.es84.js";
|
|
3
|
+
import insertCss from "./sun-card-design-pc.es85.js";
|
|
5
4
|
function _objectSpread(target) {
|
|
6
5
|
for (var i = 1; i < arguments.length; i++) {
|
|
7
6
|
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
@@ -60,36 +59,18 @@ function normalizeTwoToneColors(twoToneColor) {
|
|
|
60
59
|
return Array.isArray(twoToneColor) ? twoToneColor : [twoToneColor];
|
|
61
60
|
}
|
|
62
61
|
var iconStyles = "\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";
|
|
63
|
-
|
|
64
|
-
return ele && ele.getRootNode && ele.getRootNode();
|
|
65
|
-
}
|
|
66
|
-
function inShadow(ele) {
|
|
67
|
-
if (!canUseDom()) {
|
|
68
|
-
return false;
|
|
69
|
-
}
|
|
70
|
-
return getRoot(ele) instanceof ShadowRoot;
|
|
71
|
-
}
|
|
72
|
-
function getShadowRoot(ele) {
|
|
73
|
-
return inShadow(ele) ? getRoot(ele) : null;
|
|
74
|
-
}
|
|
62
|
+
var cssInjectedFlag = false;
|
|
75
63
|
var useInsertStyles = function useInsertStyles2() {
|
|
76
|
-
var
|
|
77
|
-
var instance = getCurrentInstance();
|
|
78
|
-
var mergedStyleStr = iconStyles;
|
|
79
|
-
if (prefixCls) {
|
|
80
|
-
mergedStyleStr = mergedStyleStr.replace(/anticon/g, prefixCls.value);
|
|
81
|
-
}
|
|
64
|
+
var styleStr = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : iconStyles;
|
|
82
65
|
nextTick(function() {
|
|
83
|
-
if (!
|
|
84
|
-
|
|
66
|
+
if (!cssInjectedFlag) {
|
|
67
|
+
if (typeof window !== "undefined" && window.document && window.document.documentElement) {
|
|
68
|
+
insertCss(styleStr, {
|
|
69
|
+
prepend: true
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
cssInjectedFlag = true;
|
|
85
73
|
}
|
|
86
|
-
var ele = instance.vnode.el;
|
|
87
|
-
var shadowRoot = getShadowRoot(ele);
|
|
88
|
-
updateCSS(mergedStyleStr, "@ant-design-vue-icons", {
|
|
89
|
-
prepend: true,
|
|
90
|
-
csp: csp.value,
|
|
91
|
-
attachTo: shadowRoot
|
|
92
|
-
});
|
|
93
74
|
});
|
|
94
75
|
};
|
|
95
76
|
export {
|