nsc-react-component 1.0.20 → 1.0.24

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.
Files changed (63) hide show
  1. package/lib/Interface.d.ts +4 -4
  2. package/lib/button/index.d.ts +27 -27
  3. package/lib/cascader/index.d.ts +27 -27
  4. package/lib/cascader/index.js +1 -2
  5. package/lib/checkbox/CheckboxGroup.d.ts +22 -22
  6. package/lib/checkbox/index.d.ts +8 -8
  7. package/lib/common/BodyRow/index.d.ts +26 -26
  8. package/lib/common/Icon.d.ts +14 -14
  9. package/lib/common/IconFont.d.ts +4 -4
  10. package/lib/common/NoAuthority.d.ts +4 -4
  11. package/lib/common/NoData.d.ts +4 -4
  12. package/lib/common/NoMessage.d.ts +4 -4
  13. package/lib/common/NoNetWork.d.ts +4 -4
  14. package/lib/common/Page404.d.ts +4 -4
  15. package/lib/common/PageRequest.d.ts +45 -45
  16. package/lib/common/TreePanel.d.ts +74 -74
  17. package/lib/common/withZhLocale.d.ts +3 -3
  18. package/lib/config.d.ts +20 -20
  19. package/lib/datepick/Rangepicker.d.ts +4 -4
  20. package/lib/datepick/index.d.ts +3 -3
  21. package/lib/form/Form.d.ts +47 -47
  22. package/lib/form/filed/Cascader.d.ts +6 -6
  23. package/lib/form/filed/Checkbox.d.ts +6 -6
  24. package/lib/form/filed/DatePicker.d.ts +6 -6
  25. package/lib/form/filed/FormItem.d.ts +11 -11
  26. package/lib/form/filed/Input.d.ts +6 -6
  27. package/lib/form/filed/InputEamil.d.ts +6 -6
  28. package/lib/form/filed/InputNumber.d.ts +6 -6
  29. package/lib/form/filed/InputPassword.d.ts +6 -6
  30. package/lib/form/filed/Item.d.ts +21 -21
  31. package/lib/form/filed/Radio.d.ts +6 -6
  32. package/lib/form/filed/RangerPicker.d.ts +6 -6
  33. package/lib/form/filed/Rate.d.ts +6 -6
  34. package/lib/form/filed/Select.d.ts +6 -6
  35. package/lib/form/filed/Slider.d.ts +6 -6
  36. package/lib/form/filed/Switch.d.ts +6 -6
  37. package/lib/form/filed/TagSelect.d.ts +6 -6
  38. package/lib/form/filed/TextArea.d.ts +6 -6
  39. package/lib/form/filed/Upload.d.ts +6 -6
  40. package/lib/form/index.d.ts +41 -41
  41. package/lib/index.d.ts +26 -26
  42. package/lib/input/Email.d.ts +16 -16
  43. package/lib/input/Number.d.ts +13 -13
  44. package/lib/input/Password.d.ts +16 -16
  45. package/lib/input/Search.d.ts +16 -16
  46. package/lib/input/TextArea.d.ts +16 -16
  47. package/lib/input/index.d.ts +33 -29
  48. package/lib/input/index.js +72 -16
  49. package/lib/menu/index.d.ts +28 -28
  50. package/lib/radio/RadioGroup.d.ts +25 -25
  51. package/lib/radio/index.d.ts +11 -11
  52. package/lib/select/index.d.ts +29 -29
  53. package/lib/table/index.d.ts +87 -87
  54. package/lib/tabs/Tabpane.d.ts +13 -13
  55. package/lib/tabs/index.d.ts +18 -18
  56. package/lib/tagSelect/TagSelect.d.ts +51 -51
  57. package/lib/tagSelect/index.d.ts +23 -23
  58. package/lib/tree/TreeSearch.d.ts +42 -42
  59. package/lib/tree/index.d.ts +62 -62
  60. package/lib/treeUtils.d.ts +70 -70
  61. package/lib/utils.d.ts +12 -12
  62. package/package.json +2 -2
  63. package/.vscode/launch.json +0 -15
@@ -1,70 +1,70 @@
1
- /**
2
- * 获取面包屑映射
3
- * {
4
- * key1:{paths:['key1'],title:'系统管理'}
5
- * key2:{paths:['key1','key2'],title:'功能配置'}
6
- * key3:{paths:['key1','key2','key3'],title:'菜单管理',path:'/platform/menu'}
7
- * }
8
- * @param {object[]} menuDatas 树形结构数据
9
- * @param {Object} fieldOption 关键字段名称,缺省{ keyField: 'key', titleField: 'title',pathsField:'paths' }
10
- * @returns {Map}
11
- */
12
- export declare function getBreadcrumbMap(menuDatas: any, fieldOption?: {
13
- keyField: string;
14
- titleField: string;
15
- pathsField: string;
16
- }): {};
17
- /**
18
- * 判断菜单Map对象中符合条件的对象
19
- * key1:{paths:['key1'],title:'系统管理'}
20
- * key2:{paths:['key1','key2'],title:'功能配置'}
21
- * key3:{paths:['key1','key2','key3'],title:'菜单管理',path:'/platform/menu'}
22
- * 搜索《管理》后返回
23
- * {key1:'key1',key2:'key2',key3:'key3'}
24
- * @param {Map<String,Object>} breadcrumbMap 菜单面包屑
25
- * @param { String } searchText 搜索内容
26
- * @param {Object} fieldOption 关键字段名称,缺省{ keyField: 'key', titleField: 'title',pathsField:'paths' }
27
- * @returns {Map<String,String>}
28
- */
29
- export declare function getEffectiveNodeKeys(breadcrumbMap: any, searchText: any, fieldOption?: {
30
- keyField: string;
31
- titleField: string;
32
- pathsField: string;
33
- }): {};
34
- /**
35
- * 获取过滤后显示的菜单数据
36
- * @param {Object[]} menusDatas 树形结构数据
37
- * @param {String[]} keys 有效的菜单节点
38
- * @param {String} searchText 搜索内容,非必填
39
- * @param {Object} fieldOption 关键字段名称,缺省{ keyField: 'key', titleField: 'title',pathsField:'paths' }
40
- * @param {String} color 搜索内容重点颜色标识,非必填,缺省red
41
- */
42
- export declare function getEffectiveMenuDatas(menusDatas: any, keys: any, searchText: any, fieldOption?: {
43
- keyField: string;
44
- titleField: string;
45
- pathsField: string;
46
- }, color?: string): any;
47
- /**
48
- * 搜索菜单数据,移除不符合的菜单和不需要的目录结构,缺省符合内容标红
49
- * @param {Object} thiz menu菜单对象,缓存时候存储数据使用
50
- * @param {String} searchText 搜索内容
51
- * @param {Object} fieldOption 关键字段名称,缺省{ keyField: 'key', titleField: 'title',pathsField:'paths' }
52
- * @param {String} color 搜索内容重点颜色标识,非必填,缺省red,当false时候,且不重点标注颜色
53
- * @param {String} cachekey 缓存数据存储key,缺省nsc_menu_cache
54
- * @returns {*} {openKeys:{},treeDatas:[]}
55
- */
56
- export declare function getSearchMenuDatas(thiz: any, searchText: any, fieldOption?: {
57
- keyField: string;
58
- titleField: string;
59
- pathsField: string;
60
- }, color?: string, cachekey?: string): {
61
- openKeys: any[];
62
- treeDatas: any;
63
- };
64
- declare const _default: {
65
- getBreadcrumbMap: typeof getBreadcrumbMap;
66
- getEffectiveNodeKeys: typeof getEffectiveNodeKeys;
67
- getEffectiveMenuDatas: typeof getEffectiveMenuDatas;
68
- getSearchMenuDatas: typeof getSearchMenuDatas;
69
- };
70
- export default _default;
1
+ /**
2
+ * 获取面包屑映射
3
+ * {
4
+ * key1:{paths:['key1'],title:'系统管理'}
5
+ * key2:{paths:['key1','key2'],title:'功能配置'}
6
+ * key3:{paths:['key1','key2','key3'],title:'菜单管理',path:'/platform/menu'}
7
+ * }
8
+ * @param {object[]} menuDatas 树形结构数据
9
+ * @param {Object} fieldOption 关键字段名称,缺省{ keyField: 'key', titleField: 'title',pathsField:'paths' }
10
+ * @returns {Map}
11
+ */
12
+ export declare function getBreadcrumbMap(menuDatas: any, fieldOption?: {
13
+ keyField: string;
14
+ titleField: string;
15
+ pathsField: string;
16
+ }): {};
17
+ /**
18
+ * 判断菜单Map对象中符合条件的对象
19
+ * key1:{paths:['key1'],title:'系统管理'}
20
+ * key2:{paths:['key1','key2'],title:'功能配置'}
21
+ * key3:{paths:['key1','key2','key3'],title:'菜单管理',path:'/platform/menu'}
22
+ * 搜索《管理》后返回
23
+ * {key1:'key1',key2:'key2',key3:'key3'}
24
+ * @param {Map<String,Object>} breadcrumbMap 菜单面包屑
25
+ * @param { String } searchText 搜索内容
26
+ * @param {Object} fieldOption 关键字段名称,缺省{ keyField: 'key', titleField: 'title',pathsField:'paths' }
27
+ * @returns {Map<String,String>}
28
+ */
29
+ export declare function getEffectiveNodeKeys(breadcrumbMap: any, searchText: any, fieldOption?: {
30
+ keyField: string;
31
+ titleField: string;
32
+ pathsField: string;
33
+ }): {};
34
+ /**
35
+ * 获取过滤后显示的菜单数据
36
+ * @param {Object[]} menusDatas 树形结构数据
37
+ * @param {String[]} keys 有效的菜单节点
38
+ * @param {String} searchText 搜索内容,非必填
39
+ * @param {Object} fieldOption 关键字段名称,缺省{ keyField: 'key', titleField: 'title',pathsField:'paths' }
40
+ * @param {String} color 搜索内容重点颜色标识,非必填,缺省red
41
+ */
42
+ export declare function getEffectiveMenuDatas(menusDatas: any, keys: any, searchText: any, fieldOption?: {
43
+ keyField: string;
44
+ titleField: string;
45
+ pathsField: string;
46
+ }, color?: string): any;
47
+ /**
48
+ * 搜索菜单数据,移除不符合的菜单和不需要的目录结构,缺省符合内容标红
49
+ * @param {Object} thiz menu菜单对象,缓存时候存储数据使用
50
+ * @param {String} searchText 搜索内容
51
+ * @param {Object} fieldOption 关键字段名称,缺省{ keyField: 'key', titleField: 'title',pathsField:'paths' }
52
+ * @param {String} color 搜索内容重点颜色标识,非必填,缺省red,当false时候,且不重点标注颜色
53
+ * @param {String} cachekey 缓存数据存储key,缺省nsc_menu_cache
54
+ * @returns {*} {openKeys:{},treeDatas:[]}
55
+ */
56
+ export declare function getSearchMenuDatas(thiz: any, searchText: any, fieldOption?: {
57
+ keyField: string;
58
+ titleField: string;
59
+ pathsField: string;
60
+ }, color?: string, cachekey?: string): {
61
+ openKeys: any[];
62
+ treeDatas: any;
63
+ };
64
+ declare const _default: {
65
+ getBreadcrumbMap: typeof getBreadcrumbMap;
66
+ getEffectiveNodeKeys: typeof getEffectiveNodeKeys;
67
+ getEffectiveMenuDatas: typeof getEffectiveMenuDatas;
68
+ getSearchMenuDatas: typeof getSearchMenuDatas;
69
+ };
70
+ export default _default;
package/lib/utils.d.ts CHANGED
@@ -1,12 +1,12 @@
1
- import { encrypt } from "./Interface";
2
- export declare function encryptValue(encrypt: encrypt | boolean, value: any): any;
3
- export declare function decryptValue(decrypt: encrypt | boolean, value: any): any;
4
- export declare function checkModel(checktype: any, value: any): any;
5
- export declare function getCacheKey(sotre: any): any;
6
- declare const _default: {
7
- encryptValue: typeof encryptValue;
8
- checkModel: typeof checkModel;
9
- decryptValue: typeof decryptValue;
10
- getCacheKey: typeof getCacheKey;
11
- };
12
- export default _default;
1
+ import { encrypt } from "./Interface";
2
+ export declare function encryptValue(encrypt: encrypt | boolean, value: any): any;
3
+ export declare function decryptValue(decrypt: encrypt | boolean, value: any): any;
4
+ export declare function checkModel(checktype: any, value: any): any;
5
+ export declare function getCacheKey(sotre: any): any;
6
+ declare const _default: {
7
+ encryptValue: typeof encryptValue;
8
+ checkModel: typeof checkModel;
9
+ decryptValue: typeof decryptValue;
10
+ getCacheKey: typeof getCacheKey;
11
+ };
12
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nsc-react-component",
3
- "version": "1.0.20",
3
+ "version": "1.0.24",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -61,7 +61,7 @@
61
61
  "@babel/runtime": "^7.13.17",
62
62
  "@babel/runtime-corejs3": "^7.13.17",
63
63
  "@bj-nsc/functions": "^1.2.14",
64
- "@bj-nsc/msn": "1.0.8",
64
+ "@bj-nsc/msn": "^1.0.10",
65
65
  "classnames": "^2.2.6",
66
66
  "clone-deep": "^4.0.1",
67
67
  "core-js": "3",
@@ -1,15 +0,0 @@
1
- {
2
- // 使用 IntelliSense 了解相关属性。
3
- // 悬停以查看现有属性的描述。
4
- // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
5
- "version": "0.2.0",
6
- "configurations": [
7
- {
8
- "type": "pwa-chrome",
9
- "request": "launch",
10
- "name": "Launch Chrome against localhost",
11
- "url": "http://localhost:8080",
12
- "webRoot": "${workspaceFolder}"
13
- }
14
- ]
15
- }