注释渐变色功能和作品广场

This commit is contained in:
X1627315083
2024-05-16 09:41:16 +08:00
parent 4d86e782e6
commit 051b9e4f38
24 changed files with 1561 additions and 262 deletions

View File

@@ -73,6 +73,7 @@ import { Https } from "@/tool/https";
import {useStore} from 'vuex'
import { openGuide,driverObj__ } from "@/tool/guide";
import GO from "@/tool/GO";
import {setGradual} from '@/tool/util'
import { useI18n } from 'vue-i18n'
// import { position } from 'html2canvas/dist/types/css/property-descriptors/position'
export default defineComponent({
@@ -96,7 +97,7 @@ export default defineComponent({
let position:any = computed(()=>{
return store.state.Workspace.workspacePosition
})
let showCollectionModal=ref(false)
let showCollectionModal:any=ref(false)
let collectionStep=ref(1)
provide('driver__',driver__)
let isShowMark = ref(false)
@@ -150,6 +151,12 @@ export default defineComponent({
if(this.collectionStep == 3){
if(colorBoards.length >= 1){
colorBoards.forEach((colorItem:any) => {
if(colorItem.gradient){
colorItem.gradient.colorImg = setGradual(colorItem.gradient,320,700)
}
});
this.store.commit('setColorboardList',colorBoards)
}else{
message.info(this.$t('collectionModal.jsContent3'))
return
@@ -312,7 +319,6 @@ export default defineComponent({
.catch((res) => {
this.isShowMark = false
});
}
}