Skip to content

Commit e351933

Browse files
authored
Merge pull request #377 from Efficy/main
Add script component for BCardText in order to help an IDE to detect by naming tags
2 parents 202aeb4 + bcbf107 commit e351933

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

src/components/BAvatar/BAvatarGroup.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,8 @@ export default defineComponent({
4444
setup(props) {
4545
const computedSize = computed(() => computeSize(props.size))
4646
47-
const computeOverlap = (value: any): number => {
48-
const calcValue = isString(value) && isNumeric(value) ? toFloat(value, 0) : value || 0
49-
return calcValue
50-
}
47+
const computeOverlap = (value: any): number =>
48+
isString(value) && isNumeric(value) ? toFloat(value, 0) : value || 0
5149
const overlapScale = computed(() => mathMin(mathMax(computeOverlap(props.overlap), 0), 1) / 2)
5250
5351
const paddingStyle = computed((): StyleValue => {

src/components/BCard/BCardText.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,11 @@
33
<slot />
44
</p>
55
</template>
6+
7+
<script lang="ts">
8+
import {defineComponent} from 'vue'
9+
10+
export default defineComponent({
11+
name: 'BCardText',
12+
})
13+
</script>

0 commit comments

Comments
 (0)