fix: small fixes
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="c-app c-default-layout">
|
<div class="c-app c-default-layout">
|
||||||
<TheHeader/>
|
<TheHeader/>
|
||||||
|
<TheSidebar/>
|
||||||
<div class="c-body">
|
<div class="c-body">
|
||||||
<TheSidebar/>
|
|
||||||
<main class="c-main">
|
<main class="c-main">
|
||||||
<CBreadcrumbRouter/>
|
<CBreadcrumbRouter/>
|
||||||
<CContainer fluid>
|
<CContainer fluid>
|
||||||
|
|||||||
+3
-9
@@ -10,23 +10,17 @@ import '@babel/polyfill'
|
|||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import App from './App'
|
import App from './App'
|
||||||
import router from './router'
|
import router from './router'
|
||||||
import CoreuiVue from '@coreui/vue/src'
|
// import CoreuiVue from '@coreui/vue/src'
|
||||||
import { CIconPlugin } from '@coreui/icons/vue'
|
import { CIconPlugin } from '@coreui/icons/vue'
|
||||||
import { iconsSet } from './assets/icons/icons.js'
|
import { iconsSet } from './assets/icons/icons.js'
|
||||||
|
|
||||||
// import CoreuiVue from '@coreui/vue'
|
import CoreuiVue from '@coreui/vue'
|
||||||
// import CoreuiVue from '@coreui/vue/dist/custom.common.js'
|
|
||||||
|
|
||||||
Vue.config.performance = true
|
Vue.config.performance = true
|
||||||
|
|
||||||
// todo
|
|
||||||
// cssVars()
|
|
||||||
Vue.use(CoreuiVue)
|
Vue.use(CoreuiVue)
|
||||||
// console.log(iconsSet)
|
|
||||||
Vue.use(CIconPlugin, iconsSet)
|
Vue.use(CIconPlugin, iconsSet)
|
||||||
|
|
||||||
/* eslint-disable no-new */
|
new Vue({
|
||||||
var vm = new Vue({
|
|
||||||
el: '#app',
|
el: '#app',
|
||||||
router,
|
router,
|
||||||
template: '<App/>',
|
template: '<App/>',
|
||||||
|
|||||||
@@ -200,7 +200,7 @@
|
|||||||
</CCol>
|
</CCol>
|
||||||
<CCol sm="9" :class="key % 2 === 1 ? 'c-form-inline' : ''">
|
<CCol sm="9" :class="key % 2 === 1 ? 'c-form-inline' : ''">
|
||||||
<CFormRadio
|
<CFormRadio
|
||||||
v-for="(option, optKey) in options"
|
v-for="option in options"
|
||||||
:key="option"
|
:key="option"
|
||||||
:label="option"
|
:label="option"
|
||||||
type="radio"
|
type="radio"
|
||||||
@@ -853,7 +853,6 @@ export default {
|
|||||||
trueValue:'someTrueValue',
|
trueValue:'someTrueValue',
|
||||||
falseValue:'someFalseValue',
|
falseValue:'someFalseValue',
|
||||||
checks: ['someTrueValue','hehehe2','',1,1,1,1,1,1,1,1,1,1,1,1],
|
checks: ['someTrueValue','hehehe2','',1,1,1,1,1,1,1,1,1,1,1,1],
|
||||||
selected: 'first',
|
|
||||||
isValid: '',
|
isValid: '',
|
||||||
testkkk: 2,
|
testkkk: 2,
|
||||||
horizontal: { label:'col-3', input:'col-9' },
|
horizontal: { label:'col-3', input:'col-9' },
|
||||||
@@ -874,11 +873,6 @@ export default {
|
|||||||
console.log('parent updated')
|
console.log('parent updated')
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
testt (e) {
|
|
||||||
// console.log(e)
|
|
||||||
// this.selected = 3
|
|
||||||
this.cInput += 100
|
|
||||||
},
|
|
||||||
validator (val) {
|
validator (val) {
|
||||||
return val ? val.length >= 4 : false
|
return val ? val.length >= 4 : false
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,7 +22,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import items from '../users/UsersData'
|
|
||||||
export default {
|
export default {
|
||||||
name: 'TableWrapper',
|
name: 'TableWrapper',
|
||||||
props: {
|
props: {
|
||||||
|
|||||||
@@ -143,7 +143,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<CButtonToolbar
|
<CButtonToolbar
|
||||||
aria-label="Toolbar with button groups and input groups"
|
aria-label="Toolbar with button groups and input groups"
|
||||||
class="c-d-sm-down-none"c-
|
class="c-d-sm-down-none"
|
||||||
>
|
>
|
||||||
<CButtonGroup size="sm" class="c-mx-1">
|
<CButtonGroup size="sm" class="c-mx-1">
|
||||||
<CButton>New</CButton>
|
<CButton>New</CButton>
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { customTooltips } from '@coreui/coreui-plugin-chartjs-custom-tooltips'
|
|
||||||
import { CChartBar } from '@coreui/coreui-vue-chartjs'
|
import { CChartBar } from '@coreui/coreui-vue-chartjs'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { customTooltips } from '@coreui/coreui-plugin-chartjs-custom-tooltips'
|
|
||||||
import { CChartLine } from '@coreui/coreui-vue-chartjs'
|
import { CChartLine } from '@coreui/coreui-vue-chartjs'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|||||||
@@ -10,7 +10,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { customTooltips } from '@coreui/coreui-plugin-chartjs-custom-tooltips'
|
|
||||||
import { CChartPolarArea } from '@coreui/coreui-vue-chartjs'
|
import { CChartPolarArea } from '@coreui/coreui-vue-chartjs'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|||||||
@@ -10,7 +10,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { customTooltips } from '@coreui/coreui-plugin-chartjs-custom-tooltips'
|
|
||||||
import { CChartRadar } from '@coreui/coreui-vue-chartjs'
|
import { CChartRadar } from '@coreui/coreui-vue-chartjs'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|||||||
@@ -64,12 +64,6 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
|
|
||||||
methods: {
|
|
||||||
getVariant (val, el) {
|
|
||||||
return val[0] === '#' ? val : getStyle(`--${val}`, el)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -9,7 +9,6 @@
|
|||||||
<script>
|
<script>
|
||||||
import { CChartLine } from '@coreui/coreui-vue-chartjs'
|
import { CChartLine } from '@coreui/coreui-vue-chartjs'
|
||||||
import { getColor, hexToRgba } from '@coreui/coreui/dist/js/coreui-utilities'
|
import { getColor, hexToRgba } from '@coreui/coreui/dist/js/coreui-utilities'
|
||||||
import { customTooltips } from '@coreui/coreui-plugin-chartjs-custom-tooltips'
|
|
||||||
|
|
||||||
function random (min, max) {
|
function random (min, max) {
|
||||||
return Math.floor(Math.random() * (max - min + 1) + min)
|
return Math.floor(Math.random() * (max - min + 1) + min)
|
||||||
@@ -65,7 +64,7 @@ export default {
|
|||||||
},
|
},
|
||||||
defaultOptions () {
|
defaultOptions () {
|
||||||
return {
|
return {
|
||||||
|
|
||||||
maintainAspectRatio: false,
|
maintainAspectRatio: false,
|
||||||
legend: {
|
legend: {
|
||||||
display: false
|
display: false
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
class="c-mb-5"
|
class="c-mb-5"
|
||||||
col="3"
|
col="3"
|
||||||
sm="2"
|
sm="2"
|
||||||
:key="key"
|
:key="brandName"
|
||||||
>
|
>
|
||||||
<CIcon :height="42" :content="$options.brands[brandName]"/>
|
<CIcon :height="42" :content="$options.brands[brandName]"/>
|
||||||
<div>{{brandName}}</div>
|
<div>{{brandName}}</div>
|
||||||
|
|||||||
@@ -196,9 +196,6 @@ export default {
|
|||||||
dismissSecs: 10,
|
dismissSecs: 10,
|
||||||
dismissCountDown: 10,
|
dismissCountDown: 10,
|
||||||
dismissibleAlerts: [true, true, true, true, true],
|
dismissibleAlerts: [true, true, true, true, true],
|
||||||
// dismissibleAlert: true,
|
|
||||||
// dismissibleAlert2: true,
|
|
||||||
// dismissibleAlert3: true
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -209,12 +206,7 @@ export default {
|
|||||||
this.dismissCountDown = this.dismissSecs
|
this.dismissCountDown = this.dismissSecs
|
||||||
},
|
},
|
||||||
showDismissibleAlerts () {
|
showDismissibleAlerts () {
|
||||||
// this.dismissibleAlert = true
|
this.dismissibleAlerts = this.dismissibleAlerts.map(el => el = true)
|
||||||
// this.dismissibleAlert2 = true
|
|
||||||
// this.dismissibleAlert3 = true
|
|
||||||
this.dismissibleAlerts = this.dismissibleAlerts.map(
|
|
||||||
alert => alert = true
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
:current-page="currentPage"
|
:current-page="currentPage"
|
||||||
:per-page="perPage"
|
:per-page="perPage"
|
||||||
@row-clicked="rowClicked"
|
@row-clicked="rowClicked"
|
||||||
:pagination-props="$options.paginationProps"
|
:pagination="$options.paginationProps"
|
||||||
>
|
>
|
||||||
<td slot="id" slot-scope="data">
|
<td slot="id" slot-scope="data">
|
||||||
<strong>{{data.item.id}}</strong>
|
<strong>{{data.item.id}}</strong>
|
||||||
@@ -51,11 +51,10 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
paginationProps: {
|
paginationProps: {
|
||||||
// size: 'sm',
|
|
||||||
align: 'center',
|
align: 'center',
|
||||||
hideDoubleArrows: true,
|
hideDoubleArrows: true,
|
||||||
previousButtonText: 'prev',
|
previousButtonHtml: 'prev',
|
||||||
nextButtonText: 'next'
|
nextButtonHtml: 'next'
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getBadge (status) {
|
getBadge (status) {
|
||||||
|
|||||||
Reference in New Issue
Block a user