@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
|
@@ -2,12 +2,12 @@ import { Static } from '../type-utils';
|
|
|
2
2
|
import type { Simplify } from 'type-fest';
|
|
3
3
|
declare const data: import("@sinclair/typebox").TObject<{
|
|
4
4
|
/** 通用 */
|
|
5
|
-
name: import("@sinclair/typebox").TString
|
|
5
|
+
name: import("@sinclair/typebox").TString & {
|
|
6
6
|
default: string;
|
|
7
7
|
'x-index': number;
|
|
8
8
|
};
|
|
9
9
|
inputValue: import("@sinclair/typebox").TNumber;
|
|
10
|
-
placeholder: import("@sinclair/typebox").TString
|
|
10
|
+
placeholder: import("@sinclair/typebox").TString & {
|
|
11
11
|
'x-index': number;
|
|
12
12
|
};
|
|
13
13
|
stepOption: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
@@ -18,7 +18,7 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
18
18
|
'x-index': number;
|
|
19
19
|
};
|
|
20
20
|
/** 标题 */
|
|
21
|
-
label: import("@sinclair/typebox").TString
|
|
21
|
+
label: import("@sinclair/typebox").TString & {
|
|
22
22
|
'x-index': number;
|
|
23
23
|
};
|
|
24
24
|
labelVisible: import("@sinclair/typebox").TBoolean & {
|
|
@@ -33,10 +33,10 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
33
33
|
layout: import("@sinclair/typebox").TUnsafe<string> & {
|
|
34
34
|
'x-index': number;
|
|
35
35
|
};
|
|
36
|
-
labelWidth: import("@sinclair/typebox").TString
|
|
36
|
+
labelWidth: import("@sinclair/typebox").TString & {
|
|
37
37
|
'x-index': number;
|
|
38
38
|
};
|
|
39
|
-
labelTips: import("@sinclair/typebox").TString
|
|
39
|
+
labelTips: import("@sinclair/typebox").TString & {
|
|
40
40
|
'x-index': number;
|
|
41
41
|
};
|
|
42
42
|
/** 输入框 */
|
|
@@ -48,11 +48,11 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
48
48
|
'x-index': number;
|
|
49
49
|
default: boolean;
|
|
50
50
|
};
|
|
51
|
-
before: import("@sinclair/typebox").TString
|
|
51
|
+
before: import("@sinclair/typebox").TString & {
|
|
52
52
|
'x-index': number;
|
|
53
53
|
description: string;
|
|
54
54
|
};
|
|
55
|
-
after: import("@sinclair/typebox").TString
|
|
55
|
+
after: import("@sinclair/typebox").TString & {
|
|
56
56
|
'x-index': number;
|
|
57
57
|
description: string;
|
|
58
58
|
};
|
|
@@ -62,7 +62,7 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
62
62
|
prefixIcon: import("@sinclair/typebox").TUnsafe<string> & {
|
|
63
63
|
'x-index': number;
|
|
64
64
|
};
|
|
65
|
-
prefixSrc: import("@sinclair/typebox").TString
|
|
65
|
+
prefixSrc: import("@sinclair/typebox").TString & {
|
|
66
66
|
'x-index': number;
|
|
67
67
|
};
|
|
68
68
|
suffixType: import("@sinclair/typebox").TUnsafe<string> & {
|
|
@@ -71,10 +71,10 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
71
71
|
suffixIcon: import("@sinclair/typebox").TUnsafe<string> & {
|
|
72
72
|
'x-index': number;
|
|
73
73
|
};
|
|
74
|
-
suffixSrc: import("@sinclair/typebox").TString
|
|
74
|
+
suffixSrc: import("@sinclair/typebox").TString & {
|
|
75
75
|
'x-index': number;
|
|
76
76
|
};
|
|
77
|
-
extra: import("@sinclair/typebox").TString
|
|
77
|
+
extra: import("@sinclair/typebox").TString & {
|
|
78
78
|
'x-index': number;
|
|
79
79
|
};
|
|
80
80
|
focus: import("@sinclair/typebox").TBoolean & {
|
|
@@ -98,7 +98,7 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
98
98
|
requiredFlag: import("@sinclair/typebox").TBoolean & {
|
|
99
99
|
'x-index': number;
|
|
100
100
|
};
|
|
101
|
-
requiredMsg: import("@sinclair/typebox").TString
|
|
101
|
+
requiredMsg: import("@sinclair/typebox").TString & {
|
|
102
102
|
'x-index': number;
|
|
103
103
|
};
|
|
104
104
|
}>;
|
|
@@ -106,12 +106,12 @@ declare const config: {
|
|
|
106
106
|
readonly $schema: "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json";
|
|
107
107
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
108
108
|
/** 通用 */
|
|
109
|
-
name: import("@sinclair/typebox").TString
|
|
109
|
+
name: import("@sinclair/typebox").TString & {
|
|
110
110
|
default: string;
|
|
111
111
|
'x-index': number;
|
|
112
112
|
};
|
|
113
113
|
inputValue: import("@sinclair/typebox").TNumber;
|
|
114
|
-
placeholder: import("@sinclair/typebox").TString
|
|
114
|
+
placeholder: import("@sinclair/typebox").TString & {
|
|
115
115
|
'x-index': number;
|
|
116
116
|
};
|
|
117
117
|
stepOption: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
@@ -122,7 +122,7 @@ declare const config: {
|
|
|
122
122
|
'x-index': number;
|
|
123
123
|
};
|
|
124
124
|
/** 标题 */
|
|
125
|
-
label: import("@sinclair/typebox").TString
|
|
125
|
+
label: import("@sinclair/typebox").TString & {
|
|
126
126
|
'x-index': number;
|
|
127
127
|
};
|
|
128
128
|
labelVisible: import("@sinclair/typebox").TBoolean & {
|
|
@@ -137,10 +137,10 @@ declare const config: {
|
|
|
137
137
|
layout: import("@sinclair/typebox").TUnsafe<string> & {
|
|
138
138
|
'x-index': number;
|
|
139
139
|
};
|
|
140
|
-
labelWidth: import("@sinclair/typebox").TString
|
|
140
|
+
labelWidth: import("@sinclair/typebox").TString & {
|
|
141
141
|
'x-index': number;
|
|
142
142
|
};
|
|
143
|
-
labelTips: import("@sinclair/typebox").TString
|
|
143
|
+
labelTips: import("@sinclair/typebox").TString & {
|
|
144
144
|
'x-index': number;
|
|
145
145
|
};
|
|
146
146
|
/** 输入框 */
|
|
@@ -152,11 +152,11 @@ declare const config: {
|
|
|
152
152
|
'x-index': number;
|
|
153
153
|
default: boolean;
|
|
154
154
|
};
|
|
155
|
-
before: import("@sinclair/typebox").TString
|
|
155
|
+
before: import("@sinclair/typebox").TString & {
|
|
156
156
|
'x-index': number;
|
|
157
157
|
description: string;
|
|
158
158
|
};
|
|
159
|
-
after: import("@sinclair/typebox").TString
|
|
159
|
+
after: import("@sinclair/typebox").TString & {
|
|
160
160
|
'x-index': number;
|
|
161
161
|
description: string;
|
|
162
162
|
};
|
|
@@ -166,7 +166,7 @@ declare const config: {
|
|
|
166
166
|
prefixIcon: import("@sinclair/typebox").TUnsafe<string> & {
|
|
167
167
|
'x-index': number;
|
|
168
168
|
};
|
|
169
|
-
prefixSrc: import("@sinclair/typebox").TString
|
|
169
|
+
prefixSrc: import("@sinclair/typebox").TString & {
|
|
170
170
|
'x-index': number;
|
|
171
171
|
};
|
|
172
172
|
suffixType: import("@sinclair/typebox").TUnsafe<string> & {
|
|
@@ -175,10 +175,10 @@ declare const config: {
|
|
|
175
175
|
suffixIcon: import("@sinclair/typebox").TUnsafe<string> & {
|
|
176
176
|
'x-index': number;
|
|
177
177
|
};
|
|
178
|
-
suffixSrc: import("@sinclair/typebox").TString
|
|
178
|
+
suffixSrc: import("@sinclair/typebox").TString & {
|
|
179
179
|
'x-index': number;
|
|
180
180
|
};
|
|
181
|
-
extra: import("@sinclair/typebox").TString
|
|
181
|
+
extra: import("@sinclair/typebox").TString & {
|
|
182
182
|
'x-index': number;
|
|
183
183
|
};
|
|
184
184
|
focus: import("@sinclair/typebox").TBoolean & {
|
|
@@ -202,166 +202,25 @@ declare const config: {
|
|
|
202
202
|
requiredFlag: import("@sinclair/typebox").TBoolean & {
|
|
203
203
|
'x-index': number;
|
|
204
204
|
};
|
|
205
|
-
requiredMsg: import("@sinclair/typebox").TString
|
|
205
|
+
requiredMsg: import("@sinclair/typebox").TString & {
|
|
206
206
|
'x-index': number;
|
|
207
207
|
};
|
|
208
208
|
}>;
|
|
209
|
-
readonly properties: import("@sinclair/typebox").
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
dateFormat: import("@sinclair/typebox").TUnsafe<string>;
|
|
214
|
-
value: 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">;
|
|
215
|
-
_valueInDate: import("@sinclair/typebox").TAny;
|
|
216
|
-
_valueInTime: import("@sinclair/typebox").TAny;
|
|
217
|
-
start: import("@sinclair/typebox").TAny;
|
|
218
|
-
end: import("@sinclair/typebox").TAny;
|
|
219
|
-
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">;
|
|
220
|
-
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">;
|
|
221
|
-
size: import("@sinclair/typebox").TUnsafe<string>;
|
|
222
|
-
block: import("@sinclair/typebox").TBoolean;
|
|
223
|
-
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">;
|
|
224
|
-
labelVisible: import("@sinclair/typebox").TBoolean;
|
|
225
|
-
labelAlign: import("@sinclair/typebox").TUnsafe<string>;
|
|
226
|
-
labelWrap: import("@sinclair/typebox").TBoolean;
|
|
227
|
-
layout: import("@sinclair/typebox").TUnsafe<string>;
|
|
228
|
-
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">;
|
|
229
|
-
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">;
|
|
230
|
-
clearable: import("@sinclair/typebox").TBoolean;
|
|
231
|
-
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">;
|
|
232
|
-
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">;
|
|
233
|
-
isUnionValue: import("@sinclair/typebox").TBoolean;
|
|
234
|
-
prefixType: import("@sinclair/typebox").TUnsafe<string>;
|
|
235
|
-
prefixIcon: import("@sinclair/typebox").TUnsafe<string>;
|
|
236
|
-
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">;
|
|
237
|
-
suffixType: import("@sinclair/typebox").TUnsafe<string>;
|
|
238
|
-
suffixIcon: import("@sinclair/typebox").TUnsafe<string>;
|
|
239
|
-
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">;
|
|
240
|
-
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">;
|
|
241
|
-
password: import("@sinclair/typebox").TBoolean;
|
|
242
|
-
type: import("@sinclair/typebox").TUnsafe<string>;
|
|
243
|
-
counterVisible: import("@sinclair/typebox").TBoolean;
|
|
244
|
-
focus: import("@sinclair/typebox").TBoolean;
|
|
245
|
-
borderedH5: import("@sinclair/typebox").TBoolean;
|
|
246
|
-
borderedPc: import("@sinclair/typebox").TBoolean;
|
|
247
|
-
isNickNameType: import("@sinclair/typebox").TBoolean;
|
|
248
|
-
maxLength: import("@sinclair/typebox").TNumber;
|
|
249
|
-
rules: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
250
|
-
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">;
|
|
251
|
-
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">;
|
|
252
|
-
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">>;
|
|
253
|
-
}>>;
|
|
254
|
-
validateStatus: import("@sinclair/typebox").TUnsafe<string>;
|
|
255
|
-
status: import("@sinclair/typebox").TUnsafe<string>;
|
|
256
|
-
required: import("@sinclair/typebox").TBoolean;
|
|
257
|
-
requiredFlag: import("@sinclair/typebox").TBoolean;
|
|
258
|
-
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">;
|
|
259
|
-
visible: import("@sinclair/typebox").TBoolean;
|
|
260
|
-
disabled: import("@sinclair/typebox").TBoolean;
|
|
261
|
-
readOnly: import("@sinclair/typebox").TBoolean;
|
|
262
|
-
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">;
|
|
263
|
-
}>>, ["name", "label", "required", "before", "after", "visible", "disabled", "readOnly", "value"]>, import("@sinclair/typebox").TPick<import("@sinclair/typebox").TObject<{
|
|
264
|
-
/** 通用 */
|
|
265
|
-
name: 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"> & {
|
|
266
|
-
default: string;
|
|
267
|
-
'x-index': number;
|
|
268
|
-
};
|
|
269
|
-
inputValue: import("@sinclair/typebox").TNumber;
|
|
270
|
-
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"> & {
|
|
271
|
-
'x-index': number;
|
|
272
|
-
};
|
|
273
|
-
stepOption: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
274
|
-
size: import("@sinclair/typebox").TUnsafe<string> & {
|
|
275
|
-
'x-index': number;
|
|
276
|
-
};
|
|
277
|
-
block: import("@sinclair/typebox").TBoolean & {
|
|
278
|
-
'x-index': number;
|
|
279
|
-
};
|
|
280
|
-
/** 标题 */
|
|
281
|
-
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"> & {
|
|
282
|
-
'x-index': number;
|
|
283
|
-
};
|
|
284
|
-
labelVisible: import("@sinclair/typebox").TBoolean & {
|
|
285
|
-
'x-index': number;
|
|
286
|
-
};
|
|
287
|
-
labelAlign: import("@sinclair/typebox").TUnsafe<string> & {
|
|
288
|
-
'x-index': number;
|
|
289
|
-
};
|
|
290
|
-
labelWrap: import("@sinclair/typebox").TBoolean & {
|
|
291
|
-
'x-index': number;
|
|
292
|
-
};
|
|
293
|
-
layout: import("@sinclair/typebox").TUnsafe<string> & {
|
|
294
|
-
'x-index': number;
|
|
295
|
-
};
|
|
296
|
-
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"> & {
|
|
297
|
-
'x-index': number;
|
|
298
|
-
};
|
|
299
|
-
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"> & {
|
|
300
|
-
'x-index': number;
|
|
301
|
-
};
|
|
302
|
-
/** 输入框 */
|
|
209
|
+
readonly properties: import("@sinclair/typebox").TObject<{
|
|
210
|
+
value: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
211
|
+
label: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
212
|
+
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
303
213
|
format: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
'x-index': number;
|
|
309
|
-
default: boolean;
|
|
310
|
-
};
|
|
311
|
-
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"> & {
|
|
312
|
-
'x-index': number;
|
|
313
|
-
description: string;
|
|
314
|
-
};
|
|
315
|
-
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"> & {
|
|
316
|
-
'x-index': number;
|
|
317
|
-
description: string;
|
|
318
|
-
};
|
|
319
|
-
prefixType: import("@sinclair/typebox").TUnsafe<string> & {
|
|
320
|
-
'x-index': number;
|
|
321
|
-
};
|
|
322
|
-
prefixIcon: import("@sinclair/typebox").TUnsafe<string> & {
|
|
323
|
-
'x-index': number;
|
|
324
|
-
};
|
|
325
|
-
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"> & {
|
|
326
|
-
'x-index': number;
|
|
327
|
-
};
|
|
328
|
-
suffixType: import("@sinclair/typebox").TUnsafe<string> & {
|
|
329
|
-
'x-index': number;
|
|
330
|
-
};
|
|
331
|
-
suffixIcon: import("@sinclair/typebox").TUnsafe<string> & {
|
|
332
|
-
'x-index': number;
|
|
333
|
-
};
|
|
334
|
-
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"> & {
|
|
335
|
-
'x-index': number;
|
|
336
|
-
};
|
|
337
|
-
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"> & {
|
|
338
|
-
'x-index': number;
|
|
339
|
-
};
|
|
340
|
-
focus: import("@sinclair/typebox").TBoolean & {
|
|
341
|
-
'x-index': number;
|
|
342
|
-
};
|
|
343
|
-
borderedH5: import("@sinclair/typebox").TBoolean & {
|
|
344
|
-
'x-index': number;
|
|
345
|
-
};
|
|
346
|
-
borderedPc: import("@sinclair/typebox").TBoolean & {
|
|
347
|
-
'x-index': number;
|
|
348
|
-
};
|
|
349
|
-
/** 状态/校验 */
|
|
214
|
+
required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
215
|
+
disabled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
216
|
+
visible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
217
|
+
after: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
350
218
|
min: import("@sinclair/typebox").TNumber;
|
|
351
219
|
max: import("@sinclair/typebox").TNumber;
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
'x-index': number;
|
|
357
|
-
};
|
|
358
|
-
requiredFlag: import("@sinclair/typebox").TBoolean & {
|
|
359
|
-
'x-index': number;
|
|
360
|
-
};
|
|
361
|
-
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"> & {
|
|
362
|
-
'x-index': number;
|
|
363
|
-
};
|
|
364
|
-
}>, ["min", "max", "step", "format"]>]>;
|
|
220
|
+
readOnly: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
221
|
+
step: import("@sinclair/typebox").TNumber;
|
|
222
|
+
before: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
223
|
+
}>;
|
|
365
224
|
readonly classes: {
|
|
366
225
|
name: string;
|
|
367
226
|
selector: string;
|
|
@@ -442,7 +301,7 @@ declare const config: {
|
|
|
442
301
|
readonly name: "change";
|
|
443
302
|
readonly title: "值改变";
|
|
444
303
|
readonly detail: import("@sinclair/typebox").TObject<{
|
|
445
|
-
value: import("@sinclair/typebox").TString
|
|
304
|
+
value: import("@sinclair/typebox").TString;
|
|
446
305
|
}>;
|
|
447
306
|
} & {
|
|
448
307
|
detail: {
|
|
@@ -452,7 +311,7 @@ declare const config: {
|
|
|
452
311
|
readonly name: "focus";
|
|
453
312
|
readonly title: "聚焦";
|
|
454
313
|
readonly detail: import("@sinclair/typebox").TObject<{
|
|
455
|
-
value: import("@sinclair/typebox").TString
|
|
314
|
+
value: import("@sinclair/typebox").TString;
|
|
456
315
|
}>;
|
|
457
316
|
} & {
|
|
458
317
|
detail: {
|
|
@@ -462,7 +321,7 @@ declare const config: {
|
|
|
462
321
|
readonly name: "blur";
|
|
463
322
|
readonly title: "失焦";
|
|
464
323
|
readonly detail: import("@sinclair/typebox").TObject<{
|
|
465
|
-
value: import("@sinclair/typebox").TString
|
|
324
|
+
value: import("@sinclair/typebox").TString;
|
|
466
325
|
}>;
|
|
467
326
|
} & {
|
|
468
327
|
detail: {
|
|
@@ -472,7 +331,7 @@ declare const config: {
|
|
|
472
331
|
readonly name: "clear";
|
|
473
332
|
readonly title: "清除内容";
|
|
474
333
|
readonly detail: import("@sinclair/typebox").TObject<{
|
|
475
|
-
originValue: import("@sinclair/typebox").TString
|
|
334
|
+
originValue: import("@sinclair/typebox").TString;
|
|
476
335
|
}>;
|
|
477
336
|
} & {
|
|
478
337
|
detail: {
|
|
@@ -121,7 +121,7 @@ const data = Type.Object({
|
|
|
121
121
|
}),
|
|
122
122
|
});
|
|
123
123
|
const classes = getFormItemClasses('input-number');
|
|
124
|
-
const properties = Type.
|
|
124
|
+
const properties = Type.Composite([
|
|
125
125
|
Object.assign({}, wdInputConfig.properties),
|
|
126
126
|
Type.Pick(data, ['min', 'max', 'step', 'format']),
|
|
127
127
|
]);
|