@tdesign/uniapp 0.9.0 → 0.9.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 (258) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/action-sheet/README.en-US.md +4 -3
  3. package/dist/action-sheet/README.md +4 -3
  4. package/dist/action-sheet/action-sheet.vue +16 -12
  5. package/dist/action-sheet/computed.js +1 -1
  6. package/dist/action-sheet/props.ts +5 -0
  7. package/dist/action-sheet/type.ts +6 -1
  8. package/dist/avatar/README.en-US.md +1 -1
  9. package/dist/avatar/README.md +1 -1
  10. package/dist/avatar/avatar.vue +10 -9
  11. package/dist/avatar-group/avatar-group.vue +4 -4
  12. package/dist/back-top/README.en-US.md +1 -1
  13. package/dist/back-top/README.md +1 -1
  14. package/dist/back-top/back-top.vue +5 -4
  15. package/dist/badge/README.en-US.md +1 -1
  16. package/dist/badge/README.md +1 -1
  17. package/dist/badge/badge.vue +4 -2
  18. package/dist/button/README.en-US.md +1 -1
  19. package/dist/button/README.md +1 -1
  20. package/dist/button/button.vue +12 -11
  21. package/dist/calendar/README.en-US.md +1 -1
  22. package/dist/calendar/README.md +1 -1
  23. package/dist/calendar/calendar-header.vue +2 -1
  24. package/dist/calendar/calendar.vue +9 -7
  25. package/dist/calendar/template.vue +12 -9
  26. package/dist/cascader/README.en-US.md +1 -1
  27. package/dist/cascader/README.md +1 -1
  28. package/dist/cascader/cascader.vue +8 -8
  29. package/dist/cell/README.en-US.md +1 -1
  30. package/dist/cell/README.md +1 -1
  31. package/dist/cell/cell.vue +34 -36
  32. package/dist/cell-group/cell-group.vue +5 -3
  33. package/dist/check-tag/check-tag.vue +6 -3
  34. package/dist/checkbox/README.en-US.md +1 -1
  35. package/dist/checkbox/README.md +1 -1
  36. package/dist/checkbox/checkbox.vue +5 -4
  37. package/dist/checkbox-group/checkbox-group.vue +5 -3
  38. package/dist/col/col.vue +7 -3
  39. package/dist/collapse/README.en-US.md +1 -1
  40. package/dist/collapse/README.md +1 -1
  41. package/dist/collapse/collapse.vue +6 -4
  42. package/dist/collapse-panel/collapse-panel.vue +15 -6
  43. package/dist/color-picker/README.en-US.md +1 -1
  44. package/dist/color-picker/README.md +1 -1
  45. package/dist/color-picker/color-picker.vue +9 -7
  46. package/dist/color-picker/template.vue +2 -1
  47. package/dist/common/canvas/index.js +1 -1
  48. package/dist/common/shared/color-picker/color.js +1 -0
  49. package/dist/common/src/instantiationDecorator.js +1 -1
  50. package/dist/common/version.js +1 -1
  51. package/dist/config-provider/config-provider.vue +3 -1
  52. package/dist/count-down/README.en-US.md +1 -1
  53. package/dist/count-down/README.md +1 -1
  54. package/dist/count-down/count-down.vue +5 -3
  55. package/dist/date-time-picker/README.en-US.md +1 -1
  56. package/dist/date-time-picker/README.md +1 -1
  57. package/dist/date-time-picker/date-time-picker.vue +8 -6
  58. package/dist/date-time-picker/locale/dayjs.js +6 -6
  59. package/dist/demo-navbar/demo-navbar.vue +1 -1
  60. package/dist/dialog/README.en-US.md +1 -1
  61. package/dist/dialog/README.md +1 -1
  62. package/dist/dialog/dialog.vue +10 -7
  63. package/dist/dialog/index.js +2 -1
  64. package/dist/divider/README.en-US.md +1 -1
  65. package/dist/divider/README.md +1 -1
  66. package/dist/divider/divider.vue +4 -2
  67. package/dist/draggable/draggable.vue +5 -2
  68. package/dist/drawer/README.en-US.md +1 -1
  69. package/dist/drawer/README.md +1 -1
  70. package/dist/drawer/drawer.vue +7 -5
  71. package/dist/dropdown-item/dropdown-item.vue +14 -11
  72. package/dist/dropdown-menu/README.en-US.md +1 -1
  73. package/dist/dropdown-menu/README.md +1 -1
  74. package/dist/dropdown-menu/dropdown-menu.vue +10 -8
  75. package/dist/empty/README.en-US.md +1 -1
  76. package/dist/empty/README.md +1 -1
  77. package/dist/empty/empty.vue +5 -4
  78. package/dist/fab/README.en-US.md +1 -1
  79. package/dist/fab/README.md +1 -1
  80. package/dist/fab/fab.vue +7 -4
  81. package/dist/footer/README.en-US.md +1 -1
  82. package/dist/footer/README.md +1 -1
  83. package/dist/footer/footer.vue +8 -7
  84. package/dist/form/README.en-US.md +3 -1
  85. package/dist/form/README.md +3 -1
  86. package/dist/form/form.vue +4 -2
  87. package/dist/form/props.ts +9 -0
  88. package/dist/form/type.ts +5 -0
  89. package/dist/form-item/README.en-US.md +2 -1
  90. package/dist/form-item/README.md +2 -1
  91. package/dist/form-item/form-item.vue +8 -6
  92. package/dist/form-item/props.ts +8 -0
  93. package/dist/form-item/type.ts +4 -0
  94. package/dist/grid/README.en-US.md +1 -1
  95. package/dist/grid/README.md +1 -1
  96. package/dist/grid/grid.vue +4 -3
  97. package/dist/grid-item/README.en-US.md +1 -1
  98. package/dist/grid-item/README.md +1 -1
  99. package/dist/grid-item/grid-item.vue +8 -6
  100. package/dist/guide/README.en-US.md +1 -1
  101. package/dist/guide/README.md +1 -1
  102. package/dist/guide/guide.vue +8 -7
  103. package/dist/icon/icon.vue +5 -2
  104. package/dist/image/README.en-US.md +1 -1
  105. package/dist/image/README.md +1 -1
  106. package/dist/image/image.vue +6 -5
  107. package/dist/image-viewer/README.en-US.md +4 -3
  108. package/dist/image-viewer/README.md +4 -3
  109. package/dist/image-viewer/image-viewer.css +12 -0
  110. package/dist/image-viewer/image-viewer.vue +84 -21
  111. package/dist/image-viewer/props.ts +5 -0
  112. package/dist/image-viewer/type.ts +6 -1
  113. package/dist/indexes/README.en-US.md +1 -1
  114. package/dist/indexes/README.md +1 -1
  115. package/dist/indexes/indexes.vue +7 -4
  116. package/dist/indexes-anchor/README.en-US.md +1 -1
  117. package/dist/indexes-anchor/README.md +1 -1
  118. package/dist/indexes-anchor/indexes-anchor.vue +5 -3
  119. package/dist/input/README.en-US.md +1 -1
  120. package/dist/input/README.md +1 -1
  121. package/dist/input/input.vue +1 -1
  122. package/dist/link/README.en-US.md +1 -1
  123. package/dist/link/README.md +1 -1
  124. package/dist/link/link.vue +6 -3
  125. package/dist/loading/README.en-US.md +1 -1
  126. package/dist/loading/README.md +1 -1
  127. package/dist/loading/loading.vue +4 -2
  128. package/dist/message/index.js +2 -1
  129. package/dist/message/message.vue +4 -3
  130. package/dist/message-item/index.js +1 -1
  131. package/dist/message-item/message-item.vue +7 -5
  132. package/dist/mixins/page-scroll.js +1 -1
  133. package/dist/mixins/using-config.js +1 -1
  134. package/dist/mixins/using-custom-navbar.js +1 -1
  135. package/dist/navbar/README.en-US.md +1 -1
  136. package/dist/navbar/README.md +2 -2
  137. package/dist/navbar/navbar.vue +5 -4
  138. package/dist/notice-bar/README.en-US.md +1 -1
  139. package/dist/notice-bar/README.md +1 -1
  140. package/dist/notice-bar/notice-bar.vue +4 -3
  141. package/dist/overlay/README.en-US.md +1 -1
  142. package/dist/overlay/README.md +1 -1
  143. package/dist/overlay/overlay.vue +6 -3
  144. package/dist/picker/README.en-US.md +1 -1
  145. package/dist/picker/README.md +1 -1
  146. package/dist/picker/picker.vue +11 -9
  147. package/dist/picker-item/README.en-US.md +1 -1
  148. package/dist/picker-item/README.md +1 -1
  149. package/dist/picker-item/picker-item.vue +6 -5
  150. package/dist/popover/README.en-US.md +1 -1
  151. package/dist/popover/README.md +1 -1
  152. package/dist/popover/popover.vue +8 -5
  153. package/dist/popup/README.en-US.md +1 -1
  154. package/dist/popup/README.md +1 -1
  155. package/dist/popup/popup.vue +8 -5
  156. package/dist/progress/README.en-US.md +1 -1
  157. package/dist/progress/README.md +1 -1
  158. package/dist/progress/progress.vue +5 -4
  159. package/dist/pull-down-refresh/README.en-US.md +1 -1
  160. package/dist/pull-down-refresh/README.md +1 -1
  161. package/dist/pull-down-refresh/pull-down-refresh.vue +7 -5
  162. package/dist/qrcode/components/qrcode-canvas/qrcode-canvas.vue +8 -7
  163. package/dist/qrcode/components/qrcode-status/qrcode-status.vue +2 -1
  164. package/dist/qrcode/qrcode.vue +5 -3
  165. package/dist/radio/README.en-US.md +1 -1
  166. package/dist/radio/README.md +1 -1
  167. package/dist/radio/radio.vue +5 -4
  168. package/dist/radio-group/radio-group.vue +5 -4
  169. package/dist/rate/README.en-US.md +1 -1
  170. package/dist/rate/README.md +1 -1
  171. package/dist/rate/rate.vue +8 -5
  172. package/dist/result/README.en-US.md +1 -1
  173. package/dist/result/README.md +1 -1
  174. package/dist/result/result.vue +5 -4
  175. package/dist/row/row.vue +7 -3
  176. package/dist/scroll-view/scroll-view.vue +1 -1
  177. package/dist/search/README.en-US.md +1 -1
  178. package/dist/search/README.md +1 -1
  179. package/dist/search/search.vue +14 -9
  180. package/dist/segmented/README.en-US.md +1 -1
  181. package/dist/segmented/README.md +1 -1
  182. package/dist/segmented/segmented.vue +6 -3
  183. package/dist/side-bar/README.en-US.md +1 -1
  184. package/dist/side-bar/README.md +1 -1
  185. package/dist/side-bar/side-bar.vue +5 -3
  186. package/dist/side-bar-item/side-bar-item.vue +7 -6
  187. package/dist/skeleton/README.en-US.md +1 -1
  188. package/dist/skeleton/README.md +1 -1
  189. package/dist/skeleton/skeleton.vue +6 -3
  190. package/dist/slider/README.en-US.md +1 -1
  191. package/dist/slider/README.md +1 -1
  192. package/dist/slider/slider.vue +7 -5
  193. package/dist/step-item/step-item.vue +5 -4
  194. package/dist/stepper/README.en-US.md +1 -1
  195. package/dist/stepper/README.md +1 -1
  196. package/dist/stepper/stepper.vue +5 -3
  197. package/dist/steps/README.en-US.md +1 -1
  198. package/dist/steps/README.md +1 -1
  199. package/dist/steps/steps.vue +5 -3
  200. package/dist/sticky/sticky.vue +4 -3
  201. package/dist/swipe-cell/swipe-cell.vue +7 -5
  202. package/dist/swiper/README.en-US.md +1 -1
  203. package/dist/swiper/README.md +1 -1
  204. package/dist/swiper/swiper.vue +7 -5
  205. package/dist/swiper-nav/swiper-nav.vue +6 -3
  206. package/dist/switch/README.en-US.md +1 -1
  207. package/dist/switch/README.md +1 -1
  208. package/dist/switch/switch.vue +5 -4
  209. package/dist/tab-bar/README.en-US.md +1 -1
  210. package/dist/tab-bar/README.md +1 -1
  211. package/dist/tab-bar/tab-bar.vue +5 -3
  212. package/dist/tab-bar-item/tab-bar-item.vue +6 -4
  213. package/dist/tab-panel/tab-panel.vue +5 -3
  214. package/dist/table/README.en-US.md +4 -4
  215. package/dist/table/README.md +4 -4
  216. package/dist/table/table.css +2 -2
  217. package/dist/table/table.vue +38 -7
  218. package/dist/tabs/README.en-US.md +1 -1
  219. package/dist/tabs/README.md +1 -1
  220. package/dist/tabs/tabs.vue +11 -9
  221. package/dist/tag/README.en-US.md +1 -1
  222. package/dist/tag/README.md +1 -1
  223. package/dist/tag/tag.vue +6 -3
  224. package/dist/textarea/README.en-US.md +1 -1
  225. package/dist/textarea/README.md +1 -1
  226. package/dist/textarea/textarea.vue +6 -3
  227. package/dist/toast/README.en-US.md +1 -1
  228. package/dist/toast/README.md +1 -1
  229. package/dist/toast/toast.vue +8 -7
  230. package/dist/transition/transition.vue +2 -2
  231. package/dist/tree-select/README.en-US.md +1 -1
  232. package/dist/tree-select/README.md +1 -1
  233. package/dist/tree-select/tree-select.vue +14 -9
  234. package/dist/types/action-sheet.d.ts +1 -1
  235. package/dist/types/avatar-group.d.ts +1 -1
  236. package/dist/types/avatar.d.ts +1 -1
  237. package/dist/types/back-top.d.ts +1 -1
  238. package/dist/types/badge.d.ts +1 -1
  239. package/dist/types/button.d.ts +1 -1
  240. package/dist/types/calendar.d.ts +1 -1
  241. package/dist/types/cascader.d.ts +1 -1
  242. package/dist/types/cell-group.d.ts +1 -1
  243. package/dist/types/cell.d.ts +1 -1
  244. package/dist/types/check-tag.d.ts +1 -1
  245. package/dist/types/checkbox-group.d.ts +1 -1
  246. package/dist/types/checkbox.d.ts +1 -1
  247. package/dist/types/col.d.ts +1 -1
  248. package/dist/types/collapse-panel.d.ts +1 -1
  249. package/dist/types/collapse.d.ts +1 -1
  250. package/dist/types/color-picker.d.ts +1 -1
  251. package/dist/upload/README.en-US.md +1 -1
  252. package/dist/upload/README.md +1 -1
  253. package/dist/upload/upload.vue +32 -32
  254. package/dist/watermark/README.en-US.md +1 -1
  255. package/dist/watermark/README.md +1 -1
  256. package/dist/watermark/utils/generateBase64Url.js +6 -6
  257. package/dist/watermark/watermark.vue +4 -3
  258. package/package.json +1 -1
@@ -110,17 +110,20 @@
110
110
  </view>
111
111
  </template>
112
112
  <script>
113
- import TIcon from '../icon/icon';
114
- import { uniComponent } from '../common/src/index';
115
113
  import { prefix } from '../common/config';
116
- import props from './props';
114
+
115
+ import { parseEventDynamicCode } from '../common/event/dynamic';
116
+ import { uniComponent } from '../common/src/index';
117
117
  import { unitConvert, getRect, coalesce } from '../common/utils';
118
118
  import tools from '../common/utils.wxs';
119
- import utils from './computed.js';
120
- import { parseEventDynamicCode } from '../common/event/dynamic';
119
+ import TIcon from '../icon/icon';
121
120
 
122
121
 
123
122
  import usingConfig from '../mixins/using-config';
123
+
124
+ import utils from './computed.js';
125
+
126
+ import props from './props';
124
127
  const componentName = 'rate';
125
128
  const name = `${prefix}-${componentName}`;
126
129
 
@@ -33,7 +33,7 @@ t-class-title | \-
33
33
  ### CSS Variables
34
34
 
35
35
  The component provides the following CSS variables, which can be used to customize styles.
36
- Name | Default Value | Description
36
+ Name | Default Value | Description
37
37
  -- | -- | --
38
38
  --td-result-description-color | @text-color-secondary | -
39
39
  --td-result-description-font | @font-body-medium | -
@@ -76,7 +76,7 @@ t-class-title | 标题样式类
76
76
  ### CSS Variables
77
77
 
78
78
  组件提供了下列 CSS 变量,可用于自定义样式。
79
- 名称 | 默认值 | 描述
79
+ 名称 | 默认值 | 描述
80
80
  -- | -- | --
81
81
  --td-result-description-color | @text-color-secondary | -
82
82
  --td-result-description-font | @font-body-medium | -
@@ -60,13 +60,14 @@
60
60
  </template>
61
61
 
62
62
  <script>
63
- import TIcon from '../icon/icon';
64
- import TImage from '../image/image';
65
- import { uniComponent } from '../common/src/index';
66
- import props from './props';
67
63
  import { prefix } from '../common/config';
64
+ import { uniComponent } from '../common/src/index';
68
65
  import { calcIcon } from '../common/utils';
69
66
  import tools from '../common/utils.wxs';
67
+ import TIcon from '../icon/icon';
68
+ import TImage from '../image/image';
69
+
70
+ import props from './props';
70
71
 
71
72
 
72
73
  const name = `${prefix}-result`;
package/dist/row/row.vue CHANGED
@@ -7,12 +7,16 @@
7
7
  </view>
8
8
  </template>
9
9
  <script>
10
- import { uniComponent } from '../common/src/index';
11
10
  import { prefix } from '../common/config';
12
- import props from './props';
11
+ import { ParentMixin, RELATION_MAP } from '../common/relation';
12
+ import { uniComponent } from '../common/src/index';
13
+
14
+
13
15
  import tools from '../common/utils.wxs';
16
+
14
17
  import { getRowStyles } from './computed.js';
15
- import { ParentMixin, RELATION_MAP } from '../common/relation';
18
+ import props from './props';
19
+
16
20
 
17
21
  const name = `${prefix}-row`;
18
22
 
@@ -12,8 +12,8 @@
12
12
  </template>
13
13
 
14
14
  <script>
15
- import { uniComponent } from '../common/src/index';
16
15
  import { prefix } from '../common/config';
16
+ import { uniComponent } from '../common/src/index';
17
17
  // import { canUseProxyScrollView } from '../common/version';
18
18
 
19
19
 
@@ -69,7 +69,7 @@ t-class-left | \-
69
69
  ### CSS Variables
70
70
 
71
71
  The component provides the following CSS variables, which can be used to customize styles.
72
- Name | Default Value | Description
72
+ Name | Default Value | Description
73
73
  -- | -- | --
74
74
  --td-search-action-color | @brand-color | -
75
75
  --td-search-bg-color | @bg-color-secondarycontainer | -
@@ -109,7 +109,7 @@ t-class-left | 左侧图标样式类
109
109
  ### CSS Variables
110
110
 
111
111
  组件提供了下列 CSS 变量,可用于自定义样式。
112
- 名称 | 默认值 | 描述
112
+ 名称 | 默认值 | 描述
113
113
  -- | -- | --
114
114
  --td-search-action-color | @brand-color | -
115
115
  --td-search-bg-color | @bg-color-secondarycontainer | -
@@ -102,14 +102,17 @@
102
102
  </view>
103
103
  </template>
104
104
  <script>
105
- import TIcon from '../icon/icon';
106
105
  import TCell from '../cell/cell';
107
- import { uniComponent } from '../common/src/index';
108
106
  import { prefix } from '../common/config';
109
- import props from './props';
107
+ import { uniComponent } from '../common/src/index';
108
+
109
+
110
110
  import { getCharacterLength, nextTick } from '../common/utils';
111
111
  import tools from '../common/utils.wxs';
112
+ import TIcon from '../icon/icon';
113
+
112
114
  import { highLight } from './computed.js';
115
+ import props from './props';
113
116
  // import { getInnerMaxLen } from '../input/utils';
114
117
 
115
118
  const name = `${prefix}-search`;
@@ -197,7 +200,10 @@ export default {
197
200
 
198
201
  this.showClearIcon = value || String(clearTrigger) === 'always';
199
202
  },
200
-
203
+ emitChange(data) {
204
+ this.$emit('update:value', data.value);
205
+ this.$emit('change', data);
206
+ },
201
207
  onInput(e) {
202
208
  let { value } = e.detail;
203
209
  // this.rawValue = value;
@@ -213,7 +219,7 @@ export default {
213
219
 
214
220
  nextTick().then(() => {
215
221
  this.dataValue = value;
216
- this.$emit('change', {
222
+ this.emitChange({
217
223
  value,
218
224
  trigger: 'input-change',
219
225
  });
@@ -237,11 +243,11 @@ export default {
237
243
  handleClear() {
238
244
  this.dataValue = '';
239
245
  this.isSearching = false;
240
- this.$emit('clear', { value: '' });
241
- this.$emit('change', {
246
+ this.emitChange({
242
247
  value: '',
243
248
  trigger: 'clear',
244
249
  });
250
+ this.$emit('clear', { value: '' });
245
251
  },
246
252
 
247
253
  onConfirm(e) {
@@ -258,8 +264,7 @@ export default {
258
264
  const item = this.resultList[index];
259
265
  this.dataValue = item;
260
266
  this.isSelected = true;
261
-
262
- this.$emit('change', {
267
+ this.emitChange({
263
268
  value: item,
264
269
  trigger: 'option-click',
265
270
  });
@@ -30,7 +30,7 @@ t-class-thumb | \-
30
30
  ### CSS Variables
31
31
 
32
32
  The component provides the following CSS variables, which can be used to customize styles.
33
- Name | Default Value | Description
33
+ Name | Default Value | Description
34
34
  -- | -- | --
35
35
  --td-font-size-m | 32rpx | -
36
36
  --td-segmented-bg-color | @bg-color-component-disabled | -
@@ -63,7 +63,7 @@ t-class-thumb | 动画背景样式类
63
63
  ### CSS Variables
64
64
 
65
65
  组件提供了下列 CSS 变量,可用于自定义样式。
66
- 名称 | 默认值 | 描述
66
+ 名称 | 默认值 | 描述
67
67
  -- | -- | --
68
68
  --td-font-size-m | 32rpx | -
69
69
  --td-segmented-bg-color | @bg-color-component-disabled | -
@@ -40,12 +40,15 @@
40
40
  </view>
41
41
  </template>
42
42
  <script>
43
- import TIcon from '../icon/icon';
44
- import { uniComponent } from '../common/src/index';
45
43
  import { prefix } from '../common/config';
46
- import props from './props';
44
+ import { uniComponent } from '../common/src/index';
45
+
46
+
47
47
  import { calcIcon, getRect, coalesce } from '../common/utils';
48
48
  import tools from '../common/utils.wxs';
49
+ import TIcon from '../icon/icon';
50
+
51
+ import props from './props';
49
52
 
50
53
  const name = `${prefix}-segmented`;
51
54
 
@@ -44,7 +44,7 @@ name | Description
44
44
  ### CSS Variables
45
45
 
46
46
  The component provides the following CSS variables, which can be used to customize styles.
47
- Name | Default Value | Description
47
+ Name | Default Value | Description
48
48
  -- | -- | --
49
49
  --td-side-bar-bg-color | @bg-color-secondarycontainer | -
50
50
  --td-side-bar-height | 100% | -
@@ -77,7 +77,7 @@ value | String / Number | - | 当前选项的值 | N
77
77
  ### CSS Variables
78
78
 
79
79
  组件提供了下列 CSS 变量,可用于自定义样式。
80
- 名称 | 默认值 | 描述
80
+ 名称 | 默认值 | 描述
81
81
  -- | -- | --
82
82
  --td-side-bar-bg-color | @bg-color-secondarycontainer | -
83
83
  --td-side-bar-height | 100% | -
@@ -8,12 +8,14 @@
8
8
  </view>
9
9
  </template>
10
10
  <script>
11
- import { uniComponent } from '../common/src/index';
12
11
  import { prefix } from '../common/config';
12
+ import { ParentMixin, RELATION_MAP } from '../common/relation';
13
+ import { uniComponent } from '../common/src/index';
13
14
  import { coalesce } from '../common/utils';
14
- import props from './props';
15
+
15
16
  import tools from '../common/utils.wxs';
16
- import { ParentMixin, RELATION_MAP } from '../common/relation';
17
+
18
+ import props from './props';
17
19
 
18
20
 
19
21
  const name = `${prefix}-side-bar`;
@@ -68,12 +68,13 @@
68
68
  </template>
69
69
  <script>
70
70
  import TBadge from '../badge/badge';
71
- import TIcon from '../icon/icon';
72
- import { uniComponent } from '../common/src/index';
73
71
  import { prefix } from '../common/config';
74
- import props from './props';
75
- import tools from '../common/utils.wxs';
76
72
  import { ChildrenMixin, RELATION_MAP } from '../common/relation';
73
+ import { uniComponent } from '../common/src/index';
74
+ import tools from '../common/utils.wxs';
75
+ import TIcon from '../icon/icon';
76
+
77
+ import props from './props';
77
78
 
78
79
 
79
80
  const name = `${prefix}-side-bar-item`;
@@ -118,8 +119,8 @@ export default {
118
119
 
119
120
  return tools._style([
120
121
  {
121
- fontSize: 'var(--td-side-bar-icon-size, 20px)',
122
- marginRight: '2px',
122
+ fontSize: 'var(--td-side-bar-icon-size, 40rpx)',
123
+ marginRight: '4rpx',
123
124
  },
124
125
  this.innerIcon.style || '',
125
126
  ]);
@@ -30,7 +30,7 @@ t-class-row | \-
30
30
  ### CSS Variables
31
31
 
32
32
  The component provides the following CSS variables, which can be used to customize styles.
33
- Name | Default Value | Description
33
+ Name | Default Value | Description
34
34
  -- | -- | --
35
35
  --td-skeleton-circle-border-radius | @skeleton-circle-border-radius | -
36
36
  --td-skeleton-animation-flashed | rgba(90%, 90%, 90%, 0.3) | -
@@ -70,7 +70,7 @@ t-class-row | 列样式类
70
70
  ### CSS Variables
71
71
 
72
72
  组件提供了下列 CSS 变量,可用于自定义样式。
73
- 名称 | 默认值 | 描述
73
+ 名称 | 默认值 | 描述
74
74
  -- | -- | --
75
75
  --td-skeleton-circle-border-radius | @skeleton-circle-border-radius | -
76
76
  --td-skeleton-animation-flashed | rgba(90%, 90%, 90%, 0.3) | -
@@ -35,12 +35,15 @@
35
35
  </view>
36
36
  </template>
37
37
  <script>
38
- import { uniComponent } from '../common/src/index';
39
38
  import { prefix } from '../common/config';
40
- import props from './props';
39
+ import { uniComponent } from '../common/src/index';
40
+
41
+
41
42
  import { classNames } from '../common/utils';
42
- import { isInteger, isNumeric } from '../common/validator';
43
43
  import tools from '../common/utils.wxs';
44
+ import { isInteger, isNumeric } from '../common/validator';
45
+
46
+ import props from './props';
44
47
 
45
48
 
46
49
  const name = `${prefix}-skeleton`;
@@ -43,7 +43,7 @@ t-class-cursor | \-
43
43
  ### CSS Variables
44
44
 
45
45
  The component provides the following CSS variables, which can be used to customize styles.
46
- Name | Default Value | Description
46
+ Name | Default Value | Description
47
47
  -- | -- | --
48
48
  --td-slider-active-color | @brand-color | -
49
49
  --td-slider-bar-height | 8rpx | -
@@ -109,7 +109,7 @@ t-class-cursor | 游标样式类
109
109
  ### CSS Variables
110
110
 
111
111
  组件提供了下列 CSS 变量,可用于自定义样式。
112
- 名称 | 默认值 | 描述
112
+ 名称 | 默认值 | 描述
113
113
  -- | -- | --
114
114
  --td-slider-active-color | @brand-color | -
115
115
  --td-slider-bar-height | 8rpx | -
@@ -191,16 +191,18 @@
191
191
  </view>
192
192
  </template>
193
193
  <script>
194
- import { uniComponent } from '../common/src/index';
194
+ import Bus from '../common/bus';
195
195
  import { prefix } from '../common/config';
196
- import { trimSingleValue, trimValue } from './tool';
197
- import props from './props';
196
+ import { uniComponent } from '../common/src/index';
198
197
  import { getRect, coalesce, nextTick } from '../common/utils';
199
- import Bus from '../common/bus';
200
198
  import tools from '../common/utils.wxs';
201
- import { getValue } from './computed.js';
199
+
202
200
  import { isString, isFunction } from '../common/validator';
203
201
 
202
+ import { getValue } from './computed.js';
203
+ import props from './props';
204
+ import { trimSingleValue, trimValue } from './tool';
205
+
204
206
 
205
207
  const name = `${prefix}-slider`;
206
208
 
@@ -79,13 +79,14 @@
79
79
  </view>
80
80
  </template>
81
81
  <script>
82
- import TIcon from '../icon/icon';
83
- import { uniComponent } from '../common/src/index';
84
82
  import { prefix } from '../common/config';
85
- import props from './props';
83
+ import { ChildrenMixin, RELATION_MAP } from '../common/relation';
84
+ import { uniComponent } from '../common/src/index';
86
85
  import tools from '../common/utils.wxs';
86
+ import TIcon from '../icon/icon';
87
+
87
88
  import { getAriaLabel } from './computed.js';
88
- import { ChildrenMixin, RELATION_MAP } from '../common/relation';
89
+ import props from './props';
89
90
 
90
91
 
91
92
  const name = `${prefix}-steps-item`;
@@ -40,7 +40,7 @@ t-class-plus | \-
40
40
  ### CSS Variables
41
41
 
42
42
  The component provides the following CSS variables, which can be used to customize styles.
43
- Name | Default Value | Description
43
+ Name | Default Value | Description
44
44
  -- | -- | --
45
45
  --td-stepper-input-disabled-bg | @bg-color-component-disabled | -
46
46
  --td-stepper-input-disabled-color | @text-color-disabled | -
@@ -83,7 +83,7 @@ t-class-plus | 右侧递增号样式类
83
83
  ### CSS Variables
84
84
 
85
85
  组件提供了下列 CSS 变量,可用于自定义样式。
86
- 名称 | 默认值 | 描述
86
+ 名称 | 默认值 | 描述
87
87
  -- | -- | --
88
88
  --td-stepper-input-disabled-bg | @bg-color-component-disabled | -
89
89
  --td-stepper-input-disabled-color | @text-color-disabled | -
@@ -48,12 +48,14 @@
48
48
  </view>
49
49
  </template>
50
50
  <script>
51
- import TIcon from '../icon/icon';
52
- import { uniComponent } from '../common/src/index';
53
51
  import { prefix } from '../common/config';
52
+ import { uniComponent } from '../common/src/index';
54
53
  import { coalesce, nextTick } from '../common/utils';
55
- import props from './props';
54
+
56
55
  import tools from '../common/utils.wxs';
56
+ import TIcon from '../icon/icon';
57
+
58
+ import props from './props';
57
59
 
58
60
 
59
61
  const name = `${prefix}-stepper`;
@@ -69,7 +69,7 @@ t-class-title | \-
69
69
  ### CSS Variables
70
70
 
71
71
  The component provides the following CSS variables, which can be used to customize styles.
72
- Name | Default Value | Description
72
+ Name | Default Value | Description
73
73
  -- | -- | --
74
74
  --td-step-item-circle-size | 44rpx | -
75
75
  --td-step-item-circle-text-font | @font-body-medium | -
@@ -129,7 +129,7 @@ t-class-title | 标题样式类
129
129
  ### CSS Variables
130
130
 
131
131
  组件提供了下列 CSS 变量,可用于自定义样式。
132
- 名称 | 默认值 | 描述
132
+ 名称 | 默认值 | 描述
133
133
  -- | -- | --
134
134
  --td-step-item-circle-size | 44rpx | -
135
135
  --td-step-item-circle-text-font | @font-body-medium | -
@@ -7,11 +7,13 @@
7
7
  </view>
8
8
  </template>
9
9
  <script>
10
- import { uniComponent } from '../common/src/index';
11
10
  import { prefix } from '../common/config';
12
- import props from './props';
13
- import tools from '../common/utils.wxs';
14
11
  import { ParentMixin, RELATION_MAP } from '../common/relation';
12
+ import { uniComponent } from '../common/src/index';
13
+
14
+ import tools from '../common/utils.wxs';
15
+
16
+ import props from './props';
15
17
 
16
18
 
17
19
  const name = `${prefix}-steps`;
@@ -12,12 +12,13 @@
12
12
  </view>
13
13
  </template>
14
14
  <script>
15
- import { uniComponent } from '../common/src/index';
16
- import props from './props';
17
15
  import { prefix } from '../common/config';
18
- import pageScrollMixin from '../mixins/page-scroll';
16
+ import { uniComponent } from '../common/src/index';
19
17
  import { getRect, nextTick } from '../common/utils';
20
18
  import tools from '../common/utils.wxs';
19
+ import pageScrollMixin from '../mixins/page-scroll';
20
+
21
+ import props from './props';
21
22
 
22
23
 
23
24
  const name = `${prefix}-sticky`;
@@ -96,12 +96,14 @@
96
96
  </view>
97
97
  </template>
98
98
  <script>
99
- import TIcon from '../icon/icon';
100
- import { uniComponent } from '../common/src/index';
101
99
  import { prefix } from '../common/config';
102
- import props from './props';
100
+ import { parseEventDynamicCode } from '../common/event/dynamic';
101
+ import { uniComponent } from '../common/src/index';
103
102
  import { getRect } from '../common/utils';
103
+ import tools from '../common/utils.wxs';
104
104
  import { getObserver } from '../common/wechat';
105
+ import TIcon from '../icon/icon';
106
+
105
107
  import {
106
108
  initLeftWidth,
107
109
  initRightWidth,
@@ -111,8 +113,8 @@ import {
111
113
  onCloseChange,
112
114
  onOpenedChange,
113
115
  } from './computed';
114
- import tools from '../common/utils.wxs';
115
- import { parseEventDynamicCode } from '../common/event/dynamic';
116
+ import props from './props';
117
+
116
118
 
117
119
  let ARRAY = [];
118
120
 
@@ -72,7 +72,7 @@ t-class | \-
72
72
  ### CSS Variables
73
73
 
74
74
  The component provides the following CSS variables, which can be used to customize styles.
75
- Name | Default Value | Description
75
+ Name | Default Value | Description
76
76
  -- | -- | --
77
77
  --td-swiper-item-padding | 0 | -
78
78
  --td-swiper-radius | @radius-large | -
@@ -124,7 +124,7 @@ t-class | 根节点样式类
124
124
  ### CSS Variables
125
125
 
126
126
  组件提供了下列 CSS 变量,可用于自定义样式。
127
- 名称 | 默认值 | 描述
127
+ 名称 | 默认值 | 描述
128
128
  -- | -- | --
129
129
  --td-swiper-item-padding | 0 | -
130
130
  --td-swiper-radius | @radius-large | -
@@ -67,14 +67,16 @@
67
67
  </view>
68
68
  </template>
69
69
  <script>
70
- import TSwiperNav from '../swiper-nav/swiper-nav';
71
- import TImage from '../image/image';
72
- import { uniComponent } from '../common/src/index';
73
70
  import { prefix } from '../common/config';
74
- import props from './props';
71
+ import { ParentMixin, RELATION_MAP } from '../common/relation';
72
+ import { uniComponent } from '../common/src/index';
75
73
  import tools from '../common/utils.wxs';
74
+ import TImage from '../image/image';
75
+ import TSwiperNav from '../swiper-nav/swiper-nav';
76
+
76
77
  import { isPrev, isNext, getImageClass } from './computed.js';
77
- import { ParentMixin, RELATION_MAP } from '../common/relation';
78
+ import props from './props';
79
+
78
80
 
79
81
  const name = `${prefix}-swiper`;
80
82
 
@@ -45,11 +45,14 @@
45
45
  </view>
46
46
  </template>
47
47
  <script>
48
- import { uniComponent } from '../common/src/index';
49
48
  import { prefix } from '../common/config';
50
- import props from './props';
51
- import tools from '../common/utils.wxs';
52
49
  import { ChildrenMixin, RELATION_MAP } from '../common/relation';
50
+ import { uniComponent } from '../common/src/index';
51
+
52
+ import tools from '../common/utils.wxs';
53
+
54
+ import props from './props';
55
+
53
56
 
54
57
  const name = `${prefix}-swiper-nav`;
55
58
 
@@ -34,7 +34,7 @@ t-class-label | \-
34
34
  ### CSS Variables
35
35
 
36
36
  The component provides the following CSS variables, which can be used to customize styles.
37
- Name | Default Value | Description
37
+ Name | Default Value | Description
38
38
  -- | -- | --
39
39
  --td-switch-checked-color | @brand-color | -
40
40
  --td-switch-checked-disabled-color | @brand-color-disabled | -
@@ -70,7 +70,7 @@ t-class-label | 开关内容样式类
70
70
  ### CSS Variables
71
71
 
72
72
  组件提供了下列 CSS 变量,可用于自定义样式。
73
- 名称 | 默认值 | 描述
73
+ 名称 | 默认值 | 描述
74
74
  -- | -- | --
75
75
  --td-switch-checked-color | @brand-color | -
76
76
  --td-switch-checked-disabled-color | @brand-color-disabled | -
@@ -37,13 +37,14 @@
37
37
  </view>
38
38
  </template>
39
39
  <script>
40
- import TIcon from '../icon/icon';
41
- import TLoading from '../loading/loading';
42
- import { uniComponent } from '../common/src/index';
43
40
  import { prefix } from '../common/config';
41
+ import { uniComponent } from '../common/src/index';
44
42
  import { coalesce } from '../common/utils';
45
- import props from './props';
46
43
  import tools from '../common/utils.wxs';
44
+ import TIcon from '../icon/icon';
45
+ import TLoading from '../loading/loading';
46
+
47
+ import props from './props';
47
48
 
48
49
 
49
50
  const name = `${prefix}-switch`;
@@ -44,7 +44,7 @@ icon | \-
44
44
  ### CSS Variables
45
45
 
46
46
  The component provides the following CSS variables, which can be used to customize styles.
47
- Name | Default Value | Description
47
+ Name | Default Value | Description
48
48
  -- | -- | --
49
49
  --td-tab-bar-bg-color | @bg-color-container | -
50
50
  --td-tab-bar-border-color | @border-level-1-color | -
@@ -92,7 +92,7 @@ icon | 图标插槽,用于自定义图标区域内容
92
92
  ### CSS Variables
93
93
 
94
94
  组件提供了下列 CSS 变量,可用于自定义样式。
95
- 名称 | 默认值 | 描述
95
+ 名称 | 默认值 | 描述
96
96
  -- | -- | --
97
97
  --td-tab-bar-bg-color | @bg-color-container | -
98
98
  --td-tab-bar-border-color | @border-level-1-color | -