@redseed/redseed-ui-vue3 8.1.0 → 8.1.2
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/package.json
CHANGED
|
@@ -146,7 +146,7 @@ function handleMoreActionsClick() {
|
|
|
146
146
|
|
|
147
147
|
<!-- Mobile actions slot, optional -->
|
|
148
148
|
<div class="rsui-card-header__actions-mobile"
|
|
149
|
-
v-if="!responsiveWidth.specific && $slots.actions"
|
|
149
|
+
v-if="showActions && !responsiveWidth.specific && $slots.actions"
|
|
150
150
|
>
|
|
151
151
|
<slot name="actions"></slot>
|
|
152
152
|
</div>
|
|
@@ -62,7 +62,6 @@ function onFieldInput() {
|
|
|
62
62
|
<CardHeader
|
|
63
63
|
:showAvatar="false"
|
|
64
64
|
:showBadge="false"
|
|
65
|
-
:showSubtitle="false"
|
|
66
65
|
:showActions="true"
|
|
67
66
|
:showMoreActions="false"
|
|
68
67
|
:showDivider="false"
|
|
@@ -82,7 +81,13 @@ function onFieldInput() {
|
|
|
82
81
|
</span>
|
|
83
82
|
</div>
|
|
84
83
|
|
|
85
|
-
<template #
|
|
84
|
+
<template #subtitle v-if="$slots.subtitle">
|
|
85
|
+
<div class="rsui-checkbox-card__subtitle">
|
|
86
|
+
<slot name="subtitle"></slot>
|
|
87
|
+
</div>
|
|
88
|
+
</template>
|
|
89
|
+
|
|
90
|
+
<template #actions v-if="$slots.actions">
|
|
86
91
|
<slot name="actions"></slot>
|
|
87
92
|
</template>
|
|
88
93
|
</CardHeader>
|
|
@@ -14,6 +14,10 @@ const props = defineProps({
|
|
|
14
14
|
type: Boolean,
|
|
15
15
|
default: false,
|
|
16
16
|
},
|
|
17
|
+
labelEnd: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: false,
|
|
20
|
+
},
|
|
17
21
|
})
|
|
18
22
|
|
|
19
23
|
const model = defineModel();
|
|
@@ -26,7 +30,7 @@ watch(model, (val) => {
|
|
|
26
30
|
|
|
27
31
|
const defaultSize = computed(() => !props.sm && !props.md)
|
|
28
32
|
|
|
29
|
-
const
|
|
33
|
+
const toggleClasses = computed(() => [
|
|
30
34
|
'rsui-toggle',
|
|
31
35
|
{
|
|
32
36
|
'rsui-toggle--sm': props.sm,
|
|
@@ -35,10 +39,16 @@ const wrapperClasses = computed(() => [
|
|
|
35
39
|
}
|
|
36
40
|
])
|
|
37
41
|
|
|
42
|
+
const controlClasses = computed(() => [
|
|
43
|
+
'rsui-toggle__control',
|
|
44
|
+
{
|
|
45
|
+
'rsui-toggle__control--label-end': props.labelEnd,
|
|
46
|
+
}
|
|
47
|
+
])
|
|
38
48
|
</script>
|
|
39
49
|
<template>
|
|
40
|
-
<div :class="
|
|
41
|
-
<div class="
|
|
50
|
+
<div :class="toggleClasses">
|
|
51
|
+
<div :class="controlClasses">
|
|
42
52
|
<label v-if="$slots['label']"
|
|
43
53
|
:for="$attrs.id"
|
|
44
54
|
>
|