소스 검색

edit z

ctt_dev
chutingting 1 년 전
부모
커밋
6069139fbc
2개의 변경된 파일6개의 추가작업 그리고 3개의 파일을 삭제
  1. +0
    -2
      src/types/auto-imports.d.ts
  2. +6
    -1
      src/views/createVideo/index.vue

+ 0
- 2
src/types/auto-imports.d.ts 파일 보기

@@ -2,7 +2,6 @@
export {} export {}
declare global { declare global {
const EffectScope: typeof import('vue')['EffectScope'] const EffectScope: typeof import('vue')['EffectScope']
const ElForm: typeof import('element-plus/es')['ElForm']
const ElMessage: typeof import('element-plus/es')['ElMessage'] const ElMessage: typeof import('element-plus/es')['ElMessage']
const ElMessageBox: typeof import('element-plus/es')['ElMessageBox'] const ElMessageBox: typeof import('element-plus/es')['ElMessageBox']
const asyncComputed: typeof import('@vueuse/core')['asyncComputed'] const asyncComputed: typeof import('@vueuse/core')['asyncComputed']
@@ -271,7 +270,6 @@ import { UnwrapRef } from 'vue'
declare module 'vue' { declare module 'vue' {
interface ComponentCustomProperties { interface ComponentCustomProperties {
readonly EffectScope: UnwrapRef<typeof import('vue')['EffectScope']> readonly EffectScope: UnwrapRef<typeof import('vue')['EffectScope']>
readonly ElForm: UnwrapRef<typeof import('element-plus/es')['ElForm']>
readonly ElMessage: UnwrapRef<typeof import('element-plus/es')['ElMessage']> readonly ElMessage: UnwrapRef<typeof import('element-plus/es')['ElMessage']>
readonly ElMessageBox: UnwrapRef<typeof import('element-plus/es')['ElMessageBox']> readonly ElMessageBox: UnwrapRef<typeof import('element-plus/es')['ElMessageBox']>
readonly asyncComputed: UnwrapRef<typeof import('@vueuse/core')['asyncComputed']> readonly asyncComputed: UnwrapRef<typeof import('@vueuse/core')['asyncComputed']>


+ 6
- 1
src/views/createVideo/index.vue 파일 보기

@@ -1236,7 +1236,12 @@ async function reGetpersonSCIList() {
const scImgActive = ref(null); const scImgActive = ref(null);
function selectScImg(img) { function selectScImg(img) {
scImgActive.value = img.id; scImgActive.value = img.id;
materialList.scList.push({ ...img, x: 0, y: 0, z: 0, w: 1, h: 1 });
let maxValue = 1
// 素材层级从2递增
if (materialList.scList.length > 0) {
maxValue = Math.max.apply(Math, materialList.scList.map(item => item.z));
}
materialList.scList.push({ ...img, x: 0, y: 0, z: maxValue + 1, w: 1, h: 1 });
} }
// 删除上传的背景或素材 // 删除上传的背景或素材
function delImg(id) { function delImg(id) {


불러오는 중...
취소
저장