Skip to content

Commit c29f2ab

Browse files
committed
refactor: update examples
1 parent 4c80cde commit c29f2ab

File tree

9 files changed

+38
-15
lines changed

9 files changed

+38
-15
lines changed

src/components/AppSidebar.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<template>
22
<CSidebar
33
position="fixed"
4-
selfHiding="md"
54
:unfoldable="sidebarUnfoldable"
65
:visible="sidebarVisible"
76
@visible-change="

src/components/DocsCallout.vue

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
<template>
22
<CCallout color="info" class="bg-white">
3-
A Vue {{ name }} component {{ plural ? 'have' : 'has' }} been created as a
4-
native Vue.js version of Bootstrap {{ name }}. {{ name }}
5-
{{ plural ? 'are' : 'is' }}
6-
delivered with some new features, variants, and unique design that matches
7-
CoreUI Design System requirements.
3+
{{content
4+
? content
5+
: `A Vue ${name} component ${
6+
plural ? 'have' : 'has'
7+
} been created as a native Vue.js version
8+
of Bootstrap ${name}. ${name} ${plural ? 'are' : 'is'} delivered with some new features,
9+
variants, and unique design that matches CoreUI Design System requirements.`}}
810
<br />
911
<br />
1012
For more information please visit our official
@@ -20,6 +22,11 @@ import packageJson from '../../package.json'
2022
export default {
2123
name: 'DocsCallout',
2224
props: {
25+
content: {
26+
type: String,
27+
default: undefined,
28+
required: false,
29+
},
2330
href: {
2431
type: String,
2532
default: undefined,

src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import router from './router'
44
import store from './store'
55

66
import CoreuiVue from '@coreui/vue'
7-
import { CIcon } from '@coreui/icons-vue'
7+
import CIcon from '@coreui/icons-vue'
88
import { iconsSet as icons } from '@/assets/icons'
99
import DocsCallout from '@/components/DocsCallout'
1010
import DocsExample from '@/components/DocsExample'

src/views/buttons/Buttons.vue

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,6 @@
296296
>
297297
<CButton
298298
:color="color"
299-
:active="state === 'active' ? true : false"
300-
:disabled="state === 'disabled' ? true : false"
301299
shape="rounded-pill"
302300
>
303301
{{ color.charAt(0).toUpperCase() + color.slice(1) }}
@@ -329,8 +327,6 @@
329327
>
330328
<CButton
331329
:color="color"
332-
:active="state === 'active' ? true : false"
333-
:disabled="state === 'disabled' ? true : false"
334330
shape="rounded-0"
335331
>
336332
{{ color.charAt(0).toUpperCase() + color.slice(1) }}

src/views/charts/Charts.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
<template>
22
<CRow>
3+
<CCol :xs="12">
4+
<DocsCallout
5+
name="Chart"
6+
href="components/chart"
7+
content="React wrapper component for Chart.js 3.0, the most popular charting library."
8+
/>
9+
</CCol>
310
<CCol :md="6" class="mb-4">
411
<CCard>
512
<CCardHeader> Line Chart </CCardHeader>

src/views/icons/Brands.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
<template>
22
<CRow>
33
<CCol>
4+
<DocsCallout
5+
name="CoreUI Brand Icons"
6+
href="components/chart"
7+
content="CoreUI Brand Icons. CoreUI Icons package is delivered with more than 1500 icons in multiple formats SVG, PNG, and Webfonts. CoreUI Icons are beautifully crafted symbols for common actions and items. You can use them in your digital products for web or mobile app."
8+
/>
49
<CCard>
510
<CCardHeader>
6-
<strong>Vue CoreUI Brand Icons</strong>
11+
CoreUI Icons - Brand
712
</CCardHeader>
813
<CCardBody>
914
<CRow class="text-center">

src/views/icons/CoreUIIcons.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
<template>
22
<CRow>
33
<CCol>
4+
<DocsCallout
5+
name="CoreUI Icons"
6+
href="components/chart"
7+
content="CoreUI Icons. CoreUI Icons package is delivered with more than 1500 icons in multiple formats SVG, PNG, and Webfonts. CoreUI Icons are beautifully crafted symbols for common actions and items. You can use them in your digital products for web or mobile app."
8+
/>
49
<CCard>
510
<CCardHeader>
6-
<strong>Vue CoreUI Icons</strong>
11+
CoreUI Icons Free
712
</CCardHeader>
813
<CCardBody>
914
<CRow class="text-center">

src/views/icons/Flags.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
<template>
22
<CRow>
33
<CCol>
4+
<DocsCallout
5+
name="CoreUI Flag Icons"
6+
href="components/chart"
7+
content="CoreUI Flag Icons. CoreUI Icons package is delivered with more than 1500 icons in multiple formats SVG, PNG, and Webfonts. CoreUI Icons are beautifully crafted symbols for common actions and items. You can use them in your digital products for web or mobile app."
8+
/>
49
<CCard>
510
<CCardHeader>
6-
<strong>Vue CoreUI Flag Icons</strong>
11+
CoreUI Icons - Flag
712
</CCardHeader>
813
<CCardBody>
914
<CRow class="text-center">

src/views/theme/ColorTheme.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
style="padding-top: 75%"
66
></div>
77
<slot></slot>
8-
<ColorView />
98
</CCol>
109
</template>
1110

0 commit comments

Comments
 (0)