dlt-for-react 1.1.16 → 1.1.17

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 (85) hide show
  1. package/README.md +17 -1
  2. package/assets/HqCheckButton/index.less +13 -0
  3. package/assets/HqImage/index.less +11 -0
  4. package/assets/HqInputPicker/index.less +8 -0
  5. package/assets/selector/resultview/index.less +53 -0
  6. package/assets/selector/selectormodal/index.less +15 -0
  7. package/assets/selector/table/index.less +211 -0
  8. package/assets/selector/tree/index.less +138 -0
  9. package/assets/stuSelector/index.less +24 -0
  10. package/assets/teaSelector/index.less +4 -0
  11. package/lib/components/HqCascader/index.js +306 -0
  12. package/lib/components/HqCheckBox/index.js +375 -0
  13. package/lib/components/HqCheckButton/index.js +284 -0
  14. package/lib/components/HqConfirm/index.js +81 -0
  15. package/lib/components/HqFormItem/FormRules.js +27 -0
  16. package/lib/components/HqFormItem/index.js +309 -0
  17. package/lib/components/HqImage/index.js +553 -0
  18. package/lib/components/HqInputPicker/edit-page.js +585 -0
  19. package/lib/components/HqInputPicker/index.js +226 -0
  20. package/lib/components/HqInputPicker/input-const.js +134 -0
  21. package/lib/components/HqInputPicker/render.js +2496 -0
  22. package/lib/components/HqInputPicker/setting-checkbox.js +853 -0
  23. package/lib/components/HqInputPicker/setting-datepicker.js +430 -0
  24. package/lib/components/HqInputPicker/setting-datetimepicker.js +443 -0
  25. package/lib/components/HqInputPicker/setting-input.js +555 -0
  26. package/lib/components/HqInputPicker/setting-inputNumber.js +658 -0
  27. package/lib/components/HqInputPicker/setting-monthpicker.js +434 -0
  28. package/lib/components/HqInputPicker/setting-multiSelect.js +533 -0
  29. package/lib/components/HqInputPicker/setting-nhcascader.js +588 -0
  30. package/lib/components/HqInputPicker/setting-old-upload.js +428 -0
  31. package/lib/components/HqInputPicker/setting-radio.js +468 -0
  32. package/lib/components/HqInputPicker/setting-rangepicker.js +466 -0
  33. package/lib/components/HqInputPicker/setting-select.js +534 -0
  34. package/lib/components/HqInputPicker/setting-stu-selector.js +508 -0
  35. package/lib/components/HqInputPicker/setting-switch.js +274 -0
  36. package/lib/components/HqInputPicker/setting-tea-selector.js +508 -0
  37. package/lib/components/HqInputPicker/setting-textarea.js +619 -0
  38. package/lib/components/HqInputPicker/setting-timepicker.js +437 -0
  39. package/lib/components/HqInputPicker/setting-upload.js +795 -0
  40. package/lib/components/HqMultiSelect/index.js +495 -0
  41. package/lib/components/HqOldUpload/index.js +350 -0
  42. package/lib/components/HqSelect/getSelectName.js +20 -0
  43. package/lib/components/HqSelect/index.js +495 -0
  44. package/lib/components/HqSelector/HqLsrySelector/index.js +269 -267
  45. package/lib/components/HqSelector/HqRySelector/index.js +4 -2
  46. package/lib/components/HqSelector/HqWzSelector/index.js +4 -2
  47. package/lib/components/HqStuSelector/index.js +267 -0
  48. package/lib/components/HqTeaSelector/index.js +221 -0
  49. package/lib/components/KyCollapse/index.js +23 -24
  50. package/lib/components/KyContainerFrame/index.js +2 -2
  51. package/lib/components/KyEditableTable/component.js +38 -38
  52. package/lib/components/KyEditableTable/index.js +203 -181
  53. package/lib/components/KyExcel/index.js +191 -153
  54. package/lib/components/KyModal/index.js +43 -33
  55. package/lib/components/KyTable/AddFieldsModal.js +66 -59
  56. package/lib/components/KyTable/checkButtons.js +3 -13
  57. package/lib/components/KyTable/index.js +2 -2
  58. package/lib/components/KyTableCardList/AddFieldsModal.js +280 -282
  59. package/lib/components/KyTableCardList/index.js +2 -2
  60. package/lib/components/KyTree/index.js +7 -7
  61. package/lib/components/KyUpload/index.js +170 -165
  62. package/lib/components/NHSelector/ListSort/index.js +411 -0
  63. package/lib/components/NHSelector/index.js +636 -0
  64. package/lib/components/NHSelector/resultview/index.js +408 -0
  65. package/lib/components/NHSelector/selectormodal/index.js +303 -0
  66. package/lib/components/NHSelector/table/index.js +784 -0
  67. package/lib/components/NHSelector/tree/index.js +554 -0
  68. package/lib/index.js +146 -36
  69. package/lib/layouts/LeftMenu/index.js +6 -6
  70. package/lib/layouts/Login/index-pre.js +107 -103
  71. package/lib/layouts/Login/index.js +2 -2
  72. package/lib/layouts/Login/login.js +178 -172
  73. package/lib/layouts/NavigationBar/index.js +67 -67
  74. package/lib/layouts/Top/editPassWord.js +84 -64
  75. package/lib/layouts/Top/index.js +117 -117
  76. package/lib/layouts/TopMenu/index.js +53 -53
  77. package/lib/layouts/layout/index.js +115 -118
  78. package/lib/layouts/mixTop/index.js +95 -95
  79. package/lib/layouts/settingDrawer/index.js +96 -96
  80. package/lib/routes/AuthorizedRoute.js +33 -32
  81. package/lib/utils/NHCore.js +65 -65
  82. package/package.json +3 -3
  83. package/lib/utils/createUuid.js +0 -40
  84. package/lib/utils/getLoginUser.js +0 -10
  85. package/lib/utils/getSize.js +0 -27
@@ -77,13 +77,13 @@ var _react = require("react");
77
77
 
78
78
  var _react2 = _interopRequireDefault(_react);
79
79
 
80
- var _reactCustomScrollbars = require("react-custom-scrollbars");
80
+ var _reactCustomScrollbarsPatched = require("react-custom-scrollbars-patched");
81
81
 
82
82
  var _reactDom = require("react-dom");
83
83
 
84
84
  var _reactDom2 = _interopRequireDefault(_reactDom);
85
85
 
86
- var _xguiForReact = require("xgui-for-react");
86
+ var _index = require("../../index");
87
87
 
88
88
  var _equalsObj = require("../../utils/equalsObj");
89
89
 
@@ -239,7 +239,7 @@ var KyTree = function (_React$Component) {
239
239
  "a",
240
240
  {
241
241
  style: { display: "block", color: "inherit" },
242
- key: (0, _xguiForReact.createUuid)(),
242
+ key: (0, _index.createUuid)(),
243
243
  onClick: function onClick() {
244
244
  return item.onClick(e.node.props.dataRef, e.node.props.eventKey, e);
245
245
  }
@@ -360,7 +360,7 @@ var KyTree = function (_React$Component) {
360
360
  _react2.default.createElement(_icon2.default, { className: "trigger", type: collapsed ? "right" : "left" })
361
361
  ),
362
362
  dataList && dataList.length > 0 && _react2.default.createElement(
363
- _reactCustomScrollbars.Scrollbars,
363
+ _reactCustomScrollbarsPatched.Scrollbars,
364
364
  {
365
365
  className: "Ky_scroll",
366
366
  style: { width: "100%", height: "100%" }
@@ -417,7 +417,7 @@ var _initialiseProps = function _initialiseProps() {
417
417
  var obj = _this3;
418
418
  var baseUrl = _this3.props.baseUrl;
419
419
  var url = _this3.props.url ? _this3.props.url : (baseUrl || window.baseUrl || "") + "/proData/getTreeList";
420
- (0, _xguiForReact.NHFetch)(url, "POST", {
420
+ (0, _index.NHFetch)(url, "POST", {
421
421
  params: _this3.props.params,
422
422
  sqlParams: _this3.props.sqlParams,
423
423
  sign: _this3.props.sign
@@ -457,7 +457,7 @@ var _initialiseProps = function _initialiseProps() {
457
457
  params = treeParam;
458
458
  } else {
459
459
  var t = new Date().getTime();
460
- (0, _xguiForReact.NHFetch)(_this3.props.baseUrl + "/proData/queryAllConfig", "GET", t).then(function (res) {
460
+ (0, _index.NHFetch)(_this3.props.baseUrl + "/proData/queryAllConfig", "GET", t).then(function (res) {
461
461
  if (res && res.code === 200) {
462
462
  var _treeParam = res.data.tree[_this3.props.sign];
463
463
  if (_treeParam) {
@@ -800,7 +800,7 @@ var _initialiseProps = function _initialiseProps() {
800
800
  //是否满足显示这个按钮的要求
801
801
  if (item.isShow === undefined || item.isShow(e.node.props.dataRef, e.node.props.eventKey, e)) {
802
802
  //是否满足权限的要求
803
- if (item.auth === undefined || (0, _xguiForReact.hasAuth)(item.auth)) {
803
+ if (item.auth === undefined || (0, _index.hasAuth)(item.auth)) {
804
804
  newMenuList.push(item);
805
805
  }
806
806
  }