@cloudbase/weda-ui 3.5.1 → 3.5.2
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 +3 -0
- package/dist/configs/components/button.d.ts +12 -12
- package/dist/configs/components/calendar.d.ts +26 -0
- package/dist/configs/components/calendar.js +80 -0
- package/dist/configs/components/carousel.json +1 -4
- package/dist/configs/components/chart/line.d.ts +28 -28
- package/dist/configs/components/common/form-input-required.d.ts +1 -1
- package/dist/configs/components/container.d.ts +1 -1
- package/dist/configs/components/customer-service.d.ts +10 -34
- package/dist/configs/components/customer-service.js +91 -92
- package/dist/configs/components/dataView.d.ts +21 -3
- package/dist/configs/components/dataView.js +165 -16
- package/dist/configs/components/echart.d.ts +4 -4
- package/dist/configs/components/form-checkbox.d.ts +18 -18
- package/dist/configs/components/form-checkbox.js +0 -4
- package/dist/configs/components/form-date.d.ts +14 -14
- package/dist/configs/components/form-date.js +0 -4
- package/dist/configs/components/form-depart-tree-select.d.ts +17 -14
- package/dist/configs/components/form-depart-tree-select.js +1 -4
- package/dist/configs/components/form-email.d.ts +10 -10
- package/dist/configs/components/form-email.js +0 -4
- package/dist/configs/components/form-image-uploader.d.ts +11 -8
- package/dist/configs/components/form-image-uploader.js +1 -4
- package/dist/configs/components/form-input.d.ts +16 -16
- package/dist/configs/components/form-input.js +0 -10
- package/dist/configs/components/form-location.d.ts +21 -12
- package/dist/configs/components/form-location.js +1 -4
- package/dist/configs/components/form-multi-region.d.ts +13 -10
- package/dist/configs/components/form-multi-region.js +1 -4
- package/dist/configs/components/form-phone.d.ts +10 -10
- package/dist/configs/components/form-phone.js +0 -4
- package/dist/configs/components/form-radio.d.ts +18 -18
- package/dist/configs/components/form-radio.js +0 -4
- package/dist/configs/components/form-region.d.ts +12 -12
- package/dist/configs/components/form-region.js +0 -4
- package/dist/configs/components/form-rich-text.d.ts +11 -8
- package/dist/configs/components/form-rich-text.js +1 -4
- package/dist/configs/components/form-select-multiple.d.ts +27 -24
- package/dist/configs/components/form-select-multiple.js +1 -4
- package/dist/configs/components/form-select.d.ts +27 -24
- package/dist/configs/components/form-select.js +1 -4
- package/dist/configs/components/form-switch.d.ts +6 -6
- package/dist/configs/components/form-switch.js +0 -4
- package/dist/configs/components/form-text-area.d.ts +10 -10
- package/dist/configs/components/form-text-area.js +0 -4
- package/dist/configs/components/form-time.d.ts +17 -14
- package/dist/configs/components/form-time.js +1 -4
- package/dist/configs/components/form-upload-file.d.ts +13 -10
- package/dist/configs/components/form-upload-file.js +1 -4
- package/dist/configs/components/form-url.d.ts +10 -10
- package/dist/configs/components/form-url.js +0 -4
- package/dist/configs/components/form-user-tree-select.d.ts +19 -16
- package/dist/configs/components/form-user-tree-select.js +1 -4
- package/dist/configs/components/formdetail.json +0 -4
- package/dist/configs/components/grid/col.d.ts +2 -4
- package/dist/configs/components/grid/grid.d.ts +2 -4
- package/dist/configs/components/grid/row.d.ts +2 -3
- package/dist/configs/components/image.d.ts +4 -4
- package/dist/configs/components/link.d.ts +8 -8
- package/dist/configs/components/listView.d.ts +78 -33
- package/dist/configs/components/listView.js +258 -51
- package/dist/configs/components/lottery.d.ts +67 -0
- package/dist/configs/components/lottery.js +178 -0
- package/dist/configs/components/modal.d.ts +2 -2
- package/dist/configs/components/qr_code.d.ts +11 -11
- package/dist/configs/components/repeater.d.ts +10 -91
- package/dist/configs/components/repeater.js +75 -87
- package/dist/configs/components/tabs.d.ts +4 -4
- package/dist/configs/components/text.d.ts +2 -2
- package/dist/configs/components/wd-bubble.d.ts +3 -8
- package/dist/configs/components/wd-button.d.ts +22 -34
- package/dist/configs/components/wd-card.d.ts +10 -10
- package/dist/configs/components/wd-card.js +10 -5
- package/dist/configs/components/wd-checkbox.d.ts +36 -81
- package/dist/configs/components/wd-date-range.d.ts +87 -131
- package/dist/configs/components/wd-date.d.ts +88 -132
- package/dist/configs/components/wd-date.js +1 -1
- package/dist/configs/components/wd-divider.d.ts +2 -2
- package/dist/configs/components/wd-form-detail.d.ts +9 -9
- package/dist/configs/components/wd-form.d.ts +54 -82
- package/dist/configs/components/wd-form.js +1 -1
- package/dist/configs/components/wd-icon.d.ts +8 -9
- package/dist/configs/components/wd-image-upload.d.ts +5 -5
- package/dist/configs/components/wd-image.d.ts +8 -12
- package/dist/configs/components/wd-input-email.d.ts +88 -156
- package/dist/configs/components/wd-input-number.d.ts +38 -179
- package/dist/configs/components/wd-input-number.js +1 -1
- package/dist/configs/components/wd-input-phone.d.ts +86 -156
- package/dist/configs/components/wd-input-url.d.ts +88 -156
- package/dist/configs/components/wd-input.d.ts +120 -164
- package/dist/configs/components/wd-layout.d.ts +1 -5
- package/dist/configs/components/wd-link.d.ts +14 -26
- package/dist/configs/components/wd-modal.d.ts +12 -8
- package/dist/configs/components/wd-modal.js +14 -14
- package/dist/configs/components/wd-official-account.d.ts +3 -5
- package/dist/configs/components/wd-official-account.js +3 -5
- package/dist/configs/components/wd-radio.d.ts +35 -80
- package/dist/configs/components/wd-switch.d.ts +21 -67
- package/dist/configs/components/wd-table.d.ts +95 -132
- package/dist/configs/components/wd-table.js +61 -17
- package/dist/configs/components/wd-text.d.ts +8 -8
- package/dist/configs/components/wd-textarea.d.ts +64 -110
- package/dist/configs/components/wd-time.d.ts +89 -133
- package/dist/configs/components/wd-tree.d.ts +243 -281
- package/dist/configs/components/wd-tree.js +1 -1
- package/dist/configs/components/web-view.d.ts +30 -10
- package/dist/configs/components/web-view.js +34 -33
- package/dist/configs/components/wedaVideo.d.ts +30 -0
- package/dist/configs/components/wedaVideo.js +98 -0
- package/dist/configs/components/wxOpenApi/phone.d.ts +6 -6
- package/dist/configs/components/wxOpenApi/phoneCode.d.ts +6 -62
- package/dist/configs/components/wxOpenApi/phoneCode.js +62 -70
- package/dist/configs/components/wxOpenApi/share.d.ts +12 -12
- package/dist/configs/components/wxOpenApi/userInfo.d.ts +7 -7
- package/dist/configs/index.d.ts +2515 -4367
- package/dist/configs/index.js +3 -3
- package/dist/configs/type-utils/error.d.ts +3 -3
- package/dist/configs/type-utils/index.d.ts +6 -6
- package/dist/configs/type-utils/index.js +2 -5
- package/dist/configs/type-utils/type-form.d.ts +95 -101
- package/dist/index.js +1 -1
- package/dist/style/index.scss +1 -1
- package/dist/web/components/chart/common/echarts.js +0 -1
- package/dist/web/components/customer-service/customer-service.js +1 -1
- package/dist/web/components/dataView/index.js +1 -1
- package/dist/web/components/echart/echart.js +22 -6
- package/dist/web/components/flow/common/components/index.js +1 -0
- package/dist/web/components/flow/common/hooks/index.js +1 -0
- package/dist/web/components/flow/common/index.js +1 -0
- package/dist/web/components/flow/modules/operations/components/index.js +1 -0
- package/dist/web/components/flow/modules/operations/components/user-select/index.js +1 -0
- package/dist/web/components/flow/modules/operations/config/index.js +1 -0
- package/dist/web/components/flow/modules/operations/controls-items/approval-drawer/drawer-form/index.js +1 -0
- package/dist/web/components/flow/process/constants.js +1 -3
- package/dist/web/components/flow-graph/graph.js +0 -1
- package/dist/web/components/form/checkbox/index.js +2 -2
- package/dist/web/components/form/enumSelect/MultipleSelect.js +1 -1
- package/dist/web/components/form/enumSelect/NormalSelect.js +1 -1
- package/dist/web/components/form/input/index.js +1 -1
- package/dist/web/components/form/location/components/LocationPC/location.PC.js +2 -2
- package/dist/web/components/form/radio/index.js +1 -1
- package/dist/web/components/form/select/dropdown-select/h5.js +5 -5
- package/dist/web/components/form/select/dropdown-select/pc.js +25 -28
- package/dist/web/components/form/select/dropdown-select/ui.d.ts +1 -1
- package/dist/web/components/form/select/dropdown-select/ui.js +5 -5
- package/dist/web/components/form/select/h5.js +10 -6
- package/dist/web/components/form/select/index.js +4 -2
- package/dist/web/components/form/selectMultiple/h5.js +1 -1
- package/dist/web/components/form/selectMultiple/index.js +1 -1
- package/dist/web/components/form/uploader/index.js +0 -1
- package/dist/web/components/form/uploader/uploader.pc.js +0 -1
- package/dist/web/components/form/uploaderFile/index.js +0 -1
- package/dist/web/components/form/uploaderFile/uploadFile.h5.js +6 -4
- package/dist/web/components/form/uploaderFile/uploadFile.pc.js +6 -4
- package/dist/web/components/form/userOrgSelect/common/fetch-data-service.d.ts +1 -1
- package/dist/web/components/form/userOrgSelect/common/fetch-data-service.js +19 -3
- package/dist/web/components/form/userOrgSelect/common/types.d.ts +2 -1
- package/dist/web/components/form/userOrgSelect/component/depart-select/index.js +1 -3
- package/dist/web/components/form/userOrgSelect/component/user-select-pc/user-select-pc.d.ts +1 -1
- package/dist/web/components/form/userOrgSelect/component/user-select-pc/user-select-pc.js +2 -2
- package/dist/web/components/form/userOrgSelect/hooks/use-depart-data.js +0 -1
- package/dist/web/components/form-date/index.d.ts +1 -1
- package/dist/web/components/form-depart-tree-select/index.d.ts +1 -1
- package/dist/web/components/form-email/index.d.ts +2 -2
- package/dist/web/components/form-input/index.d.ts +2 -2
- package/dist/web/components/form-input-hooks/index.js +12 -13
- package/dist/web/components/form-multi-region/index.d.ts +1 -1
- package/dist/web/components/form-phone/index.d.ts +1 -1
- package/dist/web/components/form-region/index.d.ts +1 -1
- package/dist/web/components/form-select/index.d.ts +1 -1
- package/dist/web/components/form-select-multiple/index.d.ts +1 -1
- package/dist/web/components/form-text-area/index.d.ts +2 -2
- package/dist/web/components/form-time/index.d.ts +1 -1
- package/dist/web/components/form-url/index.d.ts +2 -2
- package/dist/web/components/form-user-tree-select/index.d.ts +1 -1
- package/dist/web/components/form-user-tree-select/index.js +3 -2
- package/dist/web/components/listView/index.js +81 -14
- package/dist/web/components/listView/interface.d.ts +7 -1
- package/dist/web/components/lottery/index.d.ts +22 -14
- package/dist/web/components/lottery/index.js +1 -2
- package/dist/web/components/navigationBar/horizontalMenu.js +0 -1
- package/dist/web/components/phone/index.js +1 -1
- package/dist/web/components/richText/index.js +3 -2
- package/dist/web/components/share/index.js +1 -1
- package/dist/web/components/table/UserDepartment/utils.js +0 -2
- package/dist/web/components/wd-card/wd-card.js +1 -1
- package/dist/web/components/wd-checkbox-list/checkboxList.js +1 -1
- package/dist/web/components/wd-date/elements/Calendar.h5.js +1 -2
- package/dist/web/components/wd-department-select/h5.js +0 -1
- package/dist/web/components/wd-form/hooks/use-remote-value.js +20 -8
- package/dist/web/components/wd-form/index.d.ts +7 -7
- package/dist/web/components/wd-form/index.js +12 -10
- package/dist/web/components/wd-input/wd-input.d.ts +43 -43
- package/dist/web/components/wd-input-email/wd-input-email.d.ts +39 -39
- package/dist/web/components/wd-input-number/number.js +0 -1
- package/dist/web/components/wd-input-number/wd-input-number.js +10 -6
- package/dist/web/components/wd-input-phone/wd-input-phone.d.ts +43 -43
- package/dist/web/components/wd-input-url/wd-input-url.d.ts +39 -39
- package/dist/web/components/wd-member-select/h5.js +0 -1
- package/dist/web/components/wd-modal/wd-modal.js +8 -3
- package/dist/web/components/wd-official-account/index.js +1 -1
- package/dist/web/components/wd-radio-list/wd-radio-list.js +2 -2
- package/dist/web/components/wd-table/components/FieldRender/UserDepartment/utils.js +0 -2
- package/dist/web/components/wd-table/components/FieldRender/index.d.ts +1 -1
- package/dist/web/components/wd-table/components/FieldRender/index.js +9 -6
- package/dist/web/components/wd-table/components/ModalTable/index.js +0 -3
- package/dist/web/components/wd-table/components/Table/index.js +4 -0
- package/dist/web/components/wd-table/hooks/useAuthFields.d.ts +1 -1
- package/dist/web/components/wd-table/hooks/useAuthFields.js +18 -4
- package/dist/web/components/wd-table/utils/index.js +5 -4
- package/dist/web/components/wd-table/wd-table.js +41 -19
- package/dist/web/components/wd-tree/utils.js +0 -2
- package/dist/web/components/wd-tree/wd-tree.js +0 -1
- package/dist/web/components/wd-upload-image/wd-upload-image.js +0 -1
- package/dist/web/components/web-view/web-view.d.ts +23 -6
- package/dist/web/index.js +1 -0
- package/dist/web/utils/constant.js +0 -1
- package/dist/web/utils/hooks/useFormLegacy.d.ts +1 -1
- package/dist/web/utils/hooks/useFormLegacy.js +9 -3
- package/dist/web/utils/moment.js +1 -3
- package/dist/web/utils/platform.js +0 -3
- package/dist/web/utils/widget-api/index.d.ts +1 -1
- package/dist/web/utils/widget-api/index.js +19 -22
- package/dist/web/weda-ui.css +6 -0
- package/package.json +13 -6
- package/dist/configs/components/calendar.json +0 -83
- package/dist/configs/components/lottery.json +0 -166
- package/dist/configs/components/wedaVideo.json +0 -101
|
@@ -79,7 +79,8 @@ isNewData = false
|
|
|
79
79
|
`;
|
|
80
80
|
const template = `
|
|
81
81
|
[attributes]
|
|
82
|
-
supportManyRelated =
|
|
82
|
+
supportManyRelated = true
|
|
83
|
+
isSupportApis = false
|
|
83
84
|
`;
|
|
84
85
|
// 属性类型定义
|
|
85
86
|
const data = Type.Object({
|
|
@@ -348,7 +349,7 @@ const data = Type.Object({
|
|
|
348
349
|
required: true,
|
|
349
350
|
description: '表格展示的数据,可选择变量。',
|
|
350
351
|
'x-component': 'jsontext',
|
|
351
|
-
'x-helper-text': '
|
|
352
|
+
'x-helper-text': '新特性:表格追加绑定表达式数据,原APIs路径优化为表达式。表格展示的数据,格式为数组。[查看示例](https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/database/WdTable#2-%E7%BB%91%E5%AE%9A%E8%A1%A8%E8%BE%BE%E5%BC%8F)',
|
|
352
353
|
'x-group': '数据',
|
|
353
354
|
'x-index': 25,
|
|
354
355
|
'x-linkages': [
|
|
@@ -669,6 +670,50 @@ const data = Type.Object({
|
|
|
669
670
|
},
|
|
670
671
|
],
|
|
671
672
|
})),
|
|
673
|
+
isSupportApis: Type.Optional(Type.Boolean({
|
|
674
|
+
title: '是否支持apis',
|
|
675
|
+
'x-group': '数据',
|
|
676
|
+
display: false,
|
|
677
|
+
default: true,
|
|
678
|
+
'x-linkages': [
|
|
679
|
+
{
|
|
680
|
+
type: 'value:schema',
|
|
681
|
+
target: 'dataSourceType',
|
|
682
|
+
condition: '{{!$self.value}}',
|
|
683
|
+
schema: {
|
|
684
|
+
enum: [
|
|
685
|
+
{
|
|
686
|
+
label: '数据模型',
|
|
687
|
+
value: 'data-model',
|
|
688
|
+
},
|
|
689
|
+
{
|
|
690
|
+
label: '表达式',
|
|
691
|
+
value: 'expression',
|
|
692
|
+
},
|
|
693
|
+
],
|
|
694
|
+
'x-component-props': {
|
|
695
|
+
defaultValue: 'data-model',
|
|
696
|
+
options: [
|
|
697
|
+
{
|
|
698
|
+
value: 'data-model',
|
|
699
|
+
text: '数据模型',
|
|
700
|
+
label: '数据模型',
|
|
701
|
+
icon: 'database',
|
|
702
|
+
isShow: true,
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
value: 'expression',
|
|
706
|
+
text: '表达式',
|
|
707
|
+
label: '表达式',
|
|
708
|
+
icon: 'expression',
|
|
709
|
+
isShow: true,
|
|
710
|
+
},
|
|
711
|
+
],
|
|
712
|
+
},
|
|
713
|
+
},
|
|
714
|
+
},
|
|
715
|
+
],
|
|
716
|
+
})),
|
|
672
717
|
queryCondition: Type.Optional(Type.Array(Type.Object({}), {
|
|
673
718
|
'x-index': 30,
|
|
674
719
|
title: '数据筛选',
|
|
@@ -1056,9 +1101,8 @@ const data = Type.Object({
|
|
|
1056
1101
|
},
|
|
1057
1102
|
},
|
|
1058
1103
|
})),
|
|
1059
|
-
contentSlot: Type.Optional(Type.Slot({ 'x-group': '数据' })),
|
|
1060
1104
|
});
|
|
1061
|
-
const properties = Type.
|
|
1105
|
+
const properties = Type.Composite([
|
|
1062
1106
|
Type.Pick(data, [
|
|
1063
1107
|
'dataSourceType',
|
|
1064
1108
|
'bindMetadata',
|
|
@@ -1291,10 +1335,10 @@ const config = defineConfig({
|
|
|
1291
1335
|
description: '每次数据查询成功时均会触发,包括切换分页、修改筛选条件时',
|
|
1292
1336
|
'x-platforms': ['MOBILEWEB', 'PCWEB'],
|
|
1293
1337
|
detail: Type.Object({
|
|
1294
|
-
data: Type.Object(
|
|
1295
|
-
data: Type.
|
|
1296
|
-
query: Type.
|
|
1297
|
-
}
|
|
1338
|
+
data: Type.Object({
|
|
1339
|
+
data: Type.Unknown(),
|
|
1340
|
+
query: Type.Unknown(),
|
|
1341
|
+
}, {
|
|
1298
1342
|
title: '查询结果,查询条件',
|
|
1299
1343
|
type: 'object',
|
|
1300
1344
|
description: '查询结果,查询条件',
|
|
@@ -1307,10 +1351,10 @@ const config = defineConfig({
|
|
|
1307
1351
|
description: '每次数据查询成功时均会触发,包括切换分页、修改筛选条件时',
|
|
1308
1352
|
'x-platforms': ['MOBILEWEB', 'PCWEB'],
|
|
1309
1353
|
detail: Type.Object({
|
|
1310
|
-
data: Type.Object(
|
|
1311
|
-
data: Type.
|
|
1312
|
-
query: Type.
|
|
1313
|
-
}
|
|
1354
|
+
data: Type.Object({
|
|
1355
|
+
data: Type.Unknown(),
|
|
1356
|
+
query: Type.Unknown(),
|
|
1357
|
+
}, {
|
|
1314
1358
|
type: 'object',
|
|
1315
1359
|
description: '查询结果,查询条件',
|
|
1316
1360
|
}),
|
|
@@ -1353,10 +1397,10 @@ const config = defineConfig({
|
|
|
1353
1397
|
'x-platforms': ['MOBILEWEB', 'PCWEB'],
|
|
1354
1398
|
description: '分页变化',
|
|
1355
1399
|
detail: Type.Object({
|
|
1356
|
-
query: Type.Object(
|
|
1400
|
+
query: Type.Object({
|
|
1357
1401
|
pageIndex: Type.Number(),
|
|
1358
1402
|
pageSize: Type.Number(),
|
|
1359
|
-
}
|
|
1403
|
+
}, {
|
|
1360
1404
|
title: '分页信息',
|
|
1361
1405
|
type: 'object',
|
|
1362
1406
|
description: '分页信息',
|
|
@@ -1369,11 +1413,11 @@ const config = defineConfig({
|
|
|
1369
1413
|
'x-platforms': ['MOBILEWEB', 'PCWEB'],
|
|
1370
1414
|
description: '筛选面板搜索值变化/搜索触发回调',
|
|
1371
1415
|
detail: Type.Object({
|
|
1372
|
-
searchValues: Type.Object(
|
|
1416
|
+
searchValues: Type.Object({
|
|
1373
1417
|
key: Type.String(),
|
|
1374
1418
|
val: Type.String(),
|
|
1375
1419
|
rel: Type.String(),
|
|
1376
|
-
}
|
|
1420
|
+
}, {
|
|
1377
1421
|
title: '变更的目标值',
|
|
1378
1422
|
type: 'object',
|
|
1379
1423
|
description: '变更的目标值',
|
|
@@ -1416,7 +1460,7 @@ const config = defineConfig({
|
|
|
1416
1460
|
},
|
|
1417
1461
|
{
|
|
1418
1462
|
when: '$attached',
|
|
1419
|
-
to: '
|
|
1463
|
+
to: '$children',
|
|
1420
1464
|
body: template,
|
|
1421
1465
|
},
|
|
1422
1466
|
],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Static } from '../type-utils';
|
|
2
2
|
import type { Simplify } from 'type-fest';
|
|
3
3
|
declare const data: import("@sinclair/typebox").TObject<{
|
|
4
|
-
text: import("@sinclair/typebox").TString
|
|
4
|
+
text: import("@sinclair/typebox").TString;
|
|
5
5
|
level: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
6
6
|
overflow: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
7
7
|
maxLines: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
@@ -13,7 +13,7 @@ export type DataType = Simplify<Static<typeof data>>;
|
|
|
13
13
|
declare const config: {
|
|
14
14
|
readonly $schema: "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json";
|
|
15
15
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
16
|
-
text: import("@sinclair/typebox").TString
|
|
16
|
+
text: import("@sinclair/typebox").TString;
|
|
17
17
|
level: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
18
18
|
overflow: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
19
19
|
maxLines: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
@@ -21,15 +21,15 @@ declare const config: {
|
|
|
21
21
|
space: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
22
22
|
userSelect: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
23
23
|
}>;
|
|
24
|
-
readonly properties: import("@sinclair/typebox").
|
|
25
|
-
text: import("@sinclair/typebox").TString
|
|
26
|
-
|
|
24
|
+
readonly properties: import("@sinclair/typebox").TObject<{
|
|
25
|
+
text: import("@sinclair/typebox").TString;
|
|
26
|
+
space: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
27
27
|
overflow: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
28
|
+
level: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
28
29
|
maxLines: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
29
|
-
tips: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
30
|
-
space: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
31
30
|
userSelect: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
32
|
-
|
|
31
|
+
tips: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
32
|
+
}>;
|
|
33
33
|
readonly classes: readonly [{
|
|
34
34
|
readonly name: "根元素";
|
|
35
35
|
readonly selector: ".wd-typography";
|
|
@@ -1,118 +1,72 @@
|
|
|
1
1
|
import { Static } from '../type-utils';
|
|
2
2
|
import type { Simplify } from 'type-fest';
|
|
3
|
-
declare const data: import("@sinclair/typebox").
|
|
4
|
-
extra: import("@sinclair/typebox").
|
|
5
|
-
counterVisible: import("@sinclair/typebox").TBoolean & {
|
|
3
|
+
declare const data: import("@sinclair/typebox").TObject<{
|
|
4
|
+
extra: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
5
|
+
counterVisible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean & {
|
|
6
6
|
default: boolean;
|
|
7
|
-
}
|
|
8
|
-
focus: import("@sinclair/typebox").TBoolean
|
|
9
|
-
borderedH5: import("@sinclair/typebox").TBoolean
|
|
10
|
-
borderedPc: import("@sinclair/typebox").TBoolean
|
|
11
|
-
maxLength: import("@sinclair/typebox").TNumber
|
|
12
|
-
status: import("@sinclair/typebox").TUnsafe<string
|
|
13
|
-
required: import("@sinclair/typebox").TBoolean
|
|
14
|
-
requiredMsg: import("@sinclair/typebox").
|
|
15
|
-
requiredFlag: import("@sinclair/typebox").TBoolean
|
|
16
|
-
label: import("@sinclair/typebox").
|
|
17
|
-
layout: import("@sinclair/typebox").TUnsafe<string
|
|
18
|
-
labelVisible: import("@sinclair/typebox").TBoolean
|
|
19
|
-
labelWidth: import("@sinclair/typebox").
|
|
20
|
-
labelAlign: import("@sinclair/typebox").TUnsafe<string
|
|
21
|
-
labelWrap: import("@sinclair/typebox").TBoolean
|
|
22
|
-
labelTips: import("@sinclair/typebox").
|
|
23
|
-
name: import("@sinclair/typebox").
|
|
7
|
+
}>;
|
|
8
|
+
focus: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
9
|
+
borderedH5: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
10
|
+
borderedPc: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
11
|
+
maxLength: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
12
|
+
status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
13
|
+
required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
14
|
+
requiredMsg: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
15
|
+
requiredFlag: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
16
|
+
label: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
17
|
+
layout: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
18
|
+
labelVisible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
19
|
+
labelWidth: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
20
|
+
labelAlign: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
21
|
+
labelWrap: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
22
|
+
labelTips: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
23
|
+
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString & {
|
|
24
24
|
default: string;
|
|
25
|
-
}
|
|
26
|
-
value: import("@sinclair/typebox").
|
|
27
|
-
placeholder: import("@sinclair/typebox").
|
|
28
|
-
size: import("@sinclair/typebox").TUnsafe<string
|
|
29
|
-
block: import("@sinclair/typebox").TBoolean
|
|
30
|
-
}
|
|
25
|
+
}>;
|
|
26
|
+
value: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
27
|
+
placeholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
28
|
+
size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
29
|
+
block: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
30
|
+
}>;
|
|
31
31
|
declare const config: {
|
|
32
32
|
readonly $schema: "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json";
|
|
33
|
-
readonly data: import("@sinclair/typebox").
|
|
34
|
-
extra: import("@sinclair/typebox").
|
|
35
|
-
counterVisible: import("@sinclair/typebox").TBoolean & {
|
|
33
|
+
readonly data: import("@sinclair/typebox").TObject<{
|
|
34
|
+
extra: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
35
|
+
counterVisible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean & {
|
|
36
36
|
default: boolean;
|
|
37
|
-
}
|
|
38
|
-
focus: import("@sinclair/typebox").TBoolean
|
|
39
|
-
borderedH5: import("@sinclair/typebox").TBoolean
|
|
40
|
-
borderedPc: import("@sinclair/typebox").TBoolean
|
|
41
|
-
maxLength: import("@sinclair/typebox").TNumber
|
|
42
|
-
status: import("@sinclair/typebox").TUnsafe<string
|
|
43
|
-
required: import("@sinclair/typebox").TBoolean
|
|
44
|
-
requiredMsg: import("@sinclair/typebox").
|
|
45
|
-
requiredFlag: import("@sinclair/typebox").TBoolean
|
|
46
|
-
label: import("@sinclair/typebox").
|
|
47
|
-
layout: import("@sinclair/typebox").TUnsafe<string
|
|
48
|
-
labelVisible: import("@sinclair/typebox").TBoolean
|
|
49
|
-
labelWidth: import("@sinclair/typebox").
|
|
50
|
-
labelAlign: import("@sinclair/typebox").TUnsafe<string
|
|
51
|
-
labelWrap: import("@sinclair/typebox").TBoolean
|
|
52
|
-
labelTips: import("@sinclair/typebox").
|
|
53
|
-
name: import("@sinclair/typebox").
|
|
37
|
+
}>;
|
|
38
|
+
focus: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
39
|
+
borderedH5: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
40
|
+
borderedPc: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
41
|
+
maxLength: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
42
|
+
status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
43
|
+
required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
44
|
+
requiredMsg: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
45
|
+
requiredFlag: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
46
|
+
label: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
47
|
+
layout: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
48
|
+
labelVisible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
49
|
+
labelWidth: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
50
|
+
labelAlign: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
51
|
+
labelWrap: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
52
|
+
labelTips: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
53
|
+
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString & {
|
|
54
54
|
default: string;
|
|
55
|
-
}
|
|
56
|
-
value: import("@sinclair/typebox").
|
|
57
|
-
placeholder: import("@sinclair/typebox").
|
|
58
|
-
size: import("@sinclair/typebox").TUnsafe<string
|
|
59
|
-
block: import("@sinclair/typebox").TBoolean
|
|
60
|
-
}
|
|
61
|
-
readonly properties: import("@sinclair/typebox").
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
end: import("@sinclair/typebox").TAny;
|
|
71
|
-
inputValue: import("@sinclair/typebox").TString<"string" | "boolean" | "object" | "function" | "tel" | "x-long-text" | "phone" | "datetime" | "array" | "url" | "x-image" | "x-rtf" | "x-enum" | "x-location" | "x-file" | "x-autonumber" | "x-area-code" | "related" | "father-son" | "many-many">;
|
|
72
|
-
placeholder: import("@sinclair/typebox").TString<"string" | "boolean" | "object" | "function" | "tel" | "x-long-text" | "phone" | "datetime" | "array" | "url" | "x-image" | "x-rtf" | "x-enum" | "x-location" | "x-file" | "x-autonumber" | "x-area-code" | "related" | "father-son" | "many-many">;
|
|
73
|
-
size: import("@sinclair/typebox").TUnsafe<string>;
|
|
74
|
-
block: import("@sinclair/typebox").TBoolean;
|
|
75
|
-
label: import("@sinclair/typebox").TString<"string" | "boolean" | "object" | "function" | "tel" | "x-long-text" | "phone" | "datetime" | "array" | "url" | "x-image" | "x-rtf" | "x-enum" | "x-location" | "x-file" | "x-autonumber" | "x-area-code" | "related" | "father-son" | "many-many">;
|
|
76
|
-
labelVisible: import("@sinclair/typebox").TBoolean;
|
|
77
|
-
labelAlign: import("@sinclair/typebox").TUnsafe<string>;
|
|
78
|
-
labelWrap: import("@sinclair/typebox").TBoolean;
|
|
79
|
-
layout: import("@sinclair/typebox").TUnsafe<string>;
|
|
80
|
-
labelWidth: import("@sinclair/typebox").TString<"string" | "boolean" | "object" | "function" | "tel" | "x-long-text" | "phone" | "datetime" | "array" | "url" | "x-image" | "x-rtf" | "x-enum" | "x-location" | "x-file" | "x-autonumber" | "x-area-code" | "related" | "father-son" | "many-many">;
|
|
81
|
-
labelTips: import("@sinclair/typebox").TString<"string" | "boolean" | "object" | "function" | "tel" | "x-long-text" | "phone" | "datetime" | "array" | "url" | "x-image" | "x-rtf" | "x-enum" | "x-location" | "x-file" | "x-autonumber" | "x-area-code" | "related" | "father-son" | "many-many">;
|
|
82
|
-
clearable: import("@sinclair/typebox").TBoolean;
|
|
83
|
-
before: import("@sinclair/typebox").TString<"string" | "boolean" | "object" | "function" | "tel" | "x-long-text" | "phone" | "datetime" | "array" | "url" | "x-image" | "x-rtf" | "x-enum" | "x-location" | "x-file" | "x-autonumber" | "x-area-code" | "related" | "father-son" | "many-many">;
|
|
84
|
-
after: import("@sinclair/typebox").TString<"string" | "boolean" | "object" | "function" | "tel" | "x-long-text" | "phone" | "datetime" | "array" | "url" | "x-image" | "x-rtf" | "x-enum" | "x-location" | "x-file" | "x-autonumber" | "x-area-code" | "related" | "father-son" | "many-many">;
|
|
85
|
-
isUnionValue: import("@sinclair/typebox").TBoolean;
|
|
86
|
-
prefixType: import("@sinclair/typebox").TUnsafe<string>;
|
|
87
|
-
prefixIcon: import("@sinclair/typebox").TUnsafe<string>;
|
|
88
|
-
prefixSrc: import("@sinclair/typebox").TString<"string" | "boolean" | "object" | "function" | "tel" | "x-long-text" | "phone" | "datetime" | "array" | "url" | "x-image" | "x-rtf" | "x-enum" | "x-location" | "x-file" | "x-autonumber" | "x-area-code" | "related" | "father-son" | "many-many">;
|
|
89
|
-
suffixType: import("@sinclair/typebox").TUnsafe<string>;
|
|
90
|
-
suffixIcon: import("@sinclair/typebox").TUnsafe<string>;
|
|
91
|
-
suffixSrc: import("@sinclair/typebox").TString<"string" | "boolean" | "object" | "function" | "tel" | "x-long-text" | "phone" | "datetime" | "array" | "url" | "x-image" | "x-rtf" | "x-enum" | "x-location" | "x-file" | "x-autonumber" | "x-area-code" | "related" | "father-son" | "many-many">;
|
|
92
|
-
extra: import("@sinclair/typebox").TString<"string" | "boolean" | "object" | "function" | "tel" | "x-long-text" | "phone" | "datetime" | "array" | "url" | "x-image" | "x-rtf" | "x-enum" | "x-location" | "x-file" | "x-autonumber" | "x-area-code" | "related" | "father-son" | "many-many">;
|
|
93
|
-
password: import("@sinclair/typebox").TBoolean;
|
|
94
|
-
type: import("@sinclair/typebox").TUnsafe<string>;
|
|
95
|
-
counterVisible: import("@sinclair/typebox").TBoolean;
|
|
96
|
-
focus: import("@sinclair/typebox").TBoolean;
|
|
97
|
-
borderedH5: import("@sinclair/typebox").TBoolean;
|
|
98
|
-
borderedPc: import("@sinclair/typebox").TBoolean;
|
|
99
|
-
isNickNameType: import("@sinclair/typebox").TBoolean;
|
|
100
|
-
maxLength: import("@sinclair/typebox").TNumber;
|
|
101
|
-
rules: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
102
|
-
format: import("@sinclair/typebox").TString<"string" | "boolean" | "object" | "function" | "tel" | "x-long-text" | "phone" | "datetime" | "array" | "url" | "x-image" | "x-rtf" | "x-enum" | "x-location" | "x-file" | "x-autonumber" | "x-area-code" | "related" | "father-son" | "many-many">;
|
|
103
|
-
message: import("@sinclair/typebox").TString<"string" | "boolean" | "object" | "function" | "tel" | "x-long-text" | "phone" | "datetime" | "array" | "url" | "x-image" | "x-rtf" | "x-enum" | "x-location" | "x-file" | "x-autonumber" | "x-area-code" | "related" | "father-son" | "many-many">;
|
|
104
|
-
pattern: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<"string" | "boolean" | "object" | "function" | "tel" | "x-long-text" | "phone" | "datetime" | "array" | "url" | "x-image" | "x-rtf" | "x-enum" | "x-location" | "x-file" | "x-autonumber" | "x-area-code" | "related" | "father-son" | "many-many">>;
|
|
105
|
-
}>>;
|
|
106
|
-
validateStatus: import("@sinclair/typebox").TUnsafe<string>;
|
|
107
|
-
status: import("@sinclair/typebox").TUnsafe<string>;
|
|
108
|
-
required: import("@sinclair/typebox").TBoolean;
|
|
109
|
-
requiredFlag: import("@sinclair/typebox").TBoolean;
|
|
110
|
-
requiredMsg: import("@sinclair/typebox").TString<"string" | "boolean" | "object" | "function" | "tel" | "x-long-text" | "phone" | "datetime" | "array" | "url" | "x-image" | "x-rtf" | "x-enum" | "x-location" | "x-file" | "x-autonumber" | "x-area-code" | "related" | "father-son" | "many-many">;
|
|
111
|
-
visible: import("@sinclair/typebox").TBoolean;
|
|
112
|
-
disabled: import("@sinclair/typebox").TBoolean;
|
|
113
|
-
readOnly: import("@sinclair/typebox").TBoolean;
|
|
114
|
-
selectedLabel: import("@sinclair/typebox").TString<"string" | "boolean" | "object" | "function" | "tel" | "x-long-text" | "phone" | "datetime" | "array" | "url" | "x-image" | "x-rtf" | "x-enum" | "x-location" | "x-file" | "x-autonumber" | "x-area-code" | "related" | "father-son" | "many-many">;
|
|
115
|
-
}>>, ["name", "label", "required", "value", "visible", "disabled", "readOnly"]>;
|
|
55
|
+
}>;
|
|
56
|
+
value: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
57
|
+
placeholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
58
|
+
size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
59
|
+
block: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
60
|
+
}>;
|
|
61
|
+
readonly properties: import("@sinclair/typebox").TObject<{
|
|
62
|
+
label: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
63
|
+
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
64
|
+
value: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
65
|
+
required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
66
|
+
disabled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
67
|
+
visible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
68
|
+
readOnly: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
69
|
+
}>;
|
|
116
70
|
readonly classes: readonly [...{
|
|
117
71
|
name: string;
|
|
118
72
|
selector: string;
|
|
@@ -187,19 +141,19 @@ declare const config: {
|
|
|
187
141
|
readonly name: "change";
|
|
188
142
|
readonly title: "值改变";
|
|
189
143
|
readonly detail: import("@sinclair/typebox").TObject<{
|
|
190
|
-
value: import("@sinclair/typebox").TString
|
|
144
|
+
value: import("@sinclair/typebox").TString;
|
|
191
145
|
}>;
|
|
192
146
|
}, {
|
|
193
147
|
readonly name: "focus";
|
|
194
148
|
readonly title: "聚焦";
|
|
195
149
|
readonly detail: import("@sinclair/typebox").TObject<{
|
|
196
|
-
value: import("@sinclair/typebox").TString
|
|
150
|
+
value: import("@sinclair/typebox").TString;
|
|
197
151
|
}>;
|
|
198
152
|
}, {
|
|
199
153
|
readonly name: "blur";
|
|
200
154
|
readonly title: "失焦";
|
|
201
155
|
readonly detail: import("@sinclair/typebox").TObject<{
|
|
202
|
-
value: import("@sinclair/typebox").TString
|
|
156
|
+
value: import("@sinclair/typebox").TString;
|
|
203
157
|
}>;
|
|
204
158
|
}];
|
|
205
159
|
readonly meta: {
|