@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,269 +1,288 @@
1
1
  <template>
2
- <view class="uni-steps">
3
- <view :class="[direction==='column'?'uni-steps__column':'uni-steps__row']">
4
- <view :class="[direction==='column'?'uni-steps__column-text-container':'uni-steps__row-text-container']">
5
- <view v-for="(item,index) in options" :key="index"
6
- :class="[direction==='column'?'uni-steps__column-text':'uni-steps__row-text']">
7
- <text :style="{color:index === active?activeColor:deactiveColor}"
8
- :class="[direction==='column'?'uni-steps__column-title':'uni-steps__row-title']">{{item.title}}</text>
9
- <text :style="{color: deactiveColor}"
10
- :class="[direction==='column'?'uni-steps__column-desc':'uni-steps__row-desc']">{{item.desc}}</text>
11
- </view>
12
- </view>
13
- <view :class="[direction==='column'?'uni-steps__column-container':'uni-steps__row-container']">
14
- <view :class="[direction==='column'?'uni-steps__column-line-item':'uni-steps__row-line-item']"
15
- v-for="(item,index) in options" :key="index">
16
- <view
17
- :class="[direction==='column'?'uni-steps__column-line':'uni-steps__row-line',direction==='column'?'uni-steps__column-line--before':'uni-steps__row-line--before']"
18
- :style="{backgroundColor:index<=active&&index!==0?activeColor:index===0?'transparent':deactiveColor}">
19
- </view>
20
- <view :class="[direction==='column'?'uni-steps__column-check':'uni-steps__row-check']"
21
- v-if="index === active">
22
- <uni-icons :color="activeColor" :type="activeIcon" size="14"></uni-icons>
23
- </view>
24
- <view v-else :class="[direction==='column'?'uni-steps__column-circle':'uni-steps__row-circle']"
25
- :style="{backgroundColor:index<active?activeColor:deactiveColor}"></view>
26
- <view
27
- :class="[direction==='column'?'uni-steps__column-line':'uni-steps__row-line',direction==='column'?'uni-steps__column-line--after':'uni-steps__row-line--after']"
28
- :style="{backgroundColor:index<active&&index!==options.length-1?activeColor:index===options.length-1?'transparent':deactiveColor}">
29
- </view>
30
- </view>
31
- </view>
32
- </view>
33
- </view>
2
+ <view class="uni-steps">
3
+ <view :class="[direction === 'column' ? 'uni-steps__column' : 'uni-steps__row']">
4
+ <view :class="[direction === 'column' ? 'uni-steps__column-text-container' : 'uni-steps__row-text-container']">
5
+ <view v-for="(item, index) in options" :key="index" :class="[direction === 'column' ? 'uni-steps__column-text' : 'uni-steps__row-text']">
6
+ <text
7
+ :style="{ color: index === active ? activeColor : deactiveColor }"
8
+ :class="[direction === 'column' ? 'uni-steps__column-title' : 'uni-steps__row-title']"
9
+ >{{ item.title }}</text
10
+ >
11
+ <text :style="{ color: deactiveColor }" :class="[direction === 'column' ? 'uni-steps__column-desc' : 'uni-steps__row-desc']">{{
12
+ item.desc
13
+ }}</text>
14
+ </view>
15
+ </view>
16
+ <view :class="[direction === 'column' ? 'uni-steps__column-container' : 'uni-steps__row-container']">
17
+ <view
18
+ :class="[direction === 'column' ? 'uni-steps__column-line-item' : 'uni-steps__row-line-item']"
19
+ v-for="(item, index) in options"
20
+ :key="index"
21
+ >
22
+ <view
23
+ :class="[
24
+ direction === 'column' ? 'uni-steps__column-line' : 'uni-steps__row-line',
25
+ direction === 'column' ? 'uni-steps__column-line--before' : 'uni-steps__row-line--before',
26
+ ]"
27
+ :style="{ backgroundColor: index <= active && index !== 0 ? activeColor : index === 0 ? 'transparent' : deactiveColor }"
28
+ >
29
+ </view>
30
+ <view :class="[direction === 'column' ? 'uni-steps__column-check' : 'uni-steps__row-check']" v-if="index === active">
31
+ <uni-icons :color="activeColor" :type="activeIcon" size="14"></uni-icons>
32
+ </view>
33
+ <view
34
+ v-else
35
+ :class="[direction === 'column' ? 'uni-steps__column-circle' : 'uni-steps__row-circle']"
36
+ :style="{ backgroundColor: index < active ? activeColor : deactiveColor }"
37
+ ></view>
38
+ <view
39
+ :class="[
40
+ direction === 'column' ? 'uni-steps__column-line' : 'uni-steps__row-line',
41
+ direction === 'column' ? 'uni-steps__column-line--after' : 'uni-steps__row-line--after',
42
+ ]"
43
+ :style="{
44
+ backgroundColor:
45
+ index < active && index !== options.length - 1 ? activeColor : index === options.length - 1 ? 'transparent' : deactiveColor,
46
+ }"
47
+ >
48
+ </view>
49
+ </view>
50
+ </view>
51
+ </view>
52
+ </view>
34
53
  </template>
35
54
 
36
55
  <script>
37
- /**
38
- * Steps 步骤条
39
- * @description 评分组件
40
- * @tutorial https://ext.dcloud.net.cn/plugin?id=34
41
- * @property {Number} active 当前步骤
42
- * @property {String} direction = [row|column] 当前步骤
43
- * @value row 横向
44
- * @value column 纵向
45
- * @property {String} activeColor 选中状态的颜色
46
- * @property {Array} options 数据源,格式为:[{title:'xxx',desc:'xxx'},{title:'xxx',desc:'xxx'}]
47
- */
56
+ /**
57
+ * Steps 步骤条
58
+ * @description 评分组件
59
+ * @tutorial https://ext.dcloud.net.cn/plugin?id=34
60
+ * @property {Number} active 当前步骤
61
+ * @property {String} direction = [row|column] 当前步骤
62
+ * @value row 横向
63
+ * @value column 纵向
64
+ * @property {String} activeColor 选中状态的颜色
65
+ * @property {Array} options 数据源,格式为:[{title:'xxx',desc:'xxx'},{title:'xxx',desc:'xxx'}]
66
+ */
48
67
 
49
- export default {
50
- name: 'UniSteps',
51
- props: {
52
- direction: {
53
- // 排列方向 row column
54
- type: String,
55
- default: 'row'
56
- },
57
- activeColor: {
58
- // 激活状态颜色
59
- type: String,
60
- default: '#2979FF'
61
- },
62
- deactiveColor: {
63
- // 未激活状态颜色
64
- type: String,
65
- default: '#B7BDC6'
66
- },
67
- active: {
68
- // 当前步骤
69
- type: Number,
70
- default: 0
71
- },
72
- activeIcon: {
73
- // 当前步骤
74
- type: String,
75
- default: 'checkbox-filled'
76
- },
77
- options: {
78
- type: Array,
79
- default () {
80
- return []
81
- }
82
- } // 数据
83
- },
84
- data() {
85
- return {}
86
- }
87
- }
68
+ export default {
69
+ name: 'UniSteps',
70
+ props: {
71
+ direction: {
72
+ // 排列方向 row column
73
+ type: String,
74
+ default: 'row',
75
+ },
76
+ activeColor: {
77
+ // 激活状态颜色
78
+ type: String,
79
+ default: '#2979FF',
80
+ },
81
+ deactiveColor: {
82
+ // 未激活状态颜色
83
+ type: String,
84
+ default: '#B7BDC6',
85
+ },
86
+ active: {
87
+ // 当前步骤
88
+ type: Number,
89
+ default: 0,
90
+ },
91
+ activeIcon: {
92
+ // 当前步骤
93
+ type: String,
94
+ default: 'checkbox-filled',
95
+ },
96
+ options: {
97
+ type: Array,
98
+ default() {
99
+ return [];
100
+ },
101
+ }, // 数据
102
+ },
103
+ data() {
104
+ return {};
105
+ },
106
+ };
88
107
  </script>
89
108
 
90
109
  <style lang="scss">
91
- $uni-primary: #2979ff !default;
92
- $uni-border-color:#EDEDED;
93
- .uni-steps {
94
- /* #ifndef APP-NVUE */
95
- display: flex;
96
- width: 100%;
97
- /* #endif */
98
- /* #ifdef APP-NVUE */
99
- flex: 1;
100
- /* #endif */
101
- flex-direction: column;
102
- }
110
+ $uni-primary: #2979ff !default;
111
+ $uni-border-color: #ededed;
112
+ .uni-steps {
113
+ /* #ifndef APP-NVUE */
114
+ display: flex;
115
+ width: 100%;
116
+ /* #endif */
117
+ /* #ifdef APP-NVUE */
118
+ flex: 1;
119
+ /* #endif */
120
+ flex-direction: column;
121
+ }
103
122
 
104
- .uni-steps__row {
105
- /* #ifndef APP-NVUE */
106
- display: flex;
107
- /* #endif */
108
- flex-direction: column;
109
- }
123
+ .uni-steps__row {
124
+ /* #ifndef APP-NVUE */
125
+ display: flex;
126
+ /* #endif */
127
+ flex-direction: column;
128
+ }
110
129
 
111
- .uni-steps__column {
112
- /* #ifndef APP-NVUE */
113
- display: flex;
114
- /* #endif */
115
- flex-direction: row-reverse;
116
- }
130
+ .uni-steps__column {
131
+ /* #ifndef APP-NVUE */
132
+ display: flex;
133
+ /* #endif */
134
+ flex-direction: row-reverse;
135
+ }
117
136
 
118
- .uni-steps__row-text-container {
119
- /* #ifndef APP-NVUE */
120
- display: flex;
121
- /* #endif */
122
- flex-direction: row;
123
- align-items: flex-end;
124
- margin-bottom: 8px;
125
- }
137
+ .uni-steps__row-text-container {
138
+ /* #ifndef APP-NVUE */
139
+ display: flex;
140
+ /* #endif */
141
+ flex-direction: row;
142
+ align-items: flex-end;
143
+ margin-bottom: 8px;
144
+ }
126
145
 
127
- .uni-steps__column-text-container {
128
- /* #ifndef APP-NVUE */
129
- display: flex;
130
- /* #endif */
131
- flex-direction: column;
132
- flex: 1;
133
- }
146
+ .uni-steps__column-text-container {
147
+ /* #ifndef APP-NVUE */
148
+ display: flex;
149
+ /* #endif */
150
+ flex-direction: column;
151
+ flex: 1;
152
+ }
134
153
 
135
- .uni-steps__row-text {
136
- /* #ifndef APP-NVUE */
137
- display: inline-flex;
138
- /* #endif */
139
- flex: 1;
140
- flex-direction: column;
141
- }
154
+ .uni-steps__row-text {
155
+ /* #ifndef APP-NVUE */
156
+ display: inline-flex;
157
+ /* #endif */
158
+ flex: 1;
159
+ flex-direction: column;
160
+ }
142
161
 
143
- .uni-steps__column-text {
144
- padding: 6px 0px;
145
- border-bottom-style: solid;
146
- border-bottom-width: 1px;
147
- border-bottom-color: $uni-border-color;
148
- /* #ifndef APP-NVUE */
149
- display: flex;
150
- /* #endif */
151
- flex-direction: column;
152
- }
162
+ .uni-steps__column-text {
163
+ padding: 6px 0px;
164
+ border-bottom-style: solid;
165
+ border-bottom-width: 1px;
166
+ border-bottom-color: $uni-border-color;
167
+ /* #ifndef APP-NVUE */
168
+ display: flex;
169
+ /* #endif */
170
+ flex-direction: column;
171
+ }
153
172
 
154
- .uni-steps__row-title {
155
- font-size: 14px;
156
- line-height: 16px;
157
- text-align: center;
158
- }
173
+ .uni-steps__row-title {
174
+ font-size: 14px;
175
+ line-height: 16px;
176
+ text-align: center;
177
+ }
159
178
 
160
- .uni-steps__column-title {
161
- font-size: 14px;
162
- text-align: left;
163
- line-height: 18px;
164
- }
179
+ .uni-steps__column-title {
180
+ font-size: 14px;
181
+ text-align: left;
182
+ line-height: 18px;
183
+ }
165
184
 
166
- .uni-steps__row-desc {
167
- font-size: 12px;
168
- line-height: 14px;
169
- text-align: center;
170
- }
185
+ .uni-steps__row-desc {
186
+ font-size: 12px;
187
+ line-height: 14px;
188
+ text-align: center;
189
+ }
171
190
 
172
- .uni-steps__column-desc {
173
- font-size: 12px;
174
- text-align: left;
175
- line-height: 18px;
176
- }
191
+ .uni-steps__column-desc {
192
+ font-size: 12px;
193
+ text-align: left;
194
+ line-height: 18px;
195
+ }
177
196
 
178
- .uni-steps__row-container {
179
- /* #ifndef APP-NVUE */
180
- display: flex;
181
- /* #endif */
182
- flex-direction: row;
183
- }
197
+ .uni-steps__row-container {
198
+ /* #ifndef APP-NVUE */
199
+ display: flex;
200
+ /* #endif */
201
+ flex-direction: row;
202
+ }
184
203
 
185
- .uni-steps__column-container {
186
- /* #ifndef APP-NVUE */
187
- display: inline-flex;
188
- /* #endif */
189
- width: 30px;
190
- flex-direction: column;
191
- }
204
+ .uni-steps__column-container {
205
+ /* #ifndef APP-NVUE */
206
+ display: inline-flex;
207
+ /* #endif */
208
+ width: 30px;
209
+ flex-direction: column;
210
+ }
192
211
 
193
- .uni-steps__row-line-item {
194
- /* #ifndef APP-NVUE */
195
- display: inline-flex;
196
- /* #endif */
197
- flex-direction: row;
198
- flex: 1;
199
- height: 14px;
200
- line-height: 14px;
201
- align-items: center;
202
- justify-content: center;
203
- }
212
+ .uni-steps__row-line-item {
213
+ /* #ifndef APP-NVUE */
214
+ display: inline-flex;
215
+ /* #endif */
216
+ flex-direction: row;
217
+ flex: 1;
218
+ height: 14px;
219
+ line-height: 14px;
220
+ align-items: center;
221
+ justify-content: center;
222
+ }
204
223
 
205
- .uni-steps__column-line-item {
206
- /* #ifndef APP-NVUE */
207
- display: flex;
208
- /* #endif */
209
- flex-direction: column;
210
- flex: 1;
211
- align-items: center;
212
- justify-content: center;
213
- }
224
+ .uni-steps__column-line-item {
225
+ /* #ifndef APP-NVUE */
226
+ display: flex;
227
+ /* #endif */
228
+ flex-direction: column;
229
+ flex: 1;
230
+ align-items: center;
231
+ justify-content: center;
232
+ }
214
233
 
215
- .uni-steps__row-line {
216
- flex: 1;
217
- height: 1px;
218
- background-color: #B7BDC6;
219
- }
234
+ .uni-steps__row-line {
235
+ flex: 1;
236
+ height: 1px;
237
+ background-color: #b7bdc6;
238
+ }
220
239
 
221
- .uni-steps__column-line {
222
- width: 1px;
223
- background-color: #B7BDC6;
224
- }
240
+ .uni-steps__column-line {
241
+ width: 1px;
242
+ background-color: #b7bdc6;
243
+ }
225
244
 
226
- .uni-steps__row-line--after {
227
- transform: translateX(1px);
228
- }
245
+ .uni-steps__row-line--after {
246
+ transform: translateX(1px);
247
+ }
229
248
 
230
- .uni-steps__column-line--after {
231
- flex: 1;
232
- transform: translate(0px, 1px);
233
- }
249
+ .uni-steps__column-line--after {
250
+ flex: 1;
251
+ transform: translate(0px, 1px);
252
+ }
234
253
 
235
- .uni-steps__row-line--before {
236
- transform: translateX(-1px);
237
- }
254
+ .uni-steps__row-line--before {
255
+ transform: translateX(-1px);
256
+ }
238
257
 
239
- .uni-steps__column-line--before {
240
- height: 6px;
241
- transform: translate(0px, -13px);
242
- }
258
+ .uni-steps__column-line--before {
259
+ height: 6px;
260
+ transform: translate(0px, -13px);
261
+ }
243
262
 
244
- .uni-steps__row-circle {
245
- width: 5px;
246
- height: 5px;
247
- border-radius: 50%;
248
- background-color: #B7BDC6;
249
- margin: 0px 3px;
250
- }
263
+ .uni-steps__row-circle {
264
+ width: 5px;
265
+ height: 5px;
266
+ border-radius: 50%;
267
+ background-color: #b7bdc6;
268
+ margin: 0px 3px;
269
+ }
251
270
 
252
- .uni-steps__column-circle {
253
- width: 5px;
254
- height: 5px;
255
- border-radius: 50%;
256
- background-color: #B7BDC6;
257
- margin: 4px 0px 5px 0px;
258
- }
271
+ .uni-steps__column-circle {
272
+ width: 5px;
273
+ height: 5px;
274
+ border-radius: 50%;
275
+ background-color: #b7bdc6;
276
+ margin: 4px 0px 5px 0px;
277
+ }
259
278
 
260
- .uni-steps__row-check {
261
- margin: 0px 6px;
262
- }
279
+ .uni-steps__row-check {
280
+ margin: 0px 6px;
281
+ }
263
282
 
264
- .uni-steps__column-check {
265
- height: 14px;
266
- line-height: 14px;
267
- margin: 2px 0px;
268
- }
283
+ .uni-steps__column-check {
284
+ height: 14px;
285
+ line-height: 14px;
286
+ margin: 2px 0px;
287
+ }
269
288
  </style>
@@ -1,60 +1,60 @@
1
1
  <template>
2
- <view>
3
- <slot></slot>
4
- </view>
2
+ <view>
3
+ <slot></slot>
4
+ </view>
5
5
  </template>
6
6
 
7
7
  <script>
8
- /**
9
- * SwipeAction 滑动操作
10
- * @description 通过滑动触发选项的容器
11
- * @tutorial https://ext.dcloud.net.cn/plugin?id=181
12
- */
13
- export default {
14
- name:"uniSwipeAction",
15
- data() {
16
- return {};
17
- },
18
- created() {
19
- this.children = [];
20
- },
21
- methods: {
22
- // 公开给用户使用,重制组件样式
23
- resize(){
24
- // wxs 会自己计算组件大小,所以无需执行下面代码
25
- // #ifndef APP-VUE || H5 || MP-WEIXIN
26
- this.children.forEach(vm=>{
27
- vm.init()
28
- })
29
- // #endif
30
- },
31
- // 公开给用户使用,关闭全部 已经打开的组件
32
- closeAll(){
33
- this.children.forEach(vm=>{
34
- // #ifdef APP-VUE || H5 || MP-WEIXIN
35
- vm.is_show = 'none'
36
- // #endif
8
+ /**
9
+ * SwipeAction 滑动操作
10
+ * @description 通过滑动触发选项的容器
11
+ * @tutorial https://ext.dcloud.net.cn/plugin?id=181
12
+ */
13
+ export default {
14
+ name: 'uniSwipeAction',
15
+ data() {
16
+ return {};
17
+ },
18
+ created() {
19
+ this.children = [];
20
+ },
21
+ methods: {
22
+ // 公开给用户使用,重制组件样式
23
+ resize() {
24
+ // wxs 会自己计算组件大小,所以无需执行下面代码
25
+ // #ifndef APP-VUE || H5 || MP-WEIXIN
26
+ this.children.forEach((vm) => {
27
+ vm.init();
28
+ });
29
+ // #endif
30
+ },
31
+ // 公开给用户使用,关闭全部 已经打开的组件
32
+ closeAll() {
33
+ this.children.forEach((vm) => {
34
+ // #ifdef APP-VUE || H5 || MP-WEIXIN
35
+ vm.is_show = 'none';
36
+ // #endif
37
37
 
38
- // #ifndef APP-VUE || H5 || MP-WEIXIN
39
- vm.close()
40
- // #endif
41
- })
42
- },
43
- closeOther(vm) {
44
- if (this.openItem && this.openItem !== vm) {
45
- // #ifdef APP-VUE || H5 || MP-WEIXIN
46
- this.openItem.is_show = 'none'
47
- // #endif
38
+ // #ifndef APP-VUE || H5 || MP-WEIXIN
39
+ vm.close();
40
+ // #endif
41
+ });
42
+ },
43
+ closeOther(vm) {
44
+ if (this.openItem && this.openItem !== vm) {
45
+ // #ifdef APP-VUE || H5 || MP-WEIXIN
46
+ this.openItem.is_show = 'none';
47
+ // #endif
48
48
 
49
- // #ifndef APP-VUE || H5 || MP-WEIXIN
50
- this.openItem.close()
51
- // #endif
52
- }
53
- // 记录上一个打开的 swipe-action-item ,用于 auto-close
54
- this.openItem = vm
55
- }
56
- }
57
- };
49
+ // #ifndef APP-VUE || H5 || MP-WEIXIN
50
+ this.openItem.close();
51
+ // #endif
52
+ }
53
+ // 记录上一个打开的 swipe-action-item ,用于 auto-close
54
+ this.openItem = vm;
55
+ },
56
+ },
57
+ };
58
58
  </script>
59
59
 
60
60
  <style></style>