@cloudbase/weda-ui 3.1.9 → 3.2.0

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.
Files changed (78) hide show
  1. package/dist/configs/components/chart/bar.json +3 -3
  2. package/dist/configs/components/chart/line.json +3 -3
  3. package/dist/configs/components/chart/pie.json +3 -3
  4. package/dist/configs/components/form/departTreeSelect.json +124 -0
  5. package/dist/configs/components/form/userTreeSelect.json +128 -0
  6. package/dist/configs/components/formdetail.json +105 -0
  7. package/dist/configs/components/listView.json +9 -1
  8. package/dist/configs/components/lottery.json +1 -1
  9. package/dist/configs/components/tabs.json +10 -9
  10. package/dist/configs/components/wxOpenApi/share.json +5 -2
  11. package/dist/configs/index.d.ts +6 -0
  12. package/dist/configs/index.js +6 -0
  13. package/dist/web/components/calendar/index.js +10 -2
  14. package/dist/web/components/carousel/index.js +4 -0
  15. package/dist/web/components/chart/common/core/eChartBase.js +8 -2
  16. package/dist/web/components/form/form/index.js +10 -7
  17. package/dist/web/components/form/location/common/mapChoose.js +2 -0
  18. package/dist/web/components/form/location/common/mapView.js +2 -0
  19. package/dist/web/components/form/location/components/LocationH5/location.h5.js +3 -1
  20. package/dist/web/components/form/location/components/LocationH5/location.module.css +3 -0
  21. package/dist/web/components/form/select/h5.js +4 -0
  22. package/dist/web/components/form/select/index.js +2 -8
  23. package/dist/web/components/form/switch/index.js +3 -2
  24. package/dist/web/components/form/switch/switch.module.css +7 -0
  25. package/dist/web/components/form/uploader/uploader.h5.d.ts +1 -0
  26. package/dist/web/components/form/uploader/uploader.h5.js +14 -10
  27. package/dist/web/components/form/uploader/uploader.pc.js +1 -1
  28. package/dist/web/components/form/uploaderFile/uploadFile.h5.js +14 -12
  29. package/dist/web/components/form/uploaderFile/uploadFile.pc.js +8 -8
  30. package/dist/web/components/form/userOrgSelect/comTool.d.ts +7 -0
  31. package/dist/web/components/form/userOrgSelect/comTool.js +89 -0
  32. package/dist/web/components/form/userOrgSelect/departTreeSelect/departTreeSelect.h5.d.ts +20 -0
  33. package/dist/web/components/form/userOrgSelect/departTreeSelect/departTreeSelect.h5.js +259 -0
  34. package/dist/web/components/form/userOrgSelect/departTreeSelect/departTreeSelect.pc.d.ts +4 -0
  35. package/dist/web/components/form/userOrgSelect/departTreeSelect/departTreeSelect.pc.js +153 -0
  36. package/dist/web/components/form/userOrgSelect/departTreeSelect/index.d.ts +2 -0
  37. package/dist/web/components/form/userOrgSelect/departTreeSelect/index.js +17 -0
  38. package/dist/web/components/form/userOrgSelect/index.d.ts +2 -0
  39. package/dist/web/components/form/userOrgSelect/index.js +17 -0
  40. package/dist/web/components/form/userOrgSelect/userOrgSelect.less +643 -0
  41. package/dist/web/components/form/userOrgSelect/userTreeSelect.h5.d.ts +24 -0
  42. package/dist/web/components/form/userOrgSelect/userTreeSelect.h5.js +276 -0
  43. package/dist/web/components/form/userOrgSelect/userTreeSelect.pc.d.ts +9 -0
  44. package/dist/web/components/form/userOrgSelect/userTreeSelect.pc.js +229 -0
  45. package/dist/web/components/form/userOrgSelect/utils.d.ts +35 -0
  46. package/dist/web/components/form/userOrgSelect/utils.js +72 -0
  47. package/dist/web/components/formdetail/index.css +115 -0
  48. package/dist/web/components/formdetail/index.d.ts +28 -0
  49. package/dist/web/components/formdetail/index.js +170 -0
  50. package/dist/web/components/index.d.ts +3 -0
  51. package/dist/web/components/index.js +3 -0
  52. package/dist/web/components/listView/index.css +35 -5
  53. package/dist/web/components/listView/index.js +92 -68
  54. package/dist/web/components/listView/interface.d.ts +5 -0
  55. package/dist/web/components/lottery/index.js +2 -1
  56. package/dist/web/components/lottery/lotteryUtil.js +1 -0
  57. package/dist/web/components/navigationBar/index.css +21 -29
  58. package/dist/web/components/richText/index.css +1 -0
  59. package/dist/web/components/swiper/index.js +5 -1
  60. package/dist/web/components/wedaVideo/index.js +1 -0
  61. package/dist/web/utils/getUserService.d.ts +17 -0
  62. package/dist/web/utils/getUserService.js +148 -0
  63. package/dist/web/utils/platform.js +2 -0
  64. package/dist/web/weda-ui.css +9 -0
  65. package/package.json +13 -12
  66. package/dist/asset-manifest.json +0 -17
  67. package/dist/index.html +0 -88
  68. package/dist/static/js/bundle.js +0 -963
  69. package/dist/static/js/bundle.js.map +0 -1
  70. package/dist/static/js/main.chunk.js +0 -8841
  71. package/dist/static/js/main.chunk.js.map +0 -1
  72. package/dist/static/js/vendors~main.chunk.js +0 -247885
  73. package/dist/static/js/vendors~main.chunk.js.map +0 -1
  74. package/dist/static/media/ef6fa527e24e354765d806b826b41391.fa67580a.svg +0 -627
  75. package/dist/web/components/auth/index.d.ts +0 -10
  76. package/dist/web/components/auth/index.js +0 -37
  77. package/dist/web/utils/events.d.ts +0 -1
  78. package/dist/web/utils/events.js +0 -2
@@ -113,11 +113,11 @@
113
113
  {
114
114
  "type": "value:visible",
115
115
  "target": "*(filterData)",
116
- "condition": "{{ $self.value.type ==='database' || $self.value.type ==='cloud-integration' }}"
116
+ "condition": "{{ ($self.value && $self.value.type ==='database') || ( $self.value && $self.value.type ==='cloud-integration') }}"
117
117
  },
118
118
  {
119
119
  "type": "value:schema",
120
- "condition": "{{ !!$self.value.name }}",
120
+ "condition": "{{ $self.value&&!!$self.value.name }}",
121
121
  "target": "filterData",
122
122
  "schema": {
123
123
  "x-component-props": "{{{selectedDataSourceName: $self.value.name}}}"
@@ -126,7 +126,7 @@
126
126
  {
127
127
  "type": "value:visible",
128
128
  "target": "*(xFieldShow,xField,xStatistics,xIsCountEmpty,yField,groupKeyTimeSpan)",
129
- "condition": "{{ $self.value.type ==='database' }}"
129
+ "condition": "{{ $self.value && $self.value.type ==='database' }}"
130
130
  },
131
131
  {
132
132
  "type": "value:state",
@@ -64,11 +64,11 @@
64
64
  {
65
65
  "type": "value:visible",
66
66
  "target": "*(filterData)",
67
- "condition": "{{ $self.value.type ==='database' || $self.value.type ==='cloud-integration' }}"
67
+ "condition": "{{ ($self.value && $self.value.type ==='database') || ($self.value && $self.value.type ==='cloud-integration') }}"
68
68
  },
69
69
  {
70
70
  "type": "value:schema",
71
- "condition": "{{ !!$self.value.name }}",
71
+ "condition": "{{ $self.value && !!$self.value.name }}",
72
72
  "target": "filterData",
73
73
  "schema": {
74
74
  "x-component-props": "{{{selectedDataSourceName: $self.value.name}}}"
@@ -77,7 +77,7 @@
77
77
  {
78
78
  "type": "value:visible",
79
79
  "target": "*(xFieldShow,xField,xStatistics,xIsCountEmpty,yField,groupKeyTimeSpan)",
80
- "condition": "{{ $self.value.type ==='database' }}"
80
+ "condition": "{{ $self.value && $self.value.type ==='database' }}"
81
81
  },
82
82
  {
83
83
  "type": "value:state",
@@ -64,11 +64,11 @@
64
64
  {
65
65
  "type": "value:visible",
66
66
  "target": "*(filterData)",
67
- "condition": "{{ $self.value.type ==='database' || $self.value.type ==='cloud-integration' }}"
67
+ "condition": "{{ ($self.value && $self.value.type ==='database') || ($self.value && $self.value.type ==='cloud-integration') }}"
68
68
  },
69
69
  {
70
70
  "type": "value:schema",
71
- "condition": "{{ !!$self.value.name }}",
71
+ "condition": "{{ $self.value && !!$self.value.name }}",
72
72
  "target": "filterData",
73
73
  "schema": {
74
74
  "x-component-props": "{{{selectedDataSourceName: $self.value.name}}}"
@@ -77,7 +77,7 @@
77
77
  {
78
78
  "type": "value:visible",
79
79
  "target": "*(xFieldShow,xField,xStatistics,xIsCountEmpty,yField)",
80
- "condition": "{{ $self.value.type ==='database' }}"
80
+ "condition": "{{ $self.value && $self.value.type ==='database' }}"
81
81
  }
82
82
  ],
83
83
  "remarks": "为统计卡片设置数据源,选择已经建好的数据模型,单击数据源下拉菜单,选择统计"
@@ -0,0 +1,124 @@
1
+ {
2
+ "$schema": "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json",
3
+ "data": {
4
+ "properties": {
5
+ "label": {
6
+ "type": "string",
7
+ "default": "部门",
8
+ "title": "标题"
9
+ },
10
+ "labelVisible": {
11
+ "type": "boolean",
12
+ "default": true,
13
+ "title": "显示标题"
14
+ },
15
+ "name": {
16
+ "type": "string",
17
+ "default": "formDepartTreeSelect",
18
+ "title": "提交后台所用字段"
19
+ },
20
+ "placeholder": {
21
+ "type": "string",
22
+ "default": "请选择部门",
23
+ "title": "提示文字"
24
+ },
25
+ "defaultValueType": {
26
+ "type": "string",
27
+ "default": "noneDepart",
28
+ "title": "选中值",
29
+ "enum": [
30
+ {
31
+ "label": "无",
32
+ "value": "noneDepart"
33
+ },
34
+ {
35
+ "label": "指定部门",
36
+ "value": "confirmDepart"
37
+ }
38
+ ],
39
+ "x-linkages": [
40
+ {
41
+ "type": "value:visible",
42
+ "target": "confirmValue",
43
+ "condition": "{{$self.value=='confirmDepart'}}"
44
+ }
45
+ ]
46
+ },
47
+ "confirmValue": {
48
+ "type": "string",
49
+ "default": "",
50
+ "title": "指定部门id"
51
+ },
52
+ "defaultValue": {
53
+ "type": "string",
54
+ "default": "",
55
+ "title": ""
56
+ },
57
+ "layout": {
58
+ "title": "布局方式",
59
+ "type": "string",
60
+ "default": "horizontal",
61
+ "enum": [
62
+ {
63
+ "label": "水平",
64
+ "value": "horizontal"
65
+ },
66
+ {
67
+ "label": "垂直",
68
+ "value": "vertical"
69
+ }
70
+ ]
71
+ },
72
+ "requiredFlag": {
73
+ "type": "boolean",
74
+ "default": false,
75
+ "title": "是否显示必填标记"
76
+ },
77
+ "multiple": {
78
+ "type": "boolean",
79
+ "default": false,
80
+ "title": "是否多选"
81
+ },
82
+ "size": {
83
+ "title": "大小",
84
+ "type": "string",
85
+ "default": "full",
86
+ "enum": [
87
+ {
88
+ "label": "大",
89
+ "value": "l"
90
+ },
91
+ {
92
+ "label": "中",
93
+ "value": "m"
94
+ },
95
+ {
96
+ "label": "小",
97
+ "value": "s"
98
+ },
99
+ {
100
+ "label": "占满",
101
+ "value": "full"
102
+ }
103
+ ]
104
+ },
105
+ "disabled": {
106
+ "type": "boolean",
107
+ "default": false,
108
+ "title": "是否禁用"
109
+ }
110
+ }
111
+ },
112
+ "meta": {
113
+ "title": "部门选择",
114
+ "description": "部门选择",
115
+ "category": "表单",
116
+ "icon": "https://qcloudimg.tencent-cloud.cn/raw/6389c8eeb3c6a3227ab5d49574152582.svg"
117
+ },
118
+ "events": [
119
+ {
120
+ "name": "change",
121
+ "title": "值改变"
122
+ }
123
+ ]
124
+ }
@@ -0,0 +1,128 @@
1
+ {
2
+ "$schema": "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json",
3
+ "data": {
4
+ "properties": {
5
+ "label": {
6
+ "type": "string",
7
+ "default": "成员",
8
+ "title": "标题"
9
+ },
10
+ "labelVisible": {
11
+ "type": "boolean",
12
+ "default": true,
13
+ "title": "显示标题"
14
+ },
15
+ "name": {
16
+ "type": "string",
17
+ "default": "formUserTreeSelect",
18
+ "title": "提交后台所用字段"
19
+ },
20
+ "placeholder": {
21
+ "type": "string",
22
+ "default": "请选择成员",
23
+ "title": "提示文字"
24
+ },
25
+ "defaultValueType": {
26
+ "type": "string",
27
+ "default": "noneUser",
28
+ "title": "选中值",
29
+ "enum": [
30
+ {
31
+ "label": "无",
32
+ "value": "noneUser"
33
+ },
34
+ {
35
+ "label": "指定成员",
36
+ "value": "confirmUser"
37
+ },
38
+ {
39
+ "label": "当前登录用户",
40
+ "value": "loginUser"
41
+ }
42
+ ],
43
+ "x-linkages": [
44
+ {
45
+ "type": "value:visible",
46
+ "target": "confirmValue",
47
+ "condition": "{{$self.value=='confirmUser' || $self.value=='currentUser'}}"
48
+ }
49
+ ]
50
+ },
51
+ "confirmValue": {
52
+ "type": "string",
53
+ "default": "",
54
+ "title": "指定成员id"
55
+ },
56
+ "defaultValue": {
57
+ "type": "string",
58
+ "default": "",
59
+ "title": "默认值"
60
+ },
61
+ "layout": {
62
+ "title": "布局方式",
63
+ "type": "string",
64
+ "default": "horizontal",
65
+ "enum": [
66
+ {
67
+ "label": "水平",
68
+ "value": "horizontal"
69
+ },
70
+ {
71
+ "label": "垂直",
72
+ "value": "vertical"
73
+ }
74
+ ]
75
+ },
76
+ "requiredFlag": {
77
+ "type": "boolean",
78
+ "default": false,
79
+ "title": "是否显示必填标记"
80
+ },
81
+ "size": {
82
+ "title": "大小",
83
+ "type": "string",
84
+ "default": "full",
85
+ "enum": [
86
+ {
87
+ "label": "大",
88
+ "value": "l"
89
+ },
90
+ {
91
+ "label": "中",
92
+ "value": "m"
93
+ },
94
+ {
95
+ "label": "小",
96
+ "value": "s"
97
+ },
98
+ {
99
+ "label": "占满",
100
+ "value": "full"
101
+ }
102
+ ]
103
+ },
104
+ "disabled": {
105
+ "type": "boolean",
106
+ "default": false,
107
+ "title": "是否禁用"
108
+ },
109
+ "multiple": {
110
+ "type": "boolean",
111
+ "default": false,
112
+ "title": "是否多选"
113
+ }
114
+ }
115
+ },
116
+ "meta": {
117
+ "title": "成员选择",
118
+ "description": "成员选择",
119
+ "category": "表单",
120
+ "icon": "https://qcloudimg.tencent-cloud.cn/raw/6c0cb5bbbfd55d1ed3ec5098fc9d214d.svg"
121
+ },
122
+ "events": [
123
+ {
124
+ "name": "change",
125
+ "title": "值改变"
126
+ }
127
+ ]
128
+ }
@@ -0,0 +1,105 @@
1
+ {
2
+ "$schema": "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json",
3
+ "data": {
4
+ "properties": {
5
+ "name": {
6
+ "type": "string",
7
+ "title": "绑定字段",
8
+ "default": "formDetail",
9
+ "remarks": "提交表单时会将组件值提交保存到所配置的字段中",
10
+ "x-index": 1,
11
+ "x-component": "_form-field-name-auto-complete",
12
+ "x-rules": [
13
+ {
14
+ "message": "该字段必填",
15
+ "required": true
16
+ },
17
+ {
18
+ "message": "必须以字母开头,仅能输入字母或下划线或数字",
19
+ "pattern": "^[a-zA-Z][0-9a-zA-Z_]*$"
20
+ }
21
+ ],
22
+ "required": true,
23
+ "x-category": "基础属性",
24
+ "description": "表单提交数据的 Key,页面内需保证唯一,可据此对当前组件进行赋值、校验等操作"
25
+ },
26
+ "value": {
27
+ "type": "array",
28
+ "title": "数组值",
29
+ "format": "array",
30
+ "default": [],
31
+ "remarks": "用来传递数组的初始值",
32
+ "x-index": 2,
33
+ "dataType": "array",
34
+ "inputProp": {
35
+ "changeEvent": "change",
36
+ "valueFromEvent": "event.detail.value"
37
+ },
38
+ "x-category": "基础属性",
39
+ "x-platforms": [""]
40
+ },
41
+ "isPureArray": {
42
+ "type": "boolean",
43
+ "title": "是否是纯属组",
44
+ "default": false,
45
+ "x-index": 3,
46
+ "x-category": "基础属性",
47
+ "x-platforms": [""]
48
+ }
49
+ }
50
+ },
51
+ "events": [
52
+ {
53
+ "name": "onDataChange",
54
+ "title": "值改变"
55
+ }
56
+ ],
57
+ "methods": [
58
+ {
59
+ "name": "addition",
60
+ "label": "新增一行"
61
+ },
62
+ {
63
+ "name": "remove",
64
+ "label": "删除该行",
65
+ "params": {
66
+ "properties": {
67
+ "index": {
68
+ "title": "删除数据的标识",
69
+ "type": "string",
70
+ "default": ""
71
+ }
72
+ }
73
+ }
74
+ },
75
+ {
76
+ "name": "change",
77
+ "label": "值改变",
78
+ "params": {
79
+ "properties": {
80
+ "name": {
81
+ "title": "改变值的标识",
82
+ "type": "string",
83
+ "default": ""
84
+ },
85
+ "value": {
86
+ "title": "改变值的value",
87
+ "type": "string",
88
+ "default": ""
89
+ }
90
+ }
91
+ }
92
+ }
93
+ ],
94
+ "compConfig": {
95
+ "isDataContainer": true,
96
+ "componentType": "formField"
97
+ },
98
+ "isContainer": true,
99
+ "meta": {
100
+ "title": "明细",
101
+ "description": "明细",
102
+ "category": "表单",
103
+ "visible": []
104
+ }
105
+ }
@@ -246,7 +246,7 @@
246
246
  },
247
247
  "orderType": {
248
248
  "x-index": 40,
249
- "title": "排序类型",
249
+ "title": "排序方式",
250
250
  "x-category": "基础属性",
251
251
  "type": "string",
252
252
  "enum": [
@@ -332,6 +332,14 @@
332
332
  }
333
333
  ],
334
334
  "remarks": "数据分页样式"
335
+ },
336
+ "isSetStatus": {
337
+ "x-index": 80,
338
+ "title": "显示加载状态",
339
+ "x-category": "基础属性",
340
+ "type": "boolean",
341
+ "default": false,
342
+ "remarks": "是否开启数据列表的加载状态,默认不显示"
335
343
  }
336
344
  }
337
345
  },
@@ -79,7 +79,7 @@
79
79
  "type": "value:schema",
80
80
  "schema": {
81
81
  "x-component-props": {
82
- "options": "{{ $value.map((title, index) => ({label: '奖品名称' + (index + 1), value: index}) ) }}"
82
+ "options": "{{ $value&&$value.map((title, index) => ({label: '奖品名称' + (index + 1), value: index}) ) }}"
83
83
  }
84
84
  },
85
85
  "target": "selectedIndex"
@@ -24,7 +24,7 @@
24
24
  ]
25
25
  },
26
26
  "tabs": {
27
- "title": "选项卡标签",
27
+ "title": "标签列表",
28
28
  "x-props": {
29
29
  "data-hidebind": true,
30
30
  "data-withBindMeta": true
@@ -37,16 +37,16 @@
37
37
  "maxLength": 20,
38
38
  "default": [
39
39
  {
40
- "title": "选项一",
41
- "value": "选项一"
40
+ "title": "标签1",
41
+ "value": "标签1"
42
42
  },
43
43
  {
44
- "title": "选项二",
45
- "value": "选项二"
44
+ "title": "标签2",
45
+ "value": "标签2"
46
46
  },
47
47
  {
48
- "title": "选项三",
49
- "value": "选项三"
48
+ "title": "标签3",
49
+ "value": "标签3"
50
50
  }
51
51
  ],
52
52
  "items": {
@@ -74,7 +74,7 @@
74
74
  "type": "value:schema",
75
75
  "schema": {
76
76
  "x-component-props": {
77
- "options": "{{ $value.map((title, index) => ({label: '选项' + (index + 1), value: index}) ) }}"
77
+ "options": "{{ $value && $value.map((title, index) => ({label: '标签' + (index + 1), value: index}) ) }}"
78
78
  }
79
79
  }
80
80
  }
@@ -89,7 +89,8 @@
89
89
  "x-index": 30,
90
90
  "x-category": "基础属性",
91
91
  "x-component": "select",
92
- "remarks": "更改默认选中的选项卡标签"
92
+ "remarks": "更改默认选中的选项卡标签",
93
+ "description": "当该属性绑定动态值时,请传入从0开始的整数索引值"
93
94
  },
94
95
  "panel": {
95
96
  "title": "面板1",
@@ -126,11 +126,14 @@
126
126
  "target": "params",
127
127
  "condition": "{{$self.value===true}}"
128
128
  }
129
- ]
129
+ ],
130
+ "x-props": {
131
+ "data-hidebind": true
132
+ }
130
133
  },
131
134
  "params": {
132
135
  "type": "array",
133
- "title": "参数",
136
+ "title": "{{text('参数', help('如果采用绑定数据的方式,数据格式参考如下:[{key: \"paramKey1\", value: \"paramValue1\"}, {key: \"paramKey2\", value: \"paramValue2\"}]'))}}",
134
137
  "x-category": "基础属性",
135
138
  "remarks": "分享(转发)的页面的参数,会自动获取到当前选择页面内存在的页面参数并自动根据页面参数进行展开,当用户通过转发的链接进入小程序时,页面便会按照配置的参数进行渲染。如果采用绑定数据的方式,数据格式参考如下:[{key: 'paramKey1', value: 'paramValue1'}, {key: 'paramKey2', value: 'paramValue2'}]",
136
139
  "pageId": "",
@@ -1,4 +1,5 @@
1
1
  export namespace components {
2
+ export { FormDetail };
2
3
  export { Button };
3
4
  export { Text };
4
5
  export { Container };
@@ -41,6 +42,8 @@ export namespace components {
41
42
  export { Share };
42
43
  export { UserInfo };
43
44
  export { Lottery };
45
+ export { UserTreeSelect };
46
+ export { DepartTreeSelect };
44
47
  }
45
48
  export namespace actions {
46
49
  export { showToast };
@@ -51,6 +54,7 @@ declare namespace _default {
51
54
  export { actions };
52
55
  }
53
56
  export default _default;
57
+ import FormDetail from "./components/formdetail.json";
54
58
  import Button from "./components/button.json";
55
59
  import Text from "./components/text.json";
56
60
  import Container from "./components/container.json";
@@ -93,5 +97,7 @@ import PhoneCode from "./components/wxOpenApi/phoneCode.json";
93
97
  import Share from "./components/wxOpenApi/share.json";
94
98
  import UserInfo from "./components/wxOpenApi/userInfo.json";
95
99
  import Lottery from "./components/lottery.json";
100
+ import UserTreeSelect from "./components/form/userTreeSelect.json";
101
+ import DepartTreeSelect from "./components/form/departTreeSelect.json";
96
102
  import showToast from "./actions/showToast.json";
97
103
  import showModal from "./actions/showModal.json";
@@ -46,7 +46,11 @@ import PhoneCode from './components/wxOpenApi/phoneCode.json';
46
46
  import Share from './components/wxOpenApi/share.json';
47
47
  import UserInfo from './components/wxOpenApi/userInfo.json';
48
48
  import Lottery from './components/lottery.json';
49
+ import UserTreeSelect from './components/form/userTreeSelect.json';
50
+ import DepartTreeSelect from './components/form/departTreeSelect.json';
51
+ import FormDetail from './components/formdetail.json';
49
52
  export const components = {
53
+ FormDetail,
50
54
  Button,
51
55
  Text,
52
56
  Container,
@@ -94,6 +98,8 @@ export const components = {
94
98
  Share,
95
99
  UserInfo,
96
100
  Lottery,
101
+ UserTreeSelect,
102
+ DepartTreeSelect,
97
103
  };
98
104
  export const actions = {
99
105
  showToast,
@@ -137,14 +137,22 @@ export default function Calendar({ className, style, initVisible, initValue, con
137
137
  React.createElement("div", { className: blockName + '__control-section-cell' },
138
138
  React.createElement(Select, { appearance: "button", size: controlSectionSize, value: String(year), options: yearSelectOptions(), onChange: (selectYear) => setYear(parseInt(selectYear)) })),
139
139
  React.createElement("div", { className: blockName + '__control-section-cell' },
140
- React.createElement(Select, { appearance: "button", size: controlSectionSize, value: String(month), options: monthSelectOptions(), onChange: (selectMonth) => setMonth(parseInt(selectMonth)) })))) : (React.createElement("div", { className: `${blockName}__current-date` }, `${year} 年 ${month} 月`)))),
140
+ React.createElement(Select, { appearance: "button", size: controlSectionSize, value: String(month), options: monthSelectOptions(), onChange: (selectMonth) => setMonth(parseInt(selectMonth)) })))) : (React.createElement("div", { className: `${blockName}__current-date` },
141
+ year,
142
+ " \u5E74 ",
143
+ month,
144
+ " \u6708")))),
141
145
  React.createElement("div", { className: blockName + '__control_h5', "data-testid": "weda-calendar-control-h5" },
142
146
  visible && (React.createElement("div", { className: blockName + '_prevMonth wedatea2td-icon-arrowleft--line', onClick: () => {
143
147
  // 上一个月
144
148
  setYear(month === 1 ? year - 1 : year);
145
149
  setMonth(month === 1 ? 12 : month - 1);
146
150
  } })),
147
- React.createElement("div", { className: `${blockName}__current-date` }, `${year}年${month}月`),
151
+ React.createElement("div", { className: `${blockName}__current-date` },
152
+ year,
153
+ "\u5E74",
154
+ month,
155
+ "\u6708"),
148
156
  visible && (React.createElement("div", { className: blockName + '_nextMonth wedatea2td-icon-arrowright--line', onClick: () => {
149
157
  // 下一个月
150
158
  setYear(month === 12 ? year + 1 : year);
@@ -16,6 +16,8 @@ export default function Carousel({ className, style, autoplay, circular, vertica
16
16
  // 自动切换
17
17
  useEffect(() => {
18
18
  if (autoplay) {
19
+ // 自动切换
20
+ // eslint-disable-next-line rulesdir/no-timer
19
21
  const timer = setInterval(() => {
20
22
  setIndex(currentIndex + 1);
21
23
  }, interval);
@@ -63,6 +65,7 @@ export default function Carousel({ className, style, autoplay, circular, vertica
63
65
  setSwipeStyle({
64
66
  transform: `translate3d(0, 0, 0)`,
65
67
  });
68
+ // eslint-disable-next-line rulesdir/no-timer
66
69
  setTimeout(() => {
67
70
  setSwipeStyle({
68
71
  transform: vertical
@@ -81,6 +84,7 @@ export default function Carousel({ className, style, autoplay, circular, vertica
81
84
  ? `translate3d(0, -${(to + 2) * 100}%, 0)`
82
85
  : `translate3d(-${(to + 2) * 100}%, 0, 0)`,
83
86
  });
87
+ // eslint-disable-next-line rulesdir/no-timer
84
88
  setTimeout(() => {
85
89
  setSwipeStyle({
86
90
  transform: vertical
@@ -90,7 +90,13 @@ class EchartBase extends AbstractEchartBaseModal {
90
90
  *
91
91
  **/
92
92
  async getSourceData(sourceName = '', methods = '', dataSourceType = '', params) {
93
- var _a;
93
+ var _a, _b, _c;
94
+ if (!sourceName ||
95
+ Object.keys((_a = params === null || params === void 0 ? void 0 : params.dimension) !== null && _a !== void 0 ? _a : {}).length <= 0 ||
96
+ ((_b = params.value) !== null && _b !== void 0 ? _b : []).length <= 0) {
97
+ console.warn('charts 参数不完整');
98
+ return [];
99
+ }
94
100
  try {
95
101
  if (dataSourceType === 'database') {
96
102
  return await callWedaApi({
@@ -109,7 +115,7 @@ class EchartBase extends AbstractEchartBaseModal {
109
115
  methodName: methods,
110
116
  params,
111
117
  });
112
- return (_a = res.result) !== null && _a !== void 0 ? _a : [];
118
+ return (_c = res.result) !== null && _c !== void 0 ? _c : [];
113
119
  }
114
120
  catch (err) {
115
121
  return [];