@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
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * 提供子组件从 config-provider 获取全局配置的能力
3
3
  */
4
- import { getComponentLocale, useConfig } from '../config-provider/use-config';
5
4
  import { toCamel } from '../common/utils';
5
+ import { getComponentLocale, useConfig } from '../config-provider/use-config';
6
6
  import defaultLocale from '../locale/zh_CN';
7
7
 
8
8
  export default function usingConfig(options) {
@@ -25,7 +25,7 @@ const useCustomNavbarBehavior = {
25
25
  const { statusBarHeight } = systemInfo;
26
26
  let distance = 0;
27
27
  // #ifndef H5
28
- // #ifndef APP-PLUS
28
+ // #ifndef APP
29
29
  const menuButton = uni.getMenuButtonBoundingClientRect();
30
30
  distance = menuButton.top + menuButton.bottom - statusBarHeight;
31
31
  // #endif
@@ -57,7 +57,7 @@ t-class-title | \-
57
57
  ### CSS Variables
58
58
 
59
59
  The component provides the following CSS variables, which can be used to customize styles.
60
- Name | Default Value | Description
60
+ Name | Default Value | Description
61
61
  -- | -- | --
62
62
  --td-navbar-padding-top | 20px | -
63
63
  --td-navbar-right | 95px | -
@@ -45,7 +45,7 @@ import TNavbar from '@tdesign/uniapp/navbar/navbar.vue';
45
45
 
46
46
  #### 高度说明
47
47
 
48
- `navbar` 组件可由 `--td-navbar-height` 控制。在 H5 或 APP-PLUS 平台下,`--td-navbar-height` 变量需要业务自己设置,小程序平台则会根据 `statusBarHeight` 等变量计算得到。
48
+ `navbar` 组件可由 `--td-navbar-height` 控制。在 H5 或 APP 平台下,`--td-navbar-height` 变量需要业务自己设置,小程序平台则会根据 `statusBarHeight` 等变量计算得到。
49
49
 
50
50
  ## API
51
51
 
@@ -104,7 +104,7 @@ t-class-title | 标题样式类
104
104
  ### CSS Variables
105
105
 
106
106
  组件提供了下列 CSS 变量,可用于自定义样式。
107
- 名称 | 默认值 | 描述
107
+ 名称 | 默认值 | 描述
108
108
  -- | -- | --
109
109
  --td-navbar-padding-top | 20px | -
110
110
  --td-navbar-right | 95px | -
@@ -47,12 +47,13 @@
47
47
  </view>
48
48
  </template>
49
49
  <script>
50
- import TIcon from '../icon/icon';
50
+ import { prefix } from '../common/config';
51
51
  import { uniComponent } from '../common/src/index';
52
52
  import { getRect, getWindowInfo } from '../common/utils';
53
- import { prefix } from '../common/config';
54
- import props from './props';
55
53
  import tools from '../common/utils.wxs';
54
+ import TIcon from '../icon/icon';
55
+
56
+ import props from './props';
56
57
 
57
58
 
58
59
  const name = `${prefix}-navbar`;
@@ -176,7 +177,7 @@ export default {
176
177
  '--td-navbar-capsule-width': `${iMenuRect.width}px`, // 胶囊宽度
177
178
  '--td-navbar-height': `${(iMenuRect.top - windowInfo.statusBarHeight) * 2 + iMenuRect.height}px`,
178
179
  };
179
- // #ifdef H5 || APP-PLUS
180
+ // #ifdef H5 || APP
180
181
  delete iBoxStyle['--td-navbar-height'];
181
182
  // #endif
182
183
 
@@ -47,7 +47,7 @@ t-class-suffix-icon | \-
47
47
  ### CSS Variables
48
48
 
49
49
  The component provides the following CSS variables, which can be used to customize styles.
50
- Name | Default Value | Description
50
+ Name | Default Value | Description
51
51
  -- | -- | --
52
52
  --td-notice-bar-error-bg-color | @error-color-1 | -
53
53
  --td-notice-bar-error-color | @error-color | -
@@ -103,7 +103,7 @@ t-class-suffix-icon | 后置图标样式类
103
103
  ### CSS Variables
104
104
 
105
105
  组件提供了下列 CSS 变量,可用于自定义样式。
106
- 名称 | 默认值 | 描述
106
+ 名称 | 默认值 | 描述
107
107
  -- | -- | --
108
108
  --td-notice-bar-error-bg-color | @error-color-1 | -
109
109
  --td-notice-bar-error-color | @error-color | -
@@ -102,12 +102,13 @@
102
102
  </view>
103
103
  </template>
104
104
  <script>
105
- import TIcon from '../icon/icon.vue';
105
+ import { prefix } from '../common/config';
106
106
  import { uniComponent } from '../common/src/index';
107
107
  import { getRect, getAnimationFrame, calcIcon } from '../common/utils';
108
- import props from './props';
109
- import { prefix } from '../common/config';
110
108
  import tools from '../common/utils.wxs';
109
+ import TIcon from '../icon/icon.vue';
110
+
111
+ import props from './props';
111
112
 
112
113
 
113
114
  const name = `${prefix}-notice-bar`;
@@ -28,7 +28,7 @@ name | Description
28
28
  ### CSS Variables
29
29
 
30
30
  The component provides the following CSS variables, which can be used to customize styles.
31
- Name | Default Value | Description
31
+ Name | Default Value | Description
32
32
  -- | -- | --
33
33
  --td-overlay-bg-color | @mask-active | -
34
34
  --td-overlay-transition-duration | 300ms | -
@@ -50,7 +50,7 @@ click | `(context: { visible: boolean })` | 点击遮罩时触发
50
50
  ### CSS Variables
51
51
 
52
52
  组件提供了下列 CSS 变量,可用于自定义样式。
53
- 名称 | 默认值 | 描述
53
+ 名称 | 默认值 | 描述
54
54
  -- | -- | --
55
55
  --td-overlay-bg-color | @mask-active | -
56
56
  --td-overlay-transition-duration | 300ms | -
@@ -37,12 +37,15 @@
37
37
  </view>
38
38
  </template>
39
39
  <script>
40
- import { uniComponent } from '../common/src/index';
41
40
  import { prefix } from '../common/config';
42
- import props from './props';
41
+ import { uniComponent } from '../common/src/index';
42
+
43
+ import tools from '../common/utils.wxs';
43
44
  import transition from '../mixins/transition';
45
+
44
46
  import useCustomNavbar from '../mixins/using-custom-navbar';
45
- import tools from '../common/utils.wxs';
47
+
48
+ import props from './props';
46
49
 
47
50
 
48
51
  const name = `${prefix}-overlay`;
@@ -59,7 +59,7 @@ label-suffix-index | \-
59
59
  ### CSS Variables
60
60
 
61
61
  The component provides the following CSS variables, which can be used to customize styles.
62
- Name | Default Value | Description
62
+ Name | Default Value | Description
63
63
  -- | -- | --
64
64
  --td-picker-bg-color | @bg-color-container | -
65
65
  --td-picker-border-radius | 24rpx | -
@@ -96,7 +96,7 @@ label-suffix-index | 列表子项后置插槽,用于自定义标签文本之
96
96
  ### CSS Variables
97
97
 
98
98
  组件提供了下列 CSS 变量,可用于自定义样式。
99
- 名称 | 默认值 | 描述
99
+ 名称 | 默认值 | 描述
100
100
  -- | -- | --
101
101
  --td-picker-bg-color | @bg-color-container | -
102
102
  --td-picker-border-radius | 24rpx | -
@@ -26,7 +26,7 @@
26
26
  :class="classPrefix + '__cancel ' + tClassCancel"
27
27
  @click="onCancel"
28
28
  >
29
- {{ globalConfig.cancel }}
29
+ {{ cancelBtn === true ? globalConfig.cancel : cancelBtn }}
30
30
  </view>
31
31
  <view :class="classPrefix + '__title ' + tClassTitle">
32
32
  {{ title }}
@@ -36,7 +36,7 @@
36
36
  :class="classPrefix + '__confirm ' + tClassConfirm"
37
37
  @click="onConfirm"
38
38
  >
39
- {{ globalConfig.confirm }}
39
+ {{ confirmBtn === true ? globalConfig.confirm : confirmBtn }}
40
40
  </view>
41
41
  </view>
42
42
  <slot name="header" />
@@ -72,7 +72,7 @@
72
72
  :class="classPrefix + '__cancel ' + tClassCancel"
73
73
  @click="onCancel"
74
74
  >
75
- {{ globalConfig.cancel }}
75
+ {{ cancelBtn === true ? globalConfig.cancel : cancelBtn }}
76
76
  </view>
77
77
  <view :class="classPrefix + '__title ' + tClassTitle">
78
78
  {{ title }}
@@ -82,7 +82,7 @@
82
82
  :class="classPrefix + '__confirm ' + tClassConfirm"
83
83
  @click="onConfirm"
84
84
  >
85
- {{ globalConfig.confirm }}
85
+ {{ confirmBtn === true ? globalConfig.confirm : confirmBtn }}
86
86
  </view>
87
87
  </view>
88
88
  <slot name="header" />
@@ -105,16 +105,18 @@
105
105
  </view>
106
106
  </template>
107
107
  <script>
108
- import TPopup from '../popup/popup';
108
+ import { prefix } from '../common/config';
109
+
110
+ import { ParentMixin, RELATION_MAP } from '../common/relation';
109
111
  import { uniComponent } from '../common/src/index';
110
112
  import { coalesce } from '../common/utils';
111
- import { prefix } from '../common/config';
112
- import props from './props';
113
- import useCustomNavbar from '../mixins/using-custom-navbar';
114
113
  import tools from '../common/utils.wxs';
115
- import { ParentMixin, RELATION_MAP } from '../common/relation';
116
114
 
117
115
  import usingConfig from '../mixins/using-config';
116
+ import useCustomNavbar from '../mixins/using-custom-navbar';
117
+ import TPopup from '../popup/popup';
118
+
119
+ import props from './props';
118
120
  const componentName = 'picker';
119
121
  const name = `${prefix}-${componentName}`;
120
122
 
@@ -18,7 +18,7 @@ label-suffix--[index] | \-
18
18
  ### CSS Variables
19
19
 
20
20
  The component provides the following CSS variables, which can be used to customize styles.
21
- Name | Default Value | Description
21
+ Name | Default Value | Description
22
22
  -- | -- | --
23
23
  --td-picker-item-active-color | @text-color-primary | -
24
24
  --td-picker-item-color | @text-color-secondary | -
@@ -18,7 +18,7 @@ label-suffix--[index] | 列表子项后置插槽,用于自定义标签文本
18
18
  ### CSS Variables
19
19
 
20
20
  组件提供了下列 CSS 变量,可用于自定义样式。
21
- 名称 | 默认值 | 描述
21
+ 名称 | 默认值 | 描述
22
22
  -- | -- | --
23
23
  --td-picker-item-active-color | @text-color-primary | -
24
24
  --td-picker-item-color | @text-color-secondary | -
@@ -71,13 +71,14 @@
71
71
  </template>
72
72
 
73
73
  <script>
74
- import TIcon from '../icon/icon.vue';
75
- import { uniComponent } from '../common/src/index';
76
74
  import { prefix } from '../common/config';
77
- import props from './props';
78
- import tools from '../common/utils.wxs';
79
- import { nextTick } from '../common/utils';
80
75
  import { ChildrenMixin, RELATION_MAP } from '../common/relation';
76
+ import { uniComponent } from '../common/src/index';
77
+ import { nextTick } from '../common/utils';
78
+ import tools from '../common/utils.wxs';
79
+ import TIcon from '../icon/icon.vue';
80
+
81
+ import props from './props';
81
82
 
82
83
 
83
84
  const name = `${prefix}-picker-item`;
@@ -38,7 +38,7 @@ t-class-content | \-
38
38
  ### CSS Variables
39
39
 
40
40
  The component provides the following CSS variables, which can be used to customize styles.
41
- Name | Default Value | Description
41
+ Name | Default Value | Description
42
42
  -- | -- | --
43
43
  --td-popover-brand-bg-color | @primary-color-1 | -
44
44
  --td-popover-brand-color | @primary-color-7 | -
@@ -70,7 +70,7 @@ t-class-content | 内容样式类
70
70
  ### CSS Variables
71
71
 
72
72
  组件提供了下列 CSS 变量,可用于自定义样式。
73
- 名称 | 默认值 | 描述
73
+ 名称 | 默认值 | 描述
74
74
  -- | -- | --
75
75
  --td-popover-brand-bg-color | @primary-color-1 | -
76
76
  --td-popover-brand-color | @primary-color-7 | -
@@ -37,14 +37,17 @@
37
37
  </template>
38
38
 
39
39
  <script>
40
- import TOverlay from '../overlay/overlay';
41
- import { getWindowInfo } from '../common/wechat';
42
- import { uniComponent } from '../common/src/index';
43
40
  import { prefix } from '../common/config';
44
- import props from './props';
41
+ import { uniComponent } from '../common/src/index';
42
+
43
+
45
44
  import { debounce, nextTick, coalesce } from '../common/utils';
46
- import { transitionMixins } from '../mixins/transition';
45
+ import { getWindowInfo } from '../common/wechat';
47
46
  import pageScrollMixin from '../mixins/page-scroll';
47
+ import { transitionMixins } from '../mixins/transition';
48
+ import TOverlay from '../overlay/overlay';
49
+
50
+ import props from './props';
48
51
 
49
52
  delete props.visible;
50
53
 
@@ -44,7 +44,7 @@ t-class-content | \-
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-popup-bg-color | @bg-color-container | -
50
50
  --td-popup-border-radius | @radius-extraLarge | -
@@ -75,7 +75,7 @@ t-class-content | 内容样式类
75
75
  ### CSS Variables
76
76
 
77
77
  组件提供了下列 CSS 变量,可用于自定义样式。
78
- 名称 | 默认值 | 描述
78
+ 名称 | 默认值 | 描述
79
79
  -- | -- | --
80
80
  --td-popup-bg-color | @bg-color-container | -
81
81
  --td-popup-border-radius | @radius-extraLarge | -
@@ -67,15 +67,18 @@
67
67
  </view>
68
68
  </template>
69
69
  <script>
70
- import TOverlay from '../overlay/overlay';
71
- import TIcon from '../icon/icon';
72
- import { uniComponent } from '../common/src/index';
73
70
  import { prefix } from '../common/config';
74
- import props from './props';
71
+ import { uniComponent } from '../common/src/index';
72
+
73
+
74
+ import tools from '../common/utils.wxs';
75
+ import TIcon from '../icon/icon';
75
76
  import { transitionMixins } from '../mixins/transition';
76
77
  import useCustomNavbar from '../mixins/using-custom-navbar';
77
- import tools from '../common/utils.wxs';
78
+ import TOverlay from '../overlay/overlay';
79
+
78
80
  import popup from './computed.js';
81
+ import props from './props';
79
82
 
80
83
  delete props.visible;
81
84
 
@@ -33,7 +33,7 @@ t-class-label | \-
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-progress-info-dark-color | @text-color-primary | -
39
39
  --td-progress-info-light-color | @text-color-anti | -
@@ -68,7 +68,7 @@ t-class-label | 标签样式类
68
68
  ### CSS Variables
69
69
 
70
70
  组件提供了下列 CSS 变量,可用于自定义样式。
71
- 名称 | 默认值 | 描述
71
+ 名称 | 默认值 | 描述
72
72
  -- | -- | --
73
73
  --td-progress-info-dark-color | @text-color-primary | -
74
74
  --td-progress-info-light-color | @text-color-anti | -
@@ -147,13 +147,12 @@
147
147
  </view>
148
148
  </template>
149
149
  <script>
150
- import TIcon from '../icon/icon';
151
- import { uniComponent } from '../common/src/index';
152
150
  import { prefix } from '../common/config';
153
- import props from './props';
154
- import { getBackgroundColor } from './utils';
151
+ import { uniComponent } from '../common/src/index';
152
+
155
153
  import { unitConvert, isIOS as isIOSValidator } from '../common/utils';
156
154
  import tools from '../common/utils.wxs';
155
+ import TIcon from '../icon/icon';
157
156
 
158
157
  import {
159
158
  STATUS,
@@ -168,6 +167,8 @@ import {
168
167
  getIOSAriaLabel,
169
168
  getAndroidAriaLabel,
170
169
  } from './computed.js';
170
+ import props from './props';
171
+ import { getBackgroundColor } from './utils';
171
172
 
172
173
 
173
174
  const name = `${prefix}-progress`;
@@ -55,6 +55,6 @@ t-class-text | \-
55
55
  ### CSS Variables
56
56
 
57
57
  The component provides the following CSS variables, which can be used to customize styles.
58
- Name | Default Value | Description
58
+ Name | Default Value | Description
59
59
  -- | -- | --
60
60
  --td-pull-down-refresh-color | @text-color-placeholder | -
@@ -80,6 +80,6 @@ t-class-text | 文本样式类
80
80
  ### CSS Variables
81
81
 
82
82
  组件提供了下列 CSS 变量,可用于自定义样式。
83
- 名称 | 默认值 | 描述
83
+ 名称 | 默认值 | 描述
84
84
  -- | -- | --
85
85
  --td-pull-down-refresh-color | @text-color-placeholder | -
@@ -60,17 +60,19 @@
60
60
  </scroll-view>
61
61
  </template>
62
62
  <script>
63
- import TLoading from '../loading/loading';
64
- import { uniComponent } from '../common/src/index';
65
63
  import { prefix } from '../common/config';
66
- import props from './props';
64
+
65
+ import { ParentMixin, RELATION_MAP } from '../common/relation';
66
+ import { uniComponent } from '../common/src/index';
67
67
  import { getRect, systemInfo, unitConvert } from '../common/utils';
68
68
  import tools from '../common/utils.wxs';
69
69
  import { getObserver } from '../common/wechat';
70
- import { ParentMixin, RELATION_MAP } from '../common/relation';
70
+ import TLoading from '../loading/loading';
71
71
 
72
72
 
73
73
  import usingConfig from '../mixins/using-config';
74
+
75
+ import props from './props';
74
76
  const componentName = 'pull-down-refresh';
75
77
  const name = `${prefix}-${componentName}`;
76
78
  const defaultLoadingTexts = ['下拉刷新', '松手刷新', '正在刷新', '刷新完成'];
@@ -345,7 +347,7 @@ export default {
345
347
  scrollToTop() {
346
348
  let parsed = false;
347
349
 
348
- // #ifdef APP-PLUS || MP
350
+ // #ifdef APP || MP
349
351
  this.scrollTop = 0;
350
352
  setTimeout(() => {
351
353
  this.scrollTop = 0.01;
@@ -15,13 +15,14 @@
15
15
  </template>
16
16
 
17
17
  <script>
18
- import props from './props';
19
- import useQRCode from '../../hooks/useQRCode';
18
+ import { loadImage } from '../../../common/canvas/index';
19
+ import { prefix } from '../../../common/config';
20
20
  import { DEFAULT_MINVERSION, excavateModules, isSupportPath2d, generatePath } from '../../../common/shared/qrcode/utils';
21
21
  import { uniComponent } from '../../../common/src/index';
22
- import { prefix } from '../../../common/config';
23
- import { loadImage } from '../../../common/canvas/index';
24
22
  import { getWindowInfo, nextTick } from '../../../common/utils';
23
+ import useQRCode from '../../hooks/useQRCode';
24
+
25
+ import props from './props';
25
26
 
26
27
  export default {
27
28
  ...uniComponent({
@@ -63,7 +64,7 @@ export default {
63
64
  },
64
65
  size() {
65
66
  let interval = 0;
66
- // #ifdef APP-PLUS
67
+ // #ifdef APP
67
68
  interval = 33;
68
69
  // #endif
69
70
  setTimeout(() => {
@@ -239,7 +240,7 @@ export default {
239
240
  canvas.height = canvasSize;
240
241
  // 小程序环境:scale 计算方式(参考 TS 实现)
241
242
  scale = canvasSize / qrData.numCells;
242
- // #ifdef APP-PLUS
243
+ // #ifdef APP
243
244
  scale /= pixelRatio;
244
245
  // #endif
245
246
  // #endif
@@ -297,7 +298,7 @@ export default {
297
298
  await this.drawIcon(qrData, pixelRatio);
298
299
  }
299
300
 
300
- // #ifdef APP-PLUS
301
+ // #ifdef APP
301
302
  ctx.draw();
302
303
  // #endif
303
304
 
@@ -51,10 +51,11 @@
51
51
  </template>
52
52
 
53
53
  <script>
54
+ import { prefix } from '../../../common/config';
54
55
  import TIcon from '../../../icon/icon';
55
56
  import TLoading from '../../../loading/loading';
57
+
56
58
  import props from './props';
57
- import { prefix } from '../../../common/config';
58
59
 
59
60
  const name = `${prefix}-qrcode`;
60
61
 
@@ -36,14 +36,16 @@
36
36
  </template>
37
37
 
38
38
  <script>
39
- import QrcodeCanvas from './components/qrcode-canvas/qrcode-canvas.vue';
40
- import QrcodeStatus from './components/qrcode-status/qrcode-status.vue';
41
39
  import { prefix } from '../common/config';
42
- import props from './props';
40
+
43
41
  import { uniComponent } from '../common/src/index';
44
42
  import tools from '../common/utils.wxs';
45
43
 
46
44
  import usingConfig from '../mixins/using-config';
45
+
46
+ import QrcodeCanvas from './components/qrcode-canvas/qrcode-canvas.vue';
47
+ import QrcodeStatus from './components/qrcode-status/qrcode-status.vue';
48
+ import props from './props';
47
49
  const componentName = 'qrcode';
48
50
  const name = `${prefix}-${componentName}`;
49
51
 
@@ -83,7 +83,7 @@ name | Description
83
83
  ### CSS Variables
84
84
 
85
85
  The component provides the following CSS variables, which can be used to customize styles.
86
- Name | Default Value | Description
86
+ Name | Default Value | Description
87
87
  -- | -- | --
88
88
  --td-radio-bg-color | @bg-color-container | -
89
89
  --td-radio-border-color | @component-stroke | -
@@ -129,7 +129,7 @@ change | `(context: { value: RadioValue })` | 选中值发生变化时触发
129
129
  ### CSS Variables
130
130
 
131
131
  组件提供了下列 CSS 变量,可用于自定义样式。
132
- 名称 | 默认值 | 描述
132
+ 名称 | 默认值 | 描述
133
133
  -- | -- | --
134
134
  --td-radio-bg-color | @bg-color-container | -
135
135
  --td-radio-border-color | @component-stroke | -
@@ -87,13 +87,14 @@
87
87
  </view>
88
88
  </template>
89
89
  <script>
90
- import TIcon from '../icon/icon';
91
90
  import { prefix, ISOLATED_RELATION_KEY } from '../common/config';
92
- import { coalesce } from '../common/utils';
91
+ import { ChildrenMixin, RELATION_MAP } from '../common/relation';
93
92
  import { uniComponent } from '../common/src/index';
94
- import props from './props';
93
+ import { coalesce } from '../common/utils';
95
94
  import tools from '../common/utils.wxs';
96
- import { ChildrenMixin, RELATION_MAP } from '../common/relation';
95
+ import TIcon from '../icon/icon';
96
+
97
+ import props from './props';
97
98
 
98
99
 
99
100
  const name = `${prefix}-radio`;
@@ -34,13 +34,14 @@
34
34
  </view>
35
35
  </template>
36
36
  <script>
37
- import TRadio from '../radio/radio';
38
37
  import { prefix } from '../common/config';
39
- import { coalesce } from '../common/utils';
38
+ import { ParentMixin, RELATION_MAP } from '../common/relation';
40
39
  import { uniComponent } from '../common/src/index';
41
- import props from './props';
40
+ import { coalesce } from '../common/utils';
42
41
  import tools from '../common/utils.wxs';
43
- import { ParentMixin, RELATION_MAP } from '../common/relation';
42
+ import TRadio from '../radio/radio';
43
+
44
+ import props from './props';
44
45
 
45
46
 
46
47
  const name = `${prefix}-radio-group`;
@@ -39,7 +39,7 @@ t-class-text | \-
39
39
  ### CSS Variables
40
40
 
41
41
  The component provides the following CSS variables, which can be used to customize styles.
42
- Name | Default Value | Description
42
+ Name | Default Value | Description
43
43
  -- | -- | --
44
44
  --td-rate-icon-scale | 1.33 | -
45
45
  --td-rate-selected-color | @warning-color | -
@@ -98,7 +98,7 @@ t-class-text | 文本样式类
98
98
  ### CSS Variables
99
99
 
100
100
  组件提供了下列 CSS 变量,可用于自定义样式。
101
- 名称 | 默认值 | 描述
101
+ 名称 | 默认值 | 描述
102
102
  -- | -- | --
103
103
  --td-rate-icon-scale | 1.33 | -
104
104
  --td-rate-selected-color | @warning-color | -