@lingxiteam/assets 1.0.12-alpha.5 → 1.0.12-alpha.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.
@@ -11,6 +11,17 @@ var h5 = {
11
11
  } else {
12
12
  props.btnIcon = false;
13
13
  }
14
+ if (props.name && !props.children) {
15
+ props.children = props.name;
16
+ }
17
+ if (props.disabled !== undefined) {
18
+ if (props.disabled) {
19
+ props.status = '3';
20
+ } else {
21
+ props.status = '1';
22
+ }
23
+ delete props.disabled;
24
+ }
14
25
  return component;
15
26
  },
16
27
  Icon: function Icon() {
@@ -15,9 +15,9 @@ export default {
15
15
  catalogItemId: -1,
16
16
  ignoreLogin: false,
17
17
  mode: 'alert',
18
- closeOnClickOverlay: false,
19
- destroyOnClose: false,
20
- showCloseButton: false,
18
+ closeOnClickOverlay: true,
19
+ destroyOnClose: true,
20
+ showCloseButton: true,
21
21
  compState: [{
22
22
  name: '业务主键',
23
23
  code: 'bizId'
@@ -9,6 +9,7 @@ declare const _default: {
9
9
  pageDynamicFlag: boolean;
10
10
  catalogItemId: number;
11
11
  ignoreLogin: boolean;
12
+ hideNavBar: boolean;
12
13
  layout: string;
13
14
  searchParams: {
14
15
  name: string;
@@ -16,6 +16,7 @@ export default {
16
16
  pageDynamicFlag: false,
17
17
  catalogItemId: -1,
18
18
  ignoreLogin: false,
19
+ hideNavBar: false,
19
20
  layout: 'BaseLayout',
20
21
  searchParams: [{
21
22
  name: '业务主键',
@@ -30,25 +30,8 @@ declare const _default: {
30
30
  todoEvents: ({
31
31
  value: string;
32
32
  label: string;
33
- terminal?: undefined;
34
- params?: undefined;
35
33
  dependProps?: undefined;
36
- } | {
37
- value: string;
38
- label: string;
39
- terminal: string[];
40
34
  params?: undefined;
41
- dependProps?: undefined;
42
- } | {
43
- value: string;
44
- label: string;
45
- terminal: string[];
46
- params: {
47
- title: string;
48
- name: string;
49
- value: string;
50
- }[];
51
- dependProps?: undefined;
52
35
  } | {
53
36
  value: string;
54
37
  label: string;
@@ -60,7 +43,6 @@ declare const _default: {
60
43
  name: string;
61
44
  value: string;
62
45
  }[];
63
- terminal?: undefined;
64
46
  })[];
65
47
  todoProps: {
66
48
  pageName: {
@@ -100,19 +100,6 @@ export default {
100
100
  }, {
101
101
  value: 'willUnmount',
102
102
  label: '页面退出'
103
- }, {
104
- value: 'onLeftClick',
105
- label: '页面返回点击事件',
106
- terminal: ['mobile']
107
- }, {
108
- value: 'otherPageMessage',
109
- label: '接收页面信息',
110
- terminal: ['mobile'],
111
- params: [{
112
- title: '接收数据信息',
113
- name: 'p',
114
- value: '$p$'
115
- }]
116
103
  }, {
117
104
  value: 'onPageCacheRefresh',
118
105
  label: '页面缓存刷新',
@@ -1425,6 +1425,17 @@ declare const todoActionObject: {
1425
1425
  labelTip: string;
1426
1426
  props: {
1427
1427
  placeholder: string;
1428
+ defaultValue?: undefined;
1429
+ };
1430
+ aliasKey?: undefined;
1431
+ } | {
1432
+ key: string;
1433
+ label: string;
1434
+ type: string;
1435
+ labelTip: string;
1436
+ props: {
1437
+ defaultValue: boolean;
1438
+ placeholder?: undefined;
1428
1439
  };
1429
1440
  aliasKey?: undefined;
1430
1441
  })[];
@@ -2372,9 +2383,20 @@ declare const todoActionObject: {
2372
2383
  isRequired: boolean;
2373
2384
  valuePropName: string;
2374
2385
  options: {
2375
- fileUpload: boolean;
2376
2386
  refreshKey: string[];
2377
- serviceTabs: string[];
2387
+ serviceTabs: ({
2388
+ key: string;
2389
+ description: string;
2390
+ filterParams: {
2391
+ fileInputEnabled: string;
2392
+ };
2393
+ fileUpload?: undefined;
2394
+ } | {
2395
+ key: string;
2396
+ fileUpload: boolean;
2397
+ description: string;
2398
+ filterParams?: undefined;
2399
+ })[];
2378
2400
  };
2379
2401
  };
2380
2402
  } | {
@@ -1698,6 +1698,14 @@ var todoActionObject = {
1698
1698
  props: {
1699
1699
  placeholder: '包括后缀,如: 表格.xls'
1700
1700
  }
1701
+ }, {
1702
+ key: 'zip',
1703
+ label: '单文件压缩',
1704
+ type: 'Switch',
1705
+ labelTip: '默认为单文件不压缩,多文件压缩,若开启单文件压缩为“是”,则不区分单文件/多文件,都压缩。',
1706
+ props: {
1707
+ defaultValue: false
1708
+ }
1701
1709
  }],
1702
1710
  classification: [{
1703
1711
  label: '下载',
@@ -2692,9 +2700,18 @@ var todoActionObject = {
2692
2700
  isRequired: true,
2693
2701
  valuePropName: 'custUrl',
2694
2702
  options: {
2695
- fileUpload: true,
2696
2703
  refreshKey: ['objectFields'],
2697
- serviceTabs: [SERVICE_KEY.STD, SERVICE_KEY.INNER]
2704
+ serviceTabs: [{
2705
+ key: SERVICE_KEY.STD,
2706
+ description: '此处仅展示开启文件入参的编排服务,服务入参需包含impFile(文件类型)字段用于接收文件和param(对象类型,非必须)字段接收自定义参数',
2707
+ filterParams: {
2708
+ fileInputEnabled: 'T'
2709
+ }
2710
+ }, {
2711
+ key: SERVICE_KEY.INNER,
2712
+ fileUpload: true,
2713
+ description: '此处仅展示开启上传控件中使用的请求层服务,服务入参需包含impFile(文件类型)字段用于接收文件和param(对象类型,非必须)字段接收自定义参数'
2714
+ }]
2698
2715
  }
2699
2716
  }
2700
2717
  }, {
@@ -952,9 +952,20 @@ declare const todoOptionList: {
952
952
  isRequired: boolean;
953
953
  valuePropName: string;
954
954
  options: {
955
- fileUpload: boolean;
956
955
  refreshKey: string[];
957
- serviceTabs: string[];
956
+ serviceTabs: ({
957
+ key: string;
958
+ description: string;
959
+ filterParams: {
960
+ fileInputEnabled: string;
961
+ };
962
+ fileUpload?: undefined;
963
+ } | {
964
+ key: string;
965
+ fileUpload: boolean;
966
+ description: string;
967
+ filterParams?: undefined;
968
+ })[];
958
969
  };
959
970
  };
960
971
  };
@@ -1126,9 +1126,18 @@ var todoOptionList = {
1126
1126
  isRequired: true,
1127
1127
  valuePropName: 'custUrl',
1128
1128
  options: {
1129
- fileUpload: true,
1130
1129
  refreshKey: ['objectFields'],
1131
- serviceTabs: [SERVICE_KEY.STD, SERVICE_KEY.INNER]
1130
+ serviceTabs: [{
1131
+ key: SERVICE_KEY.STD,
1132
+ description: '此处仅展示开启文件入参的编排服务,服务入参需包含impFile(文件类型)字段用于接收文件和param(对象类型,非必须)字段接收自定义参数',
1133
+ filterParams: {
1134
+ fileInputEnabled: 'T'
1135
+ }
1136
+ }, {
1137
+ key: SERVICE_KEY.INNER,
1138
+ fileUpload: true,
1139
+ description: '此处仅展示开启上传控件中使用的请求层服务,服务入参需包含impFile(文件类型)字段用于接收文件和param(对象类型,非必须)字段接收自定义参数'
1140
+ }]
1132
1141
  }
1133
1142
  }
1134
1143
  },
@@ -17,6 +17,17 @@ var h5 = {
17
17
  } else {
18
18
  props.btnIcon = false;
19
19
  }
20
+ if (props.name && !props.children) {
21
+ props.children = props.name;
22
+ }
23
+ if (props.disabled !== undefined) {
24
+ if (props.disabled) {
25
+ props.status = '3';
26
+ } else {
27
+ props.status = '1';
28
+ }
29
+ delete props.disabled;
30
+ }
20
31
  return component;
21
32
  },
22
33
  Icon: function Icon() {
@@ -21,9 +21,9 @@ var _default = {
21
21
  catalogItemId: -1,
22
22
  ignoreLogin: false,
23
23
  mode: 'alert',
24
- closeOnClickOverlay: false,
25
- destroyOnClose: false,
26
- showCloseButton: false,
24
+ closeOnClickOverlay: true,
25
+ destroyOnClose: true,
26
+ showCloseButton: true,
27
27
  compState: [{
28
28
  name: '业务主键',
29
29
  code: 'bizId'
@@ -9,6 +9,7 @@ declare const _default: {
9
9
  pageDynamicFlag: boolean;
10
10
  catalogItemId: number;
11
11
  ignoreLogin: boolean;
12
+ hideNavBar: boolean;
12
13
  layout: string;
13
14
  searchParams: {
14
15
  name: string;
@@ -22,6 +22,7 @@ var _default = {
22
22
  pageDynamicFlag: false,
23
23
  catalogItemId: -1,
24
24
  ignoreLogin: false,
25
+ hideNavBar: false,
25
26
  layout: 'BaseLayout',
26
27
  searchParams: [{
27
28
  name: '业务主键',
@@ -30,25 +30,8 @@ declare const _default: {
30
30
  todoEvents: ({
31
31
  value: string;
32
32
  label: string;
33
- terminal?: undefined;
34
- params?: undefined;
35
33
  dependProps?: undefined;
36
- } | {
37
- value: string;
38
- label: string;
39
- terminal: string[];
40
34
  params?: undefined;
41
- dependProps?: undefined;
42
- } | {
43
- value: string;
44
- label: string;
45
- terminal: string[];
46
- params: {
47
- title: string;
48
- name: string;
49
- value: string;
50
- }[];
51
- dependProps?: undefined;
52
35
  } | {
53
36
  value: string;
54
37
  label: string;
@@ -60,7 +43,6 @@ declare const _default: {
60
43
  name: string;
61
44
  value: string;
62
45
  }[];
63
- terminal?: undefined;
64
46
  })[];
65
47
  todoProps: {
66
48
  pageName: {
@@ -106,19 +106,6 @@ var _default = {
106
106
  }, {
107
107
  value: 'willUnmount',
108
108
  label: '页面退出'
109
- }, {
110
- value: 'onLeftClick',
111
- label: '页面返回点击事件',
112
- terminal: ['mobile']
113
- }, {
114
- value: 'otherPageMessage',
115
- label: '接收页面信息',
116
- terminal: ['mobile'],
117
- params: [{
118
- title: '接收数据信息',
119
- name: 'p',
120
- value: '$p$'
121
- }]
122
109
  }, {
123
110
  value: 'onPageCacheRefresh',
124
111
  label: '页面缓存刷新',
@@ -1425,6 +1425,17 @@ declare const todoActionObject: {
1425
1425
  labelTip: string;
1426
1426
  props: {
1427
1427
  placeholder: string;
1428
+ defaultValue?: undefined;
1429
+ };
1430
+ aliasKey?: undefined;
1431
+ } | {
1432
+ key: string;
1433
+ label: string;
1434
+ type: string;
1435
+ labelTip: string;
1436
+ props: {
1437
+ defaultValue: boolean;
1438
+ placeholder?: undefined;
1428
1439
  };
1429
1440
  aliasKey?: undefined;
1430
1441
  })[];
@@ -2372,9 +2383,20 @@ declare const todoActionObject: {
2372
2383
  isRequired: boolean;
2373
2384
  valuePropName: string;
2374
2385
  options: {
2375
- fileUpload: boolean;
2376
2386
  refreshKey: string[];
2377
- serviceTabs: string[];
2387
+ serviceTabs: ({
2388
+ key: string;
2389
+ description: string;
2390
+ filterParams: {
2391
+ fileInputEnabled: string;
2392
+ };
2393
+ fileUpload?: undefined;
2394
+ } | {
2395
+ key: string;
2396
+ fileUpload: boolean;
2397
+ description: string;
2398
+ filterParams?: undefined;
2399
+ })[];
2378
2400
  };
2379
2401
  };
2380
2402
  } | {
@@ -1704,6 +1704,14 @@ var todoActionObject = {
1704
1704
  props: {
1705
1705
  placeholder: '包括后缀,如: 表格.xls'
1706
1706
  }
1707
+ }, {
1708
+ key: 'zip',
1709
+ label: '单文件压缩',
1710
+ type: 'Switch',
1711
+ labelTip: '默认为单文件不压缩,多文件压缩,若开启单文件压缩为“是”,则不区分单文件/多文件,都压缩。',
1712
+ props: {
1713
+ defaultValue: false
1714
+ }
1707
1715
  }],
1708
1716
  classification: [{
1709
1717
  label: '下载',
@@ -2698,9 +2706,18 @@ var todoActionObject = {
2698
2706
  isRequired: true,
2699
2707
  valuePropName: 'custUrl',
2700
2708
  options: {
2701
- fileUpload: true,
2702
2709
  refreshKey: ['objectFields'],
2703
- serviceTabs: [SERVICE_KEY.STD, SERVICE_KEY.INNER]
2710
+ serviceTabs: [{
2711
+ key: SERVICE_KEY.STD,
2712
+ description: '此处仅展示开启文件入参的编排服务,服务入参需包含impFile(文件类型)字段用于接收文件和param(对象类型,非必须)字段接收自定义参数',
2713
+ filterParams: {
2714
+ fileInputEnabled: 'T'
2715
+ }
2716
+ }, {
2717
+ key: SERVICE_KEY.INNER,
2718
+ fileUpload: true,
2719
+ description: '此处仅展示开启上传控件中使用的请求层服务,服务入参需包含impFile(文件类型)字段用于接收文件和param(对象类型,非必须)字段接收自定义参数'
2720
+ }]
2704
2721
  }
2705
2722
  }
2706
2723
  }, {
@@ -952,9 +952,20 @@ declare const todoOptionList: {
952
952
  isRequired: boolean;
953
953
  valuePropName: string;
954
954
  options: {
955
- fileUpload: boolean;
956
955
  refreshKey: string[];
957
- serviceTabs: string[];
956
+ serviceTabs: ({
957
+ key: string;
958
+ description: string;
959
+ filterParams: {
960
+ fileInputEnabled: string;
961
+ };
962
+ fileUpload?: undefined;
963
+ } | {
964
+ key: string;
965
+ fileUpload: boolean;
966
+ description: string;
967
+ filterParams?: undefined;
968
+ })[];
958
969
  };
959
970
  };
960
971
  };
@@ -1132,9 +1132,18 @@ var todoOptionList = {
1132
1132
  isRequired: true,
1133
1133
  valuePropName: 'custUrl',
1134
1134
  options: {
1135
- fileUpload: true,
1136
1135
  refreshKey: ['objectFields'],
1137
- serviceTabs: [SERVICE_KEY.STD, SERVICE_KEY.INNER]
1136
+ serviceTabs: [{
1137
+ key: SERVICE_KEY.STD,
1138
+ description: '此处仅展示开启文件入参的编排服务,服务入参需包含impFile(文件类型)字段用于接收文件和param(对象类型,非必须)字段接收自定义参数',
1139
+ filterParams: {
1140
+ fileInputEnabled: 'T'
1141
+ }
1142
+ }, {
1143
+ key: SERVICE_KEY.INNER,
1144
+ fileUpload: true,
1145
+ description: '此处仅展示开启上传控件中使用的请求层服务,服务入参需包含impFile(文件类型)字段用于接收文件和param(对象类型,非必须)字段接收自定义参数'
1146
+ }]
1138
1147
  }
1139
1148
  }
1140
1149
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingxiteam/assets",
3
- "version": "1.0.12-alpha.5",
3
+ "version": "1.0.12-alpha.6",
4
4
  "description": "灵犀低代码平台移动端 - 工具类",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",