glib-web 3.20.2 → 3.20.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.
|
@@ -7,11 +7,13 @@
|
|
|
7
7
|
:density="density"
|
|
8
8
|
:size="size"
|
|
9
9
|
:color="color"
|
|
10
|
+
:active="$classesInclude('active')"
|
|
10
11
|
:icon="$classes().includes('icon') ? $vuetify : null"
|
|
11
12
|
@click.prevent="
|
|
12
13
|
type == 'submit' ? $dispatchEvent('forms/submit') : $onClick()
|
|
13
14
|
">
|
|
14
|
-
<span v-if="spec.icon"><common-icon :spec="spec.icon || {}" /></span>
|
|
15
|
+
<!-- <span v-if="spec.icon"><common-icon :spec="spec.icon || {}" /></span> -->
|
|
16
|
+
<common-icon v-if="spec.icon" :spec="spec.icon || {}" />
|
|
15
17
|
<div :class="hideTextOnXs && spec.icon ? 'd-none d-sm-flex' : null">
|
|
16
18
|
{{ spec.text }}
|
|
17
19
|
</div>
|
package/components/image.vue
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<common-badge v-if="spec.badge" :spec="spec">
|
|
3
|
-
<img :src="spec.url || spec.base64Data" @click="$onClick()" :style="styles" :height="height" :width="width"
|
|
3
|
+
<img class="aligner" :src="spec.url || spec.base64Data" @click="$onClick()" :style="styles" :height="height" :width="width"
|
|
4
4
|
:class="$classes()" />
|
|
5
5
|
</common-badge>
|
|
6
|
-
<img v-else :src="spec.url || spec.base64Data" @click="$onClick()" :style="styles" :height="height" :width="width"
|
|
6
|
+
<img v-else class="aligner" :src="spec.url || spec.base64Data" @click="$onClick()" :style="styles" :height="height" :width="width"
|
|
7
7
|
:class="$classes()" />
|
|
8
8
|
</template>
|
|
9
9
|
|
|
@@ -84,4 +84,9 @@ export default {
|
|
|
84
84
|
};
|
|
85
85
|
</script>
|
|
86
86
|
|
|
87
|
-
<style scoped
|
|
87
|
+
<style lang="scss" scoped>
|
|
88
|
+
.aligner {
|
|
89
|
+
/* Without this, horizontal panel's `align: middle` will not apply to the icon. */
|
|
90
|
+
display: block;
|
|
91
|
+
}
|
|
92
|
+
</style>
|
package/nav/drawerButton.vue
CHANGED
|
@@ -1,19 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
<v-list-item class="drawer-button" :active="$classesInclude('active')">
|
|
5
|
-
|
|
6
|
-
<!-- <v-list-item :href="$href(spec)" @click="performAction($event)" class="popover-menu-item"> -->
|
|
7
|
-
<!-- <v-list-item :href="$href(spec)" @click="performAction($event)"> -->
|
|
8
|
-
<!-- <v-list-item-action v-if="spec.icon">
|
|
9
|
-
<common-icon :spec="spec.icon" />
|
|
10
|
-
</v-list-item-action> -->
|
|
11
|
-
<!--
|
|
12
|
-
<v-list-item-title>
|
|
13
|
-
<common-badge :spec="spec">
|
|
14
|
-
{{ spec.text }}
|
|
15
|
-
</common-badge>
|
|
16
|
-
</v-list-item-title> -->
|
|
2
|
+
<v-list-item class="drawer-button">
|
|
17
3
|
<common-button :spec="buttonSpec(spec)" />
|
|
18
4
|
</v-list-item>
|
|
19
5
|
</template>
|
|
@@ -30,10 +16,10 @@ export default {
|
|
|
30
16
|
this.$onClick(event);
|
|
31
17
|
},
|
|
32
18
|
buttonSpec(item) {
|
|
19
|
+
const styleClasses = item.styleClasses || [];
|
|
33
20
|
return Object.assign({}, item, {
|
|
34
21
|
view: "button-v1",
|
|
35
|
-
|
|
36
|
-
styleClasses: ["text"]
|
|
22
|
+
styleClasses: styleClasses.concat(["text"])
|
|
37
23
|
});
|
|
38
24
|
}
|
|
39
25
|
}
|