Merge branch 'master' of github.com:pipipi-pikachu/ppt_online_editor

This commit is contained in:
pipipi-pikachu 2021-11-13 15:29:11 +08:00
commit b5bfc76b43

View File

@ -129,7 +129,7 @@ export default defineComponent({
const themeColors = computed(() => {
let colors: string[] = []
if (props.themeColor.length === 10) colors = props.themeColor
if (props.themeColor.length >= 10) colors = props.themeColor
else if (props.themeColor.length === 1) colors = tinycolor(props.themeColor[0]).analogous(10).map(color => color.toHexString())
else {
const len = props.themeColor.length