🔧 更新配置,修正类型

This commit is contained in:
BTMuli
2025-12-19 22:05:44 +08:00
parent e3eb56d618
commit c3920fd43f
7 changed files with 1062 additions and 76 deletions

View File

@@ -51,7 +51,7 @@ type XmlTextParse = { name: string; icon?: string; text: string };
const props = defineProps<ToArcBirthProps>();
const visible = defineModel<boolean>();
const showText = ref<boolean>(false);
const buffer = shallowRef<Uint8Array | null>(null);
const buffer = shallowRef<ArrayBuffer | null>(null);
const textParse = shallowRef<Array<XmlTextParse>>([]);
onMounted(() => clearData());

View File

@@ -57,7 +57,7 @@ const appStore = useAppStore();
const props = defineProps<TpVodProps>();
const coverUrl = ref<string>();
const vodAspectRatio = ref<number>(16 / 9);
const coverBuffer = shallowRef<Uint8Array | null>(null);
const coverBuffer = shallowRef<ArrayBuffer | null>(null);
const container = shallowRef<Artplayer | null>(null);
console.log("tpVod", props.data.insert.vod.id, toRaw(props.data).insert.vod);

View File

@@ -80,7 +80,7 @@ const format = defineModel<string>("format", { default: "png" });
const bgMode = ref<number>(0); // 0: transparent, 1: black, 2: white
const isOriSize = ref<boolean>(false);
const buffer = shallowRef<Uint8Array | null>(null);
const buffer = shallowRef<ArrayBuffer | null>(null);
const oriLink = computed<string>(() => miniImgUrl());
const showCopy = computed<boolean>(() => {
// 只能显示 png/jpg/jpeg/webp 格式的复制按钮