@kengic/uni 0.5.1 → 0.5.2-beta.1

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 (146) hide show
  1. package/dist/uni/uni-ui/uni-badge/uni-badge.vue +222 -219
  2. package/dist/uni/uni-ui/uni-breadcrumb/uni-breadcrumb.vue +29 -29
  3. package/dist/uni/uni-ui/uni-breadcrumb-item/uni-breadcrumb-item.vue +88 -88
  4. package/dist/uni/uni-ui/uni-calendar/calendar.js +936 -532
  5. package/dist/uni/uni-ui/uni-calendar/i18n/en.json +10 -10
  6. package/dist/uni/uni-ui/uni-calendar/i18n/index.js +8 -7
  7. package/dist/uni/uni-ui/uni-calendar/i18n/zh-Hans.json +10 -10
  8. package/dist/uni/uni-ui/uni-calendar/i18n/zh-Hant.json +10 -10
  9. package/dist/uni/uni-ui/uni-calendar/uni-calendar-item.vue +190 -168
  10. package/dist/uni/uni-ui/uni-calendar/uni-calendar.vue +459 -459
  11. package/dist/uni/uni-ui/uni-calendar/util.js +324 -340
  12. package/dist/uni/uni-ui/uni-card/uni-card.vue +8 -1
  13. package/dist/uni/uni-ui/uni-col/uni-col.vue +294 -287
  14. package/dist/uni/uni-ui/uni-collapse/uni-collapse.vue +139 -140
  15. package/dist/uni/uni-ui/uni-collapse-item/uni-collapse-item.vue +381 -378
  16. package/dist/uni/uni-ui/uni-combox/uni-combox.vue +280 -272
  17. package/dist/uni/uni-ui/uni-countdown/i18n/en.json +4 -4
  18. package/dist/uni/uni-ui/uni-countdown/i18n/index.js +8 -7
  19. package/dist/uni/uni-ui/uni-countdown/i18n/zh-Hans.json +4 -4
  20. package/dist/uni/uni-ui/uni-countdown/i18n/zh-Hant.json +4 -4
  21. package/dist/uni/uni-ui/uni-countdown/uni-countdown.vue +249 -257
  22. package/dist/uni/uni-ui/uni-data-checkbox/uni-data-checkbox.vue +832 -813
  23. package/dist/uni/uni-ui/uni-data-picker/keypress.js +42 -42
  24. package/dist/uni/uni-ui/uni-data-picker/uni-data-picker.vue +535 -516
  25. package/dist/uni/uni-ui/uni-data-pickerview/uni-data-picker.js +623 -618
  26. package/dist/uni/uni-ui/uni-data-pickerview/uni-data-pickerview.vue +293 -288
  27. package/dist/uni/uni-ui/uni-data-select/uni-data-select.vue +495 -509
  28. package/dist/uni/uni-ui/uni-dateformat/date-format.js +181 -184
  29. package/dist/uni/uni-ui/uni-dateformat/uni-dateformat.vue +81 -82
  30. package/dist/uni/uni-ui/uni-datetime-picker/calendar-item.vue +176 -170
  31. package/dist/uni/uni-ui/uni-datetime-picker/calendar.vue +926 -920
  32. package/dist/uni/uni-ui/uni-datetime-picker/i18n/en.json +20 -20
  33. package/dist/uni/uni-ui/uni-datetime-picker/i18n/index.js +8 -7
  34. package/dist/uni/uni-ui/uni-datetime-picker/i18n/zh-Hans.json +21 -21
  35. package/dist/uni/uni-ui/uni-datetime-picker/i18n/zh-Hant.json +21 -21
  36. package/dist/uni/uni-ui/uni-datetime-picker/time-picker.vue +921 -926
  37. package/dist/uni/uni-ui/uni-datetime-picker/uni-datetime-picker.vue +1059 -1012
  38. package/dist/uni/uni-ui/uni-datetime-picker/util.js +366 -377
  39. package/dist/uni/uni-ui/uni-drawer/keypress.js +42 -42
  40. package/dist/uni/uni-ui/uni-drawer/uni-drawer.vue +176 -167
  41. package/dist/uni/uni-ui/uni-easyinput/common.js +40 -42
  42. package/dist/uni/uni-ui/uni-easyinput/uni-easyinput.vue +628 -547
  43. package/dist/uni/uni-ui/uni-fab/uni-fab.vue +507 -483
  44. package/dist/uni/uni-ui/uni-fav/i18n/en.json +2 -2
  45. package/dist/uni/uni-ui/uni-fav/i18n/index.js +8 -7
  46. package/dist/uni/uni-ui/uni-fav/i18n/zh-Hans.json +2 -2
  47. package/dist/uni/uni-ui/uni-fav/i18n/zh-Hant.json +2 -2
  48. package/dist/uni/uni-ui/uni-fav/uni-fav.vue +155 -147
  49. package/dist/uni/uni-ui/uni-file-picker/choose-and-upload-file.js +172 -198
  50. package/dist/uni/uni-ui/uni-file-picker/uni-file-picker.vue +636 -634
  51. package/dist/uni/uni-ui/uni-file-picker/upload-file.vue +294 -293
  52. package/dist/uni/uni-ui/uni-file-picker/upload-image.vue +267 -270
  53. package/dist/uni/uni-ui/uni-file-picker/utils.js +81 -82
  54. package/dist/uni/uni-ui/uni-forms/uni-forms.vue +360 -372
  55. package/dist/uni/uni-ui/uni-forms/utils.js +170 -174
  56. package/dist/uni/uni-ui/uni-forms/validate.js +447 -456
  57. package/dist/uni/uni-ui/uni-forms-item/uni-forms-item.vue +497 -497
  58. package/dist/uni/uni-ui/uni-goods-nav/i18n/en.json +4 -4
  59. package/dist/uni/uni-ui/uni-goods-nav/i18n/index.js +8 -7
  60. package/dist/uni/uni-ui/uni-goods-nav/i18n/zh-Hans.json +4 -4
  61. package/dist/uni/uni-ui/uni-goods-nav/i18n/zh-Hant.json +4 -4
  62. package/dist/uni/uni-ui/uni-goods-nav/uni-goods-nav.vue +238 -222
  63. package/dist/uni/uni-ui/uni-grid/uni-grid.vue +134 -134
  64. package/dist/uni/uni-ui/uni-grid-item/uni-grid-item.vue +121 -119
  65. package/dist/uni/uni-ui/uni-group/uni-group.vue +121 -121
  66. package/dist/uni/uni-ui/uni-icons/icons.js +1170 -1168
  67. package/dist/uni/uni-ui/uni-icons/uni-icons.vue +91 -86
  68. package/dist/uni/uni-ui/uni-icons/uniicons.css +166 -166
  69. package/dist/uni/uni-ui/uni-indexed-list/uni-indexed-list-item.vue +129 -129
  70. package/dist/uni/uni-ui/uni-indexed-list/uni-indexed-list.vue +352 -347
  71. package/dist/uni/uni-ui/uni-link/uni-link.vue +134 -119
  72. package/dist/uni/uni-ui/uni-list/uni-list.vue +119 -110
  73. package/dist/uni/uni-ui/uni-list/uni-refresh.vue +14 -14
  74. package/dist/uni/uni-ui/uni-list/uni-refresh.wxs +14 -14
  75. package/dist/uni/uni-ui/uni-list-ad/uni-list-ad.vue +101 -95
  76. package/dist/uni/uni-ui/uni-list-chat/uni-list-chat.scss +18 -18
  77. package/dist/uni/uni-ui/uni-list-chat/uni-list-chat.vue +602 -586
  78. package/dist/uni/uni-ui/uni-list-item/uni-list-item.vue +507 -503
  79. package/dist/uni/uni-ui/uni-load-more/i18n/en.json +3 -3
  80. package/dist/uni/uni-ui/uni-load-more/i18n/index.js +8 -7
  81. package/dist/uni/uni-ui/uni-load-more/i18n/zh-Hans.json +3 -3
  82. package/dist/uni/uni-ui/uni-load-more/i18n/zh-Hant.json +3 -3
  83. package/dist/uni/uni-ui/uni-load-more/uni-load-more.vue +402 -392
  84. package/dist/uni/uni-ui/uni-nav-bar/uni-nav-bar.vue +328 -330
  85. package/dist/uni/uni-ui/uni-nav-bar/uni-status-bar.vue +17 -17
  86. package/dist/uni/uni-ui/uni-notice-bar/uni-notice-bar.vue +422 -401
  87. package/dist/uni/uni-ui/uni-number-box/uni-number-box.vue +211 -205
  88. package/dist/uni/uni-ui/uni-pagination/i18n/en.json +3 -3
  89. package/dist/uni/uni-ui/uni-pagination/i18n/es.json +3 -3
  90. package/dist/uni/uni-ui/uni-pagination/i18n/fr.json +3 -3
  91. package/dist/uni/uni-ui/uni-pagination/i18n/index.js +12 -11
  92. package/dist/uni/uni-ui/uni-pagination/i18n/zh-Hans.json +3 -3
  93. package/dist/uni/uni-ui/uni-pagination/i18n/zh-Hant.json +3 -3
  94. package/dist/uni/uni-ui/uni-pagination/uni-pagination.vue +450 -433
  95. package/dist/uni/uni-ui/uni-popup/uni-popup.vue +404 -404
  96. package/dist/uni/uni-ui/uni-popup-dialog/keypress.js +42 -42
  97. package/dist/uni/uni-ui/uni-popup-dialog/uni-popup-dialog.vue +1 -0
  98. package/dist/uni/uni-ui/uni-popup-message/uni-popup-message.vue +126 -125
  99. package/dist/uni/uni-ui/uni-popup-share/uni-popup-share.vue +172 -172
  100. package/dist/uni/uni-ui/uni-rate/uni-rate.vue +343 -347
  101. package/dist/uni/uni-ui/uni-row/uni-row.vue +180 -182
  102. package/dist/uni/uni-ui/uni-scss/changelog.md +11 -4
  103. package/dist/uni/uni-ui/uni-scss/package.json +73 -73
  104. package/dist/uni/uni-ui/uni-scss/readme.md +2 -1
  105. package/dist/uni/uni-ui/uni-scss/styles/setting/_border.scss +2 -2
  106. package/dist/uni/uni-ui/uni-scss/styles/setting/_color.scss +46 -47
  107. package/dist/uni/uni-ui/uni-scss/styles/setting/_radius.scss +49 -49
  108. package/dist/uni/uni-ui/uni-scss/styles/setting/_space.scss +52 -53
  109. package/dist/uni/uni-ui/uni-scss/styles/setting/_styles.scss +142 -147
  110. package/dist/uni/uni-ui/uni-scss/styles/setting/_text.scss +20 -20
  111. package/dist/uni/uni-ui/uni-scss/styles/setting/_variables.scss +111 -95
  112. package/dist/uni/uni-ui/uni-scss/styles/tools/functions.scss +28 -18
  113. package/dist/uni/uni-ui/uni-scss/theme.scss +10 -7
  114. package/dist/uni/uni-ui/uni-scss/variables.scss +42 -24
  115. package/dist/uni/uni-ui/uni-search-bar/i18n/en.json +3 -3
  116. package/dist/uni/uni-ui/uni-search-bar/i18n/index.js +8 -7
  117. package/dist/uni/uni-ui/uni-search-bar/i18n/zh-Hans.json +2 -2
  118. package/dist/uni/uni-ui/uni-search-bar/i18n/zh-Hant.json +2 -2
  119. package/dist/uni/uni-ui/uni-search-bar/uni-search-bar.vue +290 -281
  120. package/dist/uni/uni-ui/uni-section/uni-section.vue +149 -146
  121. package/dist/uni/uni-ui/uni-segmented-control/uni-segmented-control.vue +141 -131
  122. package/dist/uni/uni-ui/uni-steps/uni-steps.vue +255 -236
  123. package/dist/uni/uni-ui/uni-swipe-action/uni-swipe-action.vue +51 -51
  124. package/dist/uni/uni-ui/uni-swipe-action-item/bindingx.js +276 -282
  125. package/dist/uni/uni-ui/uni-swipe-action-item/isPC.js +10 -10
  126. package/dist/uni/uni-ui/uni-swipe-action-item/mpalipay.js +182 -187
  127. package/dist/uni/uni-ui/uni-swipe-action-item/mpother.js +235 -244
  128. package/dist/uni/uni-ui/uni-swipe-action-item/mpwxs.js +70 -75
  129. package/dist/uni/uni-ui/uni-swipe-action-item/render.js +238 -247
  130. package/dist/uni/uni-ui/uni-swipe-action-item/uni-swipe-action-item.vue +387 -313
  131. package/dist/uni/uni-ui/uni-swipe-action-item/wx.wxs +206 -215
  132. package/dist/uni/uni-ui/uni-swiper-dot/uni-swiper-dot.vue +241 -197
  133. package/dist/uni/uni-ui/uni-table/uni-table.vue +445 -447
  134. package/dist/uni/uni-ui/uni-tag/uni-tag.vue +234 -244
  135. package/dist/uni/uni-ui/uni-tbody/uni-tbody.vue +20 -23
  136. package/dist/uni/uni-ui/uni-td/uni-td.vue +79 -80
  137. package/dist/uni/uni-ui/uni-th/filter-dropdown.vue +510 -503
  138. package/dist/uni/uni-ui/uni-th/uni-th.vue +289 -273
  139. package/dist/uni/uni-ui/uni-thead/uni-thead.vue +115 -114
  140. package/dist/uni/uni-ui/uni-title/uni-title.vue +151 -154
  141. package/dist/uni/uni-ui/uni-tooltip/uni-tooltip.vue +55 -60
  142. package/dist/uni/uni-ui/uni-tr/table-checkbox.vue +162 -163
  143. package/dist/uni/uni-ui/uni-tr/uni-tr.vue +158 -157
  144. package/dist/uni/uni-ui/uni-transition/createAnimation.js +130 -113
  145. package/dist/uni/uni-ui/uni-transition/uni-transition.vue +274 -272
  146. package/package.json +1 -1
@@ -1,68 +1,63 @@
1
1
  <template>
2
- <view class="uni-tooltip">
3
- <slot></slot>
4
- <view v-if="content || $slots.content" class="uni-tooltip-popup">
5
- <slot name="content">
6
- {{content}}
7
- </slot>
8
- </view>
9
- </view>
2
+ <view class="uni-tooltip">
3
+ <slot></slot>
4
+ <view v-if="content || $slots.content" class="uni-tooltip-popup">
5
+ <slot name="content">
6
+ {{ content }}
7
+ </slot>
8
+ </view>
9
+ </view>
10
10
  </template>
11
11
 
12
-
13
12
  <script>
14
- /**
15
- * Tooltip 提示文字
16
- * @description 常用于展示鼠标 hover 时的提示信息。
17
- * @tutorial https://uniapp.dcloud.io/component/uniui/uni-tooltip
18
- * @property {String} content 弹出层显示的内容
19
- * @property {String} placement出现位置, 目前只支持 left
20
- */
21
-
22
-
23
- export default {
24
- name: "uni-tooltip",
25
- data() {
26
- return {
27
-
28
- };
29
- },
30
- props: {
31
- content: {
32
- type: String,
33
- default: ''
34
- },
35
-
36
- placement: {
37
- type: String,
38
- default: 'bottom'
39
- },
40
- }
41
- }
13
+ /**
14
+ * Tooltip 提示文字
15
+ * @description 常用于展示鼠标 hover 时的提示信息。
16
+ * @tutorial https://uniapp.dcloud.io/component/uniui/uni-tooltip
17
+ * @property {String} content 弹出层显示的内容
18
+ * @property {String} placement出现位置, 目前只支持 left
19
+ */
20
+
21
+ export default {
22
+ name: 'uni-tooltip',
23
+ data() {
24
+ return {};
25
+ },
26
+ props: {
27
+ content: {
28
+ type: String,
29
+ default: '',
30
+ },
31
+
32
+ placement: {
33
+ type: String,
34
+ default: 'bottom',
35
+ },
36
+ },
37
+ };
42
38
  </script>
43
39
 
44
40
  <style>
45
- .uni-tooltip {
46
- position: relative;
47
- cursor: pointer;
48
- }
49
-
50
- .uni-tooltip-popup {
51
- z-index: 1;
52
- display: none;
53
- position: absolute;
54
- left: 0;
55
- background-color: #333;
56
- border-radius: 8px;
57
- color: #fff;
58
- font-size: 12px;
59
- text-align: left;
60
- line-height: 16px;
61
- padding: 12px;
62
- }
63
-
64
-
65
- .uni-tooltip:hover .uni-tooltip-popup {
66
- display: block;
67
- }
41
+ .uni-tooltip {
42
+ position: relative;
43
+ cursor: pointer;
44
+ }
45
+
46
+ .uni-tooltip-popup {
47
+ z-index: 1;
48
+ display: none;
49
+ position: absolute;
50
+ left: 0;
51
+ background-color: #333;
52
+ border-radius: 8px;
53
+ color: #fff;
54
+ font-size: 12px;
55
+ text-align: left;
56
+ line-height: 16px;
57
+ padding: 12px;
58
+ }
59
+
60
+ .uni-tooltip:hover .uni-tooltip-popup {
61
+ display: block;
62
+ }
68
63
  </style>
@@ -1,179 +1,178 @@
1
1
  <template>
2
- <view class="uni-table-checkbox" @click="selected">
3
- <view v-if="!indeterminate" class="checkbox__inner" :class="{'is-checked':isChecked,'is-disable':isDisabled}">
4
- <view class="checkbox__inner-icon"></view>
5
- </view>
6
- <view v-else class="checkbox__inner checkbox--indeterminate">
7
- <view class="checkbox__inner-icon"></view>
8
- </view>
9
- </view>
2
+ <view class="uni-table-checkbox" @click="selected">
3
+ <view v-if="!indeterminate" class="checkbox__inner" :class="{ 'is-checked': isChecked, 'is-disable': isDisabled }">
4
+ <view class="checkbox__inner-icon"></view>
5
+ </view>
6
+ <view v-else class="checkbox__inner checkbox--indeterminate">
7
+ <view class="checkbox__inner-icon"></view>
8
+ </view>
9
+ </view>
10
10
  </template>
11
11
 
12
12
  <script>
13
- export default {
14
- name: 'TableCheckbox',
15
- emits:['checkboxSelected'],
16
- props: {
17
- indeterminate: {
18
- type: Boolean,
19
- default: false
20
- },
21
- checked: {
22
- type: [Boolean,String],
23
- default: false
24
- },
25
- disabled: {
26
- type: Boolean,
27
- default: false
28
- },
29
- index: {
30
- type: Number,
31
- default: -1
32
- },
33
- cellData: {
34
- type: Object,
35
- default () {
36
- return {}
37
- }
38
- }
39
- },
40
- watch:{
41
- checked(newVal){
42
- if(typeof this.checked === 'boolean'){
43
- this.isChecked = newVal
44
- }else{
45
- this.isChecked = true
46
- }
47
- },
48
- indeterminate(newVal){
49
- this.isIndeterminate = newVal
50
- }
51
- },
52
- data() {
53
- return {
54
- isChecked: false,
55
- isDisabled: false,
56
- isIndeterminate:false
57
- }
58
- },
59
- created() {
60
- if(typeof this.checked === 'boolean'){
61
- this.isChecked = this.checked
62
- }
63
- this.isDisabled = this.disabled
64
- },
65
- methods: {
66
- selected() {
67
- if (this.isDisabled) return
68
- this.isIndeterminate = false
69
- this.isChecked = !this.isChecked
70
- this.$emit('checkboxSelected', {
71
- checked: this.isChecked,
72
- data: this.cellData
73
- })
74
- }
75
- }
76
- }
13
+ export default {
14
+ name: 'TableCheckbox',
15
+ emits: ['checkboxSelected'],
16
+ props: {
17
+ indeterminate: {
18
+ type: Boolean,
19
+ default: false,
20
+ },
21
+ checked: {
22
+ type: [Boolean, String],
23
+ default: false,
24
+ },
25
+ disabled: {
26
+ type: Boolean,
27
+ default: false,
28
+ },
29
+ index: {
30
+ type: Number,
31
+ default: -1,
32
+ },
33
+ cellData: {
34
+ type: Object,
35
+ default() {
36
+ return {};
37
+ },
38
+ },
39
+ },
40
+ watch: {
41
+ checked(newVal) {
42
+ if (typeof this.checked === 'boolean') {
43
+ this.isChecked = newVal;
44
+ } else {
45
+ this.isChecked = true;
46
+ }
47
+ },
48
+ indeterminate(newVal) {
49
+ this.isIndeterminate = newVal;
50
+ },
51
+ },
52
+ data() {
53
+ return {
54
+ isChecked: false,
55
+ isDisabled: false,
56
+ isIndeterminate: false,
57
+ };
58
+ },
59
+ created() {
60
+ if (typeof this.checked === 'boolean') {
61
+ this.isChecked = this.checked;
62
+ }
63
+ this.isDisabled = this.disabled;
64
+ },
65
+ methods: {
66
+ selected() {
67
+ if (this.isDisabled) return;
68
+ this.isIndeterminate = false;
69
+ this.isChecked = !this.isChecked;
70
+ this.$emit('checkboxSelected', {
71
+ checked: this.isChecked,
72
+ data: this.cellData,
73
+ });
74
+ },
75
+ },
76
+ };
77
77
  </script>
78
78
 
79
79
  <style lang="scss">
80
- $uni-primary: #007aff !default;
81
- $border-color: #DCDFE6;
82
- $disable:0.4;
80
+ $uni-primary: #007aff !default;
81
+ $border-color: #dcdfe6;
82
+ $disable: 0.4;
83
83
 
84
- .uni-table-checkbox {
85
- display: flex;
86
- flex-direction: row;
87
- align-items: center;
88
- justify-content: center;
89
- position: relative;
90
- margin: 5px 0;
91
- cursor: pointer;
84
+ .uni-table-checkbox {
85
+ display: flex;
86
+ flex-direction: row;
87
+ align-items: center;
88
+ justify-content: center;
89
+ position: relative;
90
+ margin: 5px 0;
91
+ cursor: pointer;
92
92
 
93
- // 多选样式
94
- .checkbox__inner {
95
- /* #ifndef APP-NVUE */
96
- flex-shrink: 0;
97
- box-sizing: border-box;
98
- /* #endif */
99
- position: relative;
100
- width: 16px;
101
- height: 16px;
102
- border: 1px solid $border-color;
103
- border-radius: 2px;
104
- background-color: #fff;
105
- z-index: 1;
93
+ // 多选样式
94
+ .checkbox__inner {
95
+ /* #ifndef APP-NVUE */
96
+ flex-shrink: 0;
97
+ box-sizing: border-box;
98
+ /* #endif */
99
+ position: relative;
100
+ width: 16px;
101
+ height: 16px;
102
+ border: 1px solid $border-color;
103
+ border-radius: 2px;
104
+ background-color: #fff;
105
+ z-index: 1;
106
106
 
107
- .checkbox__inner-icon {
108
- position: absolute;
109
- /* #ifdef APP-NVUE */
110
- top: 2px;
111
- /* #endif */
112
- /* #ifndef APP-NVUE */
113
- top: 2px;
114
- /* #endif */
115
- left: 5px;
116
- height: 7px;
117
- width: 3px;
118
- border: 1px solid #fff;
119
- border-left: 0;
120
- border-top: 0;
121
- opacity: 0;
122
- transform-origin: center;
123
- transform: rotate(45deg);
124
- box-sizing: content-box;
125
- }
107
+ .checkbox__inner-icon {
108
+ position: absolute;
109
+ /* #ifdef APP-NVUE */
110
+ top: 2px;
111
+ /* #endif */
112
+ /* #ifndef APP-NVUE */
113
+ top: 2px;
114
+ /* #endif */
115
+ left: 5px;
116
+ height: 7px;
117
+ width: 3px;
118
+ border: 1px solid #fff;
119
+ border-left: 0;
120
+ border-top: 0;
121
+ opacity: 0;
122
+ transform-origin: center;
123
+ transform: rotate(45deg);
124
+ box-sizing: content-box;
125
+ }
126
126
 
127
- &.checkbox--indeterminate {
128
- border-color: $uni-primary;
129
- background-color: $uni-primary;
127
+ &.checkbox--indeterminate {
128
+ border-color: $uni-primary;
129
+ background-color: $uni-primary;
130
130
 
131
- .checkbox__inner-icon {
132
- position: absolute;
133
- opacity: 1;
134
- transform: rotate(0deg);
135
- height: 2px;
136
- top: 0;
137
- bottom: 0;
138
- margin: auto;
139
- left: 0px;
140
- right: 0px;
141
- bottom: 0;
142
- width: auto;
143
- border: none;
144
- border-radius: 2px;
145
- transform: scale(0.5);
146
- background-color: #fff;
147
- }
148
- }
149
- &:hover{
150
- border-color: $uni-primary;
151
- }
152
- // 禁用
153
- &.is-disable {
154
- /* #ifdef H5 */
155
- cursor: not-allowed;
156
- /* #endif */
157
- background-color: #F2F6FC;
158
- border-color: $border-color;
159
- }
131
+ .checkbox__inner-icon {
132
+ position: absolute;
133
+ opacity: 1;
134
+ transform: rotate(0deg);
135
+ height: 2px;
136
+ top: 0;
137
+ bottom: 0;
138
+ margin: auto;
139
+ left: 0px;
140
+ right: 0px;
141
+ bottom: 0;
142
+ width: auto;
143
+ border: none;
144
+ border-radius: 2px;
145
+ transform: scale(0.5);
146
+ background-color: #fff;
147
+ }
148
+ }
149
+ &:hover {
150
+ border-color: $uni-primary;
151
+ }
152
+ // 禁用
153
+ &.is-disable {
154
+ /* #ifdef H5 */
155
+ cursor: not-allowed;
156
+ /* #endif */
157
+ background-color: #f2f6fc;
158
+ border-color: $border-color;
159
+ }
160
160
 
161
- // 选中
162
- &.is-checked {
163
- border-color: $uni-primary;
164
- background-color: $uni-primary;
161
+ // 选中
162
+ &.is-checked {
163
+ border-color: $uni-primary;
164
+ background-color: $uni-primary;
165
165
 
166
- .checkbox__inner-icon {
167
- opacity: 1;
168
- transform: rotate(45deg);
169
- }
166
+ .checkbox__inner-icon {
167
+ opacity: 1;
168
+ transform: rotate(45deg);
169
+ }
170
170
 
171
- // 选中禁用
172
- &.is-disable {
173
- opacity: $disable;
174
- }
175
- }
176
-
177
- }
178
- }
171
+ // 选中禁用
172
+ &.is-disable {
173
+ opacity: $disable;
174
+ }
175
+ }
176
+ }
177
+ }
179
178
  </style>