@mpxjs/webpack-plugin 2.10.16-beta.4 → 2.10.16-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 +13 -3
- package/lib/json-compiler/index.js +2 -2
- package/lib/loader.js +2 -2
- package/lib/platform/json/wx/index.js +6 -0
- package/lib/platform/template/wx/component-config/ad.js +5 -0
- package/lib/platform/template/wx/component-config/button.js +9 -2
- package/lib/platform/template/wx/component-config/camera.js +13 -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/fix-component-name.js +2 -2
- 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 +10 -0
- 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 +19 -2
- package/lib/platform/template/wx/component-config/unsupported.js +9 -0
- package/lib/platform/template/wx/component-config/video.js +10 -0
- package/lib/platform/template/wx/index.js +21 -1
- package/lib/runtime/components/react/context.ts +10 -6
- package/lib/runtime/components/react/dist/context.d.ts +75 -0
- package/lib/runtime/components/react/dist/context.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/event.config.d.ts +8 -0
- package/lib/runtime/components/react/dist/event.config.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/getInnerListeners.d.ts +8 -0
- package/lib/runtime/components/react/dist/getInnerListeners.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-async-suspense.d.ts +13 -0
- package/lib/runtime/components/react/dist/mpx-async-suspense.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-button.d.ts +69 -0
- package/lib/runtime/components/react/dist/mpx-button.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-camera.d.ts +28 -0
- package/lib/runtime/components/react/dist/mpx-camera.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-canvas/Bus.d.ts +24 -0
- package/lib/runtime/components/react/dist/mpx-canvas/Bus.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-canvas/CanvasGradient.d.ts +8 -0
- package/lib/runtime/components/react/dist/mpx-canvas/CanvasGradient.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-canvas/CanvasRenderingContext2D.d.ts +7 -0
- package/lib/runtime/components/react/dist/mpx-canvas/CanvasRenderingContext2D.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-canvas/Image.d.ts +21 -0
- package/lib/runtime/components/react/dist/mpx-canvas/Image.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-canvas/ImageData.d.ts +9 -0
- package/lib/runtime/components/react/dist/mpx-canvas/ImageData.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-canvas/constructorsRegistry.d.ts +11 -0
- package/lib/runtime/components/react/dist/mpx-canvas/constructorsRegistry.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-canvas/html.d.ts +3 -0
- package/lib/runtime/components/react/dist/mpx-canvas/html.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-canvas/index.d.ts +33 -0
- package/lib/runtime/components/react/dist/mpx-canvas/index.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-canvas/utils.d.ts +53 -0
- package/lib/runtime/components/react/dist/mpx-canvas/utils.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-checkbox-group.d.ts +21 -0
- package/lib/runtime/components/react/dist/mpx-checkbox-group.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-checkbox.d.ts +33 -0
- package/lib/runtime/components/react/dist/mpx-checkbox.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-form.d.ts +28 -0
- package/lib/runtime/components/react/dist/mpx-form.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-icon/index.d.ts +19 -0
- package/lib/runtime/components/react/dist/mpx-icon/index.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-image.d.ts +22 -0
- package/lib/runtime/components/react/dist/mpx-image.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-inline-text.d.ts +8 -0
- package/lib/runtime/components/react/dist/mpx-inline-text.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-input.d.ts +50 -0
- package/lib/runtime/components/react/dist/mpx-input.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-input.jsx +35 -9
- package/lib/runtime/components/react/dist/mpx-keyboard-avoiding-view.d.ts +13 -0
- package/lib/runtime/components/react/dist/mpx-keyboard-avoiding-view.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-keyboard-avoiding-view.jsx +46 -53
- package/lib/runtime/components/react/dist/mpx-label.d.ts +21 -0
- package/lib/runtime/components/react/dist/mpx-label.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-movable-area.d.ts +21 -0
- package/lib/runtime/components/react/dist/mpx-movable-area.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-movable-view.d.ts +66 -0
- package/lib/runtime/components/react/dist/mpx-movable-view.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-nav.d.ts +9 -0
- package/lib/runtime/components/react/dist/mpx-nav.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-nav.jsx +132 -0
- package/lib/runtime/components/react/dist/mpx-navigator.d.ts +10 -0
- package/lib/runtime/components/react/dist/mpx-navigator.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-picker/date.d.ts +7 -0
- package/lib/runtime/components/react/dist/mpx-picker/date.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-picker/dateData.d.ts +8 -0
- package/lib/runtime/components/react/dist/mpx-picker/dateData.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-picker/index.d.ts +7 -0
- package/lib/runtime/components/react/dist/mpx-picker/index.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-picker/multiSelector.d.ts +7 -0
- package/lib/runtime/components/react/dist/mpx-picker/multiSelector.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-picker/region.d.ts +7 -0
- package/lib/runtime/components/react/dist/mpx-picker/region.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-picker/regionData.d.ts +3 -0
- package/lib/runtime/components/react/dist/mpx-picker/regionData.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-picker/selector.d.ts +7 -0
- package/lib/runtime/components/react/dist/mpx-picker/selector.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-picker/time.d.ts +7 -0
- package/lib/runtime/components/react/dist/mpx-picker/time.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-picker/type.d.ts +107 -0
- package/lib/runtime/components/react/dist/mpx-picker/type.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-picker-view/index.d.ts +33 -0
- package/lib/runtime/components/react/dist/mpx-picker-view/index.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-picker-view/index.jsx +1 -1
- package/lib/runtime/components/react/dist/mpx-picker-view/pickerVIewContext.d.ts +9 -0
- package/lib/runtime/components/react/dist/mpx-picker-view/pickerVIewContext.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-picker-view-column/index.d.ts +24 -0
- package/lib/runtime/components/react/dist/mpx-picker-view-column/index.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-picker-view-column/index.jsx +3 -12
- package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewColumnItem.d.ts +15 -0
- package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewColumnItem.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewColumnItemLite.d.ts +14 -0
- package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewColumnItemLite.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewFaces.d.ts +17 -0
- package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewFaces.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewIndicator.d.ts +13 -0
- package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewIndicator.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewMask.d.ts +12 -0
- package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewMask.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-popup/index.d.ts +23 -0
- package/lib/runtime/components/react/dist/mpx-popup/index.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-popup/popupBase.d.ts +17 -0
- package/lib/runtime/components/react/dist/mpx-popup/popupBase.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-portal/index.d.ts +16 -0
- package/lib/runtime/components/react/dist/mpx-portal/index.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-portal/portal-host.d.ts +30 -0
- package/lib/runtime/components/react/dist/mpx-portal/portal-host.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-portal/portal-manager.d.ts +10 -0
- package/lib/runtime/components/react/dist/mpx-portal/portal-manager.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-progress.d.ts +24 -0
- package/lib/runtime/components/react/dist/mpx-progress.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-radio-group.d.ts +21 -0
- package/lib/runtime/components/react/dist/mpx-radio-group.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-radio.d.ts +27 -0
- package/lib/runtime/components/react/dist/mpx-radio.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-rich-text/html.d.ts +2 -0
- package/lib/runtime/components/react/dist/mpx-rich-text/html.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-rich-text/index.d.ts +25 -0
- package/lib/runtime/components/react/dist/mpx-rich-text/index.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-root-portal.d.ts +15 -0
- package/lib/runtime/components/react/dist/mpx-root-portal.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-scroll-view.d.ts +55 -0
- package/lib/runtime/components/react/dist/mpx-scroll-view.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-simple-text.d.ts +8 -0
- package/lib/runtime/components/react/dist/mpx-simple-text.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-simple-view.d.ts +8 -0
- package/lib/runtime/components/react/dist/mpx-simple-view.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-slider.d.ts +31 -0
- package/lib/runtime/components/react/dist/mpx-slider.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-sticky-header.d.ts +18 -0
- package/lib/runtime/components/react/dist/mpx-sticky-header.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-sticky-section.d.ts +16 -0
- package/lib/runtime/components/react/dist/mpx-sticky-section.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-swiper-item.d.ts +19 -0
- package/lib/runtime/components/react/dist/mpx-swiper-item.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-swiper.d.ts +53 -0
- package/lib/runtime/components/react/dist/mpx-swiper.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-switch.d.ts +27 -0
- package/lib/runtime/components/react/dist/mpx-switch.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-text.d.ts +23 -0
- package/lib/runtime/components/react/dist/mpx-text.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-textarea.d.ts +8 -0
- package/lib/runtime/components/react/dist/mpx-textarea.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-video.d.ts +102 -0
- package/lib/runtime/components/react/dist/mpx-video.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-view.d.ts +35 -0
- package/lib/runtime/components/react/dist/mpx-view.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/mpx-web-view.d.ts +23 -0
- package/lib/runtime/components/react/dist/mpx-web-view.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/parser.d.ts +40 -0
- package/lib/runtime/components/react/dist/parser.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/useAnimationHooks.d.ts +33 -0
- package/lib/runtime/components/react/dist/useAnimationHooks.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/useNodesRef.d.ts +12 -0
- package/lib/runtime/components/react/dist/useNodesRef.d.ts.map +1 -0
- package/lib/runtime/components/react/dist/utils.d.ts +123 -0
- package/lib/runtime/components/react/dist/utils.d.ts.map +1 -0
- package/lib/runtime/components/react/mpx-camera.tsx +1 -1
- package/lib/runtime/components/react/mpx-input.tsx +41 -16
- package/lib/runtime/components/react/mpx-keyboard-avoiding-view.tsx +48 -58
- package/lib/runtime/components/react/mpx-nav.tsx +155 -0
- package/lib/runtime/components/react/mpx-picker-view/index.tsx +1 -1
- package/lib/runtime/components/react/mpx-picker-view-column/index.tsx +7 -13
- package/lib/runtime/components/react/types/common.d.ts +19 -0
- package/lib/runtime/stringify.wxs +2 -2
- package/lib/style-compiler/strip-conditional-loader.js +27 -4
- package/lib/template-compiler/bind-this.js +2 -2
- package/lib/template-compiler/compiler.js +18 -17
- package/lib/template-compiler/index.js +6 -6
- package/lib/utils/dom-tag-config.js +5 -5
- package/package.json +4 -1
package/lib/config.js
CHANGED
|
@@ -553,6 +553,66 @@ module.exports = {
|
|
|
553
553
|
show: 'dd:show'
|
|
554
554
|
}
|
|
555
555
|
},
|
|
556
|
+
ks: {
|
|
557
|
+
typeExtMap: {
|
|
558
|
+
json: '.json',
|
|
559
|
+
script: '.js',
|
|
560
|
+
template: '.ksml',
|
|
561
|
+
styles: '.css'
|
|
562
|
+
},
|
|
563
|
+
tabBar: {
|
|
564
|
+
itemKey: 'list',
|
|
565
|
+
iconKey: 'iconPath',
|
|
566
|
+
activeIconKey: 'selectedIconPath'
|
|
567
|
+
},
|
|
568
|
+
event: {
|
|
569
|
+
parseEvent (attr) {
|
|
570
|
+
const match = /^(bind|catch|capture-bind|capture-catch):?(.*?)(?:\.(.*))?$/.exec(attr)
|
|
571
|
+
if (match) {
|
|
572
|
+
return {
|
|
573
|
+
prefix: match[1],
|
|
574
|
+
eventName: match[2],
|
|
575
|
+
modifier: match[3]
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
},
|
|
579
|
+
getEvent (eventName, prefix = 'bind') {
|
|
580
|
+
if (eventName.includes('-')) {
|
|
581
|
+
return `${prefix}:${eventName}`
|
|
582
|
+
} else {
|
|
583
|
+
return prefix + eventName
|
|
584
|
+
}
|
|
585
|
+
},
|
|
586
|
+
defaultModelProp: 'value',
|
|
587
|
+
defaultModelEvent: 'input',
|
|
588
|
+
defaultModelValuePath: 'value'
|
|
589
|
+
},
|
|
590
|
+
wxs: {
|
|
591
|
+
tag: 'ks',
|
|
592
|
+
module: 'module',
|
|
593
|
+
src: 'src',
|
|
594
|
+
ext: '.ks',
|
|
595
|
+
templatePrefix: 'module.exports = \n'
|
|
596
|
+
},
|
|
597
|
+
directive: {
|
|
598
|
+
if: 'ks:if',
|
|
599
|
+
elseif: 'ks:elif',
|
|
600
|
+
else: 'ks:else',
|
|
601
|
+
for: 'ks:for',
|
|
602
|
+
forIndex: 'ks:for-index',
|
|
603
|
+
forItem: 'ks:for-item',
|
|
604
|
+
key: 'ks:key',
|
|
605
|
+
dynamicClass: 'ks:class',
|
|
606
|
+
dynamicStyle: 'ks:style',
|
|
607
|
+
ref: 'ks:ref',
|
|
608
|
+
show: 'ks:show',
|
|
609
|
+
model: 'ks:model',
|
|
610
|
+
modelProp: 'ks:model-prop',
|
|
611
|
+
modelEvent: 'ks:model-event',
|
|
612
|
+
modelValuePath: 'ks:model-value-path',
|
|
613
|
+
modelFilter: 'ks:model-filter'
|
|
614
|
+
}
|
|
615
|
+
},
|
|
556
616
|
ios: reactConfig,
|
|
557
617
|
android: reactConfig,
|
|
558
618
|
harmony: reactConfig
|
package/lib/file-loader.js
CHANGED
|
@@ -8,7 +8,9 @@ module.exports = function loader (content, prevOptions) {
|
|
|
8
8
|
const options = prevOptions || loaderUtils.getOptions(this) || {}
|
|
9
9
|
const context = options.context || this.rootContext
|
|
10
10
|
const mpx = this.getMpx()
|
|
11
|
-
|
|
11
|
+
|
|
12
|
+
const { mode } = mpx
|
|
13
|
+
const isRN = ['ios', 'android', 'harmony'].includes(mode)
|
|
12
14
|
|
|
13
15
|
let url = loaderUtils.interpolateName(this, options.name, {
|
|
14
16
|
context,
|
|
@@ -17,6 +19,7 @@ module.exports = function loader (content, prevOptions) {
|
|
|
17
19
|
})
|
|
18
20
|
|
|
19
21
|
let outputPath = url
|
|
22
|
+
const { resourcePath, queryObj } = parseRequest(this.resource)
|
|
20
23
|
|
|
21
24
|
if (options.publicPath) {
|
|
22
25
|
if (options.outputPathCDN) {
|
|
@@ -27,13 +30,19 @@ module.exports = function loader (content, prevOptions) {
|
|
|
27
30
|
}
|
|
28
31
|
}
|
|
29
32
|
} else {
|
|
30
|
-
const { resourcePath, queryObj } = parseRequest(this.resource)
|
|
31
33
|
const packageRoot = queryObj.packageRoot || ''
|
|
32
34
|
url = outputPath = toPosix(path.join(packageRoot, outputPath))
|
|
33
35
|
this._module.addPresentationalDependency(new RecordResourceMapDependency(resourcePath, 'staticResource', outputPath, packageRoot))
|
|
34
36
|
}
|
|
35
37
|
|
|
36
|
-
let publicPath
|
|
38
|
+
let publicPath
|
|
39
|
+
|
|
40
|
+
// 快手小程序 tabbar icon 资源路径不能以 / 开头
|
|
41
|
+
if (queryObj.from === 'tabbar' && mode === 'ks') {
|
|
42
|
+
publicPath = JSON.stringify(url)
|
|
43
|
+
} else {
|
|
44
|
+
publicPath = `__webpack_public_path__ + ${JSON.stringify(url)}`
|
|
45
|
+
}
|
|
37
46
|
|
|
38
47
|
if (isRN) {
|
|
39
48
|
publicPath = `__mpx_require_external__(${JSON.stringify(url)})`
|
|
@@ -47,6 +56,7 @@ module.exports = function loader (content, prevOptions) {
|
|
|
47
56
|
? options.publicPath
|
|
48
57
|
: `${options.publicPath}/`}${url}`
|
|
49
58
|
}
|
|
59
|
+
|
|
50
60
|
publicPath = JSON.stringify(publicPath)
|
|
51
61
|
}
|
|
52
62
|
|
|
@@ -481,10 +481,10 @@ module.exports = function (content) {
|
|
|
481
481
|
if (json.tabBar && json.tabBar[itemKey]) {
|
|
482
482
|
json.tabBar[itemKey].forEach((item, index) => {
|
|
483
483
|
if (item[iconKey] && isUrlRequest(item[iconKey])) {
|
|
484
|
-
output += `json.tabBar.${itemKey}[${index}].${iconKey} = require("${addQuery(urlToRequest(item[iconKey]), { useLocal: true })}");\n`
|
|
484
|
+
output += `json.tabBar.${itemKey}[${index}].${iconKey} = require("${addQuery(urlToRequest(item[iconKey]), { useLocal: true, from: 'tabbar' })}");\n`
|
|
485
485
|
}
|
|
486
486
|
if (item[activeIconKey] && isUrlRequest(item[activeIconKey])) {
|
|
487
|
-
output += `json.tabBar.${itemKey}[${index}].${activeIconKey} = require("${addQuery(urlToRequest(item[activeIconKey]), { useLocal: true })}");\n`
|
|
487
|
+
output += `json.tabBar.${itemKey}[${index}].${activeIconKey} = require("${addQuery(urlToRequest(item[activeIconKey]), { useLocal: true, from: 'tabbar' })}");\n`
|
|
488
488
|
}
|
|
489
489
|
})
|
|
490
490
|
}
|
package/lib/loader.js
CHANGED
|
@@ -147,7 +147,7 @@ module.exports = function (content) {
|
|
|
147
147
|
hasScoped,
|
|
148
148
|
hasComment,
|
|
149
149
|
isNative,
|
|
150
|
-
usingComponentsInfo
|
|
150
|
+
usingComponentsInfo,
|
|
151
151
|
originalUsingComponents,
|
|
152
152
|
componentGenerics,
|
|
153
153
|
autoScope,
|
|
@@ -170,7 +170,7 @@ module.exports = function (content) {
|
|
|
170
170
|
hasScoped,
|
|
171
171
|
hasComment,
|
|
172
172
|
isNative,
|
|
173
|
-
usingComponentsInfo
|
|
173
|
+
usingComponentsInfo,
|
|
174
174
|
originalUsingComponents,
|
|
175
175
|
componentGenerics,
|
|
176
176
|
autoScope,
|
|
@@ -179,6 +179,7 @@ module.exports = function getSpec ({ warn, error }) {
|
|
|
179
179
|
swan: addGlobalComponents,
|
|
180
180
|
qq: addGlobalComponents,
|
|
181
181
|
tt: addGlobalComponents,
|
|
182
|
+
ks: addGlobalComponents,
|
|
182
183
|
jd: addGlobalComponents,
|
|
183
184
|
web: fixComponentName,
|
|
184
185
|
ios: fixComponentName,
|
|
@@ -284,6 +285,7 @@ module.exports = function getSpec ({ warn, error }) {
|
|
|
284
285
|
'swan',
|
|
285
286
|
'qq',
|
|
286
287
|
'tt',
|
|
288
|
+
'ks',
|
|
287
289
|
'jd',
|
|
288
290
|
'qa',
|
|
289
291
|
'dd',
|
|
@@ -401,6 +403,7 @@ module.exports = function getSpec ({ warn, error }) {
|
|
|
401
403
|
qq: fillGlobalComponents,
|
|
402
404
|
swan: fillGlobalComponents,
|
|
403
405
|
tt: fillGlobalComponents,
|
|
406
|
+
ks: fillGlobalComponents,
|
|
404
407
|
jd: fillGlobalComponents
|
|
405
408
|
},
|
|
406
409
|
{
|
|
@@ -408,6 +411,7 @@ module.exports = function getSpec ({ warn, error }) {
|
|
|
408
411
|
qq: deletePath({ noLog: true }),
|
|
409
412
|
swan: deletePath({ noLog: true }),
|
|
410
413
|
tt: deletePath({ noLog: true }),
|
|
414
|
+
ks: deletePath({ noLog: true }),
|
|
411
415
|
jd: deletePath({ noLog: true })
|
|
412
416
|
},
|
|
413
417
|
{
|
|
@@ -446,6 +450,7 @@ module.exports = function getSpec ({ warn, error }) {
|
|
|
446
450
|
qq: getTabBarRule(),
|
|
447
451
|
swan: getTabBarRule(),
|
|
448
452
|
tt: getTabBarRule(),
|
|
453
|
+
ks: getTabBarRule(),
|
|
449
454
|
jd: getTabBarRule()
|
|
450
455
|
},
|
|
451
456
|
{
|
|
@@ -454,6 +459,7 @@ module.exports = function getSpec ({ warn, error }) {
|
|
|
454
459
|
qq: getWindowRule(),
|
|
455
460
|
swan: getWindowRule(),
|
|
456
461
|
tt: getWindowRule(),
|
|
462
|
+
ks: getWindowRule(),
|
|
457
463
|
jd: getWindowRule()
|
|
458
464
|
}
|
|
459
465
|
]
|
|
@@ -8,6 +8,7 @@ module.exports = function ({ print }) {
|
|
|
8
8
|
const qqValueWarningLog = print({ platform: 'qq', type: 'value', tag: TAG_NAME, isError: false })
|
|
9
9
|
const qqPropLog = print({ platform: 'qq', tag: TAG_NAME, isError: false })
|
|
10
10
|
const qqEventLog = print({ platform: 'qq', tag: TAG_NAME, isError: false, type: 'event' })
|
|
11
|
+
const ksPropLog = print({ platform: 'ks', tag: TAG_NAME, isError: false })
|
|
11
12
|
return {
|
|
12
13
|
test: TAG_NAME,
|
|
13
14
|
props: [
|
|
@@ -43,6 +44,10 @@ module.exports = function ({ print }) {
|
|
|
43
44
|
test: /^(ad-intervals|ad-theme)$/,
|
|
44
45
|
qq: qqPropLog,
|
|
45
46
|
swan: baiduPropLog
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
test: /^(ad-intervals|ad-type|ad-params)$/,
|
|
50
|
+
ks: ksPropLog
|
|
46
51
|
}
|
|
47
52
|
],
|
|
48
53
|
event: [
|
|
@@ -29,6 +29,8 @@ module.exports = function ({ print }) {
|
|
|
29
29
|
const webPropLog = print({ platform: 'web', tag: TAG_NAME, isError: false })
|
|
30
30
|
const webEventLog = print({ platform: 'web', tag: TAG_NAME, isError: false, type: 'event' })
|
|
31
31
|
const qaPropLog = print({ platform: 'qa', tag: TAG_NAME, isError: false })
|
|
32
|
+
const ksPropLog = print({ platform: 'ks', tag: TAG_NAME, isError: false })
|
|
33
|
+
const ksEventLog = print({ platform: 'ks', tag: TAG_NAME, isError: false, type: 'event' })
|
|
32
34
|
const wxPropValueLog = print({ platform: 'wx', tag: TAG_NAME, isError: false, type: 'value' })
|
|
33
35
|
const iosValueLogError = print({ platform: 'ios', tag: TAG_NAME, isError: true, type: 'value' })
|
|
34
36
|
const iosValueLog = print({ platform: 'ios', tag: TAG_NAME, isError: false, type: 'value' })
|
|
@@ -199,6 +201,10 @@ module.exports = function ({ print }) {
|
|
|
199
201
|
ios: iosPropLog,
|
|
200
202
|
android: androidPropLog,
|
|
201
203
|
harmony: harmonyPropLog
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
test: /^(hover-stop-propagation|session-from|send-message-title|send-message-path|send-message-img|app-parameter|show-message-card|app-parameter|phone-number-no-quota-toast|need-show-entrance|entrance-path)$/,
|
|
207
|
+
ks: ksPropLog
|
|
202
208
|
}
|
|
203
209
|
],
|
|
204
210
|
event: [
|
|
@@ -233,10 +239,11 @@ module.exports = function ({ print }) {
|
|
|
233
239
|
web: webEventLog
|
|
234
240
|
},
|
|
235
241
|
{
|
|
236
|
-
test: /^(getuserinfo|contact|getphonenumber|
|
|
242
|
+
test: /^(getuserinfo|contact|getphonenumber|getrealtimephonenumber|error|opensetting|launchapp|chooseavatar|agreeprivacyauthorization)$/,
|
|
237
243
|
ios: iosEventLog,
|
|
238
244
|
android: androidEventLog,
|
|
239
|
-
harmony: harmonyEventLog
|
|
245
|
+
harmony: harmonyEventLog,
|
|
246
|
+
ks: ksEventLog
|
|
240
247
|
}
|
|
241
248
|
]
|
|
242
249
|
}
|
|
@@ -13,6 +13,9 @@ 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,
|
|
18
21
|
ios (tag, { el }) {
|
|
@@ -58,7 +61,8 @@ module.exports = function ({ print }) {
|
|
|
58
61
|
},
|
|
59
62
|
{
|
|
60
63
|
test: /^(resolution|frame-size)$/,
|
|
61
|
-
qq: qqPropLog
|
|
64
|
+
qq: qqPropLog,
|
|
65
|
+
ks: ksPropLog
|
|
62
66
|
},
|
|
63
67
|
{
|
|
64
68
|
test: /^(frame-size|device-position)$/,
|
|
@@ -85,11 +89,17 @@ module.exports = function ({ print }) {
|
|
|
85
89
|
test: /^(scancode)$/,
|
|
86
90
|
swan: baiduEventLog,
|
|
87
91
|
tt: ttEventLog,
|
|
88
|
-
qa: qaEventLog
|
|
92
|
+
qa: qaEventLog,
|
|
93
|
+
ks: ksEventLog
|
|
89
94
|
},
|
|
90
95
|
{
|
|
91
96
|
test: /^(initdone)$/,
|
|
92
|
-
qq: qqEventLog
|
|
97
|
+
qq: qqEventLog,
|
|
98
|
+
ks: ksEventLog
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
test: /^(stop|error)$/,
|
|
102
|
+
ks: ksEventLog
|
|
93
103
|
}
|
|
94
104
|
]
|
|
95
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',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const { isOriginTag, isBuildInWebTag } = require('../../../../utils/dom-tag-config')
|
|
1
|
+
const { isOriginTag, isBuildInWebTag, isBuildInReactTag } = require('../../../../utils/dom-tag-config')
|
|
2
2
|
|
|
3
3
|
module.exports = function () {
|
|
4
4
|
const handleComponentTag = (el, data) => {
|
|
@@ -16,7 +16,7 @@ module.exports = function () {
|
|
|
16
16
|
waterfall: true,
|
|
17
17
|
skipNormalize: true,
|
|
18
18
|
supportedModes: ['web', 'ios', 'android', 'harmony'],
|
|
19
|
-
test: (input) => isOriginTag(input) || isBuildInWebTag(input),
|
|
19
|
+
test: (input) => isOriginTag(input) || isBuildInWebTag(input) || isBuildInReactTag(input),
|
|
20
20
|
web: handleComponentTag,
|
|
21
21
|
ios: handleComponentTag,
|
|
22
22
|
android: handleComponentTag,
|
|
@@ -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 })
|
|
@@ -109,6 +111,10 @@ module.exports = function ({ print }) {
|
|
|
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
|
}
|