feat: 设备关联与解除关联
- 支持配置交换机端口的下游关联设备 - 支持配置安防箱电路的下游关联设备 - 支持解除关联 - 删除设备时校验是否存在上/下游设备
This commit is contained in:
5
src/constants/injection.ts
Normal file
5
src/constants/injection.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import type { UseDeviceTreeReturn } from '@/composables';
|
||||
import { createInjectionKey } from '@/utils';
|
||||
import { type Ref } from 'vue';
|
||||
|
||||
export const SELECT_DEVICE_FN_INJECTION_KEY = createInjectionKey<Ref<UseDeviceTreeReturn['selectDevice'] | undefined>>('select-device-fn');
|
||||
Reference in New Issue
Block a user