Skip to content

Commit 569ebb8

Browse files
committed
feat: add CCallout component
1 parent 7098ad3 commit 569ebb8

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

src/components/Callout/CCallout.vue

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<template functional>
2+
<div :class="`callout ${props.variant ? 'callout-' + props.variant : ''}`">
3+
<slot></slot>
4+
</div>
5+
</template>
6+
7+
<script>
8+
export default {
9+
name: 'CCallout',
10+
props: {
11+
variant: String,
12+
}
13+
}
14+
</script>

src/components/Callout/Callout.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ export default {
2323
calloutVariant () {
2424
return this.variant ? `callout-${this.variant}` : ''
2525
}
26-
},
27-
mounted () {
28-
console.error(this.$options._componentTag + ' component is deprecated and will be removed in coreui-vue 3.0 version')
2926
}
3027
}
3128
</script>

src/components/Callout/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import Callout from './Callout'
2+
import CCallout from './CCallout'
3+
24

35
export {
4-
Callout
6+
Callout,
7+
CCallout
58
}

0 commit comments

Comments
 (0)