free-fe-core-modules 0.1.36 → 0.1.38
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.
|
@@ -20,15 +20,15 @@
|
|
|
20
20
|
class="data-scope">
|
|
21
21
|
<free-field
|
|
22
22
|
v-for="(scope, index) in Service.Scope"
|
|
23
|
-
:key="index"
|
|
23
|
+
:key="scope.Field || scope.Name || scope.Label || index"
|
|
24
24
|
:Field="{
|
|
25
25
|
Type: 'Select',
|
|
26
26
|
Label: scope.Label,
|
|
27
|
-
Name: `Scope.${scope.Field}`,
|
|
27
|
+
Name: `Scope.${scope.Field || scope.Name}`,
|
|
28
28
|
Options: scope.Options || [],
|
|
29
29
|
Multiple: scope.Multiple || false,
|
|
30
30
|
}"
|
|
31
|
-
:values="fieldData"
|
|
31
|
+
:values="fieldData.value"
|
|
32
32
|
@input="scopeChanged"
|
|
33
33
|
/>
|
|
34
34
|
</div>
|
|
@@ -149,7 +149,7 @@ export default defineComponent({
|
|
|
149
149
|
})
|
|
150
150
|
|
|
151
151
|
return {
|
|
152
|
-
fieldData
|
|
152
|
+
fieldData,
|
|
153
153
|
hasThis,
|
|
154
154
|
childUpdated,
|
|
155
155
|
scopeChanged,
|
|
@@ -351,13 +351,19 @@ export default defineComponent({
|
|
|
351
351
|
return realComponent.value ? () => h(
|
|
352
352
|
"div",
|
|
353
353
|
{
|
|
354
|
-
class:
|
|
355
|
-
|
|
354
|
+
class: [
|
|
355
|
+
wrapperClass,
|
|
356
|
+
shouldHide.value ? "free-field-wrapper--hidden" : "",
|
|
357
|
+
],
|
|
358
|
+
style: [
|
|
359
|
+
props.Field.Info?.Style || '',
|
|
360
|
+
shouldHide.value ? { display: "none" } : null,
|
|
361
|
+
],
|
|
356
362
|
},
|
|
357
363
|
[
|
|
358
364
|
realComp.value,
|
|
359
365
|
tipsElem,
|
|
360
366
|
]
|
|
361
|
-
) :
|
|
367
|
+
) : null;
|
|
362
368
|
},
|
|
363
369
|
});
|