ns-base-module 1.1.64 → 1.1.65

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.
@@ -31,15 +31,39 @@ var CopyCol = function CopyCol(_ref) {
31
31
  message.warn("该类型不支持复制");
32
32
  return;
33
33
  }
34
- navigator.clipboard.writeText(str).then(function () {
35
- message.info("复制成功");
36
- }).catch(function (err) {
37
- message.error("复制失败");
38
- });
34
+ if (navigator.clipboard) {
35
+ navigator.clipboard.writeText(str).then(function () {
36
+ message.info("复制成功");
37
+ }).catch(function (err) {
38
+ message.error("复制失败");
39
+ });
40
+ } else {
41
+ fallbackCopyText(str);
42
+ }
39
43
  } catch (error) {
40
44
  message.error("复制失败");
41
45
  }
42
46
  };
47
+ var fallbackCopyText = function fallbackCopyText(text) {
48
+ var textArea = document.createElement("textarea");
49
+ textArea.value = text;
50
+ // 隐藏文本域(避免影响页面)
51
+ textArea.style.position = "fixed";
52
+ textArea.style.top = "-999px";
53
+ textArea.style.left = "-999px";
54
+ document.body.appendChild(textArea);
55
+ textArea.select(); // 选中内容
56
+ try {
57
+ var success = document.execCommand("copy");
58
+ if (success) {
59
+ message.info("复制成功");
60
+ }
61
+ } catch (err) {
62
+ message.error("复制失败");
63
+ } finally {
64
+ document.body.removeChild(textArea); // 清理 DOM
65
+ }
66
+ };
43
67
  return /*#__PURE__*/React.createElement("span", {
44
68
  className: "copy-icon-wrap",
45
69
  onClick: function onClick() {
@@ -136,7 +136,9 @@ var Filter = function Filter(props) {
136
136
  pageNum: page.current.pageNum,
137
137
  pageSize: page.current.pageSize,
138
138
  distinctField: [dataIndex],
139
- variablePara: variablePara
139
+ variablePara: variablePara,
140
+ orderKey: orderKey,
141
+ orderType: orderType
140
142
  };
141
143
  _context.next = 11;
142
144
  return request === null || request === void 0 ? void 0 : request("/querier/menu", {
@@ -16,7 +16,7 @@ var IconFont = createFromIconfontCN({
16
16
  // // 旧配置 ns- 开头
17
17
  "//at.alicdn.com/t/c/font_4504651_fhxc7b4wsx.js",
18
18
  //// 新配置 icon- 开头 兼容菜单 组件弹框选择 使用这份
19
- "//at.alicdn.com/t/c/font_4981252_17vhq5lxfwn.js" // 新UI 配置 icons- 开头
19
+ "//at.alicdn.com/t/c/font_4981252_ohqtnf5u8ph.js" // 新UI 配置 icon-ns- 开头
20
20
  ]
21
21
  });
22
22
  export default IconFont;