Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat components v2 merge #1541

Merged
merged 250 commits into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
250 commits
Select commit Hold shift + click to select a range
87722e7
refactor: 修改react的引用
yandadaFreedom Jun 17, 2024
942b7fb
feat: add movable area component
yandadaFreedom Jun 17, 2024
340df2b
feat: add movable component
yandadaFreedom Jun 18, 2024
7a993b5
feat: 解开未支持组件类型限制
WX-DongXing Jun 18, 2024
b59dcc2
feat: 添加 rn icon 组件
WX-DongXing Jun 18, 2024
29f57fd
feat: 移除无用 catchtap 事件
WX-DongXing Jun 19, 2024
37abf47
refactor: 重构实现
WX-DongXing Jun 19, 2024
801204f
add mpx-picker-view
Jun 19, 2024
9fe6786
feat: 禁用 catchtap 事件
WX-DongXing Jun 19, 2024
cd857bf
feat: 实现 checkbox 组件
WX-DongXing Jun 19, 2024
7cab1dd
feat: 实现 label 组件
WX-DongXing Jun 19, 2024
e7bba20
feat: 实现 checkbox 组件
WX-DongXing Jun 19, 2024
ed39908
feat: 添加嵌入组件类型判定方法
WX-DongXing Jun 19, 2024
3f0ef19
fix: 添加禁用时图标颜色
WX-DongXing Jun 19, 2024
69695ac
feat: 嵌套 label 组件继承文本样式
WX-DongXing Jun 20, 2024
5d64f5f
feat: checkbox 组件支持嵌套文本
WX-DongXing Jun 20, 2024
5382dca
feat: 实现 radio 组件
WX-DongXing Jun 20, 2024
9c129e9
feat: 实现 checkbox 组件
WX-DongXing Jun 20, 2024
87d8fe7
fix: lint
WX-DongXing Jun 20, 2024
53038c2
fix: 修正 change 事件当前选中状态
WX-DongXing Jun 21, 2024
12226c4
feat(component): dev switch and navigator.
Jun 24, 2024
8c1c4b2
refactor: 切换手势系统
yandadaFreedom Jun 24, 2024
a97bf6f
refactor: 调试拖拽功能
yandadaFreedom Jun 26, 2024
95838bb
refactor: 调试拖拽功能
yandadaFreedom Jun 26, 2024
e64ca66
fix: 拖拽与缩放互相影响问题
yandadaFreedom Jun 27, 2024
01f4462
feat: add 编译配置
yandadaFreedom Jun 27, 2024
1d7526a
feat: add form component
yandadaFreedom Jun 28, 2024
db50c90
feat: 支持外部调用数据
WX-DongXing Jul 1, 2024
af88b58
fix: 调整方法入参名称
WX-DongXing Jul 1, 2024
d7b903b
refactor: 优化form表单逻辑
yandadaFreedom Jul 1, 2024
adaf414
Merge branch 'feat-react-comps' into feat-components-v2-merge
yandadaFreedom Jul 2, 2024
b4929bc
feat: 初始化暴露选中状态
WX-DongXing Jul 2, 2024
dcd728d
fix: 缩放后边界计算问题
yandadaFreedom Jul 2, 2024
5231ed7
fix: 缩放后边界计算问题
yandadaFreedom Jul 2, 2024
610f906
refactor: 调整movable动画中心
yandadaFreedom Jul 3, 2024
f8d2ebb
feat: 支持movable view 大于 area 场景
yandadaFreedom Jul 3, 2024
729012f
refactor: update code style
yandadaFreedom Jul 3, 2024
2e99450
Merge branch 'feat-react-comps' into feat-components-v2-merge
yandadaFreedom Jul 4, 2024
76a22cb
Merge branch 'feat-react-component-v2' into feat-components-v2-merge
yandadaFreedom Jul 4, 2024
a2f7b2e
fix: checkboxGroup取默认值
yandadaFreedom Jul 4, 2024
1d54e9a
Merge branch 'feat-react-component-v2' into feat-components-v2-merge
yandadaFreedom Jul 4, 2024
6fb8c80
fix: lint error
yandadaFreedom Jul 4, 2024
edcc978
Merge branch 'feat-react-component-v2' into feat-components-v2-merge
yandadaFreedom Jul 4, 2024
8ed9a2c
Merge branch 'master' into feat-react-component-v2
yandadaFreedom Jul 4, 2024
f47012e
Merge branch 'feat-react-component-v2' into feat-components-v2-merge
yandadaFreedom Jul 4, 2024
f1b49d7
Merge branch 'master' into feat-react-comps
WX-DongXing Jul 4, 2024
94dc410
refactor: 修改useNodesRef文件引用路径
yandadaFreedom Jul 4, 2024
c9d3a7e
feat: useNodeRef 引用路径调整
WX-DongXing Jul 4, 2024
945034e
feat: add mpx-picker
Jul 4, 2024
2cb2182
feat: picker use ant-design bak
Jul 8, 2024
0dfb8bd
fix(Switch) js error.
Jul 9, 2024
1b8cc1c
feat: update picker components
Jul 9, 2024
c968fc5
feat: add picker time date region
Jul 9, 2024
b13ac52
Merge branch 'master' into feat-react-picker
Jul 9, 2024
1e67758
merge master
Jul 9, 2024
94d6e69
feat: 统一表单组件内部处理
yandadaFreedom Jul 9, 2024
8a75a51
Merge branch 'feat-react-comps' into feat-components-v2-merge
yandadaFreedom Jul 9, 2024
25547fe
feat: 统一表单组件内部处理
yandadaFreedom Jul 9, 2024
4accdec
refactor: 修改checkbox-group联动逻辑
yandadaFreedom Jul 10, 2024
a73b807
fix: 修改useNodesRef引用
yandadaFreedom Jul 10, 2024
1951b39
feat: picker-view
Jul 10, 2024
cc3b835
refactor: 修改checkbox-group联动逻辑
yandadaFreedom Jul 10, 2024
8b05b79
refactor: 优化checkbox-group逻辑
yandadaFreedom Jul 10, 2024
d660fce
fix: event layout
Jul 11, 2024
b0cc165
chore: 修改react引用
yandadaFreedom Jul 11, 2024
e81e759
chore: 修改checkbox通信
yandadaFreedom Jul 11, 2024
5162759
Merge branch 'master' into feat-react-component-v2
yandadaFreedom Jul 11, 2024
ac9f972
Merge branch 'master' into feat-components-v2-merge
yandadaFreedom Jul 11, 2024
4474252
chore: 删除老版本checkbox-group
yandadaFreedom Jul 11, 2024
943e7ea
chore: 优化checkbox
yandadaFreedom Jul 11, 2024
c5b77fc
fix: picker ant-design
Jul 11, 2024
0e8b4ba
chore: 优化通信校验
yandadaFreedom Jul 12, 2024
90cf3ed
feat: picker columnchange & rules update
Jul 12, 2024
29aa8d7
feat: time update
Jul 14, 2024
2bd339e
fix: time
Jul 15, 2024
55cdddb
fix: eslint
Jul 15, 2024
f29be1b
chore: 修改ts报错
yandadaFreedom Jul 15, 2024
dce0c42
fix: ts error
yandadaFreedom Jul 18, 2024
25feadb
Merge branch 'feat-react-component-v2' into feat-components-v2-merge
yandadaFreedom Jul 18, 2024
a2453b8
feat: add root-portal组件
yandadaFreedom Jul 19, 2024
bd08f0f
Merge branch 'master' into feat-compontents-root-partal
yandadaFreedom Jul 19, 2024
cfa6bc3
feat: add picker document
Jul 22, 2024
9509268
fix(*): fix code
Jul 22, 2024
768f4b8
Merge branch 'master' into feat-components-v2-merge
yandadaFreedom Jul 22, 2024
e49715a
Merge branch 'master' into feat-compontents-root-partal
yandadaFreedom Jul 22, 2024
8ffbc66
feat: 支持web root-portal
yandadaFreedom Jul 23, 2024
e3138c8
chore: 修改root-portal支持平台
yandadaFreedom Jul 24, 2024
d8a227e
feat: lint ts types
WX-DongXing Jul 29, 2024
586ac23
feat: 添加模板组件文档
WX-DongXing Jul 29, 2024
7a985bc
Merge branch 'feat-react-comps' of https://github.com/didi/mpx into f…
Jul 30, 2024
b41b377
Merge branch 'feat-react-comps' into feat-components-v2-merge
yandadaFreedom Aug 5, 2024
ffb9d1e
doc: 修改文档
yandadaFreedom Aug 5, 2024
c06d172
chore: 修改nodeRef使用
yandadaFreedom Aug 5, 2024
d8824d7
Merge branch 'feat-components-v2-merge' into feat-compontents-root-pa…
yandadaFreedom Aug 6, 2024
e2fe93d
chore: form 组件setValue改为resetValue
yandadaFreedom Aug 9, 2024
8f03ff5
chore: 优化form表单submit&reset调用逻辑
yandadaFreedom Aug 12, 2024
c7b8f4a
chore: 修改ts
yandadaFreedom Aug 12, 2024
d399957
chore: 优化checkbox-group逻辑
yandadaFreedom Aug 12, 2024
a665353
chore: 删除react引用
yandadaFreedom Aug 12, 2024
78d55e1
fix: 动态切换scroll-x,scroll-y属性时,样式展示异常问题
yandadaFreedom Aug 14, 2024
7d13bbf
Merge branch 'master' into feat-components-v2-merge
yandadaFreedom Aug 16, 2024
459eb1e
fix: triggerEvent 无效
yandadaFreedom Aug 16, 2024
03abdbf
feat: 支持禁用 tap 事件
yandadaFreedom Aug 16, 2024
72c3745
fix(*): fix code
Aug 19, 2024
0fc1e34
Merge branch 'master' into feat-components-v2-merge
yandadaFreedom Aug 21, 2024
d017111
Merge branch 'feat-components-v2-merge' into feat-compontents-root-pa…
yandadaFreedom Aug 21, 2024
57d7cd6
chore: 修改root-partal逻辑
yandadaFreedom Aug 21, 2024
29c7af7
fix: @ant-design/react-native ts error
yandadaFreedom Aug 21, 2024
741d9e3
Merge branch 'master' into feat-components-v2-merge
yandadaFreedom Aug 21, 2024
e16f973
feat(*): add block component.
Aug 21, 2024
4dc053c
fix(*): fix code
Aug 21, 2024
81442e8
fix(*): fix code
Aug 21, 2024
6fb1409
Merge branch 'master' into feat-components-v2-merge
yandadaFreedom Aug 22, 2024
9cf99bb
Merge branch 'feat-components-v2-merge' of github.com:didi/mpx into f…
yandadaFreedom Aug 22, 2024
9581e57
chore: 修改tsconfig配置
yandadaFreedom Aug 22, 2024
06c8d08
Merge branch 'master' into feat-components-v2-merge
yandadaFreedom Aug 23, 2024
48fa2cd
fix: api-proxy ts error
yandadaFreedom Aug 23, 2024
04cd39c
Merge branch 'master' into feat-compontents-root-partal
yandadaFreedom Aug 23, 2024
15bda3f
Merge branch 'feat-components-v2-merge' into feat-compontents-root-pa…
yandadaFreedom Aug 23, 2024
4a790eb
fix: Portal报错
yandadaFreedom Aug 23, 2024
8ae39d4
fix(*): fix code
Aug 26, 2024
89609e7
Merge pull request #1574 from didi/feat-compontents-root-partal
hiyuki Aug 26, 2024
877f0f2
Merge branch 'master' into feat-components-v2-merge
yandadaFreedom Aug 26, 2024
db0d361
chore: 修改ts config
yandadaFreedom Aug 26, 2024
dde8aa4
fix: conflict
Aug 27, 2024
73007fa
Merge branch 'master' into feat-components-v2-merge
yandadaFreedom Aug 28, 2024
54c3b31
Merge pull request #1587 from didi/feat-react-comps
yandadaFreedom Aug 28, 2024
0ce37c5
fix: ts error
yandadaFreedom Aug 28, 2024
e30b8bd
Merge branch 'master' into feat-components-v2-merge
hiyuki Aug 28, 2024
4004437
升级: 修改e2e mpx相关依赖
yandadaFreedom Aug 28, 2024
6a0bbae
Merge branch 'feat-components-v2-merge' of https://github.com/didi/mp…
yandadaFreedom Aug 28, 2024
c523adf
升级: 修改e2e mpx相关依赖
yandadaFreedom Aug 28, 2024
ab0848e
feat: managed disabled handling and adaptation getUserInfo method
WX-DongXing Aug 28, 2024
6502507
Merge branch 'master' into feat-components-v2-merge
yandadaFreedom Aug 29, 2024
ba478c0
feat(switch): add form check.
Aug 29, 2024
b0b9326
Merge branch 'feat-components-v2-merge' of https://github.com/didi/mp…
Aug 29, 2024
9ee76ce
refactor: nested radio with context
WX-DongXing Aug 29, 2024
01eb983
feat: adapt to label context
WX-DongXing Aug 29, 2024
22bf0fd
feat: picker form
Aug 30, 2024
d784469
Merge branch 'feat-components-v2-merge' of github.com:didi/mpx into f…
Aug 30, 2024
5ccd527
feat: remove legacy api
WX-DongXing Aug 30, 2024
16e8610
Merge branch 'feat-components-v2-merge' into feat-react-comps
WX-DongXing Aug 30, 2024
739ad52
feat: optimize logic
WX-DongXing Sep 2, 2024
f81d9ab
Merge branch 'master' into feat-components-v2-merge
yandadaFreedom Sep 3, 2024
7e16ba9
Merge pull request #1593 from didi/feat-react-comps
yandadaFreedom Sep 3, 2024
7b6b61b
Merge branch 'master' into feat-components-v2-merge
wenwenhua Sep 5, 2024
e120e75
Merge branch 'feat-components-v2-merge' of github.com:didi/mpx into f…
wenwenhua Sep 5, 2024
7925def
match 兜底
wenwenhua Sep 5, 2024
8387dfd
fix this.__refs[key].push error
wenwenhua Sep 6, 2024
e54203f
恢复
wenwenhua Sep 6, 2024
a81b1ba
Merge branch 'master' into feat-components-v2-merge
Sep 6, 2024
20b6868
chore: 处理style格式变更
Sep 6, 2024
9fa5700
fix: ts error
Sep 6, 2024
5bfb23a
fix: ts error
Sep 6, 2024
6ea7a6b
Merge branch 'master' into feat-components-v2-merge
Sep 6, 2024
25db97c
fix: ts error
Sep 6, 2024
940de4f
Merge branch 'feat-components-v2-merge' into feat-rn-components-style…
Sep 6, 2024
dbabdcc
chore: 处理style格式变更
Sep 6, 2024
dfaf315
chore: 处理style格式变更
Sep 6, 2024
717e512
chore: 处理style格式变更
Sep 6, 2024
6fef125
chore: 补充ts类型定义
Sep 9, 2024
5c4198c
chore: 补充ts类型定义
Sep 9, 2024
1e6f20b
feat: swiper animted
Sep 9, 2024
b1f983d
Merge pull request #1609 from didi/feat-rn-components-style-formate
yandadaFreedom Sep 9, 2024
1c32ca2
fix: wrong name
1240318070 Sep 9, 2024
26c4ae5
fix: carouse debug
Sep 9, 2024
8ab46a3
Merge branch 'feat-components-v2-merge' of github.com:didi/mpx into f…
Sep 9, 2024
8915313
Merge pull request #1611 from didi/feat-rn-style-rules
yandadaFreedom Sep 9, 2024
dc91c92
Merge branch 'feat-components-v2-merge' of https://github.com/didi/mp…
1240318070 Sep 9, 2024
70466b5
feat: 支持transform %
Sep 9, 2024
9e87c63
chore: 统一warning抛出格式
Sep 9, 2024
7997128
fix: error
Sep 9, 2024
0725bbd
Merge branch 'feat-components-v2-merge' into feat-components-v2-merge…
Sep 10, 2024
cb718c1
Merge branch 'master' into feat-components-v2-merge
Sep 10, 2024
df4d699
Merge branch 'feat-components-v2-merge' into feat-components-v2-merge…
Sep 10, 2024
f30fb89
chore: 优化percent处理
Sep 10, 2024
1bf7876
Merge pull request #1612 from didi/feat-components-v2-merge-transform
hiyuki Sep 10, 2024
a283714
refactor: 优化
Sep 10, 2024
6cf49a6
feat: adapt nested Text styles and props
WX-DongXing Sep 10, 2024
3b052df
refactor: 优化
Sep 10, 2024
8c5f4e6
Merge branch 'feat-components-v2-merge' into feat-components-v2-merge…
Sep 10, 2024
001526f
Merge branch 'feat-components-v2-merge' into fix-react-children-empty
WX-DongXing Sep 10, 2024
53140ea
fix: correct judgment
WX-DongXing Sep 10, 2024
f83dd14
refactor: 优化
Sep 10, 2024
72c839b
refactor: 优化
Sep 10, 2024
62eb2b6
fix: lint error
Sep 10, 2024
67d8f47
fix: lint error
Sep 10, 2024
14b7937
fix: event persist
WX-DongXing Sep 10, 2024
d57ccd7
Merge pull request #1615 from didi/feat-components-v2-merge-movable
hiyuki Sep 10, 2024
51aeeab
fix(text): line-height.
Sep 10, 2024
f8da929
Merge branch 'feat-components-v2-merge' into fix-react-children-empty
WX-DongXing Sep 10, 2024
5f75747
feat: remove lable context text style and standardize style handling
WX-DongXing Sep 10, 2024
cc574ed
fix(*): merge code.
Sep 10, 2024
c07a222
chore: 优化组件
Sep 10, 2024
30cf73e
Merge branch 'master' into feat-components-v2-merge
Sep 10, 2024
bee1af3
Merge branch 'feat-components-v2-merge' of https://github.com/didi/mp…
Sep 10, 2024
1ef28c7
fix(text): fix code.
Sep 10, 2024
7feee7a
Merge pull request #1616 from didi/bugfix-line-height
yandadaFreedom Sep 10, 2024
b052412
chore: 优化组件
Sep 10, 2024
9c46ba2
Merge pull request #1618 from didi/feat-components-v2-merge-movable
hiyuki Sep 11, 2024
d795b5e
Merge branch 'feat-components-v2-merge' into fix-react-children-empty
WX-DongXing Sep 11, 2024
73d916a
feat: optimize judgment
WX-DongXing Sep 11, 2024
5898ef1
feat(input): add listen input value.
Sep 11, 2024
f329142
fix(*): fix code
Sep 11, 2024
d2b23bb
Merge branch 'master' into feat-components-v2-merge
Sep 11, 2024
65d1ac2
Merge branch 'feat-components-v2-merge' of https://github.com/didi/mp…
Sep 11, 2024
8af5883
fix: 初始化计算异常问题
Sep 11, 2024
d1d3637
fix: % error in android
Sep 11, 2024
f9a4160
fix: % error in android
Sep 11, 2024
5332523
fix: % error in android
Sep 11, 2024
0e28edb
fix: % error in android
Sep 11, 2024
d458480
fix: % error in android
Sep 11, 2024
41cee24
Merge pull request #1619 from didi/feat-input-value
WX-DongXing Sep 11, 2024
8260299
fix: swiper android
Sep 11, 2024
86d8cc8
Merge branch 'feat-components-v2-merge' of github.com:didi/mpx into f…
Sep 11, 2024
f7ad878
fix(*): fix code
Sep 11, 2024
28d6376
Merge pull request #1620 from didi/fix-rn-view-percent
hiyuki Sep 11, 2024
c2401a6
Merge pull request #1614 from didi/fix-react-children-empty
hiyuki Sep 11, 2024
f11a38a
little adjust
hiyuki Sep 11, 2024
303b786
fix: swiper position
Sep 11, 2024
994d5fa
Merge branch 'feat-components-v2-merge' of github.com:didi/mpx into f…
Sep 11, 2024
0bd65c3
fix: scroll-view组件销毁重建问题
Sep 12, 2024
a2011c8
fix: android horizatal
Sep 12, 2024
d297bd2
fix(*): fix code.
Sep 12, 2024
8ed3cdc
Merge pull request #1621 from didi/bugfix-line-height
hiyuki Sep 12, 2024
16ffca9
fix: swiper single
Sep 12, 2024
f146d95
Merge branch 'feat-components-v2-merge' of github.com:didi/mpx into f…
Sep 12, 2024
97025a9
fix: scroll
Sep 12, 2024
de6ee96
chore: add ScrollView in react-native-gesture-handler
Sep 12, 2024
35b9722
fix: swiper onScrollEnd is triggered
Sep 12, 2024
843fb27
fix
Sep 12, 2024
7d64826
Merge branch 'master' into feat-components-v2-merge
Sep 12, 2024
15d03a4
Merge branch 'feat-components-v2-merge' of https://github.com/didi/mp…
Sep 12, 2024
f6b9ece
Merge branch 'feat-components-v2-merge' into fix-rn-view-percent
Sep 12, 2024
aa797d8
fix
Sep 12, 2024
faf592f
fix: scroll滚动不准确问题
Sep 12, 2024
f55efbd
fix: ts error
Sep 12, 2024
31d182e
chore: 优化scroll-view
Sep 13, 2024
968c905
Merge pull request #1624 from didi/fix-rn-view-percent
hiyuki Sep 13, 2024
5de9872
fix: tap事件勿触发
Sep 13, 2024
88bcaab
fix: tap事件勿触发
Sep 13, 2024
67d2b46
Merge branch 'master' into feat-components-v2-merge
Sep 18, 2024
35af0f9
fix: vertical scroll
Sep 18, 2024
adb9184
Merge branch 'master' into feat-components-v2-merge
wenwenhua Sep 20, 2024
4498aa0
chore: 修改touchend检测逻辑
Sep 24, 2024
e35830c
Merge pull request #1625 from didi/fix-rn-tap-event
hiyuki Sep 24, 2024
f5625b9
Merge branch 'master' into feat-components-v2-merge
1240318070 Sep 24, 2024
cb67046
Merge branch 'master' into feat-components-v2-merge
Sep 24, 2024
4ac90e6
Merge branch 'feat-components-v2-merge' of https://github.com/didi/mp…
Sep 24, 2024
c97b04c
Merge branch 'master' into feat-components-v2-merge
hiyuki Sep 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
235 changes: 235 additions & 0 deletions docs-vuepress/rn-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -380,3 +380,238 @@
| 属性名 | 类型 | 默认值 | 说明 |
| ----------------------- | ------- | ------------------ | ------------------------------------|
| item-id | string | `无` | 该 swiper-item 的标识符 |


### checkbox
多选项目


属性

| 属性名 | 类型 | 默认值 | 说明 |
| ----------------------- | ------- | ------------- | ---------------------------------------------------------- |
| value | String | | checkbox 标识,选中时触发 checkbox-group 的 change 事件,并携带 checkbox 的 value |
| disabled | Boolean | false | 是否禁用 |
| checked | Boolean | false | 当前是否选中,可用来设置默认选中 |
| color | String | #09BB07 | checkbox的颜色,同css的color |


### checkbox-group
多项选择器,内部由多个checkbox组成。


事件

| 事件名 | 说明 |
| ----------------| ------------------ |
| bindchange | checkbox-group 中选中项发生改变时触发 change 事件,detail = { value: [ 选中的 checkbox 的 value 的数组 ] } |


### radio
单选项目


属性

| 属性名 | 类型 | 默认值 | 说明 |
| ----------------------- | ------- | ------------- | ---------------------------------------------------------- |
| value | String | | radio 标识,当该 radio 选中时,radio-group 的 change 事件会携带 radio 的 value |
| disabled | Boolean | false | 是否禁用 |
| checked | Boolean | false | 当前是否选中,可用来设置默认选中 |
| color | String | #09BB07 | checkbox 的颜色,同 css 的 color |


### radio-group
单项选择器,内部由多个 radio 组成


事件

| 事件名 | 说明 |
| ----------------| ------------------ |
| bindchange | radio-group 中选中项发生改变时触发 change 事件,detail = { value: [ 选中的 radio 的 value 的数组 ] } |


### label
用来改进表单组件的可用性


注意事项

1. 当前不支持使用 for 属性找到对应 id,仅支持将控件放在该标签内,目前可以绑定的空间有:checkbox、radio、switch。


### icon
图标组件


属性

| 属性名 | 类型 | 默认值 | 说明 |
| ----------------------- | ------- | ------------- | ---------------------------------------------------------- |
| type | String | | icon 的类型,有效值:success、success_no_circle、info、warn、waiting、cancel、download、search、clear |
| size | String \| Number | 23 | icon 的大小 |
| color | String | | icon 的颜色,同 css 的 color |


### movable-area
movable-view的可移动区域。

注意事项

1. movable-area不支持设置 scale-area,缩放手势生效区域仅在 movable-view 内

### movable-view
可移动的视图容器,在页面中可以拖拽滑动。movable-view 必须在 movable-area 组件中,并且必须是直接子节点,否则不能移动。


属性

| 属性名 | 类型 | 默认值 | 说明 |
| ------ | ---------------- | ------ | ----------------------------------------------------------------------------------------------------- |
| direction | String | none | 目前支持 all、vertical、horizontal、none|
| x | Number | | 定义x轴方向的偏移 |
| y | Number | | 定义y轴方向的偏移 |
|friction | Number | 7 | 摩擦系数 |
|disabled | boolean | false | 是否禁用 |
|scale | boolean | false | 是否支持双指缩放 |
|scale-min | Number | 0.1 | 定义缩放倍数最小值 |
|scale-max | Number | 10 | 定义缩放倍数最大值 |
|scale-value | Number | 1 | 定义缩放倍数,取值范围为 0.1 - 10 |

事件

| 事件名 | 说明 |
| -------------------- | ------------------------------------------ |
| bindchange | 拖动过程中触发的事件,event.detail = {x, y, source} |
| bindscale | 缩放过程中触发的事件,event.detail = {x, y, scale} |
| htouchmove | 初次手指触摸后移动为横向的移动时触发 |
| vtouchmove | 初次手指触摸后移动为纵向的移动时触发 |

### form
表单。将组件内的用户输入的switch input checkbox slider radio picker 提交。

当点击 form 表单中 form-type 为 submit 的 button 组件时,会将表单组件中的 value 值进行提交,需要在表单组件中加上 name 来作为 key。

事件

| 事件名 | 说明 |
| ---------- | --------------------------------------------------- |
| bindsubmit | 携带 form 中的数据触发 submit 事件,event.detail = {value : {'name': 'value'} } |
| bindreset | 表单重置时会触发 reset 事件 |

### cover-view
视图容器。
功能同 view 组件

### cover-image
视图容器。
功能同 image 组件
| bindchange | 滚动选择时触发change事件,event.detail = {value};value为数组,表示 picker-view 内的 picker-view-column 当前选择的是第几项(下标从 0 开始)|


### picker-view
嵌入页面的滚动选择器。其中只可放置 picker-view-column组件,其它节点不会显示

属性

| 属性名 | 类型 | 默认值 | 说明 |
| ----------------------- | ------------------| ------------------ | ------------------------------------|
| value | Array[number] | `false` | 数组中的数字依次表示 picker-view 内的 picker-view-column 选择的第几项(下标从 0 开始),数字大于 picker-view-column 可选项长度时,选择最后一项。 |


事件

| 事件名 | 说明 |
| ----------------| ------------------ |
| bindchange | checkbox-group 中选中项发生改变时触发 change 事件,detail = { value: [ 选中的 checkbox 的 value 的数组 ] } |

### picker-view-column
滚动选择器子项。仅可放置于picker-view中,其孩子节点的高度会自动设置成与picker-view的选中框的高度一致


### picker
从底部弹起的滚动选择器。

属性

| 属性名 | 类型 | 默认值 | 说明 |
| -----------------------| ------------| ------------------ | -----------------------------|
| mode | string | `selector` | 选择器类型 |
| disabled | boolean | `false` | 是否禁用 |

公共事件

| 事件名 | 说明 |
| ----------------| ------------------ |
| bindcancel | 取消选择时触发 |
| bindchange | 滚动选择时触发change事件,event.detail = {value};value为数组,表示 picker-view 内的 picker-view-column 当前选择的是第几项(下标从 0 开始)|

#### 普通选择器:mode = selector

属性

| 属性名 | 类型 | 默认值 | 说明 |
| -----------------------| ------------------------| ------------- | -----------------------------|
| range | array[object]/array | `[]` | mode 为 selector 或 multiSelector 时,range 有效 |
| range-key | string | `false` | 当 range 是一个 Object Array 时,通过 range-key 来指定 Object 中 key 的值作为选择器显示内容 |
| value | number | 0 | 表示选择了 range 中的第几个(下标从 0 开始)|

#### 多列选择器:mode = multiSelector
属性

| 属性名 | 类型 | 默认值 | 说明 |
| -----------------------| ------------------------| ------------- | -----------------------------|
| range | array[object]/array | `[]` | mode 为 selector 或 multiSelector 时,range 有效 |
| range-key | string | `false` | 当 range 是一个 Object Array 时,通过 range-key 来指定 Object 中 key 的值作为选择器显示内容 |
| value | array | `[]` | 表示选择了 range 中的第几个(下标从 0 开始)|
| bindcolumnchange | | | 列改变时触发|

#### 多列选择器:时间选择器:mode = time
属性

| 属性名 | 类型 | 默认值 | 说明 |
| -----------------------| ------------------------| ------------- | -----------------------------|
| value | string | `[]` | 表示选中的时间,格式为"hh:mm" |
| start | string | `false` | 表示有效时间范围的开始,字符串格式为"hh:mm" |
| end | string | `[]` | 表示有效时间范围的结束,字符串格式为"hh:mm"|

#### 多列选择器:时间选择器:mode = date
属性

| 属性名 | 类型 | 默认值 | 说明 |
| -----------------------| ------------------------| ------------- | ------------------------------------------|
| value | string | `当天` | 表示选中的日期,格式为"YYYY-MM-DD" |
| start | string | `false` | 表示有效日期范围的开始,字符串格式为"YYYY-MM-DD" |
| end | string | `[]` | 表示有效日期范围的结束,字符串格式为"YYYY-MM-DD" |
| fields | string | `day` | 有效值 year,month,day,表示选择器的粒度 |

#### fields 有效值:
| 属性名 | 说明 |
| -----------------------| ------------------------ |
| year | 选择器粒度为年 |
| month | 选择器粒度为月份 |
| day | 选择器粒度为天 |

### 省市区选择器:mode = region
属性

| 属性名 | 类型 | 默认值 | 说明 |
| -----------------------| ------------------------| ------------- | ------------------------------------------|
| value | array | `[]` | 表示选中的省市区,默认选中每一列的第一个值 |
| custom-item | string | | 可为每一列的顶部添加一个自定义的项 |
| level | string | `region` | 选择器层级 |

#### level 有效值:
| 属性名 | 说明 |
| -----------------------| ------------------------ |
| province | 选省级选择器 |
| city | 市级选择器 |
| region | 区级选择器 |







Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ module.exports = function () {
web (tag, { el }) {
el.isBuiltIn = true
return 'mpx-checkbox-group'
},
ios (tag, { el }) {
el.isBuiltIn = true
return 'mpx-checkbox-group'
},
android (tag, { el }) {
el.isBuiltIn = true
return 'mpx-checkbox-group'
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ module.exports = function () {
el.isBuiltIn = true
return 'mpx-checkbox'
},
ios (tag, { el }) {
el.isBuiltIn = true
return 'mpx-checkbox'
},
android (tag, { el }) {
el.isBuiltIn = true
return 'mpx-checkbox'
},
event: [
{
test: 'tap',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ const TAG_NAME = 'cover-image'

module.exports = function ({ print }) {
const aliEventLog = print({ platform: 'ali', tag: TAG_NAME, isError: false, type: 'event' })
const iosPropLog = print({ platform: 'ios', tag: TAG_NAME, isError: false })
const androidPropLog = print({ platform: 'android', tag: TAG_NAME, isError: false })
return {
test: TAG_NAME,
web (tag, { el }) {
Expand All @@ -11,12 +13,25 @@ module.exports = function ({ print }) {
tt () {
return 'image'
},
ios (tag, { el }) {
el.isBuiltIn = true
return 'mpx-image'
},
android (tag, { el }) {
el.isBuiltIn = true
return 'mpx-image'
},
props: [
{
test: 'use-built-in',
web (prop, { el }) {
el.isBuiltIn = true
}
},
{
test: /^(referrer-policy)$/,
ios: iosPropLog,
android: androidPropLog
}
],
event: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module.exports = function ({ print }) {
const aliPropLog = print({ platform: 'ali', tag: TAG_NAME, isError: false })
const baiduValueLogError = print({ platform: 'baidu', tag: TAG_NAME, isError: true, type: 'value' })
const webPropLog = print({ platform: 'web', tag: TAG_NAME, isError: false })

return {
test: TAG_NAME,
web (tag, { el }) {
Expand All @@ -19,6 +20,14 @@ module.exports = function ({ print }) {
tt () {
return 'view'
},
ios (tag, { el }) {
el.isBuiltIn = true
return 'mpx-view'
},
android (tag, { el }) {
el.isBuiltIn = true
return 'mpx-view'
},
props: [
{
test: 'scroll-top',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ module.exports = function ({ print }) {
const jdPropLog = print({ platform: 'jd', tag: TAG_NAME, isError: false })
const webPropLog = print({ platform: 'web', tag: TAG_NAME, isError: false })
const qaPropLog = print({ platform: 'qa', tag: TAG_NAME, isError: false })
const iosPropLog = print({ platform: 'ios', tag: TAG_NAME, isError: false })
const androidPropLog = print({ platform: 'android', tag: TAG_NAME, isError: false })

return {
test: TAG_NAME,
Expand All @@ -15,6 +17,14 @@ module.exports = function ({ print }) {
el.isBuiltIn = true
return 'mpx-form'
},
ios (tag, { el }) {
el.isBuiltIn = true
return 'mpx-form'
},
android (tag, { el }) {
el.isBuiltIn = true
return 'mpx-form'
},
props: [
{
test: /^(report-submit-timeout)$/,
Expand All @@ -26,7 +36,9 @@ module.exports = function ({ print }) {
{
test: /^(report-submit|report-submit-timeout)$/,
web: webPropLog,
qa: qaPropLog
qa: qaPropLog,
ios: iosPropLog,
android: androidPropLog
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ module.exports = function () {
web (tag, { el }) {
el.isBuiltIn = true
return 'mpx-icon'
},
ios (tag, { el }) {
el.isBuiltIn = true
return 'mpx-icon'
},
android (tag, { el }) {
el.isBuiltIn = true
return 'mpx-icon'
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,11 @@ const unsupported = require('./unsupported')
const video = require('./video')
const view = require('./view')
const webView = require('./web-view')
const label = require('./label')
const wxs = require('./wxs')
const component = require('./component')
const fixComponentName = require('./fix-component-name')
const rootPortal = require('./root-portal')

module.exports = function getComponentConfigs ({ warn, error }) {
/**
Expand Down Expand Up @@ -121,6 +123,8 @@ module.exports = function getComponentConfigs ({ warn, error }) {
livePlayer({ print }),
livePusher({ print }),
hyphenTagName({ print }),
component()
label({ print }),
component(),
rootPortal({ print })
]
}
Loading
Loading