@cloudbase/weda-ui 3.16.0 → 3.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/configs/components/container.js +0 -3
- package/dist/configs/components/wd-ad.d.ts +4 -0
- package/dist/configs/components/wd-ad.js +23 -0
- package/dist/configs/components/wd-cascader.d.ts +4 -0
- package/dist/configs/components/wd-checkbox.d.ts +4 -0
- package/dist/configs/components/wd-code-editor.d.ts +4 -0
- package/dist/configs/components/wd-date-range.d.ts +4 -0
- package/dist/configs/components/wd-date.d.ts +4 -0
- package/dist/configs/components/wd-department.d.ts +6 -0
- package/dist/configs/components/wd-department.js +1 -1
- package/dist/configs/components/wd-form-arr.d.ts +4 -0
- package/dist/configs/components/wd-form-detail.d.ts +4 -0
- package/dist/configs/components/wd-form-obj.d.ts +4 -0
- package/dist/configs/components/wd-input-email.d.ts +4 -0
- package/dist/configs/components/wd-input-number.d.ts +4 -0
- package/dist/configs/components/wd-input-phone.d.ts +4 -0
- package/dist/configs/components/wd-input-url.d.ts +4 -0
- package/dist/configs/components/wd-input.d.ts +4 -0
- package/dist/configs/components/wd-location.d.ts +4 -0
- package/dist/configs/components/wd-member.d.ts +4 -0
- package/dist/configs/components/wd-radio.d.ts +4 -0
- package/dist/configs/components/wd-rating.d.ts +4 -0
- package/dist/configs/components/wd-region.d.ts +4 -0
- package/dist/configs/components/wd-rich-text.d.ts +4 -0
- package/dist/configs/components/wd-select-multiple.d.ts +4 -0
- package/dist/configs/components/wd-select.d.ts +4 -0
- package/dist/configs/components/wd-switch.d.ts +4 -0
- package/dist/configs/components/wd-tag-select.d.ts +4 -0
- package/dist/configs/components/wd-tag.d.ts +4 -0
- package/dist/configs/components/wd-textarea.d.ts +4 -0
- package/dist/configs/components/wd-time.d.ts +4 -0
- package/dist/configs/components/wd-upload-file.d.ts +4 -0
- package/dist/configs/components/wd-upload-image.d.ts +195 -15
- package/dist/configs/components/wd-upload-image.js +125 -6
- package/dist/configs/index.d.ts +492 -4
- package/dist/configs/type-utils/type-form.d.ts +4 -0
- package/dist/configs/type-utils/type-form.js +4 -0
- package/dist/configs/type-utils/x-runtime-default.d.ts +2 -0
- package/dist/configs/type-utils/x-runtime-default.js +2 -0
- package/dist/configs/utils/field.d.ts +1 -0
- package/dist/configs/utils/field.js +95 -0
- package/dist/style/weda-ui.min.css +1 -1
- package/dist/web/components/form/uploader/index.d.ts +1 -0
- package/dist/web/components/form/uploader/index.js +7 -4
- package/dist/web/components/form/uploader/upload/index.d.ts +26 -0
- package/dist/web/components/form/uploader/upload/index.js +200 -0
- package/dist/web/components/form/uploader/uploader.h5.d.ts +6 -1
- package/dist/web/components/form/uploader/uploader.h5.js +26 -94
- package/dist/web/components/form/uploader/uploader.pc.d.ts +1 -1
- package/dist/web/components/form/uploader/uploader.pc.js +30 -100
- package/dist/web/components/form/uploader/util.d.ts +16 -0
- package/dist/web/components/form/uploader/util.js +106 -5
- package/dist/web/components/uploaderView/index.js +1 -1
- package/dist/web/components/wd-ad/wd-ad.js +2 -4
- package/dist/web/components/wd-upload-image/wd-upload-image.js +14 -4
- package/package.json +4 -4
- package/dist/web/components/form/uploader/useUploadFile.d.ts +0 -16
- package/dist/web/components/form/uploader/useUploadFile.js +0 -99
|
@@ -6,6 +6,8 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
6
6
|
adTheme: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
7
7
|
adIntervals: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
8
8
|
gridCount: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<number>>;
|
|
9
|
+
multiton: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
10
|
+
disableFallbackSharePage: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
9
11
|
}>;
|
|
10
12
|
declare const config: {
|
|
11
13
|
readonly $schema: "https://comp-public-replace-1303824488-cos.weda.tencent.com/schema/lcds_component.json";
|
|
@@ -15,6 +17,8 @@ declare const config: {
|
|
|
15
17
|
adTheme: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
16
18
|
adIntervals: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
17
19
|
gridCount: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<number>>;
|
|
20
|
+
multiton: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
21
|
+
disableFallbackSharePage: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
18
22
|
}>;
|
|
19
23
|
readonly classes: readonly [{
|
|
20
24
|
readonly name: "根元素";
|
|
@@ -4,6 +4,7 @@ const AD_TYPE = [
|
|
|
4
4
|
{ label: 'Banner 广告', value: 'banner' },
|
|
5
5
|
{ label: '视频广告', value: 'video' },
|
|
6
6
|
{ label: '格子广告', value: 'grid' },
|
|
7
|
+
{ label: '激励视频广告', value: 'rewardedVideoAd' },
|
|
7
8
|
];
|
|
8
9
|
const AD_THEME = [
|
|
9
10
|
{ label: '白色', value: 'white' },
|
|
@@ -27,6 +28,16 @@ const data = Type.Partial(Type.Object({
|
|
|
27
28
|
target: 'gridCount',
|
|
28
29
|
condition: '{{$self.value === "grid"}}',
|
|
29
30
|
},
|
|
31
|
+
{
|
|
32
|
+
type: 'value:visible',
|
|
33
|
+
target: '*(adTheme,adIntervals)',
|
|
34
|
+
condition: '{{$self.value !== "rewardedVideoAd"}}',
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
type: 'value:visible',
|
|
38
|
+
target: '*(multiton,disableFallbackSharePage)',
|
|
39
|
+
condition: '{{$self.value === "rewardedVideoAd"}}',
|
|
40
|
+
},
|
|
30
41
|
],
|
|
31
42
|
}),
|
|
32
43
|
unitId: Type.String({
|
|
@@ -59,6 +70,18 @@ const data = Type.Partial(Type.Object({
|
|
|
59
70
|
'x-category': '通用',
|
|
60
71
|
'x-index': 50,
|
|
61
72
|
}),
|
|
73
|
+
multiton: Type.Boolean({
|
|
74
|
+
title: '多例模式',
|
|
75
|
+
'x-runtime-default': X_RUNTIME_DEFAULT.multiton,
|
|
76
|
+
'x-category': '通用',
|
|
77
|
+
'x-index': 60,
|
|
78
|
+
}),
|
|
79
|
+
disableFallbackSharePage: Type.Boolean({
|
|
80
|
+
title: '禁用分享页',
|
|
81
|
+
'x-runtime-default': X_RUNTIME_DEFAULT.disableFallbackSharePage,
|
|
82
|
+
'x-category': '通用',
|
|
83
|
+
'x-index': 70,
|
|
84
|
+
}),
|
|
62
85
|
}));
|
|
63
86
|
const config = defineConfig({
|
|
64
87
|
$schema: 'https://comp-public-replace-1303824488-cos.weda.tencent.com/schema/lcds_component.json',
|
|
@@ -33,6 +33,7 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
33
33
|
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
34
34
|
value: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString & {
|
|
35
35
|
title: string;
|
|
36
|
+
default: any;
|
|
36
37
|
}>;
|
|
37
38
|
placeholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString & {
|
|
38
39
|
default: string;
|
|
@@ -74,6 +75,7 @@ declare const config: {
|
|
|
74
75
|
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
75
76
|
value: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString & {
|
|
76
77
|
title: string;
|
|
78
|
+
default: any;
|
|
77
79
|
}>;
|
|
78
80
|
placeholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString & {
|
|
79
81
|
default: string;
|
|
@@ -180,6 +182,10 @@ declare const config: {
|
|
|
180
182
|
props: string[];
|
|
181
183
|
};
|
|
182
184
|
readonly group: {
|
|
185
|
+
模板: {
|
|
186
|
+
'x-index': number;
|
|
187
|
+
expand: boolean;
|
|
188
|
+
};
|
|
183
189
|
标签项: {
|
|
184
190
|
'x-index': number;
|
|
185
191
|
expand: boolean;
|
|
@@ -22,7 +22,7 @@ const TITLE = getFormItemDataTitle('部门');
|
|
|
22
22
|
const data = Type.Partial(Type.Object({
|
|
23
23
|
// 通用
|
|
24
24
|
name: FORM_ITEM_DATA.name,
|
|
25
|
-
value: Object.assign({}, FORM_ITEM_DATA.value, { title: '选中值' }),
|
|
25
|
+
value: Object.assign({}, FORM_ITEM_DATA.value, { title: '选中值', default: null }),
|
|
26
26
|
placeholder: Object.assign({}, FORM_ITEM_DATA.placeholder, {
|
|
27
27
|
default: '请选择部门',
|
|
28
28
|
}),
|