sun-card-design 1.3.1 → 1.3.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 (72) hide show
  1. package/dist/mobile/sun-card-design-mobile.es10.js +6 -6
  2. package/dist/mobile/sun-card-design-mobile.es11.js +8 -8
  3. package/dist/mobile/sun-card-design-mobile.es12.js +1 -1
  4. package/dist/mobile/sun-card-design-mobile.es13.js +1 -1
  5. package/dist/mobile/sun-card-design-mobile.es14.js +6 -6
  6. package/dist/mobile/sun-card-design-mobile.es15.js +13 -12
  7. package/dist/mobile/sun-card-design-mobile.es16.js +6 -6
  8. package/dist/mobile/sun-card-design-mobile.es17.js +6 -6
  9. package/dist/mobile/sun-card-design-mobile.es18.js +6 -6
  10. package/dist/mobile/sun-card-design-mobile.es19.js +7 -7
  11. package/dist/mobile/sun-card-design-mobile.es2.js +9 -13
  12. package/dist/mobile/sun-card-design-mobile.es20.js +8 -10
  13. package/dist/mobile/sun-card-design-mobile.es21.js +1 -1
  14. package/dist/mobile/sun-card-design-mobile.es22.js +8 -9
  15. package/dist/mobile/sun-card-design-mobile.es23.js +1 -1
  16. package/dist/mobile/sun-card-design-mobile.es24.js +9 -10
  17. package/dist/mobile/sun-card-design-mobile.es25.js +75 -47
  18. package/dist/mobile/sun-card-design-mobile.es27.js +10 -0
  19. package/dist/mobile/sun-card-design-mobile.es28.js +60 -6
  20. package/dist/mobile/sun-card-design-mobile.es3.js +15 -15
  21. package/dist/mobile/sun-card-design-mobile.es37.js +1 -1
  22. package/dist/mobile/sun-card-design-mobile.es4.js +18 -18
  23. package/dist/mobile/sun-card-design-mobile.es42.js +1 -1
  24. package/dist/mobile/sun-card-design-mobile.es5.js +12 -12
  25. package/dist/mobile/sun-card-design-mobile.es55.js +1 -1
  26. package/dist/mobile/sun-card-design-mobile.es56.js +1 -1
  27. package/dist/mobile/sun-card-design-mobile.es57.js +13 -12
  28. package/dist/mobile/sun-card-design-mobile.es58.js +13 -12
  29. package/dist/mobile/sun-card-design-mobile.es59.js +13 -12
  30. package/dist/mobile/sun-card-design-mobile.es6.js +13 -13
  31. package/dist/mobile/sun-card-design-mobile.es60.js +13 -12
  32. package/dist/mobile/sun-card-design-mobile.es7.js +16 -16
  33. package/dist/mobile/sun-card-design-mobile.es8.js +1 -1
  34. package/dist/mobile/sun-card-design-mobile.es9.js +1 -1
  35. package/dist/pc/sun-card-design-pc.es10.js +6 -6
  36. package/dist/pc/sun-card-design-pc.es11.js +8 -8
  37. package/dist/pc/sun-card-design-pc.es12.js +1 -1
  38. package/dist/pc/sun-card-design-pc.es13.js +1 -1
  39. package/dist/pc/sun-card-design-pc.es14.js +6 -6
  40. package/dist/pc/sun-card-design-pc.es15.js +13 -12
  41. package/dist/pc/sun-card-design-pc.es16.js +6 -6
  42. package/dist/pc/sun-card-design-pc.es17.js +6 -6
  43. package/dist/pc/sun-card-design-pc.es18.js +6 -6
  44. package/dist/pc/sun-card-design-pc.es19.js +7 -7
  45. package/dist/pc/sun-card-design-pc.es2.js +10 -22
  46. package/dist/pc/sun-card-design-pc.es20.js +8 -10
  47. package/dist/pc/sun-card-design-pc.es21.js +1 -1
  48. package/dist/pc/sun-card-design-pc.es22.js +8 -9
  49. package/dist/pc/sun-card-design-pc.es23.js +1 -1
  50. package/dist/pc/sun-card-design-pc.es24.js +9 -10
  51. package/dist/pc/sun-card-design-pc.es25.js +75 -47
  52. package/dist/pc/sun-card-design-pc.es27.js +10 -0
  53. package/dist/pc/sun-card-design-pc.es28.js +60 -6
  54. package/dist/pc/sun-card-design-pc.es3.js +15 -15
  55. package/dist/pc/sun-card-design-pc.es37.js +1 -1
  56. package/dist/pc/sun-card-design-pc.es4.js +18 -18
  57. package/dist/pc/sun-card-design-pc.es42.js +1 -1
  58. package/dist/pc/sun-card-design-pc.es5.js +12 -12
  59. package/dist/pc/sun-card-design-pc.es55.js +1 -1
  60. package/dist/pc/sun-card-design-pc.es56.js +1 -1
  61. package/dist/pc/sun-card-design-pc.es57.js +13 -12
  62. package/dist/pc/sun-card-design-pc.es58.js +13 -12
  63. package/dist/pc/sun-card-design-pc.es59.js +13 -12
  64. package/dist/pc/sun-card-design-pc.es6.js +13 -13
  65. package/dist/pc/sun-card-design-pc.es60.js +13 -12
  66. package/dist/pc/sun-card-design-pc.es7.js +16 -16
  67. package/dist/pc/sun-card-design-pc.es8.js +1 -1
  68. package/dist/pc/sun-card-design-pc.es9.js +1 -1
  69. package/dist/public/sun-card-design.css +1 -1
  70. package/package.json +1 -1
  71. package/dist/mobile/sun-card-design-mobile.es26.js +0 -71
  72. package/dist/pc/sun-card-design-pc.es26.js +0 -71
@@ -28,14 +28,14 @@ import MultipleColumn from "./sun-card-design-mobile.es58.js";
28
28
  import MultipleLine from "./sun-card-design-mobile.es59.js";
29
29
  import GridList from "./sun-card-design-mobile.es60.js";
30
30
  /* empty css */
31
- import _export_sfc from "./sun-card-design-mobile.es28.js";
31
+ import _export_sfc from "./sun-card-design-mobile.es27.js";
32
32
  const _hoisted_1 = {
33
33
  key: 0,
34
34
  class: "main-box"
35
35
  };
36
36
  const _sfc_main = {
37
37
  __name: "formItem",
38
- props: ["record", "recordData", "columnsIndex"],
38
+ props: ["record", "recordData", "columnsIndex", "variableList"],
39
39
  emits: ["clickEvent", "fileUpdateEvent", "clickColumnsEvent"],
40
40
  setup(__props, { emit: __emit }) {
41
41
  const props = __props;
@@ -55,174 +55,202 @@ const _sfc_main = {
55
55
  key: 0,
56
56
  record: props.record,
57
57
  columnsIndex: props.columnsIndex,
58
+ variableList: props.variableList,
58
59
  onClickEvent: onClick
59
- }, null, 8, ["record", "columnsIndex"])) : createCommentVNode("", true),
60
+ }, null, 8, ["record", "columnsIndex", "variableList"])) : createCommentVNode("", true),
60
61
  __props.record.type === "text" ? (openBlock(), createBlock(Text, {
61
62
  key: 1,
62
63
  record: props.record,
63
64
  columnsIndex: props.columnsIndex,
65
+ variableList: props.variableList,
64
66
  onClickEvent: onClick
65
- }, null, 8, ["record", "columnsIndex"])) : createCommentVNode("", true),
67
+ }, null, 8, ["record", "columnsIndex", "variableList"])) : createCommentVNode("", true),
66
68
  __props.record.type === "button" ? (openBlock(), createBlock(Button, {
67
69
  key: 2,
68
70
  record: props.record,
69
71
  columnsIndex: props.columnsIndex,
72
+ variableList: props.variableList,
70
73
  onClickEvent: onClick
71
- }, null, 8, ["record", "columnsIndex"])) : createCommentVNode("", true),
74
+ }, null, 8, ["record", "columnsIndex", "variableList"])) : createCommentVNode("", true),
72
75
  __props.record.type === "file" ? (openBlock(), createBlock(File, {
73
76
  key: 3,
74
77
  record: props.record,
75
78
  columnsIndex: props.columnsIndex,
79
+ variableList: props.variableList,
76
80
  onClickEvent: onClick,
77
81
  onFileUpdateEvent: onUpdate
78
- }, null, 8, ["record", "columnsIndex"])) : createCommentVNode("", true),
82
+ }, null, 8, ["record", "columnsIndex", "variableList"])) : createCommentVNode("", true),
79
83
  __props.record.type === "upload" ? (openBlock(), createBlock(Upload, {
80
84
  key: 4,
81
85
  record: props.record,
82
- columnsIndex: props.columnsIndex
83
- }, null, 8, ["record", "columnsIndex"])) : createCommentVNode("", true),
86
+ columnsIndex: props.columnsIndex,
87
+ variableList: props.variableList
88
+ }, null, 8, ["record", "columnsIndex", "variableList"])) : createCommentVNode("", true),
84
89
  __props.record.type === "picture" ? (openBlock(), createBlock(Picture, {
85
90
  key: 5,
86
91
  record: props.record,
92
+ variableList: props.variableList,
87
93
  onClickEvent: onClick,
88
94
  columnsIndex: props.columnsIndex
89
- }, null, 8, ["record", "columnsIndex"])) : createCommentVNode("", true),
95
+ }, null, 8, ["record", "variableList", "columnsIndex"])) : createCommentVNode("", true),
90
96
  __props.record.type === "tag" ? (openBlock(), createBlock(Tag, {
91
97
  key: 6,
92
98
  record: props.record,
93
99
  columnsIndex: props.columnsIndex,
100
+ variableList: props.variableList,
94
101
  onClickEvent: onClick
95
- }, null, 8, ["record", "columnsIndex"])) : createCommentVNode("", true),
102
+ }, null, 8, ["record", "columnsIndex", "variableList"])) : createCommentVNode("", true),
96
103
  __props.record.type === "rate" ? (openBlock(), createBlock(Rate, {
97
104
  key: 7,
98
105
  record: props.record,
99
- columnsIndex: props.columnsIndex
100
- }, null, 8, ["record", "columnsIndex"])) : createCommentVNode("", true),
106
+ columnsIndex: props.columnsIndex,
107
+ variableList: props.variableList
108
+ }, null, 8, ["record", "columnsIndex", "variableList"])) : createCommentVNode("", true),
101
109
  __props.record.type === "divider" ? (openBlock(), createBlock(Divider, {
102
110
  key: 8,
103
111
  record: props.record,
104
- columnsIndex: props.columnsIndex
105
- }, null, 8, ["record", "columnsIndex"])) : createCommentVNode("", true),
112
+ columnsIndex: props.columnsIndex,
113
+ variableList: props.variableList
114
+ }, null, 8, ["record", "columnsIndex", "variableList"])) : createCommentVNode("", true),
106
115
  __props.record.type === "audio" ? (openBlock(), createBlock(Audio, {
107
116
  key: 9,
108
117
  record: props.record,
109
- columnsIndex: props.columnsIndex
110
- }, null, 8, ["record", "columnsIndex"])) : createCommentVNode("", true),
118
+ columnsIndex: props.columnsIndex,
119
+ variableList: props.variableList
120
+ }, null, 8, ["record", "columnsIndex", "variableList"])) : createCommentVNode("", true),
111
121
  __props.record.type === "select" ? (openBlock(), createBlock(Select, {
112
122
  key: 10,
113
123
  record: props.record,
114
- columnsIndex: props.columnsIndex
115
- }, null, 8, ["record", "columnsIndex"])) : createCommentVNode("", true),
124
+ columnsIndex: props.columnsIndex,
125
+ variableList: props.variableList
126
+ }, null, 8, ["record", "columnsIndex", "variableList"])) : createCommentVNode("", true),
116
127
  __props.record.type === "video" ? (openBlock(), createBlock(Video, {
117
128
  key: 11,
118
129
  record: props.record,
119
- columnsIndex: props.columnsIndex
120
- }, null, 8, ["record", "columnsIndex"])) : createCommentVNode("", true),
130
+ columnsIndex: props.columnsIndex,
131
+ variableList: props.variableList
132
+ }, null, 8, ["record", "columnsIndex", "variableList"])) : createCommentVNode("", true),
121
133
  __props.record.type === "input" ? (openBlock(), createBlock(Input, {
122
134
  key: 12,
123
- record: props.record
124
- }, null, 8, ["record"])) : createCommentVNode("", true),
135
+ record: props.record,
136
+ variableList: props.variableList
137
+ }, null, 8, ["record", "variableList"])) : createCommentVNode("", true),
125
138
  __props.record.type === "generateImg" ? (openBlock(), createBlock(GenerateImg, {
126
139
  key: 13,
127
140
  record: props.record,
128
- columnsIndex: props.columnsIndex
129
- }, null, 8, ["record", "columnsIndex"])) : createCommentVNode("", true),
141
+ columnsIndex: props.columnsIndex,
142
+ variableList: props.variableList
143
+ }, null, 8, ["record", "columnsIndex", "variableList"])) : createCommentVNode("", true),
130
144
  __props.record.type === "sunIcon" ? (openBlock(), createBlock(SunIcon, {
131
145
  key: 14,
132
146
  record: props.record,
133
147
  columnsIndex: props.columnsIndex,
148
+ variableList: props.variableList,
134
149
  onClickEvent: onClick
135
- }, null, 8, ["record", "columnsIndex"])) : createCommentVNode("", true),
150
+ }, null, 8, ["record", "columnsIndex", "variableList"])) : createCommentVNode("", true),
136
151
  __props.record.type === "grid" ? (openBlock(), createBlock(Grid, {
137
152
  key: 15,
138
153
  record: props.record,
139
154
  recordData: props.recordData,
140
155
  columnsIndex: props.columnsIndex,
156
+ variableList: props.variableList,
141
157
  onClickEvent: onClick,
142
158
  onFileUpdateEvent: onUpdate,
143
159
  onClickColumnsEvent: onClickColumns
144
- }, null, 8, ["record", "recordData", "columnsIndex"])) : createCommentVNode("", true),
160
+ }, null, 8, ["record", "recordData", "columnsIndex", "variableList"])) : createCommentVNode("", true),
145
161
  __props.record.type === "singleColumn" ? (openBlock(), createBlock(SingleColumn, {
146
162
  key: 16,
147
163
  record: props.record,
148
164
  recordData: props.recordData,
149
165
  columnsIndex: props.columnsIndex,
166
+ variableList: props.variableList,
150
167
  onClickEvent: onClick,
151
168
  onFileUpdateEvent: onUpdate,
152
169
  onClickColumnsEvent: onClickColumns
153
- }, null, 8, ["record", "recordData", "columnsIndex"])) : createCommentVNode("", true),
170
+ }, null, 8, ["record", "recordData", "columnsIndex", "variableList"])) : createCommentVNode("", true),
154
171
  __props.record.type === "multipleColumn" ? (openBlock(), createBlock(MultipleColumn, {
155
172
  key: 17,
156
173
  record: props.record,
157
174
  recordData: props.recordData,
158
175
  columnsIndex: props.columnsIndex,
176
+ variableList: props.variableList,
159
177
  onClickEvent: onClick,
160
178
  onFileUpdateEvent: onUpdate,
161
179
  onClickColumnsEvent: onClickColumns
162
- }, null, 8, ["record", "recordData", "columnsIndex"])) : createCommentVNode("", true),
180
+ }, null, 8, ["record", "recordData", "columnsIndex", "variableList"])) : createCommentVNode("", true),
163
181
  __props.record.type === "multipleLine" ? (openBlock(), createBlock(MultipleLine, {
164
182
  key: 18,
165
183
  record: props.record,
166
184
  recordData: props.recordData,
167
185
  columnsIndex: props.columnsIndex,
186
+ variableList: props.variableList,
168
187
  onClickEvent: onClick,
169
188
  onFileUpdateEvent: onUpdate,
170
189
  onClickColumnsEvent: onClickColumns
171
- }, null, 8, ["record", "recordData", "columnsIndex"])) : createCommentVNode("", true),
190
+ }, null, 8, ["record", "recordData", "columnsIndex", "variableList"])) : createCommentVNode("", true),
172
191
  __props.record.type === "gridList" ? (openBlock(), createBlock(GridList, {
173
192
  key: 19,
174
193
  record: props.record,
175
194
  recordData: props.recordData,
176
195
  columnsIndex: props.columnsIndex,
196
+ variableList: props.variableList,
177
197
  onClickEvent: onClick,
178
198
  onFileUpdateEvent: onUpdate,
179
199
  onClickColumnsEvent: onClickColumns
180
- }, null, 8, ["record", "recordData", "columnsIndex"])) : createCommentVNode("", true),
200
+ }, null, 8, ["record", "recordData", "columnsIndex", "variableList"])) : createCommentVNode("", true),
181
201
  __props.record.type === "enterpriseSearch" ? (openBlock(), createBlock(EnterpriseSearch, {
182
202
  key: 20,
183
203
  record: props.record,
184
- columnsIndex: props.columnsIndex
185
- }, null, 8, ["record", "columnsIndex"])) : createCommentVNode("", true),
204
+ columnsIndex: props.columnsIndex,
205
+ variableList: props.variableList
206
+ }, null, 8, ["record", "columnsIndex", "variableList"])) : createCommentVNode("", true),
186
207
  __props.record.type === "table" ? (openBlock(), createBlock(Table, {
187
208
  key: 21,
188
209
  record: props.record,
189
- columnsIndex: props.columnsIndex
190
- }, null, 8, ["record", "columnsIndex"])) : createCommentVNode("", true),
210
+ columnsIndex: props.columnsIndex,
211
+ variableList: props.variableList
212
+ }, null, 8, ["record", "columnsIndex", "variableList"])) : createCommentVNode("", true),
191
213
  __props.record.type === "barChart" ? (openBlock(), createBlock(BarChart, {
192
214
  key: 22,
193
215
  record: props.record,
194
- columnsIndex: props.columnsIndex
195
- }, null, 8, ["record", "columnsIndex"])) : createCommentVNode("", true),
216
+ columnsIndex: props.columnsIndex,
217
+ variableList: props.variableList
218
+ }, null, 8, ["record", "columnsIndex", "variableList"])) : createCommentVNode("", true),
196
219
  __props.record.type === "pieChart" ? (openBlock(), createBlock(PieChart, {
197
220
  key: 23,
198
221
  record: props.record,
199
- columnsIndex: props.columnsIndex
200
- }, null, 8, ["record", "columnsIndex"])) : createCommentVNode("", true),
222
+ columnsIndex: props.columnsIndex,
223
+ variableList: props.variableList
224
+ }, null, 8, ["record", "columnsIndex", "variableList"])) : createCommentVNode("", true),
201
225
  __props.record.type === "lineChart" ? (openBlock(), createBlock(LineChart, {
202
226
  key: 24,
203
227
  record: props.record,
204
- columnsIndex: props.columnsIndex
205
- }, null, 8, ["record", "columnsIndex"])) : createCommentVNode("", true),
228
+ columnsIndex: props.columnsIndex,
229
+ variableList: props.variableList
230
+ }, null, 8, ["record", "columnsIndex", "variableList"])) : createCommentVNode("", true),
206
231
  __props.record.type === "barChart3D" ? (openBlock(), createBlock(BarChart3D, {
207
232
  key: 25,
208
233
  record: props.record,
209
- columnsIndex: props.columnsIndex
210
- }, null, 8, ["record", "columnsIndex"])) : createCommentVNode("", true),
234
+ columnsIndex: props.columnsIndex,
235
+ variableList: props.variableList
236
+ }, null, 8, ["record", "columnsIndex", "variableList"])) : createCommentVNode("", true),
211
237
  __props.record.type === "pieChart3D" ? (openBlock(), createBlock(PieChart3D, {
212
238
  key: 26,
213
239
  record: props.record,
214
- columnsIndex: props.columnsIndex
215
- }, null, 8, ["record", "columnsIndex"])) : createCommentVNode("", true),
240
+ columnsIndex: props.columnsIndex,
241
+ variableList: props.variableList
242
+ }, null, 8, ["record", "columnsIndex", "variableList"])) : createCommentVNode("", true),
216
243
  __props.record.type === "panorama" ? (openBlock(), createBlock(Panorama, {
217
244
  key: 27,
218
245
  record: props.record,
219
- columnsIndex: props.columnsIndex
220
- }, null, 8, ["record", "columnsIndex"])) : createCommentVNode("", true)
246
+ columnsIndex: props.columnsIndex,
247
+ variableList: props.variableList
248
+ }, null, 8, ["record", "columnsIndex", "variableList"])) : createCommentVNode("", true)
221
249
  ])) : createCommentVNode("", true);
222
250
  };
223
251
  }
224
252
  };
225
- const FormItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1202bb9d"]]);
253
+ const FormItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-900eaa67"]]);
226
254
  export {
227
255
  FormItem as default
228
256
  };
@@ -0,0 +1,10 @@
1
+ const _export_sfc = (sfc, props) => {
2
+ const target = sfc.__vccOpts || sfc;
3
+ for (const [key, val] of props) {
4
+ target[key] = val;
5
+ }
6
+ return target;
7
+ };
8
+ export {
9
+ _export_sfc as default
10
+ };
@@ -1,10 +1,64 @@
1
- const _export_sfc = (sfc, props) => {
2
- const target = sfc.__vccOpts || sfc;
3
- for (const [key, val] of props) {
4
- target[key] = val;
1
+ const renderTextByVariables = (text, index = 0, variableListSource = []) => {
2
+ if (typeof text !== "string") return text ?? "";
3
+ const map = /* @__PURE__ */ new Map();
4
+ for (const item of variableListSource) {
5
+ if (!item || typeof item.name !== "string") continue;
6
+ map.set(item.name, item?.defaultValue ?? "");
5
7
  }
6
- return target;
8
+ const arrayIndex = index || 0;
9
+ return text.replace(/\{([^{}]+)\}/g, (match, inner) => {
10
+ const expr = String(inner).trim();
11
+ const hashMatch = expr.match(/^([^#]+)\s*#\s*(.+)$/);
12
+ if (hashMatch) {
13
+ const varName = hashMatch[1].trim();
14
+ const keyPath = hashMatch[2].trim();
15
+ const variable = variableListSource.find((v) => v && v.name === varName);
16
+ if (!variable) return match;
17
+ try {
18
+ const parsed = JSON.parse(variable.defaultValue || "[]");
19
+ if (Array.isArray(parsed)) {
20
+ if (keyPath === "item") {
21
+ const item = parsed[arrayIndex];
22
+ return item === null || item === void 0 ? "" : String(item);
23
+ }
24
+ if (keyPath.includes(".")) {
25
+ const parts = keyPath.split(".");
26
+ const firstPart = parts[0];
27
+ if (firstPart === "item") {
28
+ const item = parsed[arrayIndex];
29
+ if (item && typeof item === "object") {
30
+ const value = parts.slice(1).reduce((acc, k) => acc !== null && acc !== void 0 ? acc[k] : void 0, item);
31
+ return value === null || value === void 0 ? "" : String(value);
32
+ }
33
+ }
34
+ if (/^\d+$/.test(firstPart)) {
35
+ const index2 = parseInt(firstPart, 10);
36
+ const item = parsed[index2];
37
+ if (item && typeof item === "object") {
38
+ const value = parts.slice(1).reduce((acc, k) => acc !== null && acc !== void 0 ? acc[k] : void 0, item);
39
+ return value === null || value === void 0 ? "" : String(value);
40
+ }
41
+ }
42
+ }
43
+ return "";
44
+ }
45
+ if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) {
46
+ const value = keyPath.split(".").reduce((acc, k) => acc !== null && acc !== void 0 ? acc[k] : void 0, parsed);
47
+ return value === null || value === void 0 ? "" : String(value);
48
+ }
49
+ return "";
50
+ } catch (_) {
51
+ return match;
52
+ }
53
+ }
54
+ const name = expr;
55
+ if (map.has(name)) {
56
+ const val = map.get(name);
57
+ return val === null ? "" : String(val);
58
+ }
59
+ return match;
60
+ }).replace(/\n/g, "<br>");
7
61
  };
8
62
  export {
9
- _export_sfc as default
63
+ renderTextByVariables
10
64
  };
@@ -1,7 +1,7 @@
1
1
  import { useCssVars, computed, createElementBlock, openBlock, createCommentVNode, createElementVNode, toDisplayString, unref } from "vue";
2
- import { renderTextByVariables } from "./sun-card-design-mobile.es26.js";
2
+ import { renderTextByVariables } from "./sun-card-design-mobile.es28.js";
3
3
  /* empty css */
4
- import _export_sfc from "./sun-card-design-mobile.es28.js";
4
+ import _export_sfc from "./sun-card-design-mobile.es27.js";
5
5
  const _hoisted_1 = { class: "main-title" };
6
6
  const _hoisted_2 = {
7
7
  key: 0,
@@ -10,18 +10,18 @@ const _hoisted_2 = {
10
10
  const _hoisted_3 = { class: "title-text" };
11
11
  const _sfc_main = {
12
12
  __name: "titleComp",
13
- props: ["record", "columnsIndex"],
13
+ props: ["record", "columnsIndex", "variableList"],
14
14
  setup(__props) {
15
15
  useCssVars((_ctx) => ({
16
- "v1c481f1e": mainPadding.value,
17
- "b2cc012e": mainJustifyContent.value,
18
- "dd17bd6e": lineBackground.value,
19
- "ca98066a": lineWidth.value,
20
- "bc06ba7c": lineHeight.value,
21
- "v69842d39": lineBorderRadius.value,
22
- "v74bc6053": lineMarginRight.value,
23
- "v91341cfe": titleFontSize.value,
24
- "v557b1072": titleColor.value
16
+ "v401e84cd": mainPadding.value,
17
+ "a615e8e6": mainJustifyContent.value,
18
+ "v713a4126": lineBackground.value,
19
+ "v6e07f827": lineWidth.value,
20
+ "v392812e6": lineHeight.value,
21
+ "v42881b46": lineBorderRadius.value,
22
+ "v06b532a2": lineMarginRight.value,
23
+ "v7f54dedd": titleFontSize.value,
24
+ "v26b2fed4": titleColor.value
25
25
  }));
26
26
  const props = __props;
27
27
  const formatPx = (value, fallback) => {
@@ -61,16 +61,16 @@ const _sfc_main = {
61
61
  const lineBorderRadius = computed(() => formatPx(props.record.options.hasLineStyle?.borderRadius, 1));
62
62
  const lineMarginRight = computed(() => formatPx(props.record.options.hasLineStyle?.marginRight, 6));
63
63
  const titleFontSize = computed(() => `${props.record.options.style.fontSize}px`);
64
- const titleColor = computed(() => props.record.options.style.color);
64
+ const titleColor = computed(() => renderTextByVariables(props.record.options.style.color, props.columnsIndex, props.variableList));
65
65
  return (_ctx, _cache) => {
66
66
  return openBlock(), createElementBlock("div", _hoisted_1, [
67
67
  props.record.options.hasLine ? (openBlock(), createElementBlock("div", _hoisted_2)) : createCommentVNode("", true),
68
- createElementVNode("div", _hoisted_3, toDisplayString(unref(renderTextByVariables)(props.record.options.defaultValue, props.columnsIndex)), 1)
68
+ createElementVNode("div", _hoisted_3, toDisplayString(unref(renderTextByVariables)(props.record.options.defaultValue, props.columnsIndex, props.variableList)), 1)
69
69
  ]);
70
70
  };
71
71
  }
72
72
  };
73
- const Title = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-9cff1833"]]);
73
+ const Title = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f08c1dc0"]]);
74
74
  export {
75
75
  Title as default
76
76
  };
@@ -1,6 +1,6 @@
1
1
  import { useCssVars, computed, ref, onMounted, onBeforeUnmount, createElementBlock, openBlock, createElementVNode, normalizeClass } from "vue";
2
2
  /* empty css */
3
- import _export_sfc from "./sun-card-design-mobile.es28.js";
3
+ import _export_sfc from "./sun-card-design-mobile.es27.js";
4
4
  const _hoisted_1 = { class: "custom-player" };
5
5
  const _hoisted_2 = ["src"];
6
6
  const _hoisted_3 = { class: "controls" };
@@ -1,7 +1,7 @@
1
1
  import { useCssVars, computed, createElementBlock, openBlock, createCommentVNode, createElementVNode, toDisplayString, unref } from "vue";
2
- import { renderTextByVariables } from "./sun-card-design-mobile.es26.js";
2
+ import { renderTextByVariables } from "./sun-card-design-mobile.es28.js";
3
3
  /* empty css */
4
- import _export_sfc from "./sun-card-design-mobile.es28.js";
4
+ import _export_sfc from "./sun-card-design-mobile.es27.js";
5
5
  const _hoisted_1 = { class: "main-text" };
6
6
  const _hoisted_2 = {
7
7
  key: 0,
@@ -14,22 +14,22 @@ const _hoisted_3 = {
14
14
  const _hoisted_4 = ["innerHTML"];
15
15
  const _sfc_main = {
16
16
  __name: "textComp",
17
- props: ["record", "columnsIndex"],
17
+ props: ["record", "columnsIndex", "variableList"],
18
18
  emits: ["clickEvent"],
19
19
  setup(__props, { emit: __emit }) {
20
20
  useCssVars((_ctx) => ({
21
- "v747ef2f8": mainPadding.value,
22
- "v1036fdf6": mainJustifyContent.value,
23
- "v54dcfb9e": lineWidth.value,
24
- "v7b796b06": lineBorderRadius.value,
25
- "v0d1c9634": lineMarginRight.value,
26
- "v716f2354": lineBackground.value,
27
- "v2cf37e4f": lineHeight.value,
28
- "fe0878bc": textColor.value,
29
- "v2d5a3051": textFontSize.value,
30
- "fe43a978": textAlign.value,
31
- "v4196f3d1": textDecoration.value,
32
- "aeb03766": textIndent.value
21
+ "v1a254b20": mainPadding.value,
22
+ "v76e511da": mainJustifyContent.value,
23
+ "v74bb918c": lineWidth.value,
24
+ "v74b9b02c": lineBorderRadius.value,
25
+ "v4e6acb82": lineMarginRight.value,
26
+ "v7c77d78c": lineBackground.value,
27
+ "v5654939a": lineHeight.value,
28
+ "v1c7e0184": textColor.value,
29
+ "v658dff35": textFontSize.value,
30
+ "v1cb93240": textAlign.value,
31
+ "v3c1299b5": textDecoration.value,
32
+ "v508a1c31": textIndent.value
33
33
  }));
34
34
  const props = __props;
35
35
  const emit = __emit;
@@ -78,7 +78,7 @@ const _sfc_main = {
78
78
  const lineMarginRight = computed(
79
79
  () => formatPx(props.record.options.hasLineStyle?.marginRight, 6)
80
80
  );
81
- const textColor = computed(() => props.record.options.style.color);
81
+ const textColor = computed(() => renderTextByVariables(props.record.options.style.color, props.columnsIndex, props.variableList));
82
82
  const textFontSize = computed(() => props.record.options.style.fontSize + "px");
83
83
  const textAlign = computed(() => props.record.options.style.textAlign);
84
84
  const textDecoration = computed(() => props.record.options.style.textDecoration);
@@ -92,14 +92,14 @@ const _sfc_main = {
92
92
  }, [
93
93
  props.record.options.hasTitle ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(props.record.options.titleValue), 1)) : createCommentVNode("", true),
94
94
  createElementVNode("span", {
95
- innerHTML: unref(renderTextByVariables)(props.record.options.defaultValue, props.columnsIndex)
95
+ innerHTML: unref(renderTextByVariables)(props.record.options.defaultValue, props.columnsIndex, props.variableList)
96
96
  }, null, 8, _hoisted_4)
97
97
  ])
98
98
  ]);
99
99
  };
100
100
  }
101
101
  };
102
- const Text = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-66fc7569"]]);
102
+ const Text = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-16114cf4"]]);
103
103
  export {
104
104
  Text as default
105
105
  };
@@ -4,7 +4,7 @@ import { OrbitControls } from "three/examples/jsm/controls/OrbitControls.js";
4
4
  import TWEEN from "@tweenjs/tween.js";
5
5
  import { CloseCircleFilled } from "@ant-design/icons-vue";
6
6
  /* empty css */
7
- import _export_sfc from "./sun-card-design-mobile.es28.js";
7
+ import _export_sfc from "./sun-card-design-mobile.es27.js";
8
8
  const _hoisted_1 = {
9
9
  key: 0,
10
10
  class: "canvas"
@@ -1,22 +1,22 @@
1
1
  import { useCssVars, computed, resolveComponent, createElementBlock, openBlock, createVNode, createSlots, withCtx, createTextVNode, toDisplayString, unref, createBlock, resolveDynamicComponent } from "vue";
2
- import { renderTextByVariables } from "./sun-card-design-mobile.es26.js";
2
+ import { renderTextByVariables } from "./sun-card-design-mobile.es28.js";
3
3
  import { EditOutlined, DeleteOutlined, CloseOutlined, CheckOutlined, ClearOutlined, DownloadOutlined, SearchOutlined } from "@ant-design/icons-vue";
4
4
  /* empty css */
5
- import _export_sfc from "./sun-card-design-mobile.es28.js";
5
+ import _export_sfc from "./sun-card-design-mobile.es27.js";
6
6
  const _hoisted_1 = { class: "main-button" };
7
7
  const _sfc_main = {
8
8
  __name: "buttonComp",
9
- props: ["record", "columnsIndex"],
9
+ props: ["record", "columnsIndex", "variableList"],
10
10
  emits: ["clickEvent"],
11
11
  setup(__props, { emit: __emit }) {
12
12
  useCssVars((_ctx) => ({
13
- "v11775a22": mainPadding.value,
14
- "df9919aa": mainJustifyContent.value,
15
- "d3ce6c7e": btnBackground.value,
16
- "v655eeaf0": btnColor.value,
17
- "v50bed09e": btnBorderRadius.value,
18
- "v6675e953": btnWidth.value,
19
- "v6587dde9": btnFloat.value
13
+ "v7149ceb6": mainPadding.value,
14
+ "b1b10cf8": mainJustifyContent.value,
15
+ "b6a32070": btnBackground.value,
16
+ "eb8546ee": btnColor.value,
17
+ "d1365010": btnBorderRadius.value,
18
+ "e9574a28": btnWidth.value,
19
+ "eb3360fc": btnFloat.value
20
20
  }));
21
21
  const props = __props;
22
22
  const iconMap = {
@@ -69,7 +69,7 @@ const _sfc_main = {
69
69
  onClick
70
70
  }, createSlots({
71
71
  default: withCtx(() => [
72
- createTextVNode(" " + toDisplayString(unref(renderTextByVariables)(props.record.options.defaultValue, props.columnsIndex)), 1)
72
+ createTextVNode(" " + toDisplayString(unref(renderTextByVariables)(props.record.options.defaultValue, props.columnsIndex, props.variableList)), 1)
73
73
  ]),
74
74
  _: 2
75
75
  }, [
@@ -85,7 +85,7 @@ const _sfc_main = {
85
85
  };
86
86
  }
87
87
  };
88
- const Button = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-600d0258"]]);
88
+ const Button = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-99b93ecf"]]);
89
89
  export {
90
90
  Button as default
91
91
  };
@@ -2,7 +2,7 @@ import { useCssVars, computed, ref, resolveComponent, createElementBlock, openBl
2
2
  import { UploadOutlined } from "@ant-design/icons-vue";
3
3
  import { message } from "ant-design-vue";
4
4
  /* empty css */
5
- import _export_sfc from "./sun-card-design-mobile.es28.js";
5
+ import _export_sfc from "./sun-card-design-mobile.es27.js";
6
6
  const _hoisted_1 = { class: "upload-comp" };
7
7
  const _hoisted_2 = {
8
8
  key: 0,
@@ -2,7 +2,7 @@ import { useCssVars, computed, markRaw, defineComponent, h, createElementBlock,
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
- import _export_sfc from "./sun-card-design-mobile.es28.js";
5
+ import _export_sfc from "./sun-card-design-mobile.es27.js";
6
6
  const _hoisted_1 = { class: "main-icon" };
7
7
  const _sfc_main = {
8
8
  __name: "sunIconComp",
@@ -1,23 +1,23 @@
1
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
- import _export_sfc from "./sun-card-design-mobile.es28.js";
4
+ import _export_sfc from "./sun-card-design-mobile.es27.js";
5
5
  const _hoisted_1 = { class: "main-singleColumn" };
6
6
  const _hoisted_2 = { class: "box" };
7
7
  const _sfc_main = {
8
8
  __name: "singleColumn",
9
- props: ["record", "recordData", "columnsIndex"],
9
+ props: ["record", "recordData", "columnsIndex", "variableList"],
10
10
  emits: ["clickEvent", "clickColumnsEvent", "fileUpdateEvent"],
11
11
  setup(__props, { emit: __emit }) {
12
12
  useCssVars((_ctx) => ({
13
- "v22467673": mainBackground.value,
14
- "v4efbd52d": boxBackground.value,
15
- "d11468aa": boxBorder.value,
16
- "v38230fc6": boxBorderRadius.value,
17
- "v2331d472": boxPadding.value,
18
- "v2f7cc848": boxJustifyContent.value,
19
- "fd72bb8c": boxMinHeight.value,
20
- "v97e45ec2": boxShadow.value
13
+ "v064fa3e1": mainBackground.value,
14
+ "v08ff7c02": boxBackground.value,
15
+ "v62c5717d": boxBorder.value,
16
+ "fdea0f22": boxBorderRadius.value,
17
+ "v7c522e40": boxPadding.value,
18
+ "v110b07cc": boxJustifyContent.value,
19
+ "v0af85328": boxMinHeight.value,
20
+ "v7f5d7671": boxShadow.value
21
21
  }));
22
22
  const props = __props;
23
23
  const emit = __emit;
@@ -80,13 +80,14 @@ const _sfc_main = {
80
80
  (openBlock(true), createElementBlock(Fragment, null, renderList(item.list, (element, index2) => {
81
81
  return openBlock(), createBlock(FormItem, {
82
82
  record: element,
83
+ variableList: props.variableList,
83
84
  key: index2,
84
85
  recordData: props.recordData,
85
86
  columnsIndex: props.columnsIndex,
86
87
  onClickEvent: onClick,
87
88
  onFileUpdateEvent: onUpdate,
88
89
  onClickColumnsEvent: onClickColumns
89
- }, null, 8, ["record", "recordData", "columnsIndex"]);
90
+ }, null, 8, ["record", "variableList", "recordData", "columnsIndex"]);
90
91
  }), 128))
91
92
  ])
92
93
  ]),
@@ -100,7 +101,7 @@ const _sfc_main = {
100
101
  };
101
102
  }
102
103
  };
103
- const SingleColumn = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d8e7345d"]]);
104
+ const SingleColumn = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-27c284e9"]]);
104
105
  export {
105
106
  SingleColumn as default
106
107
  };