@cloudbase/weda-ui 3.17.1 → 3.17.3

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 (27) hide show
  1. package/dist/configs/components/container.js +2 -1
  2. package/dist/configs/components/wd-ad.js +40 -0
  3. package/dist/configs/components/wd-calendar.d.ts +21 -1
  4. package/dist/configs/components/wd-calendar.js +40 -1
  5. package/dist/configs/components/wd-side-tab.d.ts +13 -1
  6. package/dist/configs/components/wd-side-tab.js +30 -1
  7. package/dist/configs/components/wd-tabbar.d.ts +15 -2
  8. package/dist/configs/components/wd-tabbar.js +36 -2
  9. package/dist/configs/components/wd-top-tab.d.ts +12 -0
  10. package/dist/configs/components/wd-top-tab.js +29 -0
  11. package/dist/configs/components/web-view.js +1 -1
  12. package/dist/configs/index.d.ts +122 -8
  13. package/dist/style/weda-ui.min.css +1 -1
  14. package/dist/web/components/chart/common/core/eChartBar.d.ts +1 -1
  15. package/dist/web/components/chart/common/core/eChartBar.js +10 -9
  16. package/dist/web/components/chart/common/core/eChartLine.d.ts +1 -1
  17. package/dist/web/components/chart/common/core/eChartLine.js +10 -9
  18. package/dist/web/components/chart/common/core/eChartPie.d.ts +2 -2
  19. package/dist/web/components/chart/common/core/eChartPie.js +4 -3
  20. package/dist/web/components/wd-ad/wd-ad.d.ts +2 -2
  21. package/dist/web/components/wd-ad/wd-ad.js +11 -2
  22. package/dist/web/components/wd-select/wd-select.js +2 -2
  23. package/dist/web/components/wd-select-multiple/wd-select-multiple.js +2 -2
  24. package/dist/web/components/wd-table/components/FieldRender/index.js +1 -11
  25. package/dist/web/components/wd-table/utils/index.js +14 -35
  26. package/dist/web/components/web-view/web-view.js +18 -28
  27. package/package.json +1 -1
@@ -7,7 +7,8 @@ const data = Type.Object({
7
7
  })),
8
8
  data: Type.Optional(Type.Record(Type.String(), Type.Unknown(), {
9
9
  title: '数据',
10
- description: '可通过 $w.<id>.data 引用到',
10
+ description: '该属性用于区块动态项配置,可通过 $w.<id>.data 引用到',
11
+ 'x-helper-text': '该属性用于区块动态项配置,[详情参考区块动态项配置使用指引](kehttps://cloud.tencent.com/document/product/1301/90229)',
11
12
  default: {},
12
13
  })),
13
14
  });
@@ -38,6 +38,46 @@ const data = Type.Partial(Type.Object({
38
38
  target: '*(multiton,disableFallbackSharePage)',
39
39
  condition: '{{$self.value === "rewardedVideoAd"}}',
40
40
  },
41
+ {
42
+ type: 'value:schema',
43
+ target: 'unitId',
44
+ condition: '{{$self.value !== "rewardedVideoAd"}}',
45
+ schema: {
46
+ 'x-props': {
47
+ 'data-hidebind': false,
48
+ },
49
+ },
50
+ },
51
+ {
52
+ type: 'value:schema',
53
+ target: 'unitId',
54
+ condition: '{{$self.value === "rewardedVideoAd"}}',
55
+ schema: {
56
+ 'x-props': {
57
+ 'data-hidebind': true,
58
+ },
59
+ },
60
+ },
61
+ {
62
+ type: 'value:schema',
63
+ target: 'multiton',
64
+ condition: '{{$self.value === "rewardedVideoAd"}}',
65
+ schema: {
66
+ 'x-props': {
67
+ 'data-hidebind': true,
68
+ },
69
+ },
70
+ },
71
+ {
72
+ type: 'value:schema',
73
+ target: 'disableFallbackSharePage',
74
+ condition: '{{$self.value === "rewardedVideoAd"}}',
75
+ schema: {
76
+ 'x-props': {
77
+ 'data-hidebind': true,
78
+ },
79
+ },
80
+ },
41
81
  ],
42
82
  }),
43
83
  unitId: Type.String({
@@ -31,7 +31,27 @@ declare const config: {
31
31
  }>>>;
32
32
  initVisible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
33
33
  }>;
34
- readonly classes: readonly [];
34
+ readonly classes: readonly [{
35
+ readonly name: "根元素";
36
+ readonly selector: ".weda-calendar";
37
+ readonly description: "日历组件根元素";
38
+ readonly code: ":scope.weda-calendar {\n /* 在这里编写CSS 样式*/\n width: 400px;\n min-width: 400px;\n background-color: antiquewhite;\n } ";
39
+ }, {
40
+ readonly name: "日历容器";
41
+ readonly selector: ".weda-calendar__table";
42
+ readonly description: "日历组件根元素";
43
+ readonly code: ":scope .weda-calendar__table {\n /* 在这里编写CSS 样式*/\n } ";
44
+ }, {
45
+ readonly name: "日历行";
46
+ readonly selector: ".weda-calendar__table-body-row";
47
+ readonly description: "日历组件根元素";
48
+ readonly code: ":scope .weda-calendar__table .weda-calendar__table-body-row{\n /* 在这里编写CSS 样式*/\n\n } ";
49
+ }, {
50
+ readonly name: "日历列";
51
+ readonly selector: ".weda-calendar__table-body-cell";
52
+ readonly description: "日历组件根元素";
53
+ readonly code: ":scope .weda-calendar__table .weda-calendar__table-body-cell{\n /* 在这里编写CSS 样式*/\n width: 30px;\n height: 30px;\n } ";
54
+ }];
35
55
  readonly events: readonly [{
36
56
  readonly name: "change";
37
57
  readonly title: "选中日期";
@@ -70,7 +70,46 @@ const config = defineConfig({
70
70
  $schema: 'https://comp-public-replace-1303824488-cos.weda.tencent.com/schema/lcds_component.json',
71
71
  data,
72
72
  properties,
73
- classes: [],
73
+ classes: [
74
+ {
75
+ name: '根元素',
76
+ selector: '.weda-calendar',
77
+ description: '日历组件根元素',
78
+ code: `:scope.weda-calendar {
79
+ /* 在这里编写CSS 样式*/
80
+ width: 400px;
81
+ min-width: 400px;
82
+ background-color: antiquewhite;
83
+ } `,
84
+ },
85
+ {
86
+ name: '日历容器',
87
+ selector: '.weda-calendar__table',
88
+ description: '日历组件根元素',
89
+ code: `:scope .weda-calendar__table {
90
+ /* 在这里编写CSS 样式*/
91
+ } `,
92
+ },
93
+ {
94
+ name: '日历行',
95
+ selector: '.weda-calendar__table-body-row',
96
+ description: '日历组件根元素',
97
+ code: `:scope .weda-calendar__table .weda-calendar__table-body-row{
98
+ /* 在这里编写CSS 样式*/
99
+
100
+ } `,
101
+ },
102
+ {
103
+ name: '日历列',
104
+ selector: '.weda-calendar__table-body-cell',
105
+ description: '日历组件根元素',
106
+ code: `:scope .weda-calendar__table .weda-calendar__table-body-cell{
107
+ /* 在这里编写CSS 样式*/
108
+ width: 30px;
109
+ height: 30px;
110
+ } `,
111
+ },
112
+ ],
74
113
  events: [
75
114
  {
76
115
  name: 'change',
@@ -77,12 +77,24 @@ declare const config: {
77
77
  readonly description: "可以为侧边选项卡文本标签容器编写样式";
78
78
  }, {
79
79
  readonly name: "选中态的标签容器";
80
- readonly selector: ".wd-side-tab-root .wd-tabs__item.is-selected";
80
+ readonly selector: ".wd-side-tab-root.wd-tabs--vertical .wd-tabs__item.is-selected";
81
81
  readonly description: "可以为侧边选项卡选中的标签容器编写样式";
82
+ readonly code: ":scope.wd-side-tab-root.wd-tabs--vertical .wd-tabs__item.is-selected {\n /* 在这里编写CSS 样式*/\n color: yellow;\n font-size: 20px;\n } ";
82
83
  }, {
83
84
  readonly name: "文本标签";
84
85
  readonly selector: ".wd-side-tab-root .wd-tabs__item-text";
85
86
  readonly description: "可以为侧边选项卡文本标签编写样式";
87
+ readonly code: ":scope.wd-side-tab-root .wd-tabs__item-text {\n /* 在这里编写CSS 样式 */\n font-size: 20px;\n } ";
88
+ }, {
89
+ readonly name: "选项图标(图片)";
90
+ readonly selector: ".wd-side-tab-root .wd-tabs__item .wd-image";
91
+ readonly description: "可以为选项文本标签设置样式";
92
+ readonly code: ":scope.wd-side-tab-root .wd-tabs__item .wd-image {\n /* 在这里编写CSS 样式 */\n width: 20px;\n height: 20px;\n } ";
93
+ }, {
94
+ readonly name: "选项图标(图标)";
95
+ readonly selector: ".wd-side-tab-root .wd-tabs__item .wd-icon";
96
+ readonly description: "可以为选项文本标签设置样式";
97
+ readonly code: ":scope.wd-side-tab-root .wd-tabs__item .wd-icon {\n /* 在这里编写CSS 样式 */\n font-size: 20px;\n color: red;\n } ";
86
98
  }, {
87
99
  readonly name: "右侧内容区域";
88
100
  readonly selector: ".wd-side-tab-root .wd-tabs__body";
@@ -400,13 +400,42 @@ const config = defineConfig({
400
400
  },
401
401
  {
402
402
  name: '选中态的标签容器',
403
- selector: '.wd-side-tab-root .wd-tabs__item.is-selected',
403
+ selector: '.wd-side-tab-root.wd-tabs--vertical .wd-tabs__item.is-selected',
404
404
  description: '可以为侧边选项卡选中的标签容器编写样式',
405
+ code: `:scope.wd-side-tab-root.wd-tabs--vertical .wd-tabs__item.is-selected {
406
+ /* 在这里编写CSS 样式*/
407
+ color: yellow;
408
+ font-size: 20px;
409
+ } `,
405
410
  },
406
411
  {
407
412
  name: '文本标签',
408
413
  selector: '.wd-side-tab-root .wd-tabs__item-text',
409
414
  description: '可以为侧边选项卡文本标签编写样式',
415
+ code: `:scope.wd-side-tab-root .wd-tabs__item-text {
416
+ /* 在这里编写CSS 样式 */
417
+ font-size: 20px;
418
+ } `,
419
+ },
420
+ {
421
+ name: '选项图标(图片)',
422
+ selector: '.wd-side-tab-root .wd-tabs__item .wd-image',
423
+ description: '可以为选项文本标签设置样式',
424
+ code: `:scope.wd-side-tab-root .wd-tabs__item .wd-image {
425
+ /* 在这里编写CSS 样式 */
426
+ width: 20px;
427
+ height: 20px;
428
+ } `,
429
+ },
430
+ {
431
+ name: '选项图标(图标)',
432
+ selector: '.wd-side-tab-root .wd-tabs__item .wd-icon',
433
+ description: '可以为选项文本标签设置样式',
434
+ code: `:scope.wd-side-tab-root .wd-tabs__item .wd-icon {
435
+ /* 在这里编写CSS 样式 */
436
+ font-size: 20px;
437
+ color: red;
438
+ } `,
410
439
  },
411
440
  {
412
441
  name: '右侧内容区域',
@@ -146,17 +146,30 @@ declare const config: {
146
146
  readonly selector: ".wd-mp-tabbar";
147
147
  readonly description: "可以为 小程序 端的编写样式";
148
148
  }, {
149
- readonly name: "单个选项区域";
149
+ readonly name: "文本标签容器";
150
150
  readonly selector: ".wd-tabbar__item";
151
151
  readonly description: "可以为选项区设置样式";
152
+ readonly code: ":scope .wd-tabbar__item {\n /* 在这里编写CSS 样式*/\n color: red;\n font-size: 20px;\n } ";
152
153
  }, {
153
- readonly name: "选中选项区域";
154
+ readonly name: "选中态的标签容器";
154
155
  readonly selector: ".wd-tabbar__item.is-selected";
155
156
  readonly description: "可以为选中选项区域设置样式";
157
+ readonly code: ":scope .wd-tabbar__item.is-selected {\n /* 在这里编写CSS 样式*/\n color: yellow;\n font-size: 20px;\n } ";
156
158
  }, {
157
159
  readonly name: "选项文本标签";
158
160
  readonly selector: ".wd-tabbar__item-text";
159
161
  readonly description: "可以为选项文本标签设置样式";
162
+ readonly code: ":scope .wd-tabbar__item-text {\n /* 在这里编写CSS 样式 */\n font-size: 20px;\n } ";
163
+ }, {
164
+ readonly name: "选项图标(图片)";
165
+ readonly selector: ".wd-tabbar__item .wd-image";
166
+ readonly description: "可以为选项文本标签设置样式";
167
+ readonly code: ":scope .wd-tabbar__item .wd-image {\n /* 在这里编写CSS 样式 */\n width: 20px;\n height: 20px;\n } ";
168
+ }, {
169
+ readonly name: "选项图标(图标)";
170
+ readonly selector: ".wd-tabbar__item .wd-icon";
171
+ readonly description: "可以为选项文本标签设置样式";
172
+ readonly code: ":scope .wd-tabbar__item .wd-icon {\n /* 在这里编写CSS 样式 */\n font-size: 20px;\n color: red;\n } ";
160
173
  }];
161
174
  readonly methods: readonly [{
162
175
  readonly name: "setSelectTab";
@@ -136,19 +136,53 @@ const config = defineConfig({
136
136
  description: '可以为 小程序 端的编写样式',
137
137
  },
138
138
  {
139
- name: '单个选项区域',
139
+ name: '文本标签容器',
140
140
  selector: '.wd-tabbar__item',
141
141
  description: '可以为选项区设置样式',
142
+ code: `:scope .wd-tabbar__item {
143
+ /* 在这里编写CSS 样式*/
144
+ color: red;
145
+ font-size: 20px;
146
+ } `,
142
147
  },
143
148
  {
144
- name: '选中选项区域',
149
+ name: '选中态的标签容器',
145
150
  selector: '.wd-tabbar__item.is-selected',
146
151
  description: '可以为选中选项区域设置样式',
152
+ code: `:scope .wd-tabbar__item.is-selected {
153
+ /* 在这里编写CSS 样式*/
154
+ color: yellow;
155
+ font-size: 20px;
156
+ } `,
147
157
  },
148
158
  {
149
159
  name: '选项文本标签',
150
160
  selector: '.wd-tabbar__item-text',
151
161
  description: '可以为选项文本标签设置样式',
162
+ code: `:scope .wd-tabbar__item-text {
163
+ /* 在这里编写CSS 样式 */
164
+ font-size: 20px;
165
+ } `,
166
+ },
167
+ {
168
+ name: '选项图标(图片)',
169
+ selector: '.wd-tabbar__item .wd-image',
170
+ description: '可以为选项文本标签设置样式',
171
+ code: `:scope .wd-tabbar__item .wd-image {
172
+ /* 在这里编写CSS 样式 */
173
+ width: 20px;
174
+ height: 20px;
175
+ } `,
176
+ },
177
+ {
178
+ name: '选项图标(图标)',
179
+ selector: '.wd-tabbar__item .wd-icon',
180
+ description: '可以为选项文本标签设置样式',
181
+ code: `:scope .wd-tabbar__item .wd-icon {
182
+ /* 在这里编写CSS 样式 */
183
+ font-size: 20px;
184
+ color: red;
185
+ } `,
152
186
  },
153
187
  ],
154
188
  methods: [
@@ -79,10 +79,22 @@ declare const config: {
79
79
  readonly name: "选中态的标签容器";
80
80
  readonly selector: ".wd-top-tab-root .wd-tabs__item.is-selected";
81
81
  readonly description: "可以为顶部选项卡选中的标签容器编写样式";
82
+ readonly code: ":scope.wd-top-tab-root .wd-tabs__item.is-selected {\n /* 在这里编写CSS 样式*/\n color: yellow;\n font-size: 20px;\n } ";
82
83
  }, {
83
84
  readonly name: "文本标签";
84
85
  readonly selector: ".wd-top-tab-root .wd-tabs__item-text";
85
86
  readonly description: "可以为顶部选项卡文本标签编写样式";
87
+ readonly code: ":scope.wd-top-tab-root .wd-tabs__item-text {\n /* 在这里编写CSS 样式 */\n font-size: 20px;\n } ";
88
+ }, {
89
+ readonly name: "选项图标(图片)";
90
+ readonly selector: ".wd-top-tab-root .wd-tabs__item .wd-image";
91
+ readonly description: "可以为选项文本标签设置样式";
92
+ readonly code: ":scope.wd-top-tab-root .wd-tabs__item .wd-image {\n /* 在这里编写CSS 样式 */\n width: 20px;\n height: 20px;\n } ";
93
+ }, {
94
+ readonly name: "选项图标(图标)";
95
+ readonly selector: ".wd-top-tab-root .wd-tabs__item .wd-icon";
96
+ readonly description: "可以为选项文本标签设置样式";
97
+ readonly code: ":scope.wd-top-tab-root .wd-tabs__item .wd-icon {\n /* 在这里编写CSS 样式 */\n font-size: 20px;\n color: red;\n } ";
86
98
  }, {
87
99
  readonly name: "内容区域";
88
100
  readonly selector: ".wd-top-tab-root .wd-tabs__body";
@@ -387,11 +387,40 @@ const config = defineConfig({
387
387
  name: '选中态的标签容器',
388
388
  selector: '.wd-top-tab-root .wd-tabs__item.is-selected',
389
389
  description: '可以为顶部选项卡选中的标签容器编写样式',
390
+ code: `:scope.wd-top-tab-root .wd-tabs__item.is-selected {
391
+ /* 在这里编写CSS 样式*/
392
+ color: yellow;
393
+ font-size: 20px;
394
+ } `,
390
395
  },
391
396
  {
392
397
  name: '文本标签',
393
398
  selector: '.wd-top-tab-root .wd-tabs__item-text',
394
399
  description: '可以为顶部选项卡文本标签编写样式',
400
+ code: `:scope.wd-top-tab-root .wd-tabs__item-text {
401
+ /* 在这里编写CSS 样式 */
402
+ font-size: 20px;
403
+ } `,
404
+ },
405
+ {
406
+ name: '选项图标(图片)',
407
+ selector: '.wd-top-tab-root .wd-tabs__item .wd-image',
408
+ description: '可以为选项文本标签设置样式',
409
+ code: `:scope.wd-top-tab-root .wd-tabs__item .wd-image {
410
+ /* 在这里编写CSS 样式 */
411
+ width: 20px;
412
+ height: 20px;
413
+ } `,
414
+ },
415
+ {
416
+ name: '选项图标(图标)',
417
+ selector: '.wd-top-tab-root .wd-tabs__item .wd-icon',
418
+ description: '可以为选项文本标签设置样式',
419
+ code: `:scope.wd-top-tab-root .wd-tabs__item .wd-icon {
420
+ /* 在这里编写CSS 样式 */
421
+ font-size: 20px;
422
+ color: red;
423
+ } `,
395
424
  },
396
425
  {
397
426
  name: '内容区域',
@@ -8,7 +8,7 @@ const data = Type.Object({
8
8
  required: true,
9
9
  'x-index': 10,
10
10
  'x-category': '基础属性',
11
- 'x-helper-text': `小程序端以真机调试效果为准。除关联公众号文章链接外,其他链接需配置业务域名才可生效,[详情参考](https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/super/WebView#%E4%B8%9A%E5%8A%A1%E5%9F%9F%E5%90%8D%E9%85%8D%E7%BD%AE)`,
11
+ 'x-helper-text': `小程序端以真机调试效果为准。除关联公众号文章链接外,[其他链接需配置业务域名才可生效](https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/super/WebView#%E4%B8%9A%E5%8A%A1%E5%9F%9F%E5%90%8D%E9%85%8D%E7%BD%AE)`,
12
12
  }),
13
13
  allow: Type.String({
14
14
  title: 'allow',
@@ -12568,12 +12568,24 @@ export declare const components: {
12568
12568
  readonly description: "可以为侧边选项卡文本标签容器编写样式";
12569
12569
  }, {
12570
12570
  readonly name: "选中态的标签容器";
12571
- readonly selector: ".wd-side-tab-root .wd-tabs__item.is-selected";
12571
+ readonly selector: ".wd-side-tab-root.wd-tabs--vertical .wd-tabs__item.is-selected";
12572
12572
  readonly description: "可以为侧边选项卡选中的标签容器编写样式";
12573
+ readonly code: ":scope.wd-side-tab-root.wd-tabs--vertical .wd-tabs__item.is-selected {\n /* 在这里编写CSS 样式*/\n color: yellow;\n font-size: 20px;\n } ";
12573
12574
  }, {
12574
12575
  readonly name: "文本标签";
12575
12576
  readonly selector: ".wd-side-tab-root .wd-tabs__item-text";
12576
12577
  readonly description: "可以为侧边选项卡文本标签编写样式";
12578
+ readonly code: ":scope.wd-side-tab-root .wd-tabs__item-text {\n /* 在这里编写CSS 样式 */\n font-size: 20px;\n } ";
12579
+ }, {
12580
+ readonly name: "选项图标(图片)";
12581
+ readonly selector: ".wd-side-tab-root .wd-tabs__item .wd-image";
12582
+ readonly description: "可以为选项文本标签设置样式";
12583
+ readonly code: ":scope.wd-side-tab-root .wd-tabs__item .wd-image {\n /* 在这里编写CSS 样式 */\n width: 20px;\n height: 20px;\n } ";
12584
+ }, {
12585
+ readonly name: "选项图标(图标)";
12586
+ readonly selector: ".wd-side-tab-root .wd-tabs__item .wd-icon";
12587
+ readonly description: "可以为选项文本标签设置样式";
12588
+ readonly code: ":scope.wd-side-tab-root .wd-tabs__item .wd-icon {\n /* 在这里编写CSS 样式 */\n font-size: 20px;\n color: red;\n } ";
12577
12589
  }, {
12578
12590
  readonly name: "右侧内容区域";
12579
12591
  readonly selector: ".wd-side-tab-root .wd-tabs__body";
@@ -12694,10 +12706,22 @@ export declare const components: {
12694
12706
  readonly name: "选中态的标签容器";
12695
12707
  readonly selector: ".wd-top-tab-root .wd-tabs__item.is-selected";
12696
12708
  readonly description: "可以为顶部选项卡选中的标签容器编写样式";
12709
+ readonly code: ":scope.wd-top-tab-root .wd-tabs__item.is-selected {\n /* 在这里编写CSS 样式*/\n color: yellow;\n font-size: 20px;\n } ";
12697
12710
  }, {
12698
12711
  readonly name: "文本标签";
12699
12712
  readonly selector: ".wd-top-tab-root .wd-tabs__item-text";
12700
12713
  readonly description: "可以为顶部选项卡文本标签编写样式";
12714
+ readonly code: ":scope.wd-top-tab-root .wd-tabs__item-text {\n /* 在这里编写CSS 样式 */\n font-size: 20px;\n } ";
12715
+ }, {
12716
+ readonly name: "选项图标(图片)";
12717
+ readonly selector: ".wd-top-tab-root .wd-tabs__item .wd-image";
12718
+ readonly description: "可以为选项文本标签设置样式";
12719
+ readonly code: ":scope.wd-top-tab-root .wd-tabs__item .wd-image {\n /* 在这里编写CSS 样式 */\n width: 20px;\n height: 20px;\n } ";
12720
+ }, {
12721
+ readonly name: "选项图标(图标)";
12722
+ readonly selector: ".wd-top-tab-root .wd-tabs__item .wd-icon";
12723
+ readonly description: "可以为选项文本标签设置样式";
12724
+ readonly code: ":scope.wd-top-tab-root .wd-tabs__item .wd-icon {\n /* 在这里编写CSS 样式 */\n font-size: 20px;\n color: red;\n } ";
12701
12725
  }, {
12702
12726
  readonly name: "内容区域";
12703
12727
  readonly selector: ".wd-top-tab-root .wd-tabs__body";
@@ -18734,7 +18758,27 @@ export declare const components: {
18734
18758
  }>>>;
18735
18759
  initVisible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
18736
18760
  }>;
18737
- readonly classes: readonly [];
18761
+ readonly classes: readonly [{
18762
+ readonly name: "根元素";
18763
+ readonly selector: ".weda-calendar";
18764
+ readonly description: "日历组件根元素";
18765
+ readonly code: ":scope.weda-calendar {\n /* 在这里编写CSS 样式*/\n width: 400px;\n min-width: 400px;\n background-color: antiquewhite;\n } ";
18766
+ }, {
18767
+ readonly name: "日历容器";
18768
+ readonly selector: ".weda-calendar__table";
18769
+ readonly description: "日历组件根元素";
18770
+ readonly code: ":scope .weda-calendar__table {\n /* 在这里编写CSS 样式*/\n } ";
18771
+ }, {
18772
+ readonly name: "日历行";
18773
+ readonly selector: ".weda-calendar__table-body-row";
18774
+ readonly description: "日历组件根元素";
18775
+ readonly code: ":scope .weda-calendar__table .weda-calendar__table-body-row{\n /* 在这里编写CSS 样式*/\n\n } ";
18776
+ }, {
18777
+ readonly name: "日历列";
18778
+ readonly selector: ".weda-calendar__table-body-cell";
18779
+ readonly description: "日历组件根元素";
18780
+ readonly code: ":scope .weda-calendar__table .weda-calendar__table-body-cell{\n /* 在这里编写CSS 样式*/\n width: 30px;\n height: 30px;\n } ";
18781
+ }];
18738
18782
  readonly events: readonly [{
18739
18783
  readonly name: "change";
18740
18784
  readonly title: "选中日期";
@@ -18884,17 +18928,30 @@ export declare const components: {
18884
18928
  readonly selector: ".wd-mp-tabbar";
18885
18929
  readonly description: "可以为 小程序 端的编写样式";
18886
18930
  }, {
18887
- readonly name: "单个选项区域";
18931
+ readonly name: "文本标签容器";
18888
18932
  readonly selector: ".wd-tabbar__item";
18889
18933
  readonly description: "可以为选项区设置样式";
18934
+ readonly code: ":scope .wd-tabbar__item {\n /* 在这里编写CSS 样式*/\n color: red;\n font-size: 20px;\n } ";
18890
18935
  }, {
18891
- readonly name: "选中选项区域";
18936
+ readonly name: "选中态的标签容器";
18892
18937
  readonly selector: ".wd-tabbar__item.is-selected";
18893
18938
  readonly description: "可以为选中选项区域设置样式";
18939
+ readonly code: ":scope .wd-tabbar__item.is-selected {\n /* 在这里编写CSS 样式*/\n color: yellow;\n font-size: 20px;\n } ";
18894
18940
  }, {
18895
18941
  readonly name: "选项文本标签";
18896
18942
  readonly selector: ".wd-tabbar__item-text";
18897
18943
  readonly description: "可以为选项文本标签设置样式";
18944
+ readonly code: ":scope .wd-tabbar__item-text {\n /* 在这里编写CSS 样式 */\n font-size: 20px;\n } ";
18945
+ }, {
18946
+ readonly name: "选项图标(图片)";
18947
+ readonly selector: ".wd-tabbar__item .wd-image";
18948
+ readonly description: "可以为选项文本标签设置样式";
18949
+ readonly code: ":scope .wd-tabbar__item .wd-image {\n /* 在这里编写CSS 样式 */\n width: 20px;\n height: 20px;\n } ";
18950
+ }, {
18951
+ readonly name: "选项图标(图标)";
18952
+ readonly selector: ".wd-tabbar__item .wd-icon";
18953
+ readonly description: "可以为选项文本标签设置样式";
18954
+ readonly code: ":scope .wd-tabbar__item .wd-icon {\n /* 在这里编写CSS 样式 */\n font-size: 20px;\n color: red;\n } ";
18898
18955
  }];
18899
18956
  readonly methods: readonly [{
18900
18957
  readonly name: "setSelectTab";
@@ -32020,12 +32077,24 @@ declare const _default: {
32020
32077
  readonly description: "可以为侧边选项卡文本标签容器编写样式";
32021
32078
  }, {
32022
32079
  readonly name: "选中态的标签容器";
32023
- readonly selector: ".wd-side-tab-root .wd-tabs__item.is-selected";
32080
+ readonly selector: ".wd-side-tab-root.wd-tabs--vertical .wd-tabs__item.is-selected";
32024
32081
  readonly description: "可以为侧边选项卡选中的标签容器编写样式";
32082
+ readonly code: ":scope.wd-side-tab-root.wd-tabs--vertical .wd-tabs__item.is-selected {\n /* 在这里编写CSS 样式*/\n color: yellow;\n font-size: 20px;\n } ";
32025
32083
  }, {
32026
32084
  readonly name: "文本标签";
32027
32085
  readonly selector: ".wd-side-tab-root .wd-tabs__item-text";
32028
32086
  readonly description: "可以为侧边选项卡文本标签编写样式";
32087
+ readonly code: ":scope.wd-side-tab-root .wd-tabs__item-text {\n /* 在这里编写CSS 样式 */\n font-size: 20px;\n } ";
32088
+ }, {
32089
+ readonly name: "选项图标(图片)";
32090
+ readonly selector: ".wd-side-tab-root .wd-tabs__item .wd-image";
32091
+ readonly description: "可以为选项文本标签设置样式";
32092
+ readonly code: ":scope.wd-side-tab-root .wd-tabs__item .wd-image {\n /* 在这里编写CSS 样式 */\n width: 20px;\n height: 20px;\n } ";
32093
+ }, {
32094
+ readonly name: "选项图标(图标)";
32095
+ readonly selector: ".wd-side-tab-root .wd-tabs__item .wd-icon";
32096
+ readonly description: "可以为选项文本标签设置样式";
32097
+ readonly code: ":scope.wd-side-tab-root .wd-tabs__item .wd-icon {\n /* 在这里编写CSS 样式 */\n font-size: 20px;\n color: red;\n } ";
32029
32098
  }, {
32030
32099
  readonly name: "右侧内容区域";
32031
32100
  readonly selector: ".wd-side-tab-root .wd-tabs__body";
@@ -32146,10 +32215,22 @@ declare const _default: {
32146
32215
  readonly name: "选中态的标签容器";
32147
32216
  readonly selector: ".wd-top-tab-root .wd-tabs__item.is-selected";
32148
32217
  readonly description: "可以为顶部选项卡选中的标签容器编写样式";
32218
+ readonly code: ":scope.wd-top-tab-root .wd-tabs__item.is-selected {\n /* 在这里编写CSS 样式*/\n color: yellow;\n font-size: 20px;\n } ";
32149
32219
  }, {
32150
32220
  readonly name: "文本标签";
32151
32221
  readonly selector: ".wd-top-tab-root .wd-tabs__item-text";
32152
32222
  readonly description: "可以为顶部选项卡文本标签编写样式";
32223
+ readonly code: ":scope.wd-top-tab-root .wd-tabs__item-text {\n /* 在这里编写CSS 样式 */\n font-size: 20px;\n } ";
32224
+ }, {
32225
+ readonly name: "选项图标(图片)";
32226
+ readonly selector: ".wd-top-tab-root .wd-tabs__item .wd-image";
32227
+ readonly description: "可以为选项文本标签设置样式";
32228
+ readonly code: ":scope.wd-top-tab-root .wd-tabs__item .wd-image {\n /* 在这里编写CSS 样式 */\n width: 20px;\n height: 20px;\n } ";
32229
+ }, {
32230
+ readonly name: "选项图标(图标)";
32231
+ readonly selector: ".wd-top-tab-root .wd-tabs__item .wd-icon";
32232
+ readonly description: "可以为选项文本标签设置样式";
32233
+ readonly code: ":scope.wd-top-tab-root .wd-tabs__item .wd-icon {\n /* 在这里编写CSS 样式 */\n font-size: 20px;\n color: red;\n } ";
32153
32234
  }, {
32154
32235
  readonly name: "内容区域";
32155
32236
  readonly selector: ".wd-top-tab-root .wd-tabs__body";
@@ -38186,7 +38267,27 @@ declare const _default: {
38186
38267
  }>>>;
38187
38268
  initVisible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
38188
38269
  }>;
38189
- readonly classes: readonly [];
38270
+ readonly classes: readonly [{
38271
+ readonly name: "根元素";
38272
+ readonly selector: ".weda-calendar";
38273
+ readonly description: "日历组件根元素";
38274
+ readonly code: ":scope.weda-calendar {\n /* 在这里编写CSS 样式*/\n width: 400px;\n min-width: 400px;\n background-color: antiquewhite;\n } ";
38275
+ }, {
38276
+ readonly name: "日历容器";
38277
+ readonly selector: ".weda-calendar__table";
38278
+ readonly description: "日历组件根元素";
38279
+ readonly code: ":scope .weda-calendar__table {\n /* 在这里编写CSS 样式*/\n } ";
38280
+ }, {
38281
+ readonly name: "日历行";
38282
+ readonly selector: ".weda-calendar__table-body-row";
38283
+ readonly description: "日历组件根元素";
38284
+ readonly code: ":scope .weda-calendar__table .weda-calendar__table-body-row{\n /* 在这里编写CSS 样式*/\n\n } ";
38285
+ }, {
38286
+ readonly name: "日历列";
38287
+ readonly selector: ".weda-calendar__table-body-cell";
38288
+ readonly description: "日历组件根元素";
38289
+ readonly code: ":scope .weda-calendar__table .weda-calendar__table-body-cell{\n /* 在这里编写CSS 样式*/\n width: 30px;\n height: 30px;\n } ";
38290
+ }];
38190
38291
  readonly events: readonly [{
38191
38292
  readonly name: "change";
38192
38293
  readonly title: "选中日期";
@@ -38336,17 +38437,30 @@ declare const _default: {
38336
38437
  readonly selector: ".wd-mp-tabbar";
38337
38438
  readonly description: "可以为 小程序 端的编写样式";
38338
38439
  }, {
38339
- readonly name: "单个选项区域";
38440
+ readonly name: "文本标签容器";
38340
38441
  readonly selector: ".wd-tabbar__item";
38341
38442
  readonly description: "可以为选项区设置样式";
38443
+ readonly code: ":scope .wd-tabbar__item {\n /* 在这里编写CSS 样式*/\n color: red;\n font-size: 20px;\n } ";
38342
38444
  }, {
38343
- readonly name: "选中选项区域";
38445
+ readonly name: "选中态的标签容器";
38344
38446
  readonly selector: ".wd-tabbar__item.is-selected";
38345
38447
  readonly description: "可以为选中选项区域设置样式";
38448
+ readonly code: ":scope .wd-tabbar__item.is-selected {\n /* 在这里编写CSS 样式*/\n color: yellow;\n font-size: 20px;\n } ";
38346
38449
  }, {
38347
38450
  readonly name: "选项文本标签";
38348
38451
  readonly selector: ".wd-tabbar__item-text";
38349
38452
  readonly description: "可以为选项文本标签设置样式";
38453
+ readonly code: ":scope .wd-tabbar__item-text {\n /* 在这里编写CSS 样式 */\n font-size: 20px;\n } ";
38454
+ }, {
38455
+ readonly name: "选项图标(图片)";
38456
+ readonly selector: ".wd-tabbar__item .wd-image";
38457
+ readonly description: "可以为选项文本标签设置样式";
38458
+ readonly code: ":scope .wd-tabbar__item .wd-image {\n /* 在这里编写CSS 样式 */\n width: 20px;\n height: 20px;\n } ";
38459
+ }, {
38460
+ readonly name: "选项图标(图标)";
38461
+ readonly selector: ".wd-tabbar__item .wd-icon";
38462
+ readonly description: "可以为选项文本标签设置样式";
38463
+ readonly code: ":scope .wd-tabbar__item .wd-icon {\n /* 在这里编写CSS 样式 */\n font-size: 20px;\n color: red;\n } ";
38350
38464
  }];
38351
38465
  readonly methods: readonly [{
38352
38466
  readonly name: "setSelectTab";
@@ -1,5 +1,5 @@
1
1
  /**
2
- @cloudbase/weda-ui v3.17.1
2
+ @cloudbase/weda-ui v3.17.3
3
3
  */
4
4
  @charset "UTF-8";@media (min-width:1024px){.weda-ui .weui-cells{font-size:1em}.weui .weui-cell_active:active{background-color:unset!important}}@font-face{font-family:lcap-icon;font-weight:400;font-style:normal;src:url(data:application/font-woff2;charset=utf-8;base64,d09GMgABAAAAAAkMAA0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+Mn8s7wClLQ7bIfqQDaUzYN7x9WTMOV1ntYtmtaZz6SDmI1Yj1kgGBsQXUbdLGhpU1/ckK4uVaMRS43e0s5XdMDDAv+fsxfFK5eMn+flK1c8/L15MHlG+YTYTKW4025bWp7UUQH2n1j/y9Tt6J+5mykLynYv6i9HZvqC/QNV2kZ7HXO/X7/bDf9+T1/Rpe/YolYsWYXO1XS/CmOv6KUuBnUoITNTDEhJNqb1rYTOf1sRhF1D0EvKOkYiRSHnElw9UGd7bkVIq17pUYpqZfGAtizVSDozNPORXtY3YTig+HhCnpergJhqZl1ZlhDTKQz8O+lKEtWVWLTXTaNPBSmt1Z6faC6hmaq+/j+gGT66PrtpKxquCKzUqTFI36xjltiipsN34AAhYK30U0Si9PDd4Qrlx5gXZbykCAdhWAj3p+F8DA+WBim/aNhq9g86DAocD+KIj0VJtIEzs137fvNcn+Zf8+xChp637Q/Eo/0gLUBkjiCckExRp4iSCSMhV8TToMmywXB/GhkcF5ziw45OB87l85aUMFg0NLu2/zrqV/BH9vE5gRJkaL8IilGuqC03JjHIZdlQAzgqTSpcqAx7mVejwNSGWWs4aGlmhqdGjnCFPBYAqTFrMVhmw/tErzDrt1E1nqkx9Os0wHbxR48t8+rYA9icsgyFzkc5s8Ne9hwCEXWH8WM82YAhjUzGZLCR46/+MZFkk2djoLT1IzKCbi3WV1hnUrcvSm+MZtRSpiYWanQU+67DN62G7tnPGP8h5DgBGvMgjgCILl0eQyJQoo5wKKqmimhpqqSOQIIIJQUQoYYQTQSRRRBNDLHGIkRBPAonZMHXOzF6Z99D0PpIk80xVIUlCBjmykYNc5CEfBShEJaqggBIqjzpSRkIGObKRg1zkIR8FKEQlqqCAEiqPulNOAgAA) format('woff2')}.wd-form--vertical-left .wedatea2td-form .weda-formcells__pc.horizontal,.wd-form--vertical-right .wedatea2td-form .weda-formcells__pc.horizontal,.wedatea2td-form--vertical .wd-form--horizontal-left .wd-form-item-wrap,.wedatea2td-form--vertical .wd-form--horizontal-right .wd-form-item-wrap,.wedatea2td-form--vertical .wd-form-item.wd-form-item--horizontal-left .wd-form-item-wrap,.wedatea2td-form--vertical .wd-form-item.wd-form-item--horizontal-right .wd-form-item-wrap,.wedatea2td-form--vertical .wedatea2td-form .weda-formcells__pc.horizontal{flex-direction:column}.g-swiper-item>div>*{max-width:100%;max-height:100%;object-fit:cover;max-width:100%;object-fit:cover;max-width:100%;max-height:100%;object-fit:cover;width:100%;height:auto;max-width:100%;object-fit:cover}.form-detail-wrap .form-detail-content-wrap .form-detail-group-header-container{display:flex;align-items:center;justify-content:space-between}.weda-graphic-card .weda-graphic-card__col .weda-graphic-card__title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.weda-graphic-card .weda-graphic-card__col .weda-graphic-card__desc{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.weda-menu .wedatea2td-menu--light .wedatea2td-menu__list li.is-selected>.wedatea2td-menu__item:hover,.wedatea2td-drawer .wedatea2td-menu--light .wedatea2td-menu__list li .wedatea2td-menu__item:hover{background-color:var(--weda-navigation-menu-hover-color)}.weda-menu-mobile .weda-menu__wrapper{display:flex;align-items:center;justify-content:space-between;box-shadow:0 2px 2px rgba(0,0,0,.05)}.weda-menu .wedatea2td-menu__text .menu-text,.weda-menu__drawer .wedatea2td-menu__text .menu-text{display:flex;justify-content:center;align-items:center}@media (max-width:1024px){.g-swiper .g-swiper__turn-next,.g-swiper .g-swiper__turn-pre{display:none}.modal-table-delete .wedatea2td-dialog__inner,.model-relation-selector-modal .wedatea2td-dialog__inner,.wedatea2td-dialog__inner{min-width:0;width:90%;margin:10px 0}.wedatea2td-form.model-form{width:100%}}.markdown-body .octicon{fill:currentColor}.markdown-body pre{word-wrap:normal}.wd-form-item.wd-pc-rich-text-root .ExEditor-basic,.wd-form-item.wd-pc-rich-text-root .exeditor-toolbar{background-color:inherit}.wd-add-relation-button-wrap{display:flex;align-items:center;color:var(--wd-color-brand,#0052d9);white-space:pre-wrap}.weda-import-csv-file-modal .file-json-map-wrap{display:flex;flex-direction:column;box-sizing:border-box}.weda-import-csv-file-modal .import-file-result-wrap .error-container{display:flex;flex-direction:column}.weda-import-csv-file-modal .import-file-result-wrap .error-content{flex:1}.wd-table-wrap-filter .wedatea2td-input:focus,.wd-table-wrap-filter .wedatea2td-input:hover,.wd-table-wrap-filter .wedatea2td-textarea-group:focus,.wd-table-wrap-filter .wedatea2td-textarea-group:hover,.wd-table-wrap-filter .wedatea2td-textarea:focus,.wd-table-wrap-filter .wedatea2td-textarea:hover,.wedatea2td-overlay .wedatea2td-checkbox:focus,.wedatea2td-overlay .wedatea2td-checkbox:hover,.wedatea2td-overlay input[type=checkbox]:focus,.wedatea2td-overlay input[type=checkbox]:hover{border-color:var(--wd-color-brand,#0052d9)}.weda-ui_mapChoose_search_input_clear{display:flex;justify-content:center}.form-select-map .wedatea2td-dialog__inner{box-shadow:none;min-width:100vw!important}.weda-ui-custom-calendar-op__end,.weda-ui-custom-calendar-op__start{display:flex;align-items:center}.weui-tag span{word-wrap:break-word;word-break:break-word}.weda-ui-user-select-container-list__start .depart-tree .wedatea2td-tree__node.is-selected>.wedatea2td-tree__node-content,.weda-ui-user-select-container-list__start .depart-tree .wedatea2td-tree__node.is-selected>.wedatea2td-tree__node-content .wedatea2td-tree__label,.weda-ui-user-select-container-list__start .wedatea2td-tree.wedatea2td-tree--checkbox-separate .wedatea2td-tree__node.is-selected>.wedatea2td-tree__node-content .wedatea2td-tree__label .wedatea2td-tree__label-title{background-color:var(--wd-color-brand-light,#d4e3fc)}.weda-select-user-dept-breadcrumb{display:flex;align-items:center}.form-location-con_disabled{opacity:.4}body{font-size:var(--wd-font-base)}@font-face{font-family:wd-lcap-icon;font-weight:400;font-style:normal;src:url(data:application/font-woff2;charset=utf-8;base64,d09GMgABAAAAAAkMAA0AAAAAFZgAAAi1AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP0ZGVE0cGh4GYACCXhEICpxYlmoLTgABNgIkA1gEIAWDMweDBRtz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xfFK5eMn+flK1c8/L15MHlG+YTYTKW4025bWp7UUQH2n1j/y9Tt6J+5mykLynYv6i9HZvqC/QNV2kZ7HXO/X7/bDf9+T1/Rpe/YolYsWYXO1XS/CmOv6KUuBnUoITNTDEhJNqb1rYTOf1sRhF1D0EvKOkYiRSHnElw9UGd7bkVIq17pUYpqZfGAtizVSDozNPORXtY3YTig+HhCnpergJhqZl1ZlhDTKQz8O+lKEtWVWLTXTaNPBSmt1Z6faC6hmaq+/j+gGT66PrtpKxquCKzUqTFI36xjltiipsN34AAhYK30U0Si9PDd4Qrlx5gXZbykCAdhWAj3p+F8DA+WBim/aNhq9g86DAocD+KIj0VJtIEzs137fvNcn+Zf8+xChp637Q/Eo/0gLUBkjiCckExRp4iSCSMhV8TToMmywXB/GhkcF5ziw45OB87l85aUMFg0NLu2/zrqV/BH9vE5gRJkaL8IilGuqC03JjHIZdlQAzgqTSpcqAx7mVejwNSGWWs4aGlmhqdGjnCFPBYAqTFrMVhmw/tErzDrt1E1nqkx9Os0wHbxR48t8+rYA9icsgyFzkc5s8Ne9hwCEXWH8WM82YAhjUzGZLCR46/+MZFkk2djoLT1IzKCbi3WV1hnUrcvSm+MZtRSpiYWanQU+67DN62G7tnPGP8h5DgBGvMgjgCILl0eQyJQoo5wKKqmimhpqqSOQIIIJQUQoYYQTQSRRRBNDLHGIkRBPAonZMHXOzF6Z99D0PpIk80xVIUlCBjmykYNc5CEfBShEJaqggBIqjzpSRkIGObKRg1zkIR8FKEQlqqCAEiqPulNOAgAA) format("woff2")}.t-icon{speak:none;text-transform:none;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.wd-space-align-items--flex-start{align-items:flex-start;align-items:center;align-items:flex-end}.wd-space-justify-content--flex-start{justify-content:flex-start;justify-content:center;justify-content:flex-end}.wd-btn{--wd-btn-sm-padding:0.0625rem calc(var(--wd-space-base) * 2);--wd-btn-md-padding:0.25rem calc(var(--wd-space-base) * 4);--wd-btn-lg-padding:0.4375rem calc(var(--wd-space-base) * 6);--wd-btn-margin-top:0;--wd-btn-margin-top:0;--wd-btn-font-size-sm:var(--wd-font-size-2);--wd-btn-line-height-sm:1.5;--wd-btn-min-height-sm:24px;--wd-btn-font-size-md:var(--wd-font-size-3);--wd-btn-line-height-md:1.5;--wd-btn-min-height-md:32px;--wd-btn-font-size-lg:var(--wd-font-size-4);--wd-btn-line-height-lg:1.5;--wd-btn-min-height-lg:40px;--wd-btn-icon-space-sm:var(--wd-space-base);--wd-btn-icon-space-md:calc(var(--wd-space-base) * 2);--wd-btn-icon-space-lg:calc(var(--wd-space-base) * 3);--wd-btn-icon-size-sm:calc(var(--wd-btn-font-size-sm) + 0.125rem);--wd-btn-icon-size-md:calc(var(--wd-btn-font-size-md) + 0.125rem);--wd-btn-icon-size-lg:calc(var(--wd-btn-font-size-lg) + 0.25rem);--wd-btn-border-radius:var(--wd-border-radius);--wd-btn-color-text:var(--wd-color-text-default);--wd-btn-color-text-inverse:var(--wd-color-text-inverse);--wd-btn-color-text-hover:var(--wd-color-text-default);--wd-btn-color-text-active:var(--wd-color-text-default);--wd-btn-color-text-focus:var(--wd-color-text-default);--wd-btn-color-text-disabled:var(--wd-color-text-disabled);--wd-btn-color-brand:var(--wd-color-brand);--wd-btn-color-brand-hover:var(--wd-color-brand-hover);--wd-btn-color-brand-active:var(--wd-color-brand-active);--wd-btn-color-brand-focus:var(--wd-color-brand-focus);--wd-btn-color-brand-disabled:var(--wd-color-brand-disabled);--wd-btn-color-warning:var(--wd-color-warning);--wd-btn-color-warning-hover:var(--wd-color-warning-hover);--wd-btn-color-warning-active:var(--wd-color-warning-active);--wd-btn-color-warning-focus:var(--wd-color-warning-focus);--wd-btn-color-warning-disabled:var(--wd-color-warning-disabled);--wd-btn-color-error:var(--wd-color-error);--wd-btn-color-error-hover:var(--wd-color-error-hover);--wd-btn-color-error-active:var(--wd-color-error-active);--wd-btn-color-error-focus:var(--wd-color-error-focus);--wd-btn-color-error-disabled:var(--wd-color-error-disabled);--wd-btn-color-gray:var(
5
5
  --wd-color-gray-1
@@ -18,7 +18,7 @@ declare class EchartBar extends EchartBase {
18
18
  setColor({ setColor }: {
19
19
  setColor: any;
20
20
  }): void;
21
- setIsSeriesShowSymbol({ isSeriesShowSymbol, isUnit, unit, decimalDigits, suffix, }: {
21
+ setIsSeriesShowSymbol({ isSeriesShowSymbol, isUnit, unit, decimalDigits, suffix }: {
22
22
  isSeriesShowSymbol: any;
23
23
  isUnit: any;
24
24
  unit: any;
@@ -11,6 +11,7 @@ class EchartBar extends EchartBase {
11
11
  this.config = { ...this.config, ...config };
12
12
  }
13
13
  async setSourceData({ dataSource, filterData, xField, xStatistics, xIsCountEmpty, groupKey, groupKeyTimeSpan, yField, isPile, }) {
14
+ var _a;
14
15
  const { name = '', type = '', methodName = '' } = dataSource;
15
16
  if (name !== '') {
16
17
  const params = this.createWhere({
@@ -23,12 +24,16 @@ class EchartBar extends EchartBase {
23
24
  yField,
24
25
  });
25
26
  const arrSourData = await this.getSourceData(name, methodName, type, params);
27
+ this.config.series = [];
28
+ // 没有数据,直接返回
29
+ if (!(arrSourData === null || arrSourData === void 0 ? void 0 : arrSourData.length))
30
+ return;
26
31
  // 获取 x 轴数据
27
32
  const sortedXAxisData = this.sortXAxisData(arrSourData, xField.format);
28
33
  const arrXaxisData = this.setXaxis(sortedXAxisData, xField.format);
29
34
  const arrXisCountEmptyIndex = []; // 记录空值的key
30
35
  if (Object.keys(groupKey !== null && groupKey !== void 0 ? groupKey : {}).length === 0) {
31
- const numLine = sortedXAxisData[0].YLabels.length;
36
+ const numLine = (_a = sortedXAxisData[0]) === null || _a === void 0 ? void 0 : _a.YLabels.length;
32
37
  if (numLine > 0) {
33
38
  for (let j = 0; j < numLine; j++) {
34
39
  this.config.series[j] = {
@@ -44,17 +49,13 @@ class EchartBar extends EchartBase {
44
49
  };
45
50
  sortedXAxisData.forEach((itemSource, index) => {
46
51
  var _a, _b;
47
- this.config.series[j].name =
48
- (_b = (_a = itemSource.YLabels[j]) === null || _a === void 0 ? void 0 : _a.Cn_Name) !== null && _b !== void 0 ? _b : itemSource.YLabels[j].Name;
49
- if ((itemSource.YLabels[j].Value === undefined ||
50
- itemSource.YLabels[j].Value === null) &&
52
+ this.config.series[j].name = (_b = (_a = itemSource.YLabels[j]) === null || _a === void 0 ? void 0 : _a.Cn_Name) !== null && _b !== void 0 ? _b : itemSource.YLabels[j].Name;
53
+ if ((itemSource.YLabels[j].Value === undefined || itemSource.YLabels[j].Value === null) &&
51
54
  !xIsCountEmpty) {
52
55
  arrXisCountEmptyIndex.push(index);
53
56
  }
54
57
  else {
55
- const value = itemSource.YLabels[j].Value
56
- ? itemSource.YLabels[j].Value
57
- : 0;
58
+ const value = itemSource.YLabels[j].Value ? itemSource.YLabels[j].Value : 0;
58
59
  this.config.series[j].data.push(value);
59
60
  }
60
61
  });
@@ -120,7 +121,7 @@ class EchartBar extends EchartBase {
120
121
  }
121
122
  }
122
123
  // 显示图表上的数据标签 单位,标签,小数位数,后缀
123
- setIsSeriesShowSymbol({ isSeriesShowSymbol, isUnit, unit, decimalDigits, suffix, }) {
124
+ setIsSeriesShowSymbol({ isSeriesShowSymbol, isUnit, unit, decimalDigits, suffix }) {
124
125
  decimalDigits = Math.max(0, decimalDigits);
125
126
  this.config.series.length > 0 &&
126
127
  this.config.series.forEach((itemSeries) => {
@@ -20,7 +20,7 @@ declare class EchartLine extends EchartBase {
20
20
  setChartType({ chartType }: {
21
21
  chartType: any;
22
22
  }): void;
23
- setIsSeriesShowSymbol({ isSeriesShowSymbol, isUnit, unit, decimalDigits, suffix, }: {
23
+ setIsSeriesShowSymbol({ isSeriesShowSymbol, isUnit, unit, decimalDigits, suffix }: {
24
24
  isSeriesShowSymbol: any;
25
25
  isUnit: any;
26
26
  unit: any;
@@ -12,6 +12,7 @@ class EchartLine extends EchartBase {
12
12
  this.config = { ...this.config, ...config };
13
13
  }
14
14
  async setSourceData({ dataSource, filterData, xField, xStatistics, xIsCountEmpty, yField, groupKey, groupKeyTimeSpan, }) {
15
+ var _a;
15
16
  const { name = '', type = '', methodName = '' } = dataSource;
16
17
  if (name !== '') {
17
18
  const params = this.createWhere({
@@ -24,12 +25,16 @@ class EchartLine extends EchartBase {
24
25
  groupKeyTimeSpan,
25
26
  });
26
27
  const arrSourData = await this.getSourceData(name, methodName, type, params);
28
+ this.config.series = [];
29
+ // 没有数据,直接返回
30
+ if (!(arrSourData === null || arrSourData === void 0 ? void 0 : arrSourData.length))
31
+ return;
27
32
  // 获取 x 轴数据
28
33
  const sortedXAxisData = this.sortXAxisData(arrSourData, xField.format);
29
34
  const arrXaxisData = this.setXaxis(sortedXAxisData, xField.format);
30
35
  const arrXisCountEmptyIndex = []; // 记录空值的key
31
36
  if (Object.keys(groupKey !== null && groupKey !== void 0 ? groupKey : {}).length === 0) {
32
- const numLine = sortedXAxisData[0].YLabels.length;
37
+ const numLine = (_a = sortedXAxisData[0]) === null || _a === void 0 ? void 0 : _a.YLabels.length;
33
38
  if (numLine > 0) {
34
39
  for (let j = 0; j < numLine; j++) {
35
40
  this.config.series[j] = {
@@ -45,17 +50,13 @@ class EchartLine extends EchartBase {
45
50
  };
46
51
  sortedXAxisData.forEach((itemSource, index) => {
47
52
  var _a, _b, _c, _d, _e, _f, _g;
48
- this.config.series[j].name =
49
- (_b = (_a = itemSource.YLabels[j]) === null || _a === void 0 ? void 0 : _a.Cn_Name) !== null && _b !== void 0 ? _b : (_c = itemSource.YLabels[j]) === null || _c === void 0 ? void 0 : _c.Name;
50
- if ((((_d = itemSource.YLabels[j]) === null || _d === void 0 ? void 0 : _d.Value) === undefined ||
51
- ((_e = itemSource.YLabels[j]) === null || _e === void 0 ? void 0 : _e.Value) === null) &&
53
+ this.config.series[j].name = (_b = (_a = itemSource.YLabels[j]) === null || _a === void 0 ? void 0 : _a.Cn_Name) !== null && _b !== void 0 ? _b : (_c = itemSource.YLabels[j]) === null || _c === void 0 ? void 0 : _c.Name;
54
+ if ((((_d = itemSource.YLabels[j]) === null || _d === void 0 ? void 0 : _d.Value) === undefined || ((_e = itemSource.YLabels[j]) === null || _e === void 0 ? void 0 : _e.Value) === null) &&
52
55
  !xIsCountEmpty) {
53
56
  arrXisCountEmptyIndex.push(index);
54
57
  }
55
58
  else {
56
- const value = ((_f = itemSource.YLabels[j]) === null || _f === void 0 ? void 0 : _f.Value)
57
- ? (_g = itemSource.YLabels[j]) === null || _g === void 0 ? void 0 : _g.Value
58
- : 0;
59
+ const value = ((_f = itemSource.YLabels[j]) === null || _f === void 0 ? void 0 : _f.Value) ? (_g = itemSource.YLabels[j]) === null || _g === void 0 ? void 0 : _g.Value : 0;
59
60
  this.config.series[j].data.push(value);
60
61
  }
61
62
  });
@@ -125,7 +126,7 @@ class EchartLine extends EchartBase {
125
126
  });
126
127
  }
127
128
  // 显示图表上的数据标签 单位,标签,小数位数,后缀
128
- setIsSeriesShowSymbol({ isSeriesShowSymbol, isUnit, unit, decimalDigits, suffix, }) {
129
+ setIsSeriesShowSymbol({ isSeriesShowSymbol, isUnit, unit, decimalDigits, suffix }) {
129
130
  decimalDigits = decimalDigits < 0 ? 0 : decimalDigits;
130
131
  this.config.series.length > 0 &&
131
132
  this.config.series.forEach((itemSeries) => {
@@ -4,7 +4,7 @@ export default EchartPie;
4
4
  * @author loonglong
5
5
  **/
6
6
  declare class EchartPie extends EchartBase {
7
- setSourceData({ dataSource, filterData, setColor, xField, xStatistics, xIsCountEmpty, yField, }: {
7
+ setSourceData({ dataSource, filterData, setColor, xField, xStatistics, xIsCountEmpty, yField }: {
8
8
  dataSource: any;
9
9
  filterData: any;
10
10
  setColor: any;
@@ -16,7 +16,7 @@ declare class EchartPie extends EchartBase {
16
16
  setChartType({ chartType }: {
17
17
  chartType: any;
18
18
  }): void;
19
- setIsSeriesShowSymbol({ isSeriesShowSymbol, isPercent, isUnit, unit, decimalDigits, suffix, }: {
19
+ setIsSeriesShowSymbol({ isSeriesShowSymbol, isPercent, isUnit, unit, decimalDigits, suffix }: {
20
20
  isSeriesShowSymbol: any;
21
21
  isPercent: any;
22
22
  isUnit: any;
@@ -10,7 +10,7 @@ class EchartPie extends EchartBase {
10
10
  const config = getConfig();
11
11
  this.config = { ...this.config, ...config };
12
12
  }
13
- async setSourceData({ dataSource, filterData, setColor, xField, xStatistics, xIsCountEmpty, yField, }) {
13
+ async setSourceData({ dataSource, filterData, setColor, xField, xStatistics, xIsCountEmpty, yField }) {
14
14
  const { name = '', type = '', methodName = '' } = dataSource;
15
15
  if (name !== '') {
16
16
  const params = this.createWhere({
@@ -43,7 +43,8 @@ class EchartPie extends EchartBase {
43
43
  }
44
44
  }
45
45
  else {
46
- // this.config['series'][0].data = [];
46
+ // this.config.series = [];
47
+ this.config['series'][0].data = [];
47
48
  }
48
49
  }
49
50
  }
@@ -60,7 +61,7 @@ class EchartPie extends EchartBase {
60
61
  });
61
62
  }
62
63
  // 显示图表上的数据标签 单位,标签,小数位数,后缀
63
- setIsSeriesShowSymbol({ isSeriesShowSymbol, isPercent, isUnit, unit, decimalDigits, suffix, }) {
64
+ setIsSeriesShowSymbol({ isSeriesShowSymbol, isPercent, isUnit, unit, decimalDigits, suffix }) {
64
65
  decimalDigits = decimalDigits < 0 ? 0 : decimalDigits;
65
66
  let show = false;
66
67
  let position = 'inner';
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import type { CommonPropsType } from '../../types';
3
3
  import type { DataType } from '../../../configs/components/wd-ad';
4
4
  /**
5
5
  * 广告组件,web 端仅用于编辑器展示
6
6
  */
7
- export declare function WdAd(props: WdAdProps): JSX.Element;
7
+ export declare const WdAd: React.ForwardRefExoticComponent<WdAdProps & React.RefAttributes<unknown>>;
8
8
  export interface WdAdProps extends CommonPropsType, DataType {
9
9
  }
@@ -1,19 +1,28 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ /* eslint-disable @typescript-eslint/no-magic-numbers */
3
+ import { forwardRef } from 'react';
4
+ import { useSetWidgetApi } from '../../utils/widget-api/use-set-widget-api';
2
5
  import { useConfig } from '../../utils/config-context';
3
6
  import { BannerAd, VideoAd, GridAd } from './ad-view';
4
7
  import { Bubble, ConfigProvider } from 'tea-component';
5
8
  import { useCanPreview } from '../../utils/hooks/useCanPreview';
6
9
  import { X_RUNTIME_DEFAULT } from '../../../configs/type-utils/x-runtime-default';
10
+ import { alertErrorMessage } from '../../utils/platform';
7
11
  /**
8
12
  * 广告组件,web 端仅用于编辑器展示
9
13
  */
10
- export function WdAd(props) {
14
+ export const WdAd = forwardRef(function WdAd(props, ref) {
11
15
  const { className, id, style, adType: _adType = X_RUNTIME_DEFAULT.adType, gridCount: _gridCount = X_RUNTIME_DEFAULT.gridCount, } = props;
12
16
  const adType = ['banner', 'video', 'grid', 'rewardedVideoAd'].includes(_adType) ? _adType : 'banner';
13
17
  const gridCount = _gridCount == 8 ? 8 : 5;
14
18
  const { classPrefix } = useConfig();
15
19
  const canPreview = useCanPreview();
20
+ useSetWidgetApi(() => ({
21
+ show: () => {
22
+ alertErrorMessage({ message: '该组件必须在小程序真实环境使用才能够看到实际效果。' });
23
+ },
24
+ }), [], ref);
16
25
  if (!canPreview)
17
26
  return null;
18
27
  return (_jsx(ConfigProvider, { classPrefix: "wedatea2td", children: _jsx(Bubble, { placement: "auto", openDelay: 300, content: _jsxs(_Fragment, { children: ["\u8BE5\u7EC4\u4EF6\u5FC5\u987B\u5728\u5C0F\u7A0B\u5E8F\u771F\u5B9E\u73AF\u5883\u4F7F\u7528\u624D\u80FD\u591F\u770B\u5230\u5B9E\u9645\u6548\u679C\u3002", _jsx("br", {}), "\u8BF7\u9075\u5FAA\u5FAE\u4FE1\u5E7F\u544A\u7EC4\u4EF6\u5E94\u7528\u89C4\u8303\uFF0C\u5426\u5219\u53EF\u80FD\u5BFC\u81F4\u5C0F\u7A0B\u5E8F\u5BA1\u6838\u5931\u8D25\u3002"] }), children: _jsxs("div", { className: `${classPrefix}-ad ${classPrefix}-ad--${adType} ${className}`, id: id, style: style, children: [adType === 'banner' && _jsx(BannerAd, {}), ['rewardedVideoAd', 'video'].includes(adType) && _jsx(VideoAd, {}), adType === 'grid' && _jsx(GridAd, { gridCount: gridCount })] }) }) }));
19
- }
28
+ });
@@ -55,10 +55,10 @@ export const WdSelect = forwardRef(function WsSelect(props, ref) {
55
55
  value,
56
56
  });
57
57
  const onFocus = (e) => {
58
- events.focus(null, { originEvent: e });
58
+ (events === null || events === void 0 ? void 0 : events.focus) && (events === null || events === void 0 ? void 0 : events.focus(null, { originEvent: e }));
59
59
  };
60
60
  const onBlur = (e) => {
61
- events.blur(null, { originEvent: e });
61
+ (events === null || events === void 0 ? void 0 : events.blur) && (events === null || events === void 0 ? void 0 : events.blur(null, { originEvent: e }));
62
62
  };
63
63
  const isRelation = isFormatWithRelation(format);
64
64
  const LabelAdornment = isRelation && (_jsx(RelationalSetting, { size: props.size, refresh: () => {
@@ -57,10 +57,10 @@ export const WdSelectMultiple = forwardRef(function WdSelectMultiple(props, ref)
57
57
  (_a = delayEvents === null || delayEvents === void 0 ? void 0 : delayEvents.change) === null || _a === void 0 ? void 0 : _a.call(delayEvents, { value: v, context });
58
58
  };
59
59
  const onFocus = (e) => {
60
- events.focus(null, { originEvent: e });
60
+ (events === null || events === void 0 ? void 0 : events.focus) && events.focus(null, { originEvent: e });
61
61
  };
62
62
  const onBlur = (e) => {
63
- events.blur(null, { originEvent: e });
63
+ (events === null || events === void 0 ? void 0 : events.blur) && events.blur(null, { originEvent: e });
64
64
  };
65
65
  const isRelation = isFormatWithRelation(format);
66
66
  const LabelAdornment = isRelation && (_jsx(RelationalSetting, { size: props.size, refresh: () => {
@@ -246,17 +246,7 @@ export function getFieldRender(field = {}, extra = {}) {
246
246
  const primaryField = ((_h = (_g = field === null || field === void 0 ? void 0 : field.parentDatasource) === null || _g === void 0 ? void 0 : _g.schema) === null || _h === void 0 ? void 0 : _h['x-primary-column']) || '';
247
247
  const relatedField = (_j = extra === null || extra === void 0 ? void 0 : extra.columnSet) === null || _j === void 0 ? void 0 : _j.relatedField;
248
248
  const rowId = extra === null || extra === void 0 ? void 0 : extra.rowId;
249
- const properties = ((_k = parentDatasource === null || parentDatasource === void 0 ? void 0 : parentDatasource.schema) === null || _k === void 0 ? void 0 : _k.properties) || {};
250
- const propertyArr = Object.keys(properties);
251
- const relatedKey = propertyArr.find((item) => {
252
- var _a;
253
- if (properties[item].format === 'many-one' || properties[item].format === 'many-many') {
254
- return ((_a = properties[item]['x-parent']) === null || _a === void 0 ? void 0 : _a.parentFieldKey) === field.name;
255
- }
256
- else {
257
- return false;
258
- }
259
- });
249
+ const relatedKey = (_k = field === null || field === void 0 ? void 0 : field['x-parent']) === null || _k === void 0 ? void 0 : _k.parentFieldKey;
260
250
  const param = {
261
251
  datasource: parentDatasource,
262
252
  isNewData: true,
@@ -1,6 +1,6 @@
1
1
  import { getDataSourceFieldsWithAuth } from '../../../utils/datasource';
2
- import { TABLE_SLOT_PREFIX, GLOBAL_BUTTON, REL_DICT, } from '../../../utils/constant';
3
- import { callWedaApi, appCloudGetWedaUserId, getIsExitApi, } from '../../../utils/tcb';
2
+ import { TABLE_SLOT_PREFIX, GLOBAL_BUTTON, REL_DICT } from '../../../utils/constant';
3
+ import { callWedaApi, appCloudGetWedaUserId, getIsExitApi } from '../../../utils/tcb';
4
4
  import { isObj, deepClone } from '../../../utils/tool';
5
5
  import { errorHandler } from '../../../utils/error';
6
6
  // 新接口没有返回关联表的主列字段,从旧接口中查询出来
@@ -55,9 +55,7 @@ export const whereList = (whereProxy) => {
55
55
  }
56
56
  let [rel, val] = [REL_DICT[item2 === null || item2 === void 0 ? void 0 : item2.rel], item2 === null || item2 === void 0 ? void 0 : item2.value];
57
57
  // 去掉空字符串、undefined(接口不支持)、对象类型(接口不支持)
58
- if (val === '' ||
59
- val === undefined ||
60
- Object.prototype.toString.call(val) === '[object Object]') {
58
+ if (val === '' || val === undefined || Object.prototype.toString.call(val) === '[object Object]') {
61
59
  return;
62
60
  }
63
61
  if ('_begin_with' === rel) {
@@ -179,7 +177,7 @@ const getSearchValues = (searchValues) => {
179
177
  return searchValues.map((item) => {
180
178
  const obj = {};
181
179
  const exp = {};
182
- if (item.val && item.key && item.rel) {
180
+ if (item.val !== undefined && item.key !== undefined && item.rel !== undefined) {
183
181
  exp[`$${item.rel}`] = item.val;
184
182
  obj[item.key] = exp;
185
183
  }
@@ -240,9 +238,7 @@ export const getQueryParams = ({ queryParams, wList, viewFieldsData, connectorPa
240
238
  const searchValues = (queryParams === null || queryParams === void 0 ? void 0 : queryParams.searchValues) || [];
241
239
  let ConditionConfig;
242
240
  if (supportManyRelated) {
243
- ConditionConfig = (viewed === null || viewed === void 0 ? void 0 : viewed.ConditionConfig)
244
- ? [viewed === null || viewed === void 0 ? void 0 : viewed.ConditionConfig]
245
- : [];
241
+ ConditionConfig = (viewed === null || viewed === void 0 ? void 0 : viewed.ConditionConfig) ? [viewed === null || viewed === void 0 ? void 0 : viewed.ConditionConfig] : [];
246
242
  const formatSearchValues = getSearchValues(searchValues);
247
243
  params.filter = getFilter(wList, formatSearchValues, SearchConfig, ConditionConfig);
248
244
  params.select = selectParam(columns, authFields, {
@@ -252,12 +248,7 @@ export const getQueryParams = ({ queryParams, wList, viewFieldsData, connectorPa
252
248
  }
253
249
  else {
254
250
  ConditionConfig = (viewed === null || viewed === void 0 ? void 0 : viewed.ConditionConfig) || {};
255
- params.where = [
256
- ...searchValues,
257
- ...wList,
258
- ...SearchConfig,
259
- ConditionConfig,
260
- ];
251
+ params.where = [...searchValues, ...wList, ...SearchConfig, ConditionConfig];
261
252
  }
262
253
  // 如果视图里存在排序设置则以视图为主
263
254
  if (isViewTable && (viewed === null || viewed === void 0 ? void 0 : viewed.sortItem)) {
@@ -355,11 +346,8 @@ export const getViews = async (dbName, selectedView) => {
355
346
  .condition) === null || _c === void 0 ? void 0 : _c.filter((item) => item.IsQuery).map((item) => {
356
347
  var _a, _b;
357
348
  // 当规则为包含/不包含当前用户时,设计态无法获取当前用户uid需要 运行态主动获取
358
- if (item.Rel === 'eq-current-user' ||
359
- item.Rel === 'ne-current-user') {
360
- item.Val =
361
- (appCloudGetWedaUserId === null || appCloudGetWedaUserId === void 0 ? void 0 : appCloudGetWedaUserId()) ||
362
- ((_b = (_a = window === null || window === void 0 ? void 0 : window._WedaHostConfig) === null || _a === void 0 ? void 0 : _a.wedaUser) === null || _b === void 0 ? void 0 : _b.userId);
349
+ if (item.Rel === 'eq-current-user' || item.Rel === 'ne-current-user') {
350
+ item.Val = (appCloudGetWedaUserId === null || appCloudGetWedaUserId === void 0 ? void 0 : appCloudGetWedaUserId()) || ((_b = (_a = window === null || window === void 0 ? void 0 : window._WedaHostConfig) === null || _a === void 0 ? void 0 : _a.wedaUser) === null || _b === void 0 ? void 0 : _b.userId);
363
351
  }
364
352
  return {
365
353
  Key: item.Key,
@@ -384,8 +372,7 @@ export const getViews = async (dbName, selectedView) => {
384
372
  }
385
373
  // 根据x-layoutShow显示隐藏
386
374
  item.fields = (_e = item.fields) === null || _e === void 0 ? void 0 : _e.filter((item) => item['x-layoutShow'] === true).sort((a, b) => a['x-index'] - b['x-index']);
387
- if (!(window === null || window === void 0 ? void 0 : window._isPrivate) ||
388
- describeRuntimeDataViewPropertiesListStatus) {
375
+ if (!(window === null || window === void 0 ? void 0 : window._isPrivate) || describeRuntimeDataViewPropertiesListStatus) {
389
376
  // 设置字段权限,关联模型字段权限,接口没返回暂不进行校验:['x-viewType']
390
377
  item.fields = (_f = getDataSourceFieldsWithAuth(item.fields, dataViewPropertiesList.ResourceCheckInfos)) === null || _f === void 0 ? void 0 : _f.filter((value) => value.readWriteAuth === 'rw' || value.readWriteAuth === 'r');
391
378
  // 关联模型的主列字段
@@ -422,9 +409,7 @@ export const getFilterFields = (filterFields, authFields) => {
422
409
  if (item) {
423
410
  result.push({
424
411
  ...deepClone(item),
425
- isRange: item.isRange === undefined
426
- ? (_b = (_a = i.filterTypeOption) === null || _a === void 0 ? void 0 : _a.includes) === null || _b === void 0 ? void 0 : _b.call(_a, 'scope')
427
- : item.isRange,
412
+ isRange: item.isRange === undefined ? (_b = (_a = i.filterTypeOption) === null || _a === void 0 ? void 0 : _a.includes) === null || _b === void 0 ? void 0 : _b.call(_a, 'scope') : item.isRange,
428
413
  title: (i === null || i === void 0 ? void 0 : i.label) || item.title,
429
414
  filterConfig: i,
430
415
  });
@@ -433,8 +418,7 @@ export const getFilterFields = (filterFields, authFields) => {
433
418
  }
434
419
  else {
435
420
  // 筛选有权限的字段
436
- result =
437
- ((_a = filterFieldsObj === null || filterFieldsObj === void 0 ? void 0 : filterFieldsObj.selected) === null || _a === void 0 ? void 0 : _a.map((i) => authFields.find((j) => (j === null || j === void 0 ? void 0 : j.name) === i))) || [];
421
+ result = ((_a = filterFieldsObj === null || filterFieldsObj === void 0 ? void 0 : filterFieldsObj.selected) === null || _a === void 0 ? void 0 : _a.map((i) => authFields.find((j) => (j === null || j === void 0 ? void 0 : j.name) === i))) || [];
438
422
  result = result.filter((i) => isObj(i));
439
423
  result = deepClone(result);
440
424
  result = result.map((i) => {
@@ -474,9 +458,7 @@ export const getSortColumns = ({ fields, columnSets }) => {
474
458
  return false;
475
459
  }
476
460
  const field = fields === null || fields === void 0 ? void 0 : fields.find((j) => i.key === j.name);
477
- if ((field === null || field === void 0 ? void 0 : field.type) !== 'array' &&
478
- (field === null || field === void 0 ? void 0 : field.type) !== 'object' &&
479
- !(field === null || field === void 0 ? void 0 : field.name.includes('@'))) {
461
+ if ((field === null || field === void 0 ? void 0 : field.type) !== 'array' && (field === null || field === void 0 ? void 0 : field.type) !== 'object' && !(field === null || field === void 0 ? void 0 : field.name.includes('@'))) {
480
462
  return true;
481
463
  }
482
464
  else {
@@ -585,14 +567,11 @@ export const getRecordKey = ({ dataSourceType, dataSourceData, key }) => {
585
567
  if (dataSourceType !== DataSourceType.Expression) {
586
568
  return '_id';
587
569
  }
588
- const tableExpressionData = Array.isArray(dataSourceData)
589
- ? dataSourceData
590
- : [];
570
+ const tableExpressionData = Array.isArray(dataSourceData) ? dataSourceData : [];
591
571
  const result = Object.assign({}, ...tableExpressionData);
592
572
  // eslint-disable-next-line @typescript-eslint/no-magic-numbers
593
573
  const isExisted = Object.keys(result).filter((i) => i === key).length === 1;
594
- const newListLength = new Set(tableExpressionData.map((item) => item === null || item === void 0 ? void 0 : item[key]))
595
- .size;
574
+ const newListLength = new Set(tableExpressionData.map((item) => item === null || item === void 0 ? void 0 : item[key])).size;
596
575
  const isUnique = newListLength === tableExpressionData.length;
597
576
  if (isExisted && isUnique) {
598
577
  return key;
@@ -1,13 +1,14 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { forwardRef, useRef, useEffect } from 'react';
2
+ import React, { forwardRef, useRef, useEffect } from 'react';
3
+ import { autorun } from 'mobx';
3
4
  import classNames from '../../utils/classnames';
4
5
  import { useConfig } from '../../utils/config-context';
5
- import { isInIde, usePlatform } from '../../utils/platform';
6
+ import { usePlatform } from '../../utils/platform';
6
7
  import { useSetWidgetApi } from '../../utils/widget-api/use-set-widget-api';
7
- import { Bubble } from 'tea-component';
8
+ import { Bubble, ConfigProvider } from 'tea-component';
8
9
  import EmptyContent from '../statusContent';
9
10
  import './style';
10
- export const WebView = forwardRef(function WebView({ link = '', events, className, style, allow = 'microphone;camera;midi;encrypted-media;geolocation;fullscreen;clipboard-write;clipboard-read;', sandbox = 'allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts allow-downloads', }, ref) {
11
+ export const WebView = forwardRef(function WebView({ id, link = '', events, className, style, allow = 'microphone;camera;midi;encrypted-media;geolocation;fullscreen;clipboard-write;clipboard-read;', sandbox = 'allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts allow-downloads', }, ref) {
11
12
  const platform = usePlatform();
12
13
  const iframeRef = useRef(null);
13
14
  // 样式
@@ -17,33 +18,22 @@ export const WebView = forwardRef(function WebView({ link = '', events, classNam
17
18
  [`${classPrefix}-web-view-container`]: true,
18
19
  [platformCss]: true,
19
20
  };
20
- function onLoad() {
21
- try {
22
- linkCheck(link);
23
- }
24
- catch {
25
- onError();
26
- }
27
- }
28
- // 检测src是否存在
29
- function linkCheck(src) {
30
- const link = document.createElement('link');
31
- link.rel = 'stylesheet';
32
- link.type = 'text/css';
33
- // 这里设置需要检测的url
34
- link.href = src;
35
- link.onload = function () {
36
- onSuccess();
37
- };
38
- link.onerror = function () {
39
- onError();
21
+ const [editorPlatforms, setEditorPlatforms] = React.useState([]);
22
+ const dispose = React.useMemo(() => {
23
+ return autorun(() => {
24
+ var _a, _b;
25
+ setEditorPlatforms((_b = (_a = window === null || window === void 0 ? void 0 : window.$w) === null || _a === void 0 ? void 0 : _a.wedaContext) === null || _b === void 0 ? void 0 : _b.editorPlatforms);
26
+ });
27
+ }, []);
28
+ React.useEffect(() => {
29
+ return () => {
30
+ dispose();
40
31
  };
41
- document.body.appendChild(link);
42
- }
32
+ }, [dispose]);
43
33
  function onError() {
44
34
  (events === null || events === void 0 ? void 0 : events.error) && events.error({ src: link });
45
35
  }
46
- function onSuccess() {
36
+ function onLoad() {
47
37
  (events === null || events === void 0 ? void 0 : events.load) && (events === null || events === void 0 ? void 0 : events.load({ src: link }));
48
38
  }
49
39
  // Widget API,挂载组件只读属性和组件方法
@@ -68,5 +58,5 @@ export const WebView = forwardRef(function WebView({ link = '', events, classNam
68
58
  (events === null || events === void 0 ? void 0 : events.message) && (events === null || events === void 0 ? void 0 : events.message({ data: e.data }));
69
59
  }, false);
70
60
  }, [events, link]);
71
- return (_jsx(_Fragment, { children: isInIde() ? (_jsx(_Fragment, { children: _jsx(Bubble, { content: "\u8BE5\u7EC4\u4EF6\u5728\u5C0F\u7A0B\u5E8F\u7AEF\u5C06\u94FA\u6EE1\u6574\u4E2A\u9875\u9762\u5E76\u8986\u76D6\u5176\u4ED6\u7EC4\u4EF6\uFF0C\u5E76\u4E14\u5C0F\u7A0B\u5E8F\u4E3A\u4F01\u4E1A\u4E3B\u4F53\u65F6\u624D\u80FD\u6B63\u5E38\u4F7F\u7528", children: link ? (_jsx("iframe", { src: link, style: style, className: classNames(classes, className) })) : (_jsx("div", { style: style, className: classNames(classes, className), children: _jsx(EmptyContent, { emptyText: "\u6682\u65E0\u7F51\u9875\uFF0C\u8BF7\u8F93\u5165\u7F51\u9875\u94FE\u63A5", component: "table", isH5: true }) })) }) })) : (_jsx(_Fragment, { children: link ? (_jsx("iframe", { onLoad: onLoad, onError: () => onError(), ref: iframeRef, id: 'web-view', name: 'web-view', src: link, title: 'web-view', style: style, className: classNames(classes, className), allow: allow, sandbox: sandbox })) : (_jsx("div", { style: style, className: classNames(classes, className), children: _jsx(EmptyContent, { emptyText: "\u6682\u65E0\u7F51\u9875\uFF0C\u8BF7\u8F93\u5165\u7F51\u9875\u94FE\u63A5", component: "table", isH5: true }) })) })) }));
61
+ return (_jsx(_Fragment, { children: (editorPlatforms === null || editorPlatforms === void 0 ? void 0 : editorPlatforms.includes('MP')) ? (_jsx(ConfigProvider, { classPrefix: "wedatea2td", children: _jsx(Bubble, { placement: "left", content: "\u8BE5\u7EC4\u4EF6\u5728\u5C0F\u7A0B\u5E8F\u7AEF\u5C06\u94FA\u6EE1\u6574\u4E2A\u9875\u9762\u5E76\u8986\u76D6\u5176\u4ED6\u7EC4\u4EF6\uFF0C\u5E76\u4E14\u5C0F\u7A0B\u5E8F\u4E3A\u4F01\u4E1A\u4E3B\u4F53\u65F6\u624D\u80FD\u6B63\u5E38\u4F7F\u7528", children: link ? (_jsx("iframe", { src: link, style: style, className: classNames(classes, className) })) : (_jsx("div", { style: style, className: classNames(classes, className), children: _jsx(EmptyContent, { emptyText: "\u6682\u65E0\u7F51\u9875\uFF0C\u8BF7\u8F93\u5165\u7F51\u9875\u94FE\u63A5", component: "table", isH5: true }) })) }) })) : (_jsx(_Fragment, { children: link ? (_jsx("iframe", { id: id, onLoad: onLoad, onError: onError, ref: iframeRef, name: 'web-view', src: link, title: 'web-view', style: style, className: classNames(classes, className), allow: allow, sandbox: sandbox })) : (_jsx("div", { style: style, className: classNames(classes, className), children: _jsx(EmptyContent, { emptyText: "\u6682\u65E0\u7F51\u9875\uFF0C\u8BF7\u8F93\u5165\u7F51\u9875\u94FE\u63A5", component: "table", isH5: true }) })) })) }));
72
62
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudbase/weda-ui",
3
- "version": "3.17.1",
3
+ "version": "3.17.3",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index",
6
6
  "miniprogram": "mpdist",