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.
Files changed (61) hide show
  1. package/dist/mobile/sun-card-design-mobile.es10.js +13 -7
  2. package/dist/mobile/sun-card-design-mobile.es11.js +19 -12
  3. package/dist/mobile/sun-card-design-mobile.es12.js +11 -9
  4. package/dist/mobile/sun-card-design-mobile.es13.js +28 -22
  5. package/dist/mobile/sun-card-design-mobile.es14.js +13 -7
  6. package/dist/mobile/sun-card-design-mobile.es15.js +43 -23
  7. package/dist/mobile/sun-card-design-mobile.es16.js +13 -7
  8. package/dist/mobile/sun-card-design-mobile.es17.js +14 -8
  9. package/dist/mobile/sun-card-design-mobile.es18.js +14 -8
  10. package/dist/mobile/sun-card-design-mobile.es19.js +21 -11
  11. package/dist/mobile/sun-card-design-mobile.es20.js +19 -12
  12. package/dist/mobile/sun-card-design-mobile.es21.js +16 -9
  13. package/dist/mobile/sun-card-design-mobile.es22.js +19 -12
  14. package/dist/mobile/sun-card-design-mobile.es23.js +16 -9
  15. package/dist/mobile/sun-card-design-mobile.es24.js +19 -12
  16. package/dist/mobile/sun-card-design-mobile.es3.js +41 -28
  17. package/dist/mobile/sun-card-design-mobile.es37.js +19 -18
  18. package/dist/mobile/sun-card-design-mobile.es4.js +54 -32
  19. package/dist/mobile/sun-card-design-mobile.es5.js +27 -18
  20. package/dist/mobile/sun-card-design-mobile.es55.js +26 -29
  21. package/dist/mobile/sun-card-design-mobile.es56.js +21 -20
  22. package/dist/mobile/sun-card-design-mobile.es57.js +44 -25
  23. package/dist/mobile/sun-card-design-mobile.es58.js +43 -23
  24. package/dist/mobile/sun-card-design-mobile.es59.js +38 -21
  25. package/dist/mobile/sun-card-design-mobile.es6.js +32 -18
  26. package/dist/mobile/sun-card-design-mobile.es60.js +38 -21
  27. package/dist/mobile/sun-card-design-mobile.es7.js +41 -35
  28. package/dist/mobile/sun-card-design-mobile.es8.js +28 -22
  29. package/dist/mobile/sun-card-design-mobile.es9.js +21 -12
  30. package/dist/pc/sun-card-design-pc.es10.js +13 -7
  31. package/dist/pc/sun-card-design-pc.es11.js +19 -12
  32. package/dist/pc/sun-card-design-pc.es12.js +11 -9
  33. package/dist/pc/sun-card-design-pc.es13.js +28 -22
  34. package/dist/pc/sun-card-design-pc.es14.js +13 -7
  35. package/dist/pc/sun-card-design-pc.es15.js +43 -23
  36. package/dist/pc/sun-card-design-pc.es16.js +13 -7
  37. package/dist/pc/sun-card-design-pc.es17.js +14 -8
  38. package/dist/pc/sun-card-design-pc.es18.js +14 -8
  39. package/dist/pc/sun-card-design-pc.es19.js +21 -11
  40. package/dist/pc/sun-card-design-pc.es20.js +19 -12
  41. package/dist/pc/sun-card-design-pc.es21.js +16 -9
  42. package/dist/pc/sun-card-design-pc.es22.js +19 -12
  43. package/dist/pc/sun-card-design-pc.es23.js +16 -9
  44. package/dist/pc/sun-card-design-pc.es24.js +19 -12
  45. package/dist/pc/sun-card-design-pc.es3.js +41 -28
  46. package/dist/pc/sun-card-design-pc.es37.js +19 -18
  47. package/dist/pc/sun-card-design-pc.es4.js +54 -32
  48. package/dist/pc/sun-card-design-pc.es5.js +27 -18
  49. package/dist/pc/sun-card-design-pc.es55.js +26 -29
  50. package/dist/pc/sun-card-design-pc.es56.js +21 -20
  51. package/dist/pc/sun-card-design-pc.es57.js +44 -25
  52. package/dist/pc/sun-card-design-pc.es58.js +43 -23
  53. package/dist/pc/sun-card-design-pc.es59.js +38 -21
  54. package/dist/pc/sun-card-design-pc.es6.js +32 -18
  55. package/dist/pc/sun-card-design-pc.es60.js +38 -21
  56. package/dist/pc/sun-card-design-pc.es7.js +41 -35
  57. package/dist/pc/sun-card-design-pc.es8.js +28 -22
  58. package/dist/pc/sun-card-design-pc.es9.js +21 -12
  59. package/dist/public/sun-card-design.css +1 -1
  60. package/package.json +1 -1
  61. package/dist/mobile/sun-card-design-mobile.es61.js +0 -162
@@ -1,31 +1,37 @@
1
- import { resolveComponent, createElementBlock, openBlock, createElementVNode, normalizeStyle, createVNode, unref } from "vue";
1
+ import { useCssVars, computed, resolveComponent, createElementBlock, openBlock, createElementVNode, createVNode, unref } from "vue";
2
2
  import { renderTextByVariables } from "./sun-card-design-mobile.es26.js";
3
3
  /* empty css */
4
4
  import _export_sfc from "./sun-card-design-mobile.es28.js";
5
+ const _hoisted_1 = { class: "main-rate" };
5
6
  const _sfc_main = {
6
7
  __name: "rateComp",
7
8
  props: ["record"],
8
9
  setup(__props) {
10
+ useCssVars((_ctx) => ({
11
+ "v328335d6": mainPadding.value
12
+ }));
9
13
  const props = __props;
14
+ const mainPadding = computed(() => {
15
+ const tb = props.record.options?.style?.tbPadding ?? 0;
16
+ const lr = props.record.options?.style?.lrPadding ?? 0;
17
+ return `${tb}px ${lr}px`;
18
+ });
10
19
  return (_ctx, _cache) => {
11
20
  const _component_a_rate = resolveComponent("a-rate");
12
21
  return openBlock(), createElementBlock("div", null, [
13
- createElementVNode("div", {
14
- class: "main-rate",
15
- style: normalizeStyle({ padding: `${props.record.options?.style?.tbPadding || 0}px ${props.record.options?.style?.lrPadding || 0}px` })
16
- }, [
22
+ createElementVNode("div", _hoisted_1, [
17
23
  createVNode(_component_a_rate, {
18
24
  value: unref(renderTextByVariables)(props.record.options.defaultValue) * 1,
19
25
  count: props.record.options.count,
20
26
  "allow-half": "",
21
27
  disabled: ""
22
28
  }, null, 8, ["value", "count"])
23
- ], 4)
29
+ ])
24
30
  ]);
25
31
  };
26
32
  }
27
33
  };
28
- const Rate = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-20282c61"]]);
34
+ const Rate = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-560a4494"]]);
29
35
  export {
30
36
  Rate as default
31
37
  };
@@ -1,14 +1,27 @@
1
- import { resolveComponent, createElementBlock, openBlock, createElementVNode, normalizeStyle, createVNode, withCtx, createTextVNode, toDisplayString, unref } from "vue";
1
+ import { useCssVars, computed, resolveComponent, createElementBlock, openBlock, createElementVNode, createVNode, withCtx, createTextVNode, toDisplayString, unref } from "vue";
2
2
  import { renderTextByVariables } from "./sun-card-design-mobile.es26.js";
3
3
  /* empty css */
4
4
  import _export_sfc from "./sun-card-design-mobile.es28.js";
5
+ const _hoisted_1 = { class: "main-tag" };
5
6
  const _sfc_main = {
6
7
  __name: "tagComp",
7
8
  props: ["record"],
8
9
  emits: ["clickEvent"],
9
10
  setup(__props, { emit: __emit }) {
11
+ useCssVars((_ctx) => ({
12
+ "v709d157f": mainPadding.value,
13
+ "cd06f03c": tagColor.value,
14
+ "c3dff7de": tagFontSize.value
15
+ }));
10
16
  const props = __props;
11
17
  const emit = __emit;
18
+ const mainPadding = computed(() => {
19
+ const tb = props.record.options?.style?.tbPadding ?? 0;
20
+ const lr = props.record.options?.style?.lrPadding ?? 0;
21
+ return `${tb}px ${lr}px`;
22
+ });
23
+ const tagColor = computed(() => props.record.options.style.color);
24
+ const tagFontSize = computed(() => props.record.options.style.fontSize + "px");
12
25
  const onClick = () => {
13
26
  if (props.record.options.clickEvent) {
14
27
  emit("clickEvent", props.record);
@@ -17,29 +30,23 @@ const _sfc_main = {
17
30
  return (_ctx, _cache) => {
18
31
  const _component_a_tag = resolveComponent("a-tag");
19
32
  return openBlock(), createElementBlock("div", null, [
20
- createElementVNode("div", {
21
- class: "main-tag",
22
- style: normalizeStyle({ padding: `${props.record.options?.style?.tbPadding || 0}px ${props.record.options?.style?.lrPadding || 0}px` })
23
- }, [
33
+ createElementVNode("div", _hoisted_1, [
24
34
  createVNode(_component_a_tag, {
35
+ class: "main-tag-inner",
25
36
  color: props.record.options.style.background,
26
- style: normalizeStyle({
27
- color: props.record.options.style.color,
28
- fontSize: props.record.options.style.fontSize + "px"
29
- }),
30
37
  onClick
31
38
  }, {
32
39
  default: withCtx(() => [
33
40
  createTextVNode(toDisplayString(unref(renderTextByVariables)(props.record.options.defaultValue)), 1)
34
41
  ]),
35
42
  _: 1
36
- }, 8, ["color", "style"])
37
- ], 4)
43
+ }, 8, ["color"])
44
+ ])
38
45
  ]);
39
46
  };
40
47
  }
41
48
  };
42
- const Tag = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6bc73f7b"]]);
49
+ const Tag = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6d50d817"]]);
43
50
  export {
44
51
  Tag as default
45
52
  };
@@ -1,4 +1,4 @@
1
- import { resolveComponent, createElementBlock, openBlock, createElementVNode, createVNode, normalizeStyle } from "vue";
1
+ import { useCssVars, computed, resolveComponent, createElementBlock, openBlock, createElementVNode, createVNode } from "vue";
2
2
  /* empty css */
3
3
  import _export_sfc from "./sun-card-design-mobile.es28.js";
4
4
  const _hoisted_1 = { class: "main-divider" };
@@ -6,24 +6,26 @@ const _sfc_main = {
6
6
  __name: "dividerComp",
7
7
  props: ["record"],
8
8
  setup(__props) {
9
+ useCssVars((_ctx) => ({
10
+ "v19341f66": dividerMarginTop.value,
11
+ "v65036833": dividerMarginBottom.value,
12
+ "v971adb30": dividerBackground.value
13
+ }));
9
14
  const props = __props;
15
+ const dividerMarginTop = computed(() => `${props.record.options.style.marginTop}px`);
16
+ const dividerMarginBottom = computed(() => `${props.record.options.style.marginBottom}px`);
17
+ const dividerBackground = computed(() => "#ccc");
10
18
  return (_ctx, _cache) => {
11
19
  const _component_a_divider = resolveComponent("a-divider");
12
20
  return openBlock(), createElementBlock("div", null, [
13
21
  createElementVNode("div", _hoisted_1, [
14
- createVNode(_component_a_divider, {
15
- style: normalizeStyle({
16
- "margin-top": props.record.options.style.marginTop + "px",
17
- "margin-bottom": props.record.options.style.marginBottom + "px",
18
- "background": "#ccc"
19
- })
20
- }, null, 8, ["style"])
22
+ createVNode(_component_a_divider, { class: "main-divider-line" })
21
23
  ])
22
24
  ]);
23
25
  };
24
26
  }
25
27
  };
26
- const Divider = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-bd99764a"]]);
28
+ const Divider = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-230f14f5"]]);
27
29
  export {
28
30
  Divider as default
29
31
  };
@@ -1,14 +1,22 @@
1
- import { ref, computed, resolveComponent, createElementBlock, openBlock, Fragment, createElementVNode, createVNode, normalizeStyle, withCtx, unref, createTextVNode } from "vue";
1
+ import { useCssVars, computed, ref, resolveComponent, createElementBlock, openBlock, Fragment, createElementVNode, createVNode, withCtx, unref, createTextVNode } from "vue";
2
2
  import { panoramaSvg } from "./sun-card-design-mobile.es34.js";
3
3
  import PanoramaView from "./sun-card-design-mobile.es42.js";
4
4
  /* empty css */
5
5
  import _export_sfc from "./sun-card-design-mobile.es28.js";
6
- const _hoisted_1 = ["src"];
7
- const _hoisted_2 = ["innerHTML"];
6
+ const _hoisted_1 = { class: "main-panorama" };
7
+ const _hoisted_2 = { class: "panorama-box" };
8
+ const _hoisted_3 = ["src"];
9
+ const _hoisted_4 = ["innerHTML"];
8
10
  const _sfc_main = {
9
11
  __name: "panoramaComp",
10
12
  props: ["record"],
11
13
  setup(__props) {
14
+ useCssVars((_ctx) => ({
15
+ "v214cfc8c": mainPadding.value,
16
+ "a34b451a": panoramaWidth.value,
17
+ "v0322571a": panoramaHeight.value,
18
+ "a89180de": panoramaBorderRadius.value
19
+ }));
12
20
  const props = __props;
13
21
  const panoramaCompRef = ref();
14
22
  const styleSize = computed(() => {
@@ -18,28 +26,26 @@ const _sfc_main = {
18
26
  height: s.height || "360px"
19
27
  };
20
28
  });
29
+ const mainPadding = computed(() => {
30
+ const tb = props.record.options?.style?.tbPadding ?? 0;
31
+ const lr = props.record.options?.style?.lrPadding ?? 0;
32
+ return `${tb}px ${lr}px`;
33
+ });
34
+ const panoramaWidth = computed(() => styleSize.value.width);
35
+ const panoramaHeight = computed(() => styleSize.value.height);
36
+ const panoramaBorderRadius = computed(() => props.record.options.style.borderRadius + "px");
21
37
  const onView = () => {
22
38
  panoramaCompRef.value.onOpen(props.record.options.src);
23
39
  };
24
40
  return (_ctx, _cache) => {
25
41
  const _component_a_tooltip = resolveComponent("a-tooltip");
26
42
  return openBlock(), createElementBlock(Fragment, null, [
27
- createElementVNode("div", {
28
- class: "main-panorama",
29
- style: normalizeStyle({ padding: `${props.record.options?.style?.tbPadding || 0}px ${props.record.options?.style?.lrPadding || 0}px` })
30
- }, [
31
- createElementVNode("div", {
32
- class: "panorama-box",
33
- style: normalizeStyle({
34
- width: styleSize.value.width,
35
- height: styleSize.value.height,
36
- borderRadius: props.record.options.style.borderRadius + "px"
37
- })
38
- }, [
43
+ createElementVNode("div", _hoisted_1, [
44
+ createElementVNode("div", _hoisted_2, [
39
45
  createElementVNode("img", {
40
- src: props.record.options.briefSrc,
41
- style: { "width": "100%", "height": "100%" }
42
- }, null, 8, _hoisted_1),
46
+ class: "panorama-img",
47
+ src: props.record.options.briefSrc
48
+ }, null, 8, _hoisted_3),
43
49
  createVNode(_component_a_tooltip, null, {
44
50
  title: withCtx(() => [..._cache[0] || (_cache[0] = [
45
51
  createTextVNode("点击预览", -1)
@@ -49,12 +55,12 @@ const _sfc_main = {
49
55
  class: "panorama-box-icon",
50
56
  innerHTML: unref(panoramaSvg)(),
51
57
  onClick: onView
52
- }, null, 8, _hoisted_2)
58
+ }, null, 8, _hoisted_4)
53
59
  ]),
54
60
  _: 1
55
61
  })
56
- ], 4)
57
- ], 4),
62
+ ])
63
+ ]),
58
64
  createVNode(PanoramaView, {
59
65
  ref_key: "panoramaCompRef",
60
66
  ref: panoramaCompRef
@@ -63,7 +69,7 @@ const _sfc_main = {
63
69
  };
64
70
  }
65
71
  };
66
- const Panorama = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-bf23cf13"]]);
72
+ const Panorama = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5eba5d7a"]]);
67
73
  export {
68
74
  Panorama as default
69
75
  };
@@ -1,13 +1,22 @@
1
- import { resolveComponent, createElementBlock, openBlock, normalizeStyle, createVNode, withCtx, createTextVNode, toDisplayString, unref } from "vue";
1
+ import { useCssVars, computed, resolveComponent, createElementBlock, openBlock, createVNode, withCtx, createTextVNode, toDisplayString, unref } from "vue";
2
2
  import html2canvas from "html2canvas";
3
3
  import { renderTextByVariables } from "./sun-card-design-mobile.es26.js";
4
4
  /* empty css */
5
5
  import _export_sfc from "./sun-card-design-mobile.es28.js";
6
+ const _hoisted_1 = { class: "main-button" };
6
7
  const _sfc_main = {
7
8
  __name: "generateImgComp",
8
9
  props: ["record"],
9
10
  setup(__props) {
11
+ useCssVars((_ctx) => ({
12
+ "a09d9796": mainPadding.value
13
+ }));
10
14
  const props = __props;
15
+ const mainPadding = computed(() => {
16
+ const tb = props.record.options?.style?.tbPadding ?? 0;
17
+ const lr = props.record.options?.style?.lrPadding ?? 0;
18
+ return `${tb}px ${lr}px`;
19
+ });
11
20
  const queryCanvasEl = () => {
12
21
  const elTo = document.querySelector(".mb-main");
13
22
  if (elTo) return elTo;
@@ -38,10 +47,7 @@ const _sfc_main = {
38
47
  };
39
48
  return (_ctx, _cache) => {
40
49
  const _component_a_button = resolveComponent("a-button");
41
- return openBlock(), createElementBlock("div", {
42
- class: "main-button",
43
- style: normalizeStyle({ padding: `${props.record.options?.style?.tbPadding || 0}px ${props.record.options?.style?.lrPadding || 0}px` })
44
- }, [
50
+ return openBlock(), createElementBlock("div", _hoisted_1, [
45
51
  createVNode(_component_a_button, {
46
52
  type: "primary",
47
53
  onClick: onGenerate
@@ -51,11 +57,11 @@ const _sfc_main = {
51
57
  ]),
52
58
  _: 1
53
59
  })
54
- ], 4);
60
+ ]);
55
61
  };
56
62
  }
57
63
  };
58
- const GenerateImg = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4806336e"]]);
64
+ const GenerateImg = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a9ba174d"]]);
59
65
  export {
60
66
  GenerateImg as default
61
67
  };
@@ -1,13 +1,24 @@
1
- import { resolveComponent, createElementBlock, openBlock, normalizeStyle, createVNode, withCtx, Fragment, renderList, createBlock, createElementVNode } from "vue";
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 = ["onClick"];
5
+ const _hoisted_1 = { class: "main-grid" };
6
+ const _hoisted_2 = ["onClick"];
6
7
  const _sfc_main = {
7
8
  __name: "gridComp",
8
9
  props: ["record", "recordData", "columnsIndex"],
9
10
  emits: ["clickEvent", "clickColumnsEvent", "fileUpdateEvent"],
10
11
  setup(__props, { emit: __emit }) {
12
+ useCssVars((_ctx) => ({
13
+ "v006886e2": mainBackground.value,
14
+ "v6ee75b91": boxBackground.value,
15
+ "v74cc240f": boxBorder.value,
16
+ "v91dc14fe": boxBorderRadius.value,
17
+ "v1eb2eee4": boxPadding.value,
18
+ "v709306a8": boxJustifyContent.value,
19
+ "v77428154": boxMinHeight.value,
20
+ "dd37adfa": 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
- const getBackground = () => {
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
- function isGradientColor(color) {
36
- return /^(linear|radial)-gradient\(.*\)$/.test(color);
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
  }, {
@@ -56,15 +85,6 @@ const _sfc_main = {
56
85
  default: withCtx(() => [
57
86
  createElementVNode("div", {
58
87
  class: "box",
59
- style: normalizeStyle({
60
- background: props.record.options.style.background,
61
- border: props.record.options.style?.borderColor === "none" ? "none" : "1px solid " + (props.record.options.style?.borderColor || "transparent"),
62
- borderRadius: props.record.options.style.borderRadius + "px",
63
- padding: props.record.options.style.tbPadding + "px " + props.record.options.style.lrPadding + "px",
64
- justifyContent: props.record.options.style?.alignItems || "start",
65
- minHeight: props.record.options.style?.minHeight + "px" || "48px",
66
- boxShadow: props.record.options.style?.boxShadow || null
67
- }),
68
88
  onClick: ($event) => onClickColumns(item)
69
89
  }, [
70
90
  (openBlock(true), createElementBlock(Fragment, null, renderList(item.list, (element, index2) => {
@@ -76,7 +96,7 @@ const _sfc_main = {
76
96
  onFileUpdateEvent: onUpdate
77
97
  }, null, 8, ["record", "columnsIndex"]);
78
98
  }), 128))
79
- ], 12, _hoisted_1)
99
+ ], 8, _hoisted_2)
80
100
  ]),
81
101
  _: 2
82
102
  }, 1032, ["flex", "span", "style"]);
@@ -84,11 +104,11 @@ const _sfc_main = {
84
104
  ]),
85
105
  _: 1
86
106
  }, 8, ["gutter"])
87
- ], 4);
107
+ ]);
88
108
  };
89
109
  }
90
110
  };
91
- const Grid = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-812d703d"]]);
111
+ const Grid = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5e173df1"]]);
92
112
  export {
93
113
  Grid as default
94
114
  };
@@ -1,20 +1,26 @@
1
- import { resolveComponent, createElementBlock, openBlock, normalizeStyle, createVNode, withCtx, unref } from "vue";
1
+ import { useCssVars, computed, resolveComponent, createElementBlock, openBlock, createVNode, withCtx, unref } from "vue";
2
2
  import { renderTextByVariables } from "./sun-card-design-mobile.es26.js";
3
3
  /* empty css */
4
4
  import _export_sfc from "./sun-card-design-mobile.es28.js";
5
+ const _hoisted_1 = { class: "main-input" };
5
6
  const _sfc_main = {
6
7
  __name: "inputComp",
7
8
  props: ["record"],
8
9
  setup(__props) {
10
+ useCssVars((_ctx) => ({
11
+ "v0cbc7152": mainPadding.value
12
+ }));
9
13
  const props = __props;
14
+ const mainPadding = computed(() => {
15
+ const tb = props.record.options?.style?.tbPadding ?? 0;
16
+ const lr = props.record.options?.style?.lrPadding ?? 0;
17
+ return `${tb}px ${lr}px`;
18
+ });
10
19
  return (_ctx, _cache) => {
11
20
  const _component_a_input = resolveComponent("a-input");
12
21
  const _component_a_form_item = resolveComponent("a-form-item");
13
22
  const _component_a_form = resolveComponent("a-form");
14
- return openBlock(), createElementBlock("div", {
15
- class: "main-input",
16
- style: normalizeStyle({ padding: `${props.record.options?.style?.tbPadding || 0}px ${props.record.options?.style?.lrPadding || 0}px` })
17
- }, [
23
+ return openBlock(), createElementBlock("div", _hoisted_1, [
18
24
  createVNode(_component_a_form, {
19
25
  layout: props.record.options.flex
20
26
  }, {
@@ -34,11 +40,11 @@ const _sfc_main = {
34
40
  ]),
35
41
  _: 1
36
42
  }, 8, ["layout"])
37
- ], 4);
43
+ ]);
38
44
  };
39
45
  }
40
46
  };
41
- const Input = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f4e2b8e3"]]);
47
+ const Input = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5a467bf8"]]);
42
48
  export {
43
49
  Input as default
44
50
  };
@@ -1,20 +1,26 @@
1
- import { resolveComponent, createElementBlock, openBlock, normalizeStyle, createVNode, withCtx, unref } from "vue";
1
+ import { useCssVars, computed, resolveComponent, createElementBlock, openBlock, createVNode, withCtx, unref } from "vue";
2
2
  import { renderTextByVariables } from "./sun-card-design-mobile.es26.js";
3
3
  /* empty css */
4
4
  import _export_sfc from "./sun-card-design-mobile.es28.js";
5
+ const _hoisted_1 = { class: "main-select" };
5
6
  const _sfc_main = {
6
7
  __name: "selectComp",
7
8
  props: ["record"],
8
9
  setup(__props) {
10
+ useCssVars((_ctx) => ({
11
+ "v238a1ca9": mainPadding.value
12
+ }));
9
13
  const props = __props;
14
+ const mainPadding = computed(() => {
15
+ const tb = props.record.options?.style?.tbPadding ?? 0;
16
+ const lr = props.record.options?.style?.lrPadding ?? 0;
17
+ return `${tb}px ${lr}px`;
18
+ });
10
19
  return (_ctx, _cache) => {
11
20
  const _component_a_select = resolveComponent("a-select");
12
21
  const _component_a_form_item = resolveComponent("a-form-item");
13
22
  const _component_a_form = resolveComponent("a-form");
14
- return openBlock(), createElementBlock("div", {
15
- class: "main-select",
16
- style: normalizeStyle({ padding: `${props.record.options?.style?.tbPadding || 0}px ${props.record.options?.style?.lrPadding || 0}px` })
17
- }, [
23
+ return openBlock(), createElementBlock("div", _hoisted_1, [
18
24
  createVNode(_component_a_form, {
19
25
  layout: props.record.options.flex
20
26
  }, {
@@ -27,7 +33,7 @@ const _sfc_main = {
27
33
  value: props.record.options.defaultValue,
28
34
  "onUpdate:value": _cache[0] || (_cache[0] = ($event) => props.record.options.defaultValue = $event),
29
35
  placeholder: props.record.options.placeholder,
30
- style: { "width": "100%" },
36
+ class: "select-full-width",
31
37
  options: props.record.options.optionsMode === "fixed" ? props.record.options.optionsFixed : props.record.options.optionsAuto
32
38
  }, null, 8, ["value", "placeholder", "options"])
33
39
  ]),
@@ -36,11 +42,11 @@ const _sfc_main = {
36
42
  ]),
37
43
  _: 1
38
44
  }, 8, ["layout"])
39
- ], 4);
45
+ ]);
40
46
  };
41
47
  }
42
48
  };
43
- const Select = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5707ab7d"]]);
49
+ const Select = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-571dd7f7"]]);
44
50
  export {
45
51
  Select as default
46
52
  };
@@ -1,21 +1,27 @@
1
- import { ref, resolveComponent, createElementBlock, openBlock, normalizeStyle, createVNode, withCtx, unref } from "vue";
1
+ import { useCssVars, computed, ref, resolveComponent, createElementBlock, openBlock, createVNode, withCtx, unref } from "vue";
2
2
  import { renderTextByVariables } from "./sun-card-design-mobile.es26.js";
3
3
  /* empty css */
4
4
  import _export_sfc from "./sun-card-design-mobile.es28.js";
5
+ const _hoisted_1 = { class: "main-enterpriseSearch" };
5
6
  const _sfc_main = {
6
7
  __name: "enterpriseSearch",
7
8
  props: ["record"],
8
9
  setup(__props) {
10
+ useCssVars((_ctx) => ({
11
+ "v0fe1127a": mainPadding.value
12
+ }));
9
13
  const props = __props;
10
14
  const value = ref(props.record.options?.defaultValue || null);
15
+ const mainPadding = computed(() => {
16
+ const tb = props.record.options?.style?.tbPadding ?? 0;
17
+ const lr = props.record.options?.style?.lrPadding ?? 0;
18
+ return `${tb}px ${lr}px`;
19
+ });
11
20
  return (_ctx, _cache) => {
12
21
  const _component_a_select = resolveComponent("a-select");
13
22
  const _component_a_form_item = resolveComponent("a-form-item");
14
23
  const _component_a_form = resolveComponent("a-form");
15
- return openBlock(), createElementBlock("div", {
16
- class: "main-enterpriseSearch",
17
- style: normalizeStyle({ padding: `${props.record.options?.style?.tbPadding || 0}px ${props.record.options?.style?.lrPadding || 0}px` })
18
- }, [
24
+ return openBlock(), createElementBlock("div", _hoisted_1, [
19
25
  createVNode(_component_a_form, {
20
26
  layout: props.record.options.flex
21
27
  }, {
@@ -28,7 +34,7 @@ const _sfc_main = {
28
34
  value: value.value,
29
35
  "onUpdate:value": _cache[0] || (_cache[0] = ($event) => value.value = $event),
30
36
  options: [],
31
- style: { "width": "100%" },
37
+ class: "select-full-width",
32
38
  placeholder: props.record.options.placeholder
33
39
  }, null, 8, ["value", "placeholder"])
34
40
  ]),
@@ -37,11 +43,11 @@ const _sfc_main = {
37
43
  ]),
38
44
  _: 1
39
45
  }, 8, ["layout"])
40
- ], 4);
46
+ ]);
41
47
  };
42
48
  }
43
49
  };
44
- const EnterpriseSearch = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c4da076f"]]);
50
+ const EnterpriseSearch = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c8667f37"]]);
45
51
  export {
46
52
  EnterpriseSearch as default
47
53
  };
@@ -1,11 +1,28 @@
1
- import { computed, resolveComponent, createElementBlock, openBlock, normalizeStyle, createVNode } from "vue";
1
+ import { useCssVars, computed, resolveComponent, createElementBlock, openBlock, createVNode } from "vue";
2
2
  /* empty css */
3
3
  import _export_sfc from "./sun-card-design-mobile.es28.js";
4
+ const _hoisted_1 = { class: "main-table" };
4
5
  const _sfc_main = {
5
6
  __name: "tableComp",
6
7
  props: ["record"],
7
8
  setup(__props) {
9
+ useCssVars((_ctx) => ({
10
+ "v541db8cf": mainPadding.value,
11
+ "v4a954456": tableFontSize.value,
12
+ "v0db5956c": tableCellPadding.value
13
+ }));
8
14
  const props = __props;
15
+ const mainPadding = computed(() => {
16
+ const tb = props.record.options?.style?.tbPadding ?? 0;
17
+ const lr = props.record.options?.style?.lrPadding ?? 0;
18
+ return `${tb}px ${lr}px`;
19
+ });
20
+ const tableFontSize = computed(() => {
21
+ return (props.record.options.style.fontSize || 14) + "px";
22
+ });
23
+ const tableCellPadding = computed(() => {
24
+ return (props.record.options.style.padding || 6) + "px";
25
+ });
9
26
  const parseJsonSafe = (str) => {
10
27
  try {
11
28
  return JSON.parse(str);
@@ -29,14 +46,7 @@ const _sfc_main = {
29
46
  });
30
47
  return (_ctx, _cache) => {
31
48
  const _component_a_table = resolveComponent("a-table");
32
- return openBlock(), createElementBlock("div", {
33
- class: "main-table",
34
- style: normalizeStyle({
35
- "--tbl-font-size": (props.record.options.style.fontSize || 14) + "px",
36
- "--tbl-cell-padding": (props.record.options.style.padding || 6) + "px",
37
- padding: `${props.record.options?.style?.tbPadding || 0}px ${props.record.options?.style?.lrPadding || 0}px`
38
- })
39
- }, [
49
+ return openBlock(), createElementBlock("div", _hoisted_1, [
40
50
  createVNode(_component_a_table, {
41
51
  columns: props.record.options.columns,
42
52
  "data-source": dataSource.value,
@@ -44,11 +54,11 @@ const _sfc_main = {
44
54
  size: "small",
45
55
  pagination: false
46
56
  }, null, 8, ["columns", "data-source", "bordered"])
47
- ], 4);
57
+ ]);
48
58
  };
49
59
  }
50
60
  };
51
- const Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f6dd6b54"]]);
61
+ const Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-287563f8"]]);
52
62
  export {
53
63
  Table as default
54
64
  };