@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
|
@@ -1,17 +1,36 @@
|
|
|
1
|
-
import { Static } from '../type-utils';
|
|
1
|
+
import { Static, StaticEventsType } from '../type-utils';
|
|
2
2
|
import type { Simplify } from 'type-fest';
|
|
3
3
|
declare const data: import("@sinclair/typebox").TObject<{
|
|
4
|
-
link: import("@sinclair/typebox").TString
|
|
4
|
+
link: import("@sinclair/typebox").TString;
|
|
5
5
|
}>;
|
|
6
6
|
export type DataType = Simplify<Static<typeof data>>;
|
|
7
|
+
declare const events: [{
|
|
8
|
+
readonly name: "load";
|
|
9
|
+
readonly title: "网页加载成功";
|
|
10
|
+
readonly detail: import("@sinclair/typebox").TObject<{
|
|
11
|
+
src: import("@sinclair/typebox").TString;
|
|
12
|
+
}>;
|
|
13
|
+
}, {
|
|
14
|
+
readonly name: "error";
|
|
15
|
+
readonly title: "网页加载失败";
|
|
16
|
+
readonly detail: import("@sinclair/typebox").TObject<{
|
|
17
|
+
src: import("@sinclair/typebox").TString;
|
|
18
|
+
}>;
|
|
19
|
+
}, {
|
|
20
|
+
readonly name: "message";
|
|
21
|
+
readonly title: "接收网页消息";
|
|
22
|
+
readonly detail: import("@sinclair/typebox").TObject<{
|
|
23
|
+
data: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TAny>;
|
|
24
|
+
}>;
|
|
25
|
+
}];
|
|
7
26
|
declare const config: {
|
|
8
27
|
readonly $schema: "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json";
|
|
9
28
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
10
|
-
link: import("@sinclair/typebox").TString
|
|
29
|
+
link: import("@sinclair/typebox").TString;
|
|
30
|
+
}>;
|
|
31
|
+
readonly properties: import("@sinclair/typebox").TObject<{
|
|
32
|
+
link: import("@sinclair/typebox").TString;
|
|
11
33
|
}>;
|
|
12
|
-
readonly properties: import("@sinclair/typebox").TPick<import("@sinclair/typebox").TObject<{
|
|
13
|
-
link: 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">;
|
|
14
|
-
}>, ["link"]>;
|
|
15
34
|
readonly classes: readonly [{
|
|
16
35
|
readonly name: "根元素";
|
|
17
36
|
readonly selector: ".wd-web-view";
|
|
@@ -30,23 +49,23 @@ declare const config: {
|
|
|
30
49
|
readonly description: "可以为小程序端的网页嵌套编写样式";
|
|
31
50
|
}];
|
|
32
51
|
readonly methods: readonly [];
|
|
33
|
-
readonly events:
|
|
52
|
+
readonly events: [{
|
|
34
53
|
readonly name: "load";
|
|
35
54
|
readonly title: "网页加载成功";
|
|
36
55
|
readonly detail: import("@sinclair/typebox").TObject<{
|
|
37
|
-
src: import("@sinclair/typebox").TString
|
|
56
|
+
src: import("@sinclair/typebox").TString;
|
|
38
57
|
}>;
|
|
39
58
|
}, {
|
|
40
59
|
readonly name: "error";
|
|
41
60
|
readonly title: "网页加载失败";
|
|
42
61
|
readonly detail: import("@sinclair/typebox").TObject<{
|
|
43
|
-
src: import("@sinclair/typebox").TString
|
|
62
|
+
src: import("@sinclair/typebox").TString;
|
|
44
63
|
}>;
|
|
45
64
|
}, {
|
|
46
65
|
readonly name: "message";
|
|
47
66
|
readonly title: "接收网页消息";
|
|
48
67
|
readonly detail: import("@sinclair/typebox").TObject<{
|
|
49
|
-
data: import("@sinclair/typebox").
|
|
68
|
+
data: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TAny>;
|
|
50
69
|
}>;
|
|
51
70
|
}];
|
|
52
71
|
readonly meta: {
|
|
@@ -110,4 +129,5 @@ declare const config: {
|
|
|
110
129
|
readonly docsUrl: "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/show/WebView";
|
|
111
130
|
};
|
|
112
131
|
};
|
|
132
|
+
export type EventsType = Simplify<StaticEventsType<typeof events>>;
|
|
113
133
|
export default config;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineConfig, Type } from '../type-utils';
|
|
1
|
+
import { defineConfig, Type, Tuple, } from '../type-utils';
|
|
2
2
|
// 属性类型定义
|
|
3
3
|
const data = Type.Object({
|
|
4
4
|
link: Type.String({
|
|
@@ -15,6 +15,38 @@ const data = Type.Object({
|
|
|
15
15
|
// 未来可通过 widget API 开放,应用可以获取到组件的实例属性
|
|
16
16
|
// 组件对外先规范定义,暂时不对外开放
|
|
17
17
|
const properties = Type.Pick(data, ['link']);
|
|
18
|
+
const events = Tuple([
|
|
19
|
+
{
|
|
20
|
+
name: 'load',
|
|
21
|
+
title: '网页加载成功',
|
|
22
|
+
detail: Type.Object({
|
|
23
|
+
src: Type.String({
|
|
24
|
+
title: '网页链接地址',
|
|
25
|
+
description: '网页链接地址',
|
|
26
|
+
}),
|
|
27
|
+
}),
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: 'error',
|
|
31
|
+
title: '网页加载失败',
|
|
32
|
+
detail: Type.Object({
|
|
33
|
+
src: Type.String({
|
|
34
|
+
title: '网页链接地址',
|
|
35
|
+
description: '网页链接地址',
|
|
36
|
+
}),
|
|
37
|
+
}),
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: 'message',
|
|
41
|
+
title: '接收网页消息',
|
|
42
|
+
detail: Type.Object({
|
|
43
|
+
data: Type.Record(Type.String(), Type.Any(), {
|
|
44
|
+
title: '接收信息内容',
|
|
45
|
+
description: '接收信息内容',
|
|
46
|
+
}),
|
|
47
|
+
}),
|
|
48
|
+
},
|
|
49
|
+
]);
|
|
18
50
|
// export default
|
|
19
51
|
const config = defineConfig({
|
|
20
52
|
$schema: 'https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json',
|
|
@@ -48,38 +80,7 @@ const config = defineConfig({
|
|
|
48
80
|
// 组件方法
|
|
49
81
|
methods: [],
|
|
50
82
|
// 组件对外暴露事件
|
|
51
|
-
events
|
|
52
|
-
{
|
|
53
|
-
name: 'load',
|
|
54
|
-
title: '网页加载成功',
|
|
55
|
-
detail: Type.Object({
|
|
56
|
-
src: Type.String({
|
|
57
|
-
title: '网页链接地址',
|
|
58
|
-
description: '网页链接地址',
|
|
59
|
-
}),
|
|
60
|
-
}),
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
name: 'error',
|
|
64
|
-
title: '网页加载失败',
|
|
65
|
-
detail: Type.Object({
|
|
66
|
-
src: Type.String({
|
|
67
|
-
title: '网页链接地址',
|
|
68
|
-
description: '网页链接地址',
|
|
69
|
-
}),
|
|
70
|
-
}),
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
name: 'message',
|
|
74
|
-
title: '接收网页消息',
|
|
75
|
-
detail: Type.Object({
|
|
76
|
-
data: Type.Object({}, {
|
|
77
|
-
title: '接收信息内容',
|
|
78
|
-
description: '接收信息内容',
|
|
79
|
-
}),
|
|
80
|
-
}),
|
|
81
|
-
},
|
|
82
|
-
],
|
|
83
|
+
events,
|
|
83
84
|
// 组件元信息
|
|
84
85
|
meta: {
|
|
85
86
|
name: 'WebView',
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
declare const config: {
|
|
2
|
+
readonly $schema: "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json";
|
|
3
|
+
readonly data: import("@sinclair/typebox").TObject<{
|
|
4
|
+
videoDataSource: import("@sinclair/typebox").TString;
|
|
5
|
+
posterImage: import("@sinclair/typebox").TString;
|
|
6
|
+
autoPlay: import("@sinclair/typebox").TBoolean;
|
|
7
|
+
loopPlay: import("@sinclair/typebox").TBoolean;
|
|
8
|
+
mutePlay: import("@sinclair/typebox").TBoolean;
|
|
9
|
+
controlBarStatus: import("@sinclair/typebox").TBoolean;
|
|
10
|
+
startTime: import("@sinclair/typebox").TNumber;
|
|
11
|
+
endTime: import("@sinclair/typebox").TNumber;
|
|
12
|
+
}>;
|
|
13
|
+
readonly events: readonly [];
|
|
14
|
+
readonly meta: {
|
|
15
|
+
readonly name: "wedaVideo";
|
|
16
|
+
readonly componentName: "Video";
|
|
17
|
+
readonly title: "视频播放";
|
|
18
|
+
readonly description: "用于展示播放视频资源";
|
|
19
|
+
readonly icon: "../icons/WedaVideo.svg";
|
|
20
|
+
readonly category: "展示";
|
|
21
|
+
readonly visible: readonly ["APP"];
|
|
22
|
+
readonly categoryOrder: 400;
|
|
23
|
+
readonly componentOrder: 320;
|
|
24
|
+
readonly docsUrl: "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/show/WedaVideo";
|
|
25
|
+
};
|
|
26
|
+
readonly configMeta: {
|
|
27
|
+
readonly docsUrl: "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/show/WedaVideo";
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export default config;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { defineConfig, Type } from '../type-utils';
|
|
2
|
+
const data = Type.Object({
|
|
3
|
+
videoDataSource: Type.String({
|
|
4
|
+
title: '视频资源',
|
|
5
|
+
default: 'https://qcloudimg.tencent-cloud.cn/raw/472043e1e13e1cc06e4afc46407e8c4d.mp4',
|
|
6
|
+
'x-category': '基础属性',
|
|
7
|
+
'x-index': 10,
|
|
8
|
+
'x-rules': [
|
|
9
|
+
{
|
|
10
|
+
message: '请输入合法的视频资源',
|
|
11
|
+
pattern: '^(((https?)://)|/resources/)[^\\s]+$',
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
message: '请勿在地址中包含中文字符',
|
|
15
|
+
pattern: '^[^\\u4e00-\\u9fa5]+$',
|
|
16
|
+
},
|
|
17
|
+
],
|
|
18
|
+
description: '能够播放的视频资源地址,支持云文件id',
|
|
19
|
+
'x-helper-text': '视频资源地址不要含有中文,否则会导致某些场景下的兼容问题,如:企业微信小程序内播放该视频失败',
|
|
20
|
+
}),
|
|
21
|
+
posterImage: Type.String({
|
|
22
|
+
title: '封面图片',
|
|
23
|
+
default: '',
|
|
24
|
+
'x-component': 'image',
|
|
25
|
+
'x-category': '基础属性',
|
|
26
|
+
'x-index': 20,
|
|
27
|
+
'x-rules': [
|
|
28
|
+
{
|
|
29
|
+
message: '请输入合法的图片地址',
|
|
30
|
+
pattern: '^(((https?)://)|/resources/)[^\\s]+$',
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
}),
|
|
34
|
+
autoPlay: Type.Boolean({
|
|
35
|
+
title: '自动播放',
|
|
36
|
+
default: false,
|
|
37
|
+
'x-category': '基础属性',
|
|
38
|
+
'x-index': 30,
|
|
39
|
+
description: '部分浏览器会阻止默认自动播放行为',
|
|
40
|
+
}),
|
|
41
|
+
loopPlay: Type.Boolean({
|
|
42
|
+
title: '循环播放',
|
|
43
|
+
default: false,
|
|
44
|
+
'x-category': '基础属性',
|
|
45
|
+
'x-index': 40,
|
|
46
|
+
}),
|
|
47
|
+
mutePlay: Type.Boolean({
|
|
48
|
+
title: '静音播放',
|
|
49
|
+
default: false,
|
|
50
|
+
'x-category': '基础属性',
|
|
51
|
+
'x-index': 50,
|
|
52
|
+
}),
|
|
53
|
+
controlBarStatus: Type.Boolean({
|
|
54
|
+
title: '播放控件',
|
|
55
|
+
default: true,
|
|
56
|
+
'x-category': '基础属性',
|
|
57
|
+
'x-index': 60,
|
|
58
|
+
description: '控制视频播放、暂停、静音、全屏等功能,关闭后相当于只能观看视频不能交互',
|
|
59
|
+
}),
|
|
60
|
+
startTime: Type.Number({
|
|
61
|
+
title: '初始播放时间(秒)',
|
|
62
|
+
default: 0,
|
|
63
|
+
'x-category': '高级属性',
|
|
64
|
+
'x-index': 70,
|
|
65
|
+
'x-rules': [{ min: 0, message: '请输入大于0的秒数' }],
|
|
66
|
+
description: '小于0不生效,超出视频时长取值为视频最大时长',
|
|
67
|
+
}),
|
|
68
|
+
endTime: Type.Number({
|
|
69
|
+
title: '指定视频时长(秒)',
|
|
70
|
+
default: 0,
|
|
71
|
+
type: 'number',
|
|
72
|
+
'x-category': '高级属性',
|
|
73
|
+
'x-index': 80,
|
|
74
|
+
'x-rules': [{ min: 0, message: '请输入大于0的秒数' }],
|
|
75
|
+
description: '小于0不生效;超出视频时长取值为视频最大时长;h5端不会改变进度条显示长度,小程序端会改变',
|
|
76
|
+
}),
|
|
77
|
+
});
|
|
78
|
+
const config = defineConfig({
|
|
79
|
+
$schema: 'https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json',
|
|
80
|
+
data,
|
|
81
|
+
events: [],
|
|
82
|
+
meta: {
|
|
83
|
+
name: 'wedaVideo',
|
|
84
|
+
componentName: 'Video',
|
|
85
|
+
title: '视频播放',
|
|
86
|
+
description: '用于展示播放视频资源',
|
|
87
|
+
icon: '../icons/WedaVideo.svg',
|
|
88
|
+
category: '展示',
|
|
89
|
+
visible: ['APP'],
|
|
90
|
+
categoryOrder: 400,
|
|
91
|
+
componentOrder: 320,
|
|
92
|
+
docsUrl: 'https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/show/WedaVideo',
|
|
93
|
+
},
|
|
94
|
+
configMeta: {
|
|
95
|
+
docsUrl: 'https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/show/WedaVideo',
|
|
96
|
+
},
|
|
97
|
+
});
|
|
98
|
+
export default config;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Simplify } from 'type-fest';
|
|
2
2
|
import { Static } from '../../type-utils';
|
|
3
3
|
declare const data: import("@sinclair/typebox").TObject<{
|
|
4
|
-
text: import("@sinclair/typebox").TString
|
|
4
|
+
text: import("@sinclair/typebox").TString;
|
|
5
5
|
type: import("@sinclair/typebox").TUnsafe<"primary" | "default" | "warn" | "wechat">;
|
|
6
6
|
size: import("@sinclair/typebox").TUnsafe<"default" | "mini" | "large">;
|
|
7
7
|
}>;
|
|
@@ -9,7 +9,7 @@ export type DataType = Simplify<Static<typeof data>>;
|
|
|
9
9
|
declare const config: {
|
|
10
10
|
readonly $schema: "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json";
|
|
11
11
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
12
|
-
text: import("@sinclair/typebox").TString
|
|
12
|
+
text: import("@sinclair/typebox").TString;
|
|
13
13
|
type: import("@sinclair/typebox").TUnsafe<"primary" | "default" | "warn" | "wechat">;
|
|
14
14
|
size: import("@sinclair/typebox").TUnsafe<"default" | "mini" | "large">;
|
|
15
15
|
}>;
|
|
@@ -19,10 +19,10 @@ declare const config: {
|
|
|
19
19
|
readonly description: "弹窗中点击了允许按钮后触发的事件";
|
|
20
20
|
readonly 'x-platforms': readonly ["MP"];
|
|
21
21
|
readonly detail: import("@sinclair/typebox").TObject<{
|
|
22
|
-
phoneNumber: import("@sinclair/typebox").TString
|
|
23
|
-
purePhoneNumber: import("@sinclair/typebox").TString
|
|
24
|
-
countryCode: import("@sinclair/typebox").TString
|
|
25
|
-
timestamp: import("@sinclair/typebox").TString
|
|
22
|
+
phoneNumber: import("@sinclair/typebox").TString;
|
|
23
|
+
purePhoneNumber: import("@sinclair/typebox").TString;
|
|
24
|
+
countryCode: import("@sinclair/typebox").TString;
|
|
25
|
+
timestamp: import("@sinclair/typebox").TString;
|
|
26
26
|
}>;
|
|
27
27
|
}, {
|
|
28
28
|
readonly title: "手机号授权失败";
|
|
@@ -1,73 +1,17 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
readonly $schema: "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json";
|
|
3
|
-
readonly data: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
readonly default: "获取用户手机号授权令牌";
|
|
9
|
-
readonly description: "按钮组件的标题";
|
|
10
|
-
readonly type: "string";
|
|
11
|
-
readonly 'x-category': "基础属性";
|
|
12
|
-
readonly 'x-platforms': readonly ["MP"];
|
|
13
|
-
readonly 'x-index': 1;
|
|
14
|
-
};
|
|
15
|
-
readonly type: {
|
|
16
|
-
readonly title: "按钮风格";
|
|
17
|
-
readonly type: "string";
|
|
18
|
-
readonly default: "wechat";
|
|
19
|
-
readonly description: "按钮组件的风格,相对于普通按钮组件,新增“微信”按钮风格";
|
|
20
|
-
readonly enum: readonly ["default", "wechat", "primary", "warn"];
|
|
21
|
-
readonly 'x-category': "基础属性";
|
|
22
|
-
readonly 'x-platforms': readonly ["MP"];
|
|
23
|
-
readonly 'x-index': 2;
|
|
24
|
-
readonly 'x-component-props': {
|
|
25
|
-
readonly options: readonly [{
|
|
26
|
-
readonly text: "默认";
|
|
27
|
-
readonly value: "default";
|
|
28
|
-
}, {
|
|
29
|
-
readonly text: "微信";
|
|
30
|
-
readonly value: "wechat";
|
|
31
|
-
}, {
|
|
32
|
-
readonly text: "主要";
|
|
33
|
-
readonly value: "primary";
|
|
34
|
-
}, {
|
|
35
|
-
readonly text: "警告";
|
|
36
|
-
readonly value: "warn";
|
|
37
|
-
}];
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
readonly size: {
|
|
41
|
-
readonly title: "按钮大小";
|
|
42
|
-
readonly type: "string";
|
|
43
|
-
readonly default: "default";
|
|
44
|
-
readonly description: "按钮的大小";
|
|
45
|
-
readonly enum: readonly ["default", "mini", "large"];
|
|
46
|
-
readonly 'x-category': "基础属性";
|
|
47
|
-
readonly 'x-platforms': readonly ["MP"];
|
|
48
|
-
readonly 'x-index': 3;
|
|
49
|
-
readonly 'x-component-props': {
|
|
50
|
-
readonly options: readonly [{
|
|
51
|
-
readonly text: "中";
|
|
52
|
-
readonly value: "default";
|
|
53
|
-
}, {
|
|
54
|
-
readonly text: "小";
|
|
55
|
-
readonly value: "mini";
|
|
56
|
-
}, {
|
|
57
|
-
readonly text: "大";
|
|
58
|
-
readonly value: "large";
|
|
59
|
-
}];
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
};
|
|
3
|
+
readonly data: import("@sinclair/typebox").TObject<{
|
|
4
|
+
text: import("@sinclair/typebox").TString;
|
|
5
|
+
type: import("@sinclair/typebox").TUnsafe<"primary" | "default" | "warn" | "wechat">;
|
|
6
|
+
size: import("@sinclair/typebox").TUnsafe<"default" | "mini" | "large">;
|
|
7
|
+
}>;
|
|
64
8
|
readonly events: readonly [{
|
|
65
9
|
readonly title: "获取手机号授权令牌成功";
|
|
66
10
|
readonly name: "phoneCodeSuccess";
|
|
67
11
|
readonly description: "弹窗中点击了允许按钮后触发的事件";
|
|
68
12
|
readonly 'x-platforms': readonly ["MP"];
|
|
69
13
|
readonly detail: import("@sinclair/typebox").TObject<{
|
|
70
|
-
code: import("@sinclair/typebox").TString
|
|
14
|
+
code: import("@sinclair/typebox").TString;
|
|
71
15
|
}>;
|
|
72
16
|
}, {
|
|
73
17
|
readonly title: "获取手机号授权令牌失败";
|
|
@@ -1,76 +1,68 @@
|
|
|
1
|
-
import { defineConfig, Type } from '../../type-utils';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { defineConfig, Tuple, Type } from '../../type-utils';
|
|
2
|
+
const data = Type.Object({
|
|
3
|
+
text: Type.String({
|
|
4
|
+
title: '按钮标题',
|
|
5
|
+
default: '获取用户手机号授权令牌',
|
|
6
|
+
description: '按钮组件的标题',
|
|
7
|
+
type: 'string',
|
|
8
|
+
'x-category': '基础属性',
|
|
9
|
+
'x-platforms': ['MP'],
|
|
10
|
+
'x-index': 1,
|
|
11
|
+
}),
|
|
12
|
+
type: Type.StringEnum({
|
|
13
|
+
title: '按钮风格',
|
|
14
|
+
type: 'string',
|
|
15
|
+
default: 'wechat',
|
|
16
|
+
description: '按钮组件的风格,相对于普通按钮组件,新增“微信”按钮风格',
|
|
17
|
+
enum: Tuple([
|
|
18
|
+
{
|
|
19
|
+
label: '默认',
|
|
20
|
+
value: 'default',
|
|
15
21
|
},
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
default: 'wechat',
|
|
20
|
-
description: '按钮组件的风格,相对于普通按钮组件,新增“微信”按钮风格',
|
|
21
|
-
enum: ['default', 'wechat', 'primary', 'warn'],
|
|
22
|
-
'x-category': '基础属性',
|
|
23
|
-
'x-platforms': ['MP'],
|
|
24
|
-
'x-index': 2,
|
|
25
|
-
'x-component-props': {
|
|
26
|
-
options: [
|
|
27
|
-
{
|
|
28
|
-
text: '默认',
|
|
29
|
-
value: 'default',
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
text: '微信',
|
|
33
|
-
value: 'wechat',
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
text: '主要',
|
|
37
|
-
value: 'primary',
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
text: '警告',
|
|
41
|
-
value: 'warn',
|
|
42
|
-
},
|
|
43
|
-
],
|
|
44
|
-
},
|
|
22
|
+
{
|
|
23
|
+
label: '微信',
|
|
24
|
+
value: 'wechat',
|
|
45
25
|
},
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
default: 'default',
|
|
50
|
-
description: '按钮的大小',
|
|
51
|
-
enum: ['default', 'mini', 'large'],
|
|
52
|
-
'x-category': '基础属性',
|
|
53
|
-
'x-platforms': ['MP'],
|
|
54
|
-
'x-index': 3,
|
|
55
|
-
'x-component-props': {
|
|
56
|
-
options: [
|
|
57
|
-
{
|
|
58
|
-
text: '中',
|
|
59
|
-
value: 'default',
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
text: '小',
|
|
63
|
-
value: 'mini',
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
text: '大',
|
|
67
|
-
value: 'large',
|
|
68
|
-
},
|
|
69
|
-
],
|
|
70
|
-
},
|
|
26
|
+
{
|
|
27
|
+
label: '主要',
|
|
28
|
+
value: 'primary',
|
|
71
29
|
},
|
|
72
|
-
|
|
73
|
-
|
|
30
|
+
{
|
|
31
|
+
label: '警告',
|
|
32
|
+
value: 'warn',
|
|
33
|
+
},
|
|
34
|
+
]),
|
|
35
|
+
'x-category': '基础属性',
|
|
36
|
+
'x-platforms': ['MP'],
|
|
37
|
+
'x-index': 2,
|
|
38
|
+
}),
|
|
39
|
+
size: Type.StringEnum({
|
|
40
|
+
title: '按钮大小',
|
|
41
|
+
type: 'string',
|
|
42
|
+
default: 'default',
|
|
43
|
+
description: '按钮的大小',
|
|
44
|
+
enum: Tuple([
|
|
45
|
+
{
|
|
46
|
+
label: '中',
|
|
47
|
+
value: 'default',
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
label: '小',
|
|
51
|
+
value: 'mini',
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
label: '大',
|
|
55
|
+
value: 'large',
|
|
56
|
+
},
|
|
57
|
+
]),
|
|
58
|
+
'x-category': '基础属性',
|
|
59
|
+
'x-platforms': ['MP'],
|
|
60
|
+
'x-index': 3,
|
|
61
|
+
}),
|
|
62
|
+
});
|
|
63
|
+
export default defineConfig({
|
|
64
|
+
$schema: 'https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json',
|
|
65
|
+
data,
|
|
74
66
|
events: [
|
|
75
67
|
{
|
|
76
68
|
title: '获取手机号授权令牌成功',
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { Simplify, Static } from '../../type-utils';
|
|
2
2
|
declare const data: import("@sinclair/typebox").TObject<{
|
|
3
|
-
text: import("@sinclair/typebox").TString
|
|
3
|
+
text: import("@sinclair/typebox").TString;
|
|
4
4
|
type: import("@sinclair/typebox").TUnsafe<"primary" | "default" | "warn" | "wechat">;
|
|
5
5
|
size: import("@sinclair/typebox").TUnsafe<"default" | "mini" | "large">;
|
|
6
|
-
title: import("@sinclair/typebox").TString
|
|
7
|
-
image: import("@sinclair/typebox").TString
|
|
8
|
-
path: import("@sinclair/typebox").TString
|
|
6
|
+
title: import("@sinclair/typebox").TString;
|
|
7
|
+
image: import("@sinclair/typebox").TString;
|
|
8
|
+
path: import("@sinclair/typebox").TString;
|
|
9
9
|
withParams: import("@sinclair/typebox").TBoolean;
|
|
10
10
|
params: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
11
|
-
key: import("@sinclair/typebox").TString
|
|
12
|
-
value: import("@sinclair/typebox").TString
|
|
11
|
+
key: import("@sinclair/typebox").TString;
|
|
12
|
+
value: import("@sinclair/typebox").TString;
|
|
13
13
|
}>>;
|
|
14
14
|
}>;
|
|
15
15
|
export type DataType = Simplify<Static<typeof data>>;
|
|
16
16
|
declare const config: {
|
|
17
17
|
readonly $schema: "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json";
|
|
18
18
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
19
|
-
text: import("@sinclair/typebox").TString
|
|
19
|
+
text: import("@sinclair/typebox").TString;
|
|
20
20
|
type: import("@sinclair/typebox").TUnsafe<"primary" | "default" | "warn" | "wechat">;
|
|
21
21
|
size: import("@sinclair/typebox").TUnsafe<"default" | "mini" | "large">;
|
|
22
|
-
title: import("@sinclair/typebox").TString
|
|
23
|
-
image: import("@sinclair/typebox").TString
|
|
24
|
-
path: import("@sinclair/typebox").TString
|
|
22
|
+
title: import("@sinclair/typebox").TString;
|
|
23
|
+
image: import("@sinclair/typebox").TString;
|
|
24
|
+
path: import("@sinclair/typebox").TString;
|
|
25
25
|
withParams: import("@sinclair/typebox").TBoolean;
|
|
26
26
|
params: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
27
|
-
key: import("@sinclair/typebox").TString
|
|
28
|
-
value: import("@sinclair/typebox").TString
|
|
27
|
+
key: import("@sinclair/typebox").TString;
|
|
28
|
+
value: import("@sinclair/typebox").TString;
|
|
29
29
|
}>>;
|
|
30
30
|
}>;
|
|
31
31
|
readonly events: readonly [];
|