bill 7 月之前
父節點
當前提交
95b3946027
共有 2 個文件被更改,包括 11 次插入1 次删除
  1. 1 1
      src/sdk/sdk.ts
  2. 10 0
      src/views/tagging/style-type-select.vue

+ 1 - 1
src/sdk/sdk.ts

@@ -95,7 +95,7 @@ export interface CameraComeToProps {
   dur?: number;
   modelId?: FuseModel["id"];
   distance?: 1 | 2 | 3;
-  maxDis:number
+  maxDis?:number
   isFlyToTag?: boolean
 }
 

+ 10 - 0
src/views/tagging/style-type-select.vue

@@ -88,6 +88,16 @@ const types = computed(() => {
 const items = computed(() => getItems(types.value));
 const current = computed(() => getCurrentItem(props.value));
 
+if (props.count && props.all) {
+  watchEffect(() => {
+    if (
+      current.value.length === 0 ||
+      current.value[current.value.length - 1].count === 0
+    ) {
+      emit("update:value", allType.id);
+    }
+  });
+}
 const handleClick = (info: any) => {
   emit("update:value", info.key);
 };