vxe-table 3.6.0-beta.0 → 3.6.0-beta.3

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 (84) hide show
  1. package/lib/button/style/style.css +1 -58
  2. package/lib/button/style/style.min.css +1 -1
  3. package/lib/checkbox/src/checkbox.js +4 -3
  4. package/lib/checkbox/src/checkbox.min.js +1 -1
  5. package/lib/checkbox/style/style.css +37 -60
  6. package/lib/checkbox/style/style.min.css +1 -1
  7. package/lib/edit/src/mixin.js +10 -10
  8. package/lib/edit/src/mixin.min.js +1 -1
  9. package/lib/export/src/export-panel.js +10 -16
  10. package/lib/export/src/export-panel.min.js +1 -1
  11. package/lib/export/style/style.css +27 -84
  12. package/lib/export/style/style.min.css +1 -1
  13. package/lib/filter/src/panel.js +11 -15
  14. package/lib/filter/src/panel.min.js +1 -1
  15. package/lib/filter/style/style.css +28 -82
  16. package/lib/filter/style/style.min.css +1 -1
  17. package/lib/form/src/form.js +1 -1
  18. package/lib/form/src/form.min.js +1 -1
  19. package/lib/form/style/style.css +0 -3
  20. package/lib/form/style/style.min.css +1 -1
  21. package/lib/icon/style/style.css +387 -0
  22. package/lib/icon/style/style.min.css +1 -1
  23. package/lib/index.css +1 -1
  24. package/lib/index.umd.js +106 -127
  25. package/lib/index.umd.min.js +1 -1
  26. package/lib/input/src/input.js +3 -3
  27. package/lib/input/src/input.min.js +1 -1
  28. package/lib/input/style/style.css +18 -9
  29. package/lib/input/style/style.min.css +1 -1
  30. package/lib/modal/style/style.css +0 -1
  31. package/lib/modal/style/style.min.css +1 -1
  32. package/lib/pager/style/style.css +3 -1
  33. package/lib/pager/style/style.min.css +1 -1
  34. package/lib/radio/src/radio.js +7 -5
  35. package/lib/radio/src/radio.min.js +1 -1
  36. package/lib/radio/style/style.css +32 -57
  37. package/lib/radio/style/style.min.css +1 -1
  38. package/lib/select/style/style.css +1 -0
  39. package/lib/select/style/style.min.css +1 -1
  40. package/lib/style.css +1 -1
  41. package/lib/style.min.css +1 -1
  42. package/lib/table/src/cell.js +4 -18
  43. package/lib/table/src/cell.min.js +1 -1
  44. package/lib/table/style/style.css +67 -146
  45. package/lib/table/style/style.min.css +1 -1
  46. package/lib/toolbar/src/toolbar.js +11 -15
  47. package/lib/toolbar/src/toolbar.min.js +1 -1
  48. package/lib/toolbar/style/style.css +27 -81
  49. package/lib/toolbar/style/style.min.css +1 -1
  50. package/lib/tools/log.js +1 -1
  51. package/lib/tools/log.min.js +1 -1
  52. package/lib/v-x-e-table/index.js +1 -1
  53. package/lib/v-x-e-table/index.min.js +1 -1
  54. package/lib/v-x-e-table/src/conf.js +43 -39
  55. package/lib/v-x-e-table/src/conf.min.js +1 -1
  56. package/lib/v-x-e-table/style/style.css +412 -1
  57. package/lib/v-x-e-table/style/style.min.css +1 -1
  58. package/package.json +2 -2
  59. package/packages/checkbox/src/checkbox.js +5 -3
  60. package/packages/edit/src/mixin.js +10 -10
  61. package/packages/export/src/export-panel.js +9 -19
  62. package/packages/filter/src/panel.js +9 -17
  63. package/packages/form/src/form.js +1 -1
  64. package/packages/input/src/input.js +3 -3
  65. package/packages/radio/src/radio.js +7 -3
  66. package/packages/table/src/cell.js +4 -25
  67. package/packages/toolbar/src/toolbar.js +11 -19
  68. package/packages/v-x-e-table/src/conf.js +43 -38
  69. package/styles/base/checked.scss +44 -148
  70. package/styles/button.scss +1 -43
  71. package/styles/checkbox.scss +6 -65
  72. package/styles/export.scss +2 -9
  73. package/styles/filter.scss +3 -7
  74. package/styles/form.scss +0 -3
  75. package/styles/icon.scss +412 -616
  76. package/styles/input.scss +8 -0
  77. package/styles/modal.scss +0 -1
  78. package/styles/old-icon.scss +713 -0
  79. package/styles/pager.scss +2 -0
  80. package/styles/radio.scss +9 -77
  81. package/styles/select.scss +1 -0
  82. package/styles/table.scss +14 -28
  83. package/styles/toolbar.scss +2 -6
  84. package/styles/variable.scss +9 -9
package/styles/radio.scss CHANGED
@@ -1,6 +1,7 @@
1
1
  /**Variable**/
2
2
  @import './helpers/mixin.scss';
3
3
  @import './base/common.scss';
4
+ @import './base/checked.scss';
4
5
 
5
6
  /*radio-group*/
6
7
  .vxe-radio-group {
@@ -15,13 +16,11 @@
15
16
 
16
17
  /*radio*/
17
18
  .vxe-radio {
19
+ @extend %XERadioIcon;
18
20
  display: inline-block;
19
21
  vertical-align: middle;
20
22
  white-space: nowrap;
21
- user-select: none;
22
23
  line-height: 1;
23
- cursor: pointer;
24
- color: $vxe-font-color;
25
24
  > input {
26
25
  &[type="radio"] {
27
26
  position: absolute;
@@ -30,75 +29,20 @@
30
29
  border: 0;
31
30
  appearance: none;
32
31
  }
33
- &+.vxe-radio--icon {
34
- position: relative;
35
- display: inline-block;
36
- width: 1em;
37
- height: 1em;
38
- border: $vxe-radio-border-width solid $vxe-input-border-color;
39
- background-color: $vxe-radio-icon-background-color;
40
- vertical-align: middle;
41
- border-radius: 50%;
42
- }
43
- &:checked+.vxe-radio--icon {
44
- background-color: $vxe-primary-color;
45
- border-color: $vxe-primary-color;
46
- &:before {
47
- content: "";
48
- position: absolute;
49
- background-color: $vxe-radio-checked-icon-background-color;
50
- border-radius: 50%;
51
- height: 0.25em;
52
- width: 0.25em;
53
- top: 50%;
54
- left: 50%;
55
- transform: translate(-50%,-50%);
56
- }
57
- &+.vxe-radio--label {
58
- color: $vxe-primary-color;
59
- }
60
- }
61
- }
62
- &:not(.is--disabled) {
63
- & > input {
64
- &:focus {
65
- &+.vxe-radio--icon {
66
- border-color: $vxe-primary-color;
67
- box-shadow: 0 0 0.2em 0 $vxe-primary-color;
68
- }
69
- }
70
- }
71
- &:hover {
72
- > input {
73
- &+.vxe-radio--icon {
74
- border-color: $vxe-primary-color;
75
- }
76
- }
77
- }
78
- }
79
- &.is--disabled {
80
- cursor: not-allowed;
81
- > input {
82
- &+.vxe-radio--icon {
83
- border-color: $vxe-input-disabled-color;
84
- background-color: $vxe-input-disabled-background-color;
85
- &:before {
86
- border-color: $vxe-primary-disabled-color;
87
- background-color: $vxe-primary-disabled-color;
88
- }
89
- &+.vxe-radio--label {
90
- color: $vxe-disabled-color;
91
- }
92
- }
93
- }
94
32
  }
95
33
  .vxe-radio--label {
96
- padding-left: 0.5em;
97
34
  vertical-align: middle;
98
35
  display: inline-block;
99
36
  max-width: 50em;
100
37
  @extend %TextEllipsis;
101
38
  }
39
+ &:not(.is--disabled) {
40
+ > input {
41
+ &:focus+.vxe-radio--icon {
42
+ color: $vxe-primary-color;
43
+ }
44
+ }
45
+ }
102
46
  &:not(.vxe-radio-button) {
103
47
  &+.vxe-radio {
104
48
  margin-left: 10px;
@@ -192,25 +136,13 @@
192
136
 
193
137
  .vxe-radio {
194
138
  font-size: $vxe-font-size;
195
- .vxe-radio--icon {
196
- font-size: $vxe-radio-font-size-default;
197
- }
198
139
  &.size--medium {
199
140
  font-size: $vxe-font-size-medium;
200
- .vxe-radio--icon {
201
- font-size: $vxe-radio-font-size-medium;
202
- }
203
141
  }
204
142
  &.size--small {
205
143
  font-size: $vxe-font-size-small;
206
- .vxe-radio--icon {
207
- font-size: $vxe-radio-font-size-small;
208
- }
209
144
  }
210
145
  &.size--mini {
211
146
  font-size: $vxe-font-size-mini;
212
- .vxe-radio--icon {
213
- font-size: $vxe-radio-font-size-mini;
214
- }
215
147
  }
216
148
  }
@@ -29,6 +29,7 @@
29
29
  & > .vxe-input {
30
30
  width: 100%;
31
31
  .vxe-input--suffix-icon {
32
+ display: inline-block;
32
33
  @include animatTransition(transform, .2s);
33
34
  }
34
35
  }
package/styles/table.scss CHANGED
@@ -335,10 +335,12 @@
335
335
  .vxe-sort--asc-btn,
336
336
  .vxe-sort--desc-btn {
337
337
  position: absolute;
338
- left: 0.35em;
338
+ left: 0.2em;
339
339
  color: $vxe-table-column-icon-border-color;
340
340
  width: 1em;
341
341
  text-align: center;
342
+ height: 0.8em;
343
+ line-height: 0.8em;
342
344
  cursor: pointer;
343
345
  &:hover {
344
346
  color: $vxe-table-font-color;
@@ -348,10 +350,10 @@
348
350
  }
349
351
  }
350
352
  .vxe-sort--asc-btn {
351
- top: -0.15em;
353
+ top: -0.1em;
352
354
  }
353
355
  .vxe-sort--desc-btn {
354
- bottom: -0.15em;
356
+ bottom: -0.2em;
355
357
  }
356
358
  }
357
359
 
@@ -686,7 +688,7 @@
686
688
  background-position: right top, right bottom;
687
689
  }
688
690
  .vxe-table--fixed-left-wrapper {
689
- // border-right: $vxe-table-border-width solid $vxe-table-border-color;
691
+ // border-right: 1px solid $vxe-table-border-color;
690
692
  .vxe-body--column{
691
693
  border-right-color: $vxe-table-border-color;
692
694
  }
@@ -730,9 +732,6 @@
730
732
  .vxe-table--header-border-line {
731
733
  display: none;
732
734
  }
733
- .vxe-table--footer-wrapper {
734
- border-top: 0;
735
- }
736
735
  }
737
736
 
738
737
  &.size--medium {
@@ -827,23 +826,10 @@
827
826
 
828
827
  // 单选框和复选框
829
828
  .vxe-cell--radio {
830
- @extend %XERadio;
831
- }
832
- .vxe-cell--checkbox {
833
- @extend %XECheckbox;
834
- }
835
- .vxe-cell--radio .vxe-radio--icon,
836
- .vxe-cell--checkbox .vxe-checkbox--icon {
837
- left: 0;
838
- top: 0.1em;
839
- }
840
- .vxe-cell--radio .vxe-radio--label,
841
- .vxe-cell--checkbox .vxe-checkbox--label {
842
- padding-left: 0.5em;
829
+ @extend %XERadioIcon;
843
830
  }
844
- .vxe-cell--radio,
845
831
  .vxe-cell--checkbox {
846
- padding-left: 1.2em;
832
+ @extend %XECheckboxIcon;
847
833
  }
848
834
 
849
835
  .fixed--hidden {
@@ -1095,10 +1081,10 @@
1095
1081
  }
1096
1082
  }
1097
1083
  }
1098
- .vxe-cell--checkbox .vxe-checkbox--icon {
1084
+ .vxe-cell--checkbox {
1099
1085
  font-size: $vxe-checkbox-font-size-medium;
1100
1086
  }
1101
- .vxe-cell--radio .vxe-radio--icon {
1087
+ .vxe-cell--radio {
1102
1088
  font-size: $vxe-radio-font-size-medium;
1103
1089
  }
1104
1090
  }
@@ -1113,10 +1099,10 @@
1113
1099
  }
1114
1100
  }
1115
1101
  }
1116
- .vxe-cell--checkbox .vxe-checkbox--icon {
1102
+ .vxe-cell--checkbox {
1117
1103
  font-size: $vxe-checkbox-font-size-small;
1118
1104
  }
1119
- .vxe-cell--radio .vxe-radio--icon {
1105
+ .vxe-cell--radio {
1120
1106
  font-size: $vxe-radio-font-size-small;
1121
1107
  }
1122
1108
  }
@@ -1131,10 +1117,10 @@
1131
1117
  }
1132
1118
  }
1133
1119
  }
1134
- .vxe-cell--checkbox .vxe-checkbox--icon {
1120
+ .vxe-cell--checkbox {
1135
1121
  font-size: $vxe-checkbox-font-size-mini;
1136
1122
  }
1137
- .vxe-cell--radio .vxe-radio--icon {
1123
+ .vxe-cell--radio {
1138
1124
  font-size: $vxe-radio-font-size-mini;
1139
1125
  }
1140
1126
  }
@@ -120,7 +120,7 @@
120
120
  & > li {
121
121
  max-width: 16em;
122
122
  min-width: 12.5em;
123
- padding: 0.2em 1em 0.2em 2.3em;
123
+ padding: 0.2em 1em 0.2em 1em;
124
124
  @for $i from 2 through 8 {
125
125
  $interval: $i - 1 + 0.2;
126
126
  &.level--#{$i}{
@@ -170,11 +170,7 @@
170
170
  }
171
171
 
172
172
  .vxe-custom--option {
173
- @extend %XECheckbox;
174
- .vxe-checkbox--icon {
175
- left: 0.6em;
176
- top: 0.38em;
177
- }
173
+ @extend %XECheckboxIcon;
178
174
  }
179
175
 
180
176
  .vxe-toolbar {
@@ -83,7 +83,7 @@ $vxe-table-cell-dirty-update-color: #f56c6c !default;
83
83
  $vxe-table-cell-dirty-insert-color: #19A15F !default;
84
84
  $vxe-table-cell-area-border-color: $vxe-primary-color !default;
85
85
  $vxe-table-cell-area-border-width: 1px !default;
86
- $vxe-table-cell-main-area-extension-border-color: #fff !default;
86
+ $vxe-table-cell-main-area-extension-border-color: #fff;
87
87
  $vxe-table-cell-main-area-extension-background-color: $vxe-primary-color !default;
88
88
  $vxe-table-cell-extend-area-border-width: 2px !default;
89
89
  $vxe-table-cell-copy-area-border-width: 3px !default;
@@ -142,10 +142,10 @@ $vxe-modal-body-background-color: #fff !default;
142
142
  $vxe-modal-border-color: #ebeef5 !default;
143
143
 
144
144
  /*checkbox*/
145
- $vxe-checkbox-font-size-default: 16px !default;
146
- $vxe-checkbox-font-size-medium: 15px !default;
147
- $vxe-checkbox-font-size-small: 14px !default;
148
- $vxe-checkbox-font-size-mini: 14px !default;
145
+ $vxe-checkbox-font-size-default: 15px !default;
146
+ $vxe-checkbox-font-size-medium: 14px !default;
147
+ $vxe-checkbox-font-size-small: 13px !default;
148
+ $vxe-checkbox-font-size-mini: 12px !default;
149
149
  $vxe-checkbox-checked-width: 0.32em !default;
150
150
  $vxe-checkbox-checked-height: 0.64em !default;
151
151
  $vxe-checkbox-indeterminate-width: 0.6em !default;
@@ -194,19 +194,19 @@ $vxe-input-date-picker-festival-selected-color: $vxe-input-date-picker-selected-
194
194
  $vxe-input-date-picker-notice-selected-background-color: $vxe-input-date-picker-selected-color !default;
195
195
  $vxe-input-date-extra-color: #67c23a !default;
196
196
  $vxe-input-date-extra-important-color: #fd2222 !default;
197
- $vxe-input-date-title-height-default: 34px !default;
197
+ $vxe-input-date-title-height-default: 30px !default;
198
198
  $vxe-input-date-title-height-medium: 29px !default;
199
199
  $vxe-input-date-title-height-small: 28px !default;
200
200
  $vxe-input-date-title-height-mini: 26px !default;
201
- $vxe-input-date-time-week-row-height-default: 42px !default;
201
+ $vxe-input-date-time-week-row-height-default: 38px !default;
202
202
  $vxe-input-date-time-week-row-height-medium: 36px !default;
203
203
  $vxe-input-date-time-week-row-height-small: 34px !default;
204
204
  $vxe-input-date-time-week-row-height-mini: 32px !default;
205
- $vxe-input-date-month-year-row-height-default: 52px !default;
205
+ $vxe-input-date-month-year-row-height-default: 48px !default;
206
206
  $vxe-input-date-month-year-row-height-medium: 46px !default;
207
207
  $vxe-input-date-month-year-row-height-small: 44px !default;
208
208
  $vxe-input-date-month-year-row-height-mini: 42px !default;
209
- $vxe-input-date-quarter-row-height-default: 64px !default;
209
+ $vxe-input-date-quarter-row-height-default: 60px !default;
210
210
  $vxe-input-date-quarter-row-height-medium: 58px !default;
211
211
  $vxe-input-date-quarter-row-height-small: 56px !default;
212
212
  $vxe-input-date-quarter-row-height-mini: 54px !default;