@redseed/redseed-ui-vue3 7.4.2 → 7.5.1
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
|
@@ -70,6 +70,9 @@ const showToolbar = computed(() => {
|
|
|
70
70
|
<!-- Title slot, default slot -->
|
|
71
71
|
<div class="rsui-section-header__title">
|
|
72
72
|
<slot></slot>
|
|
73
|
+
<div v-if="$slots.badge" class="rsui-section-header__badge">
|
|
74
|
+
<slot name="badge"></slot>
|
|
75
|
+
</div>
|
|
73
76
|
</div>
|
|
74
77
|
|
|
75
78
|
<!-- Subtitle slot, optional -->
|
|
@@ -3,12 +3,12 @@ import { ref, computed } from 'vue'
|
|
|
3
3
|
import { ArrowLongUpIcon } from '@heroicons/vue/24/outline'
|
|
4
4
|
import LinkPrimary from '../Link/LinkPrimary.vue'
|
|
5
5
|
|
|
6
|
-
const props = defineProps({
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
})
|
|
6
|
+
// const props = defineProps({
|
|
7
|
+
// primary: {
|
|
8
|
+
// type: Boolean,
|
|
9
|
+
// default: false
|
|
10
|
+
// }
|
|
11
|
+
// })
|
|
12
12
|
|
|
13
13
|
const emit = defineEmits(['asc', 'desc'])
|
|
14
14
|
|
|
@@ -16,10 +16,9 @@ const emit = defineEmits(['asc', 'desc'])
|
|
|
16
16
|
|
|
17
17
|
const sortingClass = computed(() => [
|
|
18
18
|
'rsui-sorting',
|
|
19
|
-
{
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
|
|
19
|
+
// {
|
|
20
|
+
// 'rsui-sorting--primary': !!props.primary
|
|
21
|
+
// }
|
|
23
22
|
])
|
|
24
23
|
|
|
25
24
|
const desc = ref(false)
|
|
@@ -5,7 +5,15 @@ const props = defineProps({
|
|
|
5
5
|
disabled: {
|
|
6
6
|
type: Boolean,
|
|
7
7
|
default: false,
|
|
8
|
-
}
|
|
8
|
+
},
|
|
9
|
+
sm: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
default: false,
|
|
12
|
+
},
|
|
13
|
+
md: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
default: false,
|
|
16
|
+
},
|
|
9
17
|
})
|
|
10
18
|
|
|
11
19
|
const model = defineModel();
|
|
@@ -16,9 +24,13 @@ watch(model, (val) => {
|
|
|
16
24
|
emit('update', val)
|
|
17
25
|
})
|
|
18
26
|
|
|
27
|
+
const defaultSize = computed(() => !props.sm && !props.md)
|
|
28
|
+
|
|
19
29
|
const wrapperClasses = computed(() => [
|
|
20
30
|
'rsui-toggle',
|
|
21
31
|
{
|
|
32
|
+
'rsui-toggle--sm': props.sm,
|
|
33
|
+
'rsui-toggle--md': props.md || defaultSize.value,
|
|
22
34
|
'rsui-toggle--disabled': props.disabled,
|
|
23
35
|
}
|
|
24
36
|
])
|