@cloudbase/weda-ui 3.18.8 → 3.19.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 (41) hide show
  1. package/dist/configs/components/chart/bar.js +0 -62
  2. package/dist/configs/components/chart/line.js +0 -62
  3. package/dist/configs/components/chart/pie.js +0 -62
  4. package/dist/configs/components/chart/statisticsCard.json +3 -52
  5. package/dist/configs/components/lottery.d.ts +2 -0
  6. package/dist/configs/components/lottery.js +6 -1
  7. package/dist/configs/components/wd-checkbox.d.ts +4 -1
  8. package/dist/configs/components/wd-checkbox.js +15 -1
  9. package/dist/configs/components/wd-image.js +1 -0
  10. package/dist/configs/components/wd-radio.d.ts +4 -1
  11. package/dist/configs/components/wd-radio.js +4 -0
  12. package/dist/configs/components/wd-select-multiple.d.ts +4 -1
  13. package/dist/configs/components/wd-select-multiple.js +11 -1
  14. package/dist/configs/components/wd-select.d.ts +4 -1
  15. package/dist/configs/components/wd-table.d.ts +16 -0
  16. package/dist/configs/components/wd-table.js +19 -2
  17. package/dist/configs/components/wd-tag-select.d.ts +4 -1
  18. package/dist/configs/components/wd-tag-select.js +11 -1
  19. package/dist/configs/components/wd-top-tab.d.ts +6 -1
  20. package/dist/configs/components/wd-top-tab.js +16 -1
  21. package/dist/configs/components/wd-tree.d.ts +33 -0
  22. package/dist/configs/components/wd-tree.js +58 -0
  23. package/dist/configs/index.d.ts +112 -36
  24. package/dist/configs/type-utils/type-form.d.ts +8 -2
  25. package/dist/configs/type-utils/type-form.js +8 -1
  26. package/dist/style/index.css +2 -1
  27. package/dist/style/index.scss +1 -1
  28. package/dist/style/weda-ui.min.css +2 -2
  29. package/dist/web/components/customer-service/customer-service.js +4 -3
  30. package/dist/web/components/lottery/index.d.ts +1 -0
  31. package/dist/web/components/lottery/index.js +19 -47
  32. package/dist/web/components/lottery/lotteryUtil.d.ts +1 -1
  33. package/dist/web/components/lottery/lotteryUtil.js +4 -5
  34. package/dist/web/components/wd-table/components/ExportFileModalByApi/index.js +1 -1
  35. package/dist/web/components/wd-table/hooks/useTableData.js +8 -3
  36. package/dist/web/components/wd-table/wd-table.js +4 -0
  37. package/dist/web/components/wd-tree/utils.d.ts +29 -3
  38. package/dist/web/components/wd-tree/utils.js +26 -12
  39. package/dist/web/components/wd-tree/wd-tree.d.ts +1 -0
  40. package/dist/web/components/wd-tree/wd-tree.js +65 -40
  41. package/package.json +5 -5
@@ -19,6 +19,9 @@ declare const data: import("@sinclair/typebox").TObject<{
19
19
  expendIcon: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
20
20
  leafIcon: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
21
21
  line: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
22
+ isSupportSlot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
23
+ enableSearchText: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
24
+ contentSlot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<import("react").ReactNode>>;
22
25
  }>;
23
26
  declare const properties: import("@sinclair/typebox").TObject<{
24
27
  data: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TRecursive<import("@sinclair/typebox").TObject<{
@@ -39,6 +42,15 @@ declare const properties: import("@sinclair/typebox").TObject<{
39
42
  expandType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
40
43
  expandCustom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
41
44
  showIcon: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
45
+ treeNodeList: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TRecursive<import("@sinclair/typebox").TObject<{
46
+ label: import("@sinclair/typebox").TString;
47
+ value: import("@sinclair/typebox").TString;
48
+ foldIcon: import("@sinclair/typebox").TString;
49
+ expendIcon: import("@sinclair/typebox").TString;
50
+ leafIcon: import("@sinclair/typebox").TString;
51
+ children: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TThis>;
52
+ disabled: import("@sinclair/typebox").TBoolean;
53
+ }>>>;
42
54
  expandedNodes: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TRecursive<import("@sinclair/typebox").TObject<{
43
55
  label: import("@sinclair/typebox").TString;
44
56
  value: import("@sinclair/typebox").TString;
@@ -153,6 +165,9 @@ declare const config: {
153
165
  expendIcon: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
154
166
  leafIcon: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
155
167
  line: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
168
+ isSupportSlot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
169
+ enableSearchText: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
170
+ contentSlot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<import("react").ReactNode>>;
156
171
  }>;
157
172
  readonly properties: import("@sinclair/typebox").TObject<{
158
173
  data: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TRecursive<import("@sinclair/typebox").TObject<{
@@ -173,6 +188,15 @@ declare const config: {
173
188
  expandType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
174
189
  expandCustom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
175
190
  showIcon: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
191
+ treeNodeList: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TRecursive<import("@sinclair/typebox").TObject<{
192
+ label: import("@sinclair/typebox").TString;
193
+ value: import("@sinclair/typebox").TString;
194
+ foldIcon: import("@sinclair/typebox").TString;
195
+ expendIcon: import("@sinclair/typebox").TString;
196
+ leafIcon: import("@sinclair/typebox").TString;
197
+ children: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TThis>;
198
+ disabled: import("@sinclair/typebox").TBoolean;
199
+ }>>>;
176
200
  expandedNodes: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TRecursive<import("@sinclair/typebox").TObject<{
177
201
  label: import("@sinclair/typebox").TString;
178
202
  value: import("@sinclair/typebox").TString;
@@ -292,6 +316,11 @@ declare const config: {
292
316
  readonly name: "连接线";
293
317
  readonly selector: ".wd-tree--line";
294
318
  readonly description: "展示的连接线的样式";
319
+ }, {
320
+ readonly name: "节点容器区域";
321
+ readonly selector: ".wd-tree-node";
322
+ readonly description: "可以编写节点容器的样式";
323
+ readonly code: "\n :scope .wd-tree-node {\n height: auto;\n }\n ";
295
324
  }];
296
325
  readonly methods: readonly [{
297
326
  readonly name: "searchNode";
@@ -487,6 +516,10 @@ declare const config: {
487
516
  readonly 'x-index': 3;
488
517
  readonly expand: true;
489
518
  };
519
+ readonly 高级属性: {
520
+ readonly 'x-index': 4;
521
+ readonly expand: true;
522
+ };
490
523
  };
491
524
  readonly inlineStyleForm: {
492
525
  readonly flexDirection: {
@@ -242,6 +242,46 @@ const data = Type.Object({
242
242
  description: '开启后,各节点间将显示连接线',
243
243
  'x-category': '节点风格',
244
244
  })),
245
+ isSupportSlot: Type.Optional(Type.Boolean({
246
+ title: '开启插槽',
247
+ 'x-index': 105,
248
+ 'x-category': '高级属性',
249
+ default: false,
250
+ 'x-linkages': [
251
+ {
252
+ type: 'value:visible',
253
+ target: 'enableSearchText',
254
+ condition: '{{$self.value}}',
255
+ },
256
+ ],
257
+ })),
258
+ enableSearchText: Type.Optional(Type.Boolean({
259
+ title: '显示默认文本节点',
260
+ 'x-index': 106,
261
+ 'x-category': '高级属性',
262
+ 'x-runtime-default': true,
263
+ 'x-helper-text': '开启后展示默认文本节点,该节点支持搜索高亮',
264
+ })),
265
+ contentSlot: Type.Optional(Type.Slot({
266
+ title: '内容插槽',
267
+ 'x-index': 110,
268
+ 'x-category': '高级属性',
269
+ type: 'slot',
270
+ 'x-slot-auto': {
271
+ iterable: "{{ $form.values.isSupportSlot ?[{key:'treeNode',title:'内容插槽'}]:[] }}",
272
+ generator: '{{ {key:$item.key, title: ($item.title) } }}',
273
+ },
274
+ 'x-slot-scope': {
275
+ item: {
276
+ title: '节点对象',
277
+ type: 'object',
278
+ },
279
+ },
280
+ 'x-slot-directives': {
281
+ for: 'treeNodeList',
282
+ _index: 'itemIndex',
283
+ },
284
+ })),
245
285
  });
246
286
  const treeInfo = Type.Object({
247
287
  checkedState: Type.Optional(Type.Boolean({ title: '当前操作选中状态' })),
@@ -309,6 +349,9 @@ const treeInfo = Type.Object({
309
349
  title: '当前树信息',
310
350
  description: '用户操作后的相关树信息',
311
351
  });
352
+ const treeNodeList = Type.Array(Node, {
353
+ title: '当前树的扁平化结构信息',
354
+ });
312
355
  // 组件对外暴露的只读属性
313
356
  const properties = Type.Composite([
314
357
  Type.Pick(data, ['data', 'checkable']),
@@ -329,6 +372,7 @@ const properties = Type.Composite([
329
372
  Type.Object({
330
373
  treeInfo,
331
374
  }),
375
+ Type.Object({ treeNodeList }),
332
376
  ]);
333
377
  // export default
334
378
  const config = defineConfig({
@@ -374,6 +418,16 @@ const config = defineConfig({
374
418
  selector: '.wd-tree--line',
375
419
  description: '展示的连接线的样式',
376
420
  },
421
+ {
422
+ name: '节点容器区域',
423
+ selector: '.wd-tree-node',
424
+ description: '可以编写节点容器的样式',
425
+ code: `
426
+ :scope .wd-tree-node {
427
+ height: auto;
428
+ }
429
+ `,
430
+ },
377
431
  ],
378
432
  // 组件方法
379
433
  methods: [
@@ -451,6 +505,10 @@ const config = defineConfig({
451
505
  'x-index': 3,
452
506
  expand: true,
453
507
  },
508
+ ['高级属性']: {
509
+ 'x-index': 4,
510
+ expand: true,
511
+ },
454
512
  },
455
513
  inlineStyleForm: {
456
514
  flexDirection: { visible: false },
@@ -2180,6 +2180,9 @@ export declare const components: {
2180
2180
  expendIcon: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2181
2181
  leafIcon: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2182
2182
  line: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
2183
+ isSupportSlot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
2184
+ enableSearchText: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
2185
+ contentSlot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<import("react").ReactNode>>;
2183
2186
  }>;
2184
2187
  readonly properties: import("@sinclair/typebox").TObject<{
2185
2188
  data: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TRecursive<import("@sinclair/typebox").TObject<{
@@ -2200,6 +2203,15 @@ export declare const components: {
2200
2203
  expandType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
2201
2204
  expandCustom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
2202
2205
  showIcon: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
2206
+ treeNodeList: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TRecursive<import("@sinclair/typebox").TObject<{
2207
+ label: import("@sinclair/typebox").TString;
2208
+ value: import("@sinclair/typebox").TString;
2209
+ foldIcon: import("@sinclair/typebox").TString;
2210
+ expendIcon: import("@sinclair/typebox").TString;
2211
+ leafIcon: import("@sinclair/typebox").TString;
2212
+ children: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TThis>;
2213
+ disabled: import("@sinclair/typebox").TBoolean;
2214
+ }>>>;
2203
2215
  expandedNodes: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TRecursive<import("@sinclair/typebox").TObject<{
2204
2216
  label: import("@sinclair/typebox").TString;
2205
2217
  value: import("@sinclair/typebox").TString;
@@ -2319,6 +2331,11 @@ export declare const components: {
2319
2331
  readonly name: "连接线";
2320
2332
  readonly selector: ".wd-tree--line";
2321
2333
  readonly description: "展示的连接线的样式";
2334
+ }, {
2335
+ readonly name: "节点容器区域";
2336
+ readonly selector: ".wd-tree-node";
2337
+ readonly description: "可以编写节点容器的样式";
2338
+ readonly code: "\n :scope .wd-tree-node {\n height: auto;\n }\n ";
2322
2339
  }];
2323
2340
  readonly methods: readonly [{
2324
2341
  readonly name: "searchNode";
@@ -2514,6 +2531,10 @@ export declare const components: {
2514
2531
  readonly 'x-index': 3;
2515
2532
  readonly expand: true;
2516
2533
  };
2534
+ readonly 高级属性: {
2535
+ readonly 'x-index': 4;
2536
+ readonly expand: true;
2537
+ };
2517
2538
  };
2518
2539
  readonly inlineStyleForm: {
2519
2540
  readonly flexDirection: {
@@ -8626,18 +8647,6 @@ export declare const components: {
8626
8647
  type: string[];
8627
8648
  };
8628
8649
  customRelOptions: {
8629
- string: {
8630
- text: string;
8631
- value: string;
8632
- }[];
8633
- boolean: {
8634
- text: string;
8635
- value: string;
8636
- }[];
8637
- keyVarType: {
8638
- value: string;
8639
- text: string;
8640
- }[];
8641
8650
  number: {
8642
8651
  text: string;
8643
8652
  value: string;
@@ -9416,6 +9425,7 @@ export declare const components: {
9416
9425
  image: import("@sinclair/typebox").TString;
9417
9426
  }>>;
9418
9427
  enablePrize: import("@sinclair/typebox").TBoolean;
9428
+ duration: import("@sinclair/typebox").TNumber;
9419
9429
  prizeResult: import("@sinclair/typebox").TUnsafe<string>;
9420
9430
  }>;
9421
9431
  readonly events: [{
@@ -11742,6 +11752,14 @@ export declare const components: {
11742
11752
  readonly label: "清空选中项";
11743
11753
  readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
11744
11754
  readonly description: "清空选中项";
11755
+ }, {
11756
+ readonly name: "setSelectedKeys";
11757
+ readonly label: "设置行选中";
11758
+ readonly params: import("@sinclair/typebox").TObject<{
11759
+ selectedKeys: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
11760
+ }>;
11761
+ readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
11762
+ readonly description: "设置行选中";
11745
11763
  }];
11746
11764
  readonly events: readonly [{
11747
11765
  readonly title: "点击表格行";
@@ -12726,11 +12744,16 @@ export declare const components: {
12726
12744
  readonly name: "内容区域";
12727
12745
  readonly selector: ".wd-top-tab-root .wd-tabs__body";
12728
12746
  readonly description: "可以为顶部选项卡内容区域编写样式,例如:设置顶部选项卡内容区域高度撑满页面";
12729
- readonly code: ".wd-top-tab-root .wd-tabs__body {\n /* 设置顶部选项卡内容区域高度撑满页面 */\n /* 注意:此处需要设置为计算高度 【视口高度-选项卡头部标签区域高度】*/\n height: calc(100vh - 48px);\n overflow: auto;\n }\n ";
12747
+ readonly code: "\n /* 设置顶部选项卡内容区域高度撑满页面 */\n /* 注意:此处需要设置为计算高度 【视口高度-选项卡头部标签区域高度】*/\n .wd-top-tab-root .wd-tabs__body {\n height: calc(100vh - 48px);\n overflow: auto;\n }\n ";
12730
12748
  }, {
12731
12749
  readonly name: "选项卡超长自动滑动遮罩";
12732
12750
  readonly selector: ".wd-tabs-h5-root .wd-tabs__header-item-mask";
12733
12751
  readonly description: "可以为移动端选项卡设置滑动背景色,提示选项卡内容超长可滑动";
12752
+ }, {
12753
+ readonly name: "去除滚动条样式";
12754
+ readonly selector: "::-webkit-scrollbar";
12755
+ readonly description: "受安卓端小程序渲染限制,需通过添加全局样式去除滚动条";
12756
+ readonly code: "\n /* 注意: 添加此样式后,对全局滚动条生效*/\n ::-webkit-scrollbar {\n display: none;\n width: 0;\n height: 0;\n color: transparent;\n }\n ";
12734
12757
  }];
12735
12758
  readonly methods: readonly [{
12736
12759
  readonly name: "selectTab";
@@ -13804,7 +13827,10 @@ export declare const components: {
13804
13827
  visible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
13805
13828
  readOnly: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
13806
13829
  selectedLabel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
13807
- item: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{}>>;
13830
+ item: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
13831
+ label: import("@sinclair/typebox").TString;
13832
+ value: import("@sinclair/typebox").TString;
13833
+ }>>;
13808
13834
  }>;
13809
13835
  readonly classes: {
13810
13836
  name: string;
@@ -14111,7 +14137,10 @@ export declare const components: {
14111
14137
  after: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
14112
14138
  before: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
14113
14139
  selectedLabel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
14114
- item: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{}>>;
14140
+ item: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
14141
+ label: import("@sinclair/typebox").TString;
14142
+ value: import("@sinclair/typebox").TString;
14143
+ }>>;
14115
14144
  }>;
14116
14145
  readonly classes: {
14117
14146
  name: string;
@@ -17015,7 +17044,10 @@ export declare const components: {
17015
17044
  visible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
17016
17045
  readOnly: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
17017
17046
  selectedLabel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
17018
- item: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{}>>;
17047
+ item: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
17048
+ label: import("@sinclair/typebox").TString;
17049
+ value: import("@sinclair/typebox").TString;
17050
+ }>>;
17019
17051
  }>;
17020
17052
  readonly classes: {
17021
17053
  name: string;
@@ -17225,7 +17257,10 @@ export declare const components: {
17225
17257
  visible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
17226
17258
  readOnly: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
17227
17259
  selectedLabel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
17228
- item: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{}>>;
17260
+ item: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
17261
+ label: import("@sinclair/typebox").TString;
17262
+ value: import("@sinclair/typebox").TString;
17263
+ }>>;
17229
17264
  }>;
17230
17265
  readonly classes: {
17231
17266
  name: string;
@@ -17701,7 +17736,10 @@ export declare const components: {
17701
17736
  value: import("@sinclair/typebox").TString;
17702
17737
  }>>>;
17703
17738
  selectedLabel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
17704
- item: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{}>>;
17739
+ item: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
17740
+ label: import("@sinclair/typebox").TString;
17741
+ value: import("@sinclair/typebox").TString;
17742
+ }>>;
17705
17743
  }>;
17706
17744
  readonly classes: {
17707
17745
  name: string;
@@ -21691,6 +21729,9 @@ declare const _default: {
21691
21729
  expendIcon: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
21692
21730
  leafIcon: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
21693
21731
  line: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
21732
+ isSupportSlot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
21733
+ enableSearchText: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
21734
+ contentSlot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<import("react").ReactNode>>;
21694
21735
  }>;
21695
21736
  readonly properties: import("@sinclair/typebox").TObject<{
21696
21737
  data: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TRecursive<import("@sinclair/typebox").TObject<{
@@ -21711,6 +21752,15 @@ declare const _default: {
21711
21752
  expandType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
21712
21753
  expandCustom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
21713
21754
  showIcon: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
21755
+ treeNodeList: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TRecursive<import("@sinclair/typebox").TObject<{
21756
+ label: import("@sinclair/typebox").TString;
21757
+ value: import("@sinclair/typebox").TString;
21758
+ foldIcon: import("@sinclair/typebox").TString;
21759
+ expendIcon: import("@sinclair/typebox").TString;
21760
+ leafIcon: import("@sinclair/typebox").TString;
21761
+ children: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TThis>;
21762
+ disabled: import("@sinclair/typebox").TBoolean;
21763
+ }>>>;
21714
21764
  expandedNodes: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TRecursive<import("@sinclair/typebox").TObject<{
21715
21765
  label: import("@sinclair/typebox").TString;
21716
21766
  value: import("@sinclair/typebox").TString;
@@ -21830,6 +21880,11 @@ declare const _default: {
21830
21880
  readonly name: "连接线";
21831
21881
  readonly selector: ".wd-tree--line";
21832
21882
  readonly description: "展示的连接线的样式";
21883
+ }, {
21884
+ readonly name: "节点容器区域";
21885
+ readonly selector: ".wd-tree-node";
21886
+ readonly description: "可以编写节点容器的样式";
21887
+ readonly code: "\n :scope .wd-tree-node {\n height: auto;\n }\n ";
21833
21888
  }];
21834
21889
  readonly methods: readonly [{
21835
21890
  readonly name: "searchNode";
@@ -22025,6 +22080,10 @@ declare const _default: {
22025
22080
  readonly 'x-index': 3;
22026
22081
  readonly expand: true;
22027
22082
  };
22083
+ readonly 高级属性: {
22084
+ readonly 'x-index': 4;
22085
+ readonly expand: true;
22086
+ };
22028
22087
  };
22029
22088
  readonly inlineStyleForm: {
22030
22089
  readonly flexDirection: {
@@ -28137,18 +28196,6 @@ declare const _default: {
28137
28196
  type: string[];
28138
28197
  };
28139
28198
  customRelOptions: {
28140
- string: {
28141
- text: string;
28142
- value: string;
28143
- }[];
28144
- boolean: {
28145
- text: string;
28146
- value: string;
28147
- }[];
28148
- keyVarType: {
28149
- value: string;
28150
- text: string;
28151
- }[];
28152
28199
  number: {
28153
28200
  text: string;
28154
28201
  value: string;
@@ -28927,6 +28974,7 @@ declare const _default: {
28927
28974
  image: import("@sinclair/typebox").TString;
28928
28975
  }>>;
28929
28976
  enablePrize: import("@sinclair/typebox").TBoolean;
28977
+ duration: import("@sinclair/typebox").TNumber;
28930
28978
  prizeResult: import("@sinclair/typebox").TUnsafe<string>;
28931
28979
  }>;
28932
28980
  readonly events: [{
@@ -31253,6 +31301,14 @@ declare const _default: {
31253
31301
  readonly label: "清空选中项";
31254
31302
  readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
31255
31303
  readonly description: "清空选中项";
31304
+ }, {
31305
+ readonly name: "setSelectedKeys";
31306
+ readonly label: "设置行选中";
31307
+ readonly params: import("@sinclair/typebox").TObject<{
31308
+ selectedKeys: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
31309
+ }>;
31310
+ readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
31311
+ readonly description: "设置行选中";
31256
31312
  }];
31257
31313
  readonly events: readonly [{
31258
31314
  readonly title: "点击表格行";
@@ -32237,11 +32293,16 @@ declare const _default: {
32237
32293
  readonly name: "内容区域";
32238
32294
  readonly selector: ".wd-top-tab-root .wd-tabs__body";
32239
32295
  readonly description: "可以为顶部选项卡内容区域编写样式,例如:设置顶部选项卡内容区域高度撑满页面";
32240
- readonly code: ".wd-top-tab-root .wd-tabs__body {\n /* 设置顶部选项卡内容区域高度撑满页面 */\n /* 注意:此处需要设置为计算高度 【视口高度-选项卡头部标签区域高度】*/\n height: calc(100vh - 48px);\n overflow: auto;\n }\n ";
32296
+ readonly code: "\n /* 设置顶部选项卡内容区域高度撑满页面 */\n /* 注意:此处需要设置为计算高度 【视口高度-选项卡头部标签区域高度】*/\n .wd-top-tab-root .wd-tabs__body {\n height: calc(100vh - 48px);\n overflow: auto;\n }\n ";
32241
32297
  }, {
32242
32298
  readonly name: "选项卡超长自动滑动遮罩";
32243
32299
  readonly selector: ".wd-tabs-h5-root .wd-tabs__header-item-mask";
32244
32300
  readonly description: "可以为移动端选项卡设置滑动背景色,提示选项卡内容超长可滑动";
32301
+ }, {
32302
+ readonly name: "去除滚动条样式";
32303
+ readonly selector: "::-webkit-scrollbar";
32304
+ readonly description: "受安卓端小程序渲染限制,需通过添加全局样式去除滚动条";
32305
+ readonly code: "\n /* 注意: 添加此样式后,对全局滚动条生效*/\n ::-webkit-scrollbar {\n display: none;\n width: 0;\n height: 0;\n color: transparent;\n }\n ";
32245
32306
  }];
32246
32307
  readonly methods: readonly [{
32247
32308
  readonly name: "selectTab";
@@ -33315,7 +33376,10 @@ declare const _default: {
33315
33376
  visible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
33316
33377
  readOnly: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
33317
33378
  selectedLabel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
33318
- item: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{}>>;
33379
+ item: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
33380
+ label: import("@sinclair/typebox").TString;
33381
+ value: import("@sinclair/typebox").TString;
33382
+ }>>;
33319
33383
  }>;
33320
33384
  readonly classes: {
33321
33385
  name: string;
@@ -33622,7 +33686,10 @@ declare const _default: {
33622
33686
  after: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
33623
33687
  before: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
33624
33688
  selectedLabel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
33625
- item: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{}>>;
33689
+ item: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
33690
+ label: import("@sinclair/typebox").TString;
33691
+ value: import("@sinclair/typebox").TString;
33692
+ }>>;
33626
33693
  }>;
33627
33694
  readonly classes: {
33628
33695
  name: string;
@@ -36526,7 +36593,10 @@ declare const _default: {
36526
36593
  visible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
36527
36594
  readOnly: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
36528
36595
  selectedLabel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
36529
- item: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{}>>;
36596
+ item: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
36597
+ label: import("@sinclair/typebox").TString;
36598
+ value: import("@sinclair/typebox").TString;
36599
+ }>>;
36530
36600
  }>;
36531
36601
  readonly classes: {
36532
36602
  name: string;
@@ -36736,7 +36806,10 @@ declare const _default: {
36736
36806
  visible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
36737
36807
  readOnly: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
36738
36808
  selectedLabel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
36739
- item: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{}>>;
36809
+ item: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
36810
+ label: import("@sinclair/typebox").TString;
36811
+ value: import("@sinclair/typebox").TString;
36812
+ }>>;
36740
36813
  }>;
36741
36814
  readonly classes: {
36742
36815
  name: string;
@@ -37212,7 +37285,10 @@ declare const _default: {
37212
37285
  value: import("@sinclair/typebox").TString;
37213
37286
  }>>>;
37214
37287
  selectedLabel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
37215
- item: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{}>>;
37288
+ item: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
37289
+ label: import("@sinclair/typebox").TString;
37290
+ value: import("@sinclair/typebox").TString;
37291
+ }>>;
37216
37292
  }>;
37217
37293
  readonly classes: {
37218
37294
  name: string;
@@ -184,7 +184,10 @@ export declare const FORM_ITEM_DATA: {
184
184
  value: import("@sinclair/typebox").TString;
185
185
  }>>;
186
186
  selectedLabel: import("@sinclair/typebox").TString;
187
- item: import("@sinclair/typebox").TObject<{}>;
187
+ item: import("@sinclair/typebox").TObject<{
188
+ label: import("@sinclair/typebox").TString;
189
+ value: import("@sinclair/typebox").TString;
190
+ }>;
188
191
  isTableView: import("@sinclair/typebox").TBoolean;
189
192
  _formatInSelect: import("@sinclair/typebox").TUnsafe<string>;
190
193
  viewId: import("@sinclair/typebox").TString;
@@ -603,7 +606,10 @@ export declare const ItemData: import("@sinclair/typebox").TObject<{
603
606
  value: import("@sinclair/typebox").TString;
604
607
  }>>>;
605
608
  selectedLabel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
606
- item: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{}>>;
609
+ item: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
610
+ label: import("@sinclair/typebox").TString;
611
+ value: import("@sinclair/typebox").TString;
612
+ }>>;
607
613
  isTableView: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
608
614
  _formatInSelect: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
609
615
  viewId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
@@ -504,6 +504,8 @@ export const FORM_ITEM_DATA = {
504
504
  'x-props': {
505
505
  'data-hidebind': true,
506
506
  },
507
+ description: '用于作为选项展示的文本',
508
+ 'x-helper-text': '用于作为选项展示的文本',
507
509
  }),
508
510
  value: Type.String({
509
511
  title: '选项值',
@@ -511,6 +513,8 @@ export const FORM_ITEM_DATA = {
511
513
  'x-props': {
512
514
  'data-hidebind': true,
513
515
  },
516
+ description: '选项的值,一般用于表单提交对应字段的存储值',
517
+ 'x-helper-text': '选项的值,一般用于表单提交对应字段的存储值',
514
518
  }),
515
519
  disabled: Type.Optional(Type.Boolean({
516
520
  title: '禁用',
@@ -1700,7 +1704,10 @@ export const FORM_ITEM_DATA = {
1700
1704
  description: '选中项对应的文本名称',
1701
1705
  'x-platforms': [],
1702
1706
  }),
1703
- item: Type.Object({}, {
1707
+ item: Type.Object({
1708
+ label: Type.String({ title: 'label' }),
1709
+ value: Type.String({ title: 'value' }),
1710
+ }, {
1704
1711
  title: '选中项',
1705
1712
  description: '选中项对应的对象',
1706
1713
  'x-platforms': [],
@@ -7061,7 +7061,8 @@ textarea {
7061
7061
  .wd-tree-node {
7062
7062
  background-color: var(--wd-tree-color-bg-default);
7063
7063
  white-space: nowrap;
7064
- height: var(--wd-tree-node-height);
7064
+ min-height: var(--wd-tree-node-height);
7065
+ height: auto;
7065
7066
  padding: 0.125rem 0;
7066
7067
  display: flex;
7067
7068
  z-index: 1;