@cloudbase/weda-ui 3.10.0 → 3.10.2

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 (39) hide show
  1. package/dist/configs/components/wd-layout.d.ts +4 -0
  2. package/dist/configs/components/wd-layout.js +12 -1
  3. package/dist/configs/components/wd-menu-layout.d.ts +3 -0
  4. package/dist/configs/components/wd-menu-layout.js +7 -1
  5. package/dist/configs/components/wd-menu-list.d.ts +2 -0
  6. package/dist/configs/components/wd-menu-list.js +7 -1
  7. package/dist/configs/components/wd-tabbar.js +1 -1
  8. package/dist/configs/components/wd-table.d.ts +12 -0
  9. package/dist/configs/components/wd-table.js +33 -0
  10. package/dist/configs/index.d.ts +32 -0
  11. package/dist/style/index.css +13 -0
  12. package/dist/style/index.scss +1 -1
  13. package/dist/style/weda-ui.min.css +2 -2
  14. package/dist/web/components/flow/process/constants.d.ts +10 -5
  15. package/dist/web/components/flow/process/constants.js +3 -2
  16. package/dist/web/components/flow/process/process.js +1 -1
  17. package/dist/web/components/form/uploader/uploader.h5.js +1 -1
  18. package/dist/web/components/form/uploader/uploader.pc.d.ts +1 -0
  19. package/dist/web/components/form/uploader/uploader.pc.js +6 -6
  20. package/dist/web/components/form/uploader/useUploadFile.js +1 -1
  21. package/dist/web/components/form/uploader/util.d.ts +1 -0
  22. package/dist/web/components/form/uploader/util.js +2 -1
  23. package/dist/web/components/form/uploaderFile/uploadFile.h5.js +4 -3
  24. package/dist/web/components/form/uploaderFile/uploadFile.pc.js +3 -1
  25. package/dist/web/components/formdetail/index.css +0 -6
  26. package/dist/web/components/wd-layout/wd-layout.d.ts +1 -1
  27. package/dist/web/components/wd-layout/wd-layout.js +2 -2
  28. package/dist/web/components/wd-markdown/wd-markdown.js +1 -1
  29. package/dist/web/components/wd-menu-layout/components/PlantMenu.js +1 -1
  30. package/dist/web/components/wd-menu-list/CommonMenuList.js +8 -2
  31. package/dist/web/components/wd-menu-list/HorizontalMenuList.js +8 -2
  32. package/dist/web/components/wd-table/components/FieldRender/index.js +4 -4
  33. package/dist/web/components/wd-table/components/ModalTable/index.js +1 -1
  34. package/dist/web/components/wd-table/components/Table/index.d.ts +4 -2
  35. package/dist/web/components/wd-table/components/Table/index.js +12 -3
  36. package/dist/web/components/wd-table/wd-table.js +8 -3
  37. package/dist/web/components/wd-textarea/wd-textarea.js +5 -2
  38. package/package.json +1 -1
  39. package/dist/style/components/grid/grid.css +0 -1288
@@ -4,6 +4,8 @@ declare const data: import("@sinclair/typebox").TObject<{
4
4
  headerLeftSlot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<import("react").ReactNode>>;
5
5
  headerRightSlot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<import("react").ReactNode>>;
6
6
  contentSlot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<import("react").ReactNode>>;
7
+ enableHeaderSlot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
8
+ enableContentSlot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
7
9
  template: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
8
10
  }>;
9
11
  export type DataType = Simplify<Static<typeof data>>;
@@ -13,6 +15,8 @@ declare const config: {
13
15
  headerLeftSlot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<import("react").ReactNode>>;
14
16
  headerRightSlot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<import("react").ReactNode>>;
15
17
  contentSlot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<import("react").ReactNode>>;
18
+ enableHeaderSlot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
19
+ enableContentSlot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
16
20
  template: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
17
21
  }>;
18
22
  readonly properties: import("@sinclair/typebox").TObject<{}>;
@@ -4,11 +4,22 @@ const data = Type.Object({
4
4
  headerLeftSlot: Type.Optional(Type.Slot({ title: '头部左侧', 'x-index': 10, 'x-group': '基础属性' })),
5
5
  headerRightSlot: Type.Optional(Type.Slot({ title: '头部右侧', 'x-index': 20, 'x-group': '基础属性' })),
6
6
  contentSlot: Type.Optional(Type.Slot({ title: '布局内容', 'x-index': 30, 'x-group': '基础属性' })),
7
+ enableHeaderSlot: Type.Optional(Type.Boolean({
8
+ title: '头部插槽',
9
+ 'x-index': 50,
10
+ 'x-runtime-default': true,
11
+ 'x-group': '基础属性',
12
+ })),
13
+ enableContentSlot: Type.Optional(Type.Boolean({
14
+ title: '内容插槽',
15
+ 'x-index': 60,
16
+ 'x-runtime-default': true,
17
+ 'x-group': '基础属性',
18
+ })),
7
19
  template: Type.Optional(Type.StringEnum({
8
20
  title: '布局模板',
9
21
  type: 'string',
10
22
  default: 'white',
11
- 'x-runtime-default': 'white',
12
23
  'x-component': 'data-sources-template-selector',
13
24
  'x-component-props': {
14
25
  options: Tuple([
@@ -42,6 +42,7 @@ declare const data: import("@sinclair/typebox").TObject<{
42
42
  type: import("@sinclair/typebox").TUnsafe<"nav" | "tab" | "vertical" | "horizontal" | "plant" | "navTab">;
43
43
  defaultOpened: import("@sinclair/typebox").TBoolean;
44
44
  outerClickClosable: import("@sinclair/typebox").TBoolean;
45
+ selectedMenuKey: import("@sinclair/typebox").TString;
45
46
  }>;
46
47
  export type DataType = Simplify<Static<typeof data>>;
47
48
  export declare const configInfo: {
@@ -88,6 +89,7 @@ export declare const configInfo: {
88
89
  type: import("@sinclair/typebox").TUnsafe<"nav" | "tab" | "vertical" | "horizontal" | "plant" | "navTab">;
89
90
  defaultOpened: import("@sinclair/typebox").TBoolean;
90
91
  outerClickClosable: import("@sinclair/typebox").TBoolean;
92
+ selectedMenuKey: import("@sinclair/typebox").TString;
91
93
  }>;
92
94
  readonly properties: import("@sinclair/typebox").TObject<{}>;
93
95
  readonly classes: readonly [{
@@ -297,6 +299,7 @@ declare const config: {
297
299
  type: import("@sinclair/typebox").TUnsafe<"nav" | "tab" | "vertical" | "horizontal" | "plant" | "navTab">;
298
300
  defaultOpened: import("@sinclair/typebox").TBoolean;
299
301
  outerClickClosable: import("@sinclair/typebox").TBoolean;
302
+ selectedMenuKey: import("@sinclair/typebox").TString;
300
303
  }>;
301
304
  readonly properties: import("@sinclair/typebox").TObject<{}>;
302
305
  readonly classes: readonly [{
@@ -139,6 +139,12 @@ const data = Type.Object({
139
139
  'x-index': 90,
140
140
  'x-category': '基础属性',
141
141
  }),
142
+ selectedMenuKey: Type.String({
143
+ title: '选中的菜单key',
144
+ default: '',
145
+ 'x-index': 100,
146
+ 'x-category': '基础属性',
147
+ }),
142
148
  });
143
149
  // 组件对外暴露的只读属性
144
150
  // 未来可通过 widget API 开放,应用可以获取到组件的实例属性
@@ -221,7 +227,7 @@ export const configInfo = {
221
227
  key: Type.Optional(Type.String({ title: '选中菜单key值' })),
222
228
  item: Type.Optional(Object.assign({}, Node, { title: '选中菜单项' })),
223
229
  }, { title: '选中项信息' }),
224
- isNavigate: Type.Boolean({ title: '设置项为跳转类型时是否跳转' }),
230
+ isNavigate: Type.Boolean({ title: '是否跳转菜单链接' }),
225
231
  },
226
232
  },
227
233
  },
@@ -87,6 +87,7 @@ declare const data: import("@sinclair/typebox").TObject<{
87
87
  }>;
88
88
  template: import("@sinclair/typebox").TUnsafe<"vertical" | "horizontal" | "plant">;
89
89
  defaultOpened: import("@sinclair/typebox").TBoolean;
90
+ selectedMenuKey: import("@sinclair/typebox").TString;
90
91
  }>;
91
92
  export type DataType = Simplify<Static<typeof data>>;
92
93
  declare const config: {
@@ -127,6 +128,7 @@ declare const config: {
127
128
  }>;
128
129
  template: import("@sinclair/typebox").TUnsafe<"vertical" | "horizontal" | "plant">;
129
130
  defaultOpened: import("@sinclair/typebox").TBoolean;
131
+ selectedMenuKey: import("@sinclair/typebox").TString;
130
132
  }>;
131
133
  readonly properties: import("@sinclair/typebox").TObject<{}>;
132
134
  readonly classes: readonly [{
@@ -134,6 +134,12 @@ const data = Type.Object({
134
134
  'x-index': 30,
135
135
  'x-category': '基础属性',
136
136
  }),
137
+ selectedMenuKey: Type.String({
138
+ title: '选中的菜单key',
139
+ default: '',
140
+ 'x-index': 40,
141
+ 'x-category': '基础属性',
142
+ }),
137
143
  });
138
144
  // 组件对外暴露的只读属性
139
145
  // 未来可通过 widget API 开放,应用可以获取到组件的实例属性
@@ -181,7 +187,7 @@ const config = defineConfig({
181
187
  key: Type.Optional(Type.String({ title: '选中菜单key值' })),
182
188
  item: Type.Optional(Object.assign({}, Node, { title: '选中菜单项' })),
183
189
  }, { title: '选中项信息' }),
184
- isNavigate: Type.Boolean({ title: '设置项为跳转类型时是否跳转' }),
190
+ isNavigate: Type.Boolean({ title: '是否跳转菜单链接' }),
185
191
  }),
186
192
  },
187
193
  ],
@@ -161,7 +161,7 @@ const config = defineConfig({
161
161
  default: '',
162
162
  }),
163
163
  isNavigate: Type.Optional(Type.Boolean({
164
- title: '设置项为跳转类型时是否跳转',
164
+ title: '是否跳转菜单链接',
165
165
  default: true,
166
166
  })),
167
167
  }),
@@ -351,6 +351,18 @@ declare const config: {
351
351
  }>;
352
352
  readonly description: "点击表格某一行时触发";
353
353
  readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
354
+ }, {
355
+ readonly title: "点击表格列";
356
+ readonly name: "cellClick";
357
+ readonly detail: import("@sinclair/typebox").TObject<{
358
+ record: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{}>>;
359
+ column: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{}>>;
360
+ rowKey: import("@sinclair/typebox").TString;
361
+ recordIndex: import("@sinclair/typebox").TNumber;
362
+ columnIndex: import("@sinclair/typebox").TNumber;
363
+ }>;
364
+ readonly description: "点击表格某一行时触发";
365
+ readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
354
366
  }, {
355
367
  readonly title: "选中行改变";
356
368
  readonly name: "rowsSelected";
@@ -1729,6 +1729,39 @@ const config = defineConfig({
1729
1729
  description: '点击表格某一行时触发',
1730
1730
  'x-platforms': ['MOBILEWEB', 'PCWEB'],
1731
1731
  },
1732
+ {
1733
+ title: '点击表格列',
1734
+ name: 'cellClick',
1735
+ detail: Type.Object({
1736
+ record: Type.Array(Type.Object({}), {
1737
+ title: '选中行记录',
1738
+ type: 'array',
1739
+ description: '选中行记录',
1740
+ }),
1741
+ column: Type.Array(Type.Object({}), {
1742
+ title: '选中列表头',
1743
+ type: 'array',
1744
+ description: '选中列表头',
1745
+ }),
1746
+ rowKey: Type.String({
1747
+ title: '选中行记录id',
1748
+ type: 'string',
1749
+ description: '选中行记录id',
1750
+ }),
1751
+ recordIndex: Type.Number({
1752
+ title: '选中行index',
1753
+ type: 'number',
1754
+ description: '选中行index',
1755
+ }),
1756
+ columnIndex: Type.Number({
1757
+ title: '选中列index',
1758
+ type: 'number',
1759
+ description: '选中列index',
1760
+ }),
1761
+ }),
1762
+ description: '点击表格某一行时触发',
1763
+ 'x-platforms': ['MOBILEWEB', 'PCWEB'],
1764
+ },
1732
1765
  {
1733
1766
  title: '选中行改变',
1734
1767
  name: 'rowsSelected',
@@ -12690,6 +12690,18 @@ export declare const components: {
12690
12690
  }>;
12691
12691
  readonly description: "点击表格某一行时触发";
12692
12692
  readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
12693
+ }, {
12694
+ readonly title: "点击表格列";
12695
+ readonly name: "cellClick";
12696
+ readonly detail: import("@sinclair/typebox").TObject<{
12697
+ record: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{}>>;
12698
+ column: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{}>>;
12699
+ rowKey: import("@sinclair/typebox").TString;
12700
+ recordIndex: import("@sinclair/typebox").TNumber;
12701
+ columnIndex: import("@sinclair/typebox").TNumber;
12702
+ }>;
12703
+ readonly description: "点击表格某一行时触发";
12704
+ readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
12693
12705
  }, {
12694
12706
  readonly title: "选中行改变";
12695
12707
  readonly name: "rowsSelected";
@@ -13845,6 +13857,8 @@ export declare const components: {
13845
13857
  headerLeftSlot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<import("react").ReactNode>>;
13846
13858
  headerRightSlot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<import("react").ReactNode>>;
13847
13859
  contentSlot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<import("react").ReactNode>>;
13860
+ enableHeaderSlot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
13861
+ enableContentSlot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
13848
13862
  template: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
13849
13863
  }>;
13850
13864
  readonly properties: import("@sinclair/typebox").TObject<{}>;
@@ -18607,6 +18621,7 @@ export declare const components: {
18607
18621
  type: import("@sinclair/typebox").TUnsafe<"nav" | "tab" | "vertical" | "horizontal" | "plant" | "navTab">;
18608
18622
  defaultOpened: import("@sinclair/typebox").TBoolean;
18609
18623
  outerClickClosable: import("@sinclair/typebox").TBoolean;
18624
+ selectedMenuKey: import("@sinclair/typebox").TString;
18610
18625
  }>;
18611
18626
  readonly properties: import("@sinclair/typebox").TObject<{}>;
18612
18627
  readonly classes: readonly [{
@@ -19002,6 +19017,7 @@ export declare const components: {
19002
19017
  }>;
19003
19018
  template: import("@sinclair/typebox").TUnsafe<"vertical" | "horizontal" | "plant">;
19004
19019
  defaultOpened: import("@sinclair/typebox").TBoolean;
19020
+ selectedMenuKey: import("@sinclair/typebox").TString;
19005
19021
  }>;
19006
19022
  readonly properties: import("@sinclair/typebox").TObject<{}>;
19007
19023
  readonly classes: readonly [{
@@ -32714,6 +32730,18 @@ declare const _default: {
32714
32730
  }>;
32715
32731
  readonly description: "点击表格某一行时触发";
32716
32732
  readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
32733
+ }, {
32734
+ readonly title: "点击表格列";
32735
+ readonly name: "cellClick";
32736
+ readonly detail: import("@sinclair/typebox").TObject<{
32737
+ record: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{}>>;
32738
+ column: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{}>>;
32739
+ rowKey: import("@sinclair/typebox").TString;
32740
+ recordIndex: import("@sinclair/typebox").TNumber;
32741
+ columnIndex: import("@sinclair/typebox").TNumber;
32742
+ }>;
32743
+ readonly description: "点击表格某一行时触发";
32744
+ readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
32717
32745
  }, {
32718
32746
  readonly title: "选中行改变";
32719
32747
  readonly name: "rowsSelected";
@@ -33869,6 +33897,8 @@ declare const _default: {
33869
33897
  headerLeftSlot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<import("react").ReactNode>>;
33870
33898
  headerRightSlot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<import("react").ReactNode>>;
33871
33899
  contentSlot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<import("react").ReactNode>>;
33900
+ enableHeaderSlot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
33901
+ enableContentSlot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
33872
33902
  template: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
33873
33903
  }>;
33874
33904
  readonly properties: import("@sinclair/typebox").TObject<{}>;
@@ -38631,6 +38661,7 @@ declare const _default: {
38631
38661
  type: import("@sinclair/typebox").TUnsafe<"nav" | "tab" | "vertical" | "horizontal" | "plant" | "navTab">;
38632
38662
  defaultOpened: import("@sinclair/typebox").TBoolean;
38633
38663
  outerClickClosable: import("@sinclair/typebox").TBoolean;
38664
+ selectedMenuKey: import("@sinclair/typebox").TString;
38634
38665
  }>;
38635
38666
  readonly properties: import("@sinclair/typebox").TObject<{}>;
38636
38667
  readonly classes: readonly [{
@@ -39026,6 +39057,7 @@ declare const _default: {
39026
39057
  }>;
39027
39058
  template: import("@sinclair/typebox").TUnsafe<"vertical" | "horizontal" | "plant">;
39028
39059
  defaultOpened: import("@sinclair/typebox").TBoolean;
39060
+ selectedMenuKey: import("@sinclair/typebox").TString;
39029
39061
  }>;
39030
39062
  readonly properties: import("@sinclair/typebox").TObject<{}>;
39031
39063
  readonly classes: readonly [{
@@ -3243,6 +3243,9 @@ _:-ms-lang(x)::backdrop,
3243
3243
  .wd-table__body tr:hover .wd-text-with-icon .wd-icon {
3244
3244
  visibility: visible;
3245
3245
  }
3246
+ .wd-table__body .wd-tag__text {
3247
+ max-width: 100px;
3248
+ }
3246
3249
 
3247
3250
  .wd-table-scroll-wrap.wd-table--status {
3248
3251
  position: relative;
@@ -4894,6 +4897,9 @@ textarea {
4894
4897
  display: flex;
4895
4898
  align-items: center;
4896
4899
  }
4900
+ .wd-form-input-wrap__content .weui-cell_active:active::after {
4901
+ background-color: unset;
4902
+ }
4897
4903
  .wd-form-input-wrap.wd-input-input-search.template.search-box.color-grey.is-pc-bordered {
4898
4904
  background-color: #f2f2f2;
4899
4905
  border-color: #f2f2f2;
@@ -6173,6 +6179,10 @@ textarea {
6173
6179
  cursor: not-allowed;
6174
6180
  }
6175
6181
 
6182
+ .wd-mp-form-item .wd-form-select_input {
6183
+ cursor: unset;
6184
+ }
6185
+
6176
6186
  .wd-switch {
6177
6187
  --wd-switch-bg-default-checked: var(--wd-color-brand);
6178
6188
  --wd-switch-bg-default-checked-disabled: var(--wd-color-brand-disabled);
@@ -10287,6 +10297,9 @@ page,
10287
10297
  .wd-mp-tabbar .wd-tabbar__item {
10288
10298
  cursor: unset;
10289
10299
  }
10300
+ .wd-mp-tabbar .wd-tabbar__item-icon {
10301
+ display: contents;
10302
+ }
10290
10303
 
10291
10304
  .wd-form-obj-root {
10292
10305
  display: flex;