tntd 3.0.69 → 3.0.71

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 (70) hide show
  1. package/es/array-input/index.js +3 -0
  2. package/es/array-input/index.js.map +1 -1
  3. package/es/button/button.js +2 -2
  4. package/es/button/button.js.map +1 -1
  5. package/es/button/button.less +175 -0
  6. package/es/button/style/index.less +7 -0
  7. package/es/button/style/mixin.less +118 -65
  8. package/es/prev-locale.js +4 -0
  9. package/es/prev-locale.js.map +1 -1
  10. package/es/style/themes/default.less +2 -4
  11. package/es/table/style/size.less +4 -2
  12. package/es/tntd-action/Action.js +87 -10
  13. package/es/tntd-action/index.js +61 -7
  14. package/es/tntd-action/index.js.map +1 -1
  15. package/es/tntd-action/index.less +35 -0
  16. package/es/tntd-checkbox-select/index.js +3 -9
  17. package/es/tntd-checkbox-select/index.js.map +1 -1
  18. package/lib/array-input/index.d.ts.map +1 -1
  19. package/lib/array-input/index.js +3 -0
  20. package/lib/array-input/index.js.map +1 -1
  21. package/lib/button/button.d.ts +2 -2
  22. package/lib/button/button.d.ts.map +1 -1
  23. package/lib/button/button.js +2 -2
  24. package/lib/button/button.js.map +1 -1
  25. package/lib/button/button.less +175 -0
  26. package/lib/button/style/index.less +7 -0
  27. package/lib/button/style/mixin.less +118 -65
  28. package/lib/prev-locale.d.ts +3 -0
  29. package/lib/prev-locale.d.ts.map +1 -1
  30. package/lib/prev-locale.js +4 -0
  31. package/lib/prev-locale.js.map +1 -1
  32. package/lib/style/themes/default.less +2 -4
  33. package/lib/table/style/size.less +4 -2
  34. package/lib/tntd-action/index.d.ts +1 -2
  35. package/lib/tntd-action/index.d.ts.map +1 -1
  36. package/lib/tntd-action/index.js +61 -7
  37. package/lib/tntd-action/index.js.map +1 -1
  38. package/lib/tntd-action/index.less +35 -0
  39. package/lib/tntd-checkbox-select/index.d.ts.map +1 -1
  40. package/lib/tntd-checkbox-select/index.js +3 -9
  41. package/lib/tntd-checkbox-select/index.js.map +1 -1
  42. package/package.json +2 -2
  43. package/themes/default/variables.less +8 -0
  44. package/themes/default/variablesVar.less +9 -0
  45. package/es/checkbox/checkbox-group.js +0 -16
  46. package/es/checkbox/checkbox-group.js.map +0 -1
  47. package/es/radio/radio-group.js +0 -16
  48. package/es/radio/radio-group.js.map +0 -1
  49. package/es/steps/stepStyle/small.less +0 -5
  50. package/es/table/total-shower.js +0 -20
  51. package/es/table/total-shower.js.map +0 -1
  52. package/es/utils/simple-template.js +0 -19
  53. package/es/utils/simple-template.js.map +0 -1
  54. package/lib/checkbox/checkbox-group.d.ts +0 -8
  55. package/lib/checkbox/checkbox-group.d.ts.map +0 -1
  56. package/lib/checkbox/checkbox-group.js +0 -16
  57. package/lib/checkbox/checkbox-group.js.map +0 -1
  58. package/lib/radio/radio-group.d.ts +0 -8
  59. package/lib/radio/radio-group.d.ts.map +0 -1
  60. package/lib/radio/radio-group.js +0 -16
  61. package/lib/radio/radio-group.js.map +0 -1
  62. package/lib/steps/stepStyle/small.less +0 -5
  63. package/lib/table/total-shower.d.ts +0 -9
  64. package/lib/table/total-shower.d.ts.map +0 -1
  65. package/lib/table/total-shower.js +0 -20
  66. package/lib/table/total-shower.js.map +0 -1
  67. package/lib/utils/simple-template.d.ts +0 -9
  68. package/lib/utils/simple-template.d.ts.map +0 -1
  69. package/lib/utils/simple-template.js +0 -19
  70. package/lib/utils/simple-template.js.map +0 -1
@@ -37,6 +37,9 @@
37
37
  &-tertiary {
38
38
  .button-variant-tertiary(@btn-default-color, @primary-color, @btn-tertiary-bg);
39
39
  }
40
+ &-ai {
41
+ .button-variant-ai(@btn-primary-color, @primary-color, @btn-ai-bg);
42
+ }
40
43
  &.@{btn-prefix-cls}-primary {
41
44
  .button-disabled(@btn-primary-color, @blue-3, @blue-3);
42
45
  }
@@ -75,3 +78,175 @@
75
78
 
76
79
  .button-disabled(@btn-disable-color; @btn-disable-bg; transparent);
77
80
  }
81
+
82
+ // AI按钮
83
+ @ai-animation-duration: 0.3s;
84
+ @ai-animation-easing: cubic-bezier(0.645, 0.045, 0.355, 1);
85
+ @ai-overlay-opacity: 0.2;
86
+
87
+ .ai-gradient-overlay(@overlay-color; @base-gradient) {
88
+ background: linear-gradient(0deg, @overlay-color 0%, @overlay-color 100%), @base-gradient;
89
+ }
90
+
91
+ .generate-hover-in-animation(@name; @background) {
92
+ @keyframes @name {
93
+ 0% {
94
+ background: @background;
95
+ }
96
+ 10% {
97
+ .ai-gradient-overlay(rgba(255, 255, 255, 0.02), @background);
98
+ }
99
+ 20% {
100
+ .ai-gradient-overlay(rgba(255, 255, 255, 0.04), @background);
101
+ }
102
+ 30% {
103
+ .ai-gradient-overlay(rgba(255, 255, 255, 0.06), @background);
104
+ }
105
+ 40% {
106
+ .ai-gradient-overlay(rgba(255, 255, 255, 0.08), @background);
107
+ }
108
+ 50% {
109
+ .ai-gradient-overlay(rgba(255, 255, 255, 0.1), @background);
110
+ }
111
+ 60% {
112
+ .ai-gradient-overlay(rgba(255, 255, 255, 0.12), @background);
113
+ }
114
+ 70% {
115
+ .ai-gradient-overlay(rgba(255, 255, 255, 0.14), @background);
116
+ }
117
+ 80% {
118
+ .ai-gradient-overlay(rgba(255, 255, 255, 0.16), @background);
119
+ }
120
+ 90% {
121
+ .ai-gradient-overlay(rgba(255, 255, 255, 0.18), @background);
122
+ }
123
+ 100% {
124
+ .ai-gradient-overlay(rgba(255, 255, 255, @ai-overlay-opacity), @background);
125
+ }
126
+ }
127
+ }
128
+
129
+ .generate-hover-out-animation(@name; @background) {
130
+ @keyframes @name {
131
+ 0% {
132
+ .ai-gradient-overlay(rgba(255, 255, 255, @ai-overlay-opacity), @background);
133
+ }
134
+ 10% {
135
+ .ai-gradient-overlay(rgba(255, 255, 255, 0.18), @background);
136
+ }
137
+ 20% {
138
+ .ai-gradient-overlay(rgba(255, 255, 255, 0.16), @background);
139
+ }
140
+ 30% {
141
+ .ai-gradient-overlay(rgba(255, 255, 255, 0.14), @background);
142
+ }
143
+ 40% {
144
+ .ai-gradient-overlay(rgba(255, 255, 255, 0.12), @background);
145
+ }
146
+ 50% {
147
+ .ai-gradient-overlay(rgba(255, 255, 255, 0.1), @background);
148
+ }
149
+ 60% {
150
+ .ai-gradient-overlay(rgba(255, 255, 255, 0.08), @background);
151
+ }
152
+ 70% {
153
+ .ai-gradient-overlay(rgba(255, 255, 255, 0.06), @background);
154
+ }
155
+ 80% {
156
+ .ai-gradient-overlay(rgba(255, 255, 255, 0.04), @background);
157
+ }
158
+ 90% {
159
+ .ai-gradient-overlay(rgba(255, 255, 255, 0.02), @background);
160
+ }
161
+ 100% {
162
+ background: @background;
163
+ }
164
+ }
165
+ }
166
+
167
+ .generate-active-animation(@name; @background) {
168
+ @keyframes @name {
169
+ 0% {
170
+ background: @background;
171
+ }
172
+ 10% {
173
+ .ai-gradient-overlay(rgba(0, 0, 0, 0.02), @background);
174
+ }
175
+ 20% {
176
+ .ai-gradient-overlay(rgba(0, 0, 0, 0.04), @background);
177
+ }
178
+ 30% {
179
+ .ai-gradient-overlay(rgba(0, 0, 0, 0.06), @background);
180
+ }
181
+ 40% {
182
+ .ai-gradient-overlay(rgba(0, 0, 0, 0.08), @background);
183
+ }
184
+ 50% {
185
+ .ai-gradient-overlay(rgba(0, 0, 0, 0.1), @background);
186
+ }
187
+ 60% {
188
+ .ai-gradient-overlay(rgba(0, 0, 0, 0.12), @background);
189
+ }
190
+ 70% {
191
+ .ai-gradient-overlay(rgba(0, 0, 0, 0.14), @background);
192
+ }
193
+ 80% {
194
+ .ai-gradient-overlay(rgba(0, 0, 0, 0.16), @background);
195
+ }
196
+ 90% {
197
+ .ai-gradient-overlay(rgba(0, 0, 0, 0.18), @background);
198
+ }
199
+ 100% {
200
+ .ai-gradient-overlay(rgba(0, 0, 0, @ai-overlay-opacity), @background);
201
+ }
202
+ }
203
+ }
204
+
205
+ .button-variant-ai(@color; @hover-color; @background) {
206
+ color: @color;
207
+ background: @background;
208
+ border: none;
209
+ text-shadow: @btn-text-shadow;
210
+ box-shadow: @btn-primary-shadow;
211
+
212
+ animation: ai-hover-out @ai-animation-duration @ai-animation-easing;
213
+ animation-fill-mode: both;
214
+
215
+ &:hover,
216
+ &:focus {
217
+ color: @color;
218
+ .ai-gradient-overlay(rgba(255, 255, 255, @ai-overlay-opacity), @background);
219
+ animation: ai-hover-in @ai-animation-duration @ai-animation-easing;
220
+ animation-fill-mode: both;
221
+ }
222
+
223
+ &:active,
224
+ &.active {
225
+ color: @color;
226
+ .ai-gradient-overlay(rgba(0, 0, 0, @ai-overlay-opacity), @background);
227
+ animation: ai-active-in @ai-animation-duration @ai-animation-easing;
228
+ animation-fill-mode: both;
229
+ }
230
+
231
+ .button-disabled(@white; @disabled-color; transparent);
232
+
233
+ // AI 按钮禁用状态的额外样式
234
+ &[disabled],
235
+ &.@{btn-prefix-cls}-disabled {
236
+ background: @btn-disable-bg-ai !important;
237
+ animation: none !important;
238
+ cursor: not-allowed;
239
+
240
+ &:hover,
241
+ &:focus,
242
+ &:active {
243
+ background: @btn-disable-bg-ai !important;
244
+ animation: none !important;
245
+ }
246
+ }
247
+
248
+ // linear-gradient不支持 transition 动画,使用 animation模拟 transition 动画,目前10帧差不多可以很丝滑
249
+ .generate-hover-in-animation(ai-hover-in; @background);
250
+ .generate-hover-out-animation(ai-hover-out; @background);
251
+ .generate-active-animation(ai-active-in; @background);
252
+ }
@@ -48,6 +48,7 @@
48
48
  .@{btn-prefix-cls}-group &:first-child {
49
49
  &:not(:last-child) {
50
50
  border-right-color: @btn-group-border;
51
+
51
52
  &[disabled] {
52
53
  border-right-color: @btn-default-border;
53
54
  }
@@ -57,6 +58,7 @@
57
58
  .@{btn-prefix-cls}-group &:last-child:not(:first-child),
58
59
  .@{btn-prefix-cls}-group & + & {
59
60
  border-left-color: @btn-group-border;
61
+
60
62
  &[disabled] {
61
63
  border-left-color: @btn-default-border;
62
64
  }
@@ -89,6 +91,7 @@
89
91
 
90
92
  &-round {
91
93
  .btn-round(@btn-prefix-cls);
94
+
92
95
  &.@{btn-prefix-cls}-icon-only {
93
96
  width: auto;
94
97
  }
@@ -130,6 +133,7 @@
130
133
 
131
134
  &&-loading {
132
135
  position: relative;
136
+
133
137
  &:not([disabled]) {
134
138
  pointer-events: none;
135
139
  }
@@ -141,6 +145,7 @@
141
145
 
142
146
  &&-loading:not(&-circle):not(&-circle-outline):not(&-icon-only) {
143
147
  padding-left: 29px;
148
+
144
149
  .@{iconfont-css-prefix}:not(:last-child) {
145
150
  margin-left: -14px;
146
151
  }
@@ -148,6 +153,7 @@
148
153
 
149
154
  &-sm&-loading:not(&-circle):not(&-circle-outline):not(&-icon-only) {
150
155
  padding-left: 24px;
156
+
151
157
  .@{iconfont-css-prefix} {
152
158
  margin-left: -17px;
153
159
  }
@@ -218,6 +224,7 @@ a.@{btn-prefix-cls} {
218
224
  &-lg {
219
225
  line-height: calc(@btn-height-lg - 2px);
220
226
  }
227
+
221
228
  &-sm {
222
229
  line-height: calc(@btn-height-sm - 2px);
223
230
  }
@@ -8,9 +8,11 @@
8
8
  }
9
9
 
10
10
  .button-disabled(@color: @btn-disable-color; @background: @btn-disable-bg; @border: @btn-disable-border) {
11
+
11
12
  &-disabled,
12
13
  &.disabled,
13
14
  &[disabled] {
15
+
14
16
  &,
15
17
  &:hover,
16
18
  &:focus,
@@ -32,16 +34,12 @@
32
34
 
33
35
  &:hover,
34
36
  &:focus {
35
- .button-color(
36
- @color; ~`colorPalette('@{background}', 5) `; ~`colorPalette('@{background}', 5) `
37
- );
37
+ .button-color(@color; ~`colorPalette('@{background}', 5) `; ~`colorPalette('@{background}', 5) `);
38
38
  }
39
39
 
40
40
  &:active,
41
41
  &.active {
42
- .button-color(
43
- @color; ~`colorPalette('@{background}', 7) `; ~`colorPalette('@{background}', 7) `
44
- );
42
+ .button-color(@color; ~`colorPalette('@{background}', 7) `; ~`colorPalette('@{background}', 7) `);
45
43
  }
46
44
 
47
45
  .button-disabled();
@@ -52,51 +50,56 @@
52
50
 
53
51
  &:hover,
54
52
  &:focus {
55
- .button-color(
56
- ~`colorPalette('@{btn-primary-bg}', 5) `; @background; ~`colorPalette('@{btn-primary-bg}', 5)
57
- `
58
- );
53
+ .button-color(~`colorPalette('@{btn-primary-bg}', 5) `; @background; ~`colorPalette('@{btn-primary-bg}', 5) `);
59
54
  }
55
+
60
56
  &:active,
61
57
  &.active {
62
- .button-color(
63
- ~`colorPalette('@{btn-primary-bg}', 7) `; @background; ~`colorPalette('@{btn-primary-bg}', 7)
64
- `
65
- );
58
+ .button-color(~`colorPalette('@{btn-primary-bg}', 7) `; @background; ~`colorPalette('@{btn-primary-bg}', 7) `);
66
59
  }
60
+
67
61
  .button-disabled();
68
62
  }
63
+
69
64
  .button-variant-ghost(@color; @border: @color) {
70
65
  .button-color(@color; transparent; @border);
71
66
  text-shadow: none;
67
+
72
68
  &:hover,
73
69
  &:focus {
74
- & when (@border = transparent) {
70
+ & when (@border =transparent) {
75
71
  .button-color(~`colorPalette('@{color}', 5) `; transparent; transparent);
76
72
  }
77
- & when not(@border = transparent) {
73
+
74
+ & when not(@border =transparent) {
78
75
  .button-color(~`colorPalette('@{color}', 5) `; transparent; ~`colorPalette('@{color}', 5) `);
79
76
  }
80
77
  }
78
+
81
79
  &:active,
82
80
  &.active {
83
- & when (@border = transparent) {
81
+ & when (@border =transparent) {
84
82
  .button-color(~`colorPalette('@{color}', 7) `; transparent; transparent);
85
83
  }
86
- & when not(@border = transparent) {
84
+
85
+ & when not(@border =transparent) {
87
86
  .button-color(~`colorPalette('@{color}', 7) `; transparent; ~`colorPalette('@{color}', 7) `);
88
87
  }
89
88
  }
89
+
90
90
  .button-disabled();
91
91
  }
92
+
92
93
  .button-color(@color; @background; @border) {
93
94
  color: @color;
94
95
  background-color: @background;
95
96
  border-color: @border;
97
+
96
98
  // a inside Button which only work in Chrome
97
99
  // http://stackoverflow.com/a/17253457
98
- > a:only-child {
100
+ >a:only-child {
99
101
  color: currentColor;
102
+
100
103
  &::after {
101
104
  position: absolute;
102
105
  top: 0;
@@ -108,50 +111,61 @@
108
111
  }
109
112
  }
110
113
  }
114
+
111
115
  .button-group-base(@btnClassName) {
112
116
  position: relative;
113
117
  display: inline-block;
114
- > .@{btnClassName},
115
- > span > .@{btnClassName} {
118
+
119
+ >.@{btnClassName},
120
+ >span>.@{btnClassName} {
116
121
  position: relative;
122
+
117
123
  &:hover,
118
124
  &:focus,
119
125
  &:active,
120
126
  &.active {
121
127
  z-index: 2;
122
128
  }
129
+
123
130
  &:disabled {
124
131
  z-index: 0;
125
132
  }
126
133
  }
127
- > .@{btnClassName}-icon-only {
134
+
135
+ >.@{btnClassName}-icon-only {
128
136
  font-size: @font-size-base;
129
137
  }
138
+
130
139
  // size
131
- &-lg > .@{btnClassName},
132
- &-lg > span > .@{btnClassName} {
140
+ &-lg>.@{btnClassName},
141
+ &-lg>span>.@{btnClassName} {
133
142
  .button-size(@btn-height-lg; @btn-padding-lg; @btn-font-size-lg; 0);
134
143
  line-height: calc(@btn-height-lg - 2px);
135
144
  }
136
- &-lg > .@{btnClassName}.@{btnClassName}-icon-only {
145
+
146
+ &-lg>.@{btnClassName}.@{btnClassName}-icon-only {
137
147
  .square(@btn-height-lg);
138
148
  padding-right: 0;
139
149
  padding-left: 0;
140
150
  }
141
- &-sm > .@{btnClassName},
142
- &-sm > span > .@{btnClassName} {
151
+
152
+ &-sm>.@{btnClassName},
153
+ &-sm>span>.@{btnClassName} {
143
154
  .button-size(@btn-height-sm; @btn-padding-sm; @font-size-base; 0);
144
155
  line-height: calc(@btn-height-sm - 2px);
145
- > .@{iconfont-css-prefix} {
156
+
157
+ >.@{iconfont-css-prefix} {
146
158
  font-size: @font-size-base;
147
159
  }
148
160
  }
149
- &-sm > .@{btnClassName}.@{btnClassName}-icon-only {
161
+
162
+ &-sm>.@{btnClassName}.@{btnClassName}-icon-only {
150
163
  .square(@btn-height-sm);
151
164
  padding-right: 0;
152
165
  padding-left: 0;
153
166
  }
154
167
  }
168
+
155
169
  // Base styles of buttons
156
170
  // --------------------------------------------------
157
171
  .btn() {
@@ -168,42 +182,53 @@
168
182
  user-select: none;
169
183
  touch-action: manipulation;
170
184
  .button-size(@btn-height-base; @btn-padding-base; @font-size-base; @btn-border-radius-base);
171
- > .@{iconfont-css-prefix} {
185
+
186
+ >.@{iconfont-css-prefix} {
172
187
  line-height: 1;
173
188
  }
189
+
174
190
  &,
175
191
  &:active,
176
192
  &:focus {
177
193
  outline: 0;
178
194
  }
195
+
179
196
  &:not([disabled]):hover {
180
197
  text-decoration: none;
181
198
  }
199
+
182
200
  &:not([disabled]):active {
183
201
  outline: 0;
184
202
  box-shadow: none;
185
203
  }
204
+
186
205
  &.disabled,
187
206
  &[disabled] {
188
207
  cursor: not-allowed;
189
- > * {
208
+
209
+ >* {
190
210
  pointer-events: none;
191
211
  }
192
212
  }
213
+
193
214
  &-lg {
194
215
  .button-size(@btn-height-lg; @btn-padding-lg; @btn-font-size-lg; @btn-border-radius-base);
195
216
  }
217
+
196
218
  &-sm {
197
219
  .button-size(@btn-height-sm; @btn-padding-sm; @btn-font-size-sm; @btn-border-radius-sm);
198
220
  }
199
221
  }
222
+
200
223
  // primary button style
201
224
  .btn-primary() {
202
225
  .button-variant-primary(@btn-primary-color; @btn-primary-bg);
203
226
  }
227
+
204
228
  // default button style
205
229
  .btn-default() {
206
230
  .button-variant-other(@btn-default-color; @btn-default-bg; @btn-default-border);
231
+
207
232
  &:hover,
208
233
  &:focus,
209
234
  &:active,
@@ -212,57 +237,66 @@
212
237
  background: @btn-default-bg;
213
238
  }
214
239
  }
240
+
215
241
  // ghost button style
216
242
  .btn-ghost() {
217
243
  .button-variant-other(@btn-ghost-color, @btn-ghost-bg, @btn-ghost-border);
218
244
  }
245
+
219
246
  // dashed button style
220
247
  .btn-dashed() {
221
248
  .button-variant-other(@btn-default-color, @btn-default-bg, @btn-default-border);
222
249
  border-style: dashed;
223
250
  }
251
+
224
252
  // danger button style
225
253
  .btn-danger() {
226
254
  .button-variant-primary(@btn-danger-color, @btn-danger-bg);
227
255
  }
256
+
228
257
  // link button style
229
258
  .btn-link() {
230
259
  .button-variant-other(@link-color, transparent, transparent);
231
260
  box-shadow: none;
261
+
232
262
  &:hover,
233
263
  &:focus,
234
264
  &:active {
235
265
  border-color: transparent;
236
266
  }
267
+
237
268
  .button-disabled(@disabled-color; transparent; transparent);
238
269
  }
270
+
239
271
  // round button
240
272
  .btn-round(@btnClassName: btn) {
241
273
  .button-size(@btn-circle-size; 0 @btn-circle-size / 2; @font-size-base; @btn-circle-size);
274
+
242
275
  &.@{btnClassName}-lg {
243
- .button-size(
244
- @btn-circle-size-lg; 0 @btn-circle-size-lg / 2; @btn-font-size-lg; @btn-circle-size-lg
245
- );
276
+ .button-size(@btn-circle-size-lg; 0 @btn-circle-size-lg / 2; @btn-font-size-lg; @btn-circle-size-lg );
246
277
  }
278
+
247
279
  &.@{btnClassName}-sm {
248
- .button-size(
249
- @btn-circle-size-sm; 0 @btn-circle-size-sm / 2; @font-size-base; @btn-circle-size-sm
250
- );
280
+ .button-size(@btn-circle-size-sm; 0 @btn-circle-size-sm / 2; @font-size-base; @btn-circle-size-sm );
251
281
  }
252
282
  }
283
+
253
284
  // square button: the content only contains icon
254
285
  .btn-square(@btnClassName: btn) {
255
286
  .square(@btn-square-size);
256
287
  .button-size(@btn-square-size; 0; @font-size-base + 2px; @btn-border-radius-base);
288
+
257
289
  &.@{btnClassName}-lg {
258
290
  .square(@btn-square-size-lg);
259
291
  .button-size(@btn-square-size-lg; 0; @btn-font-size-lg + 2px; @btn-border-radius-base);
260
292
  }
293
+
261
294
  &.@{btnClassName}-sm {
262
295
  .square(@btn-square-size-sm);
263
296
  .button-size(@btn-square-size-sm; 0; @font-size-base; @btn-border-radius-base);
264
297
  }
265
298
  }
299
+
266
300
  // circle button: the content only contains icon
267
301
  .btn-circle(@btnClassName: btn) {
268
302
  min-width: @btn-height-base;
@@ -270,88 +304,107 @@
270
304
  padding-left: 0;
271
305
  text-align: center;
272
306
  border-radius: 50%;
307
+
273
308
  &.@{btnClassName}-lg {
274
309
  min-width: @btn-height-lg;
275
310
  border-radius: 50%;
276
311
  }
312
+
277
313
  &.@{btnClassName}-sm {
278
314
  min-width: @btn-height-sm;
279
315
  border-radius: 50%;
280
316
  }
281
317
  }
318
+
282
319
  // Horizontal button groups style
283
320
  // --------------------------------------------------
284
321
  .btn-group(@btnClassName: btn) {
285
322
  .button-group-base(@btnClassName);
286
- .@{btnClassName} + .@{btnClassName},
287
- .@{btnClassName} + &,
288
- span + .@{btnClassName},
289
- .@{btnClassName} + span,
290
- > span + span,
291
- & + .@{btnClassName},
292
- & + & {
323
+
324
+ .@{btnClassName}+.@{btnClassName},
325
+ .@{btnClassName}+&,
326
+ span+.@{btnClassName},
327
+ .@{btnClassName}+span,
328
+ >span+span,
329
+ &+.@{btnClassName},
330
+ &+& {
293
331
  margin-left: -1px;
294
332
  }
295
- .@{btnClassName}-primary + .@{btnClassName}:not(.@{btnClassName}-primary):not([disabled]) {
333
+
334
+ .@{btnClassName}-primary+.@{btnClassName}:not(.@{btnClassName}-primary):not([disabled]) {
296
335
  border-left-color: transparent;
297
336
  }
337
+
298
338
  .@{btnClassName} {
299
339
  border-radius: 0;
300
340
  }
301
- > .@{btnClassName}:first-child,
302
- > span:first-child > .@{btnClassName} {
341
+
342
+ >.@{btnClassName}:first-child,
343
+ >span:first-child>.@{btnClassName} {
303
344
  margin-left: 0;
304
345
  }
305
- > .@{btnClassName}:only-child {
346
+
347
+ >.@{btnClassName}:only-child {
306
348
  border-radius: @btn-border-radius-base;
307
349
  }
308
- > span:only-child > .@{btnClassName} {
350
+
351
+ >span:only-child>.@{btnClassName} {
309
352
  border-radius: @btn-border-radius-base;
310
353
  }
311
- > .@{btnClassName}:first-child:not(:last-child),
312
- > span:first-child:not(:last-child) > .@{btnClassName} {
354
+
355
+ >.@{btnClassName}:first-child:not(:last-child),
356
+ >span:first-child:not(:last-child)>.@{btnClassName} {
313
357
  border-top-left-radius: @btn-border-radius-base;
314
358
  border-bottom-left-radius: @btn-border-radius-base;
315
359
  }
316
- > .@{btnClassName}:last-child:not(:first-child),
317
- > span:last-child:not(:first-child) > .@{btnClassName} {
360
+
361
+ >.@{btnClassName}:last-child:not(:first-child),
362
+ >span:last-child:not(:first-child)>.@{btnClassName} {
318
363
  border-top-right-radius: @btn-border-radius-base;
319
364
  border-bottom-right-radius: @btn-border-radius-base;
320
365
  }
366
+
321
367
  &-sm {
322
- > .@{btnClassName}:only-child {
368
+ >.@{btnClassName}:only-child {
323
369
  border-radius: @btn-border-radius-sm;
324
370
  }
325
- > span:only-child > .@{btnClassName} {
371
+
372
+ >span:only-child>.@{btnClassName} {
326
373
  border-radius: @btn-border-radius-sm;
327
374
  }
328
- > .@{btnClassName}:first-child:not(:last-child),
329
- > span:first-child:not(:last-child) > .@{btnClassName} {
375
+
376
+ >.@{btnClassName}:first-child:not(:last-child),
377
+ >span:first-child:not(:last-child)>.@{btnClassName} {
330
378
  border-top-left-radius: @btn-border-radius-sm;
331
379
  border-bottom-left-radius: @btn-border-radius-sm;
332
380
  }
333
- > .@{btnClassName}:last-child:not(:first-child),
334
- > span:last-child:not(:first-child) > .@{btnClassName} {
381
+
382
+ >.@{btnClassName}:last-child:not(:first-child),
383
+ >span:last-child:not(:first-child)>.@{btnClassName} {
335
384
  border-top-right-radius: @btn-border-radius-sm;
336
385
  border-bottom-right-radius: @btn-border-radius-sm;
337
386
  }
338
387
  }
339
- & > & {
388
+
389
+ &>& {
340
390
  float: left;
341
391
  }
342
- & > &:not(:first-child):not(:last-child) > .@{btnClassName} {
392
+
393
+ &>&:not(:first-child):not(:last-child)>.@{btnClassName} {
343
394
  border-radius: 0;
344
395
  }
345
- & > &:first-child:not(:last-child) {
346
- > .@{btnClassName}:last-child {
396
+
397
+ &>&:first-child:not(:last-child) {
398
+ >.@{btnClassName}:last-child {
347
399
  padding-right: 8px;
348
400
  border-top-right-radius: 0;
349
401
  border-bottom-right-radius: 0;
350
402
  }
351
403
  }
352
- & > &:last-child:not(:first-child) > .@{btnClassName}:first-child {
404
+
405
+ &>&:last-child:not(:first-child)>.@{btnClassName}:first-child {
353
406
  padding-left: 8px;
354
407
  border-top-left-radius: 0;
355
408
  border-bottom-left-radius: 0;
356
409
  }
357
- }
410
+ }
@@ -14,6 +14,7 @@ export namespace zh_CN {
14
14
  const handleMore: string;
15
15
  const enter: string;
16
16
  const select: string;
17
+ const batchOperation: string;
17
18
  const onLineFail: string;
18
19
  const weakMsg: string;
19
20
  const strongMsg: string;
@@ -61,6 +62,8 @@ export namespace en_US {
61
62
  export { enter_1 as enter };
62
63
  const select_1: string;
63
64
  export { select_1 as select };
65
+ const batchOperation_1: string;
66
+ export { batchOperation_1 as batchOperation };
64
67
  const onLineFail_1: string;
65
68
  export { onLineFail_1 as onLineFail };
66
69
  const weakMsg_1: string;
@@ -1 +1 @@
1
- {"version":3,"file":"prev-locale.d.ts","sourceRoot":"","sources":["../src/prev-locale.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqGO,yEAaN;AAEM,mCAAmD"}
1
+ {"version":3,"file":"prev-locale.d.ts","sourceRoot":"","sources":["../src/prev-locale.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwGO,yEAaN;AAEM,mCAAoD"}