@mpxjs/webpack-plugin 2.10.1-beta.2 → 2.10.1-beta.3
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.
- package/lib/config.js +2 -1
- package/lib/index.js +1 -1
- package/lib/platform/json/wx/index.js +6 -3
- package/lib/platform/style/wx/index.js +23 -12
- package/lib/platform/template/wx/component-config/button.js +19 -2
- package/lib/platform/template/wx/component-config/canvas.js +4 -0
- package/lib/platform/template/wx/component-config/checkbox-group.js +4 -0
- package/lib/platform/template/wx/component-config/checkbox.js +4 -0
- package/lib/platform/template/wx/component-config/cover-image.js +7 -1
- package/lib/platform/template/wx/component-config/cover-view.js +4 -0
- package/lib/platform/template/wx/component-config/form.js +7 -1
- package/lib/platform/template/wx/component-config/icon.js +4 -0
- package/lib/platform/template/wx/component-config/image.js +7 -1
- package/lib/platform/template/wx/component-config/input.js +17 -2
- package/lib/platform/template/wx/component-config/label.js +4 -0
- package/lib/platform/template/wx/component-config/movable-area.js +7 -1
- package/lib/platform/template/wx/component-config/movable-view.js +12 -3
- package/lib/platform/template/wx/component-config/navigator.js +4 -0
- package/lib/platform/template/wx/component-config/picker-view-column.js +4 -0
- package/lib/platform/template/wx/component-config/picker-view.js +7 -1
- package/lib/platform/template/wx/component-config/picker.js +7 -1
- package/lib/platform/template/wx/component-config/radio-group.js +4 -0
- package/lib/platform/template/wx/component-config/radio.js +4 -0
- package/lib/platform/template/wx/component-config/rich-text.js +4 -0
- package/lib/platform/template/wx/component-config/root-portal.js +4 -0
- package/lib/platform/template/wx/component-config/scroll-view.js +10 -2
- package/lib/platform/template/wx/component-config/swiper-item.js +7 -1
- package/lib/platform/template/wx/component-config/swiper.js +12 -3
- package/lib/platform/template/wx/component-config/switch.js +4 -0
- package/lib/platform/template/wx/component-config/text.js +7 -1
- package/lib/platform/template/wx/component-config/textarea.js +17 -2
- package/lib/platform/template/wx/component-config/unsupported.js +7 -0
- package/lib/platform/template/wx/component-config/video.js +10 -2
- package/lib/platform/template/wx/component-config/view.js +7 -1
- package/lib/platform/template/wx/component-config/web-view.js +4 -0
- package/lib/platform/template/wx/index.js +32 -13
- package/lib/runtime/components/web/mini-video-controls.min.js +1 -1
- package/lib/template-compiler/compiler.js +1 -1
- package/lib/utils/env.js +1 -1
- package/package.json +1 -1
package/lib/config.js
CHANGED
package/lib/index.js
CHANGED
|
@@ -130,7 +130,7 @@ class MpxWebpackPlugin {
|
|
|
130
130
|
errors.push('MpxWebpackPlugin supports mode to be "web" only when srcMode is set to "wx"!')
|
|
131
131
|
}
|
|
132
132
|
if (isReact(options.mode) && options.srcMode !== 'wx') {
|
|
133
|
-
errors.push('MpxWebpackPlugin supports mode to be "ios" or "android" only when srcMode is set to "wx"!')
|
|
133
|
+
errors.push('MpxWebpackPlugin supports mode to be "ios" or "android" of "harmony" only when srcMode is set to "wx"!')
|
|
134
134
|
}
|
|
135
135
|
if (options.dynamicComponentRules && !options.dynamicRuntime) {
|
|
136
136
|
errors.push('Please make sure you have set dynamicRuntime true in mpx webpack plugin config because you have use the dynamic runtime feature.')
|
|
@@ -158,7 +158,8 @@ module.exports = function getSpec ({ warn, error }) {
|
|
|
158
158
|
test: 'usingComponents',
|
|
159
159
|
web: fixComponentName('usingComponents'),
|
|
160
160
|
ios: fixComponentName('usingComponents'),
|
|
161
|
-
android: fixComponentName('usingComponents')
|
|
161
|
+
android: fixComponentName('usingComponents'),
|
|
162
|
+
harmony: fixComponentName('usingComponents')
|
|
162
163
|
},
|
|
163
164
|
{
|
|
164
165
|
test: 'usingComponents',
|
|
@@ -268,7 +269,8 @@ module.exports = function getSpec ({ warn, error }) {
|
|
|
268
269
|
'dd',
|
|
269
270
|
'web',
|
|
270
271
|
'ios',
|
|
271
|
-
'android'
|
|
272
|
+
'android',
|
|
273
|
+
'harmony'
|
|
272
274
|
],
|
|
273
275
|
|
|
274
276
|
normalizeTest,
|
|
@@ -374,7 +376,8 @@ module.exports = function getSpec ({ warn, error }) {
|
|
|
374
376
|
test: 'usingComponents',
|
|
375
377
|
web: fixComponentName('usingComponents'),
|
|
376
378
|
ios: fixComponentName('usingComponents'),
|
|
377
|
-
android: fixComponentName('usingComponents')
|
|
379
|
+
android: fixComponentName('usingComponents'),
|
|
380
|
+
harmony: fixComponentName('usingComponents')
|
|
378
381
|
},
|
|
379
382
|
{
|
|
380
383
|
test: 'usingComponents',
|
|
@@ -7,7 +7,9 @@ module.exports = function getSpec ({ warn, error }) {
|
|
|
7
7
|
// React Native ios 不支持的 CSS property
|
|
8
8
|
ios: /^(vertical-align)$/,
|
|
9
9
|
// React Native android 不支持的 CSS property
|
|
10
|
-
android: /^(text-decoration-style|text-decoration-color|shadow-offset|shadow-opacity|shadow-radius)
|
|
10
|
+
android: /^(text-decoration-style|text-decoration-color|shadow-offset|shadow-opacity|shadow-radius)$/,
|
|
11
|
+
// TODO: rnoh 文档暂未找到 css 属性支持说明,暂时同步 android,同时需要注意此处校验是否有缺失,类似 will-change 之类属性
|
|
12
|
+
harmony: /^(text-decoration-style|text-decoration-color|shadow-offset|shadow-opacity|shadow-radius)$/
|
|
11
13
|
}
|
|
12
14
|
// var(xx)
|
|
13
15
|
const cssVariableExp = /var\(/
|
|
@@ -527,7 +529,7 @@ module.exports = function getSpec ({ warn, error }) {
|
|
|
527
529
|
return false
|
|
528
530
|
}
|
|
529
531
|
const cssMap = formatAbbreviation({ prop, value, selector }, { mode })
|
|
530
|
-
if (mode === 'android') return cssMap
|
|
532
|
+
if (mode === 'android' || mode === 'harmony') return cssMap
|
|
531
533
|
// ios 阴影需要额外设置 shadowOpacity=1
|
|
532
534
|
cssMap.push({
|
|
533
535
|
prop: 'shadowOpacity',
|
|
@@ -537,54 +539,63 @@ module.exports = function getSpec ({ warn, error }) {
|
|
|
537
539
|
}
|
|
538
540
|
|
|
539
541
|
return {
|
|
540
|
-
supportedModes: ['ios', 'android'],
|
|
542
|
+
supportedModes: ['ios', 'android', 'harmony'],
|
|
541
543
|
rules: [
|
|
542
544
|
{ // 背景相关属性的处理
|
|
543
545
|
test: /^(background|background-image|background-size|background-position)$/,
|
|
544
546
|
ios: checkBackgroundImage,
|
|
545
|
-
android: checkBackgroundImage
|
|
547
|
+
android: checkBackgroundImage,
|
|
548
|
+
harmony: checkBackgroundImage
|
|
546
549
|
},
|
|
547
550
|
{ // margin padding 内外边距的处理
|
|
548
551
|
test: /^(margin|padding|border-radius|border-width|border-color)$/,
|
|
549
552
|
ios: formatCompositeVal,
|
|
550
|
-
android: formatCompositeVal
|
|
553
|
+
android: formatCompositeVal,
|
|
554
|
+
harmony: formatCompositeVal
|
|
551
555
|
},
|
|
552
556
|
{ // line-height 换算
|
|
553
557
|
test: 'line-height',
|
|
554
558
|
ios: formatLineHeight,
|
|
555
|
-
android: formatLineHeight
|
|
559
|
+
android: formatLineHeight,
|
|
560
|
+
harmony: formatLineHeight
|
|
556
561
|
},
|
|
557
562
|
{
|
|
558
563
|
test: 'transform',
|
|
559
564
|
ios: formatTransform,
|
|
560
|
-
android: formatTransform
|
|
565
|
+
android: formatTransform,
|
|
566
|
+
harmony: formatTransform
|
|
561
567
|
},
|
|
562
568
|
{
|
|
563
569
|
test: 'flex',
|
|
564
570
|
ios: formatFlex,
|
|
565
|
-
android: formatFlex
|
|
571
|
+
android: formatFlex,
|
|
572
|
+
harmony: formatFlex
|
|
566
573
|
},
|
|
567
574
|
{
|
|
568
575
|
test: 'font-family',
|
|
569
576
|
ios: formatFontFamily,
|
|
570
|
-
android: formatFontFamily
|
|
577
|
+
android: formatFontFamily,
|
|
578
|
+
harmony: formatFontFamily
|
|
571
579
|
},
|
|
572
580
|
{
|
|
573
581
|
test: 'box-shadow',
|
|
574
582
|
ios: formatBoxShadow,
|
|
575
|
-
android: formatBoxShadow
|
|
583
|
+
android: formatBoxShadow,
|
|
584
|
+
harmony: formatBoxShadow
|
|
576
585
|
},
|
|
577
586
|
// 通用的简写格式匹配
|
|
578
587
|
{
|
|
579
588
|
test: new RegExp('^(' + Object.keys(AbbreviationMap).join('|') + ')$'),
|
|
580
589
|
ios: formatAbbreviation,
|
|
581
|
-
android: formatAbbreviation
|
|
590
|
+
android: formatAbbreviation,
|
|
591
|
+
harmony: formatAbbreviation
|
|
582
592
|
},
|
|
583
593
|
// 属性&属性值校验
|
|
584
594
|
{
|
|
585
595
|
test: () => true,
|
|
586
596
|
ios: verification,
|
|
587
|
-
android: verification
|
|
597
|
+
android: verification,
|
|
598
|
+
harmony: verification
|
|
588
599
|
}
|
|
589
600
|
]
|
|
590
601
|
}
|
|
@@ -37,6 +37,10 @@ module.exports = function ({ print }) {
|
|
|
37
37
|
const androidPropLog = print({ platform: 'android', tag: TAG_NAME, isError: false })
|
|
38
38
|
const androidEventLog = print({ platform: 'android', tag: TAG_NAME, isError: false, type: 'event' })
|
|
39
39
|
|
|
40
|
+
const harmonyValueLogError = print({ platform: 'harmony', tag: TAG_NAME, isError: true, type: 'value' })
|
|
41
|
+
const harmonyPropLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false })
|
|
42
|
+
const harmonyEventLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false, type: 'event' })
|
|
43
|
+
|
|
40
44
|
return {
|
|
41
45
|
test: TAG_NAME,
|
|
42
46
|
web (tag, { el }) {
|
|
@@ -51,6 +55,10 @@ module.exports = function ({ print }) {
|
|
|
51
55
|
el.isBuiltIn = true
|
|
52
56
|
return 'mpx-button'
|
|
53
57
|
},
|
|
58
|
+
harmony (tag, { el }) {
|
|
59
|
+
el.isBuiltIn = true
|
|
60
|
+
return 'mpx-button'
|
|
61
|
+
},
|
|
54
62
|
props: [
|
|
55
63
|
{
|
|
56
64
|
test: 'open-type',
|
|
@@ -123,6 +131,7 @@ module.exports = function ({ print }) {
|
|
|
123
131
|
}
|
|
124
132
|
},
|
|
125
133
|
ios ({ name, value }) {
|
|
134
|
+
// TODO 此处open-type无其他属性支持了?
|
|
126
135
|
const supported = ['share']
|
|
127
136
|
if (!supported.includes(value)) {
|
|
128
137
|
iosValueLogError({ name, value })
|
|
@@ -133,6 +142,12 @@ module.exports = function ({ print }) {
|
|
|
133
142
|
if (!supported.includes(value)) {
|
|
134
143
|
androidValueLogError({ name, value })
|
|
135
144
|
}
|
|
145
|
+
},
|
|
146
|
+
harmony ({ name, value }) {
|
|
147
|
+
const supported = ['share']
|
|
148
|
+
if (!supported.includes(value)) {
|
|
149
|
+
harmonyValueLogError({ name, value })
|
|
150
|
+
}
|
|
136
151
|
}
|
|
137
152
|
},
|
|
138
153
|
{
|
|
@@ -173,7 +188,8 @@ module.exports = function ({ print }) {
|
|
|
173
188
|
{
|
|
174
189
|
test: /^(lang|from-type|hover-class|send-message-title|send-message-path|send-message-img|app-parameter|show-message-card|phone-number-no-quota-toast|bindgetuserinfo|bindcontact|createliveactivity|bindgetphonenumber|bindgetrealtimephonenumber|binderror|bindopensetting|bindlaunchapp|bindchooseavatar|bindagreeprivacyauthorization)$/,
|
|
175
190
|
ios: iosPropLog,
|
|
176
|
-
android: androidPropLog
|
|
191
|
+
android: androidPropLog,
|
|
192
|
+
harmony: harmonyPropLog
|
|
177
193
|
}
|
|
178
194
|
],
|
|
179
195
|
event: [
|
|
@@ -210,7 +226,8 @@ module.exports = function ({ print }) {
|
|
|
210
226
|
{
|
|
211
227
|
test: /^(getuserinfo|contact|getphonenumber|bindgetrealtimephonenumber|error|opensetting|launchapp|chooseavatar|agreeprivacyauthorization)$/,
|
|
212
228
|
ios: iosEventLog,
|
|
213
|
-
android: androidEventLog
|
|
229
|
+
android: androidEventLog,
|
|
230
|
+
harmony: harmonyEventLog
|
|
214
231
|
}
|
|
215
232
|
]
|
|
216
233
|
}
|
|
@@ -4,6 +4,7 @@ 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 })
|
|
7
8
|
return {
|
|
8
9
|
test: TAG_NAME,
|
|
9
10
|
web (tag, { el }) {
|
|
@@ -21,6 +22,10 @@ module.exports = function ({ print }) {
|
|
|
21
22
|
el.isBuiltIn = true
|
|
22
23
|
return 'mpx-image'
|
|
23
24
|
},
|
|
25
|
+
harmony (tag, { el }) {
|
|
26
|
+
el.isBuiltIn = true
|
|
27
|
+
return 'mpx-image'
|
|
28
|
+
},
|
|
24
29
|
props: [
|
|
25
30
|
{
|
|
26
31
|
test: 'use-built-in',
|
|
@@ -31,7 +36,8 @@ module.exports = function ({ print }) {
|
|
|
31
36
|
{
|
|
32
37
|
test: /^(referrer-policy)$/,
|
|
33
38
|
ios: iosPropLog,
|
|
34
|
-
android: androidPropLog
|
|
39
|
+
android: androidPropLog,
|
|
40
|
+
harmony: harmonyPropLog
|
|
35
41
|
}
|
|
36
42
|
],
|
|
37
43
|
event: [
|
|
@@ -9,6 +9,7 @@ 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 })
|
|
12
13
|
|
|
13
14
|
return {
|
|
14
15
|
test: TAG_NAME,
|
|
@@ -25,6 +26,10 @@ module.exports = function ({ print }) {
|
|
|
25
26
|
el.isBuiltIn = true
|
|
26
27
|
return 'mpx-form'
|
|
27
28
|
},
|
|
29
|
+
harmony (tag, { el }) {
|
|
30
|
+
el.isBuiltIn = true
|
|
31
|
+
return 'mpx-form'
|
|
32
|
+
},
|
|
28
33
|
props: [
|
|
29
34
|
{
|
|
30
35
|
test: /^(report-submit-timeout)$/,
|
|
@@ -38,7 +43,8 @@ module.exports = function ({ print }) {
|
|
|
38
43
|
web: webPropLog,
|
|
39
44
|
qa: qaPropLog,
|
|
40
45
|
ios: iosPropLog,
|
|
41
|
-
android: androidPropLog
|
|
46
|
+
android: androidPropLog,
|
|
47
|
+
harmony: harmonyPropLog
|
|
42
48
|
}
|
|
43
49
|
]
|
|
44
50
|
}
|
|
@@ -8,6 +8,7 @@ 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 })
|
|
11
12
|
|
|
12
13
|
return {
|
|
13
14
|
test: TAG_NAME,
|
|
@@ -23,6 +24,10 @@ module.exports = function ({ print }) {
|
|
|
23
24
|
el.isBuiltIn = true
|
|
24
25
|
return 'mpx-image'
|
|
25
26
|
},
|
|
27
|
+
harmony (tag, { el }) {
|
|
28
|
+
el.isBuiltIn = true
|
|
29
|
+
return 'mpx-image'
|
|
30
|
+
},
|
|
26
31
|
props: [
|
|
27
32
|
{
|
|
28
33
|
test: /^show-menu-by-longpress$/,
|
|
@@ -48,7 +53,8 @@ module.exports = function ({ print }) {
|
|
|
48
53
|
{
|
|
49
54
|
test: /^(show-menu-by-longpress|fade-in)$/,
|
|
50
55
|
ios: iosPropLog,
|
|
51
|
-
android: androidPropLog
|
|
56
|
+
android: androidPropLog,
|
|
57
|
+
harmony: harmonyPropLog
|
|
52
58
|
}
|
|
53
59
|
]
|
|
54
60
|
}
|
|
@@ -19,6 +19,9 @@ 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' })
|
|
22
25
|
|
|
23
26
|
return {
|
|
24
27
|
test: TAG_NAME,
|
|
@@ -34,6 +37,10 @@ module.exports = function ({ print }) {
|
|
|
34
37
|
el.isBuiltIn = true
|
|
35
38
|
return 'mpx-input'
|
|
36
39
|
},
|
|
40
|
+
harmony (tag, { el }) {
|
|
41
|
+
el.isBuiltIn = true
|
|
42
|
+
return 'mpx-input'
|
|
43
|
+
},
|
|
37
44
|
props: [
|
|
38
45
|
{
|
|
39
46
|
test: /^(cursor-spacing|auto-focus|adjust-position|hold-keyboard)$/,
|
|
@@ -75,6 +82,12 @@ module.exports = function ({ print }) {
|
|
|
75
82
|
if (notSupported.includes(value)) {
|
|
76
83
|
androidValueLogError({ name, value })
|
|
77
84
|
}
|
|
85
|
+
},
|
|
86
|
+
harmony ({ name, value }) {
|
|
87
|
+
const notSupported = ['safe-password', 'nickname']
|
|
88
|
+
if (notSupported.includes(value)) {
|
|
89
|
+
harmonyValueLogError({ name, value })
|
|
90
|
+
}
|
|
78
91
|
}
|
|
79
92
|
},
|
|
80
93
|
{
|
|
@@ -94,7 +107,8 @@ module.exports = function ({ print }) {
|
|
|
94
107
|
{
|
|
95
108
|
test: /^(placeholder-style|placeholder-class|always-embed|hold-keyboard|safe-password-.+)$/,
|
|
96
109
|
ios: iosPropLog,
|
|
97
|
-
android: androidPropLog
|
|
110
|
+
android: androidPropLog,
|
|
111
|
+
harmony: harmonyPropLog
|
|
98
112
|
}
|
|
99
113
|
],
|
|
100
114
|
event: [
|
|
@@ -113,7 +127,8 @@ module.exports = function ({ print }) {
|
|
|
113
127
|
{
|
|
114
128
|
test: /^(nicknamereview|onkeyboardheightchange|keyboard.+)$/,
|
|
115
129
|
ios: iosEventLog,
|
|
116
|
-
android: androidEventLog
|
|
130
|
+
android: androidEventLog,
|
|
131
|
+
harmony: harmonyEventLog
|
|
117
132
|
}
|
|
118
133
|
]
|
|
119
134
|
}
|
|
@@ -2,6 +2,7 @@ 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 })
|
|
5
6
|
const iosPropLog = print({ platform: 'ios', tag: TAG_NAME, isError: false })
|
|
6
7
|
return {
|
|
7
8
|
test: TAG_NAME,
|
|
@@ -13,6 +14,10 @@ module.exports = function ({ print }) {
|
|
|
13
14
|
el.isBuiltIn = true
|
|
14
15
|
return 'mpx-movable-area'
|
|
15
16
|
},
|
|
17
|
+
harmony (tag, { el }) {
|
|
18
|
+
el.isBuiltIn = true
|
|
19
|
+
return 'mpx-movable-area'
|
|
20
|
+
},
|
|
16
21
|
ios (tag, { el }) {
|
|
17
22
|
el.isBuiltIn = true
|
|
18
23
|
return 'mpx-movable-area'
|
|
@@ -21,7 +26,8 @@ module.exports = function ({ print }) {
|
|
|
21
26
|
{
|
|
22
27
|
test: /^(scale-area)$/,
|
|
23
28
|
ios: iosPropLog,
|
|
24
|
-
android: androidPropLog
|
|
29
|
+
android: androidPropLog,
|
|
30
|
+
harmony: harmonyPropLog
|
|
25
31
|
}
|
|
26
32
|
]
|
|
27
33
|
}
|
|
@@ -3,9 +3,11 @@ 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' })
|
|
6
7
|
const iosEventLog = print({ platform: 'ios', tag: TAG_NAME, isError: false, type: 'event' })
|
|
7
8
|
const qaPropLog = print({ platform: 'qa', tag: TAG_NAME, isError: false })
|
|
8
9
|
const androidPropLog = print({ platform: 'android', tag: TAG_NAME, isError: false })
|
|
10
|
+
const harmonyPropLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false })
|
|
9
11
|
const iosPropLog = print({ platform: 'ios', tag: TAG_NAME, isError: false })
|
|
10
12
|
return {
|
|
11
13
|
test: TAG_NAME,
|
|
@@ -17,6 +19,10 @@ module.exports = function ({ print }) {
|
|
|
17
19
|
el.isBuiltIn = true
|
|
18
20
|
return 'mpx-movable-view'
|
|
19
21
|
},
|
|
22
|
+
harmony (tag, { el }) {
|
|
23
|
+
el.isBuiltIn = true
|
|
24
|
+
return 'mpx-movable-view'
|
|
25
|
+
},
|
|
20
26
|
ios (tag, { el }) {
|
|
21
27
|
el.isBuiltIn = true
|
|
22
28
|
return 'mpx-movable-view'
|
|
@@ -26,12 +32,14 @@ module.exports = function ({ print }) {
|
|
|
26
32
|
test: /^(out-of-bounds)$/,
|
|
27
33
|
ali: qaPropLog,
|
|
28
34
|
ios: iosPropLog,
|
|
29
|
-
android: androidPropLog
|
|
35
|
+
android: androidPropLog,
|
|
36
|
+
harmony: harmonyPropLog
|
|
30
37
|
},
|
|
31
38
|
{
|
|
32
39
|
test: /^(damping|friction|scale|scale-min|scale-max|scale-value)$/,
|
|
33
40
|
ios: iosPropLog,
|
|
34
|
-
android: androidPropLog
|
|
41
|
+
android: androidPropLog,
|
|
42
|
+
harmony: harmonyPropLog
|
|
35
43
|
}
|
|
36
44
|
],
|
|
37
45
|
event: [
|
|
@@ -42,7 +50,8 @@ module.exports = function ({ print }) {
|
|
|
42
50
|
{
|
|
43
51
|
test: /^(bindscale)$/,
|
|
44
52
|
ios: iosEventLog,
|
|
45
|
-
android: androidEventLog
|
|
53
|
+
android: androidEventLog,
|
|
54
|
+
harmony: harmonyEventLog
|
|
46
55
|
}
|
|
47
56
|
]
|
|
48
57
|
}
|
|
@@ -36,6 +36,10 @@ 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
|
+
},
|
|
39
43
|
props: [
|
|
40
44
|
{
|
|
41
45
|
test: /^(target|delta|app-id|path|extra-data|version|hover-stop-propagation)$/,
|
|
@@ -8,6 +8,7 @@ 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' })
|
|
11
12
|
|
|
12
13
|
return {
|
|
13
14
|
test: TAG_NAME,
|
|
@@ -23,6 +24,10 @@ module.exports = function ({ print }) {
|
|
|
23
24
|
el.isBuiltIn = true
|
|
24
25
|
return 'mpx-picker-view'
|
|
25
26
|
},
|
|
27
|
+
harmony (tag, { el }) {
|
|
28
|
+
el.isBuiltIn = true
|
|
29
|
+
return 'mpx-picker-view'
|
|
30
|
+
},
|
|
26
31
|
props: [
|
|
27
32
|
{
|
|
28
33
|
test: /^(indicator-class|mask-class)$/,
|
|
@@ -37,7 +42,8 @@ module.exports = function ({ print }) {
|
|
|
37
42
|
tt: ttEventLog,
|
|
38
43
|
jd: jdEventLog,
|
|
39
44
|
ios: iosEventLog,
|
|
40
|
-
android: androidEventLog
|
|
45
|
+
android: androidEventLog,
|
|
46
|
+
harmony: harmonyEventLog
|
|
41
47
|
}
|
|
42
48
|
]
|
|
43
49
|
}
|
|
@@ -10,6 +10,7 @@ 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 })
|
|
13
14
|
|
|
14
15
|
return {
|
|
15
16
|
test: TAG_NAME,
|
|
@@ -25,6 +26,10 @@ module.exports = function ({ print }) {
|
|
|
25
26
|
el.isBuiltIn = true
|
|
26
27
|
return 'mpx-picker'
|
|
27
28
|
},
|
|
29
|
+
harmony (tag, { el }) {
|
|
30
|
+
el.isBuiltIn = true
|
|
31
|
+
return 'mpx-picker'
|
|
32
|
+
},
|
|
28
33
|
props: [
|
|
29
34
|
{
|
|
30
35
|
test: 'mode',
|
|
@@ -43,7 +48,8 @@ module.exports = function ({ print }) {
|
|
|
43
48
|
jd: jdPropLog,
|
|
44
49
|
qa: qaPropLog,
|
|
45
50
|
ios: iosPropLog,
|
|
46
|
-
android: androidPropLog
|
|
51
|
+
android: androidPropLog,
|
|
52
|
+
harmony: harmonyPropLog
|
|
47
53
|
}
|
|
48
54
|
],
|
|
49
55
|
event: [
|
|
@@ -14,6 +14,8 @@ 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 })
|
|
17
19
|
const iosEventLog = print({ platform: 'ios', tag: TAG_NAME, isError: false, type: 'event' })
|
|
18
20
|
const iosPropLog = print({ platform: 'ios', tag: TAG_NAME, isError: false })
|
|
19
21
|
|
|
@@ -27,6 +29,10 @@ module.exports = function ({ print }) {
|
|
|
27
29
|
el.isBuiltIn = true
|
|
28
30
|
return 'mpx-scroll-view'
|
|
29
31
|
},
|
|
32
|
+
harmony (tag, { el }) {
|
|
33
|
+
el.isBuiltIn = true
|
|
34
|
+
return 'mpx-scroll-view'
|
|
35
|
+
},
|
|
30
36
|
ios (tag, { el }) {
|
|
31
37
|
el.isBuiltIn = true
|
|
32
38
|
return 'mpx-scroll-view'
|
|
@@ -55,7 +61,8 @@ module.exports = function ({ print }) {
|
|
|
55
61
|
{
|
|
56
62
|
test: /^(refresher-threshold|enable-passive|scroll-anchoring|using-sticky|fast-deceleration|enable-flex)$/,
|
|
57
63
|
android: androidPropLog,
|
|
58
|
-
ios: iosPropLog
|
|
64
|
+
ios: iosPropLog,
|
|
65
|
+
harmony: harmonyPropLog
|
|
59
66
|
},
|
|
60
67
|
{
|
|
61
68
|
test: /^(refresher-default-style|refresher-background)$/,
|
|
@@ -88,7 +95,8 @@ module.exports = function ({ print }) {
|
|
|
88
95
|
{
|
|
89
96
|
test: /^(refresherpulling|refresherrestore|refresherabort)$/,
|
|
90
97
|
android: androidEventLog,
|
|
91
|
-
ios: iosEventLog
|
|
98
|
+
ios: iosEventLog,
|
|
99
|
+
harmony: harmonyEventLog
|
|
92
100
|
}
|
|
93
101
|
]
|
|
94
102
|
}
|