@ningboyz/types 1.1.163 → 1.1.165

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.ts CHANGED
@@ -39,7 +39,6 @@ import * as TZbhd from "./src/zbhd";
39
39
  import * as TZbzd from "./src/zbzd";
40
40
  import * as TZfht from "./src/zfht";
41
41
  import * as TZfsq from "./src/zfsq";
42
- import * as Ddecorators from "./src/decorators";
43
42
 
44
43
  export {
45
44
  Const,
@@ -72,7 +71,6 @@ export {
72
71
  type IBaseResponse,
73
72
  type IConfig,
74
73
  type IPathConfig,
75
- type IResponse,
76
- Ddecorators
74
+ type IResponse
77
75
  };
78
76
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ningboyz/types",
3
- "version": "1.1.163",
3
+ "version": "1.1.165",
4
4
  "private": false,
5
5
  "description": "宁波甬政类型库",
6
6
  "author": "nbyt-syq",
@@ -1,6 +1,5 @@
1
1
  import _ from "lodash";
2
- import { TElem, TYzpz } from "../..";
3
- import { IYzpzTypeResponseConf } from "./IYzpzTypeResponseConf";
2
+ import { TElem } from "../..";
4
3
 
5
4
  export interface IYzpzTypeResponse {
6
5
  whoBuild: number;
@@ -45,7 +44,6 @@ export interface IYzpzTypeResponse {
45
44
  inCommon: number;
46
45
  itemSize: number;
47
46
  typePara: string;
48
- typeParaConf: IYzpzTypeResponseConf;
49
47
  listElem: TElem.IElemElemResponse[];
50
48
  }
51
49
 
@@ -92,18 +90,5 @@ export class TYzpzTypeResponse implements IYzpzTypeResponse {
92
90
  inCommon: number = 0;
93
91
  itemSize: number = 0;
94
92
  typePara: string = "";
95
- typeParaConf: TYzpz.IYzpzTypeResponseConf = new TYzpz.TYzpzTypeResponseConf();
96
93
  listElem: TElem.IElemElemResponse[] = [];
97
-
98
- static parseJson(typePara: string) {
99
- const defaultTypePara = new TYzpz.TYzpzTypeResponseConf();
100
- if (_.isEmpty(typePara)) {
101
- return defaultTypePara;
102
- }
103
- try {
104
- const obj = JSON.parse(typePara) as TYzpz.TYzpzTypeResponseConf;
105
- return _.merge(defaultTypePara, obj);
106
- } catch (e) {}
107
- return defaultTypePara;
108
- }
109
94
  }
package/src/yzpz/index.ts CHANGED
@@ -4,7 +4,6 @@ import { IYzpzK0kmResponse, TYzpzK0kmResponse } from "./IYzpzK0kmResponse";
4
4
  import { IYzpzK8kmResponse, TYzpzK8kmResponse } from "./IYzpzK8kmResponse";
5
5
  import { IYzpzKbkmResponse, TYzpzKbkmResponse } from "./IYzpzKbkmResponse";
6
6
  import { IYzpzTypeResponse, TYzpzTypeResponse } from "./IYzpzTypeResponse";
7
- import { IYzpzTypeResponseConf, TYzpzTypeResponseConf } from "./IYzpzTypeResponseConf";
8
7
 
9
8
  export {
10
9
  TYzpzCnfgResponse,
@@ -13,13 +12,11 @@ export {
13
12
  TYzpzK8kmResponse,
14
13
  TYzpzKbkmResponse,
15
14
  TYzpzTypeResponse,
16
- TYzpzTypeResponseConf,
17
15
  type IYzpzCnfgResponse,
18
16
  type IYzpzItemResponse,
19
17
  type IYzpzK0kmResponse,
20
18
  type IYzpzK8kmResponse,
21
19
  type IYzpzKbkmResponse,
22
- type IYzpzTypeResponse,
23
- type IYzpzTypeResponseConf
20
+ type IYzpzTypeResponse
24
21
  };
25
22
 
@@ -1,14 +0,0 @@
1
- import _ from "lodash";
2
- import { ICnfg } from "./ICnfg";
3
-
4
- export function DCnfg(cnfg: ICnfg) {
5
- return function (target: any, _propertyKey: string) {
6
- const listCnfg = Reflect.get(target, "listCnfg") as ICnfg[];
7
- if (_.isNil(listCnfg)) {
8
- Reflect.set(target, "listCnfg", [cnfg]);
9
- } else {
10
- listCnfg.push(cnfg);
11
- Reflect.set(target, "listCnfg", listCnfg);
12
- }
13
- };
14
- }
@@ -1,24 +0,0 @@
1
- export enum DFormType {
2
- select = "select",
3
- input = "input"
4
- }
5
-
6
- export interface ICnfgDataSource {
7
- id: number;
8
- label: string;
9
- pid?: number;
10
- children?: ICnfgDataSource[];
11
- }
12
-
13
- export interface ICnfg {
14
- //配置名称
15
- cnfgName: string;
16
- //配置字段
17
- cnfgField: string;
18
- //配置字段类型
19
- formType: DFormType;
20
- //是否多选, 默认单选
21
- multiple?: boolean;
22
- //本地数据源
23
- dataSource: ICnfgDataSource[];
24
- }
@@ -1,3 +0,0 @@
1
- import { DCnfg } from "./DCnfg";
2
- import { ICnfg, DFormType, ICnfgDataSource } from "./ICnfg";
3
- export { DCnfg, type ICnfg, DFormType, type ICnfgDataSource };
@@ -1,26 +0,0 @@
1
- import _ from "lodash";
2
- import { Ddecorators } from "../..";
3
- import { DFormType } from "../decorators";
4
-
5
- export interface IYzpzTypeResponseConf {
6
- usesManualMode: number;
7
- }
8
-
9
- export class TYzpzTypeResponseConf implements IYzpzTypeResponseConf {
10
- constructor(value?: TYzpzTypeResponseConf) {
11
- if (!_.isNil(value)) {
12
- Object.assign(this, value);
13
- }
14
- }
15
-
16
- @Ddecorators.DCnfg({
17
- cnfgName: "开启手动模式",
18
- cnfgField: "usesManualMode",
19
- formType: DFormType.select,
20
- dataSource: [
21
- { id: 0, label: "关闭" },
22
- { id: 1, label: "开启" }
23
- ]
24
- })
25
- usesManualMode: number = 0;
26
- }