@cloudbase/weda-ui 2.0.10 → 2.0.26

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 (297) hide show
  1. package/README.md +1 -0
  2. package/package.json +47 -36
  3. package/src/configs/components/button.json +60 -13
  4. package/src/configs/components/calendar.json +3 -3
  5. package/src/configs/components/carousel.json +57 -47
  6. package/src/configs/components/chart/bar.json +4 -13
  7. package/src/configs/components/chart/line.json +4 -13
  8. package/src/configs/components/chart/pie.json +3 -10
  9. package/src/configs/components/chart/statisticsCard.json +1 -4
  10. package/src/configs/components/container.json +1 -3
  11. package/src/configs/components/dataView.json +7 -15
  12. package/src/configs/components/drawer.json +24 -6
  13. package/src/configs/components/form/form.json +19 -0
  14. package/src/configs/components/form/input.json +20 -5
  15. package/src/configs/components/form/location.json +51 -48
  16. package/src/configs/components/form/radio.json +1 -3
  17. package/src/configs/components/form/richText.json +14 -14
  18. package/src/configs/components/form/select.json +62 -82
  19. package/src/configs/components/form/textarea.json +14 -1
  20. package/src/configs/components/form/uploader.json +64 -64
  21. package/src/configs/components/form/uploaderFile.json +1 -2
  22. package/src/configs/components/graphicCard.json +44 -45
  23. package/src/configs/components/image.json +44 -40
  24. package/src/configs/components/link.json +5 -10
  25. package/src/configs/components/listView.json +2 -8
  26. package/src/configs/components/lottery.json +7 -3
  27. package/src/configs/components/modal.json +26 -21
  28. package/src/configs/components/navLayout.json +68 -68
  29. package/src/configs/components/navigationBar.json +4 -1
  30. package/src/configs/components/richtextview.json +1 -1
  31. package/src/configs/components/scrollVeiw.json +14 -42
  32. package/src/configs/components/swiper.json +9 -9
  33. package/src/configs/components/wedaVideo.json +89 -0
  34. package/src/configs/components/wxOpenApi/phone.json +7 -21
  35. package/src/configs/components/wxOpenApi/phoneCode.json +7 -19
  36. package/src/configs/components/wxOpenApi/share.json +14 -24
  37. package/src/configs/components/wxOpenApi/userInfo.json +9 -27
  38. package/src/configs/index.js +2 -0
  39. package/src/mp/components/button/index.js +1 -1
  40. package/src/mp/components/button/index.wxml +19 -19
  41. package/src/mp/components/calendar/index.js +68 -38
  42. package/src/mp/components/calendar/index.json +3 -2
  43. package/src/mp/components/calendar/index.wxml +5 -7
  44. package/src/mp/components/calendar/index.wxss +17 -16
  45. package/src/mp/components/carousel/index.json +1 -1
  46. package/src/mp/components/carousel/index.wxml +2 -2
  47. package/src/mp/components/chart/bar/index.js +1 -2
  48. package/src/mp/components/chart/bar/index.wxml +1 -1
  49. package/src/mp/components/chart/common/config/bar.js +1 -1
  50. package/src/mp/components/chart/common/core/eChartBar.js +29 -34
  51. package/src/mp/components/chart/common/core/eChartBase.js +46 -32
  52. package/src/mp/components/chart/common/core/eChartLine.js +34 -40
  53. package/src/mp/components/chart/common/core/eChartPie.js +12 -9
  54. package/src/mp/components/chart/ec-canvas/ec-canvas.json +1 -1
  55. package/src/mp/components/chart/ec-canvas/wx-canvas.js +24 -22
  56. package/src/mp/components/chart/line/index.js +2 -2
  57. package/src/mp/components/chart/line/index.wxml +1 -1
  58. package/src/mp/components/chart/pie/index.js +1 -1
  59. package/src/mp/components/chart/pie/index.wxml +1 -2
  60. package/src/mp/components/chart/statisticsCard/index.wxss +7 -10
  61. package/src/mp/components/dataView/index.wxml +2 -14
  62. package/src/mp/components/form/checkbox/index.js +15 -7
  63. package/src/mp/components/form/checkbox/index.wxml +13 -25
  64. package/src/mp/components/form/form/index.wxml +3 -3
  65. package/src/mp/components/form/formcell/index.wxml +9 -9
  66. package/src/mp/components/form/formcell/index.wxss +6 -1
  67. package/src/mp/components/form/input/index.js +4 -4
  68. package/src/mp/components/form/input/index.wxml +24 -31
  69. package/src/mp/components/form/input/index.wxss +9 -3
  70. package/src/mp/components/form/location/components/mapChoose/index.json +1 -1
  71. package/src/mp/components/form/location/components/mapChoose/index.wxml +6 -6
  72. package/src/mp/components/form/location/index.js +7 -1
  73. package/src/mp/components/form/location/index.json +1 -1
  74. package/src/mp/components/form/location/index.wxml +6 -10
  75. package/src/mp/components/form/radio/index.js +14 -6
  76. package/src/mp/components/form/radio/index.wxml +12 -24
  77. package/src/mp/components/form/select/index.js +157 -98
  78. package/src/mp/components/form/select/index.wxml +11 -39
  79. package/src/mp/components/form/select/index.wxss +10 -1
  80. package/src/mp/components/form/select/region/index.js +18 -12
  81. package/src/mp/components/form/switch/index.wxml +11 -18
  82. package/src/mp/components/form/textarea/index.js +6 -0
  83. package/src/mp/components/form/textarea/index.wxml +2 -17
  84. package/src/mp/components/form/textarea/index.wxss +5 -0
  85. package/src/mp/components/form/tips/index.wxml +1 -3
  86. package/src/mp/components/form/uploader/index.js +1 -1
  87. package/src/mp/components/form/uploader/index.wxml +3 -20
  88. package/src/mp/components/form/uploader/weui-uploader.js +210 -200
  89. package/src/mp/components/form/uploader/weui-uploader.json +6 -6
  90. package/src/mp/components/form/uploader/weui-uploader.wxml +38 -38
  91. package/src/mp/components/form/uploaderFile/index.js +5 -4
  92. package/src/mp/components/form/uploaderFile/index.wxml +40 -41
  93. package/src/mp/components/graphicCard/index.js +35 -35
  94. package/src/mp/components/graphicCard/index.wxml +2 -6
  95. package/src/mp/components/graphicCard/index.wxss +6 -6
  96. package/src/mp/components/image/index.wxml +9 -20
  97. package/src/mp/components/image/index.wxss +3 -1
  98. package/src/mp/components/listView/index.wxml +5 -7
  99. package/src/mp/components/listView/index.wxss +2 -2
  100. package/src/mp/components/lottery/index.wxml +1 -3
  101. package/src/mp/components/lottery/index.wxss +31 -25
  102. package/src/mp/components/navLayout/index.js +9 -12
  103. package/src/mp/components/navLayout/index.wxml +2 -4
  104. package/src/mp/components/navLayout/index.wxss +10 -10
  105. package/src/mp/components/navigationBar/index.json +1 -2
  106. package/src/mp/components/navigationBar/index.wxml +43 -51
  107. package/src/mp/components/navigationBar/index.wxss +10 -10
  108. package/src/mp/components/richText/index.wxml +1 -1
  109. package/src/mp/components/richText/index.wxss +7 -5
  110. package/src/mp/components/swiper/index.wxml +1 -9
  111. package/src/mp/components/tabs/index.js +14 -10
  112. package/src/mp/components/tabs/index.json +1 -1
  113. package/src/mp/components/tabs/index.wxml +3 -21
  114. package/src/mp/components/tabs/index.wxss +1 -2
  115. package/src/mp/components/text/index.wxml +1 -6
  116. package/src/mp/components/text/index.wxss +1 -1
  117. package/src/mp/components/wedaVideo/index.js +86 -0
  118. package/src/mp/components/wedaVideo/index.json +4 -0
  119. package/src/mp/components/wedaVideo/index.wxml +4 -0
  120. package/src/mp/components/wedaVideo/index.wxss +20 -0
  121. package/src/mp/components/wxOpenApi/phone/index.js +1 -9
  122. package/src/mp/components/wxOpenApi/phone/index.wxml +3 -14
  123. package/src/mp/components/wxOpenApi/phoneCode/index.json +1 -1
  124. package/src/mp/components/wxOpenApi/phoneCode/index.wxml +3 -14
  125. package/src/mp/components/wxOpenApi/share/index.wxml +3 -14
  126. package/src/mp/components/wxOpenApi/userInfo/index.wxml +3 -13
  127. package/src/mp/index.json +1 -0
  128. package/src/mp/style/weda-ui.wxss +24 -9
  129. package/src/mp/utils/deepEqual.js +37 -37
  130. package/src/mp/utils/destr.js +41 -40
  131. package/src/mp/utils/dr_square_point.js +10 -6
  132. package/src/setupTests.js +13 -13
  133. package/src/web/actions/showModal/index.tsx +5 -4
  134. package/src/web/components/button/index.tsx +44 -40
  135. package/src/web/components/calendar/index.css +99 -65
  136. package/src/web/components/carousel/index.tsx +1 -1
  137. package/src/web/components/chart/common/config/bar.js +1 -1
  138. package/src/web/components/chart/common/core/eChartBar.js +28 -34
  139. package/src/web/components/chart/common/core/eChartBase.ts +55 -42
  140. package/src/web/components/chart/common/core/eChartLine.js +34 -40
  141. package/src/web/components/chart/common/core/eChartPie.js +12 -9
  142. package/src/web/components/chart/common/core/type.ts +23 -23
  143. package/src/web/components/chart/common/echart.css +12 -12
  144. package/src/web/components/chart/common/echarts.ts +3 -5
  145. package/src/web/components/chart/common/useChart.tsx +34 -16
  146. package/src/web/components/chart/statisticsCard/index.css +9 -8
  147. package/src/web/components/container/index.tsx +3 -4
  148. package/src/web/components/drawer/index.tsx +15 -4
  149. package/src/web/components/form/checkbox/index.tsx +32 -31
  150. package/src/web/components/form/enumSelect/NormalSelect.tsx +0 -2
  151. package/src/web/components/form/form/index.css +3 -6
  152. package/src/web/components/form/form/index.tsx +7 -6
  153. package/src/web/components/form/formcell/index.css +11 -18
  154. package/src/web/components/form/formcell/index.tsx +3 -7
  155. package/src/web/components/form/input/index.css +8 -4
  156. package/src/web/components/form/input/index.tsx +61 -53
  157. package/src/web/components/form/location/common/mapChoose.css +13 -11
  158. package/src/web/components/form/location/common/selectModal.jsx +2 -11
  159. package/src/web/components/form/location/common/useLocationInfo.js +4 -0
  160. package/src/web/components/form/location/components/LocationH5/index.css +19 -20
  161. package/src/web/components/form/location/components/LocationH5/location.h5.jsx +11 -1
  162. package/src/web/components/form/location/components/LocationPC/Header.jsx +0 -13
  163. package/src/web/components/form/location/components/LocationPC/location.PC.jsx +14 -5
  164. package/src/web/components/form/radio/index.tsx +32 -26
  165. package/src/web/components/form/renderDecorator.tsx +23 -26
  166. package/src/web/components/form/select/h5.tsx +155 -104
  167. package/src/web/components/form/select/index.css +9 -3
  168. package/src/web/components/form/select/index.tsx +76 -49
  169. package/src/web/components/form/select/region/index.ts +101 -80
  170. package/src/web/components/form/select/year.tsx +2 -0
  171. package/src/web/components/form/switch/index.tsx +40 -40
  172. package/src/web/components/form/textarea/index.css +4 -0
  173. package/src/web/components/form/textarea/index.tsx +39 -26
  174. package/src/web/components/form/types.d.ts +10 -10
  175. package/src/web/components/form/uploader/index.css +10 -0
  176. package/src/web/components/form/uploader/uploader.h5.tsx +29 -26
  177. package/src/web/components/form/uploader/uploader.pc.tsx +3 -6
  178. package/src/web/components/form/uploaderFile/index.css +24 -23
  179. package/src/web/components/form/uploaderFile/index.jsx +0 -5
  180. package/src/web/components/form/uploaderFile/uploadFile.h5.tsx +24 -15
  181. package/src/web/components/form/uploaderFile/uploadFile.pc.tsx +21 -13
  182. package/src/web/components/graphicCard/index.css +6 -6
  183. package/src/web/components/image/image.tsx +2 -2
  184. package/src/web/components/image/index.css +9 -7
  185. package/src/web/components/image/index.tsx +29 -12
  186. package/src/web/components/index.js +1 -0
  187. package/src/web/components/link/index.tsx +13 -13
  188. package/src/web/components/listView/index.css +8 -8
  189. package/src/web/components/lottery/index.css +43 -37
  190. package/src/web/components/lottery/index.tsx +3 -3
  191. package/src/web/components/modal/index.tsx +34 -34
  192. package/src/web/components/navLayout/index.css +25 -25
  193. package/src/web/components/navLayout/index.tsx +1 -1
  194. package/src/web/components/navigationBar/index.css +26 -26
  195. package/src/web/components/navigationBar/index.tsx +2 -2
  196. package/src/web/components/picker/datePicker.tsx +3 -3
  197. package/src/web/components/picker/picker.tsx +3 -3
  198. package/src/web/components/picker/timePicker.tsx +1 -1
  199. package/src/web/components/richText/index.jsx +41 -46
  200. package/src/web/components/richTextView/index.css +7 -3
  201. package/src/web/components/richTextView/index.tsx +4 -6
  202. package/src/web/components/scrollView/index.tsx +2 -2
  203. package/src/web/components/slot/index.tsx +3 -4
  204. package/src/web/components/swiper/index.css +1 -1
  205. package/src/web/components/swiper/index.tsx +33 -15
  206. package/src/web/components/tabs/index.css +2 -3
  207. package/src/web/components/tabs/index.tsx +6 -6
  208. package/src/web/components/tabs/tabs.h5.tsx +17 -12
  209. package/src/web/components/tabs/tabs.pc.tsx +45 -34
  210. package/src/web/components/text/index.css +1 -1
  211. package/src/web/components/text/index.tsx +13 -14
  212. package/src/web/components/wedaVideo/index.css +42 -0
  213. package/src/web/components/wedaVideo/index.tsx +208 -0
  214. package/src/web/utils/constant.ts +2 -1
  215. package/src/web/utils/isObjectEqual.js +2 -1
  216. package/src/web/utils/loading-fallback.tsx +2 -2
  217. package/src/web/utils/lodash.ts +1 -1
  218. package/src/web/utils/platform.js +13 -0
  219. package/src/web/utils/useSetState.ts +6 -2
  220. package/src/web/weda-ui.css +23 -8
  221. package/src/docs/common/format.tsx +0 -112
  222. package/src/docs/common/tableView.css +0 -164
  223. package/src/docs/common/tableView.tsx +0 -273
  224. package/src/docs/compsdocs/chart/Bar.mdx +0 -159
  225. package/src/docs/compsdocs/chart/Line.mdx +0 -100
  226. package/src/docs/compsdocs/chart/Pie.mdx +0 -83
  227. package/src/docs/compsdocs/chart/_category_.json +0 -1
  228. package/src/docs/compsdocs/chart/statisticsCard.mdx +0 -51
  229. package/src/docs/compsdocs/database/DataView.mdx +0 -33
  230. package/src/docs/compsdocs/database/ListView.mdx +0 -33
  231. package/src/docs/compsdocs/database/_category_.json +0 -1
  232. package/src/docs/compsdocs/form/Form.mdx +0 -35
  233. package/src/docs/compsdocs/form/FormCheckbox.mdx +0 -35
  234. package/src/docs/compsdocs/form/FormDate.mdx +0 -30
  235. package/src/docs/compsdocs/form/FormEmail.mdx +0 -30
  236. package/src/docs/compsdocs/form/FormImageUploader.mdx +0 -31
  237. package/src/docs/compsdocs/form/FormInput.mdx +0 -30
  238. package/src/docs/compsdocs/form/FormLocation.mdx +0 -64
  239. package/src/docs/compsdocs/form/FormPhone.mdx +0 -30
  240. package/src/docs/compsdocs/form/FormRadio.mdx +0 -35
  241. package/src/docs/compsdocs/form/FormRegion.mdx +0 -30
  242. package/src/docs/compsdocs/form/FormSelect.mdx +0 -36
  243. package/src/docs/compsdocs/form/FormSwitch.mdx +0 -30
  244. package/src/docs/compsdocs/form/FormTextarea.mdx +0 -30
  245. package/src/docs/compsdocs/form/FormTime.mdx +0 -30
  246. package/src/docs/compsdocs/form/FormUploadFile.mdx +0 -30
  247. package/src/docs/compsdocs/form/FormUrl.mdx +0 -30
  248. package/src/docs/compsdocs/form/_category_.json +0 -1
  249. package/src/docs/compsdocs/grid/Card.mdx +0 -32
  250. package/src/docs/compsdocs/grid/Container.mdx +0 -42
  251. package/src/docs/compsdocs/grid/Footer.mdx +0 -31
  252. package/src/docs/compsdocs/grid/GridLayout.mdx +0 -32
  253. package/src/docs/compsdocs/grid/Header.mdx +0 -31
  254. package/src/docs/compsdocs/grid/Layout.mdx +0 -25
  255. package/src/docs/compsdocs/grid/List.mdx +0 -31
  256. package/src/docs/compsdocs/grid/ScrollView.mdx +0 -37
  257. package/src/docs/compsdocs/grid/Swiper.mdx +0 -58
  258. package/src/docs/compsdocs/grid/_category_.json +0 -1
  259. package/src/docs/compsdocs/media/Icon.mdx +0 -31
  260. package/src/docs/compsdocs/media/Image.mdx +0 -55
  261. package/src/docs/compsdocs/media/_category_.json +0 -1
  262. package/src/docs/compsdocs/model/ModelCreate.mdx +0 -20
  263. package/src/docs/compsdocs/model/ModelDetail.mdx +0 -20
  264. package/src/docs/compsdocs/model/ModelTable.mdx +0 -24
  265. package/src/docs/compsdocs/model/ModelUpdate.mdx +0 -21
  266. package/src/docs/compsdocs/model/PageLayout.mdx +0 -21
  267. package/src/docs/compsdocs/model/_category_.json +0 -1
  268. package/src/docs/compsdocs/navmenu/Classification.mdx +0 -38
  269. package/src/docs/compsdocs/navmenu/NavBar.mdx +0 -43
  270. package/src/docs/compsdocs/navmenu/NavLayout.mdx +0 -30
  271. package/src/docs/compsdocs/navmenu/TabBar.mdx +0 -43
  272. package/src/docs/compsdocs/navmenu/TabBarItem.mdx +0 -29
  273. package/src/docs/compsdocs/navmenu/_category_.json +0 -1
  274. package/src/docs/compsdocs/senior/Lottery.mdx +0 -48
  275. package/src/docs/compsdocs/senior/Modal.mdx +0 -58
  276. package/src/docs/compsdocs/senior/SlotMachine.mdx +0 -52
  277. package/src/docs/compsdocs/senior/_category_.json +0 -1
  278. package/src/docs/compsdocs/show/Calendar.mdx +0 -29
  279. package/src/docs/compsdocs/show/Divider.mdx +0 -31
  280. package/src/docs/compsdocs/show/GraphicCard.mdx +0 -30
  281. package/src/docs/compsdocs/show/Item.mdx +0 -32
  282. package/src/docs/compsdocs/show/ItemList.mdx +0 -47
  283. package/src/docs/compsdocs/show/Media.mdx +0 -25
  284. package/src/docs/compsdocs/show/StatusTip.mdx +0 -25
  285. package/src/docs/compsdocs/show/Swiper.mdx +0 -33
  286. package/src/docs/compsdocs/show/Tabs.mdx +0 -38
  287. package/src/docs/compsdocs/show/_category_.json +0 -1
  288. package/src/docs/compsdocs/show/button.mdx +0 -25
  289. package/src/docs/compsdocs/text/Link.mdx +0 -43
  290. package/src/docs/compsdocs/text/RichTextView.mdx +0 -36
  291. package/src/docs/compsdocs/text/Text.mdx +0 -31
  292. package/src/docs/compsdocs/text/Title.mdx +0 -32
  293. package/src/docs/compsdocs/text/_category_.json +0 -1
  294. package/src/docs/compsdocs/wxOpen/Phone.mdx +0 -60
  295. package/src/docs/compsdocs/wxOpen/Share.mdx +0 -46
  296. package/src/docs/compsdocs/wxOpen/UserInfo.mdx +0 -60
  297. package/src/docs/compsdocs/wxOpen/_category_.json +0 -4
@@ -2,15 +2,13 @@
2
2
  <view class="weda-menu__wrapper" style="background:{{navigationStyle.menuBackgroundColor}}">
3
3
  <view class="weda-menu__bar-main">
4
4
  <view class="weda-menu__main-logo">
5
- <image wx:if="{{navigationStyle.showLogo}}" class="weda-menu__main-icon" style="width:{{navigationStyle.logoWidth}};height:{{navigationStyle.logoHeight}};" src="{{navigationStyle.logoUrl||defaultLogoUrl}}"></image>
6
- <text wx:if="{{navigationStyle.showTitle}}" style="font-size:{{navigationStyle.titleFontSize}};color:{{navigationStyle.titleColor}};line-height: 2px;">
7
- {{navigationStyle.title}}
8
- </text>
5
+ <image wx:if="{{navigationStyle.showLogo}}" class="weda-menu__main-icon" style="width:{{navigationStyle.logoWidth}};height:{{navigationStyle.logoHeight}};" src="{{navigationStyle.logoUrl||defaultLogoUrl}}"></image>
6
+ <text wx:if="{{navigationStyle.showTitle}}" style="font-size:{{navigationStyle.titleFontSize}};color:{{navigationStyle.titleColor}};line-height: 2px;"> {{navigationStyle.title}} </text>
9
7
  </view>
10
8
  </view>
11
9
  <view class="weda-menu__bar-extra">
12
- <view wx:if="{{!visible}}" class=".weda-menu__bar-btn weda-icon t-icon t-icon-view-list" bindtap="showMenu" style="color:{{navigationStyle.titleColor}}"></view>
13
- <view wx:else class="weda-menu__bar-btn--close weda-icon t-icon t-icon-close" bindtap="showMenu" style="color:{{navigationStyle.titleColor}}"></view>
10
+ <view wx:if="{{!visible}}" class=".weda-menu__bar-btn weda-icon t-icon t-icon-view-list" bindtap="showMenu" style="color:{{navigationStyle.titleColor}}"></view>
11
+ <view wx:else class="weda-menu__bar-btn--close weda-icon t-icon t-icon-close" bindtap="showMenu" style="color:{{navigationStyle.titleColor}}"></view>
14
12
  </view>
15
13
  </view>
16
14
  <view class="menu-solt">
@@ -18,71 +16,65 @@
18
16
  </view>
19
17
  </view>
20
18
 
21
-
22
- <view class="weda-menu-mobile__drawer" wx-if="{{visible}}">
23
-
19
+ <view class="weda-menu-mobile__drawer" wx-if="{{visible}}">
24
20
  <view class="weda-menu weda-menu-mobile">
25
21
  <view class="weda-menu__wrapper" style="background:{{navigationStyle.menuBackgroundColor}}">
26
22
  <view class="weda-menu__bar-main">
27
23
  <view class="weda-menu__main-logo">
28
- <image wx:if="{{navigationStyle.showLogo}}" class="weda-menu__main-icon" style="width:{{navigationStyle.logoWidth}};height:{{navigationStyle.logoHeight}};" src="{{navigationStyle.logoUrl||defaultLogoUrl}}"></image>
29
- <text wx:if="{{navigationStyle.showTitle}}" style="font-size:{{navigationStyle.titleFontSize}};color:{{navigationStyle.titleColor}};line-height: 2px;">
30
- {{navigationStyle.title}}
31
- </text>
24
+ <image wx:if="{{navigationStyle.showLogo}}" class="weda-menu__main-icon" style="width:{{navigationStyle.logoWidth}};height:{{navigationStyle.logoHeight}};" src="{{navigationStyle.logoUrl||defaultLogoUrl}}"></image>
25
+ <text wx:if="{{navigationStyle.showTitle}}" style="font-size:{{navigationStyle.titleFontSize}};color:{{navigationStyle.titleColor}};line-height: 2px;"> {{navigationStyle.title}} </text>
32
26
  </view>
33
27
  </view>
34
28
  <view class="weda-menu__bar-extra">
35
- <view wx:if="{{!visible}}" class=".weda-menu__bar-btn weda-icon t-icon t-icon-view-list" bindtap="showMenu" style="color:{{navigationStyle.titleColor}}"></view>
36
- <view wx:else class="weda-menu__bar-btn--close weda-icon t-icon t-icon-close" bindtap="showMenu" style="color:{{navigationStyle.titleColor}}"></view>
29
+ <view wx:if="{{!visible}}" class=".weda-menu__bar-btn weda-icon t-icon t-icon-view-list" bindtap="showMenu" style="color:{{navigationStyle.titleColor}}"></view>
30
+ <view wx:else class="weda-menu__bar-btn--close weda-icon t-icon t-icon-close" bindtap="showMenu" style="color:{{navigationStyle.titleColor}}"></view>
37
31
  </view>
38
32
  </view>
39
33
  </view>
40
34
  <view class="weda-drawer-drawer__body">
41
- <scroll-view class="weda-drawer-menu weda-menu__drawer-menu weda-drawer-menu--light" scroll-y >
42
- <view class="weda-drawer-menu weda-menu__drawer-menu weda-drawer-menu--light" style="background:{{navigationStyle.menuBackgroundColor}}">
43
- <view class="weda-drawer-menu__body">
44
- <view class="weda-drawer-menu__list">
45
- <block wx:for="{{menuData}}" wx:key="menuIndex" wx:for-item="menu">
46
- <view class="{{menu.children ? 'weda-drawer-menu__submenu' : ''}} {{menu.expand?'expand':''}}" >
47
- <view class="weda-drawer-menu__item" style="background-color:{{selectedKey===menu.key?navigationStyle.menuHoverColor:'unset'}};" bindtap="menuClick" data-menu="{{menu}}">
48
- <view wx:if="{{navigationStyle.showMenuIcon && menu.iconType!=='image'}}" class="weda-grid-navigation__icon">
35
+ <scroll-view class="weda-drawer-menu weda-menu__drawer-menu weda-drawer-menu--light" scroll-y>
36
+ <view class="weda-drawer-menu weda-menu__drawer-menu weda-drawer-menu--light" style="background:{{navigationStyle.menuBackgroundColor}}">
37
+ <view class="weda-drawer-menu__body">
38
+ <view class="weda-drawer-menu__list">
39
+ <block wx:for="{{menuData}}" wx:key="menuIndex" wx:for-item="menu">
40
+ <view class="{{menu.children ? 'weda-drawer-menu__submenu' : ''}} {{menu.expand?'expand':''}}">
41
+ <view class="weda-drawer-menu__item" style="background-color:{{selectedKey===menu.key?navigationStyle.menuHoverColor:'unset'}};" bindtap="menuClick" data-menu="{{menu}}">
42
+ <view wx:if="{{navigationStyle.showMenuIcon && menu.iconType!=='image'}}" class="weda-grid-navigation__icon">
49
43
  <view wx:if="{{menu.iconType === 't-icon'}}" class="weda-icon t-icon t-icon-{{menu.ticon}}" style="font-size:{{navigationStyle.menuFontSize}};color:{{navigationStyle.menuColor}}"></view>
50
- <view wx:if="{{menu.iconType !== 't-icon'}}" class="weda-icon lcap-icon-padding lcap-icon lcap-icon-{{menu.iconUrl}}" style="font-size:{{navigationStyle.menuFontSize}};color:{{navigationStyle.menuColor}}">
44
+ <view wx:if="{{menu.iconType !== 't-icon'}}" class="weda-icon lcap-icon-padding lcap-icon lcap-icon-{{menu.iconUrl}}" style="font-size:{{navigationStyle.menuFontSize}};color:{{navigationStyle.menuColor}}"> </view>
51
45
  </view>
46
+ <image wx:if="{{navigationStyle.showMenuIcon && menu.iconType==='image'}}" class="weda-drawer-menu__list-icon" src="{{menu.iconUrl}}" alt="icon"></image>
47
+ <view class="weda-drawer-menu__text" style="font-size:{{navigationStyle.menuFontSize}};color:{{navigationStyle.menuColor}}">{{menu.title}}</view>
48
+ <view wx-if="{{menu.children.length>0}}" class="weda-menu__bar-btn-expand lcap-icon lcap-icon-chevrondown"></view>
52
49
  </view>
53
- <image wx:if="{{navigationStyle.showMenuIcon && menu.iconType==='image'}}" class="weda-drawer-menu__list-icon" src="{{menu.iconUrl}}" alt="icon"></image>
54
- <view class="weda-drawer-menu__text" style="font-size:{{navigationStyle.menuFontSize}};color:{{navigationStyle.menuColor}}">{{menu.title}}</view>
55
- <view wx-if="{{menu.children.length>0}}" class="weda-menu__bar-btn-expand lcap-icon lcap-icon-chevrondown"></view>
56
- </view>
57
- <view class="weda-drawer-menu__list">
58
- <block wx-if="{{menu.children}}">
59
- <block wx:for="{{menu.children}}" wx:key="secondIndex" wx:for-item="secondMenu">
60
- <view class="{{secondMenu.children ? 'weda-drawer-menu__submenu weda-menu__submenu' : ''}} {{secondMenu.expand?'expand':''}}">
61
- <view class="weda-drawer-menu__item" style="background-color:{{selectedKey===secondMenu.key?navigationStyle.menuHoverColor:'unset'}};" bindtap="menuClick" data-menu="{{secondMenu}}">
62
- <view class="weda-drawer-menu__text" style="font-size:{{navigationStyle.menuFontSize}};color:{{navigationStyle.menuColor}}">{{secondMenu.title}}</view>
63
- <view wx-if="{{secondMenu.children.length>0}}" class="weda-menu__bar-btn-expand lcap-icon lcap-icon-chevrondown"></view>
64
- </view>
65
- <view class="weda-drawer-menu__list">
66
- <block wx-if="{{secondMenu.children}}">
67
- <block wx:for="{{secondMenu.children}}" wx:key="thridIndex" wx:for-item="thridMenu">
68
- <view class="">
69
- <view class="weda-drawer-menu__item" style="background-color:{{selectedKey===thridMenu.key?navigationStyle.menuHoverColor:'unset'}};" bindtap="menuClick" data-menu="{{thridMenu}}">
70
- <view class="weda-drawer-menu__text" style="font-size:{{navigationStyle.menuFontSize}};color:{{navigationStyle.menuColor}}">{{thridMenu.title}}</view>
50
+ <view class="weda-drawer-menu__list">
51
+ <block wx-if="{{menu.children}}">
52
+ <block wx:for="{{menu.children}}" wx:key="secondIndex" wx:for-item="secondMenu">
53
+ <view class="{{secondMenu.children ? 'weda-drawer-menu__submenu weda-menu__submenu' : ''}} {{secondMenu.expand?'expand':''}}">
54
+ <view class="weda-drawer-menu__item" style="background-color:{{selectedKey===secondMenu.key?navigationStyle.menuHoverColor:'unset'}};" bindtap="menuClick" data-menu="{{secondMenu}}">
55
+ <view class="weda-drawer-menu__text" style="font-size:{{navigationStyle.menuFontSize}};color:{{navigationStyle.menuColor}}">{{secondMenu.title}}</view>
56
+ <view wx-if="{{secondMenu.children.length>0}}" class="weda-menu__bar-btn-expand lcap-icon lcap-icon-chevrondown"></view>
57
+ </view>
58
+ <view class="weda-drawer-menu__list">
59
+ <block wx-if="{{secondMenu.children}}">
60
+ <block wx:for="{{secondMenu.children}}" wx:key="thridIndex" wx:for-item="thridMenu">
61
+ <view class="">
62
+ <view class="weda-drawer-menu__item" style="background-color:{{selectedKey===thridMenu.key?navigationStyle.menuHoverColor:'unset'}};" bindtap="menuClick" data-menu="{{thridMenu}}">
63
+ <view class="weda-drawer-menu__text" style="font-size:{{navigationStyle.menuFontSize}};color:{{navigationStyle.menuColor}}">{{thridMenu.title}}</view>
64
+ </view>
71
65
  </view>
72
- </view>
66
+ </block>
73
67
  </block>
74
- </block>
68
+ </view>
75
69
  </view>
76
- </view>
70
+ </block>
77
71
  </block>
78
- </block>
72
+ </view>
79
73
  </view>
80
- </view>
81
- </block>
74
+ </block>
75
+ </view>
82
76
  </view>
83
77
  </view>
84
- </view>
85
- </scroll-view>
78
+ </scroll-view>
86
79
  </view>
87
-
88
80
  </view>
@@ -1069,7 +1069,7 @@
1069
1069
  align-items: center;
1070
1070
  justify-content: space-between;
1071
1071
  padding: 0 20px 0 16px;
1072
- height: 64px;
1072
+ height: 4.5714em;
1073
1073
  background-color: #fff;
1074
1074
  position: relative;
1075
1075
  box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.05);
@@ -1084,7 +1084,7 @@
1084
1084
 
1085
1085
  .weda-menu-mobile .weda-menu__bar-main .weda-menu__main-logo {
1086
1086
  font-weight: normal;
1087
- font-size: 18px;
1087
+ font-size: 1.28571em;
1088
1088
  color: #000000;
1089
1089
  text-decoration: none;
1090
1090
  display: flex;
@@ -1092,8 +1092,8 @@
1092
1092
  }
1093
1093
 
1094
1094
  .weda-menu-mobile .weda-menu__bar-main .weda-menu__main-icon {
1095
- width: 32px;
1096
- height: 32px;
1095
+ width: 2.2857em;
1096
+ height: 2.2857em;
1097
1097
  margin-right: 12px;
1098
1098
  }
1099
1099
 
@@ -1105,12 +1105,12 @@
1105
1105
 
1106
1106
  .weda-menu-mobile .weda-menu__bar-extra .weda-menu__bar-btn,
1107
1107
  .weda-menu-mobile .weda-menu__bar-extra .weda-menu__bar-btn--close {
1108
- width: 24px;
1109
- height: 24px;
1110
- font-size: 24px;
1108
+ width: 1.71428em;
1109
+ height: 1.71428em;
1110
+ font-size: 1.71428em;
1111
1111
  }
1112
1112
  .weda-menu-mobile .weda-menu__bar-extra .weda-menu__bar-btn--close {
1113
- font-size: 28px;
1113
+ font-size: 2em;
1114
1114
  }
1115
1115
  .weda-menu-mobile__drawer {
1116
1116
  width: 100%;
@@ -1206,8 +1206,8 @@
1206
1206
  .weda-drawer-menu__submenu
1207
1207
  .weda-drawer-menu__list
1208
1208
  .weda-drawer-menu__text {
1209
- font-size: 16px;
1210
- line-height: 20px;
1209
+ font-size: 1.4285em;
1210
+ line-height: 1.4285em;
1211
1211
  color: rgba(0, 0, 0, 0.9);
1212
1212
  padding: 0;
1213
1213
  max-width: 100%;
@@ -1,3 +1,3 @@
1
- <view class="weda-ui {{className}}" style="{{style}}">
1
+ <view class="weda-ui weda-RichTextView {{className}}" style="{{style}}">
2
2
  <rich-text nodes="{{__html}}"></rich-text>
3
3
  </view>
@@ -1,4 +1,7 @@
1
- rich-text .blockquote {
1
+ .weda-RichTextView {
2
+ font-size: 14px;
3
+ }
4
+ .weda-RichTextView .blockquote {
2
5
  margin: 0 0 10px;
3
6
  padding: 15px 20px;
4
7
  background-color: #f1f2f3;
@@ -7,7 +10,7 @@ rich-text .blockquote {
7
10
  font-style: italic;
8
11
  }
9
12
 
10
- rich-text .pre {
13
+ .weda-RichTextView .pre {
11
14
  max-width: 100%;
12
15
  max-height: 100%;
13
16
  margin: 10px 0;
@@ -17,9 +20,8 @@ rich-text .pre {
17
20
  border-radius: 3px;
18
21
  color: #666;
19
22
  font-family: monospace;
20
- font-size: 14px;
21
- font-weight: 400;
22
- line-height: 16px;
23
+ font-size: 1em;
24
+ line-height: 1.14285em;
23
25
  word-wrap: break-word;
24
26
  white-space: pre-wrap;
25
27
  }
@@ -1,11 +1,3 @@
1
- <swiper
2
- id="{{id}}" class="weda-ui {{className}}" style="{{style}}"
3
- indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}"
4
- current="{{current}}" interval="{{interval}}" duration="{{duration}}"
5
- circular="{{circular}}" vertical="{{vertical}}"
6
- indicator-color="{{indicatorColor}}"
7
- indicator-active-color="{{indicatorActiveColor}}">
1
+ <swiper id="{{id}}" class="weda-ui {{className}}" style="{{style}}" indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" current="{{current}}" interval="{{interval}}" duration="{{duration}}" circular="{{circular}}" vertical="{{vertical}}" indicator-color="{{indicatorColor}}" indicator-active-color="{{indicatorActiveColor}}">
8
2
  <slot></slot>
9
3
  </swiper>
10
-
11
-
@@ -9,7 +9,7 @@ Component({
9
9
  properties: {
10
10
  isMultipleSlot: {
11
11
  type: Boolean,
12
- value: true
12
+ value: true,
13
13
  },
14
14
  tabs: { type: Array, value: [] },
15
15
  scrollCellId: {
@@ -18,8 +18,8 @@ Component({
18
18
  },
19
19
  selectedIndex: {
20
20
  type: Number,
21
- value: 0
22
- }
21
+ value: 0,
22
+ },
23
23
  },
24
24
 
25
25
  data: {
@@ -41,15 +41,19 @@ Component({
41
41
  },
42
42
  },
43
43
  observers: {
44
- 'selectedIndex': function(selectedIndex) {
45
- if(selectedIndex !== this.data.currentIndex) {
44
+ selectedIndex: function (selectedIndex) {
45
+ if (selectedIndex !== this.data.currentIndex) {
46
46
  this.setData({
47
- currentIndex: selectedIndex
47
+ currentIndex: selectedIndex,
48
48
  });
49
49
  }
50
50
  },
51
- 'currentIndex, tabs': function(currentIndex, tabs) {
52
- this.triggerEvent('change', {id: currentIndex, label: tabs[currentIndex].title, value: tabs[currentIndex].value});
53
- }
54
- }
51
+ 'currentIndex, tabs': function (currentIndex, tabs) {
52
+ this.triggerEvent('change', {
53
+ id: currentIndex,
54
+ label: tabs[currentIndex].title,
55
+ value: tabs[currentIndex].value,
56
+ });
57
+ },
58
+ },
55
59
  });
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "component": true,
3
3
  "usingComponents": {}
4
- }
4
+ }
@@ -1,26 +1,8 @@
1
1
  <view class="weda-tabs ext-class">
2
- <scroll-view
3
- class="weda-tabs__nav"
4
- scroll-into-view="{{ scrollCellId }}"
5
- scroll-with-animation
6
- scroll-x
7
- >
8
- <view
9
- bind:tap="toggle"
10
- class="weda-tabs__nav-cell {{ currentIndex === index ? 'active' : '' }} {{ tabs.length > 5 ? 'scroll' : '' }}"
11
- data-index="{{index}}"
12
- id="cell-{{index}}"
13
- style="width: {{ 1 / tabs.length * 100 }}%"
14
- wx:for="{{tabs}}"
15
- wx:for-index="index"
16
- wx:for-item="tab"
17
- wx:key="index"
18
- >{{ tab.title }}</view>
2
+ <scroll-view class="weda-tabs__nav" scroll-into-view="{{ scrollCellId }}" scroll-with-animation scroll-x>
3
+ <view bind:tap="toggle" class="weda-tabs__nav-cell {{ currentIndex === index ? 'active' : '' }} {{ tabs.length > 5 ? 'scroll' : '' }}" data-index="{{index}}" id="cell-{{index}}" style="width: {{ 1 / tabs.length * 100 }}%" wx:for="{{tabs}}" wx:for-index="index" wx:for-item="tab" wx:key="index">{{ tab.title }}</view>
19
4
 
20
- <view
21
- class="weda-tabs__nav-sticky"
22
- style="width: {{ 1 / tabs.length * 100 }}%; transform: translate3d({{currentIndex * 100}}%, 0, 0)"
23
- ></view>
5
+ <view class="weda-tabs__nav-sticky" style="width: {{ 1 / tabs.length * 100 }}%; transform: translate3d({{currentIndex * 100}}%, 0, 0)"></view>
24
6
  </scroll-view>
25
7
 
26
8
  <view class="weda-tabs__panel">
@@ -9,7 +9,6 @@
9
9
  height: 45px;
10
10
  background-color: #fff;
11
11
  position: relative;
12
- font-size: 0;
13
12
  white-space: nowrap;
14
13
  border-bottom: 1px solid #eee;
15
14
  }
@@ -23,7 +22,7 @@
23
22
  flex-basis: 0;
24
23
  flex-grow: 1;
25
24
  height: 100%;
26
- font-size: 14px;
25
+ font-size: 1em;
27
26
  color: #000;
28
27
  box-sizing: border-box;
29
28
  padding: 0 16px;
@@ -1,6 +1 @@
1
- <text
2
- class="weda-text weda-ui {{className}} {{levelName}}"
3
- id="{{id}}"
4
- user-select="{{userSelect}}"
5
- style="white-space: {{ space ? 'pre-warp' : 'pre-line'}}; {{style}}"
6
- >{{text}}</text>
1
+ <text class="weda-text weda-ui {{className}} {{levelName}}" id="{{id}}" user-select="{{userSelect}}" style="white-space: {{ space ? 'pre-warp' : 'pre-line'}}; {{style}}">{{text}}</text>
@@ -23,4 +23,4 @@
23
23
  }
24
24
  .weda-text.level_6 {
25
25
  font-size: 24px !important;
26
- }
26
+ }
@@ -0,0 +1,86 @@
1
+ // component/videojs.js
2
+ Component({
3
+ /**
4
+ * 组件的属性列表
5
+ */
6
+ properties: {
7
+ className: {
8
+ type: String,
9
+ value: '',
10
+ },
11
+ style: {
12
+ type: String,
13
+ value: '',
14
+ },
15
+ videoDataSource: {
16
+ type: String,
17
+ value: '',
18
+ },
19
+ posterImage: {
20
+ type: String,
21
+ value: '',
22
+ },
23
+ autoPlay: {
24
+ type: Boolean,
25
+ value: false,
26
+ },
27
+ loopPlay: {
28
+ type: Boolean,
29
+ value: false,
30
+ },
31
+ mutePlay: {
32
+ type: Boolean,
33
+ value: false,
34
+ },
35
+ controlBarStatus: {
36
+ type: Boolean,
37
+ value: true,
38
+ },
39
+ startTime: {
40
+ type: Number,
41
+ value: 0,
42
+ },
43
+ endTime: {
44
+ type: Number,
45
+ value: 0,
46
+ },
47
+ },
48
+
49
+ /**
50
+ * 组件的初始数据
51
+ */
52
+ data: {
53
+ videoId: `${new Date().getTime()}-${Math.random()}`,
54
+ videoErrMsg: '',
55
+ videoErrStatus: false,
56
+ },
57
+
58
+ /**
59
+ * 组件的方法列表
60
+ */
61
+ methods: {
62
+ bindtimeupdate(event) {
63
+ const { currentTime } = event.detail;
64
+ const { endTime, loopPlay } = this.properties;
65
+ const videoContext = wx.createVideoContext(this.data.videoId, this);
66
+ if (currentTime >= endTime && endTime) {
67
+ videoContext.seek(0);
68
+ loopPlay ? videoContext.play() : videoContext.pause();
69
+ }
70
+ },
71
+ binderror(event) {
72
+ const { errMsg } = event.detail;
73
+ this.setData({
74
+ videoErrMsg: errMsg,
75
+ videoErrStatus: true,
76
+ });
77
+ console.error('binderror', event.detail);
78
+ },
79
+ bindplay() {
80
+ this.setData({
81
+ videoErrMsg: '',
82
+ videoErrStatus: false,
83
+ });
84
+ },
85
+ },
86
+ });
@@ -0,0 +1,4 @@
1
+ {
2
+ "component": true,
3
+ "styleIsolation": "shared"
4
+ }
@@ -0,0 +1,4 @@
1
+ <view style="position: relative">
2
+ <video class="weda-ui_video-mp {{className}}" style="{{style}}" id="{{videoId}}" src="{{videoDataSource}}" poster="{{posterImage}}" autoplay="{{autoPlay}}" loop="{{loopPlay}}" muted="{{mutePlay}}" controls="{{controlBarStatus}}" initial-time="{{startTime}}" duration="{{endTime}}" show-mute-btn="{{true}}" bindtimeupdate="bindtimeupdate" binderror="binderror" bindplay="bindplay"></video>
3
+ <view class="weda-ui_video-mp_error" wx:if="{{videoErrStatus}}"> 频资源加载出错,错误信息:{{videoErrMsg}} </view>
4
+ </view>
@@ -0,0 +1,20 @@
1
+ /* component/videojs.wxss */
2
+
3
+ .weda-ui_video-mp {
4
+ width: 100%;
5
+ position: relative;
6
+ }
7
+
8
+ .weda-ui_video-mp_error {
9
+ width: 100%;
10
+ height: 100%;
11
+ position: absolute;
12
+ background-color: rgba(0, 0, 0);
13
+ top: 0;
14
+ left: 0;
15
+ color: #fff;
16
+ display: flex;
17
+ align-items: center;
18
+ justify-content: center;
19
+ text-align: center;
20
+ }
@@ -1,5 +1,6 @@
1
1
  import classNames from '../../../utils/classnames';
2
2
  import destr from '../../../utils/destr';
3
+ import { callWedaApi } from '../../../utils/tcb';
3
4
 
4
5
  Component({
5
6
  options: {
@@ -63,15 +64,6 @@ Component({
63
64
  });
64
65
  return;
65
66
  }
66
- const { app } = getApp();
67
- const callWedaApi = app?.cloud?.callWedaApi;
68
- if (!callWedaApi) {
69
- console.warn(`当前环境缺少方法 app.cloud.callWedaApi`);
70
- this.triggerEvent('phonefail', {
71
- errMsg: '当前环境缺少方法 app.cloud.callWedaApi,获取手机号失败',
72
- });
73
- return;
74
- }
75
67
  const res = await callWedaApi({
76
68
  action: 'InvokeComponentWxModule',
77
69
  data: {
@@ -1,15 +1,4 @@
1
- <button
2
- id="{{id}}"
3
- class="{{cls}}"
4
- style="{{style}}"
5
- size="{{size}}"
6
- loading="{{loading}}"
7
- disabled="{{disabled}}"
8
- form-type="{{formType}}"
9
- open-type="{{openType}}"
10
- bindgetphonenumber="getPhoneNumber"
11
- >
12
- {{text ? text : ''}}
13
- <slot name="contentSlot" wx:if="{{!text}}" />
1
+ <button id="{{id}}" class="{{cls}}" style="{{style}}" size="{{size}}" loading="{{loading}}" disabled="{{disabled}}" form-type="{{formType}}" open-type="{{openType}}" bindgetphonenumber="getPhoneNumber">
2
+ {{text ? text : ''}}
3
+ <slot name="contentSlot" wx:if="{{!text}}" />
14
4
  </button>
15
-
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "component": true,
3
3
  "styleIsolation": "shared"
4
- }
4
+ }
@@ -1,15 +1,4 @@
1
- <button
2
- id="{{id}}"
3
- class="{{cls}}"
4
- style="{{style}}"
5
- size="{{size}}"
6
- loading="{{loading}}"
7
- disabled="{{disabled}}"
8
- form-type="{{formType}}"
9
- open-type="{{openType}}"
10
- bindgetphonenumber="getPhoneCodeNumber"
11
- >
12
- {{text ? text : ''}}
13
- <slot name="contentSlot" wx:if="{{!text}}" />
1
+ <button id="{{id}}" class="{{cls}}" style="{{style}}" size="{{size}}" loading="{{loading}}" disabled="{{disabled}}" form-type="{{formType}}" open-type="{{openType}}" bindgetphonenumber="getPhoneCodeNumber">
2
+ {{text ? text : ''}}
3
+ <slot name="contentSlot" wx:if="{{!text}}" />
14
4
  </button>
15
-
@@ -1,15 +1,4 @@
1
- <button
2
- id="{{id}}"
3
- class="{{cls}}"
4
- style="{{style}}"
5
- size="{{size}}"
6
- loading="{{loading}}"
7
- disabled="{{disabled}}"
8
- form-type="{{formType}}"
9
- open-type="{{openType}}"
10
- data-weda_share_info="{{shareInfo}}"
11
- >
12
- {{text ? text : ''}}
13
- <slot name="contentSlot" wx:if="{{!text}}" />
1
+ <button id="{{id}}" class="{{cls}}" style="{{style}}" size="{{size}}" loading="{{loading}}" disabled="{{disabled}}" form-type="{{formType}}" open-type="{{openType}}" data-weda_share_info="{{shareInfo}}">
2
+ {{text ? text : ''}}
3
+ <slot name="contentSlot" wx:if="{{!text}}" />
14
4
  </button>
15
-
@@ -1,14 +1,4 @@
1
- <button
2
- id="{{id}}"
3
- class="{{cls}}"
4
- style="{{style}}"
5
- size="{{size}}"
6
- loading="{{loading}}"
7
- disabled="{{disabled}}"
8
- form-type="{{formType}}"
9
- bindtap="getUserProfile"
10
- >
11
- {{text ? text : ''}}
12
- <slot name="contentSlot" wx:if="{{!text}}" />
1
+ <button id="{{id}}" class="{{cls}}" style="{{style}}" size="{{size}}" loading="{{loading}}" disabled="{{disabled}}" form-type="{{formType}}" bindtap="getUserProfile">
2
+ {{text ? text : ''}}
3
+ <slot name="contentSlot" wx:if="{{!text}}" />
13
4
  </button>
14
-
package/src/mp/index.json CHANGED
@@ -24,6 +24,7 @@
24
24
  "path": "swiper"
25
25
  },
26
26
  "Carousel": "components/carousel/index",
27
+ "WedaVideo": "components/wedaVideo",
27
28
  "ScrollView": "components/scrollView/index",
28
29
  "Tips": "components/form/tips/index",
29
30
  "RichTextView": "components/richText/index",
@@ -33,24 +33,39 @@ page .weda-ui {
33
33
  display: none;
34
34
  }
35
35
 
36
- .weda-ui .weui-input.focus.not-placeholder-shown + .weui-btn_input-clear {
37
- display: inline;
38
- }
39
-
40
36
  .weda-ui.weda-picker .weui-btn_primary:not(.weui-btn_disabled):active {
41
37
  background-color: var(--weui-TAG-TEXT-BLUE);
42
38
  }
43
39
 
44
40
  .weda-ui .weui-cell {
45
- font-size: 16px; /* 修改默认weui的17为16 */
41
+ font-size: inherit;
46
42
  }
47
-
48
- .weui-cells__group_form .weui-cell::before, .weui-cells__group_form .weui-cells::before {
43
+ .weda-ui .weui-cells {
44
+ font-size: 1em;
45
+ }
46
+ .weui-cells__group_form .weui-cell::before,
47
+ .weui-cells__group_form .weui-cells::before {
49
48
  left: 16px;
50
49
  right: 16px;
51
50
  }
52
51
 
53
52
  .weui-cells__group_form .weui-cells::after {
54
- left: 16px;
55
- right: 16px;
53
+ left: 16px;
54
+ right: 16px;
55
+ }
56
+
57
+ .weui-picker a:link:hover {
58
+ text-decoration: none;
59
+ }
60
+ .weda-ui .weui-input {
61
+ padding: 28rpx 0;
62
+ }
63
+
64
+ .weda-ui .weui-btn_input-clear {
65
+ visibility: hidden; /* visibilty 防止居中而且宽度auto时,出现输入时宽度抖动 */
66
+ display: inline;
67
+ }
68
+ .weda-ui .weui-input.focus.not-placeholder-shown + .weui-btn_input-clear {
69
+ visibility: visible;
70
+ display: inline;
56
71
  }