File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed
coreui-vue/src/components/tabs Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,15 @@ import { executeAfterTransition } from '../../utils/transition'
55const CTabPane = defineComponent ( {
66 name : 'CTabPane' ,
77 props : {
8+ /**
9+ * Enable fade in and fade out transition.
10+ *
11+ * @since 5.1.0
12+ */
13+ transition : {
14+ type : Boolean ,
15+ default : true ,
16+ } ,
817 /**
918 * Toggle the visibility of component.
1019 */
@@ -57,9 +66,9 @@ const CTabPane = defineComponent({
5766 {
5867 class : [
5968 'tab-pane' ,
60- 'fade' ,
6169 {
6270 active : props . visible ,
71+ fade : props . transition ,
6372 show : firstRender . value && props . visible ,
6473 } ,
6574 ] ,
Original file line number Diff line number Diff line change @@ -8,9 +8,10 @@ import CTabPane from '@coreui/vue/src/components/tabs/CTabPane'
88
99#### Props
1010
11- | Prop name | Description | Type | Values | Default |
12- | ----------- | ----------------------------------- | ------- | ------ | ------- |
13- | ** visible** | Toggle the visibility of component. | boolean | - | false |
11+ | Prop name | Description | Type | Values | Default |
12+ | ------------------------------------------------------------- | --------------------------------------- | ------- | ------ | ------- |
13+ | ** transition** <br ><div class =" badge bg-primary " >5.1.0+</div > | Enable fade in and fade out transition. | boolean | - | true |
14+ | ** visible** | Toggle the visibility of component. | boolean | - | false |
1415
1516#### Events
1617
You can’t perform that action at this time.
0 commit comments