@ningboyz/types 1.1.157 → 1.1.159

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,6 +39,7 @@ 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";
42
43
 
43
44
  export {
44
45
  Const,
@@ -71,6 +72,7 @@ export {
71
72
  type IBaseResponse,
72
73
  type IConfig,
73
74
  type IPathConfig,
74
- type IResponse
75
+ type IResponse,
76
+ Ddecorators
75
77
  };
76
78
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ningboyz/types",
3
- "version": "1.1.157",
3
+ "version": "1.1.159",
4
4
  "private": false,
5
5
  "description": "宁波甬政类型库",
6
6
  "author": "nbyt-syq",
@@ -0,0 +1,9 @@
1
+ import _ from "lodash";
2
+
3
+ export function DCnfgDefaultValue(defaultValue: any) {
4
+ return function (target: any, propertyKey: string) {
5
+ if (_.isNil(target[propertyKey])) {
6
+ target[propertyKey] = defaultValue;
7
+ }
8
+ };
9
+ }
@@ -0,0 +1,5 @@
1
+ export function DCnfgName(name: string) {
2
+ return function (target: any, propertyKey: string) {
3
+ target[propertyKey + "_name"] = name;
4
+ };
5
+ }
@@ -0,0 +1,4 @@
1
+ import { DCnfgDefaultValue } from "./DCnfgDefaultValue";
2
+ import { DCnfgName } from "./DCnfgName";
3
+
4
+ export { DCnfgDefaultValue, DCnfgName };
@@ -25,6 +25,8 @@ export enum TBtnActive {
25
25
  export enum TButtonType {
26
26
  /** 空 */
27
27
  null = "",
28
+ /** 关闭 */
29
+ close = "close",
28
30
  /** 取消支付 */
29
31
  cancelPayment = "cancelPayment",
30
32
  /** 确认支付 */
package/tsconfig.json CHANGED
@@ -16,6 +16,7 @@
16
16
  "strict": true,
17
17
  "noUnusedLocals": true,
18
18
  "noUnusedParameters": true,
19
- "noFallthroughCasesInSwitch": true
19
+ "noFallthroughCasesInSwitch": true,
20
+ "experimentalDecorators": true
20
21
  }
21
22
  }