@mpxjs/webpack-plugin 2.10.16-beta.9 → 2.10.16-xp.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 (256) hide show
  1. package/lib/config.js +0 -60
  2. package/lib/dependencies/AppEntryDependency.js +2 -2
  3. package/lib/dependencies/ResolveDependency.js +1 -1
  4. package/lib/file-loader.js +3 -13
  5. package/lib/helpers.js +0 -2
  6. package/lib/index.js +15 -40
  7. package/lib/json-compiler/helper.js +2 -72
  8. package/lib/json-compiler/index.js +56 -16
  9. package/lib/json-compiler/plugin.js +2 -2
  10. package/lib/loader.js +4 -10
  11. package/lib/native-loader.js +3 -6
  12. package/lib/platform/json/wx/index.js +29 -30
  13. package/lib/platform/style/wx/index.js +1 -8
  14. package/lib/platform/template/wx/component-config/ad.js +0 -5
  15. package/lib/platform/template/wx/component-config/button.js +5 -21
  16. package/lib/platform/template/wx/component-config/camera.js +3 -25
  17. package/lib/platform/template/wx/component-config/canvas.js +1 -8
  18. package/lib/platform/template/wx/component-config/component.js +33 -31
  19. package/lib/platform/template/wx/component-config/cover-image.js +2 -7
  20. package/lib/platform/template/wx/component-config/cover-view.js +1 -3
  21. package/lib/platform/template/wx/component-config/fix-component-name.js +2 -2
  22. package/lib/platform/template/wx/component-config/form.js +2 -27
  23. package/lib/platform/template/wx/component-config/image.js +0 -5
  24. package/lib/platform/template/wx/component-config/input.js +0 -10
  25. package/lib/platform/template/wx/component-config/label.js +2 -10
  26. package/lib/platform/template/wx/component-config/map.js +0 -11
  27. package/lib/platform/template/wx/component-config/movable-area.js +1 -4
  28. package/lib/platform/template/wx/component-config/movable-view.js +2 -17
  29. package/lib/platform/template/wx/component-config/navigator.js +0 -26
  30. package/lib/platform/template/wx/component-config/picker-view.js +0 -12
  31. package/lib/platform/template/wx/component-config/picker.js +1 -3
  32. package/lib/platform/template/wx/component-config/progress.js +1 -11
  33. package/lib/platform/template/wx/component-config/rich-text.js +0 -5
  34. package/lib/platform/template/wx/component-config/scroll-view.js +1 -12
  35. package/lib/platform/template/wx/component-config/slider.js +0 -8
  36. package/lib/platform/template/wx/component-config/swiper-item.js +2 -5
  37. package/lib/platform/template/wx/component-config/swiper.js +0 -10
  38. package/lib/platform/template/wx/component-config/text.js +0 -5
  39. package/lib/platform/template/wx/component-config/textarea.js +2 -19
  40. package/lib/platform/template/wx/component-config/unsupported.js +1 -10
  41. package/lib/platform/template/wx/component-config/video.js +0 -10
  42. package/lib/platform/template/wx/index.js +1 -21
  43. package/lib/react/index.js +0 -2
  44. package/lib/react/processJSON.js +71 -39
  45. package/lib/react/processStyles.js +2 -3
  46. package/lib/react/processTemplate.js +6 -8
  47. package/lib/react/script-helper.js +16 -6
  48. package/lib/react/style-helper.js +2 -10
  49. package/lib/runtime/components/react/context.ts +6 -13
  50. package/lib/runtime/components/react/dist/context.js +0 -1
  51. package/lib/runtime/components/react/dist/mpx-image.jsx +62 -100
  52. package/lib/runtime/components/react/dist/mpx-input.jsx +11 -37
  53. package/lib/runtime/components/react/dist/mpx-keyboard-avoiding-view.jsx +50 -61
  54. package/lib/runtime/components/react/dist/mpx-picker-view/index.jsx +3 -4
  55. package/lib/runtime/components/react/dist/mpx-picker-view-column/index.jsx +18 -12
  56. package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewColumnItem.jsx +11 -8
  57. package/lib/runtime/components/react/dist/mpx-portal/index.jsx +1 -5
  58. package/lib/runtime/components/react/dist/mpx-scroll-view.jsx +14 -6
  59. package/lib/runtime/components/react/dist/mpx-swiper.jsx +9 -5
  60. package/lib/runtime/components/react/dist/mpx-text.jsx +5 -33
  61. package/lib/runtime/components/react/dist/mpx-view.jsx +1 -1
  62. package/lib/runtime/components/react/dist/mpx-web-view.jsx +1 -1
  63. package/lib/runtime/components/react/dist/utils.jsx +6 -16
  64. package/lib/runtime/components/react/mpx-image.tsx +82 -123
  65. package/lib/runtime/components/react/mpx-input.tsx +17 -44
  66. package/lib/runtime/components/react/mpx-keyboard-avoiding-view.tsx +49 -69
  67. package/lib/runtime/components/react/mpx-picker-view/index.tsx +2 -5
  68. package/lib/runtime/components/react/mpx-picker-view-column/index.tsx +21 -26
  69. package/lib/runtime/components/react/mpx-picker-view-column/pickerViewColumnItem.tsx +12 -8
  70. package/lib/runtime/components/react/mpx-portal/index.tsx +2 -8
  71. package/lib/runtime/components/react/mpx-scroll-view.tsx +17 -6
  72. package/lib/runtime/components/react/mpx-swiper.tsx +9 -5
  73. package/lib/runtime/components/react/mpx-text.tsx +5 -38
  74. package/lib/runtime/components/react/mpx-view.tsx +1 -1
  75. package/lib/runtime/components/react/mpx-web-view.tsx +1 -1
  76. package/lib/runtime/components/react/types/common.d.ts +0 -19
  77. package/lib/runtime/components/react/utils.tsx +6 -15
  78. package/lib/runtime/stringify.wxs +2 -2
  79. package/lib/script-setup-compiler/index.js +2 -2
  80. package/lib/style-compiler/index.js +2 -3
  81. package/lib/style-compiler/load-postcss-config.js +1 -1
  82. package/lib/style-compiler/plugins/trans-special.js +2 -10
  83. package/lib/style-compiler/strip-conditional-loader.js +15 -178
  84. package/lib/template-compiler/bind-this.js +2 -2
  85. package/lib/template-compiler/compiler.js +71 -267
  86. package/lib/template-compiler/gen-node-react.js +6 -18
  87. package/lib/template-compiler/index.js +10 -12
  88. package/lib/template-compiler/parse-exps.js +1 -1
  89. package/lib/utils/const.js +1 -2
  90. package/lib/utils/dom-tag-config.js +6 -6
  91. package/lib/utils/env.js +1 -6
  92. package/lib/utils/pre-process-json.js +0 -5
  93. package/lib/web/index.js +0 -2
  94. package/lib/web/processJSON.js +16 -44
  95. package/lib/web/processScript.js +1 -1
  96. package/lib/web/processTemplate.js +4 -6
  97. package/lib/web/script-helper.js +9 -19
  98. package/lib/wxs/pre-loader.js +1 -1
  99. package/lib/wxss/loader.js +9 -1
  100. package/package.json +4 -15
  101. package/lib/dependencies/RecordModuleIdMapDependency.js +0 -49
  102. package/lib/runtime/components/react/dist/context.d.ts +0 -76
  103. package/lib/runtime/components/react/dist/context.d.ts.map +0 -1
  104. package/lib/runtime/components/react/dist/event.config.d.ts +0 -8
  105. package/lib/runtime/components/react/dist/event.config.d.ts.map +0 -1
  106. package/lib/runtime/components/react/dist/getInnerListeners.d.ts +0 -8
  107. package/lib/runtime/components/react/dist/getInnerListeners.d.ts.map +0 -1
  108. package/lib/runtime/components/react/dist/mpx-async-suspense.d.ts +0 -13
  109. package/lib/runtime/components/react/dist/mpx-async-suspense.d.ts.map +0 -1
  110. package/lib/runtime/components/react/dist/mpx-button.d.ts +0 -69
  111. package/lib/runtime/components/react/dist/mpx-button.d.ts.map +0 -1
  112. package/lib/runtime/components/react/dist/mpx-camera.d.ts +0 -27
  113. package/lib/runtime/components/react/dist/mpx-camera.d.ts.map +0 -1
  114. package/lib/runtime/components/react/dist/mpx-camera.jsx +0 -197
  115. package/lib/runtime/components/react/dist/mpx-canvas/Bus.d.ts +0 -24
  116. package/lib/runtime/components/react/dist/mpx-canvas/Bus.d.ts.map +0 -1
  117. package/lib/runtime/components/react/dist/mpx-canvas/CanvasGradient.d.ts +0 -8
  118. package/lib/runtime/components/react/dist/mpx-canvas/CanvasGradient.d.ts.map +0 -1
  119. package/lib/runtime/components/react/dist/mpx-canvas/CanvasRenderingContext2D.d.ts +0 -7
  120. package/lib/runtime/components/react/dist/mpx-canvas/CanvasRenderingContext2D.d.ts.map +0 -1
  121. package/lib/runtime/components/react/dist/mpx-canvas/Image.d.ts +0 -21
  122. package/lib/runtime/components/react/dist/mpx-canvas/Image.d.ts.map +0 -1
  123. package/lib/runtime/components/react/dist/mpx-canvas/ImageData.d.ts +0 -9
  124. package/lib/runtime/components/react/dist/mpx-canvas/ImageData.d.ts.map +0 -1
  125. package/lib/runtime/components/react/dist/mpx-canvas/constructorsRegistry.d.ts +0 -11
  126. package/lib/runtime/components/react/dist/mpx-canvas/constructorsRegistry.d.ts.map +0 -1
  127. package/lib/runtime/components/react/dist/mpx-canvas/html.d.ts +0 -3
  128. package/lib/runtime/components/react/dist/mpx-canvas/html.d.ts.map +0 -1
  129. package/lib/runtime/components/react/dist/mpx-canvas/index.d.ts +0 -33
  130. package/lib/runtime/components/react/dist/mpx-canvas/index.d.ts.map +0 -1
  131. package/lib/runtime/components/react/dist/mpx-canvas/utils.d.ts +0 -53
  132. package/lib/runtime/components/react/dist/mpx-canvas/utils.d.ts.map +0 -1
  133. package/lib/runtime/components/react/dist/mpx-checkbox-group.d.ts +0 -21
  134. package/lib/runtime/components/react/dist/mpx-checkbox-group.d.ts.map +0 -1
  135. package/lib/runtime/components/react/dist/mpx-checkbox.d.ts +0 -33
  136. package/lib/runtime/components/react/dist/mpx-checkbox.d.ts.map +0 -1
  137. package/lib/runtime/components/react/dist/mpx-form.d.ts +0 -28
  138. package/lib/runtime/components/react/dist/mpx-form.d.ts.map +0 -1
  139. package/lib/runtime/components/react/dist/mpx-icon/index.d.ts +0 -19
  140. package/lib/runtime/components/react/dist/mpx-icon/index.d.ts.map +0 -1
  141. package/lib/runtime/components/react/dist/mpx-image.d.ts +0 -22
  142. package/lib/runtime/components/react/dist/mpx-image.d.ts.map +0 -1
  143. package/lib/runtime/components/react/dist/mpx-inline-text.d.ts +0 -8
  144. package/lib/runtime/components/react/dist/mpx-inline-text.d.ts.map +0 -1
  145. package/lib/runtime/components/react/dist/mpx-input.d.ts +0 -51
  146. package/lib/runtime/components/react/dist/mpx-input.d.ts.map +0 -1
  147. package/lib/runtime/components/react/dist/mpx-keyboard-avoiding-view.d.ts +0 -13
  148. package/lib/runtime/components/react/dist/mpx-keyboard-avoiding-view.d.ts.map +0 -1
  149. package/lib/runtime/components/react/dist/mpx-label.d.ts +0 -21
  150. package/lib/runtime/components/react/dist/mpx-label.d.ts.map +0 -1
  151. package/lib/runtime/components/react/dist/mpx-movable-area.d.ts +0 -21
  152. package/lib/runtime/components/react/dist/mpx-movable-area.d.ts.map +0 -1
  153. package/lib/runtime/components/react/dist/mpx-movable-view.d.ts +0 -66
  154. package/lib/runtime/components/react/dist/mpx-movable-view.d.ts.map +0 -1
  155. package/lib/runtime/components/react/dist/mpx-nav.d.ts +0 -9
  156. package/lib/runtime/components/react/dist/mpx-nav.d.ts.map +0 -1
  157. package/lib/runtime/components/react/dist/mpx-nav.jsx +0 -132
  158. package/lib/runtime/components/react/dist/mpx-navigator.d.ts +0 -10
  159. package/lib/runtime/components/react/dist/mpx-navigator.d.ts.map +0 -1
  160. package/lib/runtime/components/react/dist/mpx-picker/date.d.ts +0 -7
  161. package/lib/runtime/components/react/dist/mpx-picker/date.d.ts.map +0 -1
  162. package/lib/runtime/components/react/dist/mpx-picker/dateData.d.ts +0 -8
  163. package/lib/runtime/components/react/dist/mpx-picker/dateData.d.ts.map +0 -1
  164. package/lib/runtime/components/react/dist/mpx-picker/index.d.ts +0 -7
  165. package/lib/runtime/components/react/dist/mpx-picker/index.d.ts.map +0 -1
  166. package/lib/runtime/components/react/dist/mpx-picker/multiSelector.d.ts +0 -7
  167. package/lib/runtime/components/react/dist/mpx-picker/multiSelector.d.ts.map +0 -1
  168. package/lib/runtime/components/react/dist/mpx-picker/region.d.ts +0 -7
  169. package/lib/runtime/components/react/dist/mpx-picker/region.d.ts.map +0 -1
  170. package/lib/runtime/components/react/dist/mpx-picker/regionData.d.ts +0 -3
  171. package/lib/runtime/components/react/dist/mpx-picker/regionData.d.ts.map +0 -1
  172. package/lib/runtime/components/react/dist/mpx-picker/selector.d.ts +0 -7
  173. package/lib/runtime/components/react/dist/mpx-picker/selector.d.ts.map +0 -1
  174. package/lib/runtime/components/react/dist/mpx-picker/time.d.ts +0 -7
  175. package/lib/runtime/components/react/dist/mpx-picker/time.d.ts.map +0 -1
  176. package/lib/runtime/components/react/dist/mpx-picker/type.d.ts +0 -107
  177. package/lib/runtime/components/react/dist/mpx-picker/type.d.ts.map +0 -1
  178. package/lib/runtime/components/react/dist/mpx-picker-view/index.d.ts +0 -33
  179. package/lib/runtime/components/react/dist/mpx-picker-view/index.d.ts.map +0 -1
  180. package/lib/runtime/components/react/dist/mpx-picker-view/pickerVIewContext.d.ts +0 -9
  181. package/lib/runtime/components/react/dist/mpx-picker-view/pickerVIewContext.d.ts.map +0 -1
  182. package/lib/runtime/components/react/dist/mpx-picker-view-column/index.d.ts +0 -24
  183. package/lib/runtime/components/react/dist/mpx-picker-view-column/index.d.ts.map +0 -1
  184. package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewColumnItem.d.ts +0 -15
  185. package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewColumnItem.d.ts.map +0 -1
  186. package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewColumnItemLite.d.ts +0 -14
  187. package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewColumnItemLite.d.ts.map +0 -1
  188. package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewColumnItemLite.jsx +0 -20
  189. package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewFaces.d.ts +0 -17
  190. package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewFaces.d.ts.map +0 -1
  191. package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewIndicator.d.ts +0 -13
  192. package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewIndicator.d.ts.map +0 -1
  193. package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewMask.d.ts +0 -12
  194. package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewMask.d.ts.map +0 -1
  195. package/lib/runtime/components/react/dist/mpx-popup/index.d.ts +0 -23
  196. package/lib/runtime/components/react/dist/mpx-popup/index.d.ts.map +0 -1
  197. package/lib/runtime/components/react/dist/mpx-popup/popupBase.d.ts +0 -17
  198. package/lib/runtime/components/react/dist/mpx-popup/popupBase.d.ts.map +0 -1
  199. package/lib/runtime/components/react/dist/mpx-portal/index.d.ts +0 -16
  200. package/lib/runtime/components/react/dist/mpx-portal/index.d.ts.map +0 -1
  201. package/lib/runtime/components/react/dist/mpx-portal/portal-host.d.ts +0 -30
  202. package/lib/runtime/components/react/dist/mpx-portal/portal-host.d.ts.map +0 -1
  203. package/lib/runtime/components/react/dist/mpx-portal/portal-manager.d.ts +0 -10
  204. package/lib/runtime/components/react/dist/mpx-portal/portal-manager.d.ts.map +0 -1
  205. package/lib/runtime/components/react/dist/mpx-progress.d.ts +0 -24
  206. package/lib/runtime/components/react/dist/mpx-progress.d.ts.map +0 -1
  207. package/lib/runtime/components/react/dist/mpx-radio-group.d.ts +0 -21
  208. package/lib/runtime/components/react/dist/mpx-radio-group.d.ts.map +0 -1
  209. package/lib/runtime/components/react/dist/mpx-radio.d.ts +0 -27
  210. package/lib/runtime/components/react/dist/mpx-radio.d.ts.map +0 -1
  211. package/lib/runtime/components/react/dist/mpx-rich-text/html.d.ts +0 -2
  212. package/lib/runtime/components/react/dist/mpx-rich-text/html.d.ts.map +0 -1
  213. package/lib/runtime/components/react/dist/mpx-rich-text/index.d.ts +0 -25
  214. package/lib/runtime/components/react/dist/mpx-rich-text/index.d.ts.map +0 -1
  215. package/lib/runtime/components/react/dist/mpx-root-portal.d.ts +0 -15
  216. package/lib/runtime/components/react/dist/mpx-root-portal.d.ts.map +0 -1
  217. package/lib/runtime/components/react/dist/mpx-scroll-view.d.ts +0 -55
  218. package/lib/runtime/components/react/dist/mpx-scroll-view.d.ts.map +0 -1
  219. package/lib/runtime/components/react/dist/mpx-simple-text.d.ts +0 -8
  220. package/lib/runtime/components/react/dist/mpx-simple-text.d.ts.map +0 -1
  221. package/lib/runtime/components/react/dist/mpx-simple-view.d.ts +0 -8
  222. package/lib/runtime/components/react/dist/mpx-simple-view.d.ts.map +0 -1
  223. package/lib/runtime/components/react/dist/mpx-slider.d.ts +0 -31
  224. package/lib/runtime/components/react/dist/mpx-slider.d.ts.map +0 -1
  225. package/lib/runtime/components/react/dist/mpx-sticky-header.d.ts +0 -18
  226. package/lib/runtime/components/react/dist/mpx-sticky-header.d.ts.map +0 -1
  227. package/lib/runtime/components/react/dist/mpx-sticky-section.d.ts +0 -16
  228. package/lib/runtime/components/react/dist/mpx-sticky-section.d.ts.map +0 -1
  229. package/lib/runtime/components/react/dist/mpx-swiper-item.d.ts +0 -19
  230. package/lib/runtime/components/react/dist/mpx-swiper-item.d.ts.map +0 -1
  231. package/lib/runtime/components/react/dist/mpx-swiper.d.ts +0 -53
  232. package/lib/runtime/components/react/dist/mpx-swiper.d.ts.map +0 -1
  233. package/lib/runtime/components/react/dist/mpx-switch.d.ts +0 -27
  234. package/lib/runtime/components/react/dist/mpx-switch.d.ts.map +0 -1
  235. package/lib/runtime/components/react/dist/mpx-text.d.ts +0 -23
  236. package/lib/runtime/components/react/dist/mpx-text.d.ts.map +0 -1
  237. package/lib/runtime/components/react/dist/mpx-textarea.d.ts +0 -8
  238. package/lib/runtime/components/react/dist/mpx-textarea.d.ts.map +0 -1
  239. package/lib/runtime/components/react/dist/mpx-video.d.ts +0 -102
  240. package/lib/runtime/components/react/dist/mpx-video.d.ts.map +0 -1
  241. package/lib/runtime/components/react/dist/mpx-view.d.ts +0 -35
  242. package/lib/runtime/components/react/dist/mpx-view.d.ts.map +0 -1
  243. package/lib/runtime/components/react/dist/mpx-web-view.d.ts +0 -23
  244. package/lib/runtime/components/react/dist/mpx-web-view.d.ts.map +0 -1
  245. package/lib/runtime/components/react/dist/parser.d.ts +0 -40
  246. package/lib/runtime/components/react/dist/parser.d.ts.map +0 -1
  247. package/lib/runtime/components/react/dist/useAnimationHooks.d.ts +0 -33
  248. package/lib/runtime/components/react/dist/useAnimationHooks.d.ts.map +0 -1
  249. package/lib/runtime/components/react/dist/useNodesRef.d.ts +0 -12
  250. package/lib/runtime/components/react/dist/useNodesRef.d.ts.map +0 -1
  251. package/lib/runtime/components/react/dist/utils.d.ts +0 -123
  252. package/lib/runtime/components/react/dist/utils.d.ts.map +0 -1
  253. package/lib/runtime/components/react/mpx-camera.tsx +0 -275
  254. package/lib/runtime/components/react/mpx-nav.tsx +0 -155
  255. package/lib/runtime/components/react/mpx-picker-view-column/pickerViewColumnItemLite.tsx +0 -55
  256. package/lib/utils/get-build-tag-component.js +0 -35
@@ -1,9 +1,12 @@
1
1
  const runRules = require('../../run-rules')
2
2
  const normalizeTest = require('../normalize-test')
3
3
  const changeKey = require('../change-key')
4
+ const normalize = require('../../../utils/normalize')
4
5
  const { capitalToHyphen } = require('../../../utils/string')
5
6
  const { isOriginTag, isBuildInWebTag, isBuildInReactTag } = require('../../../utils/dom-tag-config')
6
- const getBuildInTagComponent = require('../../../utils/get-build-tag-component')
7
+
8
+ const mpxViewPath = normalize.lib('runtime/components/ali/mpx-view.mpx')
9
+ const mpxTextPath = normalize.lib('runtime/components/ali/mpx-text.mpx')
7
10
 
8
11
  module.exports = function getSpec ({ warn, error }) {
9
12
  function print (mode, path, isError) {
@@ -43,26 +46,28 @@ module.exports = function getSpec ({ warn, error }) {
43
46
  }
44
47
 
45
48
  // 处理支付宝 componentPlaceholder 不支持 view、text 原生标签
46
- // placeholder 中使用的内建组件转化为 mpx-xxx, 并在 usingComponents 填充
47
- function fixComponentPlaceholder (input, { mode }) {
48
- if (!input.componentPlaceholder) return input
49
- if (mode === 'ali') {
50
- // 处理 驼峰转连字符
51
- input = componentNameCapitalToHyphen('componentPlaceholder')(input)
52
- }
49
+ function aliComponentPlaceholderFallback (input) {
50
+ // 处理 驼峰转连字符
51
+ input = componentNameCapitalToHyphen('componentPlaceholder')(input)
53
52
  const componentPlaceholder = input.componentPlaceholder
54
- const usingComponents = input.usingComponents || {}
53
+ const usingComponents = input.usingComponents || (input.usingComponents = {})
55
54
  for (const cph in componentPlaceholder) {
56
55
  const cur = componentPlaceholder[cph]
57
- const comp = getBuildInTagComponent(mode, cur)
58
- if (!comp || usingComponents[cur]) continue
59
- const { name, resource } = comp
60
- usingComponents[name] = resource
61
- componentPlaceholder[cph] = name
56
+ const placeholderCompMatched = cur.match(/^(?:view|text)$/g)
57
+ if (!Array.isArray(placeholderCompMatched)) continue
58
+ let compName, compPath
59
+ switch (placeholderCompMatched[0]) {
60
+ case 'view':
61
+ compName = 'mpx-view'
62
+ compPath = mpxViewPath
63
+ break
64
+ case 'text':
65
+ compName = 'mpx-text'
66
+ compPath = mpxTextPath
67
+ }
68
+ usingComponents[compName] = compPath
69
+ componentPlaceholder[cph] = compName
62
70
  }
63
-
64
- input.usingComponents = usingComponents
65
- input.componentPlaceholder = componentPlaceholder
66
71
  return input
67
72
  }
68
73
 
@@ -167,6 +172,7 @@ module.exports = function getSpec ({ warn, error }) {
167
172
  },
168
173
  {
169
174
  test: 'componentPlaceholder',
175
+ ali: aliComponentPlaceholderFallback,
170
176
  swan: deletePath(),
171
177
  jd: deletePath()
172
178
  },
@@ -179,19 +185,11 @@ module.exports = function getSpec ({ warn, error }) {
179
185
  swan: addGlobalComponents,
180
186
  qq: addGlobalComponents,
181
187
  tt: addGlobalComponents,
182
- ks: addGlobalComponents,
183
188
  jd: addGlobalComponents,
184
189
  web: fixComponentName,
185
190
  ios: fixComponentName,
186
191
  android: fixComponentName,
187
192
  harmony: fixComponentName
188
- },
189
- {
190
- ali: fixComponentPlaceholder,
191
- web: fixComponentPlaceholder,
192
- ios: fixComponentPlaceholder,
193
- android: fixComponentPlaceholder,
194
- harmony: fixComponentPlaceholder
195
193
  }
196
194
  ]
197
195
 
@@ -285,7 +283,6 @@ module.exports = function getSpec ({ warn, error }) {
285
283
  'swan',
286
284
  'qq',
287
285
  'tt',
288
- 'ks',
289
286
  'jd',
290
287
  'qa',
291
288
  'dd',
@@ -403,7 +400,6 @@ module.exports = function getSpec ({ warn, error }) {
403
400
  qq: fillGlobalComponents,
404
401
  swan: fillGlobalComponents,
405
402
  tt: fillGlobalComponents,
406
- ks: fillGlobalComponents,
407
403
  jd: fillGlobalComponents
408
404
  },
409
405
  {
@@ -411,7 +407,6 @@ module.exports = function getSpec ({ warn, error }) {
411
407
  qq: deletePath({ noLog: true }),
412
408
  swan: deletePath({ noLog: true }),
413
409
  tt: deletePath({ noLog: true }),
414
- ks: deletePath({ noLog: true }),
415
410
  jd: deletePath({ noLog: true })
416
411
  },
417
412
  {
@@ -450,7 +445,6 @@ module.exports = function getSpec ({ warn, error }) {
450
445
  qq: getTabBarRule(),
451
446
  swan: getTabBarRule(),
452
447
  tt: getTabBarRule(),
453
- ks: getTabBarRule(),
454
448
  jd: getTabBarRule()
455
449
  },
456
450
  {
@@ -459,8 +453,13 @@ module.exports = function getSpec ({ warn, error }) {
459
453
  qq: getWindowRule(),
460
454
  swan: getWindowRule(),
461
455
  tt: getWindowRule(),
462
- ks: getWindowRule(),
463
456
  jd: getWindowRule()
457
+ },
458
+ {
459
+ web: fixComponentName,
460
+ ios: fixComponentName,
461
+ android: fixComponentName,
462
+ harmony: fixComponentName
464
463
  }
465
464
  ]
466
465
  }
@@ -315,7 +315,7 @@ module.exports = function getSpec ({ warn, error }) {
315
315
  switch (prop) {
316
316
  case bgPropMap.image: {
317
317
  // background-image 支持背景图/渐变/css var
318
- if (cssVariableExp.test(value) || urlExp.test(value) || linearExp.test(value) || value === 'none') {
318
+ if (cssVariableExp.test(value) || urlExp.test(value) || linearExp.test(value)) {
319
319
  return { prop, value }
320
320
  } else {
321
321
  error(`Value of ${prop} in ${selector} selector only support value <url()> or <linear-gradient()>, received ${value}, please check again!`)
@@ -359,13 +359,6 @@ module.exports = function getSpec ({ warn, error }) {
359
359
  error(`Property [${bgPropMap.all}] in ${selector} is abbreviated property and does not support CSS var`)
360
360
  return false
361
361
  }
362
- // background: none
363
- if (value === 'none') {
364
- return [
365
- { prop: bgPropMap.image, value },
366
- { prop: bgPropMap.color, value: 'transparent' }
367
- ]
368
- }
369
362
  const bgMap = []
370
363
  const values = parseValues(value)
371
364
  values.forEach(item => {
@@ -8,7 +8,6 @@ module.exports = function ({ print }) {
8
8
  const qqValueWarningLog = print({ platform: 'qq', type: 'value', tag: TAG_NAME, isError: false })
9
9
  const qqPropLog = print({ platform: 'qq', tag: TAG_NAME, isError: false })
10
10
  const qqEventLog = print({ platform: 'qq', tag: TAG_NAME, isError: false, type: 'event' })
11
- const ksPropLog = print({ platform: 'ks', tag: TAG_NAME, isError: false })
12
11
  return {
13
12
  test: TAG_NAME,
14
13
  props: [
@@ -44,10 +43,6 @@ module.exports = function ({ print }) {
44
43
  test: /^(ad-intervals|ad-theme)$/,
45
44
  qq: qqPropLog,
46
45
  swan: baiduPropLog
47
- },
48
- {
49
- test: /^(ad-intervals|ad-type|ad-params)$/,
50
- ks: ksPropLog
51
46
  }
52
47
  ],
53
48
  event: [
@@ -29,20 +29,15 @@ module.exports = function ({ print }) {
29
29
  const webPropLog = print({ platform: 'web', tag: TAG_NAME, isError: false })
30
30
  const webEventLog = print({ platform: 'web', tag: TAG_NAME, isError: false, type: 'event' })
31
31
  const qaPropLog = print({ platform: 'qa', tag: TAG_NAME, isError: false })
32
- const ksPropLog = print({ platform: 'ks', tag: TAG_NAME, isError: false })
33
- const ksEventLog = print({ platform: 'ks', tag: TAG_NAME, isError: false, type: 'event' })
34
32
  const wxPropValueLog = print({ platform: 'wx', tag: TAG_NAME, isError: false, type: 'value' })
35
33
  const iosValueLogError = print({ platform: 'ios', tag: TAG_NAME, isError: true, type: 'value' })
36
- const iosValueLog = print({ platform: 'ios', tag: TAG_NAME, isError: false, type: 'value' })
37
34
  const iosPropLog = print({ platform: 'ios', tag: TAG_NAME, isError: false })
38
35
  const iosEventLog = print({ platform: 'ios', tag: TAG_NAME, isError: false, type: 'event' })
39
36
  const androidValueLogError = print({ platform: 'android', tag: TAG_NAME, isError: true, type: 'value' })
40
- const androidValueLog = print({ platform: 'android', tag: TAG_NAME, isError: false, type: 'value' })
41
37
  const androidPropLog = print({ platform: 'android', tag: TAG_NAME, isError: false })
42
38
  const androidEventLog = print({ platform: 'android', tag: TAG_NAME, isError: false, type: 'event' })
43
39
 
44
40
  const harmonyValueLogError = print({ platform: 'harmony', tag: TAG_NAME, isError: true, type: 'value' })
45
- const harmonyValueLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false, type: 'value' })
46
41
  const harmonyPropLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false })
47
42
  const harmonyEventLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false, type: 'event' })
48
43
 
@@ -138,25 +133,19 @@ module.exports = function ({ print }) {
138
133
  ios ({ name, value }) {
139
134
  // TODO 此处open-type无其他属性支持了?
140
135
  const supported = ['share']
141
- if (isMustache(value)) {
142
- iosValueLog({ name, value })
143
- } else if (!supported.includes(value)) {
136
+ if (!supported.includes(value)) {
144
137
  iosValueLogError({ name, value })
145
138
  }
146
139
  },
147
140
  android ({ name, value }) {
148
141
  const supported = ['share']
149
- if (isMustache(value)) {
150
- androidValueLog({ name, value })
151
- } else if (!supported.includes(value)) {
142
+ if (!supported.includes(value)) {
152
143
  androidValueLogError({ name, value })
153
144
  }
154
145
  },
155
146
  harmony ({ name, value }) {
156
147
  const supported = ['share']
157
- if (isMustache(value)) {
158
- harmonyValueLog({ name, value })
159
- } else if (!supported.includes(value)) {
148
+ if (!supported.includes(value)) {
160
149
  harmonyValueLogError({ name, value })
161
150
  }
162
151
  }
@@ -201,10 +190,6 @@ module.exports = function ({ print }) {
201
190
  ios: iosPropLog,
202
191
  android: androidPropLog,
203
192
  harmony: harmonyPropLog
204
- },
205
- {
206
- test: /^(hover-stop-propagation|session-from|send-message-title|send-message-path|send-message-img|app-parameter|show-message-card|app-parameter|phone-number-no-quota-toast|need-show-entrance|entrance-path)$/,
207
- ks: ksPropLog
208
193
  }
209
194
  ],
210
195
  event: [
@@ -239,11 +224,10 @@ module.exports = function ({ print }) {
239
224
  web: webEventLog
240
225
  },
241
226
  {
242
- test: /^(getuserinfo|contact|getphonenumber|getrealtimephonenumber|error|opensetting|launchapp|chooseavatar|agreeprivacyauthorization)$/,
227
+ test: /^(getuserinfo|contact|getphonenumber|bindgetrealtimephonenumber|error|opensetting|launchapp|chooseavatar|agreeprivacyauthorization)$/,
243
228
  ios: iosEventLog,
244
229
  android: androidEventLog,
245
- harmony: harmonyEventLog,
246
- ks: ksEventLog
230
+ harmony: harmonyEventLog
247
231
  }
248
232
  ]
249
233
  }
@@ -13,23 +13,8 @@ module.exports = function ({ print }) {
13
13
  const qqEventLog = print({ platform: 'qq', tag: TAG_NAME, isError: false, type: 'event' })
14
14
  const qaPropLog = print({ platform: 'qa', tag: TAG_NAME, isError: false })
15
15
  const qaEventLog = print({ platform: 'qa', tag: TAG_NAME, isError: false, type: 'event' })
16
- const ksPropLog = print({ platform: 'ks', tag: TAG_NAME, isError: false })
17
- const ksEventLog = print({ platform: 'ks', tag: TAG_NAME, isError: false, type: 'event' })
18
-
19
16
  return {
20
17
  test: TAG_NAME,
21
- ios (tag, { el }) {
22
- el.isBuiltIn = true
23
- return 'mpx-camera'
24
- },
25
- android (tag, { el }) {
26
- el.isBuiltIn = true
27
- return 'mpx-camera'
28
- },
29
- harmony (tag, { el }) {
30
- el.isBuiltIn = true
31
- return 'mpx-camera'
32
- },
33
18
  props: [
34
19
  {
35
20
  test: 'mode',
@@ -61,8 +46,7 @@ module.exports = function ({ print }) {
61
46
  },
62
47
  {
63
48
  test: /^(resolution|frame-size)$/,
64
- qq: qqPropLog,
65
- ks: ksPropLog
49
+ qq: qqPropLog
66
50
  },
67
51
  {
68
52
  test: /^(frame-size|device-position)$/,
@@ -89,17 +73,11 @@ module.exports = function ({ print }) {
89
73
  test: /^(scancode)$/,
90
74
  swan: baiduEventLog,
91
75
  tt: ttEventLog,
92
- qa: qaEventLog,
93
- ks: ksEventLog
76
+ qa: qaEventLog
94
77
  },
95
78
  {
96
79
  test: /^(initdone)$/,
97
- qq: qqEventLog,
98
- ks: ksEventLog
99
- },
100
- {
101
- test: /^(stop|error)$/,
102
- ks: ksEventLog
80
+ qq: qqEventLog
103
81
  }
104
82
  ]
105
83
  }
@@ -6,8 +6,6 @@ module.exports = function ({ print }) {
6
6
  const ttEventLog = print({ platform: 'bytedance', tag: TAG_NAME, isError: false, type: 'event' })
7
7
  const jdPropLog = print({ platform: 'jd', tag: TAG_NAME, isError: false })
8
8
  const qaEventLog = print({ platform: 'qa', tag: TAG_NAME, isError: false, type: 'event' })
9
- const ksPropLog = print({ platform: 'ks', tag: TAG_NAME, isError: false })
10
- const ksEventLog = print({ platform: 'ks', tag: TAG_NAME, isError: false, type: 'event' })
11
9
  return {
12
10
  test: TAG_NAME,
13
11
  android (tag, { el }) {
@@ -39,10 +37,6 @@ module.exports = function ({ print }) {
39
37
  {
40
38
  test: 'type',
41
39
  jd: jdPropLog
42
- },
43
- {
44
- test: /^(type|disable-scroll)$/,
45
- ks: ksPropLog
46
40
  }
47
41
  ],
48
42
  // 组件事件中的差异部分
@@ -69,8 +63,7 @@ module.exports = function ({ print }) {
69
63
  {
70
64
  test: /^(longtap|error)$/,
71
65
  tt: ttEventLog,
72
- qa: qaEventLog,
73
- ks: ksEventLog
66
+ qa: qaEventLog
74
67
  }
75
68
  ]
76
69
  }
@@ -1,41 +1,43 @@
1
+ const { parseMustache } = require('../../../../template-compiler/compiler')
2
+ const normalize = require('../../../../utils/normalize')
1
3
  const TAG_NAME = 'component'
2
4
 
3
- /** is 属性格式化为中划线(-)连接 (弃用,新方案:https://github.com/didi/mpx/pull/2228) */
4
- // const formatPropIs = (obj, data) => {
5
- // const parsed = parseMustache(obj.value)
6
- // let value = parsed.result
7
- // if (parsed.hasBinding) value = value.slice(1, -1)
8
- // const el = data.el
9
- // if (el) {
10
- // const injectWxsProp = {
11
- // injectWxsPath: '~' + normalize.lib('runtime/utils.wxs'),
12
- // injectWxsModuleName: '__wxsUtils__'
13
- // }
14
- // if (el.injectWxsProps && Array.isArray(el.injectWxsProps)) {
15
- // el.injectWxsProps.push(injectWxsProp)
16
- // } else {
17
- // el.injectWxsProps = [injectWxsProp]
18
- // }
19
- // }
20
- // return {
21
- // name: 'is',
22
- // value: `{{__wxsUtils__.humpToLine(${value})}}`
23
- // }
24
- // }
5
+ /** is 属性格式化为中划线(-)连接 */
6
+ const formatPropIs = (obj, data) => {
7
+ const parsed = parseMustache(obj.value)
8
+ let value = parsed.result
9
+ if (parsed.hasBinding) value = value.slice(1, -1)
10
+ const el = data.el
11
+ if (el) {
12
+ const injectWxsProp = {
13
+ injectWxsPath: '~' + normalize.lib('runtime/utils.wxs'),
14
+ injectWxsModuleName: '__wxsUtils__'
15
+ }
16
+ if (el.injectWxsProps && Array.isArray(el.injectWxsProps)) {
17
+ el.injectWxsProps.push(injectWxsProp)
18
+ } else {
19
+ el.injectWxsProps = [injectWxsProp]
20
+ }
21
+ }
22
+ return {
23
+ name: 'is',
24
+ value: `{{__wxsUtils__.humpToLine(${value})}}`
25
+ }
26
+ }
25
27
 
26
28
  module.exports = function () {
27
29
  return {
28
30
  test: TAG_NAME,
29
31
  props: [
30
- // {
31
- // test: 'is',
32
- // ali (obj, data) {
33
- // return formatPropIs(obj, data)
34
- // },
35
- // swan (obj, data) {
36
- // return formatPropIs(obj, data)
37
- // }
38
- // }
32
+ {
33
+ test: 'is',
34
+ ali (obj, data) {
35
+ return formatPropIs(obj, data)
36
+ },
37
+ swan (obj, data) {
38
+ return formatPropIs(obj, data)
39
+ }
40
+ }
39
41
  ]
40
42
  }
41
43
  }
@@ -2,12 +2,9 @@ const TAG_NAME = 'cover-image'
2
2
 
3
3
  module.exports = function ({ print }) {
4
4
  const aliEventLog = print({ platform: 'ali', tag: TAG_NAME, isError: false, type: 'event' })
5
- const ksEventLog = print({ platform: 'ks', tag: TAG_NAME, isError: false, type: 'event' })
6
5
  const iosPropLog = print({ platform: 'ios', tag: TAG_NAME, isError: false })
7
6
  const androidPropLog = print({ platform: 'android', tag: TAG_NAME, isError: false })
8
7
  const harmonyPropLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false })
9
- const ksPropLog = print({ platform: 'ks', tag: TAG_NAME, isError: false })
10
-
11
8
  return {
12
9
  test: TAG_NAME,
13
10
  web (tag, { el }) {
@@ -40,15 +37,13 @@ module.exports = function ({ print }) {
40
37
  test: /^(referrer-policy)$/,
41
38
  ios: iosPropLog,
42
39
  android: androidPropLog,
43
- harmony: harmonyPropLog,
44
- ks: ksPropLog
40
+ harmony: harmonyPropLog
45
41
  }
46
42
  ],
47
43
  event: [
48
44
  {
49
45
  test: /^(load|error)$/,
50
- ali: aliEventLog,
51
- ks: ksEventLog
46
+ ali: aliEventLog
52
47
  }
53
48
  ]
54
49
  }
@@ -4,7 +4,6 @@ module.exports = function ({ print }) {
4
4
  const aliPropLog = print({ platform: 'ali', tag: TAG_NAME, isError: false })
5
5
  const baiduValueLogError = print({ platform: 'baidu', tag: TAG_NAME, isError: true, type: 'value' })
6
6
  const webPropLog = print({ platform: 'web', tag: TAG_NAME, isError: false })
7
- const ksPropLog = print({ platform: 'ks', tag: TAG_NAME, isError: false })
8
7
 
9
8
  return {
10
9
  test: TAG_NAME,
@@ -42,8 +41,7 @@ module.exports = function ({ print }) {
42
41
  baiduValueLogError({ name, value })
43
42
  }
44
43
  },
45
- web: webPropLog,
46
- ks: ksPropLog
44
+ web: webPropLog
47
45
  },
48
46
  {
49
47
  test: 'use-built-in',
@@ -1,4 +1,4 @@
1
- const { isOriginTag, isBuildInWebTag, isBuildInReactTag } = require('../../../../utils/dom-tag-config')
1
+ const { isOriginTag, isBuildInWebTag } = require('../../../../utils/dom-tag-config')
2
2
 
3
3
  module.exports = function () {
4
4
  const handleComponentTag = (el, data) => {
@@ -16,7 +16,7 @@ module.exports = function () {
16
16
  waterfall: true,
17
17
  skipNormalize: true,
18
18
  supportedModes: ['web', 'ios', 'android', 'harmony'],
19
- test: (input) => isOriginTag(input) || isBuildInWebTag(input) || isBuildInReactTag(input),
19
+ test: (input) => isOriginTag(input) || isBuildInWebTag(input),
20
20
  web: handleComponentTag,
21
21
  ios: handleComponentTag,
22
22
  android: handleComponentTag,
@@ -10,16 +10,6 @@ module.exports = function ({ print }) {
10
10
  const iosPropLog = print({ platform: 'ios', tag: TAG_NAME, isError: false })
11
11
  const androidPropLog = print({ platform: 'android', tag: TAG_NAME, isError: false })
12
12
  const harmonyPropLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false })
13
- const ksPropLog = print({ platform: 'ks', tag: TAG_NAME, isError: false })
14
- const ksEventLog = print({ platform: 'ks', tag: TAG_NAME, isError: false, type: 'event' })
15
- const iosEventLog = print({ platform: 'ios', tag: TAG_NAME, isError: false, type: 'event' })
16
- const androidEventLog = print({ platform: 'android', tag: TAG_NAME, isError: false, type: 'event' })
17
- const harmonyEventLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false, type: 'event' })
18
- const webEventLog = print({ platform: 'web', tag: TAG_NAME, isError: false, type: 'event' })
19
- const aliEventLog = print({ platform: 'ali', tag: TAG_NAME, isError: false, type: 'event' })
20
- const qaEventLog = print({ platform: 'qa', tag: TAG_NAME, isError: false, type: 'event' })
21
- const qqEventLog = print({ platform: 'qq', tag: TAG_NAME, isError: false, type: 'event' })
22
- const jdEventLog = print({ platform: 'jd', tag: TAG_NAME, isError: false, type: 'event' })
23
13
 
24
14
  return {
25
15
  test: TAG_NAME,
@@ -49,27 +39,12 @@ module.exports = function ({ print }) {
49
39
  qq: qqPropLog
50
40
  },
51
41
  {
52
- test: /^(report-submit|report-submit-timeout|submitToGroup)$/,
42
+ test: /^(report-submit|report-submit-timeout)$/,
53
43
  web: webPropLog,
54
44
  qa: qaPropLog,
55
45
  ios: iosPropLog,
56
46
  android: androidPropLog,
57
- harmony: harmonyPropLog,
58
- ks: ksPropLog
59
- }
60
- ],
61
- event: [
62
- {
63
- test: /^(submitToGroup)$/,
64
- ks: ksEventLog,
65
- ios: iosEventLog,
66
- android: androidEventLog,
67
- harmony: harmonyEventLog,
68
- web: webEventLog,
69
- ali: aliEventLog,
70
- qa: qaEventLog,
71
- qq: qqEventLog,
72
- jd: jdEventLog
47
+ harmony: harmonyPropLog
73
48
  }
74
49
  ]
75
50
  }
@@ -9,7 +9,6 @@ module.exports = function ({ print }) {
9
9
  const iosPropLog = print({ platform: 'ios', tag: TAG_NAME, isError: false })
10
10
  const androidPropLog = print({ platform: 'android', tag: TAG_NAME, isError: false })
11
11
  const harmonyPropLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false })
12
- const ksPropLog = print({ platform: 'ks', tag: TAG_NAME, isError: false })
13
12
 
14
13
  return {
15
14
  test: TAG_NAME,
@@ -56,10 +55,6 @@ module.exports = function ({ print }) {
56
55
  ios: iosPropLog,
57
56
  android: androidPropLog,
58
57
  harmony: harmonyPropLog
59
- },
60
- {
61
- test: /^(webp|forceHttps|show-menu-by-longpress|fade-in)$/,
62
- ks: ksPropLog
63
58
  }
64
59
  ]
65
60
  }
@@ -12,8 +12,6 @@ module.exports = function ({ print }) {
12
12
  const webPropLog = print({ platform: 'web', tag: TAG_NAME, isError: false })
13
13
  const webEventLog = print({ platform: 'web', tag: TAG_NAME, isError: false, type: 'event' })
14
14
  const webValueLog = print({ platform: 'web', tag: TAG_NAME, isError: false, type: 'value' })
15
- const ksPropLog = print({ platform: 'ks', tag: TAG_NAME, isError: false })
16
- const ksEventLog = print({ platform: 'ks', tag: TAG_NAME, isError: false, type: 'event' })
17
15
  const qaPropLog = print({ platform: 'qa', tag: TAG_NAME, isError: false })
18
16
  const iosValueLogError = print({ platform: 'ios', tag: TAG_NAME, isError: true, type: 'value' })
19
17
  const iosPropLog = print({ platform: 'ios', tag: TAG_NAME, isError: false })
@@ -111,10 +109,6 @@ module.exports = function ({ print }) {
111
109
  ios: iosPropLog,
112
110
  android: androidPropLog,
113
111
  harmony: harmonyPropLog
114
- },
115
- {
116
- test: /^(cursor-spacing|always-embed|cursor|selection-start|selection-end|adjust-position|hold-keyboard|safe-password-cert-path|safe-password-length|safe-password-time-stamp|safe-password-nonce|safe-password-salt|safe-password-custom-hash|placeholder-class)$/,
117
- ks: ksPropLog
118
112
  }
119
113
  ],
120
114
  event: [
@@ -135,10 +129,6 @@ module.exports = function ({ print }) {
135
129
  ios: iosEventLog,
136
130
  android: androidEventLog,
137
131
  harmony: harmonyEventLog
138
- },
139
- {
140
- test: /^(change|nicknamereview|selectionchange|keyboardcompositionstart|keyboardcompositionupdate|keyboardcompositionend|onkeyboardheightchange)$/,
141
- ks: ksEventLog
142
132
  }
143
133
  ]
144
134
  }
@@ -1,8 +1,6 @@
1
1
  const TAG_NAME = 'label'
2
2
 
3
- module.exports = function ({ print }) {
4
- const ksPropLog = print({ platform: 'ks', tag: TAG_NAME, isError: false })
5
-
3
+ module.exports = function () {
6
4
  return {
7
5
  test: TAG_NAME,
8
6
  ios (tag, { el }) {
@@ -16,12 +14,6 @@ module.exports = function ({ print }) {
16
14
  harmony (tag, { el }) {
17
15
  el.isBuiltIn = true
18
16
  return 'mpx-label'
19
- },
20
- props: [
21
- {
22
- test: /^(for)$/,
23
- ks: ksPropLog
24
- }
25
- ]
17
+ }
26
18
  }
27
19
  }
@@ -12,9 +12,6 @@ module.exports = function ({ print }) {
12
12
  const ttPropLog = print({ platform: 'bytedance', tag: TAG_NAME, isError: false })
13
13
  const qaPropLog = print({ platform: 'qa', tag: TAG_NAME, isError: false })
14
14
  const qaEventLogError = print({ platform: 'qa', tag: TAG_NAME, isError: true, type: 'event' })
15
- const ksPropLog = print({ platform: 'ks', tag: TAG_NAME, isError: false })
16
- const ksEventLogError = print({ platform: 'ks', tag: TAG_NAME, isError: true, type: 'event' })
17
-
18
15
  return {
19
16
  // 匹配标签名,可传递正则
20
17
  test: TAG_NAME,
@@ -58,10 +55,6 @@ module.exports = function ({ print }) {
58
55
  {
59
56
  test: /^(min-scale|max-scale|covers|polyline|include-points|show-location|subkey|layer-style|skew|enable-3D|show-compass|show-scale|enable-overlooking|enable-zoom|enable-scroll|enable-rotate|enable-satellite|enable-traffic|enable-poi|enable-building|setting)$/,
60
57
  qa: qaPropLog
61
- },
62
- {
63
- test: /^(min-scale|max-scale|covers|polyline|controls|include-points|show-location|polygons|subkey|layer-style|skew|enable-3D|show-compass|show-scale|enable-overlooking|enable-auto-max-overlooking|enable-zoom|enable-scroll|enable-rotate|enable-satellite|enable-traffic|enable-poi|enable-building|setting)$/,
64
- ks: ksPropLog
65
58
  }
66
59
  ],
67
60
  // 组件事件中的差异部分
@@ -100,10 +93,6 @@ module.exports = function ({ print }) {
100
93
  {
101
94
  test: /^(labeltap|anchorpointtap)$/,
102
95
  qa: qaEventLogError
103
- },
104
- {
105
- test: /^(updated|regionchange|poitap|polylinetap|abilitysuccess|abilityfail|authsuccess|interpolatepoint|error)$/,
106
- ks: ksEventLogError
107
96
  }
108
97
  ]
109
98
  }
@@ -4,8 +4,6 @@ module.exports = function ({ print }) {
4
4
  const androidPropLog = print({ platform: 'android', tag: TAG_NAME, isError: false })
5
5
  const harmonyPropLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false })
6
6
  const iosPropLog = print({ platform: 'ios', tag: TAG_NAME, isError: false })
7
- const ksPropLog = print({ platform: 'ks', tag: TAG_NAME, isError: false })
8
-
9
7
  return {
10
8
  test: TAG_NAME,
11
9
  web (tag, { el }) {
@@ -29,8 +27,7 @@ module.exports = function ({ print }) {
29
27
  test: /^(scale-area)$/,
30
28
  ios: iosPropLog,
31
29
  android: androidPropLog,
32
- harmony: harmonyPropLog,
33
- ks: ksPropLog
30
+ harmony: harmonyPropLog
34
31
  }
35
32
  ]
36
33
  }