@dt-frames/ui 1.0.32 → 1.0.33

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 (32) hide show
  1. package/es/assets/locales/en.json +2 -1
  2. package/es/assets/locales/zh.json +3 -2
  3. package/es/components/index.d.ts +1 -2
  4. package/es/components/table/src/components/TableActions.d.ts +1 -1
  5. package/es/components/table/src/components/setting/Download.d.ts +1 -1
  6. package/es/components/table/src/index.d.ts +10 -10
  7. package/es/index.js +171 -852
  8. package/es/style/assets/style/index.less +10 -0
  9. package/es/style/assets/style/reset.less +17 -0
  10. package/es/style/components/container/index.less +85 -0
  11. package/es/style/components/forms/index.less +107 -0
  12. package/es/style/components/icons/index.less +108 -0
  13. package/es/style/components/iframe/index.less +3 -0
  14. package/es/style/components/iframe/src/index.less +3 -0
  15. package/es/style/components/modal/index.less +60 -0
  16. package/es/style/components/table/index.less +217 -0
  17. package/es/style/components/tree/index.less +53 -0
  18. package/es/style/theme/footer/index.less +16 -0
  19. package/es/style/theme/header/index.less +451 -0
  20. package/es/style/theme/header/set-theme.less +68 -0
  21. package/es/style/theme/sider/index.less +212 -0
  22. package/es/style/theme/tabs/index.less +165 -0
  23. package/es/style/theme/theme.less +73 -0
  24. package/es/style/theme/transition.less +105 -0
  25. package/es/theme/content/index.d.ts +44 -0
  26. package/es/theme/header/components/setting-theme.d.ts +2604 -0
  27. package/es/theme/header/components/user-info.d.ts +8318 -0
  28. package/es/theme/sider/components/basic-menu/basic-menu.d.ts +1 -1
  29. package/es/theme/tabs/components/TabContent.d.ts +1 -1
  30. package/es/theme/tabs/components/TabRedo.d.ts +64 -0
  31. package/es/theme/tabs/index.d.ts +1429 -0
  32. package/package.json +1 -1
@@ -0,0 +1,10 @@
1
+ @import './reset.less';
2
+
3
+ @import '../../theme/theme.less';
4
+
5
+ @import '../../components/container/index.less';
6
+ @import '../../components/modal/src/index.less';
7
+ @import '../../components/forms/src/index.less';
8
+ @import '../../components/table/src/index.less';
9
+ @import '../../components/icons/src/index.less';
10
+ @import '../../components/iframe/src/index.less';
@@ -0,0 +1,17 @@
1
+ // 这里是需要覆盖的css样式
2
+ .ant-btn{
3
+ display: flex;
4
+ padding: 0 10px;
5
+ align-items: center;
6
+ justify-content: center;
7
+ svg{
8
+ display: block;
9
+ }
10
+ .dt-icon{
11
+ margin: 0 5px;
12
+ }
13
+ }
14
+
15
+ .ant-picker{
16
+ width: 100%;
17
+ }
@@ -0,0 +1,85 @@
1
+ .scroll-container {
2
+ width: 100%;
3
+ height: 100%;
4
+
5
+ .scrollbar__wrap {
6
+ overflow-x: hidden;
7
+ }
8
+
9
+ .scrollbar__view {
10
+ box-sizing: border-box;
11
+ }
12
+ }
13
+
14
+ .scrollbar {
15
+ position: relative;
16
+ height: 100%;
17
+ overflow: hidden;
18
+
19
+ &__wrap {
20
+ height: 100%;
21
+ overflow: auto;
22
+
23
+ &--hidden-default {
24
+ scrollbar-width: none;
25
+
26
+ &::-webkit-scrollbar {
27
+ display: none;
28
+ width: 0;
29
+ height: 0;
30
+ opacity: 0;
31
+ }
32
+ }
33
+ }
34
+
35
+ &__thumb {
36
+ position: relative;
37
+ display: block;
38
+ width: 0;
39
+ height: 0;
40
+ cursor: pointer;
41
+ background-color: rgba(144, 147, 153, 0.3);
42
+ border-radius: inherit;
43
+ transition: 0.3s background-color;
44
+
45
+ &:hover {
46
+ background-color: rgba(144, 147, 153, 0.5);
47
+ }
48
+ }
49
+
50
+ &__bar {
51
+ position: absolute;
52
+ right: 2px;
53
+ bottom: 2px;
54
+ z-index: 1;
55
+ border-radius: 4px;
56
+ opacity: 0;
57
+ -webkit-transition: opacity 80ms ease;
58
+ transition: opacity 80ms ease;
59
+
60
+ &.is-vertical {
61
+ top: 2px;
62
+ width: 6px;
63
+
64
+ & > div {
65
+ width: 100%;
66
+ }
67
+ }
68
+
69
+ &.is-horizontal {
70
+ left: 2px;
71
+ height: 6px;
72
+
73
+ & > div {
74
+ height: 100%;
75
+ }
76
+ }
77
+ }
78
+ }
79
+
80
+ .scrollbar:active > .scrollbar__bar,
81
+ .scrollbar:focus > .scrollbar__bar,
82
+ .scrollbar:hover > .scrollbar__bar {
83
+ opacity: 1;
84
+ transition: opacity 340ms ease-out;
85
+ }
@@ -0,0 +1,107 @@
1
+ @import '../modal/index.less';
2
+
3
+ .text-secondary{
4
+ color: #666;
5
+ }
6
+
7
+ .suffix-item .suffix {
8
+ display: inline-flex;
9
+ padding-left: 6px;
10
+ margin-top: 1px;
11
+ line-height: 1;
12
+ align-items: center;
13
+ }
14
+
15
+ .form-btns{
16
+ button{
17
+ margin-left: 12px;
18
+ }
19
+
20
+ .advanced{
21
+ margin-left: 8px;
22
+ .text{
23
+ margin-right: 5px;
24
+ }
25
+ .basic-arrow{
26
+ margin-left: -8px;
27
+ }
28
+ }
29
+ }
30
+
31
+ .basic-arrow{
32
+ display: inline-block;
33
+ cursor: pointer;
34
+ transform: rotate(0deg);
35
+ transition: all 0.3s ease 0.1s;
36
+ transform-origin: center center;
37
+
38
+
39
+ .dt-icon{
40
+ vertical-align: middle;
41
+ color: @primary-color !important;
42
+ }
43
+
44
+ &--active{
45
+ transform: rotate(180deg);
46
+ }
47
+ }
48
+
49
+ .form-btns{
50
+ .ant-form-item-control-input-content{
51
+ display: flex;
52
+ .ant-btn{
53
+ display: flex;
54
+ align-items: center;
55
+ }
56
+ .ant-btn .dt-icon{
57
+ font-size: 20px;
58
+ height: 100%;
59
+
60
+ svg{
61
+ display: block;
62
+ height: 100%;
63
+ text-align: center;
64
+ }
65
+
66
+ .preIcon{
67
+ padding-right: 2px;
68
+ }
69
+ }
70
+
71
+ .ant-btn-primary .dt-icon svg{
72
+ color: #fff;
73
+ }
74
+ }
75
+ }
76
+
77
+ .basic-form--compact{
78
+ .ant-form-item {
79
+ margin-bottom: 14px !important;
80
+ }
81
+ }
82
+
83
+ .input-with-dialog{
84
+ position: relative;
85
+ span{
86
+ background: none;
87
+ cursor: pointer;
88
+ }
89
+
90
+ i{
91
+ position: absolute;
92
+ right: 15px;
93
+ top: 0;
94
+ bottom: 0;
95
+ margin: auto;
96
+ line-height: 32px;
97
+ opacity: 0.3;
98
+ cursor: pointer;
99
+ }
100
+
101
+ .ant-input{
102
+ color: #333;
103
+ cursor: pointer;
104
+ }
105
+ }
106
+
107
+
@@ -0,0 +1,108 @@
1
+ @primary-color: #269ac1;
2
+ @icon-pick-hover-color: #269ac1;
3
+
4
+ .svg-icon {
5
+ fill: currentColor;
6
+ vertical-align: middle;
7
+ }
8
+
9
+ .dt-icon{
10
+ display: inline-block;
11
+ text-align: center;
12
+ vertical-align: middle;
13
+ & > svg{
14
+ vertical-align: middle;
15
+ }
16
+ }
17
+
18
+ .dt-pick-icon {
19
+ display: flex;
20
+ flex-direction: row;
21
+ height: 500px;
22
+
23
+ &__menus{
24
+ height: 100%;
25
+ overflow-y: auto;
26
+ width: 140px;
27
+ border-right: 1px solid #e7e7e7;
28
+ border-top: 1px solid #e7e7e7;
29
+ background: #fff;
30
+ .menu{
31
+ border-bottom: 1px solid #e7e7e7;
32
+ padding: 8px;
33
+ text-align: center;
34
+ cursor: pointer;
35
+ transform: all 0.25s;
36
+ p{
37
+ font-size: 14px;
38
+ line-height: 24px;
39
+ margin: 0;
40
+ span{
41
+ opacity: 0.7;
42
+ font-size: 12px;
43
+ padding-left: 6px;
44
+ }
45
+ }
46
+ &.active, &:hover{
47
+ background: @primary-color;
48
+ color: #fff;
49
+ }
50
+ }
51
+ }
52
+
53
+ &__content{
54
+ height: 100%;
55
+ overflow-y: auto;
56
+ flex: 1;
57
+ background: #fff;
58
+
59
+ .ant-input-search{
60
+ width: 50%;
61
+ margin: 0 25% 40px 25%;
62
+ }
63
+
64
+ &_item{
65
+ display: flex;
66
+ flex-direction: row;
67
+ flex-wrap: wrap;
68
+ padding: 20px;
69
+ a {
70
+ margin: 6px;
71
+ line-height: 22px;
72
+ height: 30px;
73
+ width: 30px;
74
+ text-align: center;
75
+ cursor: pointer;
76
+ padding: 4px;
77
+ transform: all 0.2s;
78
+ border: 1px solid #fff;
79
+ &:hover, &.active-icon{
80
+ border: 1px solid @primary-color;
81
+ border-radius: 4px;
82
+ color: @primary-color;
83
+ }
84
+ }
85
+
86
+ .ant-input-group-wrapper-sm{
87
+ input, .ant-btn-sm{
88
+ height: 28px;
89
+ }
90
+ }
91
+ }
92
+
93
+ i{
94
+ font-size: 22px;
95
+ }
96
+ }
97
+ }
98
+
99
+ .dt-pick-icon-item{
100
+ .ant-tooltip-inner, .ant-tooltip-arrow-content {
101
+ background: #fff !important;
102
+ color: @icon-pick-hover-color ;
103
+ }
104
+ }
105
+
106
+ .dt-icon-dialog > div{
107
+ top: 0 !important;
108
+ }
@@ -0,0 +1,3 @@
1
+ .iframe-page{
2
+ height: 100%;
3
+ }
@@ -0,0 +1,3 @@
1
+ .iframe-page{
2
+ height: 100%;
3
+ }
@@ -0,0 +1,60 @@
1
+ .fullscreen-modal {
2
+ overflow: hidden;
3
+
4
+ .ant-modal {
5
+ top: 0 !important;
6
+ right: 0 !important;
7
+ bottom: 0 !important;
8
+ left: 0 !important;
9
+ width: 100% !important;
10
+ height: 100%;
11
+ padding: 0;
12
+
13
+ &-content {
14
+ height: 100%;
15
+ }
16
+ }
17
+ }
18
+
19
+ .dt-basic-modal-close {
20
+ display: flex;
21
+ height: 95%;
22
+ align-items: center;
23
+ justify-content: space-around;
24
+
25
+ > span {
26
+ margin-left: 48px;
27
+ font-size: 16px;
28
+ }
29
+
30
+ &--can-full {
31
+ margin-right: 15px;
32
+ > i {
33
+ padding-right: 15px;
34
+ width: 40px;
35
+ }
36
+ }
37
+
38
+ &:not(&--can-full) {
39
+ > i:nth-child(1) {
40
+ &:hover {
41
+ font-weight: 700;
42
+ }
43
+ }
44
+
45
+ &>i:nth-child(1) {
46
+ display: inline-block;
47
+ padding: 10px;
48
+
49
+ &:hover {
50
+ color: @primary-color;
51
+ }
52
+ }
53
+
54
+ &>i:last-child {
55
+ &:hover {
56
+ color: @error-color;
57
+ }
58
+ }
59
+ }
60
+ }
@@ -0,0 +1,217 @@
1
+ .table-striped td {
2
+ background-color: #fafafa;
3
+ }
4
+
5
+ .dt-table-header{
6
+ .dt-table-header-actions{
7
+ display: flex;
8
+ flex-direction: row;
9
+ justify-content: space-between;
10
+ }
11
+
12
+ .dt-table-header-actions__right{
13
+ display: flex;
14
+ .dt-icon{
15
+ margin: 0 5px;
16
+ cursor: pointer;
17
+ }
18
+ }
19
+ }
20
+
21
+ .column-setting{
22
+ &__check-item{
23
+ display: flex;
24
+ align-items: center;
25
+ min-width: 100%;
26
+ padding: 4px 16px 8px 0;
27
+ }
28
+ &__popover-title {
29
+ display: flex;
30
+ }
31
+ }
32
+
33
+ .column-setting__cloumn-list {
34
+ .ant-popover-inner-content{
35
+ padding: 12px 0 0 0;
36
+ }
37
+ .ant-checkbox-group {
38
+ width: 100%;
39
+ min-width: 260px;
40
+ }
41
+
42
+ .drag-icon{
43
+ margin: 0 5px;
44
+ cursor: move;
45
+ }
46
+
47
+ .ant-checkbox-wrapper{
48
+ flex: 1;
49
+ }
50
+
51
+ .dt-icon{
52
+ cursor: pointer;
53
+ display: flex;
54
+ }
55
+
56
+ .disabled{
57
+ .dt-icon{
58
+ cursor: not-allowed;
59
+ opacity: 0.5;
60
+ }
61
+ }
62
+
63
+ .active{
64
+ .dt-icon{
65
+ color: @primary-color !important;
66
+ }
67
+ }
68
+
69
+ .ant-popover-inner-content {
70
+ max-height: 400px;
71
+ overflow-y: auto;
72
+ }
73
+ }
74
+
75
+ .dt-table-action-btn{
76
+ width: 24px;
77
+ display: inline-block;
78
+ vertical-align: middle;
79
+ cursor: pointer;
80
+ i{
81
+ color: @primary-color;
82
+ }
83
+ }
84
+
85
+ .dt-table-action-dropdown{
86
+ vertical-align: middle;
87
+ cursor: pointer;
88
+ }
89
+
90
+ .ant-table-fixed-left table, .ant-table-fixed-right table{
91
+ width: min-content;
92
+ }
93
+
94
+ .ant-table-cell {
95
+ height: 44px !important;
96
+ line-height: 24px !important;
97
+ font-size: 14px !important;
98
+ padding: 4px 8px !important;
99
+ }
100
+
101
+ .ant-table-small{
102
+ .ant-table-cell {
103
+ height: 32px !important;
104
+ line-height: 16px !important;
105
+ font-size: 12px !important;
106
+ padding: 2px 8px !important;
107
+ }
108
+ }
109
+
110
+ .ant-table-middle{
111
+ .ant-table-cell {
112
+ height: 38px !important;
113
+ line-height: 20px !important;
114
+ font-size: 13px !important;
115
+ padding: 4px 8px !important;
116
+ }
117
+ }
118
+
119
+ .dt-action-select{
120
+ .ant-dropdown-menu-title-content{
121
+ display: flex;
122
+ align-items: center;
123
+ font-size: 13px;
124
+ svg{
125
+ display: block;
126
+ }
127
+
128
+ .dt-icon{
129
+ padding-right: 8px;
130
+ }
131
+ }
132
+ }
133
+
134
+
135
+ .dt-table{
136
+ .ant-table-pagination{
137
+ margin: 0 !important;
138
+ padding: 10px 0;
139
+ border: 1px solid #f0f0f0;
140
+ }
141
+
142
+ .ant-table-title{
143
+ padding: 8px 0 !important;
144
+ border: none !important;
145
+ }
146
+
147
+ .ant-table-resize-handle{
148
+ right: -7px;
149
+ .ant-table-resize-handle-line{
150
+ width: 2px;
151
+ }
152
+ }
153
+
154
+ .ant-table-body {
155
+ position: relative;
156
+ table{
157
+ position: absolute;
158
+ top: 0;
159
+ left: 0;
160
+ }
161
+ }
162
+
163
+ .form-btns{
164
+ button:first-of-type {
165
+ margin-left: 0;
166
+ }
167
+ }
168
+
169
+ .ant-table-thead > tr > th{
170
+ font-weight: bolder;
171
+ color: #333;
172
+ }
173
+
174
+ .ant-input-number-sm, .ant-input-sm{
175
+ height: 26px;
176
+ font-size: 12px;
177
+ line-height: 26px;
178
+ }
179
+ }
180
+
181
+ .dt-table-no-pagation .ant-table-container {
182
+ border-bottom: 1px solid #f0f0f0;
183
+ }
184
+
185
+ .edit-cell-rule-popover .ant-popover-inner-content{
186
+ padding: 4px 8px;
187
+ color: #ed6f6f;
188
+ border-radius: 2px;
189
+ }
190
+
191
+ .ant-table-empty{
192
+ border-bottom: 1px solid #f0f0f0;
193
+ .ant-table-tbody{
194
+ .ant-table-cell{
195
+ border-bottom: none;
196
+ img{
197
+ width: 280px;
198
+ }
199
+ }
200
+ }
201
+ }
202
+
203
+ .column-select{
204
+ padding: 20px;
205
+
206
+ .ant-row{
207
+ width: 100%;
208
+ line-height: 32px;
209
+ }
210
+ .ant-divider-horizontal{
211
+ margin: 16px 0;
212
+ }
213
+ }
214
+
215
+ .ant-table-row-expand-icon{
216
+ margin: 0 8px;
217
+ }
@@ -0,0 +1,53 @@
1
+ .dt-tree{
2
+ display: flex;
3
+ flex-direction: column;
4
+ height: 100%;
5
+
6
+ .dt-tree-header{
7
+ .headerTitle{
8
+ text-align: center;
9
+ line-height: 32px;
10
+ font-weight: bolder;
11
+ }
12
+
13
+ .dt-tree-search{
14
+ display: flex;
15
+ padding: 0 0 10px 10px;
16
+ border-bottom: 1px solid #e7e7e7;
17
+ &>i{
18
+ width: 24px;
19
+ display: block;
20
+ text-align: center;
21
+ cursor: pointer;
22
+ }
23
+ .dt-tree-search-input{
24
+ flex: 1;
25
+ input{
26
+ font-size: 12px;
27
+ }
28
+ }
29
+ }
30
+ }
31
+
32
+ .ant-spin-nested-loading{
33
+ flex: 1;
34
+ overflow-y: auto;
35
+ padding: 10px 0;
36
+
37
+ .tree-title{
38
+ font-size: 12px;
39
+ }
40
+ }
41
+ }
42
+
43
+ .dt-tree.middle .ant-spin-nested-loading{
44
+ .tree-title{
45
+ font-size: 13px;
46
+ }
47
+ }
48
+
49
+ .dt-tree.large .ant-spin-nested-loading{
50
+ .tree-title{
51
+ font-size: 14px;
52
+ }
53
+ }
@@ -0,0 +1,16 @@
1
+ .dt-theme-footer{
2
+ text-align: center;
3
+ padding: 0;
4
+ width: 100%;
5
+ display: block;
6
+ position: absolute;
7
+ right: 0;
8
+ bottom: 0;
9
+ z-index: 1;
10
+ background: #ebeff5;
11
+ color: #b5b5b5;
12
+ border-top: 1px solid #e7e7e7;
13
+ span:first-of-type{
14
+ padding-right: 10px;
15
+ }
16
+ }