UNPKG
vue-wcharts
Version:
latest (0.4.8)
0.4.8
0.4.7
0.4.6
0.4.5
0.4.4
0.4.3
0.4.2
0.4.1
0.4.0
0.3.2
0.3.1
0.3.0
0.2.2
0.2.1
0.2.0
0.1.0
0.0.34-beta
0.0.33-beta
0.0.32-beta
0.0.31-beta
0.0.30-beta
0.0.29-beta
0.0.28-beta
0.0.27-beta
0.0.26-beta
0.0.25-beta
0.0.24-beta
0.0.23-beta
0.0.22-beta
0.0.21-beta
0.0.20-beta
0.0.19-beta
0.0.17-beta
Vuejs charts
vue-wcharts.waavi.com
waavi/vue-wcharts
vue-wcharts
/
src
/
mixins
/
theme.js
15 lines
(13 loc)
•
297 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import
VueTypes
from
'vue-types'
import
{ colors, theme }
from
'../options'
export
default
{
props
: {
colors
:
VueTypes
.
array
.
def
(
() =>
colors), },
data
() {
const
{ name } =
this
.
$options
return
{
themeStyles
: theme[name] || {}, } }, }