dlt-for-react 1.0.2 → 1.0.4

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 (92) hide show
  1. package/README.md +6 -1
  2. package/assets/components/KyCheckButton/index.less +23 -0
  3. package/assets/components/KyCollapse/index.less +15 -0
  4. package/assets/components/KyContainerFrame/index.less +21 -0
  5. package/assets/components/KyEditableTable/index.less +116 -0
  6. package/assets/components/KyEmpty/index.less +8 -0
  7. package/assets/components/KyIcon/index.less +6 -0
  8. package/assets/components/KyInputPicker/index.less +8 -0
  9. package/assets/components/KyModal/index.less +21 -0
  10. package/assets/components/KyMore/index.less +9 -0
  11. package/assets/components/KyPreview/index.less +38 -0
  12. package/assets/components/KyTable/checkbuttons.less +23 -0
  13. package/assets/components/KyTable/highSearchForm.less +16 -0
  14. package/assets/components/KyTable/index.less +558 -0
  15. package/assets/components/KyTitle/index.less +39 -0
  16. package/assets/components/KyUpload/index.less +41 -0
  17. package/assets/images/noData.png +0 -0
  18. package/lib/components/DragM/index.js +127 -0
  19. package/lib/components/KyBtnBox/index.js +137 -0
  20. package/lib/components/KyCheckBox/index.js +361 -0
  21. package/lib/components/KyCheckButton/index.js +256 -0
  22. package/lib/components/KyCollapse/index.js +144 -0
  23. package/lib/components/KyContainerFrame/index.js +239 -0
  24. package/lib/components/KyEditableTable/component.js +214 -0
  25. package/lib/components/KyEditableTable/index.js +1537 -0
  26. package/lib/components/KyEmpty/index.js +102 -0
  27. package/lib/components/KyExcel/ExcelForm.js +111 -0
  28. package/lib/components/KyExcel/index.js +601 -0
  29. package/lib/components/KyIcon/index.js +51 -0
  30. package/lib/components/KyInputPicker/edit-page.js +585 -0
  31. package/lib/components/KyInputPicker/index.js +220 -0
  32. package/lib/components/KyInputPicker/input-const.js +134 -0
  33. package/lib/components/KyInputPicker/render.js +2480 -0
  34. package/lib/components/KyInputPicker/setting-checkbox.js +850 -0
  35. package/lib/components/KyInputPicker/setting-datepicker.js +430 -0
  36. package/lib/components/KyInputPicker/setting-datetimepicker.js +443 -0
  37. package/lib/components/KyInputPicker/setting-input.js +555 -0
  38. package/lib/components/KyInputPicker/setting-inputNumber.js +612 -0
  39. package/lib/components/KyInputPicker/setting-monthpicker.js +434 -0
  40. package/lib/components/KyInputPicker/setting-multiSelect.js +532 -0
  41. package/lib/components/KyInputPicker/setting-nhcascader.js +584 -0
  42. package/lib/components/KyInputPicker/setting-old-upload.js +428 -0
  43. package/lib/components/KyInputPicker/setting-radio.js +468 -0
  44. package/lib/components/KyInputPicker/setting-rangepicker.js +466 -0
  45. package/lib/components/KyInputPicker/setting-select.js +534 -0
  46. package/lib/components/KyInputPicker/setting-stu-selector.js +507 -0
  47. package/lib/components/KyInputPicker/setting-switch.js +274 -0
  48. package/lib/components/KyInputPicker/setting-tea-selector.js +507 -0
  49. package/lib/components/KyInputPicker/setting-textarea.js +619 -0
  50. package/lib/components/KyInputPicker/setting-timepicker.js +437 -0
  51. package/lib/components/KyInputPicker/setting-upload.js +766 -0
  52. package/lib/components/KyModal/buildTitle.js +82 -0
  53. package/lib/components/KyModal/dragM.js +128 -0
  54. package/lib/components/KyModal/index.js +321 -0
  55. package/lib/components/KyMore/index.js +74 -0
  56. package/lib/components/KyPreview/index.js +210 -0
  57. package/lib/components/KyTable/AddFieldsModal.js +360 -0
  58. package/lib/components/KyTable/action.js +222 -0
  59. package/lib/components/KyTable/checkButtons.js +244 -0
  60. package/lib/components/KyTable/data.js +726 -0
  61. package/lib/components/KyTable/expexcel.js +269 -0
  62. package/lib/components/KyTable/highSearchForm.js +749 -0
  63. package/lib/components/KyTable/highSelect.js +313 -0
  64. package/lib/components/KyTable/index.js +2075 -0
  65. package/lib/components/KyTable/marqueenText.js +142 -0
  66. package/lib/components/KyTable/overflowColumn.js +113 -0
  67. package/lib/components/KyTable/text.js +96 -0
  68. package/lib/components/KyTable/textGroup.js +108 -0
  69. package/lib/components/KyTitle/index.js +127 -0
  70. package/lib/components/KyUpload/index.js +1157 -0
  71. package/lib/index.js +84 -31
  72. package/lib/layouts/Exception/403/index.js +1 -0
  73. package/lib/layouts/Exception/403.js +1 -0
  74. package/lib/layouts/Exception/404.js +1 -0
  75. package/lib/layouts/Exception/500.js +1 -0
  76. package/lib/layouts/LeftMenu/index.js +1 -0
  77. package/lib/layouts/Login/index.js +522 -458
  78. package/lib/layouts/Login/lyPassword.js +9 -10
  79. package/lib/layouts/NavigationBar/index.js +1 -0
  80. package/lib/layouts/Top/index.js +309 -254
  81. package/lib/layouts/TopMenu/index.js +271 -265
  82. package/lib/layouts/layout/index.js +1 -0
  83. package/lib/layouts/mixTop/index.js +275 -243
  84. package/lib/layouts/settingDrawer/colorChange.js +1 -0
  85. package/lib/layouts/settingDrawer/colorPicker.js +1 -0
  86. package/lib/utils/MD5.js +256 -0
  87. package/lib/utils/NHCore.js +273 -0
  88. package/lib/utils/NHFetch.js +451 -0
  89. package/lib/utils/common.js +516 -0
  90. package/lib/utils/equalsObj.js +59 -0
  91. package/lib/utils/index.js +804 -0
  92. package/package.json +11 -5
package/README.md CHANGED
@@ -6,12 +6,17 @@ npm publish
6
6
 
7
7
  ## 前端dlt-for-react依赖包版本更新记录
8
8
 
9
- ##### 当前最新版本:1.0.2
9
+ ##### 当前最新版本:1.0.4
10
10
 
11
11
  ##### 安装依赖
12
12
  > cnpm install dlt-for-react --save
13
13
 
14
14
  ##### 版本修改记录
15
+
16
+ #### V1.0.4—2023年9月28日
17
+ 1. 补充KyBtnBox、KyCheckBox、KyCheckButton、KyCollapse、KyContainerFrame、KyEditableTable、KyEmpty、KyExcel、KyIcon、KyMore、KyTable及KyTitle组件
18
+ #### V1.0.3—2023年9月28日
19
+ 1. 补充KyInputPicker、KyModal、KyUpload及KyPreview组件
15
20
  #### V1.0.2—2023年9月27日
16
21
  1. 初始化组件
17
22
  ## 发布
@@ -0,0 +1,23 @@
1
+ .check button {
2
+ height: 28px;
3
+ line-height: 28px;
4
+ min-width: 60px;
5
+ padding: 0 8px;
6
+ border-radius: 4px;
7
+ border-color: transparent;
8
+ }
9
+
10
+ .check button:hover {
11
+ border-color: #1890ff;
12
+ background-color: #fff;
13
+ }
14
+
15
+ .check button:global(.ant-btn-primary) {
16
+ background-color: #e6f7ff;
17
+ color: #1890ff;
18
+ border-color: #e6f7ff;
19
+ }
20
+
21
+ .check button:global {
22
+ border-radius: 0px !important;
23
+ }
@@ -0,0 +1,15 @@
1
+ :global {
2
+ .KyCollapse {
3
+ .ant-collapse-borderless {
4
+ background-color: #fff;
5
+ }
6
+
7
+ .ant-collapse > .ant-collapse-item {
8
+ border: 0;
9
+ }
10
+
11
+ .ant-collapse > .ant-collapse-item > .ant-collapse-header {
12
+ padding: 0;
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,21 @@
1
+ :global {
2
+ .KyContainerFrame {
3
+ background-color: white;
4
+
5
+ .header {
6
+ width: 100%;
7
+ // padding: 10px 16px;
8
+ padding-bottom: 16px;
9
+
10
+ .title {
11
+ font-size: 18px;
12
+ color: #333;
13
+ line-height: 32px;
14
+ }
15
+
16
+ .button {
17
+ text-align: right;
18
+ }
19
+ }
20
+ }
21
+ }
@@ -0,0 +1,116 @@
1
+ /* / component > index.less / */
2
+ @TR_COLOR: #f9f9f9;
3
+ @BUTTON_COLOR: #1890ff;
4
+
5
+ :global {
6
+ .self-editable-table {
7
+ .ant-table-small>.ant-table-content>.ant-table-body {
8
+ margin: 0;
9
+ }
10
+
11
+ .ant-table {
12
+ border-radius: 3px;
13
+ }
14
+
15
+ .editableTable-item-required::before {
16
+ display: inline-block;
17
+ margin-right: 4px;
18
+ color: #f5222d;
19
+ font-weight: 500;
20
+ font-size: 14px;
21
+ font-family: SimSun, sans-serif;
22
+ line-height: 1;
23
+ content: '*';
24
+ }
25
+ }
26
+
27
+ .operation {
28
+ margin-bottom: 16px;
29
+ }
30
+ }
31
+
32
+ .self-editable-table {
33
+ .ant-table-thead {
34
+ th {
35
+ padding: 13px 8px !important;
36
+ // height : 52px !important;
37
+ background-color: @TR_COLOR !important;
38
+ }
39
+ }
40
+
41
+ .ant-table-small>.ant-table-content>.ant-table-body {
42
+ margin: 0;
43
+ }
44
+
45
+ .ant-table-tbody {
46
+ td {
47
+ position: relative;
48
+ max-width: 234px;
49
+ padding: 13px 8px !important;
50
+
51
+ .ellipsis_dom {
52
+ float: left;
53
+ max-width: 100%;
54
+ overflow: hidden;
55
+ white-space: nowrap;
56
+ text-overflow: ellipsis;
57
+ }
58
+ }
59
+
60
+ tr {
61
+ .ant-form-item-control {
62
+ line-height: 100%;
63
+ }
64
+
65
+ &:nth-child(even) {
66
+ background-color: @TR_COLOR;
67
+ }
68
+ }
69
+ }
70
+
71
+ .self-editable-row .ant-form-explain {
72
+ position: absolute;
73
+ font-size: 12px;
74
+ }
75
+
76
+ .ant-input,
77
+ .ant-select-disabled .ant-select-selection {
78
+ background: transparent;
79
+ border: 0;
80
+ }
81
+
82
+ .ant-table-header-column {
83
+ color: #262626;
84
+ font-weight: bold;
85
+ font-family: inherit;
86
+ }
87
+
88
+ .ant-table-column-title {
89
+ font-weight: bold;
90
+ }
91
+
92
+ .ant-table-thead>tr.ant-table-row-hover:not(.ant-table-expanded-row):not(.ant-table-row-selected)>td,
93
+ .ant-table-tbody>tr.ant-table-row-hover:not(.ant-table-expanded-row):not(.ant-table-row-selected)>td,
94
+ .ant-table-thead>tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected)>td,
95
+ .ant-table-tbody>tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected)>td {
96
+ background-color: #f0f0f0 !important;
97
+ }
98
+
99
+ .ant-pagination-item-active {
100
+ background: #f0f0f0;
101
+ border-color: transparent;
102
+ }
103
+
104
+ .ant-table-pagination.ant-pagination {
105
+ float: unset;
106
+ text-align: center;
107
+ }
108
+
109
+ .option_btns {
110
+ margin-right: 12px;
111
+
112
+ & a {
113
+ color: @BUTTON_COLOR;
114
+ }
115
+ }
116
+ }
@@ -0,0 +1,8 @@
1
+ :global {
2
+ .ky-empty {
3
+ padding: 10px;
4
+ color: #999;
5
+ font-size: 14px;
6
+ text-align: center;
7
+ }
8
+ }
@@ -0,0 +1,6 @@
1
+ :global {
2
+ .ky-icon {
3
+ width: 64px;
4
+ height: 64px;
5
+ }
6
+ }
@@ -0,0 +1,8 @@
1
+ .avatar-uploader > .ant-upload {
2
+ width: 128px;
3
+ height: 128px;
4
+ }
5
+ .ant-upload-list-item-card-actions {
6
+ position: absolute;
7
+ right: 0;
8
+ }
@@ -0,0 +1,21 @@
1
+ :global {
2
+ .vertical-center-modal {
3
+ white-space: nowrap;
4
+ text-align: center;
5
+ }
6
+
7
+ .vertical-center-modal:before {
8
+ display: inline-block;
9
+ width: 0;
10
+ height: 100%;
11
+ vertical-align: middle;
12
+ content: '';
13
+ }
14
+
15
+ .vertical-center-modal .ant-modal {
16
+ top: 0;
17
+ display: inline-block;
18
+ text-align: left;
19
+ vertical-align: middle;
20
+ }
21
+ }
@@ -0,0 +1,9 @@
1
+ :global {
2
+ .ky-more {
3
+ color: #adadad;
4
+ vertical-align: middle;
5
+ .ky-more-icon {
6
+ margin-left: 4px;
7
+ }
8
+ }
9
+ }
@@ -0,0 +1,38 @@
1
+ :global {
2
+ .KyPreview {
3
+ display: flex;
4
+ align-items: center;
5
+ justify-content: center;
6
+ width: 100%;
7
+ height: 100%;
8
+ .fileContent {
9
+ width: 100%;
10
+ height: calc(100% - 42px);
11
+ .pg-viewer-wrapper button,
12
+ .pg-viewer-wrapper input,
13
+ .pg-viewer-wrapper select,
14
+ .pg-viewer-wrapper textarea {
15
+ margin-top: 5px;
16
+ }
17
+ }
18
+
19
+ .filePdf {
20
+ display: flex;
21
+ justify-content: center;
22
+ width: 100%;
23
+ height: calc(100% - 84px);
24
+ overflow: scroll;
25
+ overflow-x: hidden;
26
+ }
27
+ .filePdfFooter {
28
+ display: flex;
29
+ align-items: center;
30
+ justify-content: center;
31
+ width: 100%;
32
+ height: 42px;
33
+ }
34
+ .filePdfPage {
35
+ margin: 0 10px;
36
+ }
37
+ }
38
+ }
@@ -0,0 +1,23 @@
1
+ .check button {
2
+ height: 28px;
3
+ line-height: 28px;
4
+ min-width: 60px;
5
+ padding: 0 8px;
6
+ border-radius: 4px;
7
+ border-color: transparent;
8
+ }
9
+
10
+ .check button:hover {
11
+ border-color: #1890ff;
12
+ background-color: #fff;
13
+ }
14
+
15
+ .check button:global(.ant-btn-primary) {
16
+ background-color: #e6f7ff;
17
+ color: #1890ff;
18
+ border-color: #e6f7ff;
19
+ }
20
+
21
+ .check button:global {
22
+ border-radius: 0px !important;
23
+ }
@@ -0,0 +1,16 @@
1
+ :global {
2
+ .highSearchForm {
3
+ .ant-form-item-label {
4
+ label {
5
+ display: flex;
6
+
7
+ span {
8
+ text-overflow: ellipsis;
9
+ overflow: hidden;
10
+ display: inline-block;
11
+ width: 100%;
12
+ }
13
+ }
14
+ }
15
+ }
16
+ }