sun-card-design 1.1.43 → 1.1.45
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.es32.js +1 -1
- package/dist/mobile/sun-card-design-mobile.es51.js +1 -1
- package/dist/mobile/sun-card-design-mobile.es66.js +4 -0
- package/dist/mobile/sun-card-design-mobile.es72.js +1 -0
- package/dist/mobile/sun-card-design-mobile.es73.js +1 -0
- package/dist/mobile/sun-card-design-mobile.es74.js +1 -0
- package/dist/pc/sun-card-design-pc.es32.js +1 -1
- package/dist/pc/sun-card-design-pc.es51.js +1 -1
- package/dist/pc/sun-card-design-pc.es66.js +4 -0
- package/dist/pc/sun-card-design-pc.es72.js +1 -0
- package/dist/pc/sun-card-design-pc.es73.js +1 -0
- package/dist/pc/sun-card-design-pc.es74.js +1 -0
- package/package.json +1 -1
- package/dist/mobile/sun-card-design-mobile.es62.js +0 -98
- package/dist/mobile/sun-card-design-mobile.es63.js +0 -98
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import "./sun-card-design-mobile.es72.js";
|
|
2
|
+
import "./sun-card-design-mobile.es73.js";
|
|
3
|
+
import "./sun-card-design-mobile.es74.js";
|
|
4
|
+
import "./sun-card-design-mobile.es51.js";
|
|
1
5
|
const customIcon = {
|
|
2
6
|
CustomCircle: '<svg t="1761895748746" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="15657" width="18" height="18"><path d="M510.691191 64.567551c-246.548232 0-447.125457 200.578248-447.125457 447.125457 0 246.543116 200.578248 447.125457 447.125457 447.125457 246.543116 0 447.125457-200.582341 447.125457-447.125457C957.816648 265.144776 757.234307 64.567551 510.691191 64.567551zM510.691191 863.489306c-193.982016 0-351.796298-157.814282-351.796298-351.796298s157.814282-351.796298 351.796298-351.796298S862.487489 317.710992 862.487489 511.693008 704.673208 863.489306 510.691191 863.489306z" p-id="15658" fill="#000000"></path><path d="M510.691191 511.693008m-214.491119 0a209.606 209.606 0 1 0 428.982238 0 209.606 209.606 0 1 0-428.982238 0Z" p-id="15659" fill="#000000"></path></svg>',
|
|
3
7
|
CustomFlag: '<svg t="1761899018840" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="23325" width="18" height="18"><path d="M859.311776 37.52632a31.103801 31.103801 0 0 0-19.487875-2.847982c-6.879956 1.135993-13.007917 4.383972-18.351882 9.743937-0.767995 1.51999-10.719931 9.35994-29.823809 23.51985-19.119878 14.143909-45.503708 27.711822-79.151493 40.719739-87.167442 30.575804-172.814893 21.023865-256.942354-28.687816-44.351716-26.751829-93.6634-47.023699-147.967052-60.799611-43.583721-10.687932-89.471427-16.799892-137.647119-18.335882-41.279736-1.53599-74.735521-0.959994-100.367357 1.711989-25.599836 2.671983-39.183749 4.399972-40.719739 5.167967a41.071737 41.071737 0 0 0-20.639867 12.607919 31.999795 31.999795 0 0 0-8.031949 21.80786v946.297938c0 9.951936 3.247979 18.351882 9.759937 25.231838 6.495958 6.879956 14.719906 10.335934 24.639843 10.335934 9.951936 0 18.367882-3.439978 25.247838-10.335934 6.879956-6.879956 10.319934-15.279902 10.319934-25.231838v-341.82181c9.183941-3.039981 22.751854-6.687957 40.719739-10.879931 17.983885-4.207973 39.199749-7.087955 63.679592-8.607945a489.020867 489.020867 0 0 1 125.007199 6.879956c51.247672 9.935936 101.327351 27.903821 150.271037 53.919655 53.535657 28.287819 107.439312 47.023699 161.726964 56.19164 44.351716 6.879956 87.951437 7.647951 130.767163 2.303985 37.47176-5.359966 66.719573-12.239922 87.743438-20.639868 21.039865-8.431946 32.319793-13.391914 33.839783-14.927904 11.471927-6.879956 17.21589-17.19989 17.215889-30.975801v-610.220091c0-6.879956-1.919988-13.375914-5.743963-19.503875a29.311812 29.311812 0 0 0-16.063897-12.60792z m-48.159691 620.556024c-8.415946 3.07198-19.519875 6.511958-33.279787 10.335934-13.759912 3.823976-29.823809 6.879956-48.159692 9.167941-35.199775 3.839975-71.519542 2.671983-108.975301-3.439978-45.887706-8.415946-91.759412-24.479843-137.647119-48.175691-55.823642-29.823809-113.551273-50.463677-173.19889-61.935603a563.196392 563.196392 0 0 0-100.959353-9.183942c-14.511907 0-28.655816 0.767995-42.431728 2.303986-40.52774 3.823976-72.639535 9.167941-96.351383 16.047897v-500.108796c11.471927-0.767995 25.615836-1.51999 42.447728-2.287986a687.003599 687.003599 0 0 1 56.20764 0c34.39978 0.767995 73.791527 6.111961 118.143243 16.063897 44.351716 9.919936 88.319434 27.519824 131.903155 52.751663 35.95177 20.639868 70.159551 35.359773 102.671342 44.159717 32.479792 8.799944 63.279595 13.199915 92.319409 13.199915a414.317346 414.317346 0 0 0 68.255562-7.455952 390.989495 390.989495 0 0 0 56.783637-15.487901c28.287819-10.719931 52.383664-22.175858 72.255537-34.39978z" p-id="23326" fill="#000000"></path></svg>',
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
new URL("../assets/assets/song.mp3", import.meta.url).href;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
new URL("../assets/assets/video.mp4", import.meta.url).href;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
new URL("../assets/assets/picsl1.jpg", import.meta.url).href;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import "./sun-card-design-pc.es72.js";
|
|
2
|
+
import "./sun-card-design-pc.es73.js";
|
|
3
|
+
import "./sun-card-design-pc.es74.js";
|
|
4
|
+
import "./sun-card-design-pc.es51.js";
|
|
1
5
|
const customIcon = {
|
|
2
6
|
CustomCircle: '<svg t="1761895748746" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="15657" width="18" height="18"><path d="M510.691191 64.567551c-246.548232 0-447.125457 200.578248-447.125457 447.125457 0 246.543116 200.578248 447.125457 447.125457 447.125457 246.543116 0 447.125457-200.582341 447.125457-447.125457C957.816648 265.144776 757.234307 64.567551 510.691191 64.567551zM510.691191 863.489306c-193.982016 0-351.796298-157.814282-351.796298-351.796298s157.814282-351.796298 351.796298-351.796298S862.487489 317.710992 862.487489 511.693008 704.673208 863.489306 510.691191 863.489306z" p-id="15658" fill="#000000"></path><path d="M510.691191 511.693008m-214.491119 0a209.606 209.606 0 1 0 428.982238 0 209.606 209.606 0 1 0-428.982238 0Z" p-id="15659" fill="#000000"></path></svg>',
|
|
3
7
|
CustomFlag: '<svg t="1761899018840" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="23325" width="18" height="18"><path d="M859.311776 37.52632a31.103801 31.103801 0 0 0-19.487875-2.847982c-6.879956 1.135993-13.007917 4.383972-18.351882 9.743937-0.767995 1.51999-10.719931 9.35994-29.823809 23.51985-19.119878 14.143909-45.503708 27.711822-79.151493 40.719739-87.167442 30.575804-172.814893 21.023865-256.942354-28.687816-44.351716-26.751829-93.6634-47.023699-147.967052-60.799611-43.583721-10.687932-89.471427-16.799892-137.647119-18.335882-41.279736-1.53599-74.735521-0.959994-100.367357 1.711989-25.599836 2.671983-39.183749 4.399972-40.719739 5.167967a41.071737 41.071737 0 0 0-20.639867 12.607919 31.999795 31.999795 0 0 0-8.031949 21.80786v946.297938c0 9.951936 3.247979 18.351882 9.759937 25.231838 6.495958 6.879956 14.719906 10.335934 24.639843 10.335934 9.951936 0 18.367882-3.439978 25.247838-10.335934 6.879956-6.879956 10.319934-15.279902 10.319934-25.231838v-341.82181c9.183941-3.039981 22.751854-6.687957 40.719739-10.879931 17.983885-4.207973 39.199749-7.087955 63.679592-8.607945a489.020867 489.020867 0 0 1 125.007199 6.879956c51.247672 9.935936 101.327351 27.903821 150.271037 53.919655 53.535657 28.287819 107.439312 47.023699 161.726964 56.19164 44.351716 6.879956 87.951437 7.647951 130.767163 2.303985 37.47176-5.359966 66.719573-12.239922 87.743438-20.639868 21.039865-8.431946 32.319793-13.391914 33.839783-14.927904 11.471927-6.879956 17.21589-17.19989 17.215889-30.975801v-610.220091c0-6.879956-1.919988-13.375914-5.743963-19.503875a29.311812 29.311812 0 0 0-16.063897-12.60792z m-48.159691 620.556024c-8.415946 3.07198-19.519875 6.511958-33.279787 10.335934-13.759912 3.823976-29.823809 6.879956-48.159692 9.167941-35.199775 3.839975-71.519542 2.671983-108.975301-3.439978-45.887706-8.415946-91.759412-24.479843-137.647119-48.175691-55.823642-29.823809-113.551273-50.463677-173.19889-61.935603a563.196392 563.196392 0 0 0-100.959353-9.183942c-14.511907 0-28.655816 0.767995-42.431728 2.303986-40.52774 3.823976-72.639535 9.167941-96.351383 16.047897v-500.108796c11.471927-0.767995 25.615836-1.51999 42.447728-2.287986a687.003599 687.003599 0 0 1 56.20764 0c34.39978 0.767995 73.791527 6.111961 118.143243 16.063897 44.351716 9.919936 88.319434 27.519824 131.903155 52.751663 35.95177 20.639868 70.159551 35.359773 102.671342 44.159717 32.479792 8.799944 63.279595 13.199915 92.319409 13.199915a414.317346 414.317346 0 0 0 68.255562-7.455952 390.989495 390.989495 0 0 0 56.783637-15.487901c28.287819-10.719931 52.383664-22.175858 72.255537-34.39978z" p-id="23326" fill="#000000"></path></svg>',
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
new URL("../assets/assets/song.mp3", import.meta.url).href;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
new URL("../assets/assets/video.mp4", import.meta.url).href;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
new URL("../assets/assets/picsl1.jpg", import.meta.url).href;
|
package/package.json
CHANGED
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { resolveComponent, createElementBlock, openBlock, normalizeStyle, createVNode, withCtx, Fragment, renderList, createBlock, createElementVNode, normalizeClass } from "vue";
|
|
2
|
-
import FormItem from "./sun-card-design-mobile.es25.js";
|
|
3
|
-
/* empty css */
|
|
4
|
-
import _export_sfc from "./sun-card-design-mobile.es28.js";
|
|
5
|
-
const _hoisted_1 = ["onClick"];
|
|
6
|
-
const _sfc_main = {
|
|
7
|
-
__name: "multipleLine",
|
|
8
|
-
props: ["record", "recordData", "columnsIndex"],
|
|
9
|
-
emits: ["clickEvent", "clickColumnsEvent", "fileUpdateEvent"],
|
|
10
|
-
setup(__props, { emit: __emit }) {
|
|
11
|
-
const props = __props;
|
|
12
|
-
const emit = __emit;
|
|
13
|
-
const getIndex = (index) => {
|
|
14
|
-
if (index !== void 0) {
|
|
15
|
-
return index;
|
|
16
|
-
}
|
|
17
|
-
return props.columnsIndex;
|
|
18
|
-
};
|
|
19
|
-
const onClick = (record) => {
|
|
20
|
-
emit("clickEvent", record);
|
|
21
|
-
};
|
|
22
|
-
const onUpdate = (record) => {
|
|
23
|
-
emit("fileUpdateEvent", record);
|
|
24
|
-
};
|
|
25
|
-
const onClickColumns = (record) => {
|
|
26
|
-
if (!record.options.clickEvent) return;
|
|
27
|
-
emit("clickColumnsEvent", record);
|
|
28
|
-
};
|
|
29
|
-
const getBackground = () => {
|
|
30
|
-
if (isGradientColor(props.recordData.config.background)) {
|
|
31
|
-
return "none";
|
|
32
|
-
}
|
|
33
|
-
return props.recordData.config.background;
|
|
34
|
-
};
|
|
35
|
-
function isGradientColor(color) {
|
|
36
|
-
return /^(linear|radial)-gradient\(.*\)$/.test(color);
|
|
37
|
-
}
|
|
38
|
-
return (_ctx, _cache) => {
|
|
39
|
-
const _component_a_col = resolveComponent("a-col");
|
|
40
|
-
const _component_a_row = resolveComponent("a-row");
|
|
41
|
-
return openBlock(), createElementBlock("div", {
|
|
42
|
-
class: "main-grid",
|
|
43
|
-
style: normalizeStyle({ background: getBackground() })
|
|
44
|
-
}, [
|
|
45
|
-
createVNode(_component_a_row, {
|
|
46
|
-
gutter: [props.record.options.style.lrGutter, props.record.options.style.tbGutter]
|
|
47
|
-
}, {
|
|
48
|
-
default: withCtx(() => [
|
|
49
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(props.record.columns, (item, index) => {
|
|
50
|
-
return openBlock(), createBlock(_component_a_col, {
|
|
51
|
-
key: index.toString(),
|
|
52
|
-
flex: props.record.columns[index]?.flex,
|
|
53
|
-
span: 24,
|
|
54
|
-
style: normalizeStyle({
|
|
55
|
-
flex: _ctx.none
|
|
56
|
-
})
|
|
57
|
-
}, {
|
|
58
|
-
default: withCtx(() => [
|
|
59
|
-
createElementVNode("div", {
|
|
60
|
-
class: normalizeClass(["box", { active: _ctx.currentUuid === item.uuid }]),
|
|
61
|
-
style: normalizeStyle({
|
|
62
|
-
background: props.record.options.style?.background,
|
|
63
|
-
border: props.record.options.style?.borderColor === "none" ? "none" : "1px solid " + (props.record.options.style?.borderColor || "transparent"),
|
|
64
|
-
borderRadius: props.record.options.style?.borderRadius + "px",
|
|
65
|
-
padding: props.record.options.style?.tbPadding + "px " + props.record.options.style?.lrPadding + "px",
|
|
66
|
-
justifyContent: props.record.options.style?.alignItems || "start",
|
|
67
|
-
minHeight: props.record.options.style?.minHeight + "px" || "48px",
|
|
68
|
-
boxShadow: props.record.options.style?.boxShadow || null
|
|
69
|
-
}),
|
|
70
|
-
onClick: ($event) => onClickColumns(item)
|
|
71
|
-
}, [
|
|
72
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(item.list, (element, index2) => {
|
|
73
|
-
return openBlock(), createBlock(FormItem, {
|
|
74
|
-
record: element,
|
|
75
|
-
key: index2,
|
|
76
|
-
recordData: props.recordData,
|
|
77
|
-
columnsIndex: getIndex(item.index),
|
|
78
|
-
onClickEvent: onClick,
|
|
79
|
-
onFileUpdateEvent: onUpdate,
|
|
80
|
-
onClickColumnsEvent: onClickColumns
|
|
81
|
-
}, null, 8, ["record", "recordData", "columnsIndex"]);
|
|
82
|
-
}), 128))
|
|
83
|
-
], 14, _hoisted_1)
|
|
84
|
-
]),
|
|
85
|
-
_: 2
|
|
86
|
-
}, 1032, ["flex", "style"]);
|
|
87
|
-
}), 128))
|
|
88
|
-
]),
|
|
89
|
-
_: 1
|
|
90
|
-
}, 8, ["gutter"])
|
|
91
|
-
], 4);
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
};
|
|
95
|
-
const MultipleLine = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c1ba89a8"]]);
|
|
96
|
-
export {
|
|
97
|
-
MultipleLine as default
|
|
98
|
-
};
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { resolveComponent, createElementBlock, openBlock, normalizeStyle, createVNode, withCtx, Fragment, renderList, createBlock, createElementVNode, normalizeClass } from "vue";
|
|
2
|
-
import FormItem from "./sun-card-design-mobile.es25.js";
|
|
3
|
-
/* empty css */
|
|
4
|
-
import _export_sfc from "./sun-card-design-mobile.es28.js";
|
|
5
|
-
const _hoisted_1 = ["onClick"];
|
|
6
|
-
const _sfc_main = {
|
|
7
|
-
__name: "gridList",
|
|
8
|
-
props: ["record", "recordData", "columnsIndex"],
|
|
9
|
-
emits: ["clickEvent", "clickColumnsEvent", "fileUpdateEvent"],
|
|
10
|
-
setup(__props, { emit: __emit }) {
|
|
11
|
-
const props = __props;
|
|
12
|
-
const emit = __emit;
|
|
13
|
-
const getIndex = (index) => {
|
|
14
|
-
if (index !== void 0) {
|
|
15
|
-
return index;
|
|
16
|
-
}
|
|
17
|
-
return props.columnsIndex;
|
|
18
|
-
};
|
|
19
|
-
const onClick = (record) => {
|
|
20
|
-
emit("clickEvent", record);
|
|
21
|
-
};
|
|
22
|
-
const onUpdate = (record) => {
|
|
23
|
-
emit("fileUpdateEvent", record);
|
|
24
|
-
};
|
|
25
|
-
const onClickColumns = (record) => {
|
|
26
|
-
if (!record.options.clickEvent) return;
|
|
27
|
-
emit("clickColumnsEvent", record);
|
|
28
|
-
};
|
|
29
|
-
const getBackground = () => {
|
|
30
|
-
if (isGradientColor(props.recordData.config.background)) {
|
|
31
|
-
return "none";
|
|
32
|
-
}
|
|
33
|
-
return props.recordData.config.background;
|
|
34
|
-
};
|
|
35
|
-
function isGradientColor(color) {
|
|
36
|
-
return /^(linear|radial)-gradient\(.*\)$/.test(color);
|
|
37
|
-
}
|
|
38
|
-
return (_ctx, _cache) => {
|
|
39
|
-
const _component_a_col = resolveComponent("a-col");
|
|
40
|
-
const _component_a_row = resolveComponent("a-row");
|
|
41
|
-
return openBlock(), createElementBlock("div", {
|
|
42
|
-
class: "main-grid",
|
|
43
|
-
style: normalizeStyle({ background: getBackground() })
|
|
44
|
-
}, [
|
|
45
|
-
createVNode(_component_a_row, {
|
|
46
|
-
gutter: [props.record.options.style.lrGutter, props.record.options.style.tbGutter]
|
|
47
|
-
}, {
|
|
48
|
-
default: withCtx(() => [
|
|
49
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(props.record.columns, (item, index) => {
|
|
50
|
-
return openBlock(), createBlock(_component_a_col, {
|
|
51
|
-
key: index.toString(),
|
|
52
|
-
flex: props.record.columns[index]?.flex,
|
|
53
|
-
span: 24 / props.record.options.autoNumber,
|
|
54
|
-
style: normalizeStyle({
|
|
55
|
-
flex: _ctx.none
|
|
56
|
-
})
|
|
57
|
-
}, {
|
|
58
|
-
default: withCtx(() => [
|
|
59
|
-
createElementVNode("div", {
|
|
60
|
-
class: normalizeClass(["box", { active: _ctx.currentUuid === item.uuid }]),
|
|
61
|
-
style: normalizeStyle({
|
|
62
|
-
background: props.record.options.style?.background,
|
|
63
|
-
border: props.record.options.style?.borderColor === "none" ? "none" : "1px solid " + (props.record.options.style?.borderColor || "transparent"),
|
|
64
|
-
borderRadius: props.record.options.style?.borderRadius + "px",
|
|
65
|
-
padding: props.record.options.style?.tbPadding + "px " + props.record.options.style?.lrPadding + "px",
|
|
66
|
-
justifyContent: props.record.options.style?.alignItems || "start",
|
|
67
|
-
minHeight: props.record.options.style?.minHeight + "px" || "48px",
|
|
68
|
-
boxShadow: props.record.options.style?.boxShadow || null
|
|
69
|
-
}),
|
|
70
|
-
onClick: ($event) => onClickColumns(item)
|
|
71
|
-
}, [
|
|
72
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(item.list, (element, index2) => {
|
|
73
|
-
return openBlock(), createBlock(FormItem, {
|
|
74
|
-
record: element,
|
|
75
|
-
key: index2,
|
|
76
|
-
recordData: props.recordData,
|
|
77
|
-
columnsIndex: getIndex(item.index),
|
|
78
|
-
onClickEvent: onClick,
|
|
79
|
-
onFileUpdateEvent: onUpdate,
|
|
80
|
-
onClickColumnsEvent: onClickColumns
|
|
81
|
-
}, null, 8, ["record", "recordData", "columnsIndex"]);
|
|
82
|
-
}), 128))
|
|
83
|
-
], 14, _hoisted_1)
|
|
84
|
-
]),
|
|
85
|
-
_: 2
|
|
86
|
-
}, 1032, ["flex", "span", "style"]);
|
|
87
|
-
}), 128))
|
|
88
|
-
]),
|
|
89
|
-
_: 1
|
|
90
|
-
}, 8, ["gutter"])
|
|
91
|
-
], 4);
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
};
|
|
95
|
-
const GridList = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c6c62c4f"]]);
|
|
96
|
-
export {
|
|
97
|
-
GridList as default
|
|
98
|
-
};
|