@cloudbase/weda-ui 3.13.5 → 3.13.7

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 (97) hide show
  1. package/dist/configs/components/chart/bar.d.ts +1 -1
  2. package/dist/configs/components/chart/line.d.ts +1 -1
  3. package/dist/configs/components/chart/pie.d.ts +1 -1
  4. package/dist/configs/components/echart.js +7 -7
  5. package/dist/configs/components/form-date.d.ts +2 -2
  6. package/dist/configs/components/form-depart-tree-select.d.ts +2 -2
  7. package/dist/configs/components/form-email.d.ts +2 -2
  8. package/dist/configs/components/form-input.d.ts +2 -2
  9. package/dist/configs/components/form-location.d.ts +2 -2
  10. package/dist/configs/components/form-multi-region.d.ts +2 -2
  11. package/dist/configs/components/form-phone.d.ts +2 -2
  12. package/dist/configs/components/form-region.d.ts +2 -2
  13. package/dist/configs/components/form-select-multiple.d.ts +2 -2
  14. package/dist/configs/components/form-select.d.ts +2 -2
  15. package/dist/configs/components/form-text-area.d.ts +2 -2
  16. package/dist/configs/components/form-time.d.ts +2 -2
  17. package/dist/configs/components/form-url.d.ts +2 -2
  18. package/dist/configs/components/form-user-tree-select.d.ts +2 -2
  19. package/dist/configs/components/listView.js +6 -6
  20. package/dist/configs/components/navLayout.json +5 -5
  21. package/dist/configs/components/wd-canvas.d.ts +1 -1
  22. package/dist/configs/components/wd-cascader.d.ts +3 -3
  23. package/dist/configs/components/wd-checkbox.d.ts +1 -1
  24. package/dist/configs/components/wd-code-editor.d.ts +1 -1
  25. package/dist/configs/components/wd-date-range.d.ts +1 -1
  26. package/dist/configs/components/wd-date.d.ts +1 -1
  27. package/dist/configs/components/wd-department.d.ts +1 -1
  28. package/dist/configs/components/wd-form-arr.d.ts +1 -1
  29. package/dist/configs/components/wd-form-detail.d.ts +1 -1
  30. package/dist/configs/components/wd-form-obj.d.ts +1 -1
  31. package/dist/configs/components/wd-icon.d.ts +7 -2
  32. package/dist/configs/components/wd-icon.js +2 -4
  33. package/dist/configs/components/wd-input-email.d.ts +1 -1
  34. package/dist/configs/components/wd-input-number.d.ts +2 -2
  35. package/dist/configs/components/wd-input-phone.d.ts +1 -1
  36. package/dist/configs/components/wd-input-url.d.ts +1 -1
  37. package/dist/configs/components/wd-input.d.ts +1 -1
  38. package/dist/configs/components/wd-layout.js +2 -2
  39. package/dist/configs/components/wd-location.d.ts +2 -2
  40. package/dist/configs/components/wd-member.d.ts +1 -1
  41. package/dist/configs/components/wd-menu-layout.d.ts +4 -4
  42. package/dist/configs/components/wd-modal.js +2 -2
  43. package/dist/configs/components/wd-progress.d.ts +2 -2
  44. package/dist/configs/components/wd-radio.d.ts +1 -1
  45. package/dist/configs/components/wd-rating.d.ts +2 -2
  46. package/dist/configs/components/wd-region.d.ts +1 -1
  47. package/dist/configs/components/wd-rich-text.d.ts +1 -1
  48. package/dist/configs/components/wd-select-multiple.d.ts +1 -1
  49. package/dist/configs/components/wd-select.d.ts +2 -2
  50. package/dist/configs/components/wd-switch.d.ts +2 -2
  51. package/dist/configs/components/wd-tag-select.d.ts +1 -1
  52. package/dist/configs/components/wd-textarea.d.ts +1 -1
  53. package/dist/configs/components/wd-time.d.ts +1 -1
  54. package/dist/configs/components/wd-upload-file.d.ts +3 -3
  55. package/dist/configs/components/wd-upload-image.d.ts +1 -1
  56. package/dist/configs/index.d.ts +124 -114
  57. package/dist/configs/type-utils/index.d.ts +1 -1
  58. package/dist/configs/type-utils/type-form.js +3 -3
  59. package/dist/configs/utils/layout.d.ts +1 -1
  60. package/dist/configs/utils/layout.js +3 -3
  61. package/dist/onlineConfig.json +20 -0
  62. package/dist/style/index.css +1 -0
  63. package/dist/style/index.scss +1 -1
  64. package/dist/style/weda-ui.min.css +3 -3
  65. package/dist/web/components/form-date/index.d.ts +2 -2
  66. package/dist/web/components/form-depart-tree-select/index.d.ts +2 -2
  67. package/dist/web/components/form-email/index.d.ts +2 -2
  68. package/dist/web/components/form-image-uploader/index.d.ts +1 -1
  69. package/dist/web/components/form-input/index.d.ts +4 -4
  70. package/dist/web/components/form-location/index.d.ts +4 -4
  71. package/dist/web/components/form-multi-region/index.d.ts +2 -2
  72. package/dist/web/components/form-phone/index.d.ts +2 -2
  73. package/dist/web/components/form-radio/index.d.ts +3 -3
  74. package/dist/web/components/form-region/index.d.ts +2 -2
  75. package/dist/web/components/form-rich-text/index.d.ts +1 -1
  76. package/dist/web/components/form-select/index.d.ts +4 -4
  77. package/dist/web/components/form-select-multiple/index.d.ts +4 -4
  78. package/dist/web/components/form-switch/index.d.ts +1 -1
  79. package/dist/web/components/form-text-area/index.d.ts +2 -2
  80. package/dist/web/components/form-time/index.d.ts +2 -2
  81. package/dist/web/components/form-upload-file/index.d.ts +1 -1
  82. package/dist/web/components/form-url/index.d.ts +2 -2
  83. package/dist/web/components/form-user-tree-select/index.d.ts +2 -2
  84. package/dist/web/components/listView/index.css +15 -44
  85. package/dist/web/components/richText/index.js +40 -54
  86. package/dist/web/components/wd-input/wd-input.d.ts +2 -2
  87. package/dist/web/components/wd-input-number/wd-input-number.js +17 -34
  88. package/dist/web/components/wd-input-phone/wd-input-phone.d.ts +2 -2
  89. package/dist/web/components/wd-select/select/selectUI.js +3 -3
  90. package/dist/web/components/wd-select/wd-select.js +1 -1
  91. package/dist/web/components/wd-select-multiple/wd-select-multiple.js +1 -1
  92. package/dist/web/components/wd-tree/utils.d.ts +6 -6
  93. package/dist/web/utils/isPrivate.d.ts +5 -0
  94. package/dist/web/utils/isPrivate.js +12 -0
  95. package/dist/web/utils/loadIconCss.js +11 -3
  96. package/package.json +3 -3
  97. package/dist/iconConfig.json +0 -6
@@ -7,11 +7,11 @@ export type FormDateProps = CommonPropsType & DataType & {
7
7
  readOnly: boolean;
8
8
  } & EventsType;
9
9
  declare const FormDate: React.ForwardRefExoticComponent<CommonPropsType & {
10
- value: string;
11
10
  name: string;
12
11
  label: string;
12
+ value: string;
13
13
  required: boolean;
14
- size: "m" | "s" | "l" | "full";
14
+ size: "s" | "m" | "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 & {
10
- value: string;
11
10
  name: string;
12
11
  label: string;
12
+ value: string;
13
13
  required: boolean;
14
- size: "m" | "s" | "l" | "full";
14
+ size: "s" | "m" | "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 & {
10
- value: string;
11
10
  name: string;
12
11
  label: string;
13
12
  focus: boolean;
13
+ value: string;
14
14
  required: boolean;
15
- size: "m" | "s" | "l" | "full";
15
+ size: "s" | "m" | "l" | "full";
16
16
  disabled: boolean;
17
17
  maxLength: number;
18
18
  placeholder: string;
@@ -7,9 +7,9 @@ export type FormImageUploaderProps = CommonPropsType & DataType & {
7
7
  readOnly: boolean;
8
8
  } & EventsType;
9
9
  declare const FormImageUploader: React.ForwardRefExoticComponent<CommonPropsType & {
10
- value: string[];
11
10
  name: string;
12
11
  title: string;
12
+ value: string[];
13
13
  required: boolean;
14
14
  disabled: boolean;
15
15
  layout: "" | "vertical" | "horizontal";
@@ -7,13 +7,13 @@ export type PropsType = CommonPropsType & DataType & {
7
7
  readOnly: boolean;
8
8
  };
9
9
  declare const WdInput: React.ForwardRefExoticComponent<CommonPropsType & {
10
- value: string;
11
- type: "number" | "text" | "idcard" | "digit";
12
10
  name: string;
11
+ type: "number" | "text" | "idcard" | "digit";
13
12
  label: string;
14
13
  focus: boolean;
14
+ value: string;
15
15
  required: boolean;
16
- size: "m" | "s" | "l" | "full";
16
+ size: "s" | "m" | "l" | "full";
17
17
  disabled: boolean;
18
18
  maxLength: number;
19
19
  placeholder: string;
@@ -23,9 +23,9 @@ declare const WdInput: React.ForwardRefExoticComponent<CommonPropsType & {
23
23
  isNickNameType: boolean;
24
24
  password: boolean;
25
25
  rules: {
26
- format: string;
27
26
  message: string;
28
27
  pattern: string;
28
+ format: string;
29
29
  }[];
30
30
  validateStatus: "error" | "success" | "warn";
31
31
  requiredFlag: boolean;
@@ -7,6 +7,9 @@ export type FormLocationProps = CommonPropsType & DataType & {
7
7
  readOnly: boolean;
8
8
  } & EventsType;
9
9
  declare const FormLocation: React.ForwardRefExoticComponent<CommonPropsType & {
10
+ name: string;
11
+ label: string;
12
+ drag: boolean;
10
13
  value: {
11
14
  address: string;
12
15
  geopoint: {
@@ -14,14 +17,11 @@ declare const FormLocation: React.ForwardRefExoticComponent<CommonPropsType & {
14
17
  coordinates: [number, number];
15
18
  };
16
19
  };
17
- name: string;
18
- label: string;
19
- drag: boolean;
20
20
  required: boolean;
21
21
  disabled: boolean;
22
22
  layout: "" | "vertical" | "horizontal";
23
23
  zoom: boolean;
24
- locationType: 1 | 2;
24
+ locationType: 2 | 1;
25
25
  labelVisible: boolean;
26
26
  showLngLat: boolean;
27
27
  showMap: 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 & {
10
- value: string;
11
10
  name: string;
12
11
  label: string;
12
+ value: string;
13
13
  required: boolean;
14
- size: "m" | "s" | "l" | "full";
14
+ size: "s" | "m" | "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 & {
10
- value: string;
11
10
  name: string;
12
11
  label: string;
13
12
  focus: boolean;
13
+ value: string;
14
14
  required: boolean;
15
- size: "m" | "s" | "l" | "full";
15
+ size: "s" | "m" | "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
  } & {
14
- value: string;
15
- format: string;
16
14
  name: string;
17
15
  label: string;
16
+ format: string;
17
+ value: string;
18
18
  required: boolean;
19
19
  disabled: boolean;
20
20
  layout: "" | "vertical" | "horizontal";
21
21
  range: {
22
- value: string;
23
22
  label: string;
23
+ value: 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 & {
10
- value: string[];
11
10
  name: string;
12
11
  label: string;
12
+ value: string[];
13
13
  required: boolean;
14
- size: "m" | "s" | "l" | "full";
14
+ size: "s" | "m" | "l" | "full";
15
15
  disabled: boolean;
16
16
  placeholder: string;
17
17
  separator: string;
@@ -7,9 +7,9 @@ export type FormRichTextProps = CommonPropsType & DataType & {
7
7
  readOnly: boolean;
8
8
  } & EventsType;
9
9
  declare const FromRichText: React.ForwardRefExoticComponent<CommonPropsType & {
10
- value: string;
11
10
  name: string;
12
11
  title: string;
12
+ value: string;
13
13
  required: boolean;
14
14
  disabled: boolean;
15
15
  layout: "" | "vertical" | "horizontal";
@@ -7,18 +7,18 @@ export type FormSelectProps = CommonPropsType & DataType & {
7
7
  readOnly: boolean;
8
8
  } & EventsType;
9
9
  declare const FormSelect: React.ForwardRefExoticComponent<CommonPropsType & {
10
- value: string;
11
- format: "x-enum" | "related" | "father-son" | "many-one";
12
10
  name: string;
13
11
  label: string;
12
+ format: "x-enum" | "related" | "father-son" | "many-one";
13
+ value: string;
14
14
  required: boolean;
15
- size: "m" | "s" | "l" | "full";
15
+ size: "s" | "m" | "l" | "full";
16
16
  disabled: boolean;
17
17
  placeholder: string;
18
18
  layout: "" | "vertical" | "horizontal";
19
19
  range: {
20
- value: string;
21
20
  label: string;
21
+ value: string;
22
22
  }[];
23
23
  dataSourceName: string;
24
24
  where: any[];
@@ -7,18 +7,18 @@ export type FormSelectMultipleProps = CommonPropsType & DataType & {
7
7
  readOnly: boolean;
8
8
  } & EventsType;
9
9
  declare const FormSelectMultiple: React.ForwardRefExoticComponent<CommonPropsType & {
10
- value: string[];
11
- format: "many-many" | "one-many";
12
10
  name: string;
13
11
  label: string;
12
+ format: "many-many" | "one-many";
13
+ value: string[];
14
14
  required: boolean;
15
- size: "m" | "s" | "l" | "full";
15
+ size: "s" | "m" | "l" | "full";
16
16
  disabled: boolean;
17
17
  placeholder: string;
18
18
  layout: "" | "vertical" | "horizontal";
19
19
  range: {
20
- value: string;
21
20
  label: string;
21
+ value: string;
22
22
  }[];
23
23
  dataSourceName: string;
24
24
  tipBlock: string;
@@ -7,9 +7,9 @@ export type FormSwitchProps = CommonPropsType & DataType & {
7
7
  readOnly: boolean;
8
8
  } & EventsType;
9
9
  declare const FormSwitch: React.ForwardRefExoticComponent<CommonPropsType & {
10
- value: boolean;
11
10
  name: string;
12
11
  label: string;
12
+ value: boolean;
13
13
  required: boolean;
14
14
  disabled: boolean;
15
15
  layout: "" | "vertical" | "horizontal";
@@ -7,12 +7,12 @@ export type FormTextAreaProps = CommonPropsType & DataType & {
7
7
  readOnly: boolean;
8
8
  } & EventsType;
9
9
  declare const FormTextArea: React.ForwardRefExoticComponent<CommonPropsType & {
10
- value: string;
11
10
  name: string;
12
11
  label: string;
13
12
  focus: boolean;
13
+ value: string;
14
14
  required: boolean;
15
- size: "m" | "s" | "l" | "full";
15
+ size: "s" | "m" | "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 & {
10
- value: string;
11
10
  name: string;
12
11
  label: string;
12
+ value: string;
13
13
  required: boolean;
14
- size: "m" | "s" | "l" | "full";
14
+ size: "s" | "m" | "l" | "full";
15
15
  disabled: boolean;
16
16
  placeholder: string;
17
17
  end: string;
@@ -7,9 +7,9 @@ export type FormUploadFileProps = CommonPropsType & DataType & {
7
7
  readOnly: boolean;
8
8
  } & EventsType;
9
9
  declare const FormUploadFile: React.ForwardRefExoticComponent<CommonPropsType & {
10
- value: string[];
11
10
  name: string;
12
11
  label: string;
12
+ value: string[];
13
13
  required: boolean;
14
14
  disabled: boolean;
15
15
  layout: "" | "vertical" | "horizontal";
@@ -7,12 +7,12 @@ export type PropsType = CommonPropsType & DataType & {
7
7
  readOnly: boolean;
8
8
  } & EventsType;
9
9
  declare const FormUrl: React.ForwardRefExoticComponent<CommonPropsType & {
10
- value: string;
11
10
  name: string;
12
11
  label: string;
13
12
  focus: boolean;
13
+ value: string;
14
14
  required: boolean;
15
- size: "m" | "s" | "l" | "full";
15
+ size: "s" | "m" | "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 & {
10
- value: string;
11
10
  name: string;
12
11
  label: string;
12
+ value: string;
13
13
  required: boolean;
14
- size: "m" | "s" | "l" | "full";
14
+ size: "s" | "m" | "l" | "full";
15
15
  disabled: boolean;
16
16
  placeholder: string;
17
17
  layout: "" | "vertical" | "horizontal";
@@ -17,7 +17,6 @@
17
17
 
18
18
  .weda-list-view__container .weda-list-view__content-blank {
19
19
  display: flex;
20
- align-items: center;
21
20
  justify-content: center;
22
21
  flex-direction: column;
23
22
  }
@@ -32,8 +31,7 @@
32
31
  flex-wrap: wrap;
33
32
  }
34
33
 
35
- .weda-list-view__container
36
- .weda-list-view__more.weda-list-view__content-loading {
34
+ .weda-list-view__container .weda-list-view__more.weda-list-view__content-loading {
37
35
  background-color: transparent;
38
36
  position: absolute;
39
37
  top: 0;
@@ -89,22 +87,17 @@
89
87
  border-radius: 50%;
90
88
  }
91
89
 
92
- .weda-list-view__container
93
- .weda-list-view__more
94
- .weda-list-view__symbol-item:first-child {
90
+ .weda-list-view__container .weda-list-view__more .weda-list-view__symbol-item:first-child {
95
91
  width: 6px;
96
92
  height: 6px;
97
93
  margin-left: 0;
98
94
  }
99
95
 
100
96
  /* 加载更多 分页 */
101
- .weda-list-view__container
102
- .weda-list-view__more.weda-list-view__more-bottomLoad {
97
+ .weda-list-view__container .weda-list-view__more.weda-list-view__more-bottomLoad {
103
98
  background-color: transparent;
104
99
  }
105
- .weda-list-view__container
106
- .weda-list-view__more
107
- .weda-list-view__more-pagination {
100
+ .weda-list-view__container .weda-list-view__more .weda-list-view__more-pagination {
108
101
  display: flex;
109
102
  align-items: center;
110
103
  justify-content: space-between;
@@ -113,12 +106,8 @@
113
106
  box-sizing: border-box;
114
107
  }
115
108
 
116
- .weda-list-view__container
117
- .weda-list-view__more
118
- .weda-list-view__pagination-pre,
119
- .weda-list-view__container
120
- .weda-list-view__more
121
- .weda-list-view__pagination-next {
109
+ .weda-list-view__container .weda-list-view__more .weda-list-view__pagination-pre,
110
+ .weda-list-view__container .weda-list-view__more .weda-list-view__pagination-next {
122
111
  font-size: 0.85714em;
123
112
  line-height: 1.71428em;
124
113
  color: rgba(0, 0, 0, 0.4);
@@ -126,21 +115,13 @@
126
115
  cursor: pointer;
127
116
  }
128
117
 
129
- .weda-list-view__container
130
- .weda-list-view__more
131
- .weda-list-view__pagination-pre.active,
132
- .weda-list-view__container
133
- .weda-list-view__more
134
- .weda-list-view__pagination-next.active {
118
+ .weda-list-view__container .weda-list-view__more .weda-list-view__pagination-pre.active,
119
+ .weda-list-view__container .weda-list-view__more .weda-list-view__pagination-next.active {
135
120
  color: rgba(0, 0, 0, 0.9);
136
121
  }
137
122
 
138
- .weda-list-view__container
139
- .weda-list-view__more
140
- .weda-list-view__pagination-pre::before,
141
- .weda-list-view__container
142
- .weda-list-view__more
143
- .weda-list-view__pagination-next::after {
123
+ .weda-list-view__container .weda-list-view__more .weda-list-view__pagination-pre::before,
124
+ .weda-list-view__container .weda-list-view__more .weda-list-view__pagination-next::after {
144
125
  position: absolute;
145
126
  content: '';
146
127
  width: 1.71428em;
@@ -150,31 +131,21 @@
150
131
  background-image: url(data:image/svg+xml;charset=utf-8;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjE3MTkgMTIuMDAwMkw4LjIyMTkyIDcuMDUwMjNMOS42MzU5MiA1LjYzNjIzTDE1Ljk5OTkgMTIuMDAwMkw5LjYzNTkyIDE4LjM2NDJMOC4yMjE5MiAxNi45NTAyTDEzLjE3MTkgMTIuMDAwMloiIGZpbGw9IiMwOTEyMUYiLz4KPC9zdmc+Cg==);
151
132
  }
152
133
 
153
- .weda-list-view__container
154
- .weda-list-view__more
155
- .active.weda-list-view__pagination-pre::before,
156
- .weda-list-view__container
157
- .weda-list-view__more
158
- .active.weda-list-view__pagination-next::after {
134
+ .weda-list-view__container .weda-list-view__more .active.weda-list-view__pagination-pre::before,
135
+ .weda-list-view__container .weda-list-view__more .active.weda-list-view__pagination-next::after {
159
136
  opacity: 1;
160
137
  }
161
138
 
162
- .weda-list-view__container
163
- .weda-list-view__more
164
- .weda-list-view__pagination-pre::before {
139
+ .weda-list-view__container .weda-list-view__more .weda-list-view__pagination-pre::before {
165
140
  left: 16px;
166
141
  transform: rotate(180deg);
167
142
  }
168
143
 
169
- .weda-list-view__container
170
- .weda-list-view__more
171
- .weda-list-view__pagination-next::after {
144
+ .weda-list-view__container .weda-list-view__more .weda-list-view__pagination-next::after {
172
145
  right: 18px;
173
146
  }
174
147
 
175
- .weda-list-view__container
176
- .weda-list-view__more
177
- .weda-list-view__pagination-text {
148
+ .weda-list-view__container .weda-list-view__more .weda-list-view__pagination-text {
178
149
  font-size: 0.85714em;
179
150
  line-height: 1.71428em;
180
151
  color: rgba(0, 0, 0, 0.4);
@@ -3,33 +3,19 @@ import React from 'react';
3
3
  import classNames from '../../utils/classnames';
4
4
  import { getTempFileURL } from '../../utils/tcb';
5
5
  import { v4 as uuidv4 } from 'uuid';
6
- import { LOAD_ERR_IMG_BASE64, RICH_TEXT_ICON_PACK, getWhitelist, } from '../../utils/constant';
6
+ import { LOAD_ERR_IMG_BASE64, RICH_TEXT_ICON_PACK, getWhitelist } from '../../utils/constant';
7
7
  import { renderDecorator } from '../form/renderDecorator';
8
8
  import { usePlatform } from '../../utils/platform';
9
9
  import { errorHandler } from '../../utils/error';
10
+ import { isPrivate } from '../../utils/isPrivate';
10
11
  import './style';
11
12
  import { useSyncValue } from '../../utils/hooks/useSyncValue';
12
13
  import xss from 'xss';
14
+ import onlineConfig from '../../../onlineConfig.json';
13
15
  // 默认图片类型
14
- const IMAGE_TYPES = [
15
- 'image/jpeg',
16
- 'image/png',
17
- 'image/gif',
18
- 'image/bmp',
19
- 'image/tiff',
20
- 'image/svg+xml',
21
- ];
16
+ const IMAGE_TYPES = ['image/jpeg', 'image/png', 'image/gif', 'image/bmp', 'image/tiff', 'image/svg+xml'];
22
17
  // 默认音频类型
23
- const AUDIO_TYPES = [
24
- 'audio/*',
25
- '.mp3',
26
- '.wma',
27
- '.aac',
28
- '.flac',
29
- '.wav',
30
- '.amr',
31
- '.m4a',
32
- ];
18
+ const AUDIO_TYPES = ['audio/*', '.mp3', '.wma', '.aac', '.flac', '.wav', '.amr', '.m4a'];
33
19
  const toolbarArrayH5 = [
34
20
  'fullscreen',
35
21
  'undo',
@@ -155,25 +141,38 @@ initialContent, placeholder, iconPack, maxSize, cloudPath, visible, }) {
155
141
  };
156
142
  React.useEffect(() => {
157
143
  if (!(window === null || window === void 0 ? void 0 : window.ExEditor3) && !loadEditorPromise) {
158
- loadEditorPromise = new Promise((resolve) => {
159
- const script = document.createElement('script');
160
- script.src =
161
- 'https://comp-public-replace-1303824488-cos.weda.tencent.com/richtext/3.9.1/exeditor3.min.js';
162
- script.onload = () => {
163
- resolve('');
164
- };
165
- document.body.appendChild(script);
166
- const link = document.createElement('link');
167
- link.setAttribute('rel', 'stylesheet');
168
- link.setAttribute('href', 'https://comp-public-replace-1303824488-cos.weda.tencent.com/richtext/3.9.1/exeditor3.min.css');
169
- const head = document.getElementsByTagName('head');
170
- if (head.length) {
171
- head[0].appendChild(link);
144
+ // 挂载资源
145
+ function loadSrc(src, css) {
146
+ return new Promise((resolve, reject) => {
147
+ const script = document.createElement('script');
148
+ script.src = src;
149
+ script.onload = () => resolve('');
150
+ script.onerror = () => reject('');
151
+ document.body.appendChild(script);
152
+ const link = document.createElement('link');
153
+ link.setAttribute('rel', 'stylesheet');
154
+ link.setAttribute('href', css);
155
+ const head = document.getElementsByTagName('head');
156
+ if (head.length) {
157
+ head[0].appendChild(link);
158
+ }
159
+ else {
160
+ document.body.appendChild(link);
161
+ }
162
+ });
163
+ }
164
+ try {
165
+ const cfg = onlineConfig.richText;
166
+ if (isPrivate()) {
167
+ loadEditorPromise = loadSrc(cfg.private.js, cfg.private.css).catch((_) => loadSrc(cfg.js, cfg.css));
172
168
  }
173
169
  else {
174
- document.body.appendChild(link);
170
+ loadEditorPromise = loadSrc(cfg.js, cfg.css);
175
171
  }
176
- });
172
+ }
173
+ catch (e) {
174
+ errorHandler({ code: 'LoadRichtextResourceError', error: e });
175
+ }
177
176
  }
178
177
  if (loadEditorPromise) {
179
178
  loadEditorPromise.then(() => {
@@ -337,8 +336,7 @@ initialContent, placeholder, iconPack, maxSize, cloudPath, visible, }) {
337
336
  var _a;
338
337
  const map = currentMap;
339
338
  if (map && Object.keys(map).length > 0) {
340
- Object.keys(map).every((key) => map[key]) &&
341
- ((_a = events === null || events === void 0 ? void 0 : events.finishUploadAll) === null || _a === void 0 ? void 0 : _a.call(events, { value: map }));
339
+ Object.keys(map).every((key) => map[key]) && ((_a = events === null || events === void 0 ? void 0 : events.finishUploadAll) === null || _a === void 0 ? void 0 : _a.call(events, { value: map }));
342
340
  }
343
341
  }, [currentMap]);
344
342
  const children = (_f = (_e = (_d = toolbarDomRef === null || toolbarDomRef === void 0 ? void 0 : toolbarDomRef.current) === null || _d === void 0 ? void 0 : _d.children) === null || _e === void 0 ? void 0 : _e[0]) === null || _f === void 0 ? void 0 : _f.children;
@@ -350,9 +348,7 @@ initialContent, placeholder, iconPack, maxSize, cloudPath, visible, }) {
350
348
  children[i].remove();
351
349
  }
352
350
  else {
353
- setToolbar(`${toolbarArrayH5.slice(0, i).join(' ')} fold(${toolbarArrayH5
354
- .slice(i)
355
- .join(' ')})`);
351
+ setToolbar(`${toolbarArrayH5.slice(0, i).join(' ')} fold(${toolbarArrayH5.slice(i).join(' ')})`);
356
352
  break;
357
353
  }
358
354
  }
@@ -365,24 +361,14 @@ initialContent, placeholder, iconPack, maxSize, cloudPath, visible, }) {
365
361
  const basicDiv = (_a = editorDomRef.current) === null || _a === void 0 ? void 0 : _a.querySelector('.ExEditor-basic');
366
362
  if (basicDiv) {
367
363
  basicDiv.style.maxHeight =
368
- (style === null || style === void 0 ? void 0 : style.height) && editorHeight
369
- ? `calc(${style === null || style === void 0 ? void 0 : style.height} - ${editorHeight}px)`
370
- : '100%';
364
+ (style === null || style === void 0 ? void 0 : style.height) && editorHeight ? `calc(${style === null || style === void 0 ? void 0 : style.height} - ${editorHeight}px)` : '100%';
371
365
  }
372
366
  }
373
- }, [
374
- style === null || style === void 0 ? void 0 : style.height,
375
- editorHeight,
376
- (_g = toolbarDomRef === null || toolbarDomRef === void 0 ? void 0 : toolbarDomRef.current) === null || _g === void 0 ? void 0 : _g.clientHeight,
377
- platform,
378
- ]);
367
+ }, [style === null || style === void 0 ? void 0 : style.height, editorHeight, (_g = toolbarDomRef === null || toolbarDomRef === void 0 ? void 0 : toolbarDomRef.current) === null || _g === void 0 ? void 0 : _g.clientHeight, platform]);
379
368
  const richTextEl = (_jsx("div", { className: subCls, style: { height: '100%' }, ref: containerRef, children: _jsx("div", { className: 'richtext-inner', style: { height: '100%' }, children: _jsxs("div", { className: "weda-richtext-container", id: id, children: [_jsx("div", { ref: toolbarDomRef, className: "weda-richtext-toolbar", role: "richtext", style: {
380
- ['--exeditor-edge-top']: (((_j = (_h = toolbarDomRef === null || toolbarDomRef === void 0 ? void 0 : toolbarDomRef.current) === null || _h === void 0 ? void 0 : _h.getBoundingClientRect()) === null || _j === void 0 ? void 0 : _j.top) ||
381
- document.body.clientHeight) + 'px',
369
+ ['--exeditor-edge-top']: (((_j = (_h = toolbarDomRef === null || toolbarDomRef === void 0 ? void 0 : toolbarDomRef.current) === null || _h === void 0 ? void 0 : _h.getBoundingClientRect()) === null || _j === void 0 ? void 0 : _j.top) || document.body.clientHeight) + 'px',
382
370
  } }), _jsx("div", { ref: editorDomRef, className: "weda-richtext-editor", style: {
383
- height: editorHeight
384
- ? `calc(100% - ${editorHeight + 1}px)`
385
- : '100%',
371
+ height: editorHeight ? `calc(100% - ${editorHeight + 1}px)` : '100%',
386
372
  width: '100%',
387
373
  caretColor: readOnly || disabled ? 'transparent' : 'unset',
388
374
  } })] }) }) }));
@@ -5,8 +5,8 @@ import type { DataType, EventsType } from '../../../configs/components/wd-input'
5
5
  * 标准化:单行输入组件
6
6
  */
7
7
  export declare const WdInput: React.ForwardRefExoticComponent<CommonPropsType & {
8
- type?: string;
9
8
  name?: string;
9
+ type?: string;
10
10
  label?: string;
11
11
  template?: string;
12
12
  focus?: boolean;
@@ -40,9 +40,9 @@ export declare const WdInput: React.ForwardRefExoticComponent<CommonPropsType &
40
40
  borderedH5?: boolean;
41
41
  borderedPc?: boolean;
42
42
  rules?: {
43
- format: string;
44
43
  message: string;
45
44
  pattern: string;
45
+ format: string;
46
46
  }[];
47
47
  requiredFlag?: boolean;
48
48
  requiredMsg?: string;