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
package/README.md CHANGED
@@ -8,7 +8,7 @@ npm publish
8
8
 
9
9
  ## 前端 dlt-for-react 依赖包版本更新记录
10
10
 
11
- ##### 当前最新版本:1.1.14
11
+ ##### 当前最新版本:1.1.17
12
12
 
13
13
  ##### 安装依赖
14
14
 
@@ -16,6 +16,22 @@ npm publish
16
16
 
17
17
  ##### 版本修改记录
18
18
 
19
+ #### V1.1.17—2024 年 3 月 14 日
20
+
21
+ 1. 新增 HqConfirm 组件
22
+ 2. 新增 HqSelect 组件
23
+ 3. 新增 HqFormItem 组件
24
+ 4. 新增 HqCheckBox 组件
25
+ 5. 新增 HqCheckButton 组件
26
+ 6. 新增 HqImage 组件
27
+ 7. 新增 HqCascader 组件
28
+ 8. 新增 HqStuSelector 组件
29
+ 9. 新增 HqTeaSelector 组件
30
+ 10. 新增 HqMultiSelect 组件
31
+ 11. 将 KyInputRender 组件 更名为 HqInputRender 组件
32
+ 12. 将 KyInputPicker 组件 更名为 HqInputPicker 组件
33
+ 13. 初步将 xgui-for-react 依赖组件移除
34
+
19
35
  #### V1.1.15—2024 年 3 月 1 日
20
36
 
21
37
  1. 新增 KyECharts 组件
@@ -0,0 +1,13 @@
1
+ :global(.check-Button) button {
2
+ min-width: 90px;
3
+ padding: 0 12px;
4
+ margin: 0 8px 8px 0;
5
+ border-radius: 16px;
6
+ }
7
+ :global(.check-Button) {
8
+ .check-Button-disabled:hover,
9
+ .check-Button-disabled:focus,
10
+ .check-Button-disabled:active{
11
+ cursor: not-allowed;
12
+ }
13
+ }
@@ -0,0 +1,11 @@
1
+ :global {
2
+ .ant-upload-select-picture-card i {
3
+ font-size: 32px;
4
+ color: #999;
5
+ }
6
+
7
+ .ant-upload-select-picture-card .xgui-picturewall-ant-upload-text {
8
+ margin-top: 8px;
9
+ color: #666;
10
+ }
11
+ }
@@ -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,53 @@
1
+ :global {
2
+ .dlt-selector-resultview-showDiv {
3
+ margin-bottom: 5px;
4
+ position: relative;
5
+ }
6
+
7
+ .dlt-selector-resultview-showContentDiv {
8
+ border: 1px solid grey;
9
+ width: -moz-calc(~"100% - 2px");
10
+ width: -webkit-calc(~"100% - 2px");
11
+ width: calc(~"100% - 2px");
12
+ padding: 2px 5px;
13
+ border-radius: 5px;
14
+ }
15
+
16
+ .dlt-selector-resultview-close {
17
+ position: absolute;
18
+ top: 7px;
19
+ right: 5px;
20
+ display: none !important;
21
+ }
22
+
23
+ .dlt-selector-resultview-showDiv:hover .dlt-selector-resultview-close {
24
+ display: inline !important;
25
+ }
26
+
27
+ .dlt-selector-resultview-bottomShowDiv {
28
+ width: -moz-calc(~"100% - 250px");
29
+ width: -webkit-calc(~"100% - 250px");
30
+ width: calc(~"100% - 250px");
31
+ float: left;
32
+ height: 30px;
33
+ line-height: 30px;
34
+ text-align: left;
35
+ padding-left: 10px;
36
+ }
37
+
38
+ .dlt-selector-resultview-bottomBt {
39
+ font-weight: bold;
40
+ font-size: 17px;
41
+ color: rgb(24, 144, 255);
42
+ }
43
+
44
+ .dlt-selector-resultview-bottomResult {
45
+ color: black;
46
+ font-size: 14px;
47
+ }
48
+
49
+ .dlt-selector-resultview-bottomNoSelect {
50
+ color: grey;
51
+ font-size: 14px;
52
+ }
53
+ }
@@ -0,0 +1,15 @@
1
+ :global {
2
+ .dlt-selector-vertical-center-modal .ant-modal-body {
3
+ padding: 0px;
4
+ }
5
+ .dlt-selector-vertical-center-modal .ant-modal-header {
6
+ padding: 10px 24px;
7
+ }
8
+ .dlt-selector-vertical-center-modal .ant-modal-close-x {
9
+ height: 42px;
10
+ line-height: 42px;
11
+ }
12
+ .dlt-selector-vertical-center-modal .ant-modal-footer {
13
+ padding: 5px 10px;
14
+ }
15
+ }
@@ -0,0 +1,211 @@
1
+ :global {
2
+ .dlt-selector-vertical-center-modal .ant-table-pagination.ant-pagination {
3
+ margin: 9px 0;
4
+ }
5
+
6
+ .dlt-selector-vertical-center-modal
7
+ .dlt-selector-table-searchDiv
8
+ .ant-select-selection,
9
+ .dlt-selector-vertical-center-modal
10
+ .dlt-selector-table-searchDiv
11
+ .ant-select-selection:active,
12
+ .dlt-selector-vertical-center-modal
13
+ .dlt-selector-table-searchDiv
14
+ .ant-select-selection:focus,
15
+ .dlt-selector-vertical-center-modal
16
+ .dlt-selector-table-searchDiv
17
+ .ant-select-selection:hover {
18
+ border: none;
19
+ outline: none;
20
+ box-shadow: none;
21
+ }
22
+
23
+ .dlt-selector-vertical-center-modal
24
+ .ant-table-fixed-header
25
+ .ant-table-scroll
26
+ .ant-table-header {
27
+ margin-bottom: 0px !important;
28
+ overflow-x: hidden !important;
29
+ }
30
+ .dlt-selector-vertical-center-modal
31
+ .ant-table-small
32
+ > .ant-table-content
33
+ > .ant-table-scroll
34
+ > .ant-table-header
35
+ > table
36
+ > .ant-table-thead
37
+ > tr
38
+ > th {
39
+ padding: 9px 8px;
40
+ }
41
+
42
+ .dlt-selector-vertical-center-modal
43
+ .ant-table-small
44
+ > .ant-table-content
45
+ > .ant-table-scroll
46
+ > .ant-table-body
47
+ > table
48
+ > .ant-table-tbody
49
+ > tr
50
+ > td {
51
+ padding: 5px 8px;
52
+ }
53
+
54
+ .dlt-selector-vertical-center-modal
55
+ .ant-table-small
56
+ > .ant-table-content
57
+ > .ant-table-fixed-left
58
+ > .ant-table-header
59
+ > table
60
+ > .ant-table-thead
61
+ > tr
62
+ > th {
63
+ padding: 9px 8px;
64
+ }
65
+
66
+ .dlt-selector-vertical-center-modal
67
+ .ant-table-small
68
+ > .ant-table-content
69
+ > .ant-table-fixed-left
70
+ > .ant-table-body-outer
71
+ > .ant-table-body-inner
72
+ > table
73
+ > .ant-table-tbody
74
+ > tr
75
+ > td {
76
+ padding: 5px 8px;
77
+ }
78
+
79
+ .dlt-selector-vertical-center-modal
80
+ .ant-table-small
81
+ > .ant-table-content
82
+ > .ant-table-fixed-right
83
+ > .ant-table-header
84
+ > table
85
+ > .ant-table-thead
86
+ > tr
87
+ > th {
88
+ padding: 9px 8px;
89
+ }
90
+
91
+ .dlt-selector-vertical-center-modal
92
+ .ant-table-small
93
+ > .ant-table-content
94
+ > .ant-table-fixed-right
95
+ > .ant-table-body-outer
96
+ > .ant-table-body-inner
97
+ > table
98
+ > .ant-table-tbody
99
+ > tr
100
+ > td {
101
+ padding: 5px 8px;
102
+ }
103
+ .dlt-selector-vertical-center-modal
104
+ .ant-table-small
105
+ > .ant-table-content
106
+ > .ant-table-scroll
107
+ > .ant-table-header {
108
+ overflow: auto;
109
+ }
110
+ .dlt-selector-vertical-center-modal
111
+ .ant-table-small
112
+ > .ant-table-content
113
+ > .ant-table-scroll
114
+ > .ant-table-body {
115
+ overflow: auto !important;
116
+ }
117
+ .dlt-selector-vertical-center-modal
118
+ .ant-table-small
119
+ > .ant-table-content
120
+ > .ant-table-fixed-right
121
+ > .ant-table-body-outer
122
+ > .ant-table-body-inner {
123
+ overflow: auto !important;
124
+ margin-top: -2px;
125
+ }
126
+ .dlt-selector-vertical-center-modal
127
+ .ant-table-small
128
+ > .ant-table-content
129
+ > .ant-table-fixed-left
130
+ > .ant-table-body-outer
131
+ > .ant-table-body-inner {
132
+ overflow: auto !important;
133
+ margin-top: -2px;
134
+ }
135
+ .dlt-selector-vertical-center-modal
136
+ .ant-table-small
137
+ > .ant-table-content
138
+ > .ant-table-scroll
139
+ > .ant-table-body
140
+ table
141
+ > .ant-table-tbody
142
+ > tr
143
+ > td {
144
+ padding: 5px 8px;
145
+ }
146
+ .dlt-selector-vertical-center-modal
147
+ .ant-table-small
148
+ > .ant-table-content
149
+ > .ant-table-fixed-left
150
+ > .ant-table-body-outer
151
+ > .ant-table-body-inner
152
+ table
153
+ > .ant-table-tbody
154
+ > tr
155
+ > td {
156
+ padding: 5px 8px;
157
+ }
158
+ .dlt-selector-vertical-center-modal
159
+ .ant-table-small
160
+ > .ant-table-content
161
+ > .ant-table-fixed-right
162
+ > .ant-table-body-outer
163
+ > .ant-table-body-inner
164
+ table
165
+ > .ant-table-tbody
166
+ > tr
167
+ > td {
168
+ padding: 5px 8px;
169
+ }
170
+ .dlt-selector-vertical-center-modal
171
+ .ant-table-small
172
+ > .ant-table-content
173
+ > .ant-table-fixed-right {
174
+ height: 100%;
175
+ right: 1px;
176
+ padding-right: 2px;
177
+ background: white;
178
+ }
179
+ .dlt-selector-vertical-center-modal
180
+ .ant-table-small
181
+ > .ant-table-content
182
+ > .ant-table-fixed-left {
183
+ height: 100%;
184
+ }
185
+ .dlt-selector-vertical-center-modal
186
+ .ant-table-small
187
+ > .ant-table-content
188
+ > .ant-table-fixed-right
189
+ > .ant-table-header {
190
+ border-left: 1px solid #e8e8e8;
191
+ border-bottom: 1px solid #e8e8e8;
192
+ }
193
+ .dlt-selector-vertical-center-modal
194
+ .ant-table-small
195
+ > .ant-table-content
196
+ > .ant-table-fixed-left
197
+ > .ant-table-header {
198
+ border-right: 1px solid #e8e8e8;
199
+ border-bottom: 1px solid #e8e8e8;
200
+ border-left: 1px solid #e8e8e8;
201
+ }
202
+ .dlt-selector-vertical-center-modal
203
+ .ant-table-small
204
+ > .ant-table-content
205
+ > .ant-table-fixed-left
206
+ .ant-table-tbody
207
+ > tr
208
+ > td:last-child {
209
+ border-right: 1px solid #e8e8e8 !important;
210
+ }
211
+ }
@@ -0,0 +1,138 @@
1
+ :global {
2
+ .dlt-selector-tree-searchInput {
3
+ margin: 0 5px;
4
+ padding: 0;
5
+ width: 190px;
6
+ box-shadow: none;
7
+ border: none;
8
+ border-bottom: 1px solid #ccc;
9
+ border-radius: 0;
10
+ transition: all linear 0.5s;
11
+ text-indent: 10px;
12
+ }
13
+
14
+ .dlt-selector-tree-searchInput:active,
15
+ .dlt-selector-tree-searchInput:focus,
16
+ .dlt-selector-tree-searchInput:hover {
17
+ box-shadow: none;
18
+ border: none;
19
+ border-bottom: 1px solid #ccc;
20
+ border-radius: 0;
21
+ }
22
+
23
+ .dlt-selector-vertical-center-modal .ant-tree li span.ant-tree-switcher,
24
+ .dlt-selector-vertical-center-modal .ant-tree li span.ant-tree-iconEle {
25
+ line-height: 16px;
26
+ }
27
+
28
+ .dlt-selector-vertical-center-modal
29
+ .dlt-selector-tree-div
30
+ .ant-input-search
31
+ .ant-input {
32
+ border: 0px;
33
+ box-shadow: none;
34
+ }
35
+ .dlt-selector-vertical-center-modal .dlt-selector-tree-div .ant-tree li ul {
36
+ padding: 0 0 0 14px;
37
+ }
38
+
39
+ .dlt-selector-vertical-center-modal
40
+ .ant-table-small
41
+ > .ant-table-content
42
+ > .ant-table-scroll
43
+ > .ant-table-header
44
+ > table
45
+ > .ant-table-thead
46
+ > tr
47
+ > th {
48
+ padding: 9px 4px;
49
+ }
50
+
51
+ .dlt-selector-vertical-center-modal
52
+ .ant-table-small
53
+ > .ant-table-content
54
+ > .ant-table-scroll
55
+ > .ant-table-body
56
+ > table
57
+ > .ant-table-tbody
58
+ > tr
59
+ > td {
60
+ padding: 7px 4px;
61
+ }
62
+
63
+ .dlt-selector-vertical-center-modal
64
+ .ant-table-small
65
+ > .ant-table-content
66
+ > .ant-table-fixed-left
67
+ > .ant-table-header
68
+ > table
69
+ > .ant-table-thead
70
+ > tr
71
+ > th {
72
+ padding: 9px 4px;
73
+ }
74
+
75
+ .dlt-selector-vertical-center-modal
76
+ .ant-table-small
77
+ > .ant-table-content
78
+ > .ant-table-fixed-left
79
+ > .ant-table-body-outer
80
+ > .ant-table-body-inner
81
+ > table
82
+ > .ant-table-tbody
83
+ > tr
84
+ > td {
85
+ padding: 7px 4px;
86
+ }
87
+
88
+ .dlt-selector-vertical-center-modal
89
+ .ant-table-small
90
+ > .ant-table-content
91
+ > .ant-table-fixed-right
92
+ > .ant-table-header
93
+ > table
94
+ > .ant-table-thead
95
+ > tr
96
+ > th {
97
+ padding: 9px 4px;
98
+ }
99
+
100
+ .dlt-selector-vertical-center-modal
101
+ .ant-table-small
102
+ > .ant-table-content
103
+ > .ant-table-fixed-right
104
+ > .ant-table-body-outer
105
+ > .ant-table-body-inner
106
+ > table
107
+ > .ant-table-tbody
108
+ > tr
109
+ > td {
110
+ padding: 7px 4px;
111
+ }
112
+
113
+ .dlt-selector-tree-searchHeader {
114
+ width: 100%;
115
+ text-align: right;
116
+ line-height: 40px;
117
+ }
118
+ .dlt-selector-tree-load-div {
119
+ width: 90%;
120
+ margin: 20px auto;
121
+ border: 1px solid #91d5ff;
122
+ text-align: center;
123
+ border-radius: 5px;
124
+ line-height: 40px;
125
+ }
126
+ .tooltip_div .ant-tooltip-inner {
127
+ max-width: 250px;
128
+ padding: 6px 8px;
129
+ color: #91d5ff;
130
+ text-align: left;
131
+ text-decoration: none;
132
+ background-color: #fff;
133
+ border-radius: 4px;
134
+ border: 1px solid #91d5ff;
135
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
136
+ min-height: 32px;
137
+ }
138
+ }
@@ -0,0 +1,24 @@
1
+ :global {
2
+ .dlt-selector-stu-list-div {
3
+ padding-left: 10px;
4
+ float: left;
5
+ }
6
+ .dlt-selector-stu-list-div > .dlt-selector-basic-data-div {
7
+ color: black;
8
+ font-size: 16px;
9
+ text-align: left;
10
+ }
11
+ .dlt-selector-stu-list-div > .dlt-selector-else-data-div {
12
+ color: #a3a3a3;
13
+ padding-left: 12px;
14
+ font-size: 14px;
15
+ overflow: hidden;
16
+ text-overflow: ellipsis;
17
+ max-width: 450px;
18
+ white-space: nowrap;
19
+ }
20
+ .dlt-selector-stu-xmCss {
21
+ font-size: 14px;
22
+ color: black;
23
+ }
24
+ }
@@ -0,0 +1,4 @@
1
+ .dlt-selector-tea-xmCss {
2
+ font-size: 14px;
3
+ color: black;
4
+ }