sun-card-design 1.2.2 → 1.2.3
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.es10.js +13 -7
- package/dist/mobile/sun-card-design-mobile.es11.js +19 -12
- package/dist/mobile/sun-card-design-mobile.es12.js +11 -9
- package/dist/mobile/sun-card-design-mobile.es13.js +28 -22
- package/dist/mobile/sun-card-design-mobile.es14.js +13 -7
- package/dist/mobile/sun-card-design-mobile.es15.js +43 -23
- package/dist/mobile/sun-card-design-mobile.es16.js +13 -7
- package/dist/mobile/sun-card-design-mobile.es17.js +14 -8
- package/dist/mobile/sun-card-design-mobile.es18.js +14 -8
- package/dist/mobile/sun-card-design-mobile.es19.js +21 -11
- package/dist/mobile/sun-card-design-mobile.es20.js +19 -12
- package/dist/mobile/sun-card-design-mobile.es21.js +16 -9
- package/dist/mobile/sun-card-design-mobile.es22.js +19 -12
- package/dist/mobile/sun-card-design-mobile.es23.js +16 -9
- package/dist/mobile/sun-card-design-mobile.es24.js +19 -12
- package/dist/mobile/sun-card-design-mobile.es3.js +41 -28
- package/dist/mobile/sun-card-design-mobile.es37.js +19 -18
- package/dist/mobile/sun-card-design-mobile.es4.js +54 -32
- package/dist/mobile/sun-card-design-mobile.es5.js +27 -18
- package/dist/mobile/sun-card-design-mobile.es55.js +26 -29
- package/dist/mobile/sun-card-design-mobile.es56.js +21 -20
- package/dist/mobile/sun-card-design-mobile.es57.js +44 -25
- package/dist/mobile/sun-card-design-mobile.es58.js +43 -23
- package/dist/mobile/sun-card-design-mobile.es59.js +38 -21
- package/dist/mobile/sun-card-design-mobile.es6.js +32 -18
- package/dist/mobile/sun-card-design-mobile.es60.js +38 -21
- package/dist/mobile/sun-card-design-mobile.es7.js +41 -35
- package/dist/mobile/sun-card-design-mobile.es8.js +28 -22
- package/dist/mobile/sun-card-design-mobile.es9.js +21 -12
- package/dist/pc/sun-card-design-pc.es10.js +13 -7
- package/dist/pc/sun-card-design-pc.es11.js +19 -12
- package/dist/pc/sun-card-design-pc.es12.js +11 -9
- package/dist/pc/sun-card-design-pc.es13.js +28 -22
- package/dist/pc/sun-card-design-pc.es14.js +13 -7
- package/dist/pc/sun-card-design-pc.es15.js +43 -23
- package/dist/pc/sun-card-design-pc.es16.js +13 -7
- package/dist/pc/sun-card-design-pc.es17.js +14 -8
- package/dist/pc/sun-card-design-pc.es18.js +14 -8
- package/dist/pc/sun-card-design-pc.es19.js +21 -11
- package/dist/pc/sun-card-design-pc.es20.js +19 -12
- package/dist/pc/sun-card-design-pc.es21.js +16 -9
- package/dist/pc/sun-card-design-pc.es22.js +19 -12
- package/dist/pc/sun-card-design-pc.es23.js +16 -9
- package/dist/pc/sun-card-design-pc.es24.js +19 -12
- package/dist/pc/sun-card-design-pc.es3.js +41 -28
- package/dist/pc/sun-card-design-pc.es37.js +19 -18
- package/dist/pc/sun-card-design-pc.es4.js +54 -32
- package/dist/pc/sun-card-design-pc.es5.js +27 -18
- package/dist/pc/sun-card-design-pc.es55.js +26 -29
- package/dist/pc/sun-card-design-pc.es56.js +21 -20
- package/dist/pc/sun-card-design-pc.es57.js +44 -25
- package/dist/pc/sun-card-design-pc.es58.js +43 -23
- package/dist/pc/sun-card-design-pc.es59.js +38 -21
- package/dist/pc/sun-card-design-pc.es6.js +32 -18
- package/dist/pc/sun-card-design-pc.es60.js +38 -21
- package/dist/pc/sun-card-design-pc.es7.js +41 -35
- package/dist/pc/sun-card-design-pc.es8.js +28 -22
- package/dist/pc/sun-card-design-pc.es9.js +21 -12
- package/dist/public/sun-card-design.css +1 -1
- package/package.json +1 -1
- package/dist/mobile/sun-card-design-mobile.es61.js +0 -162
|
@@ -1,32 +1,39 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useCssVars, computed, ref, resolveComponent, createElementBlock, openBlock, createCommentVNode, createVNode, createElementVNode, withModifiers, withCtx, createTextVNode, h, unref, toDisplayString, Fragment, renderList } from "vue";
|
|
2
2
|
import { UploadOutlined } from "@ant-design/icons-vue";
|
|
3
3
|
import { message } from "ant-design-vue";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import _export_sfc from "./sun-card-design-mobile.es28.js";
|
|
6
|
-
const _hoisted_1 = {
|
|
6
|
+
const _hoisted_1 = { class: "upload-comp" };
|
|
7
|
+
const _hoisted_2 = {
|
|
7
8
|
key: 0,
|
|
8
9
|
class: "upload-progress"
|
|
9
10
|
};
|
|
10
|
-
const
|
|
11
|
-
const
|
|
11
|
+
const _hoisted_3 = { class: "progress-text-container" };
|
|
12
|
+
const _hoisted_4 = {
|
|
12
13
|
key: 1,
|
|
13
14
|
class: "file-list"
|
|
14
15
|
};
|
|
15
|
-
const
|
|
16
|
+
const _hoisted_5 = { class: "file-item-name" };
|
|
16
17
|
const _sfc_main = {
|
|
17
18
|
__name: "uploadComp",
|
|
18
19
|
props: ["record"],
|
|
19
20
|
setup(__props) {
|
|
21
|
+
useCssVars((_ctx) => ({
|
|
22
|
+
"v29b9f64c": mainPadding.value,
|
|
23
|
+
"v34ef9fda": buttonColor.value,
|
|
24
|
+
"v964bed5e": buttonSize.value
|
|
25
|
+
}));
|
|
20
26
|
const props = __props;
|
|
21
27
|
const fileList = ref([]);
|
|
22
28
|
const uploadControllers = ref(/* @__PURE__ */ new Map());
|
|
23
29
|
const currentUploadingUid = ref(null);
|
|
24
30
|
const isUploading = computed(() => !!currentUploadingUid.value);
|
|
25
|
-
const buttonColor = computed(() =>
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
31
|
+
const buttonColor = computed(() => props.record.options?.style?.buttonColor);
|
|
32
|
+
const buttonSize = computed(() => props.record.options?.style?.buttonSize);
|
|
33
|
+
const mainPadding = computed(() => {
|
|
34
|
+
const tb = props.record.options?.style?.tbPadding ?? 0;
|
|
35
|
+
const lr = props.record.options?.style?.lrPadding ?? 0;
|
|
36
|
+
return `${tb}px ${lr}px`;
|
|
30
37
|
});
|
|
31
38
|
const acceptTypes = computed(() => {
|
|
32
39
|
if (!props.record.options?.format || !Array.isArray(props.record.options.format) || props.record.options.format.length === 0) {
|
|
@@ -143,13 +150,10 @@ const _sfc_main = {
|
|
|
143
150
|
return (_ctx, _cache) => {
|
|
144
151
|
const _component_a_button = resolveComponent("a-button");
|
|
145
152
|
const _component_a_upload = resolveComponent("a-upload");
|
|
146
|
-
return openBlock(), createElementBlock("div",
|
|
147
|
-
|
|
148
|
-
style: normalizeStyle({ padding: `${props.record.options?.style?.tbPadding || 0}px ${props.record.options?.style?.lrPadding || 0}px` })
|
|
149
|
-
}, [
|
|
150
|
-
isUploading.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
153
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
154
|
+
isUploading.value ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
151
155
|
_cache[2] || (_cache[2] = createElementVNode("div", { class: "spinner" }, null, -1)),
|
|
152
|
-
createElementVNode("div",
|
|
156
|
+
createElementVNode("div", _hoisted_3, [
|
|
153
157
|
_cache[1] || (_cache[1] = createElementVNode("div", { class: "progress-text" }, "文件导入中...", -1)),
|
|
154
158
|
createVNode(_component_a_button, {
|
|
155
159
|
class: "cancel-btn",
|
|
@@ -173,15 +177,8 @@ const _sfc_main = {
|
|
|
173
177
|
}, {
|
|
174
178
|
default: withCtx(() => [
|
|
175
179
|
createVNode(_component_a_button, {
|
|
180
|
+
class: "upload-btn",
|
|
176
181
|
type: "primary",
|
|
177
|
-
style: normalizeStyle({
|
|
178
|
-
backgroundColor: buttonColor.value,
|
|
179
|
-
borderColor: buttonColor.value,
|
|
180
|
-
fontSize: buttonSize.value + "px",
|
|
181
|
-
height: "auto",
|
|
182
|
-
padding: "4px 12px",
|
|
183
|
-
minHeight: "28px"
|
|
184
|
-
}),
|
|
185
182
|
icon: h(unref(UploadOutlined))
|
|
186
183
|
}, {
|
|
187
184
|
icon: withCtx(() => [
|
|
@@ -191,17 +188,17 @@ const _sfc_main = {
|
|
|
191
188
|
createTextVNode(" " + toDisplayString(props.record.options?.style?.buttonText), 1)
|
|
192
189
|
]),
|
|
193
190
|
_: 1
|
|
194
|
-
}, 8, ["
|
|
191
|
+
}, 8, ["icon"])
|
|
195
192
|
]),
|
|
196
193
|
_: 1
|
|
197
194
|
}, 8, ["accept"]),
|
|
198
|
-
fileList.value.length > 0 ? (openBlock(), createElementBlock("div",
|
|
195
|
+
fileList.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
199
196
|
(openBlock(true), createElementBlock(Fragment, null, renderList(fileList.value, (file) => {
|
|
200
197
|
return openBlock(), createElementBlock("div", {
|
|
201
198
|
class: "file-item",
|
|
202
199
|
key: file.uid
|
|
203
200
|
}, [
|
|
204
|
-
createElementVNode("span",
|
|
201
|
+
createElementVNode("span", _hoisted_5, toDisplayString(file.name), 1),
|
|
205
202
|
createVNode(_component_a_button, {
|
|
206
203
|
type: "link",
|
|
207
204
|
danger: "",
|
|
@@ -216,11 +213,11 @@ const _sfc_main = {
|
|
|
216
213
|
]);
|
|
217
214
|
}), 128))
|
|
218
215
|
])) : createCommentVNode("", true)
|
|
219
|
-
]
|
|
216
|
+
]);
|
|
220
217
|
};
|
|
221
218
|
}
|
|
222
219
|
};
|
|
223
|
-
const Upload = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
220
|
+
const Upload = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-94c9d418"]]);
|
|
224
221
|
export {
|
|
225
222
|
Upload as default
|
|
226
223
|
};
|
|
@@ -1,13 +1,19 @@
|
|
|
1
|
-
import { markRaw, defineComponent, h,
|
|
1
|
+
import { useCssVars, computed, markRaw, defineComponent, h, createElementBlock, openBlock, createElementVNode, createBlock, resolveDynamicComponent } from "vue";
|
|
2
2
|
import * as Icons from "@ant-design/icons-vue";
|
|
3
3
|
import { customIcon } from "./sun-card-design-mobile.es65.js";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import _export_sfc from "./sun-card-design-mobile.es28.js";
|
|
6
|
+
const _hoisted_1 = { class: "main-icon" };
|
|
6
7
|
const _sfc_main = {
|
|
7
8
|
__name: "sunIconComp",
|
|
8
9
|
props: ["record"],
|
|
9
10
|
emits: ["clickEvent"],
|
|
10
11
|
setup(__props, { emit: __emit }) {
|
|
12
|
+
useCssVars((_ctx) => ({
|
|
13
|
+
"v6be6b256": mainPadding.value,
|
|
14
|
+
"v721317b0": iconColor.value,
|
|
15
|
+
"v3508a8a4": iconJustifyContent.value
|
|
16
|
+
}));
|
|
11
17
|
const props = __props;
|
|
12
18
|
const emit = __emit;
|
|
13
19
|
const customIconComponents = Object.entries(customIcon || {}).reduce((acc, [key, svg]) => {
|
|
@@ -27,38 +33,33 @@ const _sfc_main = {
|
|
|
27
33
|
const name = props?.record?.options?.style?.iconName || "CheckCircleOutlined";
|
|
28
34
|
return iconMap[name] || Icons["CheckCircleOutlined"];
|
|
29
35
|
});
|
|
30
|
-
const
|
|
31
|
-
const
|
|
32
|
-
const
|
|
33
|
-
return {
|
|
34
|
-
color,
|
|
35
|
-
display: "flex",
|
|
36
|
-
justifyContent,
|
|
37
|
-
alignItems: "center",
|
|
38
|
-
width: "100%"
|
|
39
|
-
};
|
|
36
|
+
const mainPadding = computed(() => {
|
|
37
|
+
const tb = props.record.options?.style?.tbPadding ?? 0;
|
|
38
|
+
const lr = props.record.options?.style?.lrPadding ?? 0;
|
|
39
|
+
return `${tb}px ${lr}px`;
|
|
40
40
|
});
|
|
41
|
+
const iconColor = computed(() => props?.record?.options?.style?.color || "#000000");
|
|
42
|
+
const iconJustifyContent = computed(
|
|
43
|
+
() => props?.record?.options?.style?.justifyContent || "flex-start"
|
|
44
|
+
);
|
|
41
45
|
function onClick() {
|
|
42
46
|
if (props.record.options.clickEvent) {
|
|
43
47
|
emit("clickEvent", props.record);
|
|
44
48
|
}
|
|
45
49
|
}
|
|
46
50
|
return (_ctx, _cache) => {
|
|
47
|
-
return openBlock(), createElementBlock("div",
|
|
48
|
-
class: "main-icon",
|
|
49
|
-
style: normalizeStyle({ padding: `${props.record.options?.style?.tbPadding || 0}px ${props.record.options?.style?.lrPadding || 0}px` })
|
|
50
|
-
}, [
|
|
51
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
51
52
|
createElementVNode("span", {
|
|
52
|
-
|
|
53
|
+
class: "icon-wrapper",
|
|
53
54
|
onClick
|
|
54
55
|
}, [
|
|
55
|
-
(openBlock(), createBlock(resolveDynamicComponent(iconComponent.value), {
|
|
56
|
-
]
|
|
57
|
-
]
|
|
56
|
+
(openBlock(), createBlock(resolveDynamicComponent(iconComponent.value), { class: "icon-inner" }))
|
|
57
|
+
])
|
|
58
|
+
]);
|
|
58
59
|
};
|
|
59
60
|
}
|
|
60
61
|
};
|
|
61
|
-
const SunIcon = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
62
|
+
const SunIcon = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-44bda71e"]]);
|
|
62
63
|
export {
|
|
63
64
|
SunIcon as default
|
|
64
65
|
};
|
|
@@ -1,12 +1,24 @@
|
|
|
1
|
-
import { resolveComponent, createElementBlock, openBlock,
|
|
1
|
+
import { useCssVars, computed, resolveComponent, createElementBlock, openBlock, createVNode, withCtx, Fragment, renderList, createBlock, createElementVNode } from "vue";
|
|
2
2
|
import FormItem from "./sun-card-design-mobile.es25.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import _export_sfc from "./sun-card-design-mobile.es28.js";
|
|
5
|
+
const _hoisted_1 = { class: "main-singleColumn" };
|
|
6
|
+
const _hoisted_2 = { class: "box" };
|
|
5
7
|
const _sfc_main = {
|
|
6
8
|
__name: "singleColumn",
|
|
7
9
|
props: ["record", "recordData", "columnsIndex"],
|
|
8
10
|
emits: ["clickEvent", "clickColumnsEvent", "fileUpdateEvent"],
|
|
9
11
|
setup(__props, { emit: __emit }) {
|
|
12
|
+
useCssVars((_ctx) => ({
|
|
13
|
+
"aef0278a": mainBackground.value,
|
|
14
|
+
"v53508665": boxBackground.value,
|
|
15
|
+
"v1883d8e3": boxBorder.value,
|
|
16
|
+
"v25dbbb55": boxBorderRadius.value,
|
|
17
|
+
"v7835238c": boxPadding.value,
|
|
18
|
+
"a9b3c500": boxJustifyContent.value,
|
|
19
|
+
"v790a2bfc": boxMinHeight.value,
|
|
20
|
+
"v351bddd7": boxShadow.value
|
|
21
|
+
}));
|
|
10
22
|
const props = __props;
|
|
11
23
|
const emit = __emit;
|
|
12
24
|
const onClick = (record) => {
|
|
@@ -19,22 +31,40 @@ const _sfc_main = {
|
|
|
19
31
|
if (!record.options.clickEvent) return;
|
|
20
32
|
emit("clickColumnsEvent", record);
|
|
21
33
|
};
|
|
22
|
-
|
|
34
|
+
function isGradientColor(color) {
|
|
35
|
+
return /^(linear|radial)-gradient\(.*\)$/.test(color);
|
|
36
|
+
}
|
|
37
|
+
const mainBackground = computed(() => {
|
|
38
|
+
if (!props.recordData?.config?.background) {
|
|
39
|
+
return "transparent";
|
|
40
|
+
}
|
|
23
41
|
if (isGradientColor(props.recordData.config.background)) {
|
|
24
42
|
return "none";
|
|
25
43
|
}
|
|
26
44
|
return props.recordData.config.background;
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
45
|
+
});
|
|
46
|
+
const boxBackground = computed(() => props.record.options.style?.background);
|
|
47
|
+
const boxBorder = computed(() => {
|
|
48
|
+
const borderColor = props.record.options.style?.borderColor;
|
|
49
|
+
if (borderColor === "none") return "none";
|
|
50
|
+
return `1px solid ${borderColor || "transparent"}`;
|
|
51
|
+
});
|
|
52
|
+
const boxBorderRadius = computed(() => `${props.record.options.style?.borderRadius}px`);
|
|
53
|
+
const boxPadding = computed(() => {
|
|
54
|
+
const tb = props.record.options.style?.tbPadding;
|
|
55
|
+
const lr = props.record.options.style?.lrPadding;
|
|
56
|
+
return `${tb}px ${lr}px`;
|
|
57
|
+
});
|
|
58
|
+
const boxJustifyContent = computed(() => props.record.options.style?.alignItems || "start");
|
|
59
|
+
const boxMinHeight = computed(() => {
|
|
60
|
+
const minH = props.record.options.style?.minHeight;
|
|
61
|
+
return minH ? `${minH}px` : "48px";
|
|
62
|
+
});
|
|
63
|
+
const boxShadow = computed(() => props.record.options.style?.boxShadow || null);
|
|
31
64
|
return (_ctx, _cache) => {
|
|
32
65
|
const _component_a_col = resolveComponent("a-col");
|
|
33
66
|
const _component_a_row = resolveComponent("a-row");
|
|
34
|
-
return openBlock(), createElementBlock("div",
|
|
35
|
-
class: "main-singleColumn",
|
|
36
|
-
style: normalizeStyle({ background: getBackground() })
|
|
37
|
-
}, [
|
|
67
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
38
68
|
createVNode(_component_a_row, {
|
|
39
69
|
gutter: [props.record.options.style.lrGutter, props.record.options.style.tbGutter]
|
|
40
70
|
}, {
|
|
@@ -46,18 +76,7 @@ const _sfc_main = {
|
|
|
46
76
|
span: 24
|
|
47
77
|
}, {
|
|
48
78
|
default: withCtx(() => [
|
|
49
|
-
createElementVNode("div",
|
|
50
|
-
class: "box",
|
|
51
|
-
style: normalizeStyle({
|
|
52
|
-
background: props.record.options.style?.background,
|
|
53
|
-
border: props.record.options.style?.borderColor === "none" ? "none" : "1px solid " + (props.record.options.style?.borderColor || "transparent"),
|
|
54
|
-
borderRadius: props.record.options.style?.borderRadius + "px",
|
|
55
|
-
padding: props.record.options.style?.tbPadding + "px " + props.record.options.style?.lrPadding + "px",
|
|
56
|
-
justifyContent: props.record.options.style?.alignItems || "start",
|
|
57
|
-
minHeight: props.record.options.style?.minHeight + "px" || "48px",
|
|
58
|
-
boxShadow: props.record.options.style?.boxShadow || null
|
|
59
|
-
})
|
|
60
|
-
}, [
|
|
79
|
+
createElementVNode("div", _hoisted_2, [
|
|
61
80
|
(openBlock(true), createElementBlock(Fragment, null, renderList(item.list, (element, index2) => {
|
|
62
81
|
return openBlock(), createBlock(FormItem, {
|
|
63
82
|
record: element,
|
|
@@ -69,7 +88,7 @@ const _sfc_main = {
|
|
|
69
88
|
onClickColumnsEvent: onClickColumns
|
|
70
89
|
}, null, 8, ["record", "recordData", "columnsIndex"]);
|
|
71
90
|
}), 128))
|
|
72
|
-
]
|
|
91
|
+
])
|
|
73
92
|
]),
|
|
74
93
|
_: 2
|
|
75
94
|
}, 1032, ["flex"]);
|
|
@@ -77,11 +96,11 @@ const _sfc_main = {
|
|
|
77
96
|
]),
|
|
78
97
|
_: 1
|
|
79
98
|
}, 8, ["gutter"])
|
|
80
|
-
]
|
|
99
|
+
]);
|
|
81
100
|
};
|
|
82
101
|
}
|
|
83
102
|
};
|
|
84
|
-
const SingleColumn = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
103
|
+
const SingleColumn = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-59fe29b6"]]);
|
|
85
104
|
export {
|
|
86
105
|
SingleColumn as default
|
|
87
106
|
};
|
|
@@ -1,13 +1,24 @@
|
|
|
1
|
-
import { resolveComponent, createElementBlock, openBlock,
|
|
1
|
+
import { useCssVars, computed, resolveComponent, createElementBlock, openBlock, createVNode, withCtx, Fragment, renderList, createBlock, normalizeStyle, createElementVNode } from "vue";
|
|
2
2
|
import FormItem from "./sun-card-design-mobile.es25.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import _export_sfc from "./sun-card-design-mobile.es28.js";
|
|
5
|
-
const _hoisted_1 =
|
|
5
|
+
const _hoisted_1 = { class: "main-grid" };
|
|
6
|
+
const _hoisted_2 = ["onClick"];
|
|
6
7
|
const _sfc_main = {
|
|
7
8
|
__name: "multipleColumn",
|
|
8
9
|
props: ["record", "recordData", "columnsIndex"],
|
|
9
10
|
emits: ["clickEvent", "clickColumnsEvent", "fileUpdateEvent"],
|
|
10
11
|
setup(__props, { emit: __emit }) {
|
|
12
|
+
useCssVars((_ctx) => ({
|
|
13
|
+
"v5bd67528": mainBackground.value,
|
|
14
|
+
"v0ec6abd8": boxBackground.value,
|
|
15
|
+
"v9216a054": boxBorder.value,
|
|
16
|
+
"v47435ff0": boxBorderRadius.value,
|
|
17
|
+
"v18e114b2": boxPadding.value,
|
|
18
|
+
"v69535d1a": boxJustifyContent.value,
|
|
19
|
+
"v9e7e6ba2": boxMinHeight.value,
|
|
20
|
+
"v58e6966c": boxShadow.value
|
|
21
|
+
}));
|
|
11
22
|
const props = __props;
|
|
12
23
|
const emit = __emit;
|
|
13
24
|
const getIndex = (index) => {
|
|
@@ -26,22 +37,40 @@ const _sfc_main = {
|
|
|
26
37
|
if (!record.options.clickEvent) return;
|
|
27
38
|
emit("clickColumnsEvent", record);
|
|
28
39
|
};
|
|
29
|
-
|
|
40
|
+
function isGradientColor(color) {
|
|
41
|
+
return /^(linear|radial)-gradient\(.*\)$/.test(color);
|
|
42
|
+
}
|
|
43
|
+
const mainBackground = computed(() => {
|
|
44
|
+
if (!props.recordData?.config?.background) {
|
|
45
|
+
return "transparent";
|
|
46
|
+
}
|
|
30
47
|
if (isGradientColor(props.recordData.config.background)) {
|
|
31
48
|
return "none";
|
|
32
49
|
}
|
|
33
50
|
return props.recordData.config.background;
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
51
|
+
});
|
|
52
|
+
const boxBackground = computed(() => props.record.options.style?.background);
|
|
53
|
+
const boxBorder = computed(() => {
|
|
54
|
+
const borderColor = props.record.options.style?.borderColor;
|
|
55
|
+
if (borderColor === "none") return "none";
|
|
56
|
+
return `1px solid ${borderColor || "transparent"}`;
|
|
57
|
+
});
|
|
58
|
+
const boxBorderRadius = computed(() => `${props.record.options.style?.borderRadius}px`);
|
|
59
|
+
const boxPadding = computed(() => {
|
|
60
|
+
const tb = props.record.options.style?.tbPadding;
|
|
61
|
+
const lr = props.record.options.style?.lrPadding;
|
|
62
|
+
return `${tb}px ${lr}px`;
|
|
63
|
+
});
|
|
64
|
+
const boxJustifyContent = computed(() => props.record.options.style?.alignItems || "start");
|
|
65
|
+
const boxMinHeight = computed(() => {
|
|
66
|
+
const minH = props.record.options.style?.minHeight;
|
|
67
|
+
return minH ? `${minH}px` : "48px";
|
|
68
|
+
});
|
|
69
|
+
const boxShadow = computed(() => props.record.options.style?.boxShadow || null);
|
|
38
70
|
return (_ctx, _cache) => {
|
|
39
71
|
const _component_a_col = resolveComponent("a-col");
|
|
40
72
|
const _component_a_row = resolveComponent("a-row");
|
|
41
|
-
return openBlock(), createElementBlock("div",
|
|
42
|
-
class: "main-grid",
|
|
43
|
-
style: normalizeStyle({ background: getBackground() })
|
|
44
|
-
}, [
|
|
73
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
45
74
|
createVNode(_component_a_row, {
|
|
46
75
|
gutter: [props.record.options.style.lrGutter, props.record.options.style.tbGutter]
|
|
47
76
|
}, {
|
|
@@ -58,15 +87,6 @@ const _sfc_main = {
|
|
|
58
87
|
default: withCtx(() => [
|
|
59
88
|
createElementVNode("div", {
|
|
60
89
|
class: "box",
|
|
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
90
|
onClick: ($event) => onClickColumns(item)
|
|
71
91
|
}, [
|
|
72
92
|
(openBlock(true), createElementBlock(Fragment, null, renderList(item.list, (element, index2) => {
|
|
@@ -80,7 +100,7 @@ const _sfc_main = {
|
|
|
80
100
|
onClickColumnsEvent: onClickColumns
|
|
81
101
|
}, null, 8, ["record", "recordData", "columnsIndex"]);
|
|
82
102
|
}), 128))
|
|
83
|
-
],
|
|
103
|
+
], 8, _hoisted_2)
|
|
84
104
|
]),
|
|
85
105
|
_: 2
|
|
86
106
|
}, 1032, ["flex", "style"]);
|
|
@@ -88,11 +108,11 @@ const _sfc_main = {
|
|
|
88
108
|
]),
|
|
89
109
|
_: 1
|
|
90
110
|
}, 8, ["gutter"])
|
|
91
|
-
]
|
|
111
|
+
]);
|
|
92
112
|
};
|
|
93
113
|
}
|
|
94
114
|
};
|
|
95
|
-
const MultipleColumn = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
115
|
+
const MultipleColumn = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ed08be23"]]);
|
|
96
116
|
export {
|
|
97
117
|
MultipleColumn as default
|
|
98
118
|
};
|
|
@@ -1,14 +1,25 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useCssVars, computed, ref, watch, resolveComponent, createElementBlock, openBlock, createElementVNode, createVNode, withCtx, TransitionGroup, Fragment, renderList, createBlock, normalizeStyle, Transition, createCommentVNode } from "vue";
|
|
2
2
|
import FormItem from "./sun-card-design-mobile.es25.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import _export_sfc from "./sun-card-design-mobile.es28.js";
|
|
5
|
-
const _hoisted_1 = { class: "
|
|
6
|
-
const _hoisted_2 =
|
|
5
|
+
const _hoisted_1 = { class: "main-grid" };
|
|
6
|
+
const _hoisted_2 = { class: "expand-list-container" };
|
|
7
|
+
const _hoisted_3 = ["onClick"];
|
|
7
8
|
const _sfc_main = {
|
|
8
9
|
__name: "multipleLine",
|
|
9
10
|
props: ["record", "recordData", "columnsIndex"],
|
|
10
11
|
emits: ["clickEvent", "clickColumnsEvent", "fileUpdateEvent"],
|
|
11
12
|
setup(__props, { emit: __emit }) {
|
|
13
|
+
useCssVars((_ctx) => ({
|
|
14
|
+
"v4ea7c6cc": mainBackground.value,
|
|
15
|
+
"v717295b4": boxBackground.value,
|
|
16
|
+
"v3ff7e7b2": boxBorder.value,
|
|
17
|
+
"v43b732e4": boxBorderRadius.value,
|
|
18
|
+
"ea198d6a": boxPadding.value,
|
|
19
|
+
"v7ffc2562": boxJustifyContent.value,
|
|
20
|
+
"v037b965a": boxMinHeight.value,
|
|
21
|
+
"v5c8feca6": boxShadow.value
|
|
22
|
+
}));
|
|
12
23
|
const props = __props;
|
|
13
24
|
const emit = __emit;
|
|
14
25
|
const currentDisplayCount = ref(0);
|
|
@@ -66,7 +77,7 @@ const _sfc_main = {
|
|
|
66
77
|
function isGradientColor(color) {
|
|
67
78
|
return /^(linear|radial)-gradient\(.*\)$/.test(color);
|
|
68
79
|
}
|
|
69
|
-
const
|
|
80
|
+
const mainBackground = computed(() => {
|
|
70
81
|
if (!props.recordData?.config?.background) {
|
|
71
82
|
return "transparent";
|
|
72
83
|
}
|
|
@@ -75,14 +86,29 @@ const _sfc_main = {
|
|
|
75
86
|
}
|
|
76
87
|
return props.recordData.config.background;
|
|
77
88
|
});
|
|
89
|
+
const boxBackground = computed(() => props.record.options.style?.background);
|
|
90
|
+
const boxBorder = computed(() => {
|
|
91
|
+
const borderColor = props.record.options.style?.borderColor;
|
|
92
|
+
if (borderColor === "none") return "none";
|
|
93
|
+
return `1px solid ${borderColor || "transparent"}`;
|
|
94
|
+
});
|
|
95
|
+
const boxBorderRadius = computed(() => `${props.record.options.style?.borderRadius}px`);
|
|
96
|
+
const boxPadding = computed(() => {
|
|
97
|
+
const tb = props.record.options.style?.tbPadding;
|
|
98
|
+
const lr = props.record.options.style?.lrPadding;
|
|
99
|
+
return `${tb}px ${lr}px`;
|
|
100
|
+
});
|
|
101
|
+
const boxJustifyContent = computed(() => props.record.options.style?.alignItems || "start");
|
|
102
|
+
const boxMinHeight = computed(() => {
|
|
103
|
+
const minH = props.record.options.style?.minHeight;
|
|
104
|
+
return minH ? `${minH}px` : "48px";
|
|
105
|
+
});
|
|
106
|
+
const boxShadow = computed(() => props.record.options.style?.boxShadow || null);
|
|
78
107
|
return (_ctx, _cache) => {
|
|
79
108
|
const _component_a_col = resolveComponent("a-col");
|
|
80
109
|
const _component_a_row = resolveComponent("a-row");
|
|
81
|
-
return openBlock(), createElementBlock("div",
|
|
82
|
-
|
|
83
|
-
style: normalizeStyle({ background: getBackground.value })
|
|
84
|
-
}, [
|
|
85
|
-
createElementVNode("div", _hoisted_1, [
|
|
110
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
111
|
+
createElementVNode("div", _hoisted_2, [
|
|
86
112
|
createVNode(_component_a_row, {
|
|
87
113
|
gutter: [props.record.options.style.lrGutter, props.record.options.style.tbGutter]
|
|
88
114
|
}, {
|
|
@@ -106,15 +132,6 @@ const _sfc_main = {
|
|
|
106
132
|
default: withCtx(() => [
|
|
107
133
|
createElementVNode("div", {
|
|
108
134
|
class: "box",
|
|
109
|
-
style: normalizeStyle({
|
|
110
|
-
background: props.record.options.style?.background,
|
|
111
|
-
border: props.record.options.style?.borderColor === "none" ? "none" : "1px solid " + (props.record.options.style?.borderColor || "transparent"),
|
|
112
|
-
borderRadius: props.record.options.style?.borderRadius + "px",
|
|
113
|
-
padding: props.record.options.style?.tbPadding + "px " + props.record.options.style?.lrPadding + "px",
|
|
114
|
-
justifyContent: props.record.options.style?.alignItems || "start",
|
|
115
|
-
minHeight: props.record.options.style?.minHeight + "px" || "48px",
|
|
116
|
-
boxShadow: props.record.options.style?.boxShadow || null
|
|
117
|
-
}),
|
|
118
135
|
onClick: ($event) => onClickColumns(item)
|
|
119
136
|
}, [
|
|
120
137
|
(openBlock(true), createElementBlock(Fragment, null, renderList(item.list, (element, index2) => {
|
|
@@ -128,7 +145,7 @@ const _sfc_main = {
|
|
|
128
145
|
onClickColumnsEvent: onClickColumns
|
|
129
146
|
}, null, 8, ["record", "recordData", "columnsIndex"]);
|
|
130
147
|
}), 128))
|
|
131
|
-
],
|
|
148
|
+
], 8, _hoisted_3)
|
|
132
149
|
]),
|
|
133
150
|
_: 2
|
|
134
151
|
}, 1032, ["flex", "style"]);
|
|
@@ -152,11 +169,11 @@ const _sfc_main = {
|
|
|
152
169
|
]),
|
|
153
170
|
_: 1
|
|
154
171
|
})
|
|
155
|
-
]
|
|
172
|
+
]);
|
|
156
173
|
};
|
|
157
174
|
}
|
|
158
175
|
};
|
|
159
|
-
const MultipleLine = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
176
|
+
const MultipleLine = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a2abd56b"]]);
|
|
160
177
|
export {
|
|
161
178
|
MultipleLine as default
|
|
162
179
|
};
|
|
@@ -1,13 +1,24 @@
|
|
|
1
|
-
import { ref, watch, createElementBlock, openBlock,
|
|
1
|
+
import { useCssVars, computed, ref, watch, createElementBlock, openBlock, createElementVNode } from "vue";
|
|
2
2
|
import { renderTextByVariables } from "./sun-card-design-mobile.es26.js";
|
|
3
3
|
import { IMG } from "./sun-card-design-mobile.es32.js";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import _export_sfc from "./sun-card-design-mobile.es28.js";
|
|
6
|
+
const _hoisted_1 = { class: "main-picture" };
|
|
6
7
|
const _sfc_main = {
|
|
7
8
|
__name: "pictureComp",
|
|
8
9
|
props: ["record", "columnsIndex"],
|
|
9
10
|
emits: ["clickEvent"],
|
|
10
11
|
setup(__props, { emit: __emit }) {
|
|
12
|
+
useCssVars((_ctx) => ({
|
|
13
|
+
"v7d193be8": mainPadding.value,
|
|
14
|
+
"v8d70cd24": mainJustifyContent.value,
|
|
15
|
+
"v4a05b1f0": pictureBorderRadius.value,
|
|
16
|
+
"v72e847f4": pictureWidth.value,
|
|
17
|
+
"v5f5c868e": pictureHeight.value,
|
|
18
|
+
"v07f5297b": pictureBackgroundImage.value,
|
|
19
|
+
"v52dadbe1": pictureBackgroundSize.value,
|
|
20
|
+
"v49268241": pictureAspectRatio.value
|
|
21
|
+
}));
|
|
11
22
|
const props = __props;
|
|
12
23
|
const emit = __emit;
|
|
13
24
|
const currentImageUrl = ref(IMG);
|
|
@@ -27,6 +38,22 @@ const _sfc_main = {
|
|
|
27
38
|
emit("clickEvent", props.record);
|
|
28
39
|
}
|
|
29
40
|
};
|
|
41
|
+
const mainPadding = computed(() => {
|
|
42
|
+
const tb = props.record.options?.style?.tbPadding ?? 0;
|
|
43
|
+
const lr = props.record.options?.style?.lrPadding ?? 0;
|
|
44
|
+
return `${tb}px ${lr}px`;
|
|
45
|
+
});
|
|
46
|
+
const mainJustifyContent = computed(() => props.record.options.style.justifyContent);
|
|
47
|
+
const pictureWidth = computed(
|
|
48
|
+
() => props.record.options.style.mode === "fixed" ? props.record.options.style.width + "px" : "100%"
|
|
49
|
+
);
|
|
50
|
+
const pictureHeight = computed(() => getHeight());
|
|
51
|
+
const pictureBackgroundImage = computed(() => `url(${currentImageUrl.value})`);
|
|
52
|
+
const pictureBackgroundSize = computed(() => props.record.options.style.cuttingMode);
|
|
53
|
+
const pictureAspectRatio = computed(() => getAspectRatio());
|
|
54
|
+
const pictureBorderRadius = computed(
|
|
55
|
+
() => props.record.options.style.borderRadius + "px"
|
|
56
|
+
);
|
|
30
57
|
const getHeight = () => {
|
|
31
58
|
const mode = props.record.options.style.mode;
|
|
32
59
|
const width = props.record.options.style.width;
|
|
@@ -69,29 +96,16 @@ const _sfc_main = {
|
|
|
69
96
|
img.src = url;
|
|
70
97
|
}
|
|
71
98
|
return (_ctx, _cache) => {
|
|
72
|
-
return openBlock(), createElementBlock("div",
|
|
73
|
-
class: "main-picture",
|
|
74
|
-
style: normalizeStyle({ "justify-content": props.record.options.style.justifyContent, padding: `${props.record.options?.style?.tbPadding || 0}px ${props.record.options?.style?.lrPadding || 0}px` })
|
|
75
|
-
}, [
|
|
99
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
76
100
|
createElementVNode("div", {
|
|
77
101
|
class: "picture-container",
|
|
78
|
-
style: normalizeStyle({
|
|
79
|
-
width: props.record.options.style.mode === "fixed" ? props.record.options.style.width + "px" : "100%",
|
|
80
|
-
height: getHeight(),
|
|
81
|
-
backgroundImage: `url(${currentImageUrl.value})`,
|
|
82
|
-
backgroundSize: props.record.options.style.cuttingMode,
|
|
83
|
-
backgroundPosition: "center",
|
|
84
|
-
backgroundRepeat: "no-repeat",
|
|
85
|
-
aspectRatio: getAspectRatio(),
|
|
86
|
-
borderRadius: props.record.options.style.borderRadius + "px"
|
|
87
|
-
}),
|
|
88
102
|
onClick
|
|
89
|
-
}
|
|
90
|
-
]
|
|
103
|
+
})
|
|
104
|
+
]);
|
|
91
105
|
};
|
|
92
106
|
}
|
|
93
107
|
};
|
|
94
|
-
const Picture = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
108
|
+
const Picture = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3c52305a"]]);
|
|
95
109
|
export {
|
|
96
110
|
Picture as default
|
|
97
111
|
};
|