@mpxjs/webpack-plugin 2.10.17-beta.3 → 2.10.17-beta.6
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 +60 -0
- package/lib/file-loader.js +4 -1
- package/lib/global.d.ts +245 -0
- package/lib/index.js +29 -2
- package/lib/json-compiler/index.js +13 -4
- package/lib/loader.js +4 -0
- package/lib/platform/json/wx/index.js +6 -0
- package/lib/platform/style/wx/index.js +57 -33
- package/lib/platform/template/wx/component-config/ad.js +5 -0
- package/lib/platform/template/wx/component-config/button.js +10 -3
- package/lib/platform/template/wx/component-config/camera.js +25 -3
- package/lib/platform/template/wx/component-config/canvas.js +8 -1
- package/lib/platform/template/wx/component-config/cover-image.js +7 -2
- package/lib/platform/template/wx/component-config/cover-view.js +3 -1
- package/lib/platform/template/wx/component-config/form.js +27 -2
- package/lib/platform/template/wx/component-config/image.js +5 -0
- package/lib/platform/template/wx/component-config/input.js +11 -1
- package/lib/platform/template/wx/component-config/label.js +10 -2
- package/lib/platform/template/wx/component-config/map.js +11 -0
- package/lib/platform/template/wx/component-config/movable-area.js +4 -1
- package/lib/platform/template/wx/component-config/movable-view.js +17 -2
- package/lib/platform/template/wx/component-config/navigator.js +26 -0
- package/lib/platform/template/wx/component-config/picker-view.js +12 -0
- package/lib/platform/template/wx/component-config/picker.js +3 -1
- package/lib/platform/template/wx/component-config/progress.js +11 -1
- package/lib/platform/template/wx/component-config/rich-text.js +5 -0
- package/lib/platform/template/wx/component-config/scroll-view.js +12 -1
- package/lib/platform/template/wx/component-config/slider.js +8 -0
- package/lib/platform/template/wx/component-config/swiper-item.js +5 -2
- package/lib/platform/template/wx/component-config/swiper.js +10 -0
- package/lib/platform/template/wx/component-config/text.js +5 -0
- package/lib/platform/template/wx/component-config/textarea.js +20 -3
- package/lib/platform/template/wx/component-config/unsupported.js +10 -1
- package/lib/platform/template/wx/component-config/video.js +10 -0
- package/lib/platform/template/wx/index.js +21 -1
- package/lib/react/LoadAsyncChunkModule.js +1 -1
- package/lib/react/processStyles.js +21 -9
- package/lib/react/style-helper.js +76 -13
- package/lib/resolver/AddModePlugin.js +23 -8
- package/lib/runtime/components/react/animationHooks/index.ts +75 -0
- package/lib/runtime/components/react/animationHooks/useAnimationAPIHooks.ts +198 -0
- package/lib/runtime/components/react/animationHooks/useTransitionHooks.ts +297 -0
- package/lib/runtime/components/react/animationHooks/utils.ts +196 -0
- package/lib/runtime/components/react/context.ts +7 -1
- package/lib/runtime/components/react/dist/animationHooks/index.d.ts +15 -0
- package/lib/runtime/components/react/dist/animationHooks/index.js +67 -0
- package/lib/runtime/components/react/dist/animationHooks/useAnimationAPIHooks.d.ts +3 -0
- package/lib/runtime/components/react/dist/animationHooks/useAnimationAPIHooks.js +182 -0
- package/lib/runtime/components/react/dist/animationHooks/useTransitionHooks.d.ts +3 -0
- package/lib/runtime/components/react/dist/animationHooks/useTransitionHooks.js +274 -0
- package/lib/runtime/components/react/dist/animationHooks/utils.d.ts +109 -0
- package/lib/runtime/components/react/dist/animationHooks/utils.js +150 -0
- package/lib/runtime/components/react/dist/context.d.ts +6 -2
- package/lib/runtime/components/react/dist/event.config.d.ts +0 -1
- package/lib/runtime/components/react/dist/getInnerListeners.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-async-suspense.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-button.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-camera.d.ts +31 -0
- package/lib/runtime/components/react/dist/mpx-camera.jsx +236 -0
- package/lib/runtime/components/react/dist/mpx-canvas/Bus.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-canvas/CanvasGradient.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-canvas/CanvasRenderingContext2D.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-canvas/Image.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-canvas/ImageData.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-canvas/constructorsRegistry.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-canvas/html.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-canvas/index.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-canvas/utils.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-checkbox-group.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-checkbox.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-form.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-icon/index.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-image.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-inline-text.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-input.d.ts +2 -1
- package/lib/runtime/components/react/dist/mpx-input.jsx +10 -9
- package/lib/runtime/components/react/dist/mpx-keyboard-avoiding-view.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-keyboard-avoiding-view.jsx +7 -2
- package/lib/runtime/components/react/dist/mpx-label.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-movable-area.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-movable-view.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-nav.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-navigator.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-picker/date.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-picker/dateData.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-picker/index.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-picker/multiSelector.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-picker/region.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-picker/regionData.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-picker/selector.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-picker/time.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-picker/type.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-picker-view/index.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-picker-view/pickerVIewContext.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-picker-view-column/index.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewColumnItem.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewColumnItemLite.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewFaces.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewIndicator.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewMask.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-popup/index.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-popup/popupBase.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-portal/index.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-portal/portal-host.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-portal/portal-manager.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-portal/portal-manager.jsx +2 -2
- package/lib/runtime/components/react/dist/mpx-progress.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-radio-group.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-radio.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-rich-text/html.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-rich-text/index.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-root-portal.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-scroll-view.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-simple-text.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-simple-view.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-slider.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-sticky-header.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-sticky-section.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-swiper-item.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-swiper.d.ts +11 -1
- package/lib/runtime/components/react/dist/mpx-swiper.jsx +71 -39
- package/lib/runtime/components/react/dist/mpx-switch.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-text.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-textarea.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-video.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-view.d.ts +3 -3
- package/lib/runtime/components/react/dist/mpx-view.jsx +22 -8
- package/lib/runtime/components/react/dist/mpx-web-view.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-web-view.jsx +1 -1
- package/lib/runtime/components/react/dist/parser.d.ts +0 -1
- package/lib/runtime/components/react/dist/useNodesRef.d.ts +0 -1
- package/lib/runtime/components/react/dist/utils.d.ts +1 -1
- package/lib/runtime/components/react/dist/utils.jsx +34 -13
- package/lib/runtime/components/react/mpx-camera.tsx +327 -0
- package/lib/runtime/components/react/mpx-input.tsx +15 -9
- package/lib/runtime/components/react/mpx-keyboard-avoiding-view.tsx +7 -2
- package/lib/runtime/components/react/mpx-portal/portal-manager.tsx +2 -2
- package/lib/runtime/components/react/mpx-swiper.tsx +86 -37
- package/lib/runtime/components/react/mpx-view.tsx +27 -12
- package/lib/runtime/components/react/mpx-web-view.tsx +1 -1
- package/lib/runtime/components/react/tsconfig.json +26 -0
- package/lib/runtime/components/react/types/global.d.ts +1 -0
- package/lib/runtime/components/react/utils.tsx +34 -16
- package/lib/runtime/optionProcessor.js +5 -0
- package/lib/runtime/optionProcessorReact.js +7 -0
- package/lib/runtime/stringify.wxs +2 -2
- package/lib/style-compiler/strip-conditional-loader/rebaseUrl.js +225 -0
- package/lib/style-compiler/strip-conditional-loader.js +76 -185
- package/lib/template-compiler/compiler.js +1 -3
- package/lib/utils/dom-tag-config.js +1 -1
- package/lib/utils/string.js +25 -1
- package/package.json +6 -4
- package/lib/runtime/components/react/dist/context.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/event.config.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/getInnerListeners.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-async-suspense.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-button.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-canvas/Bus.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-canvas/CanvasGradient.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-canvas/CanvasRenderingContext2D.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-canvas/Image.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-canvas/ImageData.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-canvas/constructorsRegistry.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-canvas/html.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-canvas/index.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-canvas/utils.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-checkbox-group.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-checkbox.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-form.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-icon/index.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-image.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-inline-text.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-input.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-keyboard-avoiding-view.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-label.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-movable-area.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-movable-view.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-nav.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-navigator.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-picker/date.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-picker/dateData.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-picker/index.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-picker/multiSelector.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-picker/region.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-picker/regionData.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-picker/selector.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-picker/time.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-picker/type.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-picker-view/index.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-picker-view/pickerVIewContext.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-picker-view-column/index.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewColumnItem.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewColumnItemLite.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewFaces.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewIndicator.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewMask.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-popup/index.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-popup/popupBase.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-portal/index.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-portal/portal-host.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-portal/portal-manager.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-progress.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-radio-group.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-radio.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-rich-text/html.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-rich-text/index.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-root-portal.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-scroll-view.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-simple-text.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-simple-view.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-slider.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-sticky-header.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-sticky-section.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-swiper-item.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-swiper.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-switch.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-text.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-textarea.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-video.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-view.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/mpx-web-view.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/parser.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/useAnimationHooks.d.ts +0 -33
- package/lib/runtime/components/react/dist/useAnimationHooks.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/useAnimationHooks.js +0 -289
- package/lib/runtime/components/react/dist/useNodesRef.d.ts.map +0 -1
- package/lib/runtime/components/react/dist/utils.d.ts.map +0 -1
- package/lib/runtime/components/react/useAnimationHooks.ts +0 -320
|
@@ -13,8 +13,23 @@ 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
|
+
|
|
16
19
|
return {
|
|
17
20
|
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
|
+
},
|
|
18
33
|
props: [
|
|
19
34
|
{
|
|
20
35
|
test: 'mode',
|
|
@@ -46,7 +61,8 @@ module.exports = function ({ print }) {
|
|
|
46
61
|
},
|
|
47
62
|
{
|
|
48
63
|
test: /^(resolution|frame-size)$/,
|
|
49
|
-
qq: qqPropLog
|
|
64
|
+
qq: qqPropLog,
|
|
65
|
+
ks: ksPropLog
|
|
50
66
|
},
|
|
51
67
|
{
|
|
52
68
|
test: /^(frame-size|device-position)$/,
|
|
@@ -73,11 +89,17 @@ module.exports = function ({ print }) {
|
|
|
73
89
|
test: /^(scancode)$/,
|
|
74
90
|
swan: baiduEventLog,
|
|
75
91
|
tt: ttEventLog,
|
|
76
|
-
qa: qaEventLog
|
|
92
|
+
qa: qaEventLog,
|
|
93
|
+
ks: ksEventLog
|
|
77
94
|
},
|
|
78
95
|
{
|
|
79
96
|
test: /^(initdone)$/,
|
|
80
|
-
qq: qqEventLog
|
|
97
|
+
qq: qqEventLog,
|
|
98
|
+
ks: ksEventLog
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
test: /^(stop|error)$/,
|
|
102
|
+
ks: ksEventLog
|
|
81
103
|
}
|
|
82
104
|
]
|
|
83
105
|
}
|
|
@@ -6,6 +6,8 @@ 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' })
|
|
9
11
|
return {
|
|
10
12
|
test: TAG_NAME,
|
|
11
13
|
android (tag, { el }) {
|
|
@@ -37,6 +39,10 @@ module.exports = function ({ print }) {
|
|
|
37
39
|
{
|
|
38
40
|
test: 'type',
|
|
39
41
|
jd: jdPropLog
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
test: /^(type|disable-scroll)$/,
|
|
45
|
+
ks: ksPropLog
|
|
40
46
|
}
|
|
41
47
|
],
|
|
42
48
|
// 组件事件中的差异部分
|
|
@@ -63,7 +69,8 @@ module.exports = function ({ print }) {
|
|
|
63
69
|
{
|
|
64
70
|
test: /^(longtap|error)$/,
|
|
65
71
|
tt: ttEventLog,
|
|
66
|
-
qa: qaEventLog
|
|
72
|
+
qa: qaEventLog,
|
|
73
|
+
ks: ksEventLog
|
|
67
74
|
}
|
|
68
75
|
]
|
|
69
76
|
}
|
|
@@ -2,9 +2,12 @@ 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' })
|
|
5
6
|
const iosPropLog = print({ platform: 'ios', tag: TAG_NAME, isError: false })
|
|
6
7
|
const androidPropLog = print({ platform: 'android', tag: TAG_NAME, isError: false })
|
|
7
8
|
const harmonyPropLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false })
|
|
9
|
+
const ksPropLog = print({ platform: 'ks', tag: TAG_NAME, isError: false })
|
|
10
|
+
|
|
8
11
|
return {
|
|
9
12
|
test: TAG_NAME,
|
|
10
13
|
web (tag, { el }) {
|
|
@@ -37,13 +40,15 @@ module.exports = function ({ print }) {
|
|
|
37
40
|
test: /^(referrer-policy)$/,
|
|
38
41
|
ios: iosPropLog,
|
|
39
42
|
android: androidPropLog,
|
|
40
|
-
harmony: harmonyPropLog
|
|
43
|
+
harmony: harmonyPropLog,
|
|
44
|
+
ks: ksPropLog
|
|
41
45
|
}
|
|
42
46
|
],
|
|
43
47
|
event: [
|
|
44
48
|
{
|
|
45
49
|
test: /^(load|error)$/,
|
|
46
|
-
ali: aliEventLog
|
|
50
|
+
ali: aliEventLog,
|
|
51
|
+
ks: ksEventLog
|
|
47
52
|
}
|
|
48
53
|
]
|
|
49
54
|
}
|
|
@@ -4,6 +4,7 @@ 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 })
|
|
7
8
|
|
|
8
9
|
return {
|
|
9
10
|
test: TAG_NAME,
|
|
@@ -41,7 +42,8 @@ module.exports = function ({ print }) {
|
|
|
41
42
|
baiduValueLogError({ name, value })
|
|
42
43
|
}
|
|
43
44
|
},
|
|
44
|
-
web: webPropLog
|
|
45
|
+
web: webPropLog,
|
|
46
|
+
ks: ksPropLog
|
|
45
47
|
},
|
|
46
48
|
{
|
|
47
49
|
test: 'use-built-in',
|
|
@@ -10,6 +10,16 @@ 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' })
|
|
13
23
|
|
|
14
24
|
return {
|
|
15
25
|
test: TAG_NAME,
|
|
@@ -39,12 +49,27 @@ module.exports = function ({ print }) {
|
|
|
39
49
|
qq: qqPropLog
|
|
40
50
|
},
|
|
41
51
|
{
|
|
42
|
-
test: /^(report-submit|report-submit-timeout)$/,
|
|
52
|
+
test: /^(report-submit|report-submit-timeout|submitToGroup)$/,
|
|
43
53
|
web: webPropLog,
|
|
44
54
|
qa: qaPropLog,
|
|
45
55
|
ios: iosPropLog,
|
|
46
56
|
android: androidPropLog,
|
|
47
|
-
harmony: harmonyPropLog
|
|
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
|
|
48
73
|
}
|
|
49
74
|
]
|
|
50
75
|
}
|
|
@@ -9,6 +9,7 @@ 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 })
|
|
12
13
|
|
|
13
14
|
return {
|
|
14
15
|
test: TAG_NAME,
|
|
@@ -55,6 +56,10 @@ module.exports = function ({ print }) {
|
|
|
55
56
|
ios: iosPropLog,
|
|
56
57
|
android: androidPropLog,
|
|
57
58
|
harmony: harmonyPropLog
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
test: /^(webp|forceHttps|show-menu-by-longpress|fade-in)$/,
|
|
62
|
+
ks: ksPropLog
|
|
58
63
|
}
|
|
59
64
|
]
|
|
60
65
|
}
|
|
@@ -12,6 +12,8 @@ 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' })
|
|
15
17
|
const qaPropLog = print({ platform: 'qa', tag: TAG_NAME, isError: false })
|
|
16
18
|
const iosValueLogError = print({ platform: 'ios', tag: TAG_NAME, isError: true, type: 'value' })
|
|
17
19
|
const iosPropLog = print({ platform: 'ios', tag: TAG_NAME, isError: false })
|
|
@@ -105,10 +107,14 @@ module.exports = function ({ print }) {
|
|
|
105
107
|
qa: qaPropLog
|
|
106
108
|
},
|
|
107
109
|
{
|
|
108
|
-
test: /^(always-embed|
|
|
110
|
+
test: /^(always-embed|safe-password-.+)$/,
|
|
109
111
|
ios: iosPropLog,
|
|
110
112
|
android: androidPropLog,
|
|
111
113
|
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
|
|
112
118
|
}
|
|
113
119
|
],
|
|
114
120
|
event: [
|
|
@@ -129,6 +135,10 @@ module.exports = function ({ print }) {
|
|
|
129
135
|
ios: iosEventLog,
|
|
130
136
|
android: androidEventLog,
|
|
131
137
|
harmony: harmonyEventLog
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
test: /^(change|nicknamereview|selectionchange|keyboardcompositionstart|keyboardcompositionupdate|keyboardcompositionend|onkeyboardheightchange)$/,
|
|
141
|
+
ks: ksEventLog
|
|
132
142
|
}
|
|
133
143
|
]
|
|
134
144
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
const TAG_NAME = 'label'
|
|
2
2
|
|
|
3
|
-
module.exports = function () {
|
|
3
|
+
module.exports = function ({ print }) {
|
|
4
|
+
const ksPropLog = print({ platform: 'ks', tag: TAG_NAME, isError: false })
|
|
5
|
+
|
|
4
6
|
return {
|
|
5
7
|
test: TAG_NAME,
|
|
6
8
|
ios (tag, { el }) {
|
|
@@ -14,6 +16,12 @@ module.exports = function () {
|
|
|
14
16
|
harmony (tag, { el }) {
|
|
15
17
|
el.isBuiltIn = true
|
|
16
18
|
return 'mpx-label'
|
|
17
|
-
}
|
|
19
|
+
},
|
|
20
|
+
props: [
|
|
21
|
+
{
|
|
22
|
+
test: /^(for)$/,
|
|
23
|
+
ks: ksPropLog
|
|
24
|
+
}
|
|
25
|
+
]
|
|
18
26
|
}
|
|
19
27
|
}
|
|
@@ -12,6 +12,9 @@ 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
|
+
|
|
15
18
|
return {
|
|
16
19
|
// 匹配标签名,可传递正则
|
|
17
20
|
test: TAG_NAME,
|
|
@@ -55,6 +58,10 @@ module.exports = function ({ print }) {
|
|
|
55
58
|
{
|
|
56
59
|
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)$/,
|
|
57
60
|
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
|
|
58
65
|
}
|
|
59
66
|
],
|
|
60
67
|
// 组件事件中的差异部分
|
|
@@ -93,6 +100,10 @@ module.exports = function ({ print }) {
|
|
|
93
100
|
{
|
|
94
101
|
test: /^(labeltap|anchorpointtap)$/,
|
|
95
102
|
qa: qaEventLogError
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
test: /^(updated|regionchange|poitap|polylinetap|abilitysuccess|abilityfail|authsuccess|interpolatepoint|error)$/,
|
|
106
|
+
ks: ksEventLogError
|
|
96
107
|
}
|
|
97
108
|
]
|
|
98
109
|
}
|
|
@@ -4,6 +4,8 @@ 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
|
+
|
|
7
9
|
return {
|
|
8
10
|
test: TAG_NAME,
|
|
9
11
|
web (tag, { el }) {
|
|
@@ -27,7 +29,8 @@ module.exports = function ({ print }) {
|
|
|
27
29
|
test: /^(scale-area)$/,
|
|
28
30
|
ios: iosPropLog,
|
|
29
31
|
android: androidPropLog,
|
|
30
|
-
harmony: harmonyPropLog
|
|
32
|
+
harmony: harmonyPropLog,
|
|
33
|
+
ks: ksPropLog
|
|
31
34
|
}
|
|
32
35
|
]
|
|
33
36
|
}
|
|
@@ -9,6 +9,9 @@ module.exports = function ({ print }) {
|
|
|
9
9
|
const androidPropLog = print({ platform: 'android', tag: TAG_NAME, isError: false })
|
|
10
10
|
const harmonyPropLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false })
|
|
11
11
|
const iosPropLog = print({ platform: 'ios', tag: TAG_NAME, isError: false })
|
|
12
|
+
const ksPropLog = print({ platform: 'ks', tag: TAG_NAME, isError: false })
|
|
13
|
+
const ksEventLog = print({ platform: 'ks', tag: TAG_NAME, isError: false, type: 'event' })
|
|
14
|
+
|
|
12
15
|
return {
|
|
13
16
|
test: TAG_NAME,
|
|
14
17
|
web (tag, { el }) {
|
|
@@ -36,7 +39,18 @@ module.exports = function ({ print }) {
|
|
|
36
39
|
harmony: harmonyPropLog
|
|
37
40
|
},
|
|
38
41
|
{
|
|
39
|
-
test: /^(
|
|
42
|
+
test: /^(inertia)$/,
|
|
43
|
+
ks: ksPropLog
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
test: /^(damping|friction)$/,
|
|
47
|
+
ios: iosPropLog,
|
|
48
|
+
android: androidPropLog,
|
|
49
|
+
harmony: harmonyPropLog,
|
|
50
|
+
ks: ksPropLog
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
test: /^(scale|scale-min|scale-max|scale-value)$/,
|
|
40
54
|
ios: iosPropLog,
|
|
41
55
|
android: androidPropLog,
|
|
42
56
|
harmony: harmonyPropLog
|
|
@@ -45,7 +59,8 @@ module.exports = function ({ print }) {
|
|
|
45
59
|
event: [
|
|
46
60
|
{
|
|
47
61
|
test: /^(htouchmove|vtouchmove)$/,
|
|
48
|
-
ali: aliEventLog
|
|
62
|
+
ali: aliEventLog,
|
|
63
|
+
ks: ksEventLog
|
|
49
64
|
},
|
|
50
65
|
{
|
|
51
66
|
test: /^(bindscale)$/,
|
|
@@ -22,6 +22,16 @@ module.exports = function ({ print }) {
|
|
|
22
22
|
const qaEventLog = print({ platform: 'qa', tag: TAG_NAME, isError: false, type: 'event' })
|
|
23
23
|
const qaPropLog = print({ platform: 'qa', tag: TAG_NAME, isError: false })
|
|
24
24
|
const qaValueLogError = print({ platform: 'qa', tag: TAG_NAME, isError: true, type: 'value' })
|
|
25
|
+
const ksPropLog = print({ platform: 'ks', tag: TAG_NAME, isError: false })
|
|
26
|
+
const ksEventLog = print({ platform: 'ks', tag: TAG_NAME, isError: false, type: 'event' })
|
|
27
|
+
const iosPropLog = print({ platform: 'ios', tag: TAG_NAME, isError: false })
|
|
28
|
+
const iosEventLog = print({ platform: 'ios', tag: TAG_NAME, isError: false, type: 'event' })
|
|
29
|
+
const androidPropLog = print({ platform: 'android', tag: TAG_NAME, isError: false })
|
|
30
|
+
const androidEventLog = print({ platform: 'android', tag: TAG_NAME, isError: false, type: 'event' })
|
|
31
|
+
const harmonyPropLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false })
|
|
32
|
+
const harmonyEventLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false, type: 'event' })
|
|
33
|
+
const jdPropLog = print({ platform: 'jd', tag: TAG_NAME, isError: false })
|
|
34
|
+
|
|
25
35
|
return {
|
|
26
36
|
test: TAG_NAME,
|
|
27
37
|
web (tag, { el }) {
|
|
@@ -103,6 +113,18 @@ module.exports = function ({ print }) {
|
|
|
103
113
|
{
|
|
104
114
|
test: /^(target|app-id|path|extra-data|version)$/,
|
|
105
115
|
web: webPropLog
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
test: /^(short-link)$/,
|
|
119
|
+
ks: ksPropLog,
|
|
120
|
+
web: webPropLog,
|
|
121
|
+
ios: iosPropLog,
|
|
122
|
+
android: androidPropLog,
|
|
123
|
+
harmony: harmonyPropLog,
|
|
124
|
+
jd: jdPropLog,
|
|
125
|
+
ali: aliPropLog,
|
|
126
|
+
tt: ttPropLog,
|
|
127
|
+
qa: qaPropLog
|
|
106
128
|
}
|
|
107
129
|
],
|
|
108
130
|
event: [
|
|
@@ -112,6 +134,10 @@ module.exports = function ({ print }) {
|
|
|
112
134
|
tt: ttEventLog,
|
|
113
135
|
web: webEventLog,
|
|
114
136
|
qa: qaEventLog,
|
|
137
|
+
ks: ksEventLog,
|
|
138
|
+
ios: iosEventLog,
|
|
139
|
+
android: androidEventLog,
|
|
140
|
+
harmony: harmonyEventLog,
|
|
115
141
|
jd (eventName) {
|
|
116
142
|
const eventMap = {
|
|
117
143
|
success: 'success',
|
|
@@ -9,6 +9,8 @@ module.exports = function ({ print }) {
|
|
|
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
11
|
const harmonyEventLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false, type: 'event' })
|
|
12
|
+
const ksEventLog = print({ platform: 'ks', tag: TAG_NAME, isError: false, type: 'event' })
|
|
13
|
+
const webEventLog = print({ platform: 'web', tag: TAG_NAME, isError: false, type: 'event' })
|
|
12
14
|
|
|
13
15
|
return {
|
|
14
16
|
test: TAG_NAME,
|
|
@@ -44,6 +46,16 @@ module.exports = function ({ print }) {
|
|
|
44
46
|
ios: iosEventLog,
|
|
45
47
|
android: androidEventLog,
|
|
46
48
|
harmony: harmonyEventLog
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
test: /^(immediate-change)$/,
|
|
52
|
+
swan: baiduEventLog,
|
|
53
|
+
ks: ksEventLog,
|
|
54
|
+
ios: iosEventLog,
|
|
55
|
+
android: androidEventLog,
|
|
56
|
+
harmony: harmonyEventLog,
|
|
57
|
+
web: webEventLog,
|
|
58
|
+
jd: jdEventLog
|
|
47
59
|
}
|
|
48
60
|
]
|
|
49
61
|
}
|
|
@@ -11,6 +11,7 @@ module.exports = function ({ print }) {
|
|
|
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
13
|
const harmonyPropLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false })
|
|
14
|
+
const ksPropLog = print({ platform: 'ks', tag: TAG_NAME, isError: false })
|
|
14
15
|
|
|
15
16
|
return {
|
|
16
17
|
test: TAG_NAME,
|
|
@@ -49,7 +50,8 @@ module.exports = function ({ print }) {
|
|
|
49
50
|
qa: qaPropLog,
|
|
50
51
|
ios: iosPropLog,
|
|
51
52
|
android: androidPropLog,
|
|
52
|
-
harmony: harmonyPropLog
|
|
53
|
+
harmony: harmonyPropLog,
|
|
54
|
+
ks: ksPropLog
|
|
53
55
|
}
|
|
54
56
|
],
|
|
55
57
|
event: [
|
|
@@ -10,6 +10,7 @@ module.exports = function ({ print }) {
|
|
|
10
10
|
const jdPropLog = print({ platform: 'jd', tag: TAG_NAME, isError: false })
|
|
11
11
|
const jdEventLog = print({ platform: 'jd', tag: TAG_NAME, isError: false, type: 'event' })
|
|
12
12
|
const qqPropLog = print({ platform: 'qq', tag: TAG_NAME, isError: false })
|
|
13
|
+
const ksEventLog = print({ platform: 'ks', tag: TAG_NAME, isError: false, type: 'event' })
|
|
13
14
|
|
|
14
15
|
return {
|
|
15
16
|
test: TAG_NAME,
|
|
@@ -55,6 +56,14 @@ module.exports = function ({ print }) {
|
|
|
55
56
|
}
|
|
56
57
|
obj.name = propsMap[obj.name]
|
|
57
58
|
return obj
|
|
59
|
+
},
|
|
60
|
+
ks (obj) {
|
|
61
|
+
const propsMap = {
|
|
62
|
+
activeColor: 'active-color',
|
|
63
|
+
backgroundColor: 'background-color'
|
|
64
|
+
}
|
|
65
|
+
obj.name = propsMap[obj.name]
|
|
66
|
+
return obj
|
|
58
67
|
}
|
|
59
68
|
},
|
|
60
69
|
{
|
|
@@ -76,7 +85,8 @@ module.exports = function ({ print }) {
|
|
|
76
85
|
ali: aliEventLog,
|
|
77
86
|
swan: baiduEventLog,
|
|
78
87
|
tt: ttEventLog,
|
|
79
|
-
jd: jdEventLog
|
|
88
|
+
jd: jdEventLog,
|
|
89
|
+
ks: ksEventLog
|
|
80
90
|
}
|
|
81
91
|
]
|
|
82
92
|
}
|
|
@@ -5,6 +5,7 @@ module.exports = function ({ print }) {
|
|
|
5
5
|
const baiduPropLog = print({ platform: 'baidu', tag: TAG_NAME, isError: false })
|
|
6
6
|
const ttPropLog = print({ platform: 'bytedance', tag: TAG_NAME, isError: false })
|
|
7
7
|
const jdPropLog = print({ platform: 'jd', tag: TAG_NAME, isError: false })
|
|
8
|
+
const ksPropLog = print({ platform: 'ks', tag: TAG_NAME, isError: false })
|
|
8
9
|
|
|
9
10
|
return {
|
|
10
11
|
test: TAG_NAME,
|
|
@@ -35,6 +36,10 @@ module.exports = function ({ print }) {
|
|
|
35
36
|
{
|
|
36
37
|
test: /^(nodes)$/,
|
|
37
38
|
jd: jdPropLog
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
test: /^(user-select)$/,
|
|
42
|
+
ks: ksPropLog
|
|
38
43
|
}
|
|
39
44
|
]
|
|
40
45
|
}
|
|
@@ -18,6 +18,8 @@ module.exports = function ({ print }) {
|
|
|
18
18
|
const harmonyPropLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false })
|
|
19
19
|
const iosEventLog = print({ platform: 'ios', tag: TAG_NAME, isError: false, type: 'event' })
|
|
20
20
|
const iosPropLog = print({ platform: 'ios', tag: TAG_NAME, isError: false })
|
|
21
|
+
const ksPropLog = print({ platform: 'ks', tag: TAG_NAME, isError: false })
|
|
22
|
+
const ksEventLog = print({ platform: 'ks', tag: TAG_NAME, isError: false, type: 'event' })
|
|
21
23
|
|
|
22
24
|
return {
|
|
23
25
|
test: TAG_NAME,
|
|
@@ -67,6 +69,10 @@ module.exports = function ({ print }) {
|
|
|
67
69
|
{
|
|
68
70
|
test: /^(refresher-default-style|refresher-background)$/,
|
|
69
71
|
ios: iosPropLog
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
test: /^(scroll-into-view-offset|enable-back-to-top|enable-passive|refresher-enabled|refresher-threshold|refresher-default-style|refresher-background|refresher-triggered|bounces|fast-deceleration|enable-flex|enhanced|paging-enabled|using-sticky|type|associative-container|reverse|clip|enable-back-to-top|cache-extent|min-drag-distance|scroll-into-view-within-extent|scroll-into-view-alignment|padding|refresher-two-level-enabled|refresher-two-level-triggered|refresher-two-level-threshold|refresher-two-level-close-threshold|refresher-two-level-close-threshold|refresher-two-level-scroll-enabled|refresher-ballistic-refresh-enabled|refresher-two-level-pinned|scroll-anchoring)$/,
|
|
75
|
+
ks: ksPropLog
|
|
70
76
|
}
|
|
71
77
|
],
|
|
72
78
|
event: [
|
|
@@ -90,13 +96,18 @@ module.exports = function ({ print }) {
|
|
|
90
96
|
ali: aliEventLog,
|
|
91
97
|
tt: ttEventLog,
|
|
92
98
|
qq: qqEventLog,
|
|
93
|
-
swan: baiduEventLog
|
|
99
|
+
swan: baiduEventLog,
|
|
100
|
+
ks: ksEventLog
|
|
94
101
|
},
|
|
95
102
|
{
|
|
96
103
|
test: /^(refresherpulling|refresherrestore|refresherabort)$/,
|
|
97
104
|
android: androidEventLog,
|
|
98
105
|
ios: iosEventLog,
|
|
99
106
|
harmony: harmonyEventLog
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
test: /^(scrollstart|scrollend|refresherwillrefresh|refresherstatuschange)$/,
|
|
110
|
+
ks: ksEventLog
|
|
100
111
|
}
|
|
101
112
|
]
|
|
102
113
|
}
|
|
@@ -60,6 +60,14 @@ module.exports = function ({ print }) {
|
|
|
60
60
|
}
|
|
61
61
|
obj.name = propsMap[obj.name]
|
|
62
62
|
return obj
|
|
63
|
+
},
|
|
64
|
+
ks (obj) {
|
|
65
|
+
const propsMap = {
|
|
66
|
+
activeColor: 'active-color',
|
|
67
|
+
backgroundColor: 'background-color'
|
|
68
|
+
}
|
|
69
|
+
obj.name = propsMap[obj.name]
|
|
70
|
+
return obj
|
|
63
71
|
}
|
|
64
72
|
}
|
|
65
73
|
]
|
|
@@ -9,6 +9,7 @@ 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 })
|
|
12
13
|
|
|
13
14
|
return {
|
|
14
15
|
test: TAG_NAME,
|
|
@@ -34,7 +35,8 @@ module.exports = function ({ print }) {
|
|
|
34
35
|
ali: aliPropLog,
|
|
35
36
|
ios: iosPropLog,
|
|
36
37
|
android: androidPropLog,
|
|
37
|
-
harmony: harmonyPropLog
|
|
38
|
+
harmony: harmonyPropLog,
|
|
39
|
+
ks: ksPropLog
|
|
38
40
|
},
|
|
39
41
|
{
|
|
40
42
|
test: /^(skip-hidden-item-layout)$/,
|
|
@@ -42,7 +44,8 @@ module.exports = function ({ print }) {
|
|
|
42
44
|
ali: aliPropLog,
|
|
43
45
|
tt: ttPropLog,
|
|
44
46
|
swan: baiduPropLog,
|
|
45
|
-
qq: qqPropLog
|
|
47
|
+
qq: qqPropLog,
|
|
48
|
+
ks: ksPropLog
|
|
46
49
|
}
|
|
47
50
|
]
|
|
48
51
|
}
|
|
@@ -7,6 +7,7 @@ module.exports = function ({ print }) {
|
|
|
7
7
|
const qqPropLog = print({ platform: 'qq', tag: TAG_NAME, isError: false })
|
|
8
8
|
const ttPropLog = print({ platform: 'bytedance', tag: TAG_NAME, isError: false })
|
|
9
9
|
const webPropLog = print({ platform: 'web', tag: TAG_NAME, isError: false })
|
|
10
|
+
const ksPropLog = print({ platform: 'ks', tag: TAG_NAME, isError: false })
|
|
10
11
|
const jdEventLog = print({ platform: 'jd', tag: TAG_NAME, isError: false, type: 'event' })
|
|
11
12
|
const jdPropLog = print({ platform: 'jd', tag: TAG_NAME, isError: false })
|
|
12
13
|
const qaPropLog = print({ platform: 'qa', tag: TAG_NAME, isError: false })
|
|
@@ -16,6 +17,7 @@ module.exports = function ({ print }) {
|
|
|
16
17
|
const androidEventLog = print({ platform: 'android', tag: TAG_NAME, isError: false, type: 'event' })
|
|
17
18
|
const harmonyPropLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false })
|
|
18
19
|
const harmonyEventLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false, type: 'event' })
|
|
20
|
+
const ksEventLog = print({ platform: 'ks', tag: TAG_NAME, isError: false, type: 'event' })
|
|
19
21
|
|
|
20
22
|
return {
|
|
21
23
|
test: TAG_NAME,
|
|
@@ -69,6 +71,10 @@ module.exports = function ({ print }) {
|
|
|
69
71
|
ios: iosPropLog,
|
|
70
72
|
android: androidPropLog,
|
|
71
73
|
harmony: harmonyPropLog
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
test: /^(snap-to-edge|previous-margin|next-margin|display-multiple-items|direction|layout-type|transformer-type|indicator-type|indicator-margin|indicator-spacing|indicator-radius|indicator-width|indicator-height|indicator-alignment|indicator-offset|scroll-with-animation|cache-extent)$/,
|
|
77
|
+
ks: ksPropLog
|
|
72
78
|
}
|
|
73
79
|
],
|
|
74
80
|
event: [
|
|
@@ -95,6 +101,10 @@ module.exports = function ({ print }) {
|
|
|
95
101
|
ios: iosEventLog,
|
|
96
102
|
android: androidEventLog,
|
|
97
103
|
harmony: harmonyEventLog
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
test: /^(onscrollstart|onscrollupdate|onscrollend)$/,
|
|
107
|
+
ks: ksEventLog
|
|
98
108
|
}
|
|
99
109
|
]
|
|
100
110
|
}
|
|
@@ -9,6 +9,7 @@ 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 })
|
|
12
13
|
|
|
13
14
|
return {
|
|
14
15
|
test: TAG_NAME,
|
|
@@ -74,6 +75,10 @@ module.exports = function ({ print }) {
|
|
|
74
75
|
el.isSimple = true
|
|
75
76
|
return false
|
|
76
77
|
}
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
test: /^(user-select|overflow|max-lines|decode)$/,
|
|
81
|
+
ks: ksPropLog
|
|
77
82
|
}
|
|
78
83
|
]
|
|
79
84
|
}
|