@hzab/form-render-mobile 1.2.0 → 1.2.1-beta
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/CHANGELOG.md +251 -243
- package/package.json +71 -71
- package/src/components/Uploader/common/ossUpload.js +69 -61
- package/src/components/Uploader/common/utils.js +147 -142
- package/src/components/Uploader/components/Image/index.tsx +45 -45
- package/src/components/Uploader/components/ItemList/index.tsx +53 -49
- package/src/components/Uploader/uploader.jsx +295 -287
package/CHANGELOG.md
CHANGED
|
@@ -1,243 +1,251 @@
|
|
|
1
|
-
# @hzab/form-render-mobile@1.1
|
|
2
|
-
|
|
3
|
-
feat
|
|
4
|
-
|
|
5
|
-
# @hzab/form-render-mobile@1.
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
# @hzab/form-render-mobile@1.1.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
# @hzab/form-render-mobile@1.1.
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
# @hzab/form-render-mobile@1.
|
|
36
|
-
|
|
37
|
-
fix:
|
|
38
|
-
|
|
39
|
-
# @hzab/form-render-mobile@1.0
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
# @hzab/form-render-mobile@1.0.
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
# @hzab/form-render-mobile@1.0.
|
|
48
|
-
|
|
49
|
-
- fix:
|
|
50
|
-
|
|
51
|
-
# @hzab/form-render-mobile@1.0.
|
|
52
|
-
|
|
53
|
-
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
-
|
|
64
|
-
|
|
65
|
-
# @hzab/form-render-mobile@0.6.
|
|
66
|
-
|
|
67
|
-
-
|
|
68
|
-
|
|
69
|
-
# @hzab/form-render-mobile@0.6.
|
|
70
|
-
|
|
71
|
-
-
|
|
72
|
-
|
|
73
|
-
# @hzab/form-render-mobile@0.
|
|
74
|
-
|
|
75
|
-
- fix: Upload
|
|
76
|
-
|
|
77
|
-
# @hzab/form-render-mobile@0.
|
|
78
|
-
|
|
79
|
-
-
|
|
80
|
-
|
|
81
|
-
# @hzab/form-render-mobile@0.5.
|
|
82
|
-
|
|
83
|
-
- fix:
|
|
84
|
-
|
|
85
|
-
# @hzab/form-render-mobile@0.5.
|
|
86
|
-
|
|
87
|
-
- fix:
|
|
88
|
-
|
|
89
|
-
# @hzab/form-render-mobile@0.5.
|
|
90
|
-
|
|
91
|
-
-
|
|
92
|
-
|
|
93
|
-
# @hzab/form-render-mobile@0.5.
|
|
94
|
-
|
|
95
|
-
- fix:
|
|
96
|
-
|
|
97
|
-
# @hzab/form-render-mobile@0.5.
|
|
98
|
-
|
|
99
|
-
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
- feat:
|
|
109
|
-
|
|
110
|
-
# @hzab/form-render-mobile@0.4.
|
|
111
|
-
|
|
112
|
-
-
|
|
113
|
-
|
|
114
|
-
# @hzab/form-render-mobile@0.4.
|
|
115
|
-
|
|
116
|
-
- feat: Upload
|
|
117
|
-
|
|
118
|
-
# @hzab/form-render-mobile@0.4.
|
|
119
|
-
|
|
120
|
-
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
-
|
|
127
|
-
|
|
128
|
-
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
-
|
|
137
|
-
|
|
138
|
-
-
|
|
139
|
-
|
|
140
|
-
-
|
|
141
|
-
|
|
142
|
-
# @hzab/form-render-mobile@0.
|
|
143
|
-
|
|
144
|
-
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
-
|
|
149
|
-
|
|
150
|
-
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
- fix:
|
|
159
|
-
|
|
160
|
-
# @hzab/form-render-mobile@0.
|
|
161
|
-
|
|
162
|
-
-
|
|
163
|
-
|
|
164
|
-
# @hzab/form-render-mobile@0.2.
|
|
165
|
-
|
|
166
|
-
- fix:
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
-
|
|
178
|
-
|
|
179
|
-
- fix:
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
- fix:
|
|
193
|
-
|
|
194
|
-
# @hzab/form-render-mobile@0.
|
|
195
|
-
|
|
196
|
-
-
|
|
197
|
-
|
|
198
|
-
# @hzab/form-render-mobile@0.
|
|
199
|
-
|
|
200
|
-
- fix:
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
-
|
|
219
|
-
|
|
220
|
-
# @hzab/form-render-mobile@0.0.
|
|
221
|
-
|
|
222
|
-
-
|
|
223
|
-
|
|
224
|
-
# @hzab/form-render-mobile@0.0.
|
|
225
|
-
|
|
226
|
-
-
|
|
227
|
-
|
|
228
|
-
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
-
|
|
233
|
-
|
|
234
|
-
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
1
|
+
# @hzab/form-render-mobile@1.2.1
|
|
2
|
+
|
|
3
|
+
feat:公有环境添加缩略图地址
|
|
4
|
+
|
|
5
|
+
# @hzab/form-render-mobile@1.2.0
|
|
6
|
+
|
|
7
|
+
feat:更换 oss 类,使用 @hzab/utils 中的
|
|
8
|
+
|
|
9
|
+
# @hzab/form-render-mobile@1.1.7
|
|
10
|
+
|
|
11
|
+
feat:支持配置摄像头相关配置
|
|
12
|
+
|
|
13
|
+
# @hzab/form-render-mobile@1.1.6
|
|
14
|
+
|
|
15
|
+
fix: 修复 || 加上 三元判断
|
|
16
|
+
|
|
17
|
+
# @hzab/form-render-mobile@1.1.5
|
|
18
|
+
|
|
19
|
+
fix: 修复 upLoad 上传后缀名
|
|
20
|
+
|
|
21
|
+
# @hzab/form-render-mobile@1.1.4
|
|
22
|
+
|
|
23
|
+
feat: 表单样式优化
|
|
24
|
+
refactor: 去除 lib,直接读取 src
|
|
25
|
+
|
|
26
|
+
# @hzab/form-render-mobile@1.1.3
|
|
27
|
+
|
|
28
|
+
feat: LocationPicker 新增地图点范围
|
|
29
|
+
|
|
30
|
+
# @hzab/form-render-mobile@1.1.2
|
|
31
|
+
|
|
32
|
+
feat: Uploader props.ossOpt.beforeUpload 回调函数
|
|
33
|
+
feat: Uploader 按钮 loading 状态 & 虚线边框
|
|
34
|
+
|
|
35
|
+
# @hzab/form-render-mobile@1.1.1
|
|
36
|
+
|
|
37
|
+
fix: uploader select 默认使用 cordova-plugin-camera 插件
|
|
38
|
+
|
|
39
|
+
# @hzab/form-render-mobile@1.1.0
|
|
40
|
+
|
|
41
|
+
fix: 增加 cordova-plugin-chooser 为上传文件默认插件,支持配置是否启用 cordova-plugin-camera 替代
|
|
42
|
+
|
|
43
|
+
# @hzab/form-render-mobile@1.0.4
|
|
44
|
+
|
|
45
|
+
fix: Uploader ossUpload 多文件 ossUrl 处理逻辑问题修复
|
|
46
|
+
|
|
47
|
+
# @hzab/form-render-mobile@1.0.3
|
|
48
|
+
|
|
49
|
+
- fix: 上传组件 按钮样式
|
|
50
|
+
|
|
51
|
+
# @hzab/form-render-mobile@1.0.2
|
|
52
|
+
|
|
53
|
+
- fix: adm-formily-item-label align-items: unset;
|
|
54
|
+
|
|
55
|
+
# @hzab/form-render-mobile@1.0.1
|
|
56
|
+
|
|
57
|
+
- fix: adm-formily-item-extra line-height: 1.3
|
|
58
|
+
|
|
59
|
+
# @hzab/form-render-mobile@1.0.0
|
|
60
|
+
|
|
61
|
+
- break: FormItem 去除 List,解决配置差异问题。
|
|
62
|
+
- fix: item style;
|
|
63
|
+
- 增加 item 类名:item-name-xxx
|
|
64
|
+
|
|
65
|
+
# @hzab/form-render-mobile@0.6.3
|
|
66
|
+
|
|
67
|
+
- feat: Upload 支持 ref 触发
|
|
68
|
+
|
|
69
|
+
# @hzab/form-render-mobile@0.6.2
|
|
70
|
+
|
|
71
|
+
- fix: Upload img viewer
|
|
72
|
+
|
|
73
|
+
# @hzab/form-render-mobile@0.6.1
|
|
74
|
+
|
|
75
|
+
- fix: Upload 样式调整
|
|
76
|
+
|
|
77
|
+
# @hzab/form-render-mobile@0.6.0
|
|
78
|
+
|
|
79
|
+
- feat: 支持 cordova 插件选中图片
|
|
80
|
+
|
|
81
|
+
# @hzab/form-render-mobile@0.5.6
|
|
82
|
+
|
|
83
|
+
- fix: Upload 样式调整、img 支持点击空白区域预览
|
|
84
|
+
|
|
85
|
+
# @hzab/form-render-mobile@0.5.5
|
|
86
|
+
|
|
87
|
+
- fix: Upload 样式调整、img 支持点击 img 关闭弹窗
|
|
88
|
+
|
|
89
|
+
# @hzab/form-render-mobile@0.5.4
|
|
90
|
+
|
|
91
|
+
- fix: adm-list-item-content-prefix adm-list-item-content-main padding
|
|
92
|
+
|
|
93
|
+
# @hzab/form-render-mobile@0.5.3
|
|
94
|
+
|
|
95
|
+
- fix: FormItem colon style
|
|
96
|
+
|
|
97
|
+
# @hzab/form-render-mobile@0.5.2
|
|
98
|
+
|
|
99
|
+
- refactor: FormItem
|
|
100
|
+
|
|
101
|
+
# @hzab/form-render-mobile@0.5.1
|
|
102
|
+
|
|
103
|
+
- fix: labelCol 兼容在不同布局的情况
|
|
104
|
+
|
|
105
|
+
# @hzab/form-render-mobile@0.5.0
|
|
106
|
+
|
|
107
|
+
- feat: layout labelCol、wrapperCol
|
|
108
|
+
- feat: labelAlign
|
|
109
|
+
|
|
110
|
+
# @hzab/form-render-mobile@0.4.7
|
|
111
|
+
|
|
112
|
+
- feat: upload scaleImg
|
|
113
|
+
|
|
114
|
+
# @hzab/form-render-mobile@0.4.6
|
|
115
|
+
|
|
116
|
+
- feat: Upload cordova-plugin-camera
|
|
117
|
+
|
|
118
|
+
# @hzab/form-render-mobile@0.4.5
|
|
119
|
+
|
|
120
|
+
- fix: nanoid@3.3.7
|
|
121
|
+
|
|
122
|
+
# @hzab/form-render-mobile@0.4.4
|
|
123
|
+
|
|
124
|
+
- feat: Upload uploadBtnNode
|
|
125
|
+
|
|
126
|
+
# @hzab/form-render-mobile@0.4.3
|
|
127
|
+
|
|
128
|
+
- Uploader 图片支持传 header
|
|
129
|
+
- Slider 空值处理
|
|
130
|
+
- refactor: svg-icon.js -> svg-icon.jsx
|
|
131
|
+
|
|
132
|
+
# @hzab/form-render-mobile@0.4.2
|
|
133
|
+
|
|
134
|
+
- Checkbox 组件 formRender.reset 无反应问题修复
|
|
135
|
+
- Radio 组件 formRender.reset 无反应问题修复
|
|
136
|
+
- Slider 组件 formRender.reset 无反应问题修复
|
|
137
|
+
|
|
138
|
+
# @hzab/form-render-mobile@0.4.1
|
|
139
|
+
|
|
140
|
+
- 地图组件 请求优化
|
|
141
|
+
|
|
142
|
+
# @hzab/form-render-mobile@0.4.0
|
|
143
|
+
|
|
144
|
+
- feat: LocationPicker icons 配置
|
|
145
|
+
- fix: LocationPicker 去除 isObjectRes 参数,全部直接存在 value 的对象中
|
|
146
|
+
- fix: LocationPicker 去除 changMode 参数,仅允许 点击地图选点
|
|
147
|
+
- fix: LocationPicker 获取地址逻辑修复
|
|
148
|
+
- feat: treeSelect 支持父子联动
|
|
149
|
+
|
|
150
|
+
# @hzab/form-render-mobile@0.3.2
|
|
151
|
+
|
|
152
|
+
- fix: treeSelect Checkbox disabled
|
|
153
|
+
|
|
154
|
+
# @hzab/form-render-mobile@0.3.1
|
|
155
|
+
|
|
156
|
+
- fix: treeSelect PickerRightOutline Placeholder
|
|
157
|
+
- fix: treeSelect 数据兼容
|
|
158
|
+
- fix: treeSelect showCheckedStrategy
|
|
159
|
+
|
|
160
|
+
# @hzab/form-render-mobile@0.3.0
|
|
161
|
+
|
|
162
|
+
- treeSelect
|
|
163
|
+
|
|
164
|
+
# @hzab/form-render-mobile@0.2.7
|
|
165
|
+
|
|
166
|
+
- fix: getCurrentPosition 逻辑调整
|
|
167
|
+
|
|
168
|
+
# @hzab/form-render-mobile@0.2.5
|
|
169
|
+
|
|
170
|
+
- feat: LocationPicker disabled readOnly;icon;resetCenter;getCurPosition
|
|
171
|
+
|
|
172
|
+
# @hzab/form-render-mobile@0.2.4
|
|
173
|
+
|
|
174
|
+
- fix: LocationPicker 优化
|
|
175
|
+
- fix: font-size: 4vw
|
|
176
|
+
|
|
177
|
+
# @hzab/form-render-mobile@0.2.3
|
|
178
|
+
|
|
179
|
+
- fix: map 重构
|
|
180
|
+
- fix: map 使用 touchend,解决 moveend 频繁刷新甚至死循环的情况
|
|
181
|
+
- form-item font-size 30px
|
|
182
|
+
|
|
183
|
+
# @hzab/form-render-mobile@0.2.2
|
|
184
|
+
|
|
185
|
+
- fix: setPoint center
|
|
186
|
+
- fix: addrLoading 异常修复
|
|
187
|
+
- fix: 优化地图搜索列表
|
|
188
|
+
|
|
189
|
+
# @hzab/form-render-mobile@0.2.1
|
|
190
|
+
|
|
191
|
+
- fix: 地图选点组件 点击选点逻辑修复
|
|
192
|
+
- fix: 地图选点组件 搜索支持自动发起请求
|
|
193
|
+
|
|
194
|
+
# @hzab/form-render-mobile@0.2.0
|
|
195
|
+
|
|
196
|
+
- LocationPicker 组件
|
|
197
|
+
|
|
198
|
+
# @hzab/form-render-mobile@0.1.1
|
|
199
|
+
|
|
200
|
+
- fix: Cascader、DatePicker、Select、TimePicker props.onConfirm 被覆盖的问题
|
|
201
|
+
|
|
202
|
+
# @hzab/form-render-mobile@0.1.0
|
|
203
|
+
|
|
204
|
+
- UserSelect、Checkbox、Radio 组件
|
|
205
|
+
|
|
206
|
+
# @hzab/form-render-mobile@0.0.20
|
|
207
|
+
|
|
208
|
+
- fix: PickerRightOutline disable readOnly
|
|
209
|
+
- fix: Card style
|
|
210
|
+
|
|
211
|
+
# @hzab/form-render-mobile@0.0.18
|
|
212
|
+
|
|
213
|
+
- fix: ossUpload file name xxxxx_Date.now()\_Math.random().xx
|
|
214
|
+
|
|
215
|
+
# @hzab/form-render-mobile@0.0.17
|
|
216
|
+
|
|
217
|
+
- feat: FormLayout
|
|
218
|
+
- feat: props axios & axiosConf
|
|
219
|
+
|
|
220
|
+
# @hzab/form-render-mobile@0.0.16
|
|
221
|
+
|
|
222
|
+
- feat: Uploader loading
|
|
223
|
+
|
|
224
|
+
# @hzab/form-render-mobile@0.0.15
|
|
225
|
+
|
|
226
|
+
- fix: Uploader video & Audio
|
|
227
|
+
|
|
228
|
+
# @hzab/form-render-mobile@0.0.13
|
|
229
|
+
|
|
230
|
+
- fix: Collapse setActives 打包之后失效 问题处理
|
|
231
|
+
|
|
232
|
+
# @hzab/form-render-mobile@0.0.7
|
|
233
|
+
|
|
234
|
+
- layout 处理逻辑优化(修复 响应器 失效问题)
|
|
235
|
+
- 修复 Uploader fileList Array<string> 数据格式兼容问题
|
|
236
|
+
- 新增 Card 组件
|
|
237
|
+
|
|
238
|
+
# @hzab/form-render-mobile@0.0.4
|
|
239
|
+
|
|
240
|
+
- uploader 问题修复
|
|
241
|
+
- break: 去除地图选点组件
|
|
242
|
+
- 上传组件 image 支持点击预览
|
|
243
|
+
|
|
244
|
+
# @hzab/form-render-mobile@0.0.2
|
|
245
|
+
|
|
246
|
+
- 默认开启提交按钮
|
|
247
|
+
- NumberPicker 只读状态
|
|
248
|
+
|
|
249
|
+
# @hzab/form-render-mobile@0.0.1
|
|
250
|
+
|
|
251
|
+
组件初始化
|
package/package.json
CHANGED
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@hzab/form-render-mobile",
|
|
3
|
-
"version": "1.2.
|
|
4
|
-
"description": "formily-form-render-mobile",
|
|
5
|
-
"main": "src",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"dev": "npm run prepare && webpack serve -c ./config/webpack.config.js --env local",
|
|
8
|
-
"build": "webpack -c ./config/webpack.config.js --env production",
|
|
9
|
-
"publish-beta": "npm publish --beta",
|
|
10
|
-
"publish-patch": "npm version patch && npm publish --access public",
|
|
11
|
-
"publish-minor": "npm version minor && npm publish --access public",
|
|
12
|
-
"publish-major": "npm version major && npm publish --access public",
|
|
13
|
-
"prepare": "husky install",
|
|
14
|
-
"mac-chmod": "chmod +x .husky && chmod +x .husky/pre-commit",
|
|
15
|
-
"docs": "typedoc"
|
|
16
|
-
},
|
|
17
|
-
"files": [
|
|
18
|
-
"src",
|
|
19
|
-
"CHANGELOG.md"
|
|
20
|
-
],
|
|
21
|
-
"keywords": [],
|
|
22
|
-
"author": "CaiYansong",
|
|
23
|
-
"license": "ISC",
|
|
24
|
-
"devDependencies": {
|
|
25
|
-
"@ant-design/icons": "^5.2.6",
|
|
26
|
-
"@hzab/permissions": "^0.1.1",
|
|
27
|
-
"@hzab/webpack-config": "0.0.12",
|
|
28
|
-
"@types/react": "^17.0.62",
|
|
29
|
-
"@types/react-dom": "^17.0.20",
|
|
30
|
-
"axios": "^1.4.0",
|
|
31
|
-
"babel-plugin-import": "^1.13.8",
|
|
32
|
-
"eslint": "^8.30.0",
|
|
33
|
-
"less": "^4.1.3",
|
|
34
|
-
"mobx": "^6.7.0",
|
|
35
|
-
"mobx-react": "^7.6.0",
|
|
36
|
-
"react": "^17.0.2",
|
|
37
|
-
"react-dom": "^17.0.2",
|
|
38
|
-
"react-router-dom": "^6.14.1",
|
|
39
|
-
"typedoc": "^0.24.8",
|
|
40
|
-
"typescript": "^4.9.4"
|
|
41
|
-
},
|
|
42
|
-
"dependencies": {
|
|
43
|
-
"@amap/amap-jsapi-loader": "^1.0.1",
|
|
44
|
-
"@formily/antd-mobile": "1.0.0-beta.3",
|
|
45
|
-
"@formily/core": "2.2.29",
|
|
46
|
-
"@formily/react": "2.2.29",
|
|
47
|
-
"@hzab/data-model": "^0.0.3",
|
|
48
|
-
"antd-mobile": "^5.32.0",
|
|
49
|
-
"antd-mobile-icons": "^0.2.2",
|
|
50
|
-
"nanoid": "^3.3.7",
|
|
51
|
-
"postcss-px-to-viewport": "^1.1.1",
|
|
52
|
-
"react-virtualized": "^9.22.5"
|
|
53
|
-
},
|
|
54
|
-
"directories": {
|
|
55
|
-
"lib": "lib"
|
|
56
|
-
},
|
|
57
|
-
"lint-staged": {
|
|
58
|
-
"src/**.{js,jsx,ts,tsx,css,scss,less,json,html}": [
|
|
59
|
-
"prettier --write"
|
|
60
|
-
],
|
|
61
|
-
"src/**/**.{js,jsx,ts,tsx,css,scss,less,json,html}": [
|
|
62
|
-
"prettier --write"
|
|
63
|
-
],
|
|
64
|
-
"example/**.{js,jsx,ts,tsx,css,scss,less,json,html}": [
|
|
65
|
-
"prettier --write"
|
|
66
|
-
],
|
|
67
|
-
"example/**/**.{js,jsx,ts,tsx,css,scss,less,json,html}": [
|
|
68
|
-
"prettier --write"
|
|
69
|
-
]
|
|
70
|
-
}
|
|
71
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@hzab/form-render-mobile",
|
|
3
|
+
"version": "1.2.1-beta",
|
|
4
|
+
"description": "formily-form-render-mobile",
|
|
5
|
+
"main": "src",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"dev": "npm run prepare && webpack serve -c ./config/webpack.config.js --env local",
|
|
8
|
+
"build": "webpack -c ./config/webpack.config.js --env production",
|
|
9
|
+
"publish-beta": "npm publish --beta",
|
|
10
|
+
"publish-patch": "npm version patch && npm publish --access public",
|
|
11
|
+
"publish-minor": "npm version minor && npm publish --access public",
|
|
12
|
+
"publish-major": "npm version major && npm publish --access public",
|
|
13
|
+
"prepare": "husky install",
|
|
14
|
+
"mac-chmod": "chmod +x .husky && chmod +x .husky/pre-commit",
|
|
15
|
+
"docs": "typedoc"
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"src",
|
|
19
|
+
"CHANGELOG.md"
|
|
20
|
+
],
|
|
21
|
+
"keywords": [],
|
|
22
|
+
"author": "CaiYansong",
|
|
23
|
+
"license": "ISC",
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@ant-design/icons": "^5.2.6",
|
|
26
|
+
"@hzab/permissions": "^0.1.1",
|
|
27
|
+
"@hzab/webpack-config": "0.0.12",
|
|
28
|
+
"@types/react": "^17.0.62",
|
|
29
|
+
"@types/react-dom": "^17.0.20",
|
|
30
|
+
"axios": "^1.4.0",
|
|
31
|
+
"babel-plugin-import": "^1.13.8",
|
|
32
|
+
"eslint": "^8.30.0",
|
|
33
|
+
"less": "^4.1.3",
|
|
34
|
+
"mobx": "^6.7.0",
|
|
35
|
+
"mobx-react": "^7.6.0",
|
|
36
|
+
"react": "^17.0.2",
|
|
37
|
+
"react-dom": "^17.0.2",
|
|
38
|
+
"react-router-dom": "^6.14.1",
|
|
39
|
+
"typedoc": "^0.24.8",
|
|
40
|
+
"typescript": "^4.9.4"
|
|
41
|
+
},
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"@amap/amap-jsapi-loader": "^1.0.1",
|
|
44
|
+
"@formily/antd-mobile": "1.0.0-beta.3",
|
|
45
|
+
"@formily/core": "2.2.29",
|
|
46
|
+
"@formily/react": "2.2.29",
|
|
47
|
+
"@hzab/data-model": "^0.0.3",
|
|
48
|
+
"antd-mobile": "^5.32.0",
|
|
49
|
+
"antd-mobile-icons": "^0.2.2",
|
|
50
|
+
"nanoid": "^3.3.7",
|
|
51
|
+
"postcss-px-to-viewport": "^1.1.1",
|
|
52
|
+
"react-virtualized": "^9.22.5"
|
|
53
|
+
},
|
|
54
|
+
"directories": {
|
|
55
|
+
"lib": "lib"
|
|
56
|
+
},
|
|
57
|
+
"lint-staged": {
|
|
58
|
+
"src/**.{js,jsx,ts,tsx,css,scss,less,json,html}": [
|
|
59
|
+
"prettier --write"
|
|
60
|
+
],
|
|
61
|
+
"src/**/**.{js,jsx,ts,tsx,css,scss,less,json,html}": [
|
|
62
|
+
"prettier --write"
|
|
63
|
+
],
|
|
64
|
+
"example/**.{js,jsx,ts,tsx,css,scss,less,json,html}": [
|
|
65
|
+
"prettier --write"
|
|
66
|
+
],
|
|
67
|
+
"example/**/**.{js,jsx,ts,tsx,css,scss,less,json,html}": [
|
|
68
|
+
"prettier --write"
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
}
|