free-fe-core-modules 0.0.21 → 0.0.23
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/components/Basic/LeveledMenus.vue +8 -3
- package/composible/useObjectData.js +1 -1
- package/free-field/Fields/File.vue +2 -2
- package/free-field/Fields/FileList.vue +2 -2
- package/free-field/Fields/FileListCombined.vue +2 -2
- package/free-field/Fields/Image.vue +1 -1
- package/free-field/Fields/ImageList.vue +1 -1
- package/free-field/Fields/ImageListCombined.vue +1 -1
- package/package.json +1 -1
- package/view/menu/index.vue +0 -6
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<template v-slot:header>
|
|
15
15
|
<div class="header row full-width">
|
|
16
16
|
<q-item-section v-if="showIcon && m.Icon" avatar>
|
|
17
|
-
<q-icon class="leaf-icon" :name="m.Icon"></q-icon>
|
|
17
|
+
<q-icon class="leaf-icon" :name="m.Icon" :class="{'svg-icon': m.Icon && m.Icon.endsWith('.svg')}"></q-icon>
|
|
18
18
|
</q-item-section>
|
|
19
19
|
<q-item-section>
|
|
20
20
|
<div class="q-item__label leaf-label">{{translate ? $t(m.Label) : m.Label}}</div>
|
|
@@ -88,8 +88,13 @@ export default defineComponent({
|
|
|
88
88
|
});
|
|
89
89
|
</script>
|
|
90
90
|
|
|
91
|
-
<style lang="sass">
|
|
91
|
+
<style lang="sass" scoped>
|
|
92
92
|
.leveled-menu
|
|
93
|
-
.simple-expand-icon
|
|
93
|
+
:deep(.simple-expand-icon)
|
|
94
94
|
display: none
|
|
95
|
+
.svg-icon
|
|
96
|
+
overflow: hidden
|
|
97
|
+
:deep(img)
|
|
98
|
+
filter: drop-shadow(1000px 0 0 currentColor)
|
|
99
|
+
transform: translateX(-1000px)
|
|
95
100
|
</style>
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
>
|
|
30
30
|
<template v-slot:list="scope">
|
|
31
31
|
<div
|
|
32
|
-
v-if="Field.Options && Field.Options.AsLink && fieldData.value?.length"
|
|
32
|
+
v-if="Field.Options && Field.Options.AsLink && Array.isArray(fieldData.value) && fieldData.value?.length"
|
|
33
33
|
class="file-link row full-width ellipsis items-center"
|
|
34
34
|
>
|
|
35
35
|
<div
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
</q-item>
|
|
109
109
|
|
|
110
110
|
<div
|
|
111
|
-
v-else-if="fieldData.value?.length"
|
|
111
|
+
v-else-if="Array.isArray(fieldData.value) && fieldData.value?.length"
|
|
112
112
|
class="file-list row items-start justify-start"
|
|
113
113
|
>
|
|
114
114
|
<q-card
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
>
|
|
32
32
|
<template v-slot:list="scope">
|
|
33
33
|
<div
|
|
34
|
-
v-if="Field.Options && Field.Options.AsLink && allFiles.length"
|
|
34
|
+
v-if="Field.Options && Field.Options.AsLink && Array.isArray(allFiles) && allFiles.length"
|
|
35
35
|
class="file-link row full-width ellipsis items-center"
|
|
36
36
|
>
|
|
37
37
|
<div
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
</div> -->
|
|
136
136
|
|
|
137
137
|
<div
|
|
138
|
-
v-if="allFiles.length"
|
|
138
|
+
v-if="Array.isArray(allFiles) && allFiles.length"
|
|
139
139
|
class="file-list file-list-card row items-start justify-start q-gutter-xl"
|
|
140
140
|
>
|
|
141
141
|
<q-card
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
>
|
|
19
19
|
<template v-slot:list>
|
|
20
20
|
<div
|
|
21
|
-
v-if="fieldData.value?.length && Field.AsList"
|
|
21
|
+
v-if="Array.isArray(fieldData.value) && fieldData.value?.length && Field.AsList"
|
|
22
22
|
class="file-list file-list-list"
|
|
23
23
|
>
|
|
24
24
|
<q-list>
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
</div>
|
|
46
46
|
|
|
47
47
|
<div
|
|
48
|
-
v-if="fieldData.value?.length && !Field.AsList"
|
|
48
|
+
v-if="Array.isArray(fieldData.value) && fieldData.value?.length && !Field.AsList"
|
|
49
49
|
class="file-list file-list-card row items-start justify-start q-gutter-xl"
|
|
50
50
|
>
|
|
51
51
|
<q-card
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
</q-item-section>
|
|
104
104
|
</q-item>
|
|
105
105
|
|
|
106
|
-
<div v-else-if="fieldData.value?.length" class="file-list row items-start justify-start">
|
|
106
|
+
<div v-else-if="Array.isArray(fieldData.value) && fieldData.value?.length" class="file-list row items-start justify-start">
|
|
107
107
|
<q-card
|
|
108
108
|
flat
|
|
109
109
|
class="file-list-item"
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
<slot name="warning"></slot>
|
|
61
61
|
</div>
|
|
62
62
|
|
|
63
|
-
<div v-if="allFiles.length" class="file-list row items-start justify-start q-gutter-xl">
|
|
63
|
+
<div v-if="Array.isArray(allFiles) && allFiles.length" class="file-list row items-start justify-start q-gutter-xl">
|
|
64
64
|
<q-card
|
|
65
65
|
flat
|
|
66
66
|
class="file-list-item"
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
ref="uploader"
|
|
14
14
|
>
|
|
15
15
|
<template v-slot:list="scope">
|
|
16
|
-
<div v-if="scope.files.length" class="file-list row items-start justify-start q-gutter-xl">
|
|
16
|
+
<div v-if="Array.isArray(scope.files) && scope.files.length" class="file-list row items-start justify-start q-gutter-xl">
|
|
17
17
|
<q-card
|
|
18
18
|
flat
|
|
19
19
|
class="file-list-item"
|
package/package.json
CHANGED