free-fe-core-modules 0.0.47 → 0.0.49
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.
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
|
|
66
66
|
<div v-else-if="(Field.onlyIcon || onlyIcon) && fieldData.value && fieldData.value[0]?.id">
|
|
67
67
|
<q-img
|
|
68
|
-
:src="$filter('serverThumb', `${fieldData.value[0].id}`)"
|
|
68
|
+
:src="$filter(Field?.Options?.NoThumb ? 'serverImage' : 'serverThumb', `${fieldData.value[0].id}`)"
|
|
69
69
|
style="width:32px; max-height:32px;min-height:32px;"
|
|
70
70
|
>
|
|
71
71
|
</q-img>
|
|
@@ -210,6 +210,12 @@ export default defineComponent({
|
|
|
210
210
|
Name: 'MaxValue',
|
|
211
211
|
Default: '10m',
|
|
212
212
|
},
|
|
213
|
+
{
|
|
214
|
+
Type: 'Boolean',
|
|
215
|
+
Default: false,
|
|
216
|
+
Label: '不使用缩略图',
|
|
217
|
+
Name: 'Options.NoThumb',
|
|
218
|
+
},
|
|
213
219
|
],
|
|
214
220
|
Description: '',
|
|
215
221
|
},
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
<slot name="warning"></slot>
|
|
137
137
|
</div>
|
|
138
138
|
<div
|
|
139
|
-
class="checkbox-list"
|
|
139
|
+
class="checkbox-list row"
|
|
140
140
|
:class="hasError ? 'free-field--error' : ''"
|
|
141
141
|
>
|
|
142
142
|
|
|
@@ -146,7 +146,6 @@
|
|
|
146
146
|
>
|
|
147
147
|
<e-icon name="error"></e-icon>
|
|
148
148
|
</div>
|
|
149
|
-
|
|
150
149
|
<q-checkbox
|
|
151
150
|
v-for="(option, index) in Field.Options"
|
|
152
151
|
:class="{
|
|
@@ -159,7 +158,7 @@
|
|
|
159
158
|
v-model="checked"
|
|
160
159
|
:val="option.Value"
|
|
161
160
|
:disable="Field.ReadOnly"
|
|
162
|
-
@
|
|
161
|
+
@update:modelValue="checkChanged(option.Value)"
|
|
163
162
|
:checked-icon="checkedIcon(option)"
|
|
164
163
|
>
|
|
165
164
|
<q-tooltip v-if="option.opt?.Tooltip"
|
|
@@ -433,9 +432,10 @@ export default defineComponent({
|
|
|
433
432
|
const checkChanged = (v) => {
|
|
434
433
|
selfValidate();
|
|
435
434
|
|
|
436
|
-
if (!props.Field.Multiple) {
|
|
435
|
+
if (!props.Field.Multiple && checked.value.indexOf(v) >= 0) {
|
|
437
436
|
checked.value = [v];
|
|
438
437
|
}
|
|
438
|
+
|
|
439
439
|
setFieldData(checked.value.join(','), emit);
|
|
440
440
|
};
|
|
441
441
|
|
|
@@ -532,6 +532,16 @@ export default defineComponent({
|
|
|
532
532
|
});
|
|
533
533
|
</script>
|
|
534
534
|
|
|
535
|
+
<style lang="scss" scoped>
|
|
536
|
+
.free-field-select {
|
|
537
|
+
.free-field-select-ascheck {
|
|
538
|
+
.field-label {
|
|
539
|
+
line-height: 40px;
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
</style>
|
|
544
|
+
|
|
535
545
|
<style lang="sass">
|
|
536
546
|
.free-field-select
|
|
537
547
|
.q-field__native
|