dlt-for-react 1.0.12 → 1.0.14

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.
package/README.md CHANGED
@@ -8,7 +8,7 @@ npm publish
8
8
 
9
9
  ## 前端 dlt-for-react 依赖包版本更新记录
10
10
 
11
- ##### 当前最新版本:1.0.12
11
+ ##### 当前最新版本:1.0.14
12
12
 
13
13
  ##### 安装依赖
14
14
 
@@ -16,6 +16,14 @@ npm publish
16
16
 
17
17
  ##### 版本修改记录
18
18
 
19
+ #### V1.0.14—2023 年 10 月 25 日
20
+
21
+ 1. 补充 KyTableCardList 组件
22
+
23
+ #### V1.0.13—2023 年 10 月 24 日
24
+
25
+ 1. 补充 KyTree 组件
26
+
19
27
  #### V1.0.11—2023 年 10 月 23 日
20
28
 
21
29
  1. 优化 NHFetch 支持文件上传模式兼容请求头配置 FormData
@@ -0,0 +1,200 @@
1
+ :global {
2
+ .ky-table-card-list {
3
+ width: 100%;
4
+ height: 100%;
5
+ .custom_scrollbars {
6
+ width: 100%;
7
+ }
8
+ .searchDiv {
9
+ margin-bottom: 16px;
10
+ .hide_select_field_icon {
11
+ .ant-select-arrow {
12
+ display: none;
13
+ }
14
+ }
15
+
16
+ .ant-select .ant-select-selection {
17
+ border: none !important;
18
+ outline: none !important;
19
+ box-shadow: none !important;
20
+ }
21
+ .search-input {
22
+ width: 230px;
23
+ }
24
+ .search-radio,
25
+ .search-checkbox {
26
+ margin-left: 28px;
27
+ }
28
+
29
+ .search-btn {
30
+ margin: 0 20px;
31
+ }
32
+ .height-text {
33
+ margin-left: 10px;
34
+ }
35
+ }
36
+
37
+ .highSearch-box {
38
+ margin-bottom: 10px;
39
+ div.ant-select-selection {
40
+ border-width: 1px !important;
41
+ }
42
+ button.ant-btn {
43
+ margin: 10px 0 0px 10px;
44
+ }
45
+ div.ant-form-item {
46
+ margin-bottom: 0px;
47
+ }
48
+ span.ant-time-picker {
49
+ width: 100%;
50
+ }
51
+ }
52
+ .content-box {
53
+ padding: 2px 0 0 0;
54
+ .card-list {
55
+ position: relative;
56
+ display: flex;
57
+ justify-content: flex-start;
58
+ width: 100%;
59
+ height: 110px;
60
+ margin-bottom: 16px;
61
+ padding: 24px;
62
+ padding: 24px 24px 24px 22px;
63
+ overflow: hidden;
64
+ background: #ffffff;
65
+ border-right: 1px solid #d9d9d9;
66
+ border-radius: 6px;
67
+ box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.12);
68
+ opacity: 1;
69
+
70
+ .statusLine {
71
+ position: absolute;
72
+ top: 0;
73
+ left: 0;
74
+ width: 6px;
75
+ height: 110px;
76
+ background: #397ef0;
77
+ }
78
+ .item-left {
79
+ flex-shrink: 0;
80
+ width: 70%;
81
+ .title_box {
82
+ display: flex;
83
+ .title {
84
+ width: 400px;
85
+ margin-bottom: 16px;
86
+ overflow: hidden;
87
+ color: #397ef0;
88
+ font-weight: bold;
89
+ font-size: 18px;
90
+ font-family: Source Han Sans CN;
91
+ white-space: nowrap;
92
+ text-overflow: ellipsis;
93
+ cursor: pointer;
94
+ opacity: 1;
95
+ }
96
+ .subhead {
97
+ margin-left: 25px;
98
+ .subhead_label {
99
+ color: rgba(0, 0, 0, 0.85);
100
+ }
101
+ }
102
+ }
103
+ .label,
104
+ .value {
105
+ display: inline-block;
106
+ color: rgba(0, 0, 0, 0.85);
107
+ font-weight: bold;
108
+ font-size: 14px;
109
+ font-family: Source Han Sans CN;
110
+ }
111
+ .value {
112
+ color: rgba(0, 0, 0, 0.65);
113
+ font-weight: 400;
114
+ }
115
+ .warningText {
116
+ color: #ff4d4f;
117
+ cursor: pointer;
118
+ }
119
+ }
120
+ .status {
121
+ flex-basis: 10%;
122
+ flex-shrink: 0;
123
+ margin-right: 16px;
124
+ line-height: 62px;
125
+ text-align: right;
126
+ .dot {
127
+ position: relative;
128
+ top: -2px;
129
+ display: inline-block;
130
+ width: 6px;
131
+ height: 6px;
132
+ margin-right: 4px;
133
+ border-radius: 50%;
134
+ }
135
+ .status-text {
136
+ font-weight: 400;
137
+ font-size: 14px;
138
+ font-family: Source Han Sans CN;
139
+ opacity: 1;
140
+ }
141
+ }
142
+ .operate {
143
+ flex-basis: 20%;
144
+ flex-shrink: 0;
145
+ line-height: 62px;
146
+ text-align: right;
147
+ .iconDown {
148
+ margin-left: 4px;
149
+ font-size: 12px;
150
+ }
151
+ .action {
152
+ color: #397ef0;
153
+ font-weight: 400;
154
+ font-size: 14px;
155
+ font-family: Source Han Sans CN;
156
+ opacity: 1;
157
+ &[disabled] {
158
+ color: rgba(0, 0, 0, 0.45);
159
+ }
160
+ .operate-icon {
161
+ width: 20px;
162
+ height: 20px;
163
+ }
164
+ }
165
+ }
166
+ }
167
+ }
168
+ .card-list-pagination {
169
+ width: 100%;
170
+ height: 24px;
171
+ .ant-pagination {
172
+ text-align: right;
173
+ }
174
+ .ant-pagination.mini .ant-pagination-total-text,
175
+ .ant-pagination.mini .ant-pagination-simple-pager {
176
+ float: left;
177
+ }
178
+ .ant-pagination-item-active {
179
+ background: #fff;
180
+ a {
181
+ color: #397ef0;
182
+ }
183
+ }
184
+ }
185
+ }
186
+ .ant-dropdown-menu-item .action {
187
+ color: #397ef0;
188
+ font-weight: 400;
189
+ font-size: 14px;
190
+ font-family: Source Han Sans CN;
191
+ opacity: 1;
192
+ &[disabled] {
193
+ color: rgba(0, 0, 0, 0.45);
194
+ }
195
+ .operate-icon {
196
+ width: 20px;
197
+ height: 20px;
198
+ }
199
+ }
200
+ }
@@ -0,0 +1,129 @@
1
+ :global {
2
+ .Ky_tree {
3
+ position: relative;
4
+ // float: left;
5
+ margin-right: 20px;
6
+ background: transparent;
7
+ border-right: 1px solid #ddd;
8
+ .ant-input-search .ant-input {
9
+ margin-left: 4px;
10
+ border: 0px;
11
+ box-shadow: none;
12
+ }
13
+ // 滚动组件
14
+ .Ky_scroll {
15
+ & > div:nth-child(1) {
16
+ margin-bottom: 15px !important;
17
+ overflow-x: auto !important;
18
+ overflow-y: scroll !important;
19
+ }
20
+
21
+ & > div:nth-child(2) {
22
+ display: none;
23
+ }
24
+
25
+ .ant-tree {
26
+ padding-bottom: 16px;
27
+ ul,
28
+ li {
29
+ // overflow: hidden;
30
+ text-overflow: ellipsis;
31
+ }
32
+ li {
33
+ .ant-tree-node-content-wrapper {
34
+ display: inline-block;
35
+ }
36
+ // 子菜单
37
+ ul {
38
+ margin: 0;
39
+ padding: 0 16px;
40
+ }
41
+ }
42
+ }
43
+ }
44
+ // 搜索框
45
+ .Ky_tree_headerBox {
46
+ width: 100%;
47
+ padding: 3px, 0, 0, 8px;
48
+ line-height: 40px;
49
+ text-align: right;
50
+ // 隐藏搜索框右边图标
51
+ .ant-input-affix-wrapper .ant-input-suffix {
52
+ display: none;
53
+ }
54
+ .Ky_tree_searchInput {
55
+ margin: 0 5px;
56
+ padding: 0;
57
+ text-indent: 10px;
58
+ border: none;
59
+ border-bottom: 1px solid #ccc;
60
+ border-radius: 0;
61
+ box-shadow: none;
62
+ transition: all linear 0.5s;
63
+ .Ky_tree_search_icon {
64
+ // color: rgba(0, 0, 0, 0.8);
65
+ cursor: pointer;
66
+ }
67
+ input {
68
+ // margin-left: -8px;
69
+ border-width: 0px;
70
+ &:active,
71
+ &:focus,
72
+ &:hover {
73
+ border: none;
74
+ // border-bottom: 1px solid #ccc;
75
+ border-radius: 0;
76
+ box-shadow: none;
77
+ }
78
+ }
79
+ }
80
+ // 添加图标
81
+ .Ky_tree_addBtn {
82
+ margin-right: 8px;
83
+ font-size: 16px;
84
+ cursor: pointer;
85
+ }
86
+ }
87
+ // 切换栏按钮
88
+ .Ky_tree_btn {
89
+ position: absolute;
90
+ top: 48%;
91
+ right: -18px;
92
+ width: 18px;
93
+ height: 36px;
94
+ line-height: 36px;
95
+ background-color: #f1f2f6;
96
+ border-radius: 0 36px 36px 0;
97
+ cursor: pointer;
98
+ .trigger {
99
+ color: #1890ff;
100
+ font-size: 12px;
101
+ transition: color 0.3s;
102
+ }
103
+ &:hover {
104
+ background-color: #1890ff;
105
+ .trigger {
106
+ color: #fff;
107
+ }
108
+ }
109
+ }
110
+ // 右键弹出栏
111
+ .Ky_tree_menu {
112
+ list-style: none;
113
+ a {
114
+ padding: 5px 10px;
115
+ cursor: pointer;
116
+ &:hover {
117
+ background: #e6f7ff;
118
+ }
119
+ }
120
+ }
121
+ // 侧边栏关闭时的样式
122
+ &.ant-layout-sider-collapsed {
123
+ flex: 0 0 0px !important;
124
+ width: 0px !important;
125
+ min-width: 0px !important;
126
+ max-width: 0px !important;
127
+ }
128
+ }
129
+ }