Merge pull request #93 from coreui/dev-ie-getstyles
chore(release): v2.0.0-beta.3
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
## [vue](./README.md) version `changelog`
|
## [vue](./README.md) version `changelog`
|
||||||
|
|
||||||
|
##### `v2.0.0-beta.3`
|
||||||
|
- refactor: `getStyles()` back to `@coreui/coreui` version `^2.0.2`
|
||||||
|
- fix(Dashboard): `width` card-line*-chart-example `ie` issue
|
||||||
|
|
||||||
##### `v2.0.0-beta.2`
|
##### `v2.0.0-beta.2`
|
||||||
- refactor: `HeaderDropdown` with new slots `header` and `dropdown` *breaking change*
|
- refactor: `HeaderDropdown` with new slots `header` and `dropdown` *breaking change*
|
||||||
- chore: update `@coreui/vue` to `2.0.0-beta.1`
|
- chore: update `@coreui/vue` to `2.0.0-beta.1`
|
||||||
|
|||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@coreui/coreui-free-vue-admin-template",
|
"name": "@coreui/coreui-free-vue-admin-template",
|
||||||
"version": "2.0.0-beta.2",
|
"version": "2.0.0-beta.3",
|
||||||
"description": "Open Source Bootstrap Admin Template",
|
"description": "Open Source Bootstrap Admin Template",
|
||||||
"author": "Łukasz Holeczek",
|
"author": "Łukasz Holeczek",
|
||||||
"homepage": "http://coreui.io",
|
"homepage": "http://coreui.io",
|
||||||
@@ -17,7 +17,7 @@
|
|||||||
"build": "node build/build.js"
|
"build": "node build/build.js"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@coreui/coreui": "^2.0.1",
|
"@coreui/coreui": "^2.0.2",
|
||||||
"@coreui/coreui-plugin-chartjs-custom-tooltips": "^1.2.0",
|
"@coreui/coreui-plugin-chartjs-custom-tooltips": "^1.2.0",
|
||||||
"@coreui/icons": "^0.2.0",
|
"@coreui/icons": "^0.2.0",
|
||||||
"@coreui/vue": "^2.0.0-beta.1",
|
"@coreui/vue": "^2.0.0-beta.1",
|
||||||
|
|||||||
@@ -1,10 +0,0 @@
|
|||||||
// todo
|
|
||||||
// temp getStyle fix for IE
|
|
||||||
const getStyle = (prop, node) => {
|
|
||||||
const root = node || document.querySelector(':root')
|
|
||||||
const value = window.getComputedStyle(root).getPropertyValue(prop).trim()
|
|
||||||
// console.log('utils/getStyle', value)
|
|
||||||
return value
|
|
||||||
}
|
|
||||||
|
|
||||||
export default getStyle
|
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
<h4 class="mb-0">9.823</h4>
|
<h4 class="mb-0">9.823</h4>
|
||||||
<p>Members online</p>
|
<p>Members online</p>
|
||||||
</b-card-body>
|
</b-card-body>
|
||||||
<card-line1-chart-example chartId="card-chart-01" class="chart-wrapper px-3" style="height:70px;" height="70"/>
|
<card-line1-chart-example chartId="card-chart-01" class="chart-wrapper px-3" style="height:70px;" :height="70"/>
|
||||||
</b-card>
|
</b-card>
|
||||||
</b-col>
|
</b-col>
|
||||||
<b-col sm="6" lg="3">
|
<b-col sm="6" lg="3">
|
||||||
@@ -34,7 +34,7 @@
|
|||||||
<h4 class="mb-0">9.823</h4>
|
<h4 class="mb-0">9.823</h4>
|
||||||
<p>Members online</p>
|
<p>Members online</p>
|
||||||
</b-card-body>
|
</b-card-body>
|
||||||
<card-line2-chart-example chartId="card-chart-02" class="chart-wrapper px-3" style="height:70px;" height="70"/>
|
<card-line2-chart-example chartId="card-chart-02" class="chart-wrapper px-3" style="height:70px;" :height="70"/>
|
||||||
</b-card>
|
</b-card>
|
||||||
</b-col>
|
</b-col>
|
||||||
<b-col sm="6" lg="3">
|
<b-col sm="6" lg="3">
|
||||||
@@ -568,3 +568,10 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
/* IE fix */
|
||||||
|
#card-chart-01, #card-chart-02 {
|
||||||
|
width: 100% !important;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import { Line } from 'vue-chartjs'
|
import { Line } from 'vue-chartjs'
|
||||||
import { CustomTooltips } from '@coreui/coreui-plugin-chartjs-custom-tooltips'
|
import { CustomTooltips } from '@coreui/coreui-plugin-chartjs-custom-tooltips'
|
||||||
// import { getStyle } from '@coreui/coreui/dist/js/coreui-utilities'
|
import { getStyle } from '@coreui/coreui/dist/js/coreui-utilities'
|
||||||
import getStyle from '../../utils/getStyle'
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import { Line } from 'vue-chartjs'
|
import { Line } from 'vue-chartjs'
|
||||||
import { CustomTooltips } from '@coreui/coreui-plugin-chartjs-custom-tooltips'
|
import { CustomTooltips } from '@coreui/coreui-plugin-chartjs-custom-tooltips'
|
||||||
// import { getStyle } from '@coreui/coreui/dist/js/coreui-utilities'
|
import { getStyle } from '@coreui/coreui/dist/js/coreui-utilities'
|
||||||
import getStyle from '../../utils/getStyle'
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
extends: Line,
|
extends: Line,
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import { Line } from 'vue-chartjs'
|
import { Line } from 'vue-chartjs'
|
||||||
import { CustomTooltips } from '@coreui/coreui-plugin-chartjs-custom-tooltips'
|
import { CustomTooltips } from '@coreui/coreui-plugin-chartjs-custom-tooltips'
|
||||||
// import { getStyle } from '@coreui/coreui/dist/js/coreui-utilities'
|
import { getStyle } from '@coreui/coreui/dist/js/coreui-utilities'
|
||||||
import getStyle from '../../utils/getStyle'
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
extends: Line,
|
extends: Line,
|
||||||
|
|||||||
@@ -1,9 +1,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import { Line } from 'vue-chartjs'
|
import { Line } from 'vue-chartjs'
|
||||||
// import { getStyle, hexToRgba } from '@coreui/coreui/dist/js/coreui-utilities'
|
import { getStyle, hexToRgba } from '@coreui/coreui/dist/js/coreui-utilities'
|
||||||
import { hexToRgba } from '@coreui/coreui/dist/js/coreui-utilities'
|
|
||||||
import { CustomTooltips } from '@coreui/coreui-plugin-chartjs-custom-tooltips'
|
import { CustomTooltips } from '@coreui/coreui-plugin-chartjs-custom-tooltips'
|
||||||
import getStyle from '../../utils/getStyle'
|
|
||||||
|
|
||||||
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)
|
||||||
|
|||||||
Reference in New Issue
Block a user