Comparing version 2.7.0 to 2.7.1
{ | ||
"cSpell.words": [ | ||
"Checkboard", | ||
"Photoshop", | ||
"gmail", | ||
@@ -5,0 +6,0 @@ "kexiaokai", |
@@ -72,3 +72,8 @@ var path = require('path') | ||
] | ||
}, | ||
node: { | ||
// prevent webpack from injecting an global polyfill that includes Function(return this) and eval(this) | ||
global: false | ||
} | ||
} |
@@ -31,3 +31,8 @@ var path = require('path') | ||
] | ||
}, | ||
node: { | ||
// prevent webpack from injecting an global polyfill that includes Function(return this) and eval(this) | ||
global: false | ||
} | ||
} |
{ | ||
"name": "vue-color", | ||
"version": "2.7.0", | ||
"version": "2.7.1", | ||
"description": "Color of Vue Components", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -116,4 +116,24 @@ # vue-color | ||
In some cases you can give the component a predefined set of colors with the property `presetColors` (for `Sketch` only) or `palette` (for `Compact` and `Grayscale`), by simply passing it an array with the color values as strings in any css compatible format. | ||
```html | ||
<sketch-picker | ||
@input="updateValue" | ||
:value="colors" | ||
:presetColors="[ | ||
'#f00', '#00ff00', '#00ff0055', 'rgb(201, 76, 76)', 'rgba(0,0,255,1)', 'hsl(89, 43%, 51%)', 'hsla(89, 43%, 51%, 0.6)' | ||
]" | ||
></sketch-picker> | ||
<compact-picker | ||
@input="updateValue" | ||
:value="colors" | ||
:palette="[ | ||
'#f00', '#00ff00', '#00ff0055', 'rgb(201, 76, 76)', 'rgba(0,0,255,1)', 'hsl(89, 43%, 51%)', 'hsla(89, 43%, 51%, 0.6)' | ||
]" | ||
></compact-picker> | ||
``` | ||
## License | ||
vue-color is licensed under [The MIT License](LICENSE). |
@@ -17,3 +17,3 @@ import Compact from './components/Compact.vue' | ||
const VueColor = { | ||
version: '2.7.0', | ||
version: '2.7.1', | ||
Compact, | ||
@@ -20,0 +20,0 @@ Grayscale, |
@@ -12,2 +12,8 @@ import tinycolor from 'tinycolor2' | ||
color = tinycolor(data.hex) | ||
} else if (data && data.hsv) { | ||
color = tinycolor(data.hsv) | ||
} else if (data && data.rgba) { | ||
color = tinycolor(data.rgba) | ||
} else if (data && data.rgb) { | ||
color = tinycolor(data.rgb) | ||
} else { | ||
@@ -14,0 +20,0 @@ color = tinycolor(data) |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
1802787
139
1