@mpxjs/webpack-plugin 2.10.1-beta.7 → 2.10.2

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 (61) hide show
  1. package/LICENSE +433 -0
  2. package/lib/config.js +1 -2
  3. package/lib/index.js +12 -2
  4. package/lib/platform/json/wx/index.js +3 -6
  5. package/lib/platform/style/wx/index.js +12 -23
  6. package/lib/platform/template/wx/component-config/button.js +2 -19
  7. package/lib/platform/template/wx/component-config/canvas.js +0 -4
  8. package/lib/platform/template/wx/component-config/checkbox-group.js +0 -4
  9. package/lib/platform/template/wx/component-config/checkbox.js +0 -4
  10. package/lib/platform/template/wx/component-config/cover-image.js +1 -7
  11. package/lib/platform/template/wx/component-config/cover-view.js +0 -4
  12. package/lib/platform/template/wx/component-config/fix-component-name.js +2 -3
  13. package/lib/platform/template/wx/component-config/form.js +1 -7
  14. package/lib/platform/template/wx/component-config/icon.js +0 -4
  15. package/lib/platform/template/wx/component-config/image.js +1 -7
  16. package/lib/platform/template/wx/component-config/input.js +3 -18
  17. package/lib/platform/template/wx/component-config/label.js +0 -4
  18. package/lib/platform/template/wx/component-config/movable-area.js +1 -7
  19. package/lib/platform/template/wx/component-config/movable-view.js +3 -12
  20. package/lib/platform/template/wx/component-config/navigator.js +0 -4
  21. package/lib/platform/template/wx/component-config/picker-view-column.js +0 -4
  22. package/lib/platform/template/wx/component-config/picker-view.js +1 -7
  23. package/lib/platform/template/wx/component-config/picker.js +1 -7
  24. package/lib/platform/template/wx/component-config/radio-group.js +0 -4
  25. package/lib/platform/template/wx/component-config/radio.js +0 -4
  26. package/lib/platform/template/wx/component-config/rich-text.js +0 -4
  27. package/lib/platform/template/wx/component-config/root-portal.js +0 -4
  28. package/lib/platform/template/wx/component-config/scroll-view.js +2 -10
  29. package/lib/platform/template/wx/component-config/swiper-item.js +1 -7
  30. package/lib/platform/template/wx/component-config/swiper.js +3 -12
  31. package/lib/platform/template/wx/component-config/switch.js +0 -4
  32. package/lib/platform/template/wx/component-config/text.js +1 -7
  33. package/lib/platform/template/wx/component-config/textarea.js +3 -18
  34. package/lib/platform/template/wx/component-config/unsupported.js +0 -7
  35. package/lib/platform/template/wx/component-config/video.js +2 -10
  36. package/lib/platform/template/wx/component-config/view.js +1 -7
  37. package/lib/platform/template/wx/component-config/web-view.js +0 -4
  38. package/lib/platform/template/wx/index.js +13 -32
  39. package/lib/react/processScript.js +2 -2
  40. package/lib/runtime/components/react/KeyboardAvoidingView.tsx +30 -18
  41. package/lib/runtime/components/react/context.ts +3 -4
  42. package/lib/runtime/components/react/dist/KeyboardAvoidingView.jsx +23 -13
  43. package/lib/runtime/components/react/dist/mpx-image.jsx +2 -2
  44. package/lib/runtime/components/react/dist/mpx-input.jsx +54 -44
  45. package/lib/runtime/components/react/dist/mpx-picker-view-column.jsx +2 -2
  46. package/lib/runtime/components/react/dist/mpx-scroll-view.jsx +7 -4
  47. package/lib/runtime/components/react/dist/mpx-textarea.jsx +6 -6
  48. package/lib/runtime/components/react/dist/mpx-web-view.jsx +4 -4
  49. package/lib/runtime/components/react/dist/utils.jsx +0 -15
  50. package/lib/runtime/components/react/mpx-image.tsx +2 -2
  51. package/lib/runtime/components/react/mpx-input.tsx +66 -54
  52. package/lib/runtime/components/react/mpx-picker-view-column.tsx +2 -2
  53. package/lib/runtime/components/react/mpx-scroll-view.tsx +8 -4
  54. package/lib/runtime/components/react/mpx-textarea.tsx +10 -6
  55. package/lib/runtime/components/react/mpx-web-view.tsx +4 -4
  56. package/lib/runtime/components/react/types/global.d.ts +1 -1
  57. package/lib/runtime/components/react/utils.tsx +1 -16
  58. package/lib/runtime/components/web/mini-video-controls.min.js +1 -1
  59. package/lib/template-compiler/compiler.js +3 -3
  60. package/lib/utils/env.js +1 -1
  61. package/package.json +4 -4
@@ -4,7 +4,6 @@ module.exports = function ({ print }) {
4
4
  const aliEventLog = print({ platform: 'ali', tag: TAG_NAME, isError: false, type: 'event' })
5
5
  const iosPropLog = print({ platform: 'ios', tag: TAG_NAME, isError: false })
6
6
  const androidPropLog = print({ platform: 'android', tag: TAG_NAME, isError: false })
7
- const harmonyPropLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false })
8
7
  return {
9
8
  test: TAG_NAME,
10
9
  web (tag, { el }) {
@@ -22,10 +21,6 @@ module.exports = function ({ print }) {
22
21
  el.isBuiltIn = true
23
22
  return 'mpx-image'
24
23
  },
25
- harmony (tag, { el }) {
26
- el.isBuiltIn = true
27
- return 'mpx-image'
28
- },
29
24
  props: [
30
25
  {
31
26
  test: 'use-built-in',
@@ -36,8 +31,7 @@ module.exports = function ({ print }) {
36
31
  {
37
32
  test: /^(referrer-policy)$/,
38
33
  ios: iosPropLog,
39
- android: androidPropLog,
40
- harmony: harmonyPropLog
34
+ android: androidPropLog
41
35
  }
42
36
  ],
43
37
  event: [
@@ -28,10 +28,6 @@ module.exports = function ({ print }) {
28
28
  el.isBuiltIn = true
29
29
  return 'mpx-view'
30
30
  },
31
- harmony (tag, { el }) {
32
- el.isBuiltIn = true
33
- return 'mpx-view'
34
- },
35
31
  props: [
36
32
  {
37
33
  test: 'scroll-top',
@@ -15,11 +15,10 @@ module.exports = function () {
15
15
  return {
16
16
  waterfall: true,
17
17
  skipNormalize: true,
18
- supportedModes: ['web', 'ios', 'android', 'harmony'],
18
+ supportedModes: ['web', 'ios', 'android'],
19
19
  test: (input) => isOriginTag(input) || isBuildInTag(input),
20
20
  web: handleComponentTag,
21
21
  ios: handleComponentTag,
22
- android: handleComponentTag,
23
- harmony: handleComponentTag
22
+ android: handleComponentTag
24
23
  }
25
24
  }
@@ -9,7 +9,6 @@ module.exports = function ({ print }) {
9
9
  const qaPropLog = print({ platform: 'qa', tag: TAG_NAME, isError: false })
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
- const harmonyPropLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false })
13
12
 
14
13
  return {
15
14
  test: TAG_NAME,
@@ -26,10 +25,6 @@ module.exports = function ({ print }) {
26
25
  el.isBuiltIn = true
27
26
  return 'mpx-form'
28
27
  },
29
- harmony (tag, { el }) {
30
- el.isBuiltIn = true
31
- return 'mpx-form'
32
- },
33
28
  props: [
34
29
  {
35
30
  test: /^(report-submit-timeout)$/,
@@ -43,8 +38,7 @@ module.exports = function ({ print }) {
43
38
  web: webPropLog,
44
39
  qa: qaPropLog,
45
40
  ios: iosPropLog,
46
- android: androidPropLog,
47
- harmony: harmonyPropLog
41
+ android: androidPropLog
48
42
  }
49
43
  ]
50
44
  }
@@ -14,10 +14,6 @@ module.exports = function () {
14
14
  android (tag, { el }) {
15
15
  el.isBuiltIn = true
16
16
  return 'mpx-icon'
17
- },
18
- harmony (tag, { el }) {
19
- el.isBuiltIn = true
20
- return 'mpx-icon'
21
17
  }
22
18
  }
23
19
  }
@@ -8,7 +8,6 @@ module.exports = function ({ print }) {
8
8
  const qaPropLog = print({ platform: 'qa', tag: TAG_NAME, isError: false })
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
- const harmonyPropLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false })
12
11
 
13
12
  return {
14
13
  test: TAG_NAME,
@@ -24,10 +23,6 @@ module.exports = function ({ print }) {
24
23
  el.isBuiltIn = true
25
24
  return 'mpx-image'
26
25
  },
27
- harmony (tag, { el }) {
28
- el.isBuiltIn = true
29
- return 'mpx-image'
30
- },
31
26
  props: [
32
27
  {
33
28
  test: /^show-menu-by-longpress$/,
@@ -53,8 +48,7 @@ module.exports = function ({ print }) {
53
48
  {
54
49
  test: /^(show-menu-by-longpress|fade-in)$/,
55
50
  ios: iosPropLog,
56
- android: androidPropLog,
57
- harmony: harmonyPropLog
51
+ android: androidPropLog
58
52
  }
59
53
  ]
60
54
  }
@@ -19,9 +19,6 @@ module.exports = function ({ print }) {
19
19
  const androidValueLogError = print({ platform: 'android', tag: TAG_NAME, isError: true, type: 'value' })
20
20
  const androidPropLog = print({ platform: 'android', tag: TAG_NAME, isError: false })
21
21
  const androidEventLog = print({ platform: 'android', tag: TAG_NAME, isError: false, type: 'event' })
22
- const harmonyValueLogError = print({ platform: 'harmony', tag: TAG_NAME, isError: true, type: 'value' })
23
- const harmonyPropLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false })
24
- const harmonyEventLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false, type: 'event' })
25
22
 
26
23
  return {
27
24
  test: TAG_NAME,
@@ -37,10 +34,6 @@ module.exports = function ({ print }) {
37
34
  el.isBuiltIn = true
38
35
  return 'mpx-input'
39
36
  },
40
- harmony (tag, { el }) {
41
- el.isBuiltIn = true
42
- return 'mpx-input'
43
- },
44
37
  props: [
45
38
  {
46
39
  test: /^(cursor-spacing|auto-focus|adjust-position|hold-keyboard)$/,
@@ -82,12 +75,6 @@ module.exports = function ({ print }) {
82
75
  if (notSupported.includes(value)) {
83
76
  androidValueLogError({ name, value })
84
77
  }
85
- },
86
- harmony ({ name, value }) {
87
- const notSupported = ['safe-password', 'nickname']
88
- if (notSupported.includes(value)) {
89
- harmonyValueLogError({ name, value })
90
- }
91
78
  }
92
79
  },
93
80
  {
@@ -105,10 +92,9 @@ module.exports = function ({ print }) {
105
92
  qa: qaPropLog
106
93
  },
107
94
  {
108
- test: /^(placeholder-style|placeholder-class|always-embed|hold-keyboard|safe-password-.+)$/,
95
+ test: /^(always-embed|hold-keyboard|safe-password-.+)$/,
109
96
  ios: iosPropLog,
110
- android: androidPropLog,
111
- harmony: harmonyPropLog
97
+ android: androidPropLog
112
98
  }
113
99
  ],
114
100
  event: [
@@ -127,8 +113,7 @@ module.exports = function ({ print }) {
127
113
  {
128
114
  test: /^(nicknamereview|onkeyboardheightchange|keyboard.+)$/,
129
115
  ios: iosEventLog,
130
- android: androidEventLog,
131
- harmony: harmonyEventLog
116
+ android: androidEventLog
132
117
  }
133
118
  ]
134
119
  }
@@ -10,10 +10,6 @@ module.exports = function () {
10
10
  android (tag, { el }) {
11
11
  el.isBuiltIn = true
12
12
  return 'mpx-label'
13
- },
14
- harmony (tag, { el }) {
15
- el.isBuiltIn = true
16
- return 'mpx-label'
17
13
  }
18
14
  }
19
15
  }
@@ -2,7 +2,6 @@ const TAG_NAME = 'movable-area'
2
2
 
3
3
  module.exports = function ({ print }) {
4
4
  const androidPropLog = print({ platform: 'android', tag: TAG_NAME, isError: false })
5
- const harmonyPropLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false })
6
5
  const iosPropLog = print({ platform: 'ios', tag: TAG_NAME, isError: false })
7
6
  return {
8
7
  test: TAG_NAME,
@@ -14,10 +13,6 @@ module.exports = function ({ print }) {
14
13
  el.isBuiltIn = true
15
14
  return 'mpx-movable-area'
16
15
  },
17
- harmony (tag, { el }) {
18
- el.isBuiltIn = true
19
- return 'mpx-movable-area'
20
- },
21
16
  ios (tag, { el }) {
22
17
  el.isBuiltIn = true
23
18
  return 'mpx-movable-area'
@@ -26,8 +21,7 @@ module.exports = function ({ print }) {
26
21
  {
27
22
  test: /^(scale-area)$/,
28
23
  ios: iosPropLog,
29
- android: androidPropLog,
30
- harmony: harmonyPropLog
24
+ android: androidPropLog
31
25
  }
32
26
  ]
33
27
  }
@@ -3,11 +3,9 @@ const TAG_NAME = 'movable-view'
3
3
  module.exports = function ({ print }) {
4
4
  const aliEventLog = print({ platform: 'ali', tag: TAG_NAME, isError: false, type: 'event' })
5
5
  const androidEventLog = print({ platform: 'android', tag: TAG_NAME, isError: false, type: 'event' })
6
- const harmonyEventLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false, type: 'event' })
7
6
  const iosEventLog = print({ platform: 'ios', tag: TAG_NAME, isError: false, type: 'event' })
8
7
  const qaPropLog = print({ platform: 'qa', tag: TAG_NAME, isError: false })
9
8
  const androidPropLog = print({ platform: 'android', tag: TAG_NAME, isError: false })
10
- const harmonyPropLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false })
11
9
  const iosPropLog = print({ platform: 'ios', tag: TAG_NAME, isError: false })
12
10
  return {
13
11
  test: TAG_NAME,
@@ -19,10 +17,6 @@ module.exports = function ({ print }) {
19
17
  el.isBuiltIn = true
20
18
  return 'mpx-movable-view'
21
19
  },
22
- harmony (tag, { el }) {
23
- el.isBuiltIn = true
24
- return 'mpx-movable-view'
25
- },
26
20
  ios (tag, { el }) {
27
21
  el.isBuiltIn = true
28
22
  return 'mpx-movable-view'
@@ -32,14 +26,12 @@ module.exports = function ({ print }) {
32
26
  test: /^(out-of-bounds)$/,
33
27
  ali: qaPropLog,
34
28
  ios: iosPropLog,
35
- android: androidPropLog,
36
- harmony: harmonyPropLog
29
+ android: androidPropLog
37
30
  },
38
31
  {
39
32
  test: /^(damping|friction|scale|scale-min|scale-max|scale-value)$/,
40
33
  ios: iosPropLog,
41
- android: androidPropLog,
42
- harmony: harmonyPropLog
34
+ android: androidPropLog
43
35
  }
44
36
  ],
45
37
  event: [
@@ -50,8 +42,7 @@ module.exports = function ({ print }) {
50
42
  {
51
43
  test: /^(bindscale)$/,
52
44
  ios: iosEventLog,
53
- android: androidEventLog,
54
- harmony: harmonyEventLog
45
+ android: androidEventLog
55
46
  }
56
47
  ]
57
48
  }
@@ -36,10 +36,6 @@ module.exports = function ({ print }) {
36
36
  el.isBuiltIn = true
37
37
  return 'mpx-navigator'
38
38
  },
39
- harmony (tag, { el }) {
40
- el.isBuiltIn = true
41
- return 'mpx-navigator'
42
- },
43
39
  props: [
44
40
  {
45
41
  test: /^(target|delta|app-id|path|extra-data|version|hover-stop-propagation)$/,
@@ -14,10 +14,6 @@ module.exports = function () {
14
14
  android (tag, { el }) {
15
15
  el.isBuiltIn = true
16
16
  return 'mpx-picker-view-column'
17
- },
18
- harmony (tag, { el }) {
19
- el.isBuiltIn = true
20
- return 'mpx-picker-view-column'
21
17
  }
22
18
  }
23
19
  }
@@ -8,7 +8,6 @@ module.exports = function ({ print }) {
8
8
  const jdEventLog = print({ platform: 'jd', tag: TAG_NAME, isError: false, type: 'event' })
9
9
  const iosEventLog = print({ platform: 'ios', tag: TAG_NAME, isError: false, type: 'event' })
10
10
  const androidEventLog = print({ platform: 'android', tag: TAG_NAME, isError: false, type: 'event' })
11
- const harmonyEventLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false, type: 'event' })
12
11
 
13
12
  return {
14
13
  test: TAG_NAME,
@@ -24,10 +23,6 @@ module.exports = function ({ print }) {
24
23
  el.isBuiltIn = true
25
24
  return 'mpx-picker-view'
26
25
  },
27
- harmony (tag, { el }) {
28
- el.isBuiltIn = true
29
- return 'mpx-picker-view'
30
- },
31
26
  props: [
32
27
  {
33
28
  test: /^(indicator-class|mask-class)$/,
@@ -42,8 +37,7 @@ module.exports = function ({ print }) {
42
37
  tt: ttEventLog,
43
38
  jd: jdEventLog,
44
39
  ios: iosEventLog,
45
- android: androidEventLog,
46
- harmony: harmonyEventLog
40
+ android: androidEventLog
47
41
  }
48
42
  ]
49
43
  }
@@ -10,7 +10,6 @@ module.exports = function ({ print }) {
10
10
  const qaPropLog = print({ platform: 'qa', tag: TAG_NAME, isError: false })
11
11
  const iosPropLog = print({ platform: 'ios', tag: TAG_NAME, isError: false })
12
12
  const androidPropLog = print({ platform: 'android', tag: TAG_NAME, isError: false })
13
- const harmonyPropLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false })
14
13
 
15
14
  return {
16
15
  test: TAG_NAME,
@@ -26,10 +25,6 @@ module.exports = function ({ print }) {
26
25
  el.isBuiltIn = true
27
26
  return 'mpx-picker'
28
27
  },
29
- harmony (tag, { el }) {
30
- el.isBuiltIn = true
31
- return 'mpx-picker'
32
- },
33
28
  props: [
34
29
  {
35
30
  test: 'mode',
@@ -48,8 +43,7 @@ module.exports = function ({ print }) {
48
43
  jd: jdPropLog,
49
44
  qa: qaPropLog,
50
45
  ios: iosPropLog,
51
- android: androidPropLog,
52
- harmony: harmonyPropLog
46
+ android: androidPropLog
53
47
  }
54
48
  ],
55
49
  event: [
@@ -14,10 +14,6 @@ module.exports = function () {
14
14
  android (tag, { el }) {
15
15
  el.isBuiltIn = true
16
16
  return 'mpx-radio-group'
17
- },
18
- harmony (tag, { el }) {
19
- el.isBuiltIn = true
20
- return 'mpx-radio-group'
21
17
  }
22
18
  }
23
19
  }
@@ -15,10 +15,6 @@ module.exports = function () {
15
15
  el.isBuiltIn = true
16
16
  return 'mpx-radio'
17
17
  },
18
- harmony (tag, { el }) {
19
- el.isBuiltIn = true
20
- return 'mpx-radio'
21
- },
22
18
  event: [
23
19
  {
24
20
  test: 'tap',
@@ -20,10 +20,6 @@ module.exports = function ({ print }) {
20
20
  el.isBuiltIn = true
21
21
  return 'mpx-rich-text'
22
22
  },
23
- harmony (tag, { el }) {
24
- el.isBuiltIn = true
25
- return 'mpx-rich-text'
26
- },
27
23
  props: [
28
24
  {
29
25
  test: /^(space)$/,
@@ -10,10 +10,6 @@ module.exports = function ({ print }) {
10
10
  android (tag, { el }) {
11
11
  el.isBuiltIn = true
12
12
  return 'mpx-root-portal'
13
- },
14
- harmony (tag, { el }) {
15
- el.isBuiltIn = true
16
- return 'mpx-root-portal'
17
13
  }
18
14
  }
19
15
  }
@@ -14,8 +14,6 @@ module.exports = function ({ print }) {
14
14
  const qqPropLog = print({ platform: 'qq', tag: TAG_NAME, isError: false })
15
15
  const androidEventLog = print({ platform: 'android', tag: TAG_NAME, isError: false, type: 'event' })
16
16
  const androidPropLog = print({ platform: 'android', tag: TAG_NAME, isError: false })
17
- const harmonyEventLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false, type: 'event' })
18
- const harmonyPropLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false })
19
17
  const iosEventLog = print({ platform: 'ios', tag: TAG_NAME, isError: false, type: 'event' })
20
18
  const iosPropLog = print({ platform: 'ios', tag: TAG_NAME, isError: false })
21
19
 
@@ -29,10 +27,6 @@ module.exports = function ({ print }) {
29
27
  el.isBuiltIn = true
30
28
  return 'mpx-scroll-view'
31
29
  },
32
- harmony (tag, { el }) {
33
- el.isBuiltIn = true
34
- return 'mpx-scroll-view'
35
- },
36
30
  ios (tag, { el }) {
37
31
  el.isBuiltIn = true
38
32
  return 'mpx-scroll-view'
@@ -61,8 +55,7 @@ module.exports = function ({ print }) {
61
55
  {
62
56
  test: /^(refresher-threshold|enable-passive|scroll-anchoring|using-sticky|fast-deceleration|enable-flex)$/,
63
57
  android: androidPropLog,
64
- ios: iosPropLog,
65
- harmony: harmonyPropLog
58
+ ios: iosPropLog
66
59
  },
67
60
  {
68
61
  test: /^(refresher-default-style|refresher-background)$/,
@@ -95,8 +88,7 @@ module.exports = function ({ print }) {
95
88
  {
96
89
  test: /^(refresherpulling|refresherrestore|refresherabort)$/,
97
90
  android: androidEventLog,
98
- ios: iosEventLog,
99
- harmony: harmonyEventLog
91
+ ios: iosEventLog
100
92
  }
101
93
  ]
102
94
  }
@@ -8,7 +8,6 @@ module.exports = function ({ print }) {
8
8
  const qqPropLog = print({ platform: 'qq', tag: TAG_NAME, isError: false })
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
- const harmonyPropLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false })
12
11
 
13
12
  return {
14
13
  test: TAG_NAME,
@@ -24,17 +23,12 @@ module.exports = function ({ print }) {
24
23
  el.isBuiltIn = true
25
24
  return 'mpx-swiper-item'
26
25
  },
27
- harmony (tag, { el }) {
28
- el.isBuiltIn = true
29
- return 'mpx-swiper-item'
30
- },
31
26
  props: [
32
27
  {
33
28
  test: /^(item-id)$/,
34
29
  ali: aliPropLog,
35
30
  ios: iosPropLog,
36
- android: androidPropLog,
37
- harmony: harmonyPropLog
31
+ android: androidPropLog
38
32
  },
39
33
  {
40
34
  test: /^(skip-hidden-item-layout)$/,
@@ -14,8 +14,6 @@ module.exports = function ({ print }) {
14
14
  const iosEventLog = print({ platform: 'ios', tag: TAG_NAME, isError: false, type: 'event' })
15
15
  const androidPropLog = print({ platform: 'android', tag: TAG_NAME, isError: false })
16
16
  const androidEventLog = print({ platform: 'android', tag: TAG_NAME, isError: false, type: 'event' })
17
- const harmonyPropLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false })
18
- const harmonyEventLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false, type: 'event' })
19
17
 
20
18
  return {
21
19
  test: TAG_NAME,
@@ -31,10 +29,6 @@ module.exports = function ({ print }) {
31
29
  el.isBuiltIn = true
32
30
  return 'mpx-swiper'
33
31
  },
34
- harmony (tag, { el }) {
35
- el.isBuiltIn = true
36
- return 'mpx-swiper'
37
- },
38
32
  props: [
39
33
  {
40
34
  test: /^(display-multiple-items|skip-hidden-item-layout)$/,
@@ -67,8 +61,7 @@ module.exports = function ({ print }) {
67
61
  {
68
62
  test: /^(display-multiple-items|snap-to-edge|easing-function)$/,
69
63
  ios: iosPropLog,
70
- android: androidPropLog,
71
- harmony: harmonyPropLog
64
+ android: androidPropLog
72
65
  }
73
66
  ],
74
67
  event: [
@@ -87,14 +80,12 @@ module.exports = function ({ print }) {
87
80
  swan: baiduEventLog,
88
81
  jd: jdEventLog,
89
82
  ios: iosEventLog,
90
- android: androidEventLog,
91
- harmony: harmonyEventLog
83
+ android: androidEventLog
92
84
  },
93
85
  {
94
86
  test: /^(animationfinish)$/,
95
87
  ios: iosEventLog,
96
- android: androidEventLog,
97
- harmony: harmonyEventLog
88
+ android: androidEventLog
98
89
  }
99
90
  ]
100
91
  }
@@ -18,10 +18,6 @@ module.exports = function ({ print }) {
18
18
  el.isBuiltIn = true
19
19
  return 'mpx-switch'
20
20
  },
21
- harmony (tag, { el }) {
22
- el.isBuiltIn = true
23
- return 'mpx-switch'
24
- },
25
21
  props: [
26
22
  {
27
23
  test: /^type$/,
@@ -8,7 +8,6 @@ module.exports = function ({ print }) {
8
8
  const qqPropLog = print({ platform: 'qq', tag: TAG_NAME, isError: false })
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
- const harmonyPropLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false })
12
11
 
13
12
  return {
14
13
  test: TAG_NAME,
@@ -31,10 +30,6 @@ module.exports = function ({ print }) {
31
30
  el.isBuiltIn = true
32
31
  return 'mpx-text'
33
32
  },
34
- harmony (tag, { el }) {
35
- el.isBuiltIn = true
36
- return 'mpx-text'
37
- },
38
33
  props: [
39
34
  {
40
35
  test: /^(decode|user-select)$/,
@@ -50,8 +45,7 @@ module.exports = function ({ print }) {
50
45
  {
51
46
  test: /^(space|decode)$/,
52
47
  ios: iosPropLog,
53
- android: androidPropLog,
54
- harmony: harmonyPropLog
48
+ android: androidPropLog
55
49
  },
56
50
  {
57
51
  test: /^(selectable|space|decode|use-built-in)$/,
@@ -20,9 +20,6 @@ module.exports = function ({ print }) {
20
20
  const androidValueLogError = print({ platform: 'android', tag: TAG_NAME, isError: true, type: 'value' })
21
21
  const androidPropLog = print({ platform: 'android', tag: TAG_NAME, isError: false })
22
22
  const androidEventLog = print({ platform: 'android', tag: TAG_NAME, isError: false, type: 'event' })
23
- const harmonyValueLogError = print({ platform: 'harmony', tag: TAG_NAME, isError: true, type: 'value' })
24
- const harmonyPropLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false })
25
- const harmonyEventLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false, type: 'event' })
26
23
 
27
24
  return {
28
25
  test: TAG_NAME,
@@ -39,10 +36,6 @@ module.exports = function ({ print }) {
39
36
  el.isBuiltIn = true
40
37
  return 'mpx-textarea'
41
38
  },
42
- harmony (tag, { el }) {
43
- el.isBuiltIn = true
44
- return 'mpx-textarea'
45
- },
46
39
  props: [
47
40
  {
48
41
  test: /^(auto-focus|fixed|cursor-spacing|cursor|show-confirm-bar|selection-start|selection-end|adjust-position|hold-keyboard|disable-default-padding|confirm-type)$/,
@@ -82,19 +75,12 @@ module.exports = function ({ print }) {
82
75
  if (notSupported.includes(value)) {
83
76
  androidValueLogError({ name, value })
84
77
  }
85
- },
86
- harmony ({ name, value }) {
87
- const notSupported = ['return']
88
- if (notSupported.includes(value)) {
89
- harmonyValueLogError({ name, value })
90
- }
91
78
  }
92
79
  },
93
80
  {
94
- test: /^(placeholder-style|placeholder-class|always-embed|hold-keyboard|disable-default-padding|adjust-keyboard-to|fixed|show-confirm-bar)$/,
81
+ test: /^(always-embed|hold-keyboard|disable-default-padding|adjust-keyboard-to|fixed|show-confirm-bar)$/,
95
82
  ios: iosPropLog,
96
- android: androidPropLog,
97
- harmony: harmonyPropLog
83
+ android: androidPropLog
98
84
  }
99
85
  ],
100
86
  event: [
@@ -123,8 +109,7 @@ module.exports = function ({ print }) {
123
109
  {
124
110
  test: /^keyboard.+$/,
125
111
  ios: iosEventLog,
126
- android: androidEventLog,
127
- harmony: harmonyEventLog
112
+ android: androidEventLog
128
113
  }
129
114
  ]
130
115
  }
@@ -26,7 +26,6 @@ module.exports = function ({ print }) {
26
26
  const qaUnsupportedTagError = print({ platform: 'qa', isError: true, type: 'tag' })
27
27
  const iosUnsupportedTagError = print({ platform: 'ios', isError: true, type: 'tag' })
28
28
  const androidUnsupportedTagError = print({ platform: 'android', isError: true, type: 'tag' })
29
- const harmonyUnsupportedTagError = print({ platform: 'harmony', isError: true, type: 'tag' })
30
29
 
31
30
  const aliUnsupportedExp = new RegExp('^(' + ALI_UNSUPPORTED_TAG_NAME_ARR.join('|') + ')$')
32
31
  const baiduUnsupportedExp = new RegExp('^(' + BAIDU_UNSUPPORTED_TAG_NAME_ARR.join('|') + ')$')
@@ -36,7 +35,6 @@ module.exports = function ({ print }) {
36
35
  const qaUnsupportedExp = new RegExp('^(' + QA_UNSUPPORTED_TAG_NAME_ARR.join('|') + ')$')
37
36
  const iosUnsupportedExp = new RegExp('^(' + RN_UNSUPPORTED_TAG_NAME_ARR.join('|') + ')$')
38
37
  const androidUnsupportedExp = new RegExp('^(' + RN_UNSUPPORTED_TAG_NAME_ARR.join('|') + ')$')
39
- const harmonyUnsupportedExp = new RegExp('^(' + RN_UNSUPPORTED_TAG_NAME_ARR.join('|') + ')$')
40
38
 
41
39
  return [
42
40
  {
@@ -78,11 +76,6 @@ module.exports = function ({ print }) {
78
76
  supportedModes: ['android'],
79
77
  test: androidUnsupportedExp,
80
78
  android: androidUnsupportedTagError
81
- },
82
- {
83
- supportedModes: ['harmony'],
84
- test: harmonyUnsupportedExp,
85
- harmony: harmonyUnsupportedTagError
86
79
  }
87
80
  ]
88
81
  }