fix shadow and opacity

このコミットが含まれているのは:
Henry Jameson 2020-01-13 02:08:39 +02:00
コミット 29a0b4a593
3個のファイルの変更4行の追加3行の削除

ファイルの表示

@ -1,6 +1,7 @@
import ColorInput from '../color_input/color_input.vue'
import OpacityInput from '../opacity_input/opacity_input.vue'
import { hex2rgb, getCssShadow } from '../../services/color_convert/color_convert.js'
import { getCssShadow } from '../../services/style_setter/style_setter.js'
import { hex2rgb } from '../../services/color_convert/color_convert.js'
export default {
// 'Value' and 'Fallback' can be undefined, but if they are

ファイルの表示

@ -117,7 +117,7 @@ export default {
currentOpacity () {
return Object.keys(DEFAULT_OPACITY)
.map(key => [key, this[key + 'OpacityLocal']])
.reduce((acc, [key, val]) => ({ ...acc, [ key + 'OpacityLocal' ]: val }), {})
.reduce((acc, [key, val]) => ({ ...acc, [ key ]: val }), {})
},
currentRadii () {
return {

ファイルの表示

@ -76,7 +76,7 @@ export const applyTheme = (input, commit) => {
commit('setOption', { name: 'colors', value: theme.colors })
}
const getCssShadow = (input, usesDropShadow) => {
export const getCssShadow = (input, usesDropShadow) => {
if (input.length === 0) {
return 'none'
}