@steedos/service-plugin-amis 2.2.52-beta.22 → 2.2.52-beta.26
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.
|
@@ -252,15 +252,21 @@ module.exports = {
|
|
|
252
252
|
operators: getFieldOperators(field.type)
|
|
253
253
|
});
|
|
254
254
|
break;
|
|
255
|
+
// 以下date 、datetime、time 不能作为amis 表单项的格式 . filters 对此格式做个特殊兼容,
|
|
255
256
|
case 'date':
|
|
257
|
+
// amins的format不支持Z后缀,只能用+offset格式 .
|
|
258
|
+
// 华炎魔方中日期字段存的是utc的0点
|
|
256
259
|
fields.push({
|
|
257
260
|
label: field.label,
|
|
258
261
|
type: field.type,
|
|
259
262
|
name: field.name,
|
|
263
|
+
format: "YYYY-MM-DDT00:00:00+00:00",
|
|
260
264
|
operators: getFieldOperators(field.type)
|
|
261
265
|
});
|
|
262
266
|
break;
|
|
263
267
|
case 'datetime':
|
|
268
|
+
// 这里不需要配置format,因为日期时间是记时区的,amins中日期时间控件输出本地时间值的
|
|
269
|
+
// 即amins中日期时间控件的format默认值为"YYYY-MM-DDTHH:mm+08:00"正好满足需求
|
|
264
270
|
fields.push({
|
|
265
271
|
label: field.label,
|
|
266
272
|
type: field.type,
|
|
@@ -269,10 +275,13 @@ module.exports = {
|
|
|
269
275
|
});
|
|
270
276
|
break;
|
|
271
277
|
case 'time':
|
|
278
|
+
//amins的format不支持Z后缀,只能用+offset格式
|
|
279
|
+
// 华炎魔方中时间字段存的是1970-01-01的utc时间
|
|
272
280
|
fields.push({
|
|
273
281
|
label: field.label,
|
|
274
282
|
type: field.type,
|
|
275
283
|
name: field.name,
|
|
284
|
+
format: "1970-01-01THH:mm+00:00",
|
|
276
285
|
operators: getFieldOperators(field.type)
|
|
277
286
|
});
|
|
278
287
|
break;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/service-plugin-amis",
|
|
3
|
-
"version": "2.2.52-beta.
|
|
3
|
+
"version": "2.2.52-beta.26",
|
|
4
4
|
"main": "package.service.js",
|
|
5
5
|
"scripts": {},
|
|
6
6
|
"license": "MIT",
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
"publishConfig": {
|
|
9
9
|
"access": "public"
|
|
10
10
|
},
|
|
11
|
-
"gitHead": "
|
|
11
|
+
"gitHead": "2b297f58c1f1be52bf2290f7b7d8ea5db5c903fc"
|
|
12
12
|
}
|