ns-base-module 2.0.42 → 2.0.45

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.
@@ -7,7 +7,7 @@ export interface IclassFilter {
7
7
  statusTagCounts?: Record<string, number>;
8
8
  }
9
9
  declare const Index: ({ classFilter, ...props }: IclassFilter) => React.JSX.Element | null;
10
- export declare const getCountClassName: (count?: number) => "num-txt-dot" | "num-txt-dot num-txt-single";
11
- export declare const renderCountContent: (count?: number) => number | React.JSX.Element | null;
10
+ export declare const getCountClassName: (count?: number) => "num-txt-dot num-txt-single" | "num-txt-dot";
11
+ export declare const renderCountContent: (count?: number) => number | React.JSX.Element;
12
12
  export default Index;
13
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,yCAAyC,CAAC;AAMjD,MAAM,WAAW,YAAY;IAC3B,WAAW,EAAE,GAAG,EAAE,CAAC;IACnB,WAAW,CAAC,EAAE,CACZ,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACzB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,KAChC,IAAI,CAAC;IACV,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACpC,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC1C;AACD,QAAA,MAAM,KAAK,8BAA+B,YAAY,6BAsHrD,CAAC;AASF,eAAO,MAAM,iBAAiB,WAAY,MAAM,iDAK/C,CAAC;AAEF,eAAO,MAAM,kBAAkB,WAAY,MAAM,sCAoBhD,CAAC;AAEF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,yCAAyC,CAAC;AAMjD,MAAM,WAAW,YAAY;IAC3B,WAAW,EAAE,GAAG,EAAE,CAAC;IACnB,WAAW,CAAC,EAAE,CACZ,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACzB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,KAChC,IAAI,CAAC;IACV,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACpC,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC1C;AACD,QAAA,MAAM,KAAK,8BAA+B,YAAY,6BAsHrD,CAAC;AASF,eAAO,MAAM,iBAAiB,WAAY,MAAM,iDAG/C,CAAC;AAEF,eAAO,MAAM,kBAAkB,WAAY,MAAM,+BAoBhD,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -121,16 +121,16 @@ var getCountDisplay = function getCountDisplay(count) {
121
121
  if (typeof count == "number" || typeof count == "string") {
122
122
  return Number(count);
123
123
  }
124
- return null;
124
+ return 0;
125
125
  };
126
126
  export var getCountClassName = function getCountClassName(count) {
127
127
  var displayCount = getCountDisplay(count);
128
- if (!displayCount) return "num-txt-dot";
129
128
  return displayCount < 10 ? "num-txt-dot num-txt-single" : "num-txt-dot";
130
129
  };
131
130
  export var renderCountContent = function renderCountContent(count) {
132
131
  var displayCount = getCountDisplay(count);
133
- if (!displayCount) return null;
132
+ // if (!displayCount) return null;
133
+
134
134
  if (/^[0-9]$/.test(displayCount)) {
135
135
  return /*#__PURE__*/React.createElement(Icon, {
136
136
  type: "icon-a-".concat(displayCount),
@@ -6,7 +6,7 @@ interface InputCellType extends Omit<InputNumberProps, 'onBlur'> {
6
6
  roundSave: string;
7
7
  }
8
8
  declare const InputNumberWrapper: {
9
- (props: InputNumberProps<import("@rc-component/mini-decimal").ValueType> & {
9
+ (props: InputNumberProps<import("rc-input-number").ValueType> & {
10
10
  onComputeExp: ((e: string | number | null) => void) | undefined;
11
11
  }): React.JSX.Element;
12
12
  InputNumberBlur: React.FC<InputCellType>;
@@ -15,7 +15,7 @@ var IconFont = createFromIconfontCN({
15
15
  // iconfont项目名称:NextStone RAMA
16
16
  "//at.alicdn.com/t/c/font_4504651_66m3qjrc6st.js",
17
17
  // // 旧配置 ns- 开头
18
- "//at.alicdn.com/t/c/font_4504651_84pvmy1guox.js",
18
+ "//at.alicdn.com/t/c/font_4504651_eu7qk4pfpde.js",
19
19
  //// 新配置 icon- 开头 兼容菜单 组件弹框选择 使用这份
20
20
  "//at.alicdn.com/t/c/font_4981252_z8t9702eeo.js",
21
21
  // 新UI 配置 icon-ns- 开头
@@ -5,7 +5,7 @@ interface Icolumns {
5
5
  formTemplateCode: string | undefined;
6
6
  menuCode: string;
7
7
  editItem?: Record<string, any> | null;
8
- updateColumns: (columnsTree: Record<string, any>[]) => void;
8
+ updateColumns: (columnsTree: Record<string, any>[], item?: any) => void;
9
9
  handleBack?: () => void;
10
10
  handleSaveCallback?: () => void;
11
11
  newColumns?: any;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AA4BA,OAAO,KAA6C,MAAM,OAAO,CAAC;AAKlE,OAAO,sDAAsD,CAAC;AAM9D,UAAU,QAAQ;IAChB,OAAO,EAAE,GAAG,CAAC;IACb,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC;IACtC,aAAa,EAAE,CAAC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,KAAK,IAAI,CAAC;IAC5D,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC,UAAU,CAA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AC;CAClB;AAynCD,QAAA,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,MAAM,CAwD3B,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -915,7 +915,7 @@ var ColumnsToolbar = function ColumnsToolbar(_ref4) {
915
915
  var arr = [].concat(_toConsumableArray(templateUser), _toConsumableArray(template));
916
916
  arr.forEach(function (item) {
917
917
  if (item.value === e.target.value) {
918
- props.updateColumns(JSON.parse(item.define));
918
+ props.updateColumns(JSON.parse(item.define), item);
919
919
  setCurItem(item);
920
920
  return;
921
921
  }