dlt-for-react 1.0.3 → 1.0.5

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 (66) hide show
  1. package/README.md +4 -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/KyMore/index.less +9 -0
  9. package/assets/components/KyTable/checkbuttons.less +23 -0
  10. package/assets/components/KyTable/highSearchForm.less +16 -0
  11. package/assets/components/KyTable/index.less +558 -0
  12. package/assets/components/KyTitle/index.less +39 -0
  13. package/assets/images/noData.png +0 -0
  14. package/lib/components/KyBtnBox/index.js +137 -0
  15. package/lib/components/KyCheckBox/index.js +361 -0
  16. package/lib/components/KyCheckButton/index.js +256 -0
  17. package/lib/components/KyCollapse/index.js +144 -0
  18. package/lib/components/KyContainerFrame/index.js +239 -0
  19. package/lib/components/KyEditableTable/component.js +216 -0
  20. package/lib/components/KyEditableTable/index.js +1537 -0
  21. package/lib/components/KyEmpty/index.js +102 -0
  22. package/lib/components/KyExcel/ExcelForm.js +111 -0
  23. package/lib/components/KyExcel/index.js +601 -0
  24. package/lib/components/KyIcon/index.js +51 -0
  25. package/lib/components/KyModal/buildTitle.js +1 -0
  26. package/lib/components/KyModal/dragM.js +1 -0
  27. package/lib/components/KyMore/index.js +74 -0
  28. package/lib/components/KyPreview/index.js +1 -0
  29. package/lib/components/KyTable/AddFieldsModal.js +360 -0
  30. package/lib/components/KyTable/action.js +222 -0
  31. package/lib/components/KyTable/checkButtons.js +244 -0
  32. package/lib/components/KyTable/data.js +726 -0
  33. package/lib/components/KyTable/expexcel.js +269 -0
  34. package/lib/components/KyTable/highSearchForm.js +749 -0
  35. package/lib/components/KyTable/highSelect.js +313 -0
  36. package/lib/components/KyTable/index.js +2075 -0
  37. package/lib/components/KyTable/marqueenText.js +142 -0
  38. package/lib/components/KyTable/overflowColumn.js +113 -0
  39. package/lib/components/KyTable/text.js +96 -0
  40. package/lib/components/KyTable/textGroup.js +108 -0
  41. package/lib/components/KyTitle/index.js +127 -0
  42. package/lib/components/KyUpload/index.js +1 -0
  43. package/lib/index.js +240 -59
  44. package/lib/layouts/Exception/403/index.js +1 -0
  45. package/lib/layouts/Exception/403.js +1 -0
  46. package/lib/layouts/Exception/404.js +1 -0
  47. package/lib/layouts/Exception/500.js +1 -0
  48. package/lib/layouts/LeftMenu/index.js +1 -0
  49. package/lib/layouts/Login/lyPassword.js +1 -0
  50. package/lib/layouts/NavigationBar/index.js +1 -0
  51. package/lib/layouts/Top/index.js +1 -0
  52. package/lib/layouts/TopMenu/index.js +1 -0
  53. package/lib/layouts/layout/index.js +1 -0
  54. package/lib/layouts/mixTop/index.js +1 -0
  55. package/lib/layouts/settingDrawer/colorChange.js +1 -0
  56. package/lib/layouts/settingDrawer/colorPicker.js +1 -0
  57. package/lib/utils/MD5.js +256 -0
  58. package/lib/utils/NHCore.js +273 -0
  59. package/lib/utils/NHFetch.js +451 -0
  60. package/lib/utils/common.js +516 -0
  61. package/lib/utils/createUuid.js +37 -0
  62. package/lib/utils/equalsObj.js +59 -0
  63. package/lib/utils/getLoginUser.js +10 -0
  64. package/lib/utils/getSize.js +27 -0
  65. package/lib/utils/index.js +804 -0
  66. package/package.json +2 -2
package/README.md CHANGED
@@ -6,12 +6,15 @@ npm publish
6
6
 
7
7
  ## 前端dlt-for-react依赖包版本更新记录
8
8
 
9
- ##### 当前最新版本:1.0.3
9
+ ##### 当前最新版本:1.0.5
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组件
15
18
  #### V1.0.3—2023年9月28日
16
19
  1. 补充KyInputPicker、KyModal、KyUpload及KyPreview组件
17
20
  #### V1.0.2—2023年9月27日
@@ -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,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,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
+ }