@cloudbase/weda-ui 3.16.0 → 3.17.1

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 (64) hide show
  1. package/dist/configs/components/container.js +0 -3
  2. package/dist/configs/components/wd-ad.d.ts +10 -1
  3. package/dist/configs/components/wd-ad.js +31 -1
  4. package/dist/configs/components/wd-cascader.d.ts +4 -0
  5. package/dist/configs/components/wd-checkbox.d.ts +4 -0
  6. package/dist/configs/components/wd-code-editor.d.ts +4 -0
  7. package/dist/configs/components/wd-date-range.d.ts +4 -0
  8. package/dist/configs/components/wd-date.d.ts +4 -0
  9. package/dist/configs/components/wd-department.d.ts +6 -0
  10. package/dist/configs/components/wd-department.js +1 -1
  11. package/dist/configs/components/wd-form-arr.d.ts +4 -0
  12. package/dist/configs/components/wd-form-detail.d.ts +4 -0
  13. package/dist/configs/components/wd-form-obj.d.ts +4 -0
  14. package/dist/configs/components/wd-input-email.d.ts +4 -0
  15. package/dist/configs/components/wd-input-number.d.ts +4 -0
  16. package/dist/configs/components/wd-input-phone.d.ts +4 -0
  17. package/dist/configs/components/wd-input-url.d.ts +4 -0
  18. package/dist/configs/components/wd-input.d.ts +4 -0
  19. package/dist/configs/components/wd-location.d.ts +4 -0
  20. package/dist/configs/components/wd-member.d.ts +4 -0
  21. package/dist/configs/components/wd-radio.d.ts +4 -0
  22. package/dist/configs/components/wd-rating.d.ts +4 -0
  23. package/dist/configs/components/wd-region.d.ts +4 -0
  24. package/dist/configs/components/wd-rich-text.d.ts +4 -0
  25. package/dist/configs/components/wd-select-multiple.d.ts +4 -0
  26. package/dist/configs/components/wd-select.d.ts +4 -0
  27. package/dist/configs/components/wd-switch.d.ts +4 -0
  28. package/dist/configs/components/wd-table.d.ts +1 -1
  29. package/dist/configs/components/wd-table.js +1 -1
  30. package/dist/configs/components/wd-tag-select.d.ts +4 -0
  31. package/dist/configs/components/wd-tag.d.ts +4 -0
  32. package/dist/configs/components/wd-textarea.d.ts +4 -0
  33. package/dist/configs/components/wd-time.d.ts +4 -0
  34. package/dist/configs/components/wd-upload-file.d.ts +4 -0
  35. package/dist/configs/components/wd-upload-image.d.ts +207 -15
  36. package/dist/configs/components/wd-upload-image.js +143 -6
  37. package/dist/configs/components/web-view.js +1 -1
  38. package/dist/configs/index.d.ts +522 -8
  39. package/dist/configs/type-utils/type-form.d.ts +4 -0
  40. package/dist/configs/type-utils/type-form.js +4 -0
  41. package/dist/configs/type-utils/x-runtime-default.d.ts +2 -0
  42. package/dist/configs/type-utils/x-runtime-default.js +2 -0
  43. package/dist/configs/utils/field.d.ts +1 -0
  44. package/dist/configs/utils/field.js +95 -0
  45. package/dist/style/weda-ui.min.css +1 -1
  46. package/dist/web/components/form/uploader/index.d.ts +1 -0
  47. package/dist/web/components/form/uploader/index.js +7 -4
  48. package/dist/web/components/form/uploader/upload/index.d.ts +26 -0
  49. package/dist/web/components/form/uploader/upload/index.js +200 -0
  50. package/dist/web/components/form/uploader/uploader.h5.d.ts +6 -1
  51. package/dist/web/components/form/uploader/uploader.h5.js +26 -94
  52. package/dist/web/components/form/uploader/uploader.pc.d.ts +1 -1
  53. package/dist/web/components/form/uploader/uploader.pc.js +30 -100
  54. package/dist/web/components/form/uploader/util.d.ts +16 -0
  55. package/dist/web/components/form/uploader/util.js +106 -5
  56. package/dist/web/components/richText/index.js +3 -1
  57. package/dist/web/components/uploaderView/index.js +1 -1
  58. package/dist/web/components/wd-ad/wd-ad.js +2 -4
  59. package/dist/web/components/wd-form/hooks/use-remote-value.js +18 -18
  60. package/dist/web/components/wd-modal/wd-modal.js +10 -13
  61. package/dist/web/components/wd-upload-image/wd-upload-image.js +14 -4
  62. package/package.json +5 -5
  63. package/dist/web/components/form/uploader/useUploadFile.d.ts +0 -16
  64. package/dist/web/components/form/uploader/useUploadFile.js +0 -99
@@ -9,9 +9,6 @@ const data = Type.Object({
9
9
  title: '数据',
10
10
  description: '可通过 $w.<id>.data 引用到',
11
11
  default: {},
12
- 'x-props': {
13
- 'data-hidebind': true,
14
- },
15
12
  })),
16
13
  });
17
14
  const config = defineConfig({
@@ -6,6 +6,8 @@ declare const data: import("@sinclair/typebox").TObject<{
6
6
  adTheme: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
7
7
  adIntervals: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
8
8
  gridCount: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<number>>;
9
+ multiton: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
10
+ disableFallbackSharePage: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
9
11
  }>;
10
12
  declare const config: {
11
13
  readonly $schema: "https://comp-public-replace-1303824488-cos.weda.tencent.com/schema/lcds_component.json";
@@ -15,6 +17,8 @@ declare const config: {
15
17
  adTheme: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
16
18
  adIntervals: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
17
19
  gridCount: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<number>>;
20
+ multiton: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
21
+ disableFallbackSharePage: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
18
22
  }>;
19
23
  readonly classes: readonly [{
20
24
  readonly name: "根元素";
@@ -25,7 +29,12 @@ declare const config: {
25
29
  readonly selector: ".wd-mp-ad";
26
30
  readonly description: "可以为小程序端的广告编写样式";
27
31
  }];
28
- readonly methods: readonly [];
32
+ readonly methods: readonly [{
33
+ readonly name: "show";
34
+ readonly label: "显示激励视频广告";
35
+ readonly 'x-platforms': readonly ["MP"];
36
+ readonly description: "显示激励视频广告。激励视频广告将从屏幕下方推入。";
37
+ }];
29
38
  readonly events: readonly [{
30
39
  readonly name: "load";
31
40
  readonly title: "广告加载成功";
@@ -4,6 +4,7 @@ const AD_TYPE = [
4
4
  { label: 'Banner 广告', value: 'banner' },
5
5
  { label: '视频广告', value: 'video' },
6
6
  { label: '格子广告', value: 'grid' },
7
+ { label: '激励视频广告', value: 'rewardedVideoAd' },
7
8
  ];
8
9
  const AD_THEME = [
9
10
  { label: '白色', value: 'white' },
@@ -27,6 +28,16 @@ const data = Type.Partial(Type.Object({
27
28
  target: 'gridCount',
28
29
  condition: '{{$self.value === "grid"}}',
29
30
  },
31
+ {
32
+ type: 'value:visible',
33
+ target: '*(adTheme,adIntervals)',
34
+ condition: '{{$self.value !== "rewardedVideoAd"}}',
35
+ },
36
+ {
37
+ type: 'value:visible',
38
+ target: '*(multiton,disableFallbackSharePage)',
39
+ condition: '{{$self.value === "rewardedVideoAd"}}',
40
+ },
30
41
  ],
31
42
  }),
32
43
  unitId: Type.String({
@@ -59,6 +70,18 @@ const data = Type.Partial(Type.Object({
59
70
  'x-category': '通用',
60
71
  'x-index': 50,
61
72
  }),
73
+ multiton: Type.Boolean({
74
+ title: '多例模式',
75
+ 'x-runtime-default': X_RUNTIME_DEFAULT.multiton,
76
+ 'x-category': '通用',
77
+ 'x-index': 60,
78
+ }),
79
+ disableFallbackSharePage: Type.Boolean({
80
+ title: '禁用分享页',
81
+ 'x-runtime-default': X_RUNTIME_DEFAULT.disableFallbackSharePage,
82
+ 'x-category': '通用',
83
+ 'x-index': 70,
84
+ }),
62
85
  }));
63
86
  const config = defineConfig({
64
87
  $schema: 'https://comp-public-replace-1303824488-cos.weda.tencent.com/schema/lcds_component.json',
@@ -75,7 +98,14 @@ const config = defineConfig({
75
98
  description: '可以为小程序端的广告编写样式',
76
99
  },
77
100
  ],
78
- methods: [],
101
+ methods: [
102
+ {
103
+ name: 'show',
104
+ label: '显示激励视频广告',
105
+ 'x-platforms': ['MP'],
106
+ description: '显示激励视频广告。激励视频广告将从屏幕下方推入。',
107
+ },
108
+ ],
79
109
  events: [
80
110
  { name: 'load', title: '广告加载成功', 'x-platforms': ['MP'] },
81
111
  { name: 'error', title: '广告加载失败', 'x-platforms': ['MP'] },
@@ -194,6 +194,10 @@ declare const config: {
194
194
  props: string[];
195
195
  };
196
196
  readonly group: {
197
+ 模板: {
198
+ 'x-index': number;
199
+ expand: boolean;
200
+ };
197
201
  标签项: {
198
202
  'x-index': number;
199
203
  expand: boolean;
@@ -157,6 +157,10 @@ declare const config: {
157
157
  props: string[];
158
158
  };
159
159
  readonly group: {
160
+ 模板: {
161
+ 'x-index': number;
162
+ expand: boolean;
163
+ };
160
164
  标签项: {
161
165
  'x-index': number;
162
166
  expand: boolean;
@@ -170,6 +170,10 @@ declare const config: {
170
170
  props: string[];
171
171
  };
172
172
  readonly group: {
173
+ 模板: {
174
+ 'x-index': number;
175
+ expand: boolean;
176
+ };
173
177
  标签项: {
174
178
  'x-index': number;
175
179
  expand: boolean;
@@ -187,6 +187,10 @@ declare const config: {
187
187
  props: string[];
188
188
  };
189
189
  readonly group: {
190
+ 模板: {
191
+ 'x-index': number;
192
+ expand: boolean;
193
+ };
190
194
  标签项: {
191
195
  'x-index': number;
192
196
  expand: boolean;
@@ -180,6 +180,10 @@ declare const config: {
180
180
  props: string[];
181
181
  };
182
182
  readonly group: {
183
+ 模板: {
184
+ 'x-index': number;
185
+ expand: boolean;
186
+ };
183
187
  标签项: {
184
188
  'x-index': number;
185
189
  expand: boolean;
@@ -33,6 +33,7 @@ declare const data: import("@sinclair/typebox").TObject<{
33
33
  name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
34
34
  value: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString & {
35
35
  title: string;
36
+ default: any;
36
37
  }>;
37
38
  placeholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString & {
38
39
  default: string;
@@ -74,6 +75,7 @@ declare const config: {
74
75
  name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
75
76
  value: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString & {
76
77
  title: string;
78
+ default: any;
77
79
  }>;
78
80
  placeholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString & {
79
81
  default: string;
@@ -180,6 +182,10 @@ declare const config: {
180
182
  props: string[];
181
183
  };
182
184
  readonly group: {
185
+ 模板: {
186
+ 'x-index': number;
187
+ expand: boolean;
188
+ };
183
189
  标签项: {
184
190
  'x-index': number;
185
191
  expand: boolean;
@@ -22,7 +22,7 @@ const TITLE = getFormItemDataTitle('部门');
22
22
  const data = Type.Partial(Type.Object({
23
23
  // 通用
24
24
  name: FORM_ITEM_DATA.name,
25
- value: Object.assign({}, FORM_ITEM_DATA.value, { title: '选中值' }),
25
+ value: Object.assign({}, FORM_ITEM_DATA.value, { title: '选中值', default: null }),
26
26
  placeholder: Object.assign({}, FORM_ITEM_DATA.placeholder, {
27
27
  default: '请选择部门',
28
28
  }),
@@ -105,6 +105,10 @@ declare const config: {
105
105
  readonly icon: "../icons/Text.svg";
106
106
  readonly category: "表单";
107
107
  readonly group: {
108
+ 模板: {
109
+ 'x-index': number;
110
+ expand: boolean;
111
+ };
108
112
  标签项: {
109
113
  'x-index': number;
110
114
  expand: boolean;
@@ -117,6 +117,10 @@ declare const config: {
117
117
  readonly icon: "../icons/Text.svg";
118
118
  readonly category: "表单";
119
119
  readonly group: {
120
+ 模板: {
121
+ 'x-index': number;
122
+ expand: boolean;
123
+ };
120
124
  标签项: {
121
125
  'x-index': number;
122
126
  expand: boolean;
@@ -94,6 +94,10 @@ declare const config: {
94
94
  readonly icon: "../icons/Text.svg";
95
95
  readonly category: "表单";
96
96
  readonly group: {
97
+ 模板: {
98
+ 'x-index': number;
99
+ expand: boolean;
100
+ };
97
101
  标签项: {
98
102
  'x-index': number;
99
103
  expand: boolean;
@@ -216,6 +216,10 @@ declare const config: {
216
216
  props: string[];
217
217
  };
218
218
  readonly group: {
219
+ 模板: {
220
+ 'x-index': number;
221
+ expand: boolean;
222
+ };
219
223
  标签项: {
220
224
  'x-index': number;
221
225
  expand: boolean;
@@ -372,6 +372,10 @@ declare const config: {
372
372
  props: string[];
373
373
  };
374
374
  readonly group: {
375
+ 模板: {
376
+ 'x-index': number;
377
+ expand: boolean;
378
+ };
375
379
  标签项: {
376
380
  'x-index': number;
377
381
  expand: boolean;
@@ -214,6 +214,10 @@ declare const config: {
214
214
  props: string[];
215
215
  };
216
216
  readonly group: {
217
+ 模板: {
218
+ 'x-index': number;
219
+ expand: boolean;
220
+ };
217
221
  标签项: {
218
222
  'x-index': number;
219
223
  expand: boolean;
@@ -216,6 +216,10 @@ declare const config: {
216
216
  props: string[];
217
217
  };
218
218
  readonly group: {
219
+ 模板: {
220
+ 'x-index': number;
221
+ expand: boolean;
222
+ };
219
223
  标签项: {
220
224
  'x-index': number;
221
225
  expand: boolean;
@@ -306,6 +306,10 @@ declare const config: {
306
306
  props: string[];
307
307
  };
308
308
  readonly group: {
309
+ 模板: {
310
+ 'x-index': number;
311
+ expand: boolean;
312
+ };
309
313
  标签项: {
310
314
  'x-index': number;
311
315
  expand: boolean;
@@ -212,6 +212,10 @@ declare const config: {
212
212
  props: string[];
213
213
  };
214
214
  readonly group: {
215
+ 模板: {
216
+ 'x-index': number;
217
+ expand: boolean;
218
+ };
215
219
  标签项: {
216
220
  'x-index': number;
217
221
  expand: boolean;
@@ -186,6 +186,10 @@ declare const config: {
186
186
  props: string[];
187
187
  };
188
188
  readonly group: {
189
+ 模板: {
190
+ 'x-index': number;
191
+ expand: boolean;
192
+ };
189
193
  标签项: {
190
194
  'x-index': number;
191
195
  expand: boolean;
@@ -160,6 +160,10 @@ declare const config: {
160
160
  props: string[];
161
161
  };
162
162
  readonly group: {
163
+ 模板: {
164
+ 'x-index': number;
165
+ expand: boolean;
166
+ };
163
167
  标签项: {
164
168
  'x-index': number;
165
169
  expand: boolean;
@@ -185,6 +185,10 @@ declare const config: {
185
185
  readonly 'x-index': 2;
186
186
  readonly expand: false;
187
187
  };
188
+ readonly 模板: {
189
+ 'x-index': number;
190
+ expand: boolean;
191
+ };
188
192
  readonly 标签项: {
189
193
  'x-index': number;
190
194
  expand: boolean;
@@ -166,6 +166,10 @@ declare const config: {
166
166
  props: string[];
167
167
  };
168
168
  readonly group: {
169
+ 模板: {
170
+ 'x-index': number;
171
+ expand: boolean;
172
+ };
169
173
  标签项: {
170
174
  'x-index': number;
171
175
  expand: boolean;
@@ -138,6 +138,10 @@ declare const config: {
138
138
  props: string[];
139
139
  };
140
140
  readonly group: {
141
+ 模板: {
142
+ 'x-index': number;
143
+ expand: boolean;
144
+ };
141
145
  标签项: {
142
146
  'x-index': number;
143
147
  expand: boolean;
@@ -304,6 +304,10 @@ declare const config: {
304
304
  props: string[];
305
305
  };
306
306
  readonly group: {
307
+ 模板: {
308
+ 'x-index': number;
309
+ expand: boolean;
310
+ };
307
311
  标签项: {
308
312
  'x-index': number;
309
313
  expand: boolean;
@@ -297,6 +297,10 @@ declare const config: {
297
297
  props: string[];
298
298
  };
299
299
  readonly group: {
300
+ 模板: {
301
+ 'x-index': number;
302
+ expand: boolean;
303
+ };
300
304
  标签项: {
301
305
  'x-index': number;
302
306
  expand: boolean;
@@ -149,6 +149,10 @@ declare const config: {
149
149
  props: string[];
150
150
  };
151
151
  readonly group: {
152
+ 模板: {
153
+ 'x-index': number;
154
+ expand: boolean;
155
+ };
152
156
  标签项: {
153
157
  'x-index': number;
154
158
  expand: boolean;
@@ -373,7 +373,7 @@ declare const config: {
373
373
  recordIndex: import("@sinclair/typebox").TNumber;
374
374
  columnIndex: import("@sinclair/typebox").TNumber;
375
375
  }>;
376
- readonly description: "点击表格某一行时触发";
376
+ readonly description: "点击表格某一列时触发";
377
377
  readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
378
378
  }, {
379
379
  readonly title: "选中行改变";
@@ -1782,7 +1782,7 @@ const config = defineConfig({
1782
1782
  description: '选中列index',
1783
1783
  }),
1784
1784
  }),
1785
- description: '点击表格某一行时触发',
1785
+ description: '点击表格某一列时触发',
1786
1786
  'x-platforms': ['MOBILEWEB', 'PCWEB'],
1787
1787
  },
1788
1788
  {
@@ -179,6 +179,10 @@ declare const config: {
179
179
  props: string[];
180
180
  };
181
181
  readonly group: {
182
+ 模板: {
183
+ 'x-index': number;
184
+ expand: boolean;
185
+ };
182
186
  标签项: {
183
187
  'x-index': number;
184
188
  expand: boolean;
@@ -83,6 +83,10 @@ declare const config: {
83
83
  readonly componentOrder: 355;
84
84
  readonly category: "展示";
85
85
  readonly group: {
86
+ 模板: {
87
+ 'x-index': number;
88
+ expand: boolean;
89
+ };
86
90
  标签项: {
87
91
  'x-index': number;
88
92
  expand: boolean;
@@ -191,6 +191,10 @@ declare const config: {
191
191
  props: string[];
192
192
  };
193
193
  readonly group: {
194
+ 模板: {
195
+ 'x-index': number;
196
+ expand: boolean;
197
+ };
194
198
  标签项: {
195
199
  'x-index': number;
196
200
  expand: boolean;
@@ -207,6 +207,10 @@ declare const config: {
207
207
  props: string[];
208
208
  };
209
209
  readonly group: {
210
+ 模板: {
211
+ 'x-index': number;
212
+ expand: boolean;
213
+ };
210
214
  标签项: {
211
215
  'x-index': number;
212
216
  expand: boolean;
@@ -134,6 +134,10 @@ declare const config: {
134
134
  props: string[];
135
135
  };
136
136
  group: {
137
+ 模板: {
138
+ 'x-index': number;
139
+ expand: boolean;
140
+ };
137
141
  标签项: {
138
142
  'x-index': number;
139
143
  expand: boolean;