@cloudbase/weda-ui 3.30.1 → 3.31.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/README.md +77 -0
- package/dist/configs/components/button.d.ts +5 -4
- package/dist/configs/components/calendar.d.ts +1 -1
- package/dist/configs/components/chart/bar.d.ts +1 -1
- package/dist/configs/components/chart/line.d.ts +1 -1
- package/dist/configs/components/chart/pie.d.ts +1 -1
- package/dist/configs/components/chart/statisticsCard.d.ts +2 -2
- package/dist/configs/components/form-date.d.ts +2 -2
- package/dist/configs/components/form-depart-tree-select.d.ts +2 -2
- package/dist/configs/components/form-email.d.ts +2 -2
- package/dist/configs/components/form-image-uploader.d.ts +2 -2
- package/dist/configs/components/form-input.d.ts +4 -4
- package/dist/configs/components/form-location.d.ts +6 -6
- package/dist/configs/components/form-multi-region.d.ts +2 -2
- package/dist/configs/components/form-phone.d.ts +2 -2
- package/dist/configs/components/form-region.d.ts +2 -2
- package/dist/configs/components/form-select-multiple.d.ts +2 -2
- package/dist/configs/components/form-select.d.ts +2 -2
- package/dist/configs/components/form-text-area.d.ts +2 -2
- package/dist/configs/components/form-time.d.ts +2 -2
- package/dist/configs/components/form-url.d.ts +2 -2
- package/dist/configs/components/form-user-tree-select.d.ts +2 -2
- package/dist/configs/components/grid/col.d.ts +6 -6
- package/dist/configs/components/grid/row.d.ts +4 -4
- package/dist/configs/components/image.d.ts +4 -4
- package/dist/configs/components/link.d.ts +1 -0
- package/dist/configs/components/modal.d.ts +1 -0
- package/dist/configs/components/qr_code.d.ts +1 -1
- package/dist/configs/components/swiper.d.ts +2 -0
- package/dist/configs/components/swiper.js +25 -6
- package/dist/configs/components/tabs.d.ts +1 -0
- package/dist/configs/components/wd-bubble.d.ts +7 -6
- package/dist/configs/components/wd-button.d.ts +1 -1
- package/dist/configs/components/wd-calendar.d.ts +1 -1
- package/dist/configs/components/wd-canvas.d.ts +1 -1
- package/dist/configs/components/wd-card.d.ts +1 -0
- package/dist/configs/components/wd-cascader.d.ts +9 -9
- package/dist/configs/components/wd-checkbox.d.ts +3 -3
- package/dist/configs/components/wd-code-editor.d.ts +3 -3
- package/dist/configs/components/wd-date-range.d.ts +8 -8
- package/dist/configs/components/wd-date.d.ts +8 -8
- package/dist/configs/components/wd-department.d.ts +11 -11
- package/dist/configs/components/wd-drawer.d.ts +1 -0
- package/dist/configs/components/wd-form-arr.d.ts +3 -3
- package/dist/configs/components/wd-form-detail.d.ts +2 -2
- package/dist/configs/components/wd-form-obj.d.ts +3 -3
- package/dist/configs/components/wd-form.d.ts +7 -6
- package/dist/configs/components/wd-icon.d.ts +2 -2
- package/dist/configs/components/wd-image.d.ts +4 -4
- package/dist/configs/components/wd-input-email.d.ts +35 -35
- package/dist/configs/components/wd-input-number.d.ts +10 -10
- package/dist/configs/components/wd-input-phone.d.ts +37 -35
- package/dist/configs/components/wd-input-phone.js +22 -3
- package/dist/configs/components/wd-input-url.d.ts +35 -35
- package/dist/configs/components/wd-input.d.ts +5 -5
- package/dist/configs/components/wd-layout.d.ts +1 -0
- package/dist/configs/components/wd-link.d.ts +1 -0
- package/dist/configs/components/wd-location.d.ts +5 -5
- package/dist/configs/components/wd-member.d.ts +13 -13
- package/dist/configs/components/wd-menu-layout.d.ts +7 -6
- package/dist/configs/components/wd-modal.d.ts +1 -0
- package/dist/configs/components/wd-progress.d.ts +7 -6
- package/dist/configs/components/wd-radio.d.ts +3 -3
- package/dist/configs/components/wd-rating.d.ts +6 -6
- package/dist/configs/components/wd-region.d.ts +9 -9
- package/dist/configs/components/wd-rich-text.d.ts +3 -3
- package/dist/configs/components/wd-select-multiple.d.ts +10 -10
- package/dist/configs/components/wd-select.d.ts +9 -9
- package/dist/configs/components/wd-side-tab.d.ts +2 -1
- package/dist/configs/components/wd-switch.d.ts +6 -6
- package/dist/configs/components/wd-table.d.ts +10 -9
- package/dist/configs/components/wd-tag-select.d.ts +7 -7
- package/dist/configs/components/wd-text.d.ts +3 -3
- package/dist/configs/components/wd-textarea.d.ts +3 -3
- package/dist/configs/components/wd-time.d.ts +8 -8
- package/dist/configs/components/wd-top-tab.d.ts +2 -1
- package/dist/configs/components/wd-tree.d.ts +1 -0
- package/dist/configs/components/wd-upload-file.d.ts +5 -5
- package/dist/configs/components/wd-upload-image.d.ts +13 -13
- package/dist/configs/components/wedaVideo.d.ts +2 -2
- package/dist/configs/components/wxOpenApi/phone.d.ts +2 -2
- package/dist/configs/components/wxOpenApi/phoneCode.d.ts +1 -1
- package/dist/configs/components/wxOpenApi/share.d.ts +2 -2
- package/dist/configs/components/wxOpenApi/userInfo.d.ts +4 -4
- package/dist/configs/index.d.ts +533 -528
- package/dist/configs/type-utils/index.d.ts +1 -1
- package/dist/style/index.css +4 -0
- package/dist/style/index.scss +1 -1
- package/dist/style/weda-ui.min.css +3 -3
- package/dist/web/components/chart/common/chart-custom-connector.d.ts +1 -0
- package/dist/web/components/flow/common/hooks/useFlowConfig.d.ts +1 -0
- package/dist/web/components/flow/modules/basic/Basic.d.ts +1 -0
- package/dist/web/components/flow/modules/basic/BasicMobile.d.ts +1 -0
- package/dist/web/components/flow/modules/combination/index.d.ts +1 -0
- package/dist/web/components/flow/modules/operations/control.d.ts +1 -0
- package/dist/web/components/flow/modules/operations/controls-items/approval-drawer/drawer-form/index.d.ts +1 -0
- package/dist/web/components/flow/modules/operations/controls-items/flow-task-info-modal/view-model.d.ts +1 -0
- package/dist/web/components/flow/modules/operations/controls-items/flow-task-info-modal.d.ts +1 -0
- package/dist/web/components/flow/modules/operations/controls-items/index.d.ts +1 -0
- package/dist/web/components/flow/modules/operations/view-model.d.ts +1 -0
- package/dist/web/components/flow/process/constants.d.ts +3 -3
- package/dist/web/components/form/enumSelect/NormalSelect.d.ts +1 -0
- package/dist/web/components/form/location/common/useLocationInfo.d.ts +1 -0
- package/dist/web/components/form/select/h5.d.ts +1 -1
- package/dist/web/components/form/userOrgSelect/component/depart-breadcrumb.d.ts +1 -0
- package/dist/web/components/form/userOrgSelect/component/depart-select/org-modal-pc.d.ts +1 -0
- package/dist/web/components/form/userOrgSelect/component/error-tips.d.ts +1 -0
- package/dist/web/components/form/userOrgSelect/component/input-tags.d.ts +1 -0
- package/dist/web/components/form/userOrgSelect/component/modal-search-h5.d.ts +1 -0
- package/dist/web/components/form/userOrgSelect/component/modal-search.d.ts +1 -0
- package/dist/web/components/form/userOrgSelect/component/modal-select-h5.d.ts +1 -0
- package/dist/web/components/form/userOrgSelect/component/org-tree-h5.d.ts +1 -0
- package/dist/web/components/form/userOrgSelect/component/org-tree.d.ts +1 -0
- package/dist/web/components/form/userOrgSelect/component/selected-list-h5.d.ts +1 -0
- package/dist/web/components/form/userOrgSelect/component/selected-list.d.ts +1 -0
- package/dist/web/components/form/userOrgSelect/component/user-org-list.d.ts +1 -0
- package/dist/web/components/form/userOrgSelect/component/user-select-h5/user-list-h5.d.ts +1 -0
- package/dist/web/components/form/userOrgSelect/component/user-select-pc/error-tips.d.ts +1 -0
- package/dist/web/components/form/userOrgSelect/component/user-select-pc/model-user-list.d.ts +1 -0
- package/dist/web/components/form/userOrgSelect/component/user-select-pc/org-tree.d.ts +1 -0
- package/dist/web/components/form/userOrgSelect/component/user-select-pc/user-model.d.ts +1 -0
- package/dist/web/components/form-date/index.d.ts +9 -9
- package/dist/web/components/form-depart-tree-select/index.d.ts +9 -9
- package/dist/web/components/form-email/index.d.ts +7 -7
- package/dist/web/components/form-image-uploader/index.d.ts +9 -9
- package/dist/web/components/form-input/index.d.ts +14 -14
- package/dist/web/components/form-input-hooks/index.d.ts +1 -1
- package/dist/web/components/form-location/index.d.ts +13 -13
- package/dist/web/components/form-multi-region/index.d.ts +7 -7
- package/dist/web/components/form-phone/index.d.ts +7 -7
- package/dist/web/components/form-radio/index.d.ts +7 -7
- package/dist/web/components/form-region/index.d.ts +7 -7
- package/dist/web/components/form-rich-text/index.d.ts +5 -5
- package/dist/web/components/form-select/index.d.ts +12 -12
- package/dist/web/components/form-select-multiple/index.d.ts +11 -11
- package/dist/web/components/form-switch/index.d.ts +4 -4
- package/dist/web/components/form-text-area/index.d.ts +8 -8
- package/dist/web/components/form-time/index.d.ts +8 -8
- package/dist/web/components/form-upload-file/index.d.ts +10 -10
- package/dist/web/components/form-url/index.d.ts +7 -7
- package/dist/web/components/form-user-tree-select/index.d.ts +10 -10
- package/dist/web/components/grid/col.d.ts +2 -2
- package/dist/web/components/grid/row.d.ts +1 -1
- package/dist/web/components/lottery/index.d.ts +2 -2
- package/dist/web/components/pageLayout/PageContent/index.d.ts +1 -0
- package/dist/web/components/phone/index.d.ts +1 -0
- package/dist/web/components/phoneCode/index.d.ts +1 -0
- package/dist/web/components/share/index.d.ts +1 -0
- package/dist/web/components/swiper/index.d.ts +1 -1
- package/dist/web/components/swiper/index.js +35 -16
- package/dist/web/components/table/BaseTable.d.ts +1 -0
- package/dist/web/components/table/FieldRender.d.ts +2 -1
- package/dist/web/components/table/FilterFields.d.ts +1 -0
- package/dist/web/components/table/Form/Enum.d.ts +1 -0
- package/dist/web/components/table/Form/Location.d.ts +1 -0
- package/dist/web/components/table/QuoteModal.d.ts +1 -0
- package/dist/web/components/table/UserDepartment/ViewCell.d.ts +1 -0
- package/dist/web/components/table/UserDepartment/utils.d.ts +1 -0
- package/dist/web/components/userInfo/index.d.ts +1 -0
- package/dist/web/components/wd-calendar/MonthSelect.d.ts +1 -0
- package/dist/web/components/wd-code-editor/lang/index.d.ts +1 -1
- package/dist/web/components/wd-config-provider/wd-config-context.d.ts +1 -1
- package/dist/web/components/wd-date/elements/interface.d.ts +1 -1
- package/dist/web/components/wd-department/_design/wd-department-select.d.ts +1 -0
- package/dist/web/components/wd-form/hooks/use-remote-value.js +39 -8
- package/dist/web/components/wd-form/wd-form.d.ts +1 -0
- package/dist/web/components/wd-form-cell/wd-form-cell.d.ts +1 -0
- package/dist/web/components/wd-form-item/wd-input-group.d.ts +1 -0
- package/dist/web/components/wd-form-item/wd-input-wrap.d.ts +1 -0
- package/dist/web/components/wd-image/ImagePreview.d.ts +1 -0
- package/dist/web/components/wd-input/wd-input.d.ts +23 -23
- package/dist/web/components/wd-input-email/wd-input-email.d.ts +15 -15
- package/dist/web/components/wd-input-group/wd-input-group.d.ts +1 -0
- package/dist/web/components/wd-input-phone/wd-input-phone.d.ts +23 -23
- package/dist/web/components/wd-input-phone/wd-input-phone.js +1 -1
- package/dist/web/components/wd-input-url/wd-input-url.d.ts +15 -15
- package/dist/web/components/wd-layout/wd-layout.d.ts +1 -0
- package/dist/web/components/wd-location/_design/wd-location.d.ts +1 -0
- package/dist/web/components/wd-member/_design/wd-member-select.d.ts +1 -0
- package/dist/web/components/wd-radio/wd-radio.d.ts +1 -0
- package/dist/web/components/wd-region/_design/wd-region.d.ts +1 -0
- package/dist/web/components/wd-retry/wd-retry.d.ts +1 -0
- package/dist/web/components/wd-select/_design/wd-select.d.ts +1 -0
- package/dist/web/components/wd-select/hooks/useChooseList.d.ts +1 -1
- package/dist/web/components/wd-select/relationSelect/relationalSetting.d.ts +1 -0
- package/dist/web/components/wd-table/components/ExportFileModalByApi/index.d.ts +1 -0
- package/dist/web/components/wd-table/components/FieldRender/Form/Enum.d.ts +1 -0
- package/dist/web/components/wd-table/components/FieldRender/Form/Location.d.ts +1 -0
- package/dist/web/components/wd-table/components/FieldRender/ImagePreview.d.ts +1 -0
- package/dist/web/components/wd-table/components/FieldRender/QuoteModal.d.ts +1 -0
- package/dist/web/components/wd-table/components/FieldRender/UserDepartment/ViewCell.d.ts +1 -0
- package/dist/web/components/wd-table/components/FieldRender/UserDepartment/utils.d.ts +1 -0
- package/dist/web/components/wd-table/components/FieldRender/index.d.ts +3 -2
- package/dist/web/components/wd-table/components/FieldRender/index.js +6 -5
- package/dist/web/components/wd-table/components/FilterFieldsPanel/Fields.d.ts +1 -0
- package/dist/web/components/wd-table/components/FilterFieldsPanel/FilterFieldItem.d.ts +1 -0
- package/dist/web/components/wd-table/components/FilterFieldsPanel/InputAdornment.d.ts +1 -0
- package/dist/web/components/wd-table/components/FilterFieldsPanel/SelectSearch.d.ts +1 -0
- package/dist/web/components/wd-table/components/FilterFieldsPanel/filterFieldsGenerate.js +24 -1
- package/dist/web/components/wd-table/components/FilterFieldsPanel/index.js +187 -181
- package/dist/web/components/wd-table/components/ImportFileModalByApi/index.d.ts +1 -0
- package/dist/web/components/wd-table/components/InOrOutRecordModal.d.ts +1 -0
- package/dist/web/components/wd-table/components/Pagination/index.d.ts +1 -0
- package/dist/web/components/wd-table/components/SearchBox/index.d.ts +1 -0
- package/dist/web/components/wd-table/hooks/useAuthFields.d.ts +1 -0
- package/dist/web/components/wd-table/hooks/useAuthFields.js +12 -4
- package/dist/web/components/wd-table/hooks/useTableData.js +4 -4
- package/dist/web/components/wd-table/wd-table.js +3 -1
- package/dist/web/components/wd-tabs/tabs-h5.d.ts +1 -0
- package/dist/web/components/wd-tabs/tabs-pc.d.ts +1 -0
- package/dist/web/components/wd-tabs/tabs.d.ts +1 -0
- package/dist/web/components/wd-tag/_design.d.ts +1 -0
- package/dist/web/components/wd-tree/utils.d.ts +19 -19
- package/dist/web/components/wd-upload-file/_design/wd-upload-file.d.ts +1 -0
- package/dist/web/components/wd-upload-image/_design/wd-upload-image.d.ts +1 -0
- package/dist/web/utils/config-context/use-config.d.ts +1 -1
- package/dist/web/utils/datasource.d.ts +1 -0
- package/dist/web/utils/datasource.js +13 -25
- package/dist/web/utils/getPageQuery.d.ts +1 -0
- package/dist/web/utils/i18n/locale/en_US.d.ts +1 -0
- package/dist/web/utils/i18n/locale/zh_CN.d.ts +1 -0
- package/package.json +6 -4
|
@@ -5,20 +5,31 @@ import type { DataType, EventsType } from '../../../configs/components/wd-input'
|
|
|
5
5
|
* 标准化:单行输入组件
|
|
6
6
|
*/
|
|
7
7
|
export declare const WdInput: React.ForwardRefExoticComponent<CommonPropsType & {
|
|
8
|
-
|
|
9
|
-
type?: string;
|
|
8
|
+
size?: string;
|
|
10
9
|
label?: string;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
required?: boolean;
|
|
10
|
+
type?: string;
|
|
11
|
+
name?: string;
|
|
14
12
|
extra?: string;
|
|
15
|
-
|
|
13
|
+
required?: boolean;
|
|
16
14
|
maxLength?: number;
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
template?: string;
|
|
16
|
+
clearable?: boolean;
|
|
17
|
+
labelVisible?: boolean;
|
|
18
|
+
requiredFlag?: boolean;
|
|
19
|
+
requiredMsg?: string;
|
|
19
20
|
layout?: string;
|
|
20
|
-
|
|
21
|
+
placeholder?: string;
|
|
22
|
+
focus?: boolean;
|
|
23
|
+
password?: boolean;
|
|
24
|
+
rules?: {
|
|
25
|
+
format: string;
|
|
26
|
+
pattern: string;
|
|
27
|
+
message: string;
|
|
28
|
+
}[];
|
|
29
|
+
isNickNameType?: boolean;
|
|
30
|
+
counterVisible?: boolean;
|
|
21
31
|
before?: string;
|
|
32
|
+
after?: string;
|
|
22
33
|
prefixType?: string;
|
|
23
34
|
prefixIcon?: string;
|
|
24
35
|
prefixSrc?: string;
|
|
@@ -26,26 +37,15 @@ export declare const WdInput: React.ForwardRefExoticComponent<CommonPropsType &
|
|
|
26
37
|
suffixIcon?: string;
|
|
27
38
|
suffixSrc?: string;
|
|
28
39
|
labelWidth?: string;
|
|
29
|
-
|
|
40
|
+
borderedH5?: boolean;
|
|
41
|
+
borderedPc?: boolean;
|
|
30
42
|
inputValue?: string;
|
|
31
|
-
labelVisible?: boolean;
|
|
32
43
|
labelAlign?: string;
|
|
33
44
|
labelWrap?: boolean;
|
|
34
45
|
labelTips?: string;
|
|
35
|
-
isNickNameType?: boolean;
|
|
36
46
|
cursorSpacing?: number;
|
|
37
47
|
isUnionValue?: boolean;
|
|
38
|
-
|
|
39
|
-
counterVisible?: boolean;
|
|
40
|
-
borderedH5?: boolean;
|
|
41
|
-
borderedPc?: boolean;
|
|
42
|
-
rules?: {
|
|
43
|
-
message: string;
|
|
44
|
-
pattern: string;
|
|
45
|
-
format: string;
|
|
46
|
-
}[];
|
|
47
|
-
requiredFlag?: boolean;
|
|
48
|
-
requiredMsg?: string;
|
|
48
|
+
status?: string;
|
|
49
49
|
isConvert?: boolean;
|
|
50
50
|
} & {
|
|
51
51
|
events: {
|
|
@@ -5,19 +5,23 @@ import type { DataType, EventsType } from '../../../configs/components/wd-input-
|
|
|
5
5
|
* 标准化:邮箱输入组件
|
|
6
6
|
*/
|
|
7
7
|
export declare const WdInputEmail: React.ForwardRefExoticComponent<CommonPropsType & {
|
|
8
|
-
|
|
8
|
+
size?: string;
|
|
9
9
|
label?: string;
|
|
10
|
-
|
|
11
|
-
focus?: boolean;
|
|
12
|
-
required?: boolean;
|
|
10
|
+
name?: string;
|
|
13
11
|
extra?: string;
|
|
14
|
-
|
|
12
|
+
required?: boolean;
|
|
15
13
|
maxLength?: number;
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
template?: string;
|
|
15
|
+
clearable?: boolean;
|
|
16
|
+
labelVisible?: boolean;
|
|
17
|
+
requiredFlag?: boolean;
|
|
18
|
+
requiredMsg?: string;
|
|
18
19
|
layout?: string;
|
|
19
|
-
|
|
20
|
+
placeholder?: string;
|
|
21
|
+
focus?: boolean;
|
|
22
|
+
counterVisible?: boolean;
|
|
20
23
|
before?: string;
|
|
24
|
+
after?: string;
|
|
21
25
|
prefixType?: string;
|
|
22
26
|
prefixIcon?: string;
|
|
23
27
|
prefixSrc?: string;
|
|
@@ -25,19 +29,15 @@ export declare const WdInputEmail: React.ForwardRefExoticComponent<CommonPropsTy
|
|
|
25
29
|
suffixIcon?: string;
|
|
26
30
|
suffixSrc?: string;
|
|
27
31
|
labelWidth?: string;
|
|
28
|
-
|
|
32
|
+
borderedH5?: boolean;
|
|
33
|
+
borderedPc?: boolean;
|
|
29
34
|
inputValue?: string;
|
|
30
|
-
labelVisible?: boolean;
|
|
31
35
|
labelAlign?: string;
|
|
32
36
|
labelWrap?: boolean;
|
|
33
37
|
labelTips?: string;
|
|
34
38
|
cursorSpacing?: number;
|
|
35
39
|
isUnionValue?: boolean;
|
|
36
|
-
|
|
37
|
-
borderedH5?: boolean;
|
|
38
|
-
borderedPc?: boolean;
|
|
39
|
-
requiredFlag?: boolean;
|
|
40
|
-
requiredMsg?: string;
|
|
40
|
+
status?: string;
|
|
41
41
|
isConvert?: boolean;
|
|
42
42
|
} & {
|
|
43
43
|
events: {
|
|
@@ -21,20 +21,31 @@ export declare const WdInputPhone: React.ForwardRefExoticComponent<CommonPropsTy
|
|
|
21
21
|
}, ...args: unknown[]) => unknown);
|
|
22
22
|
};
|
|
23
23
|
} & {
|
|
24
|
-
|
|
25
|
-
type?: string;
|
|
24
|
+
size?: string;
|
|
26
25
|
label?: string;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
required?: boolean;
|
|
26
|
+
type?: string;
|
|
27
|
+
name?: string;
|
|
30
28
|
extra?: string;
|
|
31
|
-
|
|
29
|
+
required?: boolean;
|
|
32
30
|
maxLength?: number;
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
template?: string;
|
|
32
|
+
clearable?: boolean;
|
|
33
|
+
labelVisible?: boolean;
|
|
34
|
+
requiredFlag?: boolean;
|
|
35
|
+
requiredMsg?: string;
|
|
35
36
|
layout?: string;
|
|
36
|
-
|
|
37
|
+
placeholder?: string;
|
|
38
|
+
focus?: boolean;
|
|
39
|
+
password?: boolean;
|
|
40
|
+
rules?: {
|
|
41
|
+
format: string;
|
|
42
|
+
pattern: string;
|
|
43
|
+
message: string;
|
|
44
|
+
}[];
|
|
45
|
+
isNickNameType?: boolean;
|
|
46
|
+
counterVisible?: boolean;
|
|
37
47
|
before?: string;
|
|
48
|
+
after?: string;
|
|
38
49
|
prefixType?: string;
|
|
39
50
|
prefixIcon?: string;
|
|
40
51
|
prefixSrc?: string;
|
|
@@ -42,26 +53,15 @@ export declare const WdInputPhone: React.ForwardRefExoticComponent<CommonPropsTy
|
|
|
42
53
|
suffixIcon?: string;
|
|
43
54
|
suffixSrc?: string;
|
|
44
55
|
labelWidth?: string;
|
|
45
|
-
|
|
56
|
+
borderedH5?: boolean;
|
|
57
|
+
borderedPc?: boolean;
|
|
46
58
|
inputValue?: string;
|
|
47
|
-
labelVisible?: boolean;
|
|
48
59
|
labelAlign?: string;
|
|
49
60
|
labelWrap?: boolean;
|
|
50
61
|
labelTips?: string;
|
|
51
|
-
isNickNameType?: boolean;
|
|
52
62
|
cursorSpacing?: number;
|
|
53
63
|
isUnionValue?: boolean;
|
|
54
|
-
|
|
55
|
-
counterVisible?: boolean;
|
|
56
|
-
borderedH5?: boolean;
|
|
57
|
-
borderedPc?: boolean;
|
|
58
|
-
rules?: {
|
|
59
|
-
message: string;
|
|
60
|
-
pattern: string;
|
|
61
|
-
format: string;
|
|
62
|
-
}[];
|
|
63
|
-
requiredFlag?: boolean;
|
|
64
|
-
requiredMsg?: string;
|
|
64
|
+
status?: string;
|
|
65
65
|
isConvert?: boolean;
|
|
66
66
|
} & React.RefAttributes<any>>;
|
|
67
67
|
export type WdInputPhoneProps = CommonPropsType & EventsType & DataType;
|
|
@@ -10,5 +10,5 @@ export const WdInputPhone = forwardRef(function WdInputPhone(props, ref) {
|
|
|
10
10
|
const { classPrefix } = useConfig();
|
|
11
11
|
const wrapCls = `${classPrefix}-form-input-number-wrap `;
|
|
12
12
|
const pattern = /^[()\d\s+\-ext]{0,20}$/;
|
|
13
|
-
return (_jsx(WdInput, { ...props, inputPattern: pattern, maxLength: 20, wrapClassName: wrapCls, classRoot: "input-phone", rules: rules, ref: ref
|
|
13
|
+
return (_jsx(WdInput, { ...props, inputPattern: pattern, maxLength: 20, wrapClassName: wrapCls, classRoot: "input-phone", rules: rules, ref: ref }));
|
|
14
14
|
});
|
|
@@ -21,19 +21,23 @@ export declare const WdInputUrl: React.ForwardRefExoticComponent<CommonPropsType
|
|
|
21
21
|
}, ...args: unknown[]) => unknown);
|
|
22
22
|
};
|
|
23
23
|
} & {
|
|
24
|
-
|
|
24
|
+
size?: string;
|
|
25
25
|
label?: string;
|
|
26
|
-
|
|
27
|
-
focus?: boolean;
|
|
28
|
-
required?: boolean;
|
|
26
|
+
name?: string;
|
|
29
27
|
extra?: string;
|
|
30
|
-
|
|
28
|
+
required?: boolean;
|
|
31
29
|
maxLength?: number;
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
template?: string;
|
|
31
|
+
clearable?: boolean;
|
|
32
|
+
labelVisible?: boolean;
|
|
33
|
+
requiredFlag?: boolean;
|
|
34
|
+
requiredMsg?: string;
|
|
34
35
|
layout?: string;
|
|
35
|
-
|
|
36
|
+
placeholder?: string;
|
|
37
|
+
focus?: boolean;
|
|
38
|
+
counterVisible?: boolean;
|
|
36
39
|
before?: string;
|
|
40
|
+
after?: string;
|
|
37
41
|
prefixType?: string;
|
|
38
42
|
prefixIcon?: string;
|
|
39
43
|
prefixSrc?: string;
|
|
@@ -41,19 +45,15 @@ export declare const WdInputUrl: React.ForwardRefExoticComponent<CommonPropsType
|
|
|
41
45
|
suffixIcon?: string;
|
|
42
46
|
suffixSrc?: string;
|
|
43
47
|
labelWidth?: string;
|
|
44
|
-
|
|
48
|
+
borderedH5?: boolean;
|
|
49
|
+
borderedPc?: boolean;
|
|
45
50
|
inputValue?: string;
|
|
46
|
-
labelVisible?: boolean;
|
|
47
51
|
labelAlign?: string;
|
|
48
52
|
labelWrap?: boolean;
|
|
49
53
|
labelTips?: string;
|
|
50
54
|
cursorSpacing?: number;
|
|
51
55
|
isUnionValue?: boolean;
|
|
52
|
-
|
|
53
|
-
borderedH5?: boolean;
|
|
54
|
-
borderedPc?: boolean;
|
|
55
|
-
requiredFlag?: boolean;
|
|
56
|
-
requiredMsg?: string;
|
|
56
|
+
status?: string;
|
|
57
57
|
isConvert?: boolean;
|
|
58
58
|
} & React.RefAttributes<any>>;
|
|
59
59
|
export type WdInputUrlProps = CommonPropsType & EventsType & DataType;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { CommonPropsType } from '../../types';
|
|
2
3
|
import type { DataType } from '../../../configs/components/wd-radio';
|
|
3
4
|
export declare const WdRadio: ({ index, option, name, size, disabled, checkedItemValue, getChangeHandler, }: WdRadioProps) => JSX.Element;
|
|
@@ -9,7 +9,7 @@ export declare const TextWrap: React.NamedExoticComponent<{
|
|
|
9
9
|
* extra: { modelType: 'list' | 'detail' | 'update' | 'create', showTip: boolean }
|
|
10
10
|
* 表格中的字符串/枚举数组,详情中的字符串数组会截断并showTip
|
|
11
11
|
*/
|
|
12
|
-
export declare function getFieldRender(field?: any, extra?: any): (val: any) => JSX.Element
|
|
12
|
+
export declare function getFieldRender(field?: any, extra?: any): (val: any) => "-" | JSX.Element;
|
|
13
13
|
/**
|
|
14
14
|
* object类型,展示表单组件
|
|
15
15
|
*/
|
|
@@ -146,7 +146,7 @@ export declare const getFixedColumnSets: ({ fixedFront, fixedEnd, columnSets }:
|
|
|
146
146
|
/**
|
|
147
147
|
* 列管理字段转换
|
|
148
148
|
*/
|
|
149
|
-
export declare const getTableColumns: ({ fields, columnSets, slots, fixedFront, fixedEnd, isH5, supportManyRelated, showRelationWithTag, }: {
|
|
149
|
+
export declare const getTableColumns: ({ fields, columnSets, slots, fixedFront, fixedEnd, isH5, supportManyRelated, showRelationWithTag, noAuthFields, }: {
|
|
150
150
|
fields: any;
|
|
151
151
|
columnSets: any;
|
|
152
152
|
slots: any;
|
|
@@ -155,6 +155,7 @@ export declare const getTableColumns: ({ fields, columnSets, slots, fixedFront,
|
|
|
155
155
|
isH5: any;
|
|
156
156
|
supportManyRelated: any;
|
|
157
157
|
showRelationWithTag?: boolean;
|
|
158
|
+
noAuthFields?: any[];
|
|
158
159
|
}) => any;
|
|
159
160
|
export declare const mapColumKey: (columnSets: any) => any;
|
|
160
161
|
export {};
|
|
@@ -957,7 +957,8 @@ export const getFixedColumnSets = ({ fixedFront = '', fixedEnd = '', columnSets
|
|
|
957
957
|
/**
|
|
958
958
|
* 列管理字段转换
|
|
959
959
|
*/
|
|
960
|
-
export const getTableColumns = ({ fields, columnSets, slots, fixedFront, fixedEnd, isH5, supportManyRelated, showRelationWithTag = true, }) => {
|
|
960
|
+
export const getTableColumns = ({ fields, columnSets, slots, fixedFront, fixedEnd, isH5, supportManyRelated, showRelationWithTag = true, noAuthFields = [], }) => {
|
|
961
|
+
const noAuthFieldKeys = new Set(noAuthFields.map((field) => field.name));
|
|
961
962
|
const defaultColumns = getColumns({
|
|
962
963
|
columnSets,
|
|
963
964
|
fields,
|
|
@@ -965,9 +966,7 @@ export const getTableColumns = ({ fields, columnSets, slots, fixedFront, fixedEn
|
|
|
965
966
|
supportManyRelated,
|
|
966
967
|
showRelationWithTag,
|
|
967
968
|
});
|
|
968
|
-
|
|
969
|
-
const defaultColumnKeys = new Set(defaultColumns.map((col) => col.key));
|
|
970
|
-
let fixedColumnSets = columnSets.filter((col) => defaultColumnKeys.has(col.key));
|
|
969
|
+
let fixedColumnSets = columnSets;
|
|
971
970
|
// h5端不冻结
|
|
972
971
|
if (!isH5) {
|
|
973
972
|
fixedColumnSets = getFixedColumnSets({
|
|
@@ -976,7 +975,7 @@ export const getTableColumns = ({ fields, columnSets, slots, fixedFront, fixedEn
|
|
|
976
975
|
columnSets: fixedColumnSets,
|
|
977
976
|
});
|
|
978
977
|
}
|
|
979
|
-
|
|
978
|
+
let baseColumns = filterCustomColumns({
|
|
980
979
|
columns: defaultColumns,
|
|
981
980
|
columnSets: fixedColumnSets,
|
|
982
981
|
slots,
|
|
@@ -985,6 +984,8 @@ export const getTableColumns = ({ fields, columnSets, slots, fixedFront, fixedEn
|
|
|
985
984
|
supportManyRelated,
|
|
986
985
|
showRelationWithTag,
|
|
987
986
|
});
|
|
987
|
+
// 过滤 columnSets,只过滤掉明确无权限的字段,没有 key 或 key 不在无权限集合中的都保留
|
|
988
|
+
baseColumns = baseColumns.filter((col) => !noAuthFieldKeys.has(col.key));
|
|
988
989
|
return baseColumns.map((i) => ({
|
|
989
990
|
...i,
|
|
990
991
|
// key值默认为字段的name值,同时作为table的key值需要唯一,因此重新设置为slotKey
|
|
@@ -170,7 +170,30 @@ export const filterFieldsGenerate = (fields) => {
|
|
|
170
170
|
if (i === null || i === void 0 ? void 0 : i.filterConfig) {
|
|
171
171
|
// 配置关联关系展示其他字段,仅对关联关系筛选器有效
|
|
172
172
|
filterFieldItemConfig.primaryColumn = ((_h = i.filterConfig) === null || _h === void 0 ? void 0 : _h.relationFieldName) || filterFieldItemConfig.primaryColumn;
|
|
173
|
-
|
|
173
|
+
// 处理 filterConfig.value,确保类型正确
|
|
174
|
+
let configValue = (_j = i.filterConfig) === null || _j === void 0 ? void 0 : _j.value;
|
|
175
|
+
if (configValue !== undefined && configValue !== null) {
|
|
176
|
+
// 如果是数组,需要根据字段类型决定如何处理
|
|
177
|
+
if (Array.isArray(configValue)) {
|
|
178
|
+
// 单选类型(string/singleSelect)只取第一个值
|
|
179
|
+
if (i.type === 'string' || ((_k = filterFieldItemConfig.fieldCalculation) === null || _k === void 0 ? void 0 : _k.type) === 'singleSelect') {
|
|
180
|
+
const firstItem = configValue[0];
|
|
181
|
+
// 如果数组元素是对象(包含 value 属性),提取 value
|
|
182
|
+
configValue = firstItem && typeof firstItem === 'object' && 'value' in firstItem
|
|
183
|
+
? firstItem.value
|
|
184
|
+
: firstItem;
|
|
185
|
+
}
|
|
186
|
+
else {
|
|
187
|
+
// 多选类型,提取每个选项的 value
|
|
188
|
+
configValue = configValue.map((item) => item && typeof item === 'object' && 'value' in item ? item.value : item);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
else if (typeof configValue === 'object' && 'value' in configValue) {
|
|
192
|
+
// 如果是单个选项对象,提取 value
|
|
193
|
+
configValue = configValue.value;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
filterFieldItemConfig.value = configValue !== null && configValue !== void 0 ? configValue : undefined;
|
|
174
197
|
// 默认计算方式
|
|
175
198
|
const customFieldCalculation = fieldCalculationOption === null || fieldCalculationOption === void 0 ? void 0 : fieldCalculationOption.find((option) => { var _a; return option.value === ((_a = i.filterConfig) === null || _a === void 0 ? void 0 : _a.filterType); });
|
|
176
199
|
filterFieldItemConfig.fieldCalculation = customFieldCalculation || filterFieldItemConfig.fieldCalculation;
|