@mpxjs/webpack-plugin 2.10.24-beta.1 → 2.10.24-test.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +1 -4
- package/lib/platform/style/wx/index.js +395 -104
- package/lib/react/style-helper.js +6 -6
- package/lib/resolver/AddEnvPlugin.js +1 -1
- package/lib/resolver/AddModePlugin.js +1 -1
- package/lib/runtime/components/react/animationHooks/index.ts +7 -3
- package/lib/runtime/components/react/dist/animationHooks/index.d.ts +0 -2
- package/lib/runtime/components/react/dist/animationHooks/index.js +6 -1
- package/lib/runtime/components/react/dist/event.config.d.ts +2 -6
- package/lib/runtime/components/react/dist/event.config.js +28 -24
- package/lib/runtime/components/react/dist/getInnerListeners.d.ts +1 -1
- package/lib/runtime/components/react/dist/getInnerListeners.js +74 -56
- package/lib/runtime/components/react/dist/mpx-button.d.ts +1 -1
- package/lib/runtime/components/react/dist/mpx-button.jsx +16 -9
- package/lib/runtime/components/react/dist/mpx-camera.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-camera.jsx +1 -2
- package/lib/runtime/components/react/dist/mpx-canvas/index.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-canvas/index.jsx +1 -2
- package/lib/runtime/components/react/dist/mpx-canvas/utils.d.ts +1 -3
- package/lib/runtime/components/react/dist/mpx-checkbox-group.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-checkbox-group.jsx +3 -4
- package/lib/runtime/components/react/dist/mpx-checkbox.d.ts +1 -1
- package/lib/runtime/components/react/dist/mpx-checkbox.jsx +8 -9
- package/lib/runtime/components/react/dist/mpx-form.d.ts +1 -1
- package/lib/runtime/components/react/dist/mpx-form.jsx +5 -5
- package/lib/runtime/components/react/dist/mpx-icon/index.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-icon/index.jsx +2 -2
- package/lib/runtime/components/react/dist/mpx-image.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-image.jsx +59 -43
- package/lib/runtime/components/react/dist/mpx-input.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-input.jsx +2 -2
- package/lib/runtime/components/react/dist/mpx-label.d.ts +1 -1
- package/lib/runtime/components/react/dist/mpx-label.jsx +5 -6
- package/lib/runtime/components/react/dist/mpx-movable-area.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-movable-area.jsx +3 -3
- package/lib/runtime/components/react/dist/mpx-movable-view.d.ts +1 -1
- package/lib/runtime/components/react/dist/mpx-movable-view.jsx +6 -6
- package/lib/runtime/components/react/dist/mpx-picker-view/index.d.ts +1 -1
- package/lib/runtime/components/react/dist/mpx-picker-view/index.jsx +5 -7
- 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/index.jsx +2 -2
- package/lib/runtime/components/react/dist/mpx-progress.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-progress.jsx +1 -2
- package/lib/runtime/components/react/dist/mpx-radio-group.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-radio-group.jsx +3 -4
- package/lib/runtime/components/react/dist/mpx-radio.d.ts +1 -1
- package/lib/runtime/components/react/dist/mpx-radio.jsx +8 -9
- package/lib/runtime/components/react/dist/mpx-rich-text/index.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-rich-text/index.jsx +1 -2
- package/lib/runtime/components/react/dist/mpx-scroll-view.d.ts +1 -1
- package/lib/runtime/components/react/dist/mpx-scroll-view.jsx +6 -6
- package/lib/runtime/components/react/dist/mpx-simple-text.jsx +24 -19
- package/lib/runtime/components/react/dist/mpx-simple-view.d.ts +4 -1
- package/lib/runtime/components/react/dist/mpx-simple-view.jsx +11 -4
- package/lib/runtime/components/react/dist/mpx-slider.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-slider.jsx +6 -6
- package/lib/runtime/components/react/dist/mpx-sticky-header.d.ts +1 -1
- package/lib/runtime/components/react/dist/mpx-sticky-header.jsx +5 -5
- package/lib/runtime/components/react/dist/mpx-sticky-section.d.ts +1 -1
- package/lib/runtime/components/react/dist/mpx-sticky-section.jsx +6 -6
- package/lib/runtime/components/react/dist/mpx-swiper-item.d.ts +1 -1
- package/lib/runtime/components/react/dist/mpx-swiper-item.jsx +5 -5
- package/lib/runtime/components/react/dist/mpx-swiper.d.ts +1 -1
- package/lib/runtime/components/react/dist/mpx-swiper.jsx +4 -7
- package/lib/runtime/components/react/dist/mpx-switch.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-switch.jsx +1 -2
- package/lib/runtime/components/react/dist/mpx-text.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-text.jsx +29 -25
- package/lib/runtime/components/react/dist/mpx-video.d.ts +0 -1
- package/lib/runtime/components/react/dist/mpx-video.jsx +4 -4
- package/lib/runtime/components/react/dist/mpx-view.d.ts +2 -1
- package/lib/runtime/components/react/dist/mpx-view.jsx +214 -113
- package/lib/runtime/components/react/dist/mpx-web-view.d.ts +1 -2
- package/lib/runtime/components/react/dist/mpx-web-view.jsx +5 -1
- package/lib/runtime/components/react/dist/namedColorSet.d.ts +2 -0
- package/lib/runtime/components/react/dist/namedColorSet.js +149 -0
- package/lib/runtime/components/react/dist/utils.d.ts +73 -70
- package/lib/runtime/components/react/dist/utils.jsx +1295 -445
- package/lib/runtime/components/react/event.config.ts +32 -25
- package/lib/runtime/components/react/getInnerListeners.ts +84 -60
- package/lib/runtime/components/react/mpx-button.tsx +18 -16
- package/lib/runtime/components/react/mpx-camera.tsx +0 -3
- package/lib/runtime/components/react/mpx-canvas/index.tsx +3 -7
- package/lib/runtime/components/react/mpx-canvas/utils.tsx +3 -3
- package/lib/runtime/components/react/mpx-checkbox-group.tsx +2 -6
- package/lib/runtime/components/react/mpx-checkbox.tsx +9 -11
- package/lib/runtime/components/react/mpx-form.tsx +6 -6
- package/lib/runtime/components/react/mpx-icon/index.tsx +1 -3
- package/lib/runtime/components/react/mpx-image.tsx +65 -54
- package/lib/runtime/components/react/mpx-input.tsx +1 -3
- package/lib/runtime/components/react/mpx-label.tsx +6 -8
- package/lib/runtime/components/react/mpx-movable-area.tsx +3 -4
- package/lib/runtime/components/react/mpx-movable-view.tsx +7 -7
- package/lib/runtime/components/react/mpx-picker-view/index.tsx +6 -8
- package/lib/runtime/components/react/mpx-picker-view-column/index.tsx +2 -4
- package/lib/runtime/components/react/mpx-progress.tsx +0 -3
- package/lib/runtime/components/react/mpx-radio-group.tsx +2 -6
- package/lib/runtime/components/react/mpx-radio.tsx +9 -11
- package/lib/runtime/components/react/mpx-rich-text/index.tsx +0 -3
- package/lib/runtime/components/react/mpx-scroll-view.tsx +7 -7
- package/lib/runtime/components/react/mpx-simple-text.tsx +24 -26
- package/lib/runtime/components/react/mpx-simple-view.tsx +17 -5
- package/lib/runtime/components/react/mpx-slider.tsx +15 -10
- package/lib/runtime/components/react/mpx-sticky-header.tsx +6 -6
- package/lib/runtime/components/react/mpx-sticky-section.tsx +7 -7
- package/lib/runtime/components/react/mpx-swiper-item.tsx +6 -6
- package/lib/runtime/components/react/mpx-swiper.tsx +5 -8
- package/lib/runtime/components/react/mpx-switch.tsx +0 -3
- package/lib/runtime/components/react/mpx-text.tsx +31 -34
- package/lib/runtime/components/react/mpx-video.tsx +3 -5
- package/lib/runtime/components/react/mpx-view.tsx +235 -126
- package/lib/runtime/components/react/mpx-web-view.tsx +11 -7
- package/lib/runtime/components/react/namedColorSet.ts +150 -0
- package/lib/runtime/components/react/types/getInnerListeners.d.ts +21 -1
- package/lib/runtime/components/react/types/global.d.ts +1 -0
- package/lib/runtime/components/react/utils.tsx +1348 -544
- package/lib/runtime/i18n.wxs +15 -9
- package/lib/style-compiler/strip-conditional.js +19 -4
- package/package.json +2 -2
- package/lib/resolver/ExtendComponentsPlugin.js +0 -91
- package/lib/runtime/components/extends/section-list.mpx +0 -14
- package/lib/runtime/components/react/dist/mpx-section-list.d.ts +0 -56
- package/lib/runtime/components/react/dist/mpx-section-list.jsx +0 -484
- package/lib/runtime/components/react/mpx-section-list.tsx +0 -734
package/lib/runtime/i18n.wxs
CHANGED
|
@@ -217,15 +217,16 @@ function parsePath (pathStr) {
|
|
|
217
217
|
property = ''
|
|
218
218
|
}
|
|
219
219
|
|
|
220
|
+
if (pathStr.indexOf('[') === -1 && pathStr.indexOf(']') === -1) {
|
|
221
|
+
// 对于简单数据路径,直接分割,避免无意义的解析
|
|
222
|
+
return pathStr.split('.')
|
|
223
|
+
}
|
|
224
|
+
|
|
220
225
|
var curStack = genStack()
|
|
221
226
|
var targetStacks = []
|
|
222
227
|
var property = ''
|
|
223
228
|
var index = 0
|
|
224
229
|
|
|
225
|
-
if (genRegExp('^[^[]]+$').test(pathStr)) {
|
|
226
|
-
// 对于简单数据路径,直接分割,避免无意义的解析
|
|
227
|
-
return pathStr.split('.')
|
|
228
|
-
}
|
|
229
230
|
while (index < pathStr.length) {
|
|
230
231
|
var char = pathStr[index]
|
|
231
232
|
// 当前遍历引号内的字符串时
|
|
@@ -271,11 +272,16 @@ function getMessage (messages, locale, fallbackLocale, key) {
|
|
|
271
272
|
|
|
272
273
|
function resolve (messages, locale, key) {
|
|
273
274
|
if (messages && messages[locale] && key) {
|
|
274
|
-
var
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
275
|
+
var localeMessages = messages[locale]
|
|
276
|
+
// 优先按「字面量 key」直查:形如 "1000+ reviews" 的扁平 key 含 '+',若先走 getPathValue
|
|
277
|
+
// 会被 parsePath 当成算术表达式求值('1000' + undefined = NaN),导致翻译失败。
|
|
278
|
+
// 字面量命中即返回,未命中再交给 getPathValue 解析嵌套路径(如 "nav.home")。
|
|
279
|
+
// 注意:这会让「扁平 key 与同名嵌套路径冲突」时由 nested 优先变为 flat 优先。
|
|
280
|
+
if (isDef(localeMessages[key])) return localeMessages[key]
|
|
281
|
+
var format = getPathValue(localeMessages, key)
|
|
282
|
+
// 含 '+' 的 key 在当前语言缺失时,getPathValue 仍可能返回 NaN。NaN 会被 isDef 当成
|
|
283
|
+
// 「已定义」而中断 getMessage 的 fallback,故归一成 undefined 以保留回退(format !== format 仅 NaN 成立)。
|
|
284
|
+
return format !== format ? undefined : format
|
|
279
285
|
}
|
|
280
286
|
}
|
|
281
287
|
|
|
@@ -13,11 +13,26 @@ class Node {
|
|
|
13
13
|
function keepLines(content) {
|
|
14
14
|
return content.replace(/([^\r\n]*)(\r\n|\r|\n|$)/g, (all, line, lineBreak) => {
|
|
15
15
|
if (!all) return ''
|
|
16
|
+
// 空行 / 纯空白行直接保留换行:directive 自身被 blankDirective 抹平后,
|
|
17
|
+
// 其前后 text token 里夹缝 \n 形成的"空行"如果再放占位注释,会变成 col 0 的
|
|
18
|
+
// /* mpx-style-pad-placeholder */,破坏 stylus / sass 的 indent 结构。
|
|
19
|
+
// 这里产生的连续空行最多只有 directive 链长度量级(个位数),远低于 stylus
|
|
20
|
+
// lexer 栈溢出阈值,安全。
|
|
21
|
+
if (!line.trim()) return lineBreak
|
|
16
22
|
const indent = (/^[ \t]*/.exec(line) || [''])[0]
|
|
17
23
|
return `${indent}/* ${STYLE_PAD_PLACEHOLDER} */${lineBreak}`
|
|
18
24
|
})
|
|
19
25
|
}
|
|
20
26
|
|
|
27
|
+
// 仅保留换行、清掉所有非换行字符,让条件编译指令本身的列位置在
|
|
28
|
+
// 缩进敏感的预处理器(stylus / sass)中完全透明。
|
|
29
|
+
// 不能直接把整段都换成空行 —— stylus 的 lexer 在遇到大量连续空行时
|
|
30
|
+
// 会递归判定 outdent 层级,触发调用栈溢出;因此被剥离的"内容"仍走
|
|
31
|
+
// keepLines 走占位注释,只让"指令"这一行(通常 1 行)变成空行。
|
|
32
|
+
function blankDirective(content) {
|
|
33
|
+
return content.replace(/[^\r\n]+/g, '')
|
|
34
|
+
}
|
|
35
|
+
|
|
21
36
|
// 提取 css string 为 token
|
|
22
37
|
function tokenize(cssString) {
|
|
23
38
|
// Support /* ... */, // ..., and <!-- ... --> styles
|
|
@@ -123,22 +138,22 @@ function traverseAndEvaluate(ast, defs) {
|
|
|
123
138
|
output += active ? node.value : keepLines(node.value)
|
|
124
139
|
} else if (node.type === 'If') {
|
|
125
140
|
// 直接判断 If 节点
|
|
126
|
-
output +=
|
|
141
|
+
output += blankDirective(node.value)
|
|
127
142
|
const currentMatched = active && evaluateCondition(node.condition, defs)
|
|
128
143
|
output += traverse(node.children, currentMatched)
|
|
129
144
|
batchedIf = currentMatched
|
|
130
145
|
} else if (node.type === 'ElseIf') {
|
|
131
|
-
output +=
|
|
146
|
+
output += blankDirective(node.value)
|
|
132
147
|
const currentMatched = active && !batchedIf && evaluateCondition(node.condition, defs)
|
|
133
148
|
output += traverse(node.children, currentMatched)
|
|
134
149
|
batchedIf = batchedIf || currentMatched
|
|
135
150
|
} else if (node.type === 'Else') {
|
|
136
|
-
output +=
|
|
151
|
+
output += blankDirective(node.value)
|
|
137
152
|
const currentMatched = active && !batchedIf
|
|
138
153
|
output += traverse(node.children, currentMatched)
|
|
139
154
|
batchedIf = true
|
|
140
155
|
} else if (node.type === 'EndIf') {
|
|
141
|
-
output +=
|
|
156
|
+
output += blankDirective(node.value)
|
|
142
157
|
}
|
|
143
158
|
}
|
|
144
159
|
return output
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mpxjs/webpack-plugin",
|
|
3
|
-
"version": "2.10.24-
|
|
3
|
+
"version": "2.10.24-test.1",
|
|
4
4
|
"description": "mpx compile core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mpx"
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"react-native-svg": "^15.8.0",
|
|
108
108
|
"react-native-video": "^6.9.0",
|
|
109
109
|
"react-native-vision-camera": "^4.7.2",
|
|
110
|
-
"react-native-webview": "^13.
|
|
110
|
+
"react-native-webview": "^13.17.0",
|
|
111
111
|
"rimraf": "^6.0.1",
|
|
112
112
|
"vue": "^2.7.16",
|
|
113
113
|
"webpack": "^5.75.0"
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
const path = require('path')
|
|
2
|
-
const toPosix = require('../utils/to-posix')
|
|
3
|
-
const EXTEND_COMPONENT_PATH_REGEXP = /\/lib\/runtime\/components\/extends\//
|
|
4
|
-
const EXTEND_COMPONENT_TARGET_SUB_PATH = 'lib/runtime/components/react/dist/'
|
|
5
|
-
const EXTEND_COMPONENTS = {
|
|
6
|
-
'section-list': ['ios', 'android', 'harmony']
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* 扩展组件路径解析插件
|
|
11
|
-
* 将 @mpxjs/webpack-plugin/lib/runtime/components/extends/[component-name] 格式的路径
|
|
12
|
-
* 解析为对应平台的实际组件路径
|
|
13
|
-
*/
|
|
14
|
-
module.exports = class ExtendComponentsPlugin {
|
|
15
|
-
constructor (source, mode, target, compiler) {
|
|
16
|
-
this.source = source
|
|
17
|
-
this.target = target
|
|
18
|
-
this.mode = mode
|
|
19
|
-
this.currentCompilation = null
|
|
20
|
-
compiler.hooks.thisCompilation.tap('ExtendComponentsPlugin', (compilation) => {
|
|
21
|
-
this.currentCompilation = compilation
|
|
22
|
-
})
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
apply (resolver) {
|
|
26
|
-
const target = resolver.ensureHook(this.target)
|
|
27
|
-
const mode = this.mode
|
|
28
|
-
|
|
29
|
-
const pushError = (err) => {
|
|
30
|
-
if (this.currentCompilation) {
|
|
31
|
-
this.currentCompilation.errors.push(err)
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
resolver.getHook(this.source).tapAsync('ExtendComponentsPlugin', (request, resolveContext, callback) => {
|
|
36
|
-
if (request.__mpxResolvedExtendComponent) return callback()
|
|
37
|
-
|
|
38
|
-
const componentName = getComponentName(request)
|
|
39
|
-
if (!componentName) {
|
|
40
|
-
return callback()
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
// 检查组件是否在配置中
|
|
44
|
-
const supportedModes = EXTEND_COMPONENTS[componentName]
|
|
45
|
-
if (!supportedModes) {
|
|
46
|
-
pushError(new Error(`Extended component "${componentName}" was not found. Available extended components: ${Object.keys(EXTEND_COMPONENTS).join(', ')}`))
|
|
47
|
-
return callback()
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
// 获取当前模式下的组件路径
|
|
51
|
-
if (!supportedModes.includes(mode)) {
|
|
52
|
-
pushError(new Error(`Extended component "${componentName}" cannot be used on the ${mode} platform. Supported platforms include: ${supportedModes.join(', ')}`))
|
|
53
|
-
return callback()
|
|
54
|
-
}
|
|
55
|
-
const targetSubPath = `${EXTEND_COMPONENT_TARGET_SUB_PATH}mpx-${componentName}.jsx`
|
|
56
|
-
const targetRelativePath = `./${targetSubPath}`
|
|
57
|
-
const targetPath = path.join(request.descriptionFileRoot, targetSubPath)
|
|
58
|
-
|
|
59
|
-
const redirectRequest = Object.assign({}, request, {
|
|
60
|
-
path: targetPath,
|
|
61
|
-
relativePath: targetRelativePath,
|
|
62
|
-
__mpxResolvedExtendComponent: true
|
|
63
|
-
})
|
|
64
|
-
|
|
65
|
-
resolver.doResolve(
|
|
66
|
-
target,
|
|
67
|
-
redirectRequest,
|
|
68
|
-
`resolve extend component: ${componentName} to ${targetPath}`,
|
|
69
|
-
resolveContext,
|
|
70
|
-
(err, result) => {
|
|
71
|
-
if (err) {
|
|
72
|
-
pushError(err)
|
|
73
|
-
return callback()
|
|
74
|
-
}
|
|
75
|
-
if (!result) {
|
|
76
|
-
pushError(new Error(`Extended component "${componentName}" resolved to "${targetPath}", but the target file was not found.`))
|
|
77
|
-
return callback()
|
|
78
|
-
}
|
|
79
|
-
callback(null, result)
|
|
80
|
-
}
|
|
81
|
-
)
|
|
82
|
-
})
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
function getComponentName (request) {
|
|
87
|
-
if (!request.path) return
|
|
88
|
-
const requestPath = toPosix(request.path)
|
|
89
|
-
if (!EXTEND_COMPONENT_PATH_REGEXP.test(requestPath)) return
|
|
90
|
-
return path.basename(requestPath, path.extname(requestPath))
|
|
91
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
Placeholder for @mpxjs/webpack-plugin/lib/runtime/components/extends/section-list.
|
|
3
|
-
ExtendComponentsPlugin should always redirect requests away from this file at
|
|
4
|
-
build time. Reaching this module means the plugin failed to redirect — most
|
|
5
|
-
likely because section-list is not supported on the current platform, or
|
|
6
|
-
ExtendComponentsPlugin is not registered on the resolver.
|
|
7
|
-
-->
|
|
8
|
-
<template></template>
|
|
9
|
-
|
|
10
|
-
<script>
|
|
11
|
-
import { error } from '@mpxjs/utils'
|
|
12
|
-
error('section-list extend placeholder reached at runtime, ExtendComponentsPlugin redirect failed. See build log for the original error.')
|
|
13
|
-
export default {}
|
|
14
|
-
</script>
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { GestureHandler } from './utils';
|
|
3
|
-
interface ListItem {
|
|
4
|
-
isSectionHeader?: boolean;
|
|
5
|
-
isSectionFooter?: boolean;
|
|
6
|
-
[key: string]: any;
|
|
7
|
-
}
|
|
8
|
-
interface ItemHeightType {
|
|
9
|
-
value?: number;
|
|
10
|
-
getter?: (item: any, index: number) => number;
|
|
11
|
-
}
|
|
12
|
-
interface MpxSectionListProps {
|
|
13
|
-
enhanced?: boolean;
|
|
14
|
-
bounces?: boolean;
|
|
15
|
-
height?: number | string;
|
|
16
|
-
width?: number | string;
|
|
17
|
-
generichash?: string;
|
|
18
|
-
style?: Record<string, any>;
|
|
19
|
-
'scroll-event-throttle'?: number;
|
|
20
|
-
'list-data'?: ListItem[];
|
|
21
|
-
'item-height'?: ItemHeightType;
|
|
22
|
-
'section-header-height'?: ItemHeightType;
|
|
23
|
-
'section-footer-height'?: ItemHeightType;
|
|
24
|
-
'list-header-data'?: any;
|
|
25
|
-
'list-header-height'?: number;
|
|
26
|
-
'use-list-header'?: boolean;
|
|
27
|
-
'list-footer-data'?: any;
|
|
28
|
-
'use-list-footer'?: boolean;
|
|
29
|
-
'genericrecycle-item'?: string;
|
|
30
|
-
'genericsection-header'?: string;
|
|
31
|
-
'genericsection-footer'?: string;
|
|
32
|
-
'genericlist-header'?: string;
|
|
33
|
-
'genericlist-footer'?: string;
|
|
34
|
-
'enable-var'?: boolean;
|
|
35
|
-
'external-var-context'?: any;
|
|
36
|
-
'parent-font-size'?: number;
|
|
37
|
-
'parent-width'?: number;
|
|
38
|
-
'parent-height'?: number;
|
|
39
|
-
'enable-sticky'?: boolean;
|
|
40
|
-
'enable-back-to-top'?: boolean;
|
|
41
|
-
'end-reached-threshold'?: number;
|
|
42
|
-
'refresher-enabled'?: boolean;
|
|
43
|
-
'show-scrollbar'?: boolean;
|
|
44
|
-
'refresher-triggered'?: boolean;
|
|
45
|
-
'enable-item-exposure'?: boolean;
|
|
46
|
-
'item-exposure-threshold'?: number;
|
|
47
|
-
'wait-for'?: Array<GestureHandler>;
|
|
48
|
-
'simultaneous-handlers'?: Array<GestureHandler>;
|
|
49
|
-
bindrefresherrefresh?: (event: any) => void;
|
|
50
|
-
bindscrolltolower?: (event: any) => void;
|
|
51
|
-
bindscroll?: (event: any) => void;
|
|
52
|
-
binditemexposure?: (event: any) => void;
|
|
53
|
-
[key: string]: any;
|
|
54
|
-
}
|
|
55
|
-
declare const _SectionList: import("react").ForwardRefExoticComponent<Omit<MpxSectionListProps, "ref"> & import("react").RefAttributes<any>>;
|
|
56
|
-
export default _SectionList;
|