refactor: update examples

This commit is contained in:
Łukasz Holeczek
2021-10-28 20:07:07 +02:00
parent 4c80cde67a
commit c29f2ab384
9 changed files with 38 additions and 15 deletions
-1
View File
@@ -1,7 +1,6 @@
<template> <template>
<CSidebar <CSidebar
position="fixed" position="fixed"
selfHiding="md"
:unfoldable="sidebarUnfoldable" :unfoldable="sidebarUnfoldable"
:visible="sidebarVisible" :visible="sidebarVisible"
@visible-change=" @visible-change="
+12 -5
View File
@@ -1,10 +1,12 @@
<template> <template>
<CCallout color="info" class="bg-white"> <CCallout color="info" class="bg-white">
A Vue {{ name }} component {{ plural ? 'have' : 'has' }} been created as a {{content
native Vue.js version of Bootstrap {{ name }}. {{ name }} ? content
{{ plural ? 'are' : 'is' }} : `A Vue ${name} component ${
delivered with some new features, variants, and unique design that matches plural ? 'have' : 'has'
CoreUI Design System requirements. } been created as a native Vue.js version
of Bootstrap ${name}. ${name} ${plural ? 'are' : 'is'} delivered with some new features,
variants, and unique design that matches CoreUI Design System requirements.`}}
<br /> <br />
<br /> <br />
For more information please visit our official For more information please visit our official
@@ -20,6 +22,11 @@ import packageJson from '../../package.json'
export default { export default {
name: 'DocsCallout', name: 'DocsCallout',
props: { props: {
content: {
type: String,
default: undefined,
required: false,
},
href: { href: {
type: String, type: String,
default: undefined, default: undefined,
+1 -1
View File
@@ -4,7 +4,7 @@ import router from './router'
import store from './store' import store from './store'
import CoreuiVue from '@coreui/vue' import CoreuiVue from '@coreui/vue'
import { CIcon } from '@coreui/icons-vue' import CIcon from '@coreui/icons-vue'
import { iconsSet as icons } from '@/assets/icons' import { iconsSet as icons } from '@/assets/icons'
import DocsCallout from '@/components/DocsCallout' import DocsCallout from '@/components/DocsCallout'
import DocsExample from '@/components/DocsExample' import DocsExample from '@/components/DocsExample'
-4
View File
@@ -296,8 +296,6 @@
> >
<CButton <CButton
:color="color" :color="color"
:active="state === 'active' ? true : false"
:disabled="state === 'disabled' ? true : false"
shape="rounded-pill" shape="rounded-pill"
> >
{{ color.charAt(0).toUpperCase() + color.slice(1) }} {{ color.charAt(0).toUpperCase() + color.slice(1) }}
@@ -329,8 +327,6 @@
> >
<CButton <CButton
:color="color" :color="color"
:active="state === 'active' ? true : false"
:disabled="state === 'disabled' ? true : false"
shape="rounded-0" shape="rounded-0"
> >
{{ color.charAt(0).toUpperCase() + color.slice(1) }} {{ color.charAt(0).toUpperCase() + color.slice(1) }}
+7
View File
@@ -1,5 +1,12 @@
<template> <template>
<CRow> <CRow>
<CCol :xs="12">
<DocsCallout
name="Chart"
href="components/chart"
content="React wrapper component for Chart.js 3.0, the most popular charting library."
/>
</CCol>
<CCol :md="6" class="mb-4"> <CCol :md="6" class="mb-4">
<CCard> <CCard>
<CCardHeader> Line Chart </CCardHeader> <CCardHeader> Line Chart </CCardHeader>
+6 -1
View File
@@ -1,9 +1,14 @@
<template> <template>
<CRow> <CRow>
<CCol> <CCol>
<DocsCallout
name="CoreUI Brand Icons"
href="components/chart"
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."
/>
<CCard> <CCard>
<CCardHeader> <CCardHeader>
<strong>Vue CoreUI Brand Icons</strong> CoreUI Icons - Brand
</CCardHeader> </CCardHeader>
<CCardBody> <CCardBody>
<CRow class="text-center"> <CRow class="text-center">
+6 -1
View File
@@ -1,9 +1,14 @@
<template> <template>
<CRow> <CRow>
<CCol> <CCol>
<DocsCallout
name="CoreUI Icons"
href="components/chart"
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."
/>
<CCard> <CCard>
<CCardHeader> <CCardHeader>
<strong>Vue CoreUI Icons</strong> CoreUI Icons Free
</CCardHeader> </CCardHeader>
<CCardBody> <CCardBody>
<CRow class="text-center"> <CRow class="text-center">
+6 -1
View File
@@ -1,9 +1,14 @@
<template> <template>
<CRow> <CRow>
<CCol> <CCol>
<DocsCallout
name="CoreUI Flag Icons"
href="components/chart"
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."
/>
<CCard> <CCard>
<CCardHeader> <CCardHeader>
<strong>Vue CoreUI Flag Icons</strong> CoreUI Icons - Flag
</CCardHeader> </CCardHeader>
<CCardBody> <CCardBody>
<CRow class="text-center"> <CRow class="text-center">
-1
View File
@@ -5,7 +5,6 @@
style="padding-top: 75%" style="padding-top: 75%"
></div> ></div>
<slot></slot> <slot></slot>
<ColorView />
</CCol> </CCol>
</template> </template>