@cloudbase/weda-ui 2.0.11 → 2.0.12
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/README.md +1 -0
- package/package.json +5 -4
- package/src/configs/components/button.json +60 -13
- package/src/configs/components/calendar.json +3 -3
- package/src/configs/components/carousel.json +57 -47
- package/src/configs/components/chart/bar.json +4 -13
- package/src/configs/components/chart/line.json +4 -13
- package/src/configs/components/chart/pie.json +3 -10
- package/src/configs/components/chart/statisticsCard.json +1 -4
- package/src/configs/components/container.json +1 -3
- package/src/configs/components/dataView.json +7 -15
- package/src/configs/components/drawer.json +24 -6
- package/src/configs/components/form/form.json +19 -0
- package/src/configs/components/form/input.json +20 -5
- package/src/configs/components/form/location.json +51 -48
- package/src/configs/components/form/radio.json +1 -3
- package/src/configs/components/form/richText.json +14 -14
- package/src/configs/components/form/select.json +62 -82
- package/src/configs/components/form/textarea.json +6 -1
- package/src/configs/components/form/uploader.json +64 -64
- package/src/configs/components/form/uploaderFile.json +1 -2
- package/src/configs/components/graphicCard.json +43 -44
- package/src/configs/components/image.json +44 -40
- package/src/configs/components/link.json +5 -10
- package/src/configs/components/listView.json +2 -8
- package/src/configs/components/lottery.json +7 -3
- package/src/configs/components/modal.json +26 -21
- package/src/configs/components/navLayout.json +66 -67
- package/src/configs/components/navigationBar.json +4 -1
- package/src/configs/components/richtextview.json +1 -1
- package/src/configs/components/scrollVeiw.json +14 -42
- package/src/configs/components/swiper.json +9 -9
- package/src/configs/components/wedaVideo.json +86 -0
- package/src/configs/components/wxOpenApi/phone.json +7 -21
- package/src/configs/components/wxOpenApi/phoneCode.json +7 -19
- package/src/configs/components/wxOpenApi/share.json +14 -24
- package/src/configs/components/wxOpenApi/userInfo.json +9 -27
- package/src/configs/index.js +2 -0
- package/src/docs/common/format.tsx +4 -1
- package/src/docs/common/tableView.css +3 -3
- package/src/docs/common/tableView.tsx +18 -8
- package/src/docs/compsdocs/form/FormLocation.mdx +1 -1
- package/src/docs/compsdocs/form/FormSelect.mdx +0 -1
- package/src/docs/compsdocs/grid/Card.mdx +0 -1
- package/src/docs/compsdocs/grid/Container.mdx +0 -1
- package/src/docs/compsdocs/grid/GridLayout.mdx +0 -1
- package/src/docs/compsdocs/grid/ScrollView.mdx +2 -2
- package/src/docs/compsdocs/grid/Swiper.mdx +1 -2
- package/src/docs/compsdocs/media/Icon.mdx +1 -1
- package/src/docs/compsdocs/media/Image.mdx +6 -6
- package/src/docs/compsdocs/model/ModelCreate.mdx +24 -0
- package/src/docs/compsdocs/model/ModelDetail.mdx +24 -0
- package/src/docs/compsdocs/model/ModelTable.mdx +133 -1
- package/src/docs/compsdocs/model/ModelUpdate.mdx +24 -1
- package/src/docs/compsdocs/navmenu/Classification.mdx +2 -3
- package/src/docs/compsdocs/navmenu/NavBar.mdx +14 -5
- package/src/docs/compsdocs/navmenu/NavLayout.mdx +0 -1
- package/src/docs/compsdocs/navmenu/TabBar.mdx +3 -3
- package/src/docs/compsdocs/navmenu/TabBarItem.mdx +1 -1
- package/src/docs/compsdocs/senior/Lottery.mdx +3 -6
- package/src/docs/compsdocs/senior/Modal.mdx +2 -3
- package/src/docs/compsdocs/senior/SlotMachine.mdx +2 -5
- package/src/docs/compsdocs/senior/_category_.json +1 -1
- package/src/docs/compsdocs/show/GraphicCard.mdx +0 -1
- package/src/docs/compsdocs/show/Item.mdx +0 -1
- package/src/docs/compsdocs/show/ItemList.mdx +1 -0
- package/src/docs/compsdocs/show/Tabs.mdx +2 -3
- package/src/docs/compsdocs/text/Link.mdx +1 -1
- package/src/docs/compsdocs/text/RichTextView.mdx +1 -2
- package/src/docs/compsdocs/text/Text.mdx +1 -1
- package/src/docs/compsdocs/text/Title.mdx +1 -2
- package/src/docs/compsdocs/wxOpen/Phone.mdx +1 -2
- package/src/docs/compsdocs/wxOpen/Share.mdx +0 -1
- package/src/docs/compsdocs/wxOpen/UserInfo.mdx +1 -2
- package/src/mp/components/calendar/index.json +1 -1
- package/src/mp/components/calendar/index.wxml +5 -27
- package/src/mp/components/carousel/index.json +1 -1
- package/src/mp/components/carousel/index.wxml +3 -30
- package/src/mp/components/chart/bar/index.wxml +1 -6
- package/src/mp/components/chart/ec-canvas/ec-canvas.json +1 -1
- package/src/mp/components/chart/ec-canvas/ec-canvas.wxml +2 -19
- package/src/mp/components/chart/line/index.wxml +1 -6
- package/src/mp/components/chart/pie/index.wxml +1 -6
- package/src/mp/components/chart/statisticsCard/index.wxml +1 -5
- package/src/mp/components/dataView/index.wxml +1 -13
- package/src/mp/components/form/checkbox/index.wxml +3 -18
- package/src/mp/components/form/formcell/index.wxss +5 -0
- package/src/mp/components/form/input/index.wxml +3 -16
- package/src/mp/components/form/input/index.wxss +7 -1
- package/src/mp/components/form/location/components/mapChoose/index.json +1 -1
- package/src/mp/components/form/location/components/mapChoose/index.wxml +11 -58
- package/src/mp/components/form/location/index.js +7 -1
- package/src/mp/components/form/location/index.json +1 -1
- package/src/mp/components/form/location/index.wxml +7 -43
- package/src/mp/components/form/radio/index.wxml +2 -14
- package/src/mp/components/form/select/index.wxml +3 -33
- package/src/mp/components/form/select/index.wxss +9 -0
- package/src/mp/components/form/switch/index.wxml +2 -13
- package/src/mp/components/form/textarea/index.wxml +4 -23
- package/src/mp/components/form/textarea/index.wxss +5 -0
- package/src/mp/components/form/uploader/index.wxml +2 -20
- package/src/mp/components/form/uploader/weui-uploader.json +6 -6
- package/src/mp/components/form/uploader/weui-uploader.wxml +10 -53
- package/src/mp/components/form/uploaderFile/index.wxml +14 -71
- package/src/mp/components/graphicCard/index.js +9 -11
- package/src/mp/components/graphicCard/index.wxml +6 -34
- package/src/mp/components/image/index.wxml +3 -21
- package/src/mp/components/listView/index.wxml +8 -33
- package/src/mp/components/lottery/index.wxml +7 -31
- package/src/mp/components/navLayout/index.js +9 -12
- package/src/mp/components/navLayout/index.wxml +6 -30
- package/src/mp/components/navigationBar/index.json +1 -2
- package/src/mp/components/navigationBar/index.wxml +29 -146
- package/src/mp/components/swiper/index.wxml +1 -14
- package/src/mp/components/tabs/index.json +1 -1
- package/src/mp/components/tabs/index.wxml +3 -22
- package/src/mp/components/text/index.wxml +1 -7
- package/src/mp/components/wedaVideo/index.js +86 -0
- package/src/mp/components/wedaVideo/index.json +4 -0
- package/src/mp/components/wedaVideo/index.wxml +4 -0
- package/src/mp/components/wedaVideo/index.wxss +20 -0
- package/src/mp/components/wxOpenApi/phone/index.js +1 -9
- package/src/mp/components/wxOpenApi/phone/index.wxml +1 -11
- package/src/mp/components/wxOpenApi/phoneCode/index.json +1 -1
- package/src/mp/components/wxOpenApi/phoneCode/index.wxml +1 -11
- package/src/mp/components/wxOpenApi/share/index.wxml +1 -11
- package/src/mp/components/wxOpenApi/userInfo/index.wxml +1 -10
- package/src/mp/index.json +1 -0
- package/src/mp/style/weda-ui.wxss +12 -4
- package/src/web/actions/showModal/index.tsx +5 -4
- package/src/web/components/calendar/index.css +81 -34
- package/src/web/components/chart/common/core/eChartBase.ts +55 -42
- package/src/web/components/chart/common/core/type.ts +23 -23
- package/src/web/components/chart/common/echart.css +12 -12
- package/src/web/components/chart/common/echarts.ts +3 -5
- package/src/web/components/chart/common/useChart.tsx +34 -16
- package/src/web/components/container/index.tsx +3 -4
- package/src/web/components/drawer/index.tsx +15 -4
- package/src/web/components/form/checkbox/index.tsx +32 -31
- package/src/web/components/form/enumSelect/NormalSelect.tsx +0 -2
- package/src/web/components/form/form/index.css +3 -6
- package/src/web/components/form/form/index.tsx +2 -1
- package/src/web/components/form/formcell/index.css +5 -3
- package/src/web/components/form/formcell/index.tsx +2 -6
- package/src/web/components/form/input/index.css +4 -4
- package/src/web/components/form/input/index.tsx +61 -53
- package/src/web/components/form/location/common/selectModal.jsx +2 -11
- package/src/web/components/form/location/common/useLocationInfo.js +4 -0
- package/src/web/components/form/location/components/LocationH5/index.css +0 -1
- package/src/web/components/form/location/components/LocationH5/location.h5.jsx +11 -1
- package/src/web/components/form/location/components/LocationPC/Header.jsx +0 -13
- package/src/web/components/form/location/components/LocationPC/location.PC.jsx +14 -5
- package/src/web/components/form/radio/index.tsx +32 -26
- package/src/web/components/form/renderDecorator.tsx +23 -26
- package/src/web/components/form/select/h5.tsx +1 -1
- package/src/web/components/form/select/index.css +9 -0
- package/src/web/components/form/select/index.tsx +75 -48
- package/src/web/components/form/select/region/index.ts +101 -80
- package/src/web/components/form/select/year.tsx +2 -0
- package/src/web/components/form/switch/index.tsx +40 -40
- package/src/web/components/form/textarea/index.css +4 -0
- package/src/web/components/form/textarea/index.tsx +26 -25
- package/src/web/components/form/types.d.ts +10 -10
- package/src/web/components/form/uploaderFile/index.jsx +0 -5
- package/src/web/components/form/uploaderFile/uploadFile.h5.tsx +15 -11
- package/src/web/components/form/uploaderFile/uploadFile.pc.tsx +14 -9
- package/src/web/components/image/image.tsx +2 -2
- package/src/web/components/image/index.css +9 -7
- package/src/web/components/image/index.tsx +28 -11
- package/src/web/components/index.js +1 -0
- package/src/web/components/link/index.tsx +12 -12
- package/src/web/components/lottery/index.css +43 -37
- package/src/web/components/lottery/index.tsx +2 -2
- package/src/web/components/modal/index.tsx +34 -34
- package/src/web/components/picker/datePicker.tsx +3 -3
- package/src/web/components/picker/picker.tsx +3 -3
- package/src/web/components/richText/index.jsx +41 -46
- package/src/web/components/richTextView/index.tsx +4 -6
- package/src/web/components/scrollView/index.tsx +2 -2
- package/src/web/components/slot/index.tsx +3 -4
- package/src/web/components/swiper/index.css +1 -1
- package/src/web/components/swiper/index.tsx +33 -15
- package/src/web/components/tabs/index.css +1 -1
- package/src/web/components/tabs/index.tsx +6 -6
- package/src/web/components/tabs/tabs.h5.tsx +17 -12
- package/src/web/components/tabs/tabs.pc.tsx +45 -34
- package/src/web/components/text/index.css +1 -1
- package/src/web/components/wedaVideo/index.css +42 -0
- package/src/web/components/wedaVideo/index.tsx +198 -0
- package/src/web/utils/constant.ts +2 -1
- package/src/web/utils/loading-fallback.tsx +2 -2
- package/src/web/utils/lodash.ts +1 -1
- package/src/web/utils/useSetState.ts +6 -2
- package/src/web/weda-ui.css +13 -0
|
@@ -2,6 +2,25 @@
|
|
|
2
2
|
"$schema": "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json",
|
|
3
3
|
"data": {
|
|
4
4
|
"properties": {
|
|
5
|
+
"layout": {
|
|
6
|
+
"x-platforms": ["PCWEB"],
|
|
7
|
+
"enum": [
|
|
8
|
+
{
|
|
9
|
+
"label": "水平",
|
|
10
|
+
"value": "horizontal"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"label": "垂直",
|
|
14
|
+
"value": "vertical"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"type": "string",
|
|
18
|
+
"title": "布局方式",
|
|
19
|
+
"default": "horizontal",
|
|
20
|
+
"x-index": 50,
|
|
21
|
+
"x-category": "基础属性",
|
|
22
|
+
"remarks": "设置当前容器内表单类组件的标题和输入选择区域为左右布局或上下布局"
|
|
23
|
+
},
|
|
5
24
|
"contentSlot": {
|
|
6
25
|
"type": "slot",
|
|
7
26
|
"title": "控制区"
|
|
@@ -130,10 +130,25 @@
|
|
|
130
130
|
"category": "表单"
|
|
131
131
|
},
|
|
132
132
|
"events": [
|
|
133
|
-
{
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
{
|
|
133
|
+
{
|
|
134
|
+
"name": "change",
|
|
135
|
+
"title": "输入改变"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"name": "focus",
|
|
139
|
+
"title": "聚焦"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"name": "blur",
|
|
143
|
+
"title": "失焦"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"name": "confirm",
|
|
147
|
+
"title": "确认"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"name": "clear",
|
|
151
|
+
"title": "清除内容"
|
|
152
|
+
}
|
|
138
153
|
]
|
|
139
154
|
}
|
|
@@ -2,16 +2,6 @@
|
|
|
2
2
|
"$schema": "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json",
|
|
3
3
|
"data": {
|
|
4
4
|
"properties": {
|
|
5
|
-
"dataSource": {
|
|
6
|
-
"type": "object",
|
|
7
|
-
"default": {},
|
|
8
|
-
"title": "数据源属性"
|
|
9
|
-
},
|
|
10
|
-
"label": {
|
|
11
|
-
"type": "string",
|
|
12
|
-
"default": "地图定位",
|
|
13
|
-
"title": "标题"
|
|
14
|
-
},
|
|
15
5
|
"locationType": {
|
|
16
6
|
"enum": [
|
|
17
7
|
{
|
|
@@ -37,62 +27,72 @@
|
|
|
37
27
|
"title": "位置输入",
|
|
38
28
|
"x-index": 4,
|
|
39
29
|
"x-category": "基础属性",
|
|
40
|
-
"properties":{
|
|
41
|
-
"latitude":{
|
|
30
|
+
"properties": {
|
|
31
|
+
"latitude": {
|
|
42
32
|
"title": "纬度",
|
|
43
|
-
"type":"number",
|
|
44
|
-
"default":22.540366
|
|
33
|
+
"type": "number",
|
|
34
|
+
"default": 22.540366
|
|
45
35
|
},
|
|
46
|
-
"longitude":{
|
|
36
|
+
"longitude": {
|
|
47
37
|
"title": "经度",
|
|
48
|
-
"type":"number",
|
|
49
|
-
"default":113.934559
|
|
38
|
+
"type": "number",
|
|
39
|
+
"default": 113.934559
|
|
50
40
|
},
|
|
51
|
-
"poiname":{
|
|
41
|
+
"poiname": {
|
|
52
42
|
"title": "详细位置",
|
|
53
|
-
"type":"string",
|
|
54
|
-
"default":"深圳市南山区深南大道10000号腾讯大厦"
|
|
43
|
+
"type": "string",
|
|
44
|
+
"default": "深圳市南山区深南大道10000号腾讯大厦"
|
|
55
45
|
}
|
|
56
46
|
},
|
|
57
47
|
"default": {
|
|
58
|
-
"latitude":22.540366,
|
|
59
|
-
"longitude":113.934559,
|
|
60
|
-
"poiname":"深圳市南山区深南大道10000号腾讯大厦"
|
|
48
|
+
"latitude": 22.540366,
|
|
49
|
+
"longitude": 113.934559,
|
|
50
|
+
"poiname": "深圳市南山区深南大道10000号腾讯大厦"
|
|
61
51
|
}
|
|
62
52
|
},
|
|
53
|
+
"dataSource": {
|
|
54
|
+
"type": "object",
|
|
55
|
+
"default": {},
|
|
56
|
+
"title": "数据源属性"
|
|
57
|
+
},
|
|
58
|
+
"label": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"default": "地图定位",
|
|
61
|
+
"title": "标题"
|
|
62
|
+
},
|
|
63
63
|
"value": {
|
|
64
64
|
"type": "object",
|
|
65
65
|
"title": "默认值",
|
|
66
66
|
"x-category": "基础属性",
|
|
67
67
|
"x-component": "jsontext",
|
|
68
|
-
"properties":{
|
|
68
|
+
"properties": {
|
|
69
69
|
"address": {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
"description": "地点名称",
|
|
71
|
+
"type": "string",
|
|
72
|
+
"default": ""
|
|
73
73
|
},
|
|
74
|
-
"geopoint":{
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
"type": {
|
|
88
|
-
"x-required": true,
|
|
89
|
-
"type": "string"
|
|
74
|
+
"geopoint": {
|
|
75
|
+
"description": "经纬度",
|
|
76
|
+
"type": "object",
|
|
77
|
+
"properties": {
|
|
78
|
+
"coordinates": {
|
|
79
|
+
"x-required": true,
|
|
80
|
+
"type": "array",
|
|
81
|
+
"items": {
|
|
82
|
+
"minItems": 2,
|
|
83
|
+
"maxItems": 2,
|
|
84
|
+
"type": "number"
|
|
90
85
|
}
|
|
91
|
-
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"type":"
|
|
86
|
+
},
|
|
87
|
+
"type": {
|
|
88
|
+
"x-required": true,
|
|
89
|
+
"type": "string"
|
|
95
90
|
}
|
|
91
|
+
},
|
|
92
|
+
"default": {
|
|
93
|
+
"coordinates": [39.98410411, 116.307503],
|
|
94
|
+
"type": "Point"
|
|
95
|
+
}
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
"default": {
|
|
@@ -147,6 +147,9 @@
|
|
|
147
147
|
"icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/FormLocation.svg"
|
|
148
148
|
},
|
|
149
149
|
"events": [
|
|
150
|
-
{
|
|
150
|
+
{
|
|
151
|
+
"name": "change",
|
|
152
|
+
"title": "选择定位坐标改变"
|
|
153
|
+
}
|
|
151
154
|
]
|
|
152
155
|
}
|
|
@@ -7,21 +7,21 @@
|
|
|
7
7
|
"default": "标题",
|
|
8
8
|
"title": "标题",
|
|
9
9
|
"x-category": "基础属性",
|
|
10
|
-
"x-index":1
|
|
10
|
+
"x-index": 1
|
|
11
11
|
},
|
|
12
12
|
"labelVisible": {
|
|
13
13
|
"type": "boolean",
|
|
14
14
|
"default": true,
|
|
15
15
|
"title": "是否显示标题",
|
|
16
16
|
"x-category": "基础属性",
|
|
17
|
-
"x-index":2
|
|
17
|
+
"x-index": 2
|
|
18
18
|
},
|
|
19
19
|
"requiredFlag": {
|
|
20
20
|
"type": "boolean",
|
|
21
21
|
"default": false,
|
|
22
22
|
"title": "是否显示必填标记",
|
|
23
23
|
"x-category": "基础属性",
|
|
24
|
-
"x-index":3
|
|
24
|
+
"x-index": 3
|
|
25
25
|
},
|
|
26
26
|
"layout": {
|
|
27
27
|
"title": "布局方式",
|
|
@@ -38,35 +38,35 @@
|
|
|
38
38
|
}
|
|
39
39
|
],
|
|
40
40
|
"x-category": "基础属性",
|
|
41
|
-
"x-index":4
|
|
41
|
+
"x-index": 4
|
|
42
42
|
},
|
|
43
43
|
"name": {
|
|
44
44
|
"type": "string",
|
|
45
45
|
"default": "formRichText",
|
|
46
46
|
"title": "提交后台所用字段",
|
|
47
47
|
"x-category": "基础属性",
|
|
48
|
-
"x-index":5
|
|
48
|
+
"x-index": 5
|
|
49
49
|
},
|
|
50
50
|
"value": {
|
|
51
51
|
"type": "string",
|
|
52
52
|
"default": "",
|
|
53
53
|
"title": "初始值",
|
|
54
54
|
"x-category": "基础属性",
|
|
55
|
-
"x-index":6
|
|
55
|
+
"x-index": 6
|
|
56
56
|
},
|
|
57
57
|
"readOnly": {
|
|
58
58
|
"type": "boolean",
|
|
59
59
|
"default": false,
|
|
60
60
|
"title": "是否只读",
|
|
61
61
|
"x-category": "基础属性",
|
|
62
|
-
"x-index":7
|
|
62
|
+
"x-index": 7
|
|
63
63
|
},
|
|
64
64
|
"maxSize": {
|
|
65
|
-
"type":"number",
|
|
65
|
+
"type": "number",
|
|
66
66
|
"default": 10,
|
|
67
67
|
"title": "单张图片最大(M)",
|
|
68
68
|
"x-category": "基础属性",
|
|
69
|
-
"x-index":8
|
|
69
|
+
"x-index": 8
|
|
70
70
|
},
|
|
71
71
|
"acceptTypes": {
|
|
72
72
|
"type": "array",
|
|
@@ -106,15 +106,15 @@
|
|
|
106
106
|
]
|
|
107
107
|
},
|
|
108
108
|
"x-category": "基础属性",
|
|
109
|
-
"x-index":9
|
|
109
|
+
"x-index": 9
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
},
|
|
113
113
|
"meta": {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
114
|
+
"title": "富文本",
|
|
115
|
+
"description": "富文本编辑器",
|
|
116
|
+
"category": "表单",
|
|
117
|
+
"icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/RichText.svg"
|
|
118
118
|
},
|
|
119
119
|
"events": [
|
|
120
120
|
{
|
|
@@ -2,6 +2,65 @@
|
|
|
2
2
|
"$schema": "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json",
|
|
3
3
|
"data": {
|
|
4
4
|
"properties": {
|
|
5
|
+
"where": {
|
|
6
|
+
"x-index": 20,
|
|
7
|
+
"title": "选项筛选",
|
|
8
|
+
"x-category": "基础属性",
|
|
9
|
+
"type": "array",
|
|
10
|
+
"items": {},
|
|
11
|
+
"x-component": "condition-select",
|
|
12
|
+
"x-component-props": {
|
|
13
|
+
"selectedDataSourceName": "",
|
|
14
|
+
"customLogicOptions": [
|
|
15
|
+
{
|
|
16
|
+
"text": "且",
|
|
17
|
+
"value": "and"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"blackListConfig": {
|
|
21
|
+
"format": ["related", "father-son", "x-file", "x-image"],
|
|
22
|
+
"type": ["object", "array"]
|
|
23
|
+
},
|
|
24
|
+
"customRelOptions": {
|
|
25
|
+
"number": [
|
|
26
|
+
{
|
|
27
|
+
"value": "equal",
|
|
28
|
+
"text": "等于",
|
|
29
|
+
"type": "equal"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"value": "unequal",
|
|
33
|
+
"text": "不等于"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"value": "greater",
|
|
37
|
+
"text": "大于",
|
|
38
|
+
"type": "greate"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"value": "greater_or_equal",
|
|
42
|
+
"text": "大于等于",
|
|
43
|
+
"type": "greater_or_equal"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"value": "less",
|
|
47
|
+
"text": "小于",
|
|
48
|
+
"type": "less"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"value": "less_or_equal",
|
|
52
|
+
"text": "小于等于",
|
|
53
|
+
"type": "less_or_equal"
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"x-props": {
|
|
59
|
+
"data-hidebind": true,
|
|
60
|
+
"data-hideBindValue": true,
|
|
61
|
+
"data-withBindMeta": true
|
|
62
|
+
}
|
|
63
|
+
},
|
|
5
64
|
"defaultValue": {
|
|
6
65
|
"type": "string",
|
|
7
66
|
"default": "",
|
|
@@ -26,13 +85,7 @@
|
|
|
26
85
|
"type": "string",
|
|
27
86
|
"default": "selector",
|
|
28
87
|
"title": "类型",
|
|
29
|
-
"enum": [
|
|
30
|
-
"selector",
|
|
31
|
-
"date",
|
|
32
|
-
"time",
|
|
33
|
-
"region",
|
|
34
|
-
"mutiRegion"
|
|
35
|
-
],
|
|
88
|
+
"enum": ["selector", "date", "time", "region", "mutiRegion"],
|
|
36
89
|
"x-linkages": [
|
|
37
90
|
{
|
|
38
91
|
"type": "value:visible",
|
|
@@ -83,9 +136,7 @@
|
|
|
83
136
|
"value": "full"
|
|
84
137
|
}
|
|
85
138
|
],
|
|
86
|
-
"x-platforms": [
|
|
87
|
-
"PCWEB"
|
|
88
|
-
]
|
|
139
|
+
"x-platforms": ["PCWEB"]
|
|
89
140
|
},
|
|
90
141
|
"startTime": {
|
|
91
142
|
"type": "string",
|
|
@@ -140,11 +191,7 @@
|
|
|
140
191
|
"items": {
|
|
141
192
|
"type": "string"
|
|
142
193
|
},
|
|
143
|
-
"default": [
|
|
144
|
-
"北京市",
|
|
145
|
-
"北京市",
|
|
146
|
-
"东城区"
|
|
147
|
-
]
|
|
194
|
+
"default": ["北京市", "北京市", "东城区"]
|
|
148
195
|
},
|
|
149
196
|
"regionType": {
|
|
150
197
|
"type": "string",
|
|
@@ -256,73 +303,6 @@
|
|
|
256
303
|
}
|
|
257
304
|
]
|
|
258
305
|
},
|
|
259
|
-
"where": {
|
|
260
|
-
"x-index": 20,
|
|
261
|
-
"title": "选项筛选",
|
|
262
|
-
"x-category": "基础属性",
|
|
263
|
-
"type": "array",
|
|
264
|
-
"items": {},
|
|
265
|
-
"x-component": "condition-select",
|
|
266
|
-
"x-component-props": {
|
|
267
|
-
"selectedDataSourceName": "",
|
|
268
|
-
"customLogicOptions": [
|
|
269
|
-
{
|
|
270
|
-
"text": "且",
|
|
271
|
-
"value": "and"
|
|
272
|
-
}
|
|
273
|
-
],
|
|
274
|
-
"blackListConfig": {
|
|
275
|
-
"format": [
|
|
276
|
-
"related",
|
|
277
|
-
"father-son",
|
|
278
|
-
"x-file",
|
|
279
|
-
"x-image"
|
|
280
|
-
],
|
|
281
|
-
"type": [
|
|
282
|
-
"object",
|
|
283
|
-
"array"
|
|
284
|
-
]
|
|
285
|
-
},
|
|
286
|
-
"customRelOptions": {
|
|
287
|
-
"number": [
|
|
288
|
-
{
|
|
289
|
-
"value": "equal",
|
|
290
|
-
"text": "等于",
|
|
291
|
-
"type": "equal"
|
|
292
|
-
},
|
|
293
|
-
{
|
|
294
|
-
"value": "unequal",
|
|
295
|
-
"text": "不等于"
|
|
296
|
-
},
|
|
297
|
-
{
|
|
298
|
-
"value": "greater",
|
|
299
|
-
"text": "大于",
|
|
300
|
-
"type": "greate"
|
|
301
|
-
},
|
|
302
|
-
{
|
|
303
|
-
"value": "greater_or_equal",
|
|
304
|
-
"text": "大于等于",
|
|
305
|
-
"type": "greater_or_equal"
|
|
306
|
-
},
|
|
307
|
-
{
|
|
308
|
-
"value": "less",
|
|
309
|
-
"text": "小于",
|
|
310
|
-
"type": "less"
|
|
311
|
-
},
|
|
312
|
-
{
|
|
313
|
-
"value": "less_or_equal",
|
|
314
|
-
"text": "小于等于",
|
|
315
|
-
"type": "less_or_equal"
|
|
316
|
-
}
|
|
317
|
-
]
|
|
318
|
-
}
|
|
319
|
-
},
|
|
320
|
-
"x-props": {
|
|
321
|
-
"data-hidebind": true,
|
|
322
|
-
"data-hideBindValue": true,
|
|
323
|
-
"data-withBindMeta": true
|
|
324
|
-
}
|
|
325
|
-
},
|
|
326
306
|
"range": {
|
|
327
307
|
"type": "array",
|
|
328
308
|
"default": [
|
|
@@ -2,6 +2,42 @@
|
|
|
2
2
|
"$schema": "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json",
|
|
3
3
|
"data": {
|
|
4
4
|
"properties": {
|
|
5
|
+
"title": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"default": "上传图片",
|
|
8
|
+
"title": "标题",
|
|
9
|
+
"x-category": "基础属性",
|
|
10
|
+
"x-index": 1
|
|
11
|
+
},
|
|
12
|
+
"tips": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"default": "上传图片提示",
|
|
15
|
+
"title": "提示",
|
|
16
|
+
"x-category": "基础属性",
|
|
17
|
+
"x-index": 2
|
|
18
|
+
},
|
|
19
|
+
"btnTitle": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"default": "上传图片",
|
|
22
|
+
"title": "按钮名称",
|
|
23
|
+
"x-category": "基础属性",
|
|
24
|
+
"x-index": 3,
|
|
25
|
+
"x-platforms": ["PCWEB"]
|
|
26
|
+
},
|
|
27
|
+
"maxUploadCount": {
|
|
28
|
+
"type": "number",
|
|
29
|
+
"default": 9,
|
|
30
|
+
"title": "最大上传数",
|
|
31
|
+
"x-category": "基础属性",
|
|
32
|
+
"x-index": 4
|
|
33
|
+
},
|
|
34
|
+
"maxSize": {
|
|
35
|
+
"type": "number",
|
|
36
|
+
"default": 10,
|
|
37
|
+
"title": "单张大小(M)",
|
|
38
|
+
"x-category": "基础属性",
|
|
39
|
+
"x-index": 5
|
|
40
|
+
},
|
|
5
41
|
"acceptTypes": {
|
|
6
42
|
"type": "array",
|
|
7
43
|
"title": "图片类型",
|
|
@@ -39,6 +75,34 @@
|
|
|
39
75
|
]
|
|
40
76
|
}
|
|
41
77
|
},
|
|
78
|
+
"required": {
|
|
79
|
+
"type": "boolean",
|
|
80
|
+
"title": "是否必填",
|
|
81
|
+
"default": false,
|
|
82
|
+
"x-index": 190,
|
|
83
|
+
"x-category": "高级属性",
|
|
84
|
+
"x-linkages": [
|
|
85
|
+
{
|
|
86
|
+
"type": "value:visible",
|
|
87
|
+
"target": "*(requiredFlag,requiredMsg)",
|
|
88
|
+
"condition": "{{$self.value}}"
|
|
89
|
+
}
|
|
90
|
+
]
|
|
91
|
+
},
|
|
92
|
+
"requiredMsg": {
|
|
93
|
+
"type": "string",
|
|
94
|
+
"title": "校验错误提示",
|
|
95
|
+
"default": "该项为必填项",
|
|
96
|
+
"x-index": 191,
|
|
97
|
+
"x-category": "高级属性"
|
|
98
|
+
},
|
|
99
|
+
"requiredFlag": {
|
|
100
|
+
"type": "boolean",
|
|
101
|
+
"title": "显示必填标记",
|
|
102
|
+
"default": false,
|
|
103
|
+
"x-index": 192,
|
|
104
|
+
"x-category": "高级属性"
|
|
105
|
+
},
|
|
42
106
|
"layout": {
|
|
43
107
|
"title": "布局方式",
|
|
44
108
|
"type": "string",
|
|
@@ -61,42 +125,6 @@
|
|
|
61
125
|
"title": "是否禁用",
|
|
62
126
|
"x-category": "基础属性"
|
|
63
127
|
},
|
|
64
|
-
"maxSize": {
|
|
65
|
-
"type": "number",
|
|
66
|
-
"default": 10,
|
|
67
|
-
"title": "单张大小(M)",
|
|
68
|
-
"x-category": "基础属性",
|
|
69
|
-
"x-index": 5
|
|
70
|
-
},
|
|
71
|
-
"maxUploadCount": {
|
|
72
|
-
"type": "number",
|
|
73
|
-
"default": 9,
|
|
74
|
-
"title": "最大上传数",
|
|
75
|
-
"x-category": "基础属性",
|
|
76
|
-
"x-index": 4
|
|
77
|
-
},
|
|
78
|
-
"btnTitle": {
|
|
79
|
-
"type": "string",
|
|
80
|
-
"default": "上传图片",
|
|
81
|
-
"title": "按钮名称",
|
|
82
|
-
"x-category": "基础属性",
|
|
83
|
-
"x-index": 3,
|
|
84
|
-
"x-platforms": ["PCWEB"]
|
|
85
|
-
},
|
|
86
|
-
"tips": {
|
|
87
|
-
"type": "string",
|
|
88
|
-
"default": "上传图片提示",
|
|
89
|
-
"title": "提示",
|
|
90
|
-
"x-category": "基础属性",
|
|
91
|
-
"x-index": 2
|
|
92
|
-
},
|
|
93
|
-
"title": {
|
|
94
|
-
"type": "string",
|
|
95
|
-
"default": "上传图片",
|
|
96
|
-
"title": "标题",
|
|
97
|
-
"x-category": "基础属性",
|
|
98
|
-
"x-index": 1
|
|
99
|
-
},
|
|
100
128
|
"labelVisible": {
|
|
101
129
|
"type": "boolean",
|
|
102
130
|
"default": true,
|
|
@@ -108,34 +136,6 @@
|
|
|
108
136
|
"title": "是否返回单张图片",
|
|
109
137
|
"x-category": "基础属性"
|
|
110
138
|
},
|
|
111
|
-
"required": {
|
|
112
|
-
"type": "boolean",
|
|
113
|
-
"title": "是否必填",
|
|
114
|
-
"default": false,
|
|
115
|
-
"x-index": 190,
|
|
116
|
-
"x-category": "高级属性",
|
|
117
|
-
"x-linkages": [
|
|
118
|
-
{
|
|
119
|
-
"type": "value:visible",
|
|
120
|
-
"target": "*(requiredFlag,requiredMsg)",
|
|
121
|
-
"condition": "{{$self.value}}"
|
|
122
|
-
}
|
|
123
|
-
]
|
|
124
|
-
},
|
|
125
|
-
"requiredMsg": {
|
|
126
|
-
"type": "string",
|
|
127
|
-
"title": "校验错误提示",
|
|
128
|
-
"default": "该项为必填项",
|
|
129
|
-
"x-index": 191,
|
|
130
|
-
"x-category": "高级属性"
|
|
131
|
-
},
|
|
132
|
-
"requiredFlag": {
|
|
133
|
-
"type": "boolean",
|
|
134
|
-
"title": "显示必填标记",
|
|
135
|
-
"default": false,
|
|
136
|
-
"x-index": 192,
|
|
137
|
-
"x-category": "高级属性"
|
|
138
|
-
},
|
|
139
139
|
"defaultValue": {
|
|
140
140
|
"x-category": "基础属性",
|
|
141
141
|
"title": "初始默认值",
|
|
@@ -23,7 +23,6 @@
|
|
|
23
23
|
"x-category": "基础属性",
|
|
24
24
|
"x-index": 30
|
|
25
25
|
},
|
|
26
|
-
|
|
27
26
|
"maxUploadCount": {
|
|
28
27
|
"type": "number",
|
|
29
28
|
"default": 9,
|
|
@@ -154,6 +153,6 @@
|
|
|
154
153
|
"title": "上传文件",
|
|
155
154
|
"description": "上传文件组件",
|
|
156
155
|
"category": "表单",
|
|
157
|
-
"icon":"//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/UploadFile.svg"
|
|
156
|
+
"icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/UploadFile.svg"
|
|
158
157
|
}
|
|
159
158
|
}
|