端口枚举改为数字

This commit is contained in:
Yuan 2024-01-04 18:02:38 +08:00
parent f02474d72d
commit 78453c82ab
3 changed files with 9 additions and 9 deletions

View File

@ -1,7 +1,7 @@
export declare enum DevicePort {
A = "A",
B = "B",
C = "C"
A = 0,
B = 1,
C = 2
}
export declare enum DeviceType {
Section = 0,

View File

@ -1,8 +1,8 @@
var DevicePort;
(function (DevicePort) {
DevicePort["A"] = "A";
DevicePort["B"] = "B";
DevicePort["C"] = "C";
DevicePort[DevicePort["A"] = 0] = "A";
DevicePort[DevicePort["B"] = 1] = "B";
DevicePort[DevicePort["C"] = 2] = "C";
})(DevicePort || (DevicePort = {}));
var DeviceType;
(function (DeviceType) {

View File

@ -1,7 +1,7 @@
export enum DevicePort {
A = 'A',
B = 'B',
C = 'C',
A = 0,
B = 1,
C = 2,
}
export enum DeviceType {