mali-applet-ui 1.0.153 → 1.0.155

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 (41) hide show
  1. package/lib/components/ml-amount-text/ml-amount-text.vue +4 -4
  2. package/lib/components/ml-approval-select/ml-approval-select.vue +1 -1
  3. package/lib/components/ml-button/ml-button.vue +12 -12
  4. package/lib/components/ml-card/ml-card.vue +1 -1
  5. package/lib/components/ml-checkbox/ml-checkbox.vue +2 -2
  6. package/lib/components/ml-checkbox-button/ml-checkbox-button.vue +1 -1
  7. package/lib/components/ml-chunk-group/ml-chunk-group.vue +4 -4
  8. package/lib/components/ml-date-quick-range-picker/ml-date-quick-range-picker.vue +1 -1
  9. package/lib/components/ml-dict-type/ml-dict-type.vue +16 -16
  10. package/lib/components/ml-drawer/ml-drawer.vue +1 -1
  11. package/lib/components/ml-fix-uni-datetime-picker/calendar-item.vue +3 -6
  12. package/lib/components/ml-fix-uni-datetime-picker/calendar.vue +2 -4
  13. package/lib/components/ml-fix-uni-datetime-picker/ml-fix-uni-datetime-picker.vue +2 -4
  14. package/lib/components/ml-fix-uni-datetime-picker/time-picker.vue +1 -3
  15. package/lib/components/ml-form-group/ml-form-group.vue +1 -1
  16. package/lib/components/ml-form-item/ml-form-item.vue +1 -1
  17. package/lib/components/ml-header-filter-form/ml-header-filter-form.vue +1 -1
  18. package/lib/components/ml-hint/ml-hint.vue +5 -5
  19. package/lib/components/ml-icon/ml-icon.vue +4 -4
  20. package/lib/components/ml-list-group/ml-list-group.vue +1 -1
  21. package/lib/components/ml-list-item-title/ml-list-item-title.vue +1 -1
  22. package/lib/components/ml-list-menu-item/ml-list-menu-item.vue +4 -4
  23. package/lib/components/ml-list-select-group/ml-list-select-group.vue +1 -1
  24. package/lib/components/ml-list-select-page-footer/ml-list-select-page-footer.vue +1 -1
  25. package/lib/components/ml-list-select-user-page/ml-list-select-user-page.vue +1 -1
  26. package/lib/components/ml-modal/ml-modal.vue +1 -1
  27. package/lib/components/ml-navbar/ml-navbar.vue +2 -2
  28. package/lib/components/ml-radio/ml-radio.vue +1 -1
  29. package/lib/components/ml-radio-button/ml-radio-button.vue +1 -1
  30. package/lib/components/ml-row/ml-row.vue +4 -4
  31. package/lib/components/ml-section/ml-section.vue +1 -1
  32. package/lib/components/ml-status-tag/ml-status-tag.vue +4 -4
  33. package/lib/components/ml-tab-container-navs/ml-tab-container-navs.vue +6 -6
  34. package/lib/components/ml-tabbar/ml-tabbar.vue +2 -2
  35. package/lib/components/ml-table/ml-table.vue +10 -4
  36. package/lib/components/ml-tabs/ml-tabs.vue +6 -6
  37. package/lib/components/ml-text/ml-text.vue +4 -4
  38. package/lib/components/ml-textarea/ml-textarea.vue +4 -0
  39. package/lib/components/ml-tree-node/ml-tree-node.vue +1 -1
  40. package/package.json +1 -1
  41. package/theme.scss +14 -8
@@ -75,19 +75,19 @@ export default {
75
75
  padding-left: 5rpx;
76
76
  }
77
77
  &.ss-primary {
78
- color: $uni-color-primary;
78
+ color: $ml-theme-primary-color;
79
79
  }
80
80
  &.ss-success {
81
- color: $uni-color-success;
81
+ color: $ml-theme-success-color;
82
82
  }
83
83
  &.ss-info {
84
84
  color: #909399;
85
85
  }
86
86
  &.ss-warning {
87
- color: $uni-color-warning;
87
+ color: $ml-theme-warning-color;
88
88
  }
89
89
  &.ss-danger {
90
- color: $uni-color-error;
90
+ color: $ml-theme-error-color;
91
91
  }
92
92
  &.ss-gray {
93
93
  color: $ml-gray-color;
@@ -305,7 +305,7 @@ export default {
305
305
  line-height: 80rpx;
306
306
  border-radius: 50%;
307
307
  font-size: 40rpx;
308
- color: $uni-color-primary;
308
+ color: $ml-theme-primary-color;
309
309
  background: #DAE6FF;
310
310
  overflow: hidden;
311
311
  }
@@ -103,19 +103,19 @@ export default {
103
103
  text-decoration: underline;
104
104
  }
105
105
  &.ss-primary {
106
- color: $uni-color-primary;
106
+ color: $ml-theme-primary-color;
107
107
  }
108
108
  &.ss-success {
109
- color: $uni-color-success;
109
+ color: $ml-theme-success-color;
110
110
  }
111
111
  &.ss-info {
112
112
  color: #909399;
113
113
  }
114
114
  &.ss-warning {
115
- color: $uni-color-warning;
115
+ color: $ml-theme-warning-color;
116
116
  }
117
117
  &.ss-danger {
118
- color: $uni-color-error;
118
+ color: $ml-theme-error-color;
119
119
  }
120
120
  &.ss-gray {
121
121
  color: $ml-gray-color;
@@ -170,13 +170,13 @@ export default {
170
170
  }
171
171
  &.ss-primary {
172
172
  color: #ffffff;
173
- background: $uni-color-primary;
174
- border-color: $uni-color-primary;
173
+ background: $ml-theme-primary-color;
174
+ border-color: $ml-theme-primary-color;
175
175
  }
176
176
  &.ss-success {
177
177
  color: #ffffff;
178
- background: $uni-color-success;
179
- border-color: $uni-color-success;
178
+ background: $ml-theme-success-color;
179
+ border-color: $ml-theme-success-color;
180
180
  }
181
181
  &.ss-info {
182
182
  color: #ffffff;
@@ -185,13 +185,13 @@ export default {
185
185
  }
186
186
  &.ss-warning {
187
187
  color: #ffffff;
188
- background: $uni-color-warning;
189
- border-color: $uni-color-warning;
188
+ background: $ml-theme-warning-color;
189
+ border-color: $ml-theme-warning-color;
190
190
  }
191
191
  &.ss-danger {
192
192
  color: #ffffff;
193
- background: $uni-color-error;
194
- border-color: $uni-color-error;
193
+ background: $ml-theme-error-color;
194
+ border-color: $ml-theme-error-color;
195
195
  }
196
196
  &.ss-gray {
197
197
  background: $ml-gray-color;
@@ -69,7 +69,7 @@ export default {
69
69
  width: 8rpx;
70
70
  height: 30rpx;
71
71
  transform: translateY(-50%);
72
- background: $uni-color-primary;
72
+ background: $ml-theme-primary-color;
73
73
  }
74
74
  }
75
75
  .ml-card-extra {
@@ -65,10 +65,10 @@ export default {
65
65
  cursor: pointer;
66
66
  // #endif
67
67
  &.is-checked {
68
- color: $uni-color-primary;
68
+ color: $ml-theme-primary-color;
69
69
  }
70
70
  &.is-half {
71
- color: $uni-color-primary;
71
+ color: $ml-theme-primary-color;
72
72
  }
73
73
  &.is-disabled {
74
74
  color: rgba(0,0,0,0.25);
@@ -62,7 +62,7 @@ export default {
62
62
  }
63
63
  &.is-active {
64
64
  color: #ffffff;
65
- background-color: $uni-color-primary;
65
+ background-color: $ml-theme-primary-color;
66
66
  }
67
67
  &.is-disabled {
68
68
  color: rgba(0,0,0,0.25);
@@ -107,13 +107,13 @@ export default {
107
107
  &.ss-primary {
108
108
  .ml-chunk-group-content {
109
109
  color: #ffffff;
110
- background: $uni-color-primary;
110
+ background: $ml-theme-primary-color;
111
111
  }
112
112
  }
113
113
  &.ss-success {
114
114
  .ml-chunk-group-content {
115
115
  color: #ffffff;
116
- background: $uni-color-success;
116
+ background: $ml-theme-success-color;
117
117
  }
118
118
  }
119
119
  &.ss-info {
@@ -125,13 +125,13 @@ export default {
125
125
  &.ss-warning {
126
126
  .ml-chunk-group-content {
127
127
  color: #ffffff;
128
- background: $uni-color-warning;
128
+ background: $ml-theme-warning-color;
129
129
  }
130
130
  }
131
131
  &.ss-danger {
132
132
  .ml-chunk-group-content {
133
133
  color: #ffffff;
134
- background: $uni-color-error;
134
+ background: $ml-theme-error-color;
135
135
  }
136
136
  }
137
137
  &.ss-gray {
@@ -4,7 +4,7 @@
4
4
  <ml-select-picker v-model="selectType" :options="typeList" :border="border" @change="changeTypeEvent"></ml-select-picker>
5
5
  </view>
6
6
  <view class="ml-date-quick-range-picker-right">
7
- <ml-date-picker v-model="selectVal" v-if="selectType === 1" :border="border" :clearable="clearable" @change="changeDateEvent"></ml-date-picker>
7
+ <ml-date-picker v-model="selectVal" v-if="selectType === 1" :border="border" :minDate="minDate" :maxDate="maxDate" :clearable="clearable" @change="changeDateEvent"></ml-date-picker>
8
8
  <ml-fix-uni-datetime-picker v-else v-model="selectDates" type="daterange" :start="minDate" :end="maxDate" @change="changeDaterangeEvent" :border="border" :clear-icon="clearable"/>
9
9
  </view>
10
10
  </view>
@@ -82,24 +82,24 @@ export default {
82
82
  border-radius: $ml-border-radius;
83
83
  font-size: 24rpx;
84
84
  &.ss-primary {
85
- color: $uni-color-primary;
86
- border: 1px solid $uni-color-primary;
85
+ color: $ml-theme-primary-color;
86
+ border: 1px solid $ml-theme-primary-color;
87
87
  }
88
88
  &.ss-success {
89
- color: $uni-color-success;
90
- border: 1px solid $uni-color-success;
89
+ color: $ml-theme-success-color;
90
+ border: 1px solid $ml-theme-success-color;
91
91
  }
92
92
  &.ss-info {
93
93
  color: #909399;
94
94
  border: 1px solid #909399;
95
95
  }
96
96
  &.ss-warning {
97
- color: $uni-color-warning;
98
- border: 1px solid $uni-color-warning;
97
+ color: $ml-theme-warning-color;
98
+ border: 1px solid $ml-theme-warning-color;
99
99
  }
100
100
  &.ss-danger {
101
- color: $uni-color-error;
102
- border: 1px solid $uni-color-error;
101
+ color: $ml-theme-error-color;
102
+ border: 1px solid $ml-theme-error-color;
103
103
  }
104
104
  &.ss-gray {
105
105
  color: $ml-gray-color;
@@ -131,11 +131,11 @@ export default {
131
131
  border-radius: $ml-border-radius;
132
132
  font-size: $ml-describe-font-size;
133
133
  &.ss-primary {
134
- color: $uni-color-primary;
134
+ color: $ml-theme-primary-color;
135
135
  background: #e0efff;
136
136
  }
137
137
  &.ss-success {
138
- color: $uni-color-success;
138
+ color: $ml-theme-success-color;
139
139
  background: #e0f5e8;
140
140
  }
141
141
  &.ss-info {
@@ -143,10 +143,10 @@ export default {
143
143
  }
144
144
  &.ss-warning {
145
145
  color: #ffffff;
146
- background: $uni-color-warning;
146
+ background: $ml-theme-warning-color;
147
147
  }
148
148
  &.ss-danger {
149
- color: $uni-color-error;
149
+ color: $ml-theme-error-color;
150
150
  background: #ffeaec;
151
151
  }
152
152
  &.ss-gray {
@@ -175,19 +175,19 @@ export default {
175
175
  }
176
176
  &:not(.is-round) {
177
177
  &.ss-primary {
178
- color: $uni-color-primary;
178
+ color: $ml-theme-primary-color;
179
179
  }
180
180
  &.ss-success {
181
- color: $uni-color-success;
181
+ color: $ml-theme-success-color;
182
182
  }
183
183
  &.ss-info {
184
184
  color: #909399;
185
185
  }
186
186
  &.ss-warning {
187
- color: $uni-color-warning;
187
+ color: $ml-theme-warning-color;
188
188
  }
189
189
  &.ss-danger {
190
- color: $uni-color-error;
190
+ color: $ml-theme-error-color;
191
191
  }
192
192
  &.ss-gray {
193
193
  color: $ml-gray-color;
@@ -188,7 +188,7 @@ export default {
188
188
  align-items: center;
189
189
  padding: 10rpx 20rpx;
190
190
  min-height: 90rpx;
191
- font-size: $uni-font-size-lg;
191
+ font-size: 32rpx;
192
192
  }
193
193
  .ml-drawer-header-title {
194
194
  text-align: center;
@@ -62,8 +62,6 @@ export default {
62
62
  </script>
63
63
 
64
64
  <style lang="scss" >
65
- $uni-primary: #007aff !default;
66
-
67
65
  .uni-calendar-item__weeks-box {
68
66
  flex: 1;
69
67
  /* #ifndef APP-NVUE */
@@ -80,7 +78,7 @@ export default {
80
78
  font-size: 14px;
81
79
  // font-family: Lato-Bold, Lato;
82
80
  font-weight: bold;
83
- color: darken($color: $uni-primary, $amount: 40%);
81
+ color: darken($color: $ml-theme-primary-color, $amount: 40%);
84
82
  }
85
83
 
86
84
  .uni-calendar-item__weeks-lunar-text {
@@ -115,7 +113,6 @@ export default {
115
113
  }
116
114
 
117
115
  .uni-calendar-item__weeks-box .uni-calendar-item--disable {
118
- // background-color: rgba(249, 249, 249, $uni-opacity-disabled);
119
116
  cursor: default;
120
117
  }
121
118
 
@@ -139,7 +136,7 @@ export default {
139
136
  }
140
137
 
141
138
  .uni-calendar-item__weeks-box .uni-calendar-item--checked {
142
- background-color: $uni-primary;
139
+ background-color: $ml-theme-primary-color;
143
140
  border-radius: 50%;
144
141
  box-sizing: border-box;
145
142
  border: 3px solid #fff;
@@ -160,7 +157,7 @@ export default {
160
157
 
161
158
  .uni-calendar-item--multiple .uni-calendar-item--before-checked,
162
159
  .uni-calendar-item--multiple .uni-calendar-item--after-checked {
163
- background-color: $uni-primary;
160
+ background-color: $ml-theme-primary-color;
164
161
  border-radius: 50%;
165
162
  box-sizing: border-box;
166
163
  border: 3px solid #F6F7FC;
@@ -619,8 +619,6 @@ export default {
619
619
  </script>
620
620
 
621
621
  <style lang="scss" >
622
- $uni-primary: #007aff !default;
623
-
624
622
  .uni-calendar {
625
623
  /* #ifndef APP-NVUE */
626
624
  display: flex;
@@ -731,7 +729,7 @@ export default {
731
729
  text-align: center;
732
730
  width: 100px;
733
731
  font-size: 14px;
734
- color: $uni-primary;
732
+ color: $ml-theme-primary-color;
735
733
  /* #ifndef APP-NVUE */
736
734
  letter-spacing: 3px;
737
735
  /* #endif */
@@ -909,7 +907,7 @@ export default {
909
907
  border-radius: 100px;
910
908
  height: 40px;
911
909
  line-height: 40px;
912
- background-color: $uni-primary;
910
+ background-color: $ml-theme-primary-color;
913
911
  color: #fff;
914
912
  font-size: 16px;
915
913
  letter-spacing: 2px;
@@ -796,8 +796,6 @@ export default {
796
796
  </script>
797
797
 
798
798
  <style lang="scss">
799
- $uni-primary: #007aff !default;
800
-
801
799
  .uni-date {
802
800
  /* #ifndef APP-NVUE */
803
801
  width: 100%;
@@ -956,14 +954,14 @@ export default {
956
954
  }
957
955
 
958
956
  .popup-x-footer text:hover {
959
- color: $uni-primary;
957
+ color: $ml-theme-primary-color;
960
958
  cursor: pointer;
961
959
  opacity: 0.8;
962
960
  }
963
961
 
964
962
  .popup-x-footer .confirm {
965
963
  margin-left: 20px;
966
- color: $uni-primary;
964
+ color: $ml-theme-primary-color;
967
965
  }
968
966
 
969
967
  .uni-date-changed {
@@ -788,8 +788,6 @@ export default {
788
788
  </script>
789
789
 
790
790
  <style lang="scss">
791
- $uni-primary: #007aff !default;
792
-
793
791
  .uni-datetime-picker {
794
792
  /* #ifndef APP-NVUE */
795
793
  /* width: 100%; */
@@ -823,7 +821,7 @@ export default {
823
821
 
824
822
  .uni-datetime-picker-btn-text {
825
823
  font-size: 14px;
826
- color: $uni-primary;
824
+ color: $ml-theme-primary-color;
827
825
  }
828
826
 
829
827
  .uni-datetime-picker-btn-group {
@@ -50,7 +50,7 @@ export default {
50
50
  width: 8rpx;
51
51
  height: 30rpx;
52
52
  transform: translateY(-50%);
53
- background: $uni-color-primary;
53
+ background: $ml-theme-primary-color;
54
54
  }
55
55
  }
56
56
  .ml-form-group-extra {
@@ -308,7 +308,7 @@ export default {
308
308
  }
309
309
  .ml-form-item-content-error {
310
310
  width: 100%;
311
- color: $uni-color-error;
311
+ color: $ml-theme-error-color;
312
312
  font-size: 24rpx;
313
313
  text-align: left;
314
314
  opacity: 0;
@@ -140,7 +140,7 @@ export default {
140
140
  justify-content: center;
141
141
  padding-left: $ml-page-interval-margin;
142
142
  font-size: 60rpx;
143
- color: $uni-color-primary;
143
+ color: $ml-theme-primary-color;
144
144
  // #ifdef H5
145
145
  cursor: pointer;
146
146
  // #endif
@@ -36,7 +36,7 @@ export default {
36
36
  display: flex;
37
37
  align-items: center;
38
38
  justify-content: center;
39
- color: $uni-color-primary;;
39
+ color: $ml-theme-primary-color;;
40
40
  padding-right: 20rpx;
41
41
  font-size: 36rpx;
42
42
  }
@@ -46,19 +46,19 @@ export default {
46
46
  flex-grow: 1;
47
47
  }
48
48
  &.ss-primary {
49
- background: $uni-color-primary;
49
+ background: $ml-theme-primary-color;
50
50
  }
51
51
  &.ss-success {
52
- background: $uni-color-success;
52
+ background: $ml-theme-success-color;
53
53
  }
54
54
  &.ss-info {
55
55
  background: #909399;
56
56
  }
57
57
  &.ss-warning {
58
- background: $uni-color-warning;
58
+ background: $ml-theme-warning-color;
59
59
  }
60
60
  &.ss-danger {
61
- background: $uni-color-error;
61
+ background: $ml-theme-error-color;
62
62
  }
63
63
  &.ss-gray {
64
64
  background: $ml-gray-color;
@@ -70,19 +70,19 @@ export default {
70
70
  animation: rollCircle 1s linear infinite;
71
71
  }
72
72
  &.ss-primary {
73
- color: $uni-color-primary;
73
+ color: $ml-theme-primary-color;
74
74
  }
75
75
  &.ss-success {
76
- color: $uni-color-success;
76
+ color: $ml-theme-success-color;
77
77
  }
78
78
  &.ss-info {
79
79
  color: #909399;
80
80
  }
81
81
  &.ss-warning {
82
- color: $uni-color-warning;
82
+ color: $ml-theme-warning-color;
83
83
  }
84
84
  &.ss-danger {
85
- color: $uni-color-error;
85
+ color: $ml-theme-error-color;
86
86
  }
87
87
  &.ss-gray {
88
88
  color: $ml-gray-color;
@@ -270,7 +270,7 @@ export default {
270
270
  <style lang="scss">
271
271
  .ml-list-group {
272
272
  margin-bottom: $ml-page-interval-margin;
273
- color: $uni-text-color;
273
+ color: $ml-font-color;
274
274
  font-size: $ml-base-font-size;
275
275
  .ml-list-group-content {
276
276
  display: flex;
@@ -63,7 +63,7 @@ export default {
63
63
  flex-shrink: 0;
64
64
  }
65
65
  .ml-list-item-title-seq {
66
- color: $uni-color-primary;
66
+ color: $ml-theme-primary-color;
67
67
  }
68
68
  .ml-list-item-title-seq,
69
69
  .ml-list-item-title-icon {
@@ -223,19 +223,19 @@ export default {
223
223
  font-size: 22rpx;
224
224
  line-height: 40rpx;
225
225
  &.s-primary {
226
- background-color: $uni-color-primary;
226
+ background-color: $ml-theme-primary-color;
227
227
  }
228
228
  &.s-success {
229
- background-color: $uni-color-success;
229
+ background-color: $ml-theme-success-color;
230
230
  }
231
231
  &.s-info {
232
232
  background-color: #909399;
233
233
  }
234
234
  &.s-warning {
235
- background-color: $uni-color-warning;
235
+ background-color: $ml-theme-warning-color;
236
236
  }
237
237
  &.s-danger {
238
- background-color: $uni-color-error;
238
+ background-color: $ml-theme-error-color;
239
239
  }
240
240
  &.s-gray {
241
241
  background-color: $ml-gray-color;
@@ -200,7 +200,7 @@ export default {
200
200
  <style lang="scss">
201
201
  .ml-list-select-group {
202
202
  margin-bottom: $ml-page-interval-margin;
203
- color: $uni-text-color;
203
+ color: $ml-font-color;
204
204
  font-size: $ml-base-font-size;
205
205
  display: flex;
206
206
  flex-direction: column;
@@ -81,7 +81,7 @@ export default {
81
81
  }
82
82
  .ml-list-select-page-footer-checked-num {
83
83
  padding: 0 8rpx;
84
- color: $uni-color-primary;
84
+ color: $ml-theme-primary-color;
85
85
  }
86
86
  .ml-list-select-page-footer-btns {
87
87
  display: flex;
@@ -215,7 +215,7 @@ export default {
215
215
  cursor: pointer;
216
216
  // #endif
217
217
  .ml-list-select-user-add-item {
218
- color: $uni-text-color-disable;
218
+ color: #c0c0c0;
219
219
  }
220
220
  }
221
221
  .ml-list-select-user-avatar {
@@ -159,7 +159,7 @@ export default {
159
159
  align-items: center;
160
160
  padding: 10rpx 20rpx;
161
161
  min-height: 90rpx;
162
- font-size: $uni-font-size-lg;
162
+ font-size: 32rpx;
163
163
  }
164
164
  .ml-modal-header-title {
165
165
  flex-grow: 1;
@@ -56,7 +56,7 @@ export default {
56
56
  width: 100%;
57
57
  height: 90rpx;
58
58
  line-height: 90rpx;
59
- color: $uni-text-color;
59
+ color: $ml-font-color;
60
60
  background: #FFFFFF;
61
61
  .ml-navbar-left-warpper {
62
62
  height: 100%;
@@ -92,4 +92,4 @@ export default {
92
92
  font-size: 30rpx;
93
93
  }
94
94
  }
95
- </style>
95
+ </style>
@@ -56,7 +56,7 @@ export default {
56
56
  cursor: pointer;
57
57
  // #endif
58
58
  &.is-checked {
59
- color: $uni-color-primary;
59
+ color: $ml-theme-primary-color;
60
60
  }
61
61
  &.is-disabled {
62
62
  color: rgba(0,0,0,0.25);
@@ -66,7 +66,7 @@ export default {
66
66
  }
67
67
  &.is-active {
68
68
  color: #ffffff;
69
- background-color: $uni-color-primary;
69
+ background-color: $ml-theme-primary-color;
70
70
  }
71
71
  &.is-disabled {
72
72
  color: rgba(0,0,0,0.25);
@@ -40,19 +40,19 @@ export default {
40
40
  flex-direction: column;
41
41
  }
42
42
  &.ss-primary {
43
- color: $uni-color-primary;
43
+ color: $ml-theme-primary-color;
44
44
  }
45
45
  &.ss-success {
46
- color: $uni-color-success;
46
+ color: $ml-theme-success-color;
47
47
  }
48
48
  &.ss-info {
49
49
  color: #909399;
50
50
  }
51
51
  &.ss-warning {
52
- color: $uni-color-warning;
52
+ color: $ml-theme-warning-color;
53
53
  }
54
54
  &.ss-danger {
55
- color: $uni-color-error;
55
+ color: $ml-theme-error-color;
56
56
  }
57
57
  &.ss-gray {
58
58
  color: $ml-gray-color;
@@ -29,7 +29,7 @@ export default {
29
29
  .ml-section {
30
30
  &.type-line {
31
31
  .ml-section-header-title {
32
- border-left: 2px solid $uni-color-primary;
32
+ border-left: 2px solid $ml-theme-primary-color;
33
33
  }
34
34
  }
35
35
  .ml-section-header {
@@ -41,11 +41,11 @@ export default {
41
41
  border-radius: $ml-border-radius;
42
42
  font-size: $ml-describe-font-size;
43
43
  &.ss-primary {
44
- color: $uni-color-primary;
44
+ color: $ml-theme-primary-color;
45
45
  background: #e0efff;
46
46
  }
47
47
  &.ss-success {
48
- color: $uni-color-success;
48
+ color: $ml-theme-success-color;
49
49
  background: #e0f5e8;
50
50
  }
51
51
  &.ss-info {
@@ -53,10 +53,10 @@ export default {
53
53
  }
54
54
  &.ss-warning {
55
55
  color: #ffffff;
56
- background: $uni-color-warning;
56
+ background: $ml-theme-warning-color;
57
57
  }
58
58
  &.ss-danger {
59
- color: $uni-color-error;
59
+ color: $ml-theme-error-color;
60
60
  background: #ffeaec;
61
61
  }
62
62
  &.ss-gray {
@@ -107,7 +107,7 @@ export default {
107
107
  }
108
108
  &.is-active {
109
109
  .ml-tabs-nav-title {
110
- color: $uni-color-primary;
110
+ color: $ml-theme-primary-color;
111
111
  &::before {
112
112
  content: "";
113
113
  position: absolute;
@@ -118,7 +118,7 @@ export default {
118
118
  min-width: 40rpx;
119
119
  max-width: 60rpx;
120
120
  height: 5rpx;
121
- background: $uni-color-primary;
121
+ background: $ml-theme-primary-color;
122
122
  }
123
123
  }
124
124
  }
@@ -138,19 +138,19 @@ export default {
138
138
  font-size: 22rpx;
139
139
  line-height: 40rpx;
140
140
  &.s-primary {
141
- background-color: $uni-color-primary;
141
+ background-color: $ml-theme-primary-color;
142
142
  }
143
143
  &.s-success {
144
- background-color: $uni-color-success;
144
+ background-color: $ml-theme-success-color;
145
145
  }
146
146
  &.s-info {
147
147
  background-color: #909399;
148
148
  }
149
149
  &.s-warning {
150
- background-color: $uni-color-warning;
150
+ background-color: $ml-theme-warning-color;
151
151
  }
152
152
  &.s-danger {
153
- background-color: $uni-color-error;
153
+ background-color: $ml-theme-error-color;
154
154
  }
155
155
  &.s-gray {
156
156
  background-color: $ml-gray-color;
@@ -75,7 +75,7 @@ export default {
75
75
  position: fixed;
76
76
  z-index: 20;
77
77
  padding: 6rpx 0 12rpx 0;
78
- color: $uni-text-color;
78
+ color: $ml-font-color;
79
79
  background: #FFFFFF;
80
80
  &.is-vertical {
81
81
  flex-direction: column;
@@ -111,7 +111,7 @@ export default {
111
111
  color: rgba(0, 0, 0, 0.5);
112
112
  &.is-active {
113
113
  border: 0;
114
- color: $uni-color-primary;
114
+ color: $ml-theme-primary-color;
115
115
  }
116
116
  }
117
117
  .ml-tabbar-dot-num {
@@ -182,13 +182,20 @@ export default {
182
182
  return column.cellRender.props ? column.cellRender.props.activeColor : ''
183
183
  },
184
184
  getHeaderCellClass (params) {
185
+ const { column } = params
186
+ const clss = []
187
+ const showOverflow = XEUtils.isBoolean(column.showOverflow) ? column.showOverflow : this.showOverflow
188
+ if (showOverflow) {
189
+ clss.push('is-ellipsis')
190
+ }
185
191
  if (this.headerCellClass) {
186
192
  if (XEUtils.isFunction(this.headerCellClass)) {
187
- return this.headerCellClass.call(this.currVM, params)
193
+ clss.push(this.headerCellClass.call(this.currVM, params))
194
+ } else {
195
+ clss.push(`${this.headerCellClass}`)
188
196
  }
189
- return `${this.headerCellClass}`
190
197
  }
191
- return ''
198
+ return clss.join(' ')
192
199
  },
193
200
  getHeaderCellValue (params) {
194
201
  const { row, column } = params
@@ -342,7 +349,6 @@ export default {
342
349
  background: #fff;
343
350
  .table-td {
344
351
  height: 84rpx;
345
- line-height: 84rpx;
346
352
  }
347
353
  }
348
354
  .table-th {
@@ -91,7 +91,7 @@ export default {
91
91
  }
92
92
  &.is-active {
93
93
  .ml-tabs-nav-title {
94
- color: $uni-color-primary;
94
+ color: $ml-theme-primary-color;
95
95
  &::before {
96
96
  content: "";
97
97
  position: absolute;
@@ -102,7 +102,7 @@ export default {
102
102
  min-width: 40rpx;
103
103
  max-width: 60rpx;
104
104
  height: 5rpx;
105
- background: $uni-color-primary;
105
+ background: $ml-theme-primary-color;
106
106
  }
107
107
  }
108
108
  }
@@ -122,19 +122,19 @@ export default {
122
122
  font-size: 22rpx;
123
123
  line-height: 40rpx;
124
124
  &.s-primary {
125
- background-color: $uni-color-primary;
125
+ background-color: $ml-theme-primary-color;
126
126
  }
127
127
  &.s-success {
128
- background-color: $uni-color-success;
128
+ background-color: $ml-theme-success-color;
129
129
  }
130
130
  &.s-info {
131
131
  background-color: #909399;
132
132
  }
133
133
  &.s-warning {
134
- background-color: $uni-color-warning;
134
+ background-color: $ml-theme-warning-color;
135
135
  }
136
136
  &.s-danger {
137
- background-color: $uni-color-error;
137
+ background-color: $ml-theme-error-color;
138
138
  }
139
139
  &.s-gray {
140
140
  background-color: $ml-gray-color;
@@ -76,19 +76,19 @@ export default {
76
76
  // #endif
77
77
  }
78
78
  &.ss-primary {
79
- color: $uni-color-primary;
79
+ color: $ml-theme-primary-color;
80
80
  }
81
81
  &.ss-success {
82
- color: $uni-color-success;
82
+ color: $ml-theme-success-color;
83
83
  }
84
84
  &.ss-info {
85
85
  color: #909399;
86
86
  }
87
87
  &.ss-warning {
88
- color: $uni-color-warning;
88
+ color: $ml-theme-warning-color;
89
89
  }
90
90
  &.ss-danger {
91
- color: $uni-color-error;
91
+ color: $ml-theme-error-color;
92
92
  }
93
93
  &.ss-gray {
94
94
  color: $ml-gray-color;
@@ -155,6 +155,10 @@ export default {
155
155
  overflow: auto;
156
156
  word-break: break-all;
157
157
  }
158
+ .ml-textarea-inp {
159
+ outline: 0;
160
+ border: 0;
161
+ }
158
162
  .ml-textarea-inp,
159
163
  .ml-textarea-simulate {
160
164
  padding: 0;
@@ -135,7 +135,7 @@ export default {
135
135
  text-align: center;
136
136
  &.is-checked,
137
137
  &.is-indeterminate {
138
- color: $uni-color-primary;
138
+ color: $ml-theme-primary-color;
139
139
  }
140
140
  }
141
141
  .ml-tree-node-expand {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mali-applet-ui",
3
- "version": "1.0.153",
3
+ "version": "1.0.155",
4
4
  "description": "码里云小程序组件库",
5
5
  "files": [
6
6
  "lib",
package/theme.scss CHANGED
@@ -4,16 +4,22 @@ $ml-page-full-width: 100%;
4
4
  // 文字颜色
5
5
  $ml-font-color: rgba(0, 0, 0, 0.85);
6
6
 
7
+ // 主题色
8
+ $ml-theme-primary-color: #246BFD;
9
+ $ml-theme-success-color: #29CC97;
10
+ $ml-theme-warning-color: #f0ad4e;
11
+ $ml-theme-error-color: #dd524d;
12
+
7
13
  // 字体
8
- $ml-base-font-size: 34rpx;
14
+ $ml-base-font-size: 17px;
9
15
  // 副标题字体
10
- $ml-subhead-font-size: 30rpx;
16
+ $ml-subhead-font-size: 15px;
11
17
  // 描述字体
12
- $ml-describe-font-size: 28rpx;
18
+ $ml-describe-font-size: 14px;
13
19
 
14
20
  // 页面间隔宽度
15
- $ml-page-interval-margin: 16rpx;
16
- $ml-page-toolbar-left-width: 120rpx;
21
+ $ml-page-interval-margin: 8px;
22
+ $ml-page-toolbar-left-width: 60px;
17
23
 
18
24
  // 全局色调
19
25
  $ml-gray-color: #F0F2F5;
@@ -25,11 +31,11 @@ $ml-purple-color: #9747FF;
25
31
  $ml-white-color: #ffffff;
26
32
 
27
33
  // 边框圆角
28
- $ml-border-radius: 8rpx;
34
+ $ml-border-radius: 4px;
29
35
  // 按钮间隔宽度
30
- $ml-button-interval-margin: 16rpx;
36
+ $ml-button-interval-margin: 8px;
31
37
  // 输入框清除按钮颜色
32
38
  $ml-input-clear-icon-color: rgba(23, 26, 29, 0.4);
33
- $ml-input-clear-icon-font-size: 44rpx;
39
+ $ml-input-clear-icon-font-size: 22px;
34
40
  // 输入框提示文本颜色
35
41
  $ml-input-color-placeholder: rgba(23, 26, 29, 0.7);