@cloudbase/weda-ui 3.20.1 → 3.20.3
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/dist/configs/components/chart/bar.js +2 -2
- package/dist/configs/components/chart/line.js +2 -2
- package/dist/configs/components/chart/pie.js +2 -2
- package/dist/configs/components/chart/statisticsCard.json +5 -12
- package/dist/configs/components/form/location.json +3 -9
- package/dist/configs/components/form-location.d.ts +2 -2
- package/dist/configs/components/form-location.js +1 -1
- package/dist/configs/components/form-user-tree-select.js +1 -1
- package/dist/configs/components/scrollVeiw.json +43 -79
- package/dist/configs/components/wd-calendar.d.ts +4 -0
- package/dist/configs/components/wd-calendar.js +23 -1
- package/dist/configs/components/wd-cascader.d.ts +7 -12
- package/dist/configs/components/wd-cascader.js +12 -1
- package/dist/configs/components/wd-checkbox.d.ts +4 -1
- package/dist/configs/components/wd-checkbox.js +11 -1
- package/dist/configs/components/wd-location.d.ts +2 -2
- package/dist/configs/components/wd-location.js +1 -1
- package/dist/configs/components/wd-member.d.ts +2 -0
- package/dist/configs/components/wd-member.js +5 -1
- package/dist/configs/components/wd-radio.d.ts +4 -1
- package/dist/configs/components/wd-rich-text.d.ts +2 -0
- package/dist/configs/components/wd-rich-text.js +1 -0
- package/dist/configs/components/wd-select-multiple.d.ts +4 -1
- package/dist/configs/components/wd-select-multiple.js +11 -1
- package/dist/configs/components/wd-select.d.ts +4 -1
- package/dist/configs/components/wd-table.js +3 -2
- package/dist/configs/components/wd-tag-select.d.ts +4 -1
- package/dist/configs/components/wd-tag-select.js +11 -1
- package/dist/configs/components/wd-top-tab.d.ts +1 -1
- package/dist/configs/components/wd-top-tab.js +2 -1
- package/dist/configs/components/wd-upload-file.d.ts +2 -0
- package/dist/configs/components/wd-upload-file.js +1 -0
- package/dist/configs/components/wd-upload-image.d.ts +18 -11
- package/dist/configs/components/wd-upload-image.js +8 -6
- package/dist/configs/index.d.ts +130 -74
- package/dist/configs/type-utils/type-form.d.ts +12 -4
- package/dist/configs/type-utils/type-form.js +54 -4
- package/dist/enum/index.js +1 -0
- package/dist/style/index.css +1 -0
- package/dist/style/index.scss +1 -1
- package/dist/style/weda-ui.min.css +2 -2
- package/dist/web/components/form/location/common/propsConfig.d.ts +3 -3
- package/dist/web/components/form/location/common/propsConfig.js +2 -2
- package/dist/web/components/form/location/components/LocationH5/location.h5.js +36 -27
- package/dist/web/components/form/location/components/LocationPC/Header.js +2 -2
- package/dist/web/components/form/location/components/LocationPC/location.PC.js +38 -41
- package/dist/web/components/form/uploader/upload/index.d.ts +1 -0
- package/dist/web/components/form/uploader/upload/index.js +7 -5
- package/dist/web/components/form/uploader/uploader.h5.d.ts +1 -0
- package/dist/web/components/form/uploader/uploader.pc.js +1 -1
- package/dist/web/components/form/uploader/util.d.ts +1 -0
- package/dist/web/components/form/uploader/util.js +7 -3
- package/dist/web/components/form/uploaderFile/uploadFile.h5.d.ts +2 -1
- package/dist/web/components/form/uploaderFile/uploadFile.h5.js +11 -8
- package/dist/web/components/form/uploaderFile/uploadFile.pc.d.ts +2 -1
- package/dist/web/components/form/uploaderFile/uploadFile.pc.js +11 -8
- package/dist/web/components/form-location/index.d.ts +1 -1
- package/dist/web/components/form-location/index.js +3 -3
- package/dist/web/components/form-user-tree-select/index.js +4 -2
- package/dist/web/components/richText/index.d.ts +4 -1
- package/dist/web/components/richText/index.js +16 -14
- package/dist/web/components/uploaderFileView/index.js +3 -3
- package/dist/web/components/wd-calendar/wd-calendar.js +4 -11
- package/dist/web/components/wd-calendar/weeks.d.ts +1 -1
- package/dist/web/components/wd-calendar/weeks.js +2 -2
- package/dist/web/components/wd-form/index.js +12 -7
- package/dist/web/components/wd-location/wd-location.d.ts +1 -1
- package/dist/web/components/wd-location/wd-location.js +2 -2
- package/dist/web/components/wd-member/wd-member.js +4 -2
- package/dist/web/components/wd-rich-text/wd-rich-text.js +2 -2
- package/dist/web/components/wd-select/select/selectUI.js +4 -1
- package/dist/web/components/wd-table/components/ExportFileModalByApi/index.js +3 -2
- package/dist/web/components/wd-table/hooks/useTableData.js +8 -3
- package/dist/web/components/wd-upload-file/wd-upload-file.js +2 -2
- package/dist/web/components/wd-upload-image/wd-upload-image.js +2 -2
- package/package.json +2 -2
|
@@ -79,6 +79,29 @@ export const FORM_ITEM_DATA = {
|
|
|
79
79
|
},
|
|
80
80
|
],
|
|
81
81
|
}),
|
|
82
|
+
storageType: Type.StringEnum({
|
|
83
|
+
enum: Tuple([
|
|
84
|
+
{
|
|
85
|
+
label: 'https协议',
|
|
86
|
+
value: 'https',
|
|
87
|
+
description: '选择https方式,文件将自动转换为https 链接并存储在数据模型中,开启云存储公有读写权限后,文件链接将长期有效。',
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
label: 'cloudID协议',
|
|
91
|
+
value: 'cloudID',
|
|
92
|
+
description: '选择cloudID方式,文件将以云存储 fileID 的形式直接存储在数据模型中。',
|
|
93
|
+
},
|
|
94
|
+
]),
|
|
95
|
+
title: '值存储方式',
|
|
96
|
+
'x-runtime-default': 'cloudID',
|
|
97
|
+
description: '指定图片存储方式',
|
|
98
|
+
'x-helper-text': '选择cloudID方式,文件将以云存储 fileID 的形式直接存储在数据模型中;选择https方式,文件将以HTTPS链接形式存储在数据模型中,开启[云存储](https://docs.cloudbase.net/lowcode/faq#q%E5%BA%94%E7%94%A8%E5%8F%91%E5%B8%83%E5%90%8E%E5%9B%BE%E7%89%87%E4%B8%8D%E5%B1%95%E7%A4%BA)公有读写权限后,文件链接将长期有效。',
|
|
99
|
+
'x-index': 12,
|
|
100
|
+
'x-category': X_CATEGORY.COMMON,
|
|
101
|
+
'x-props': {
|
|
102
|
+
'data-hidebind': true,
|
|
103
|
+
},
|
|
104
|
+
}),
|
|
82
105
|
language: Type.StringEnum({
|
|
83
106
|
title: '支持语言',
|
|
84
107
|
enum: Tuple(WD_CODE_EDITOR_LANGUAGE),
|
|
@@ -393,11 +416,34 @@ export const FORM_ITEM_DATA = {
|
|
|
393
416
|
locationType: Type.NumberEnum({
|
|
394
417
|
enum: Tuple(WD_LOCATION_TYPE),
|
|
395
418
|
title: '默认位置',
|
|
396
|
-
'x-
|
|
419
|
+
'x-props': { 'data-hidebind': true },
|
|
420
|
+
default: X_RUNTIME_DEFAULT.locationType,
|
|
397
421
|
description: '地理位置的默认值',
|
|
398
422
|
'x-category': X_CATEGORY.COMMON,
|
|
399
423
|
'x-component': 'string',
|
|
400
424
|
'x-index': 13,
|
|
425
|
+
'x-linkages': [
|
|
426
|
+
{
|
|
427
|
+
type: 'value:state',
|
|
428
|
+
target: 'value',
|
|
429
|
+
condition: '{{$self.value==3}}',
|
|
430
|
+
state: {
|
|
431
|
+
display: true,
|
|
432
|
+
value: {
|
|
433
|
+
address: '海淀区中关村中国技术交易大厦(海淀桥东南200米)',
|
|
434
|
+
geopoint: {
|
|
435
|
+
type: 'Point',
|
|
436
|
+
coordinates: [116.307503, 39.98410411],
|
|
437
|
+
},
|
|
438
|
+
detailedAddress: '北京市海淀区彩和坊路',
|
|
439
|
+
},
|
|
440
|
+
},
|
|
441
|
+
otherwise: {
|
|
442
|
+
value: null,
|
|
443
|
+
display: false,
|
|
444
|
+
},
|
|
445
|
+
},
|
|
446
|
+
],
|
|
401
447
|
}),
|
|
402
448
|
mode: Type.StringEnum({
|
|
403
449
|
title: '时间模式',
|
|
@@ -1704,7 +1750,10 @@ export const FORM_ITEM_DATA = {
|
|
|
1704
1750
|
description: '选中项对应的文本名称',
|
|
1705
1751
|
'x-platforms': [],
|
|
1706
1752
|
}),
|
|
1707
|
-
item: Type.Object({
|
|
1753
|
+
item: Type.Object({
|
|
1754
|
+
label: Type.String({ title: 'label' }),
|
|
1755
|
+
value: Type.String({ title: 'value' }),
|
|
1756
|
+
}, {
|
|
1708
1757
|
title: '选中项',
|
|
1709
1758
|
description: '选中项对应的对象',
|
|
1710
1759
|
'x-platforms': [],
|
|
@@ -1835,7 +1884,7 @@ export const FORM_ITEM_DATA = {
|
|
|
1835
1884
|
'x-category': X_CATEGORY.COMMON,
|
|
1836
1885
|
'x-index': 24,
|
|
1837
1886
|
}),
|
|
1838
|
-
|
|
1887
|
+
defaultShowLocation: Type.Boolean({
|
|
1839
1888
|
type: 'boolean',
|
|
1840
1889
|
title: '默认显示当前位置',
|
|
1841
1890
|
default: true,
|
|
@@ -1864,7 +1913,8 @@ export const FORM_ITEM_DATA = {
|
|
|
1864
1913
|
type: 'object',
|
|
1865
1914
|
title: '默认值',
|
|
1866
1915
|
format: 'x-location',
|
|
1867
|
-
|
|
1916
|
+
'x-helper-text': '纬度,范围为-90~90;经度,范围为-180~180,位置经纬度可前往腾讯位置服务获取 [去获取](https://lbs.qq.com/getPoint/)',
|
|
1917
|
+
// display: false,
|
|
1868
1918
|
dataType: 'object',
|
|
1869
1919
|
'x-category': X_CATEGORY.COMMON,
|
|
1870
1920
|
'x-component': 'jsontext',
|
package/dist/enum/index.js
CHANGED
|
@@ -1022,6 +1022,7 @@ export const PROPS_WHERE_REL_MEMBER = [].concat(PROPS_WHERE_REL, [
|
|
|
1022
1022
|
export const WD_LOCATION_TYPE = [
|
|
1023
1023
|
{ label: '无', value: 1 },
|
|
1024
1024
|
{ label: '用户当前位置', value: 2 },
|
|
1025
|
+
{ label: '自定义位置', value: 3 },
|
|
1025
1026
|
];
|
|
1026
1027
|
export const WD_LOCATION_RANGE = [
|
|
1027
1028
|
{
|