szld-libs 0.2.86 → 0.2.88

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.
@@ -321,7 +321,7 @@ function useDynamicForm(props) {
321
321
  ] : [],
322
322
  ...((_c2 = itemWithJson.json) == null ? void 0 : _c2.regexp) ? [
323
323
  {
324
- pattern: new RegExp(itemWithJson.json.regexp),
324
+ pattern: new RegExp(itemWithJson.json.regexp.replace(/^\/|\/$/g, "")),
325
325
  message: ((_d2 = itemWithJson.json) == null ? void 0 : _d2["regexp-message"]) || `${itemWithJson.attrname}格式不正确`
326
326
  }
327
327
  ] : []
@@ -361,7 +361,7 @@ function useDynamicForm(props) {
361
361
  ] : [],
362
362
  ...((_g = itemWithJson.json) == null ? void 0 : _g.regexp) ? [
363
363
  {
364
- pattern: new RegExp(itemWithJson.json.regexp),
364
+ pattern: new RegExp(itemWithJson.json.regexp.replace(/^\/|\/$/g, "")),
365
365
  message: ((_h = itemWithJson.json) == null ? void 0 : _h["regexp-message"]) || `${itemWithJson.attrname}格式不正确`
366
366
  }
367
367
  ] : []
@@ -395,7 +395,7 @@ function useDynamicForm(props) {
395
395
  ] : [],
396
396
  ...((_j = itemWithJson.json) == null ? void 0 : _j.regexp) ? [
397
397
  {
398
- pattern: new RegExp(itemWithJson.json.regexp),
398
+ pattern: new RegExp(itemWithJson.json.regexp.replace(/^\/|\/$/g, "")),
399
399
  message: ((_k = itemWithJson.json) == null ? void 0 : _k["regexp-message"]) || `${itemWithJson.attrname}格式不正确`
400
400
  }
401
401
  ] : []
package/es/main.d.ts CHANGED
@@ -19,10 +19,11 @@ import AES from './utils/aes';
19
19
  import HmacSHA512 from './utils/hmacSHA512';
20
20
  import HmacSM3 from './utils/hmacSM3';
21
21
  import * as method from './utils/method';
22
+ import * as szxkFunc from './utils/szxkFunc';
22
23
  import useCaptcha from './hooks/useCaptcha';
23
24
  import useChangePwd from './hooks/useChangePwd';
24
25
  import useConfig from './hooks/useConfig';
25
26
  import useRemember from './hooks/useRemember';
26
27
  import useRowSelection from './hooks/useRowSelection';
27
28
  import useDetailRender from './hooks/useDetailRender';
28
- export { AES, AuthButton, BackHeader, compressionImage, CoralButton, CreateForm, EditTable, HmacSHA512, HmacSM3, LoopSlide, SearchTable, showWorkFlow, UploadFile, DynamicForm, useCaptcha, useChangePwd, useConfig, useRemember, useRowSelection, WorkFlowNode, CustomPagination, useDetailRender, utils, download, fileType, FormRules, verfyCode, method, };
29
+ export { AES, AuthButton, BackHeader, compressionImage, CoralButton, CreateForm, EditTable, HmacSHA512, HmacSM3, LoopSlide, SearchTable, showWorkFlow, UploadFile, DynamicForm, useCaptcha, useChangePwd, useConfig, useRemember, useRowSelection, WorkFlowNode, CustomPagination, useDetailRender, utils, download, fileType, FormRules, verfyCode, method, szxkFunc, };
package/es/main.js CHANGED
@@ -19,6 +19,7 @@ import { default as default14 } from "./utils/aes";
19
19
  import { default as default15 } from "./utils/hmacSHA512";
20
20
  import { default as default16 } from "./utils/hmacSM3";
21
21
  import * as method from "./utils/method";
22
+ import * as szxkFunc from "./utils/szxkFunc";
22
23
  import { default as default17 } from "./hooks/useCaptcha";
23
24
  import { default as default18 } from "./hooks/useChangePwd";
24
25
  import { default as default19 } from "./hooks/useConfig";
@@ -46,6 +47,7 @@ export {
46
47
  filetype as fileType,
47
48
  method,
48
49
  default10 as showWorkFlow,
50
+ szxkFunc,
49
51
  default17 as useCaptcha,
50
52
  default18 as useChangePwd,
51
53
  default19 as useConfig,
@@ -322,7 +322,7 @@ function useDynamicForm(props) {
322
322
  ] : [],
323
323
  ...((_c2 = itemWithJson.json) == null ? void 0 : _c2.regexp) ? [
324
324
  {
325
- pattern: new RegExp(itemWithJson.json.regexp),
325
+ pattern: new RegExp(itemWithJson.json.regexp.replace(/^\/|\/$/g, "")),
326
326
  message: ((_d2 = itemWithJson.json) == null ? void 0 : _d2["regexp-message"]) || `${itemWithJson.attrname}格式不正确`
327
327
  }
328
328
  ] : []
@@ -362,7 +362,7 @@ function useDynamicForm(props) {
362
362
  ] : [],
363
363
  ...((_g = itemWithJson.json) == null ? void 0 : _g.regexp) ? [
364
364
  {
365
- pattern: new RegExp(itemWithJson.json.regexp),
365
+ pattern: new RegExp(itemWithJson.json.regexp.replace(/^\/|\/$/g, "")),
366
366
  message: ((_h = itemWithJson.json) == null ? void 0 : _h["regexp-message"]) || `${itemWithJson.attrname}格式不正确`
367
367
  }
368
368
  ] : []
@@ -396,7 +396,7 @@ function useDynamicForm(props) {
396
396
  ] : [],
397
397
  ...((_j = itemWithJson.json) == null ? void 0 : _j.regexp) ? [
398
398
  {
399
- pattern: new RegExp(itemWithJson.json.regexp),
399
+ pattern: new RegExp(itemWithJson.json.regexp.replace(/^\/|\/$/g, "")),
400
400
  message: ((_k = itemWithJson.json) == null ? void 0 : _k["regexp-message"]) || `${itemWithJson.attrname}格式不正确`
401
401
  }
402
402
  ] : []
package/lib/main.d.ts CHANGED
@@ -19,10 +19,11 @@ import AES from './utils/aes';
19
19
  import HmacSHA512 from './utils/hmacSHA512';
20
20
  import HmacSM3 from './utils/hmacSM3';
21
21
  import * as method from './utils/method';
22
+ import * as szxkFunc from './utils/szxkFunc';
22
23
  import useCaptcha from './hooks/useCaptcha';
23
24
  import useChangePwd from './hooks/useChangePwd';
24
25
  import useConfig from './hooks/useConfig';
25
26
  import useRemember from './hooks/useRemember';
26
27
  import useRowSelection from './hooks/useRowSelection';
27
28
  import useDetailRender from './hooks/useDetailRender';
28
- export { AES, AuthButton, BackHeader, compressionImage, CoralButton, CreateForm, EditTable, HmacSHA512, HmacSM3, LoopSlide, SearchTable, showWorkFlow, UploadFile, DynamicForm, useCaptcha, useChangePwd, useConfig, useRemember, useRowSelection, WorkFlowNode, CustomPagination, useDetailRender, utils, download, fileType, FormRules, verfyCode, method, };
29
+ export { AES, AuthButton, BackHeader, compressionImage, CoralButton, CreateForm, EditTable, HmacSHA512, HmacSM3, LoopSlide, SearchTable, showWorkFlow, UploadFile, DynamicForm, useCaptcha, useChangePwd, useConfig, useRemember, useRowSelection, WorkFlowNode, CustomPagination, useDetailRender, utils, download, fileType, FormRules, verfyCode, method, szxkFunc, };
package/lib/main.js CHANGED
@@ -21,6 +21,7 @@ const aes = require("./utils/aes");
21
21
  const hmacSHA512 = require("./utils/hmacSHA512");
22
22
  const hmacSM3 = require("./utils/hmacSM3");
23
23
  const method = require("./utils/method");
24
+ const szxkFunc = require("./utils/szxkFunc");
24
25
  const useCaptcha = require("./hooks/useCaptcha");
25
26
  const useChangePwd = require("./hooks/useChangePwd");
26
27
  const useConfig = require("./hooks/useConfig");
@@ -49,6 +50,7 @@ const formRules__namespace = /* @__PURE__ */ _interopNamespaceDefault(formRules)
49
50
  const index__namespace = /* @__PURE__ */ _interopNamespaceDefault(index);
50
51
  const verifyCode__namespace = /* @__PURE__ */ _interopNamespaceDefault(verifyCode);
51
52
  const method__namespace = /* @__PURE__ */ _interopNamespaceDefault(method);
53
+ const szxkFunc__namespace = /* @__PURE__ */ _interopNamespaceDefault(szxkFunc);
52
54
  exports.BackHeader = BackHeader;
53
55
  exports.CreateForm = CreateForm;
54
56
  exports.SearchTable = SearchTable;
@@ -74,6 +76,7 @@ exports.AES = aes;
74
76
  exports.HmacSHA512 = hmacSHA512;
75
77
  exports.HmacSM3 = hmacSM3;
76
78
  exports.method = method__namespace;
79
+ exports.szxkFunc = szxkFunc__namespace;
77
80
  exports.useCaptcha = useCaptcha;
78
81
  exports.useChangePwd = useChangePwd;
79
82
  exports.useConfig = useConfig;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "szld-libs",
3
3
  "private": false,
4
- "version": "0.2.86",
4
+ "version": "0.2.88",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",