ns-base-module 1.0.28 → 1.0.30

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.
@@ -0,0 +1,3 @@
1
+ declare const _default: (res: any) => void;
2
+ export default _default;
3
+ //# sourceMappingURL=errorMsg.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errorMsg.d.ts","sourceRoot":"","sources":["errorMsg.ts"],"names":[],"mappings":";AAGA,wBAoCE"}
@@ -0,0 +1,30 @@
1
+ import { message, Modal } from "antd";
2
+ import React from "react";
3
+ export default (function (res) {
4
+ var _msg = (res === null || res === void 0 ? void 0 : res.msg) || "系统繁忙,请稍后再试";
5
+ if (res !== null && res !== void 0 && res.errorCode && res !== null && res !== void 0 && res.error && res !== null && res !== void 0 && res.msg) {
6
+ var split = res === null || res === void 0 ? void 0 : res.msg.split(res === null || res === void 0 ? void 0 : res.errorCode);
7
+ if (split.length > 1) _msg = /*#__PURE__*/React.createElement("span", null, split[0], /*#__PURE__*/React.createElement("a", {
8
+ onClick: function onClick() {
9
+ Modal.info({
10
+ title: "详细信息",
11
+ width: 900,
12
+ className: "modal-error-msg",
13
+ zIndex: 1040,
14
+ content: /*#__PURE__*/React.createElement("div", {
15
+ dangerouslySetInnerHTML: {
16
+ __html: res.error
17
+ },
18
+ style: {
19
+ maxHeight: "60vh",
20
+ overflow: "auto"
21
+ }
22
+ }),
23
+ onOk: function onOk() {},
24
+ closable: true
25
+ });
26
+ }
27
+ }, res === null || res === void 0 ? void 0 : res.errorCode), split[1]);
28
+ }
29
+ message.error(_msg);
30
+ });
@@ -71,6 +71,7 @@ export declare const defaultLang: {
71
71
  "button.refresh": string;
72
72
  "button.print": string;
73
73
  "button.rest.filter": string;
74
+ "button.rest.filterTip": string;
74
75
  "button.moreform": string;
75
76
  "condition.startWith": string;
76
77
  "condition.isNull": string;
@@ -1 +1 @@
1
- {"version":3,"file":"language.d.ts","sourceRoot":"","sources":["language.ts"],"names":[],"mapp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AAM,QAAQ,+BAAgC,aAAa,WAMjE,CAAC"}
@@ -71,6 +71,7 @@ export var defaultLang = {
71
71
  "button.refresh": "刷新",
72
72
  "button.print": "打印",
73
73
  "button.rest.filter": "清空筛选",
74
+ "button.rest.filterTip": "只能筛选当前页",
74
75
  "button.moreform": "展开隐藏的字段",
75
76
  "condition.startWith": "开头是",
76
77
  "condition.isNull": "空",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ns-base-module",
3
- "version": "1.0.28",
3
+ "version": "1.0.30",
4
4
  "description": "ns通用组件库",
5
5
  "license": "MIT",
6
6
  "module": "./src/index.js",
@@ -202,7 +202,8 @@
202
202
  .dnd_quota_right_payground {
203
203
  &.empty {
204
204
  &::after {
205
- content: "拖拽分类型字段维度";
205
+ content: "\62d6\62fd\5206\7c7b\578b\5b57\6bb5\7ef4\5ea6";
206
+ // content: "拖拽分类型字段维度";
206
207
  }
207
208
  }
208
209
  }
@@ -215,7 +216,8 @@
215
216
  .dnd_quota_right_payground {
216
217
  &.empty {
217
218
  &::after {
218
- content: "拖拽分类型字段列";
219
+ content: "\62d6\62fd\5206\7c7b\578b\5b57\6bb5\5217";
220
+ // content: "拖拽分类型字段列";
219
221
  }
220
222
  }
221
223
  }
@@ -228,7 +230,8 @@
228
230
  .dnd_quota_right_payground {
229
231
  &.empty {
230
232
  &::after {
231
- content: "拖拽数量型字段指标";
233
+ content: "\62d6\62fd\6570\91cf\578b\5b57\6bb5\6307\6807";
234
+ // content: "拖拽数量型字段指标";
232
235
  }
233
236
  }
234
237
  }
@@ -260,7 +263,8 @@
260
263
  left: 50%;
261
264
  white-space: nowrap;
262
265
  transform: translate(-50%, -50%);
263
- content: "拖到此处";
266
+ content: "\62d6\5230\6b64\5904";
267
+ // content: "拖到此处";
264
268
  }
265
269
  }
266
270
  }