@cloudbase/weda-ui 3.7.7 → 3.7.9

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.
Files changed (76) hide show
  1. package/dist/configs/components/chart/line.d.ts +1 -1
  2. package/dist/configs/components/form-date.d.ts +2 -2
  3. package/dist/configs/components/form-depart-tree-select.d.ts +2 -2
  4. package/dist/configs/components/form-email.d.ts +2 -2
  5. package/dist/configs/components/form-input.d.ts +2 -2
  6. package/dist/configs/components/form-multi-region.d.ts +2 -2
  7. package/dist/configs/components/form-phone.d.ts +2 -2
  8. package/dist/configs/components/form-region.d.ts +2 -2
  9. package/dist/configs/components/form-select-multiple.d.ts +2 -2
  10. package/dist/configs/components/form-select.d.ts +2 -2
  11. package/dist/configs/components/form-text-area.d.ts +2 -2
  12. package/dist/configs/components/form-time.d.ts +2 -2
  13. package/dist/configs/components/form-url.d.ts +2 -2
  14. package/dist/configs/components/form-user-tree-select.d.ts +2 -2
  15. package/dist/configs/components/wd-canvas.d.ts +1 -1
  16. package/dist/configs/components/wd-cascader.d.ts +1 -1
  17. package/dist/configs/components/wd-checkbox.d.ts +1 -1
  18. package/dist/configs/components/wd-code-editor.d.ts +1 -1
  19. package/dist/configs/components/wd-date-range.d.ts +1 -1
  20. package/dist/configs/components/wd-date.d.ts +1 -1
  21. package/dist/configs/components/wd-department.d.ts +1 -1
  22. package/dist/configs/components/wd-form-arr.d.ts +1 -1
  23. package/dist/configs/components/wd-form-detail.d.ts +1 -1
  24. package/dist/configs/components/wd-form-obj.d.ts +1 -1
  25. package/dist/configs/components/wd-image.d.ts +1 -0
  26. package/dist/configs/components/wd-image.js +1 -0
  27. package/dist/configs/components/wd-input-email.d.ts +1 -1
  28. package/dist/configs/components/wd-input-number.d.ts +2 -2
  29. package/dist/configs/components/wd-input-phone.d.ts +1 -1
  30. package/dist/configs/components/wd-input-url.d.ts +1 -1
  31. package/dist/configs/components/wd-input.d.ts +1 -1
  32. package/dist/configs/components/wd-location.d.ts +1 -1
  33. package/dist/configs/components/wd-member.d.ts +1 -1
  34. package/dist/configs/components/wd-progress.d.ts +2 -2
  35. package/dist/configs/components/wd-radio.d.ts +1 -1
  36. package/dist/configs/components/wd-rating.d.ts +2 -2
  37. package/dist/configs/components/wd-region.d.ts +1 -1
  38. package/dist/configs/components/wd-rich-text.d.ts +1 -1
  39. package/dist/configs/components/wd-select-multiple.d.ts +1 -1
  40. package/dist/configs/components/wd-select.d.ts +1 -1
  41. package/dist/configs/components/wd-switch.d.ts +2 -2
  42. package/dist/configs/components/wd-tag-select.d.ts +1 -1
  43. package/dist/configs/components/wd-textarea.d.ts +1 -1
  44. package/dist/configs/components/wd-time.d.ts +1 -1
  45. package/dist/configs/components/wd-upload-file.d.ts +1 -1
  46. package/dist/configs/components/wd-upload-image.d.ts +1 -1
  47. package/dist/configs/index.d.ts +90 -88
  48. package/dist/configs/type-utils/index.d.ts +1 -1
  49. package/dist/configs/type-utils/type-form.js +3 -3
  50. package/dist/style/index.scss +1 -1
  51. package/dist/web/components/form-date/index.d.ts +2 -2
  52. package/dist/web/components/form-depart-tree-select/index.d.ts +2 -2
  53. package/dist/web/components/form-email/index.d.ts +2 -2
  54. package/dist/web/components/form-image-uploader/index.d.ts +1 -1
  55. package/dist/web/components/form-input/index.d.ts +3 -3
  56. package/dist/web/components/form-location/index.d.ts +1 -1
  57. package/dist/web/components/form-multi-region/index.d.ts +2 -2
  58. package/dist/web/components/form-phone/index.d.ts +2 -2
  59. package/dist/web/components/form-radio/index.d.ts +2 -2
  60. package/dist/web/components/form-region/index.d.ts +2 -2
  61. package/dist/web/components/form-rich-text/index.d.ts +1 -1
  62. package/dist/web/components/form-select/index.d.ts +3 -3
  63. package/dist/web/components/form-select-multiple/index.d.ts +3 -3
  64. package/dist/web/components/form-switch/index.d.ts +1 -1
  65. package/dist/web/components/form-text-area/index.d.ts +2 -2
  66. package/dist/web/components/form-time/index.d.ts +2 -2
  67. package/dist/web/components/form-upload-file/index.d.ts +1 -1
  68. package/dist/web/components/form-url/index.d.ts +2 -2
  69. package/dist/web/components/form-user-tree-select/index.d.ts +2 -2
  70. package/dist/web/components/index.js +0 -1
  71. package/dist/web/components/style.js +2 -0
  72. package/dist/web/components/wd-form-obj/base-form-obj.js +1 -1
  73. package/dist/web/components/wd-input/wd-input.d.ts +1 -1
  74. package/dist/web/components/wd-input-phone/wd-input-phone.d.ts +1 -1
  75. package/dist/web/components/wd-tree/utils.d.ts +6 -6
  76. package/package.json +1 -1
@@ -7,11 +7,11 @@ export type FormDateProps = CommonPropsType & DataType & {
7
7
  readOnly: boolean;
8
8
  } & EventsType;
9
9
  declare const FormDate: React.ForwardRefExoticComponent<CommonPropsType & import("type-fest").Simplify<{
10
- label: string;
11
10
  value: string;
11
+ label: string;
12
12
  name: string;
13
13
  required: boolean;
14
- size: "s" | "m" | "l" | "full";
14
+ size: "m" | "s" | "l" | "full";
15
15
  disabled: boolean;
16
16
  placeholder: string;
17
17
  end: string;
@@ -7,11 +7,11 @@ export type FormDepartTreeSelectProps = CommonPropsType & DataType & {
7
7
  readOnly: boolean;
8
8
  } & EventsType;
9
9
  declare const FormDepartTreeSelect: React.ForwardRefExoticComponent<CommonPropsType & import("type-fest").Simplify<{
10
- label: string;
11
10
  value: string;
11
+ label: string;
12
12
  name: string;
13
13
  required: boolean;
14
- size: "s" | "m" | "l" | "full";
14
+ size: "m" | "s" | "l" | "full";
15
15
  disabled: boolean;
16
16
  placeholder: string;
17
17
  layout: "" | "vertical" | "horizontal";
@@ -7,12 +7,12 @@ export type PropsType = CommonPropsType & DataType & {
7
7
  readOnly: boolean;
8
8
  } & EventsType;
9
9
  declare const FormEmail: React.ForwardRefExoticComponent<CommonPropsType & import("type-fest").Simplify<{
10
- label: string;
11
10
  value: string;
11
+ label: string;
12
12
  focus: boolean;
13
13
  name: string;
14
14
  required: boolean;
15
- size: "s" | "m" | "l" | "full";
15
+ size: "m" | "s" | "l" | "full";
16
16
  disabled: boolean;
17
17
  maxLength: number;
18
18
  placeholder: string;
@@ -7,8 +7,8 @@ export type FormImageUploaderProps = CommonPropsType & DataType & {
7
7
  readOnly: boolean;
8
8
  } & EventsType;
9
9
  declare const FormImageUploader: React.ForwardRefExoticComponent<CommonPropsType & import("type-fest").Simplify<{
10
- title: string;
11
10
  value: string[];
11
+ title: string;
12
12
  name: string;
13
13
  required: boolean;
14
14
  disabled: boolean;
@@ -7,13 +7,13 @@ export type PropsType = CommonPropsType & DataType & {
7
7
  readOnly: boolean;
8
8
  };
9
9
  declare const WdInput: React.ForwardRefExoticComponent<CommonPropsType & import("type-fest").Simplify<{
10
- label: string;
11
10
  value: string;
12
11
  type: "number" | "text" | "idcard" | "digit";
12
+ label: string;
13
13
  focus: boolean;
14
14
  name: string;
15
15
  required: boolean;
16
- size: "s" | "m" | "l" | "full";
16
+ size: "m" | "s" | "l" | "full";
17
17
  disabled: boolean;
18
18
  maxLength: number;
19
19
  placeholder: string;
@@ -23,8 +23,8 @@ declare const WdInput: React.ForwardRefExoticComponent<CommonPropsType & import(
23
23
  clearable: boolean;
24
24
  password: boolean;
25
25
  rules: {
26
- pattern: string;
27
26
  format: string;
27
+ pattern: string;
28
28
  message: string;
29
29
  }[];
30
30
  validateStatus: "error" | "success" | "warn";
@@ -7,7 +7,6 @@ export type FormLocationProps = CommonPropsType & DataType & {
7
7
  readOnly: boolean;
8
8
  } & EventsType;
9
9
  declare const FormLocation: React.ForwardRefExoticComponent<CommonPropsType & import("type-fest").Simplify<{
10
- label: string;
11
10
  value: {
12
11
  address: string;
13
12
  geopoint: {
@@ -15,6 +14,7 @@ declare const FormLocation: React.ForwardRefExoticComponent<CommonPropsType & im
15
14
  coordinates: [number, number];
16
15
  };
17
16
  };
17
+ label: string;
18
18
  drag: boolean;
19
19
  name: string;
20
20
  required: boolean;
@@ -7,11 +7,11 @@ export type FormMultiRegionProps = CommonPropsType & DataType & {
7
7
  readOnly: boolean;
8
8
  } & EventsType;
9
9
  declare const FormMultiRegion: React.ForwardRefExoticComponent<CommonPropsType & import("type-fest").Simplify<{
10
- label: string;
11
10
  value: string;
11
+ label: string;
12
12
  name: string;
13
13
  required: boolean;
14
- size: "s" | "m" | "l" | "full";
14
+ size: "m" | "s" | "l" | "full";
15
15
  disabled: boolean;
16
16
  placeholder: string;
17
17
  layout: "" | "vertical" | "horizontal";
@@ -7,12 +7,12 @@ export type PropsType = CommonPropsType & DataType & {
7
7
  readOnly: boolean;
8
8
  } & EventsType;
9
9
  declare const FormPhone: React.ForwardRefExoticComponent<CommonPropsType & import("type-fest").Simplify<{
10
- label: string;
11
10
  value: string;
11
+ label: string;
12
12
  focus: boolean;
13
13
  name: string;
14
14
  required: boolean;
15
- size: "s" | "m" | "l" | "full";
15
+ size: "m" | "s" | "l" | "full";
16
16
  disabled: boolean;
17
17
  placeholder: string;
18
18
  layout: "" | "vertical" | "horizontal";
@@ -11,16 +11,16 @@ declare const FormRadio: React.ForwardRefExoticComponent<CommonPropsType & {
11
11
  disabled: boolean;
12
12
  readOnly: boolean;
13
13
  } & import("type-fest").Simplify<{
14
- label: string;
15
14
  value: string;
16
15
  format: string;
16
+ label: string;
17
17
  name: string;
18
18
  required: boolean;
19
19
  disabled: boolean;
20
20
  layout: "" | "vertical" | "horizontal";
21
21
  range: {
22
- label: string;
23
22
  value: string;
23
+ label: string;
24
24
  }[];
25
25
  tipBlock: string;
26
26
  labelVisible: boolean;
@@ -7,11 +7,11 @@ export type FormRegionProps = CommonPropsType & DataType & {
7
7
  readOnly: boolean;
8
8
  } & EventsType;
9
9
  declare const FormRegion: React.ForwardRefExoticComponent<CommonPropsType & import("type-fest").Simplify<{
10
- label: string;
11
10
  value: string[];
11
+ label: string;
12
12
  name: string;
13
13
  required: boolean;
14
- size: "s" | "m" | "l" | "full";
14
+ size: "m" | "s" | "l" | "full";
15
15
  disabled: boolean;
16
16
  placeholder: string;
17
17
  separator: string;
@@ -7,8 +7,8 @@ export type FormRichTextProps = CommonPropsType & DataType & {
7
7
  readOnly: boolean;
8
8
  } & EventsType;
9
9
  declare const FromRichText: React.ForwardRefExoticComponent<CommonPropsType & import("type-fest").Simplify<{
10
- title: string;
11
10
  value: string;
11
+ title: string;
12
12
  name: string;
13
13
  required: boolean;
14
14
  disabled: boolean;
@@ -7,18 +7,18 @@ export type FormSelectProps = CommonPropsType & DataType & {
7
7
  readOnly: boolean;
8
8
  } & EventsType;
9
9
  declare const FormSelect: React.ForwardRefExoticComponent<CommonPropsType & import("type-fest").Simplify<{
10
- label: string;
11
10
  value: string;
12
11
  format: "x-enum" | "related" | "father-son" | "many-one";
12
+ label: string;
13
13
  name: string;
14
14
  required: boolean;
15
- size: "s" | "m" | "l" | "full";
15
+ size: "m" | "s" | "l" | "full";
16
16
  disabled: boolean;
17
17
  placeholder: string;
18
18
  layout: "" | "vertical" | "horizontal";
19
19
  range: {
20
- label: string;
21
20
  value: string;
21
+ label: string;
22
22
  }[];
23
23
  dataSourceName: string;
24
24
  tipBlock: string;
@@ -7,18 +7,18 @@ export type FormSelectMultipleProps = CommonPropsType & DataType & {
7
7
  readOnly: boolean;
8
8
  } & EventsType;
9
9
  declare const FormSelectMultiple: React.ForwardRefExoticComponent<CommonPropsType & import("type-fest").Simplify<{
10
- label: string;
11
10
  value: string[];
12
11
  format: "many-many" | "one-many";
12
+ label: string;
13
13
  name: string;
14
14
  required: boolean;
15
- size: "s" | "m" | "l" | "full";
15
+ size: "m" | "s" | "l" | "full";
16
16
  disabled: boolean;
17
17
  placeholder: string;
18
18
  layout: "" | "vertical" | "horizontal";
19
19
  range: {
20
- label: string;
21
20
  value: string;
21
+ label: string;
22
22
  }[];
23
23
  dataSourceName: string;
24
24
  tipBlock: string;
@@ -7,8 +7,8 @@ export type FormSwitchProps = CommonPropsType & DataType & {
7
7
  readOnly: boolean;
8
8
  } & EventsType;
9
9
  declare const FormSwitch: React.ForwardRefExoticComponent<CommonPropsType & import("type-fest").Simplify<{
10
- label: string;
11
10
  value: boolean;
11
+ label: string;
12
12
  name: string;
13
13
  required: boolean;
14
14
  disabled: boolean;
@@ -7,12 +7,12 @@ export type FormTextAreaProps = CommonPropsType & DataType & {
7
7
  readOnly: boolean;
8
8
  } & EventsType;
9
9
  declare const FormTextArea: React.ForwardRefExoticComponent<CommonPropsType & import("type-fest").Simplify<{
10
- label: string;
11
10
  value: string;
11
+ label: string;
12
12
  focus: boolean;
13
13
  name: string;
14
14
  required: boolean;
15
- size: "s" | "m" | "l" | "full";
15
+ size: "m" | "s" | "l" | "full";
16
16
  disabled: boolean;
17
17
  maxLength: number;
18
18
  placeholder: string;
@@ -7,11 +7,11 @@ export type FormTimeProps = CommonPropsType & DataType & {
7
7
  readOnly: boolean;
8
8
  } & EventsType;
9
9
  declare const FormTime: React.ForwardRefExoticComponent<CommonPropsType & import("type-fest").Simplify<{
10
- label: string;
11
10
  value: string;
11
+ label: string;
12
12
  name: string;
13
13
  required: boolean;
14
- size: "s" | "m" | "l" | "full";
14
+ size: "m" | "s" | "l" | "full";
15
15
  disabled: boolean;
16
16
  placeholder: string;
17
17
  end: string;
@@ -7,8 +7,8 @@ export type FormUploadFileProps = CommonPropsType & DataType & {
7
7
  readOnly: boolean;
8
8
  } & EventsType;
9
9
  declare const FormUploadFile: React.ForwardRefExoticComponent<CommonPropsType & import("type-fest").Simplify<{
10
- label: string;
11
10
  value: string[];
11
+ label: string;
12
12
  name: string;
13
13
  required: boolean;
14
14
  disabled: boolean;
@@ -7,12 +7,12 @@ export type PropsType = CommonPropsType & DataType & {
7
7
  readOnly: boolean;
8
8
  } & EventsType;
9
9
  declare const FormUrl: React.ForwardRefExoticComponent<CommonPropsType & import("type-fest").Simplify<{
10
- label: string;
11
10
  value: string;
11
+ label: string;
12
12
  focus: boolean;
13
13
  name: string;
14
14
  required: boolean;
15
- size: "s" | "m" | "l" | "full";
15
+ size: "m" | "s" | "l" | "full";
16
16
  disabled: boolean;
17
17
  maxLength: number;
18
18
  placeholder: string;
@@ -7,11 +7,11 @@ export type FormUserTreeSelectProps = CommonPropsType & DataType & {
7
7
  readOnly: boolean;
8
8
  } & EventsType;
9
9
  declare const FormUserTreeSelect: React.ForwardRefExoticComponent<CommonPropsType & import("type-fest").Simplify<{
10
- label: string;
11
10
  value: string;
11
+ label: string;
12
12
  name: string;
13
13
  required: boolean;
14
- size: "s" | "m" | "l" | "full";
14
+ size: "m" | "s" | "l" | "full";
15
15
  disabled: boolean;
16
16
  placeholder: string;
17
17
  layout: "" | "vertical" | "horizontal";
@@ -11,7 +11,6 @@ import './style';
11
11
  // }
12
12
  import loadable from '@loadable/component';
13
13
  import { fallback } from '../utils/loading-fallback';
14
- import '../utils/loadIconCss';
15
14
  export { default as Button } from './button';
16
15
  // export { default as Text } from './text';
17
16
  export const Text = loadable(() => import('./text'), { fallback });
@@ -4,3 +4,5 @@ import '../weda-ui.css';
4
4
  // 组件标准化
5
5
  import '../../style/index.scss';
6
6
  import '../../style/components/icon/font/font.css';
7
+ // 加载图标库样式
8
+ import '../utils/loadIconCss';
@@ -124,7 +124,7 @@ export const BaseFormObj = forwardRef(function BaseFormObj(props, ref) {
124
124
  value = deepClone(objValue);
125
125
  // 触发添加操作,则增加一个undefined值
126
126
  if (params.type === 'add') {
127
- value.push({});
127
+ value.push(undefined);
128
128
  }
129
129
  // 触发删除操作,则删除对应索引的值
130
130
  if (params.type === 'remove') {
@@ -5,9 +5,9 @@ import type { DataType, EventsType } from '../../../configs/components/wd-input'
5
5
  * 标准化:单行输入组件
6
6
  */
7
7
  export declare const WdInput: React.ForwardRefExoticComponent<CommonPropsType & import("type-fest").Simplify<{
8
+ type?: string;
8
9
  label?: string;
9
10
  template?: string;
10
- type?: string;
11
11
  focus?: boolean;
12
12
  name?: string;
13
13
  required?: boolean;
@@ -36,9 +36,9 @@ export declare const WdInputPhone: React.ForwardRefExoticComponent<CommonPropsTy
36
36
  originValue: import("@sinclair/typebox").TString;
37
37
  }>;
38
38
  }]>> & import("type-fest").Simplify<{
39
+ type?: string;
39
40
  label?: string;
40
41
  template?: string;
41
- type?: string;
42
42
  focus?: boolean;
43
43
  name?: string;
44
44
  required?: boolean;
@@ -127,9 +127,9 @@ declare const getTreeInfo: (params: IFindNodeParams, checkable: boolean) => {
127
127
  selected: string[];
128
128
  currentNode: {
129
129
  data?: {
130
+ value: string;
130
131
  label: string;
131
132
  children: any[];
132
- value: string;
133
133
  disabled: boolean;
134
134
  foldIcon: string;
135
135
  expendIcon: string;
@@ -138,9 +138,9 @@ declare const getTreeInfo: (params: IFindNodeParams, checkable: boolean) => {
138
138
  };
139
139
  selectedPositions: string[];
140
140
  selectedNodes: {
141
+ value: string;
141
142
  label: string;
142
143
  children: any[];
143
- value: string;
144
144
  disabled: boolean;
145
145
  foldIcon: string;
146
146
  expendIcon: string;
@@ -148,9 +148,9 @@ declare const getTreeInfo: (params: IFindNodeParams, checkable: boolean) => {
148
148
  }[];
149
149
  expandedPositions: string[];
150
150
  expandedNodes: {
151
+ value: string;
151
152
  label: string;
152
153
  children: any[];
153
- value: string;
154
154
  disabled: boolean;
155
155
  foldIcon: string;
156
156
  expendIcon: string;
@@ -159,9 +159,9 @@ declare const getTreeInfo: (params: IFindNodeParams, checkable: boolean) => {
159
159
  searched: string[];
160
160
  searchedPositions: string[];
161
161
  searchedNodes: {
162
+ value: string;
162
163
  label: string;
163
164
  children: any[];
164
- value: string;
165
165
  disabled: boolean;
166
166
  foldIcon: string;
167
167
  expendIcon: string;
@@ -169,9 +169,9 @@ declare const getTreeInfo: (params: IFindNodeParams, checkable: boolean) => {
169
169
  }[];
170
170
  checkedPositions: string[];
171
171
  checkedNodes: {
172
+ value: string;
172
173
  label: string;
173
174
  children: any[];
174
- value: string;
175
175
  disabled: boolean;
176
176
  foldIcon: string;
177
177
  expendIcon: string;
@@ -180,9 +180,9 @@ declare const getTreeInfo: (params: IFindNodeParams, checkable: boolean) => {
180
180
  childChecked: string[];
181
181
  childCheckedPositions: string[];
182
182
  childCheckedNodes: {
183
+ value: string;
183
184
  label: string;
184
185
  children: any[];
185
- value: string;
186
186
  disabled: boolean;
187
187
  foldIcon: string;
188
188
  expendIcon: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudbase/weda-ui",
3
- "version": "3.7.7",
3
+ "version": "3.7.9",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index",
6
6
  "miniprogram": "mpdist",