@cloudbase/weda-ui 3.19.1 → 3.19.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.
- package/dist/configs/components/chart/bar.js +62 -0
- package/dist/configs/components/chart/line.js +62 -0
- package/dist/configs/components/chart/pie.js +62 -0
- package/dist/configs/components/chart/statisticsCard.json +42 -0
- package/dist/configs/components/scrollVeiw.json +43 -79
- package/dist/configs/components/wd-cascader.d.ts +7 -12
- package/dist/configs/components/wd-cascader.js +12 -1
- package/dist/configs/components/wd-table.js +1 -1
- package/dist/configs/components/wd-top-tab.d.ts +0 -5
- package/dist/configs/components/wd-top-tab.js +0 -14
- package/dist/configs/index.d.ts +74 -52
- package/dist/style/weda-ui.min.css +1 -1
- package/dist/web/components/form-input-hooks/index.js +11 -13
- package/dist/web/components/wd-table/components/ExportFileModalByApi/index.js +2 -1
- package/package.json +1 -1
|
@@ -502,6 +502,30 @@ const data = Type.Object({
|
|
|
502
502
|
'x-component-props': {
|
|
503
503
|
dataSourceNamePropKey: 'dataModel',
|
|
504
504
|
customRelOptions: {
|
|
505
|
+
string: [
|
|
506
|
+
{
|
|
507
|
+
value: 'eq',
|
|
508
|
+
text: '等于',
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
value: 'neq',
|
|
512
|
+
text: '不等于',
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
value: 'search',
|
|
516
|
+
text: '包含',
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
value: 'nsearch',
|
|
520
|
+
text: '不包含',
|
|
521
|
+
},
|
|
522
|
+
],
|
|
523
|
+
boolean: [
|
|
524
|
+
{
|
|
525
|
+
value: 'eq',
|
|
526
|
+
text: '等于',
|
|
527
|
+
},
|
|
528
|
+
],
|
|
505
529
|
number: [
|
|
506
530
|
{
|
|
507
531
|
value: 'eq',
|
|
@@ -534,6 +558,44 @@ const data = Type.Object({
|
|
|
534
558
|
type: 'less_or_equal',
|
|
535
559
|
},
|
|
536
560
|
],
|
|
561
|
+
array: [
|
|
562
|
+
{
|
|
563
|
+
value: 'eq',
|
|
564
|
+
text: '等于',
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
value: 'in',
|
|
568
|
+
text: '包含',
|
|
569
|
+
},
|
|
570
|
+
],
|
|
571
|
+
object: [
|
|
572
|
+
{
|
|
573
|
+
value: 'eq',
|
|
574
|
+
text: '等于',
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
value: 'in',
|
|
578
|
+
text: '包含',
|
|
579
|
+
},
|
|
580
|
+
],
|
|
581
|
+
keyVarType: [
|
|
582
|
+
{
|
|
583
|
+
value: 'eq',
|
|
584
|
+
text: '等于',
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
value: 'neq',
|
|
588
|
+
text: '不等于',
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
value: 'gt',
|
|
592
|
+
text: '大于',
|
|
593
|
+
},
|
|
594
|
+
{
|
|
595
|
+
value: 'lt',
|
|
596
|
+
text: '小于',
|
|
597
|
+
},
|
|
598
|
+
],
|
|
537
599
|
},
|
|
538
600
|
},
|
|
539
601
|
'x-props': {
|
|
@@ -442,6 +442,30 @@ const data = Type.Object({
|
|
|
442
442
|
'x-component-props': {
|
|
443
443
|
dataSourceNamePropKey: 'dataModel',
|
|
444
444
|
customRelOptions: {
|
|
445
|
+
string: [
|
|
446
|
+
{
|
|
447
|
+
value: 'eq',
|
|
448
|
+
text: '等于',
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
value: 'neq',
|
|
452
|
+
text: '不等于',
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
value: 'search',
|
|
456
|
+
text: '包含',
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
value: 'nsearch',
|
|
460
|
+
text: '不包含',
|
|
461
|
+
},
|
|
462
|
+
],
|
|
463
|
+
boolean: [
|
|
464
|
+
{
|
|
465
|
+
value: 'eq',
|
|
466
|
+
text: '等于',
|
|
467
|
+
},
|
|
468
|
+
],
|
|
445
469
|
number: [
|
|
446
470
|
{
|
|
447
471
|
value: 'eq',
|
|
@@ -474,6 +498,44 @@ const data = Type.Object({
|
|
|
474
498
|
type: 'less_or_equal',
|
|
475
499
|
},
|
|
476
500
|
],
|
|
501
|
+
array: [
|
|
502
|
+
{
|
|
503
|
+
value: 'eq',
|
|
504
|
+
text: '等于',
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
value: 'in',
|
|
508
|
+
text: '包含',
|
|
509
|
+
},
|
|
510
|
+
],
|
|
511
|
+
object: [
|
|
512
|
+
{
|
|
513
|
+
value: 'eq',
|
|
514
|
+
text: '等于',
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
value: 'in',
|
|
518
|
+
text: '包含',
|
|
519
|
+
},
|
|
520
|
+
],
|
|
521
|
+
keyVarType: [
|
|
522
|
+
{
|
|
523
|
+
value: 'eq',
|
|
524
|
+
text: '等于',
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
value: 'neq',
|
|
528
|
+
text: '不等于',
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
value: 'gt',
|
|
532
|
+
text: '大于',
|
|
533
|
+
},
|
|
534
|
+
{
|
|
535
|
+
value: 'lt',
|
|
536
|
+
text: '小于',
|
|
537
|
+
},
|
|
538
|
+
],
|
|
477
539
|
},
|
|
478
540
|
},
|
|
479
541
|
'x-props': {
|
|
@@ -437,6 +437,30 @@ const data = Type.Object({
|
|
|
437
437
|
'x-component-props': {
|
|
438
438
|
dataSourceNamePropKey: 'dataModel',
|
|
439
439
|
customRelOptions: {
|
|
440
|
+
string: [
|
|
441
|
+
{
|
|
442
|
+
value: 'eq',
|
|
443
|
+
text: '等于',
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
value: 'neq',
|
|
447
|
+
text: '不等于',
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
value: 'search',
|
|
451
|
+
text: '包含',
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
value: 'nsearch',
|
|
455
|
+
text: '不包含',
|
|
456
|
+
},
|
|
457
|
+
],
|
|
458
|
+
boolean: [
|
|
459
|
+
{
|
|
460
|
+
value: 'eq',
|
|
461
|
+
text: '等于',
|
|
462
|
+
},
|
|
463
|
+
],
|
|
440
464
|
number: [
|
|
441
465
|
{
|
|
442
466
|
value: 'eq',
|
|
@@ -469,6 +493,44 @@ const data = Type.Object({
|
|
|
469
493
|
type: 'less_or_equal',
|
|
470
494
|
},
|
|
471
495
|
],
|
|
496
|
+
array: [
|
|
497
|
+
{
|
|
498
|
+
value: 'eq',
|
|
499
|
+
text: '等于',
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
value: 'in',
|
|
503
|
+
text: '包含',
|
|
504
|
+
},
|
|
505
|
+
],
|
|
506
|
+
object: [
|
|
507
|
+
{
|
|
508
|
+
value: 'eq',
|
|
509
|
+
text: '等于',
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
value: 'in',
|
|
513
|
+
text: '包含',
|
|
514
|
+
},
|
|
515
|
+
],
|
|
516
|
+
keyVarType: [
|
|
517
|
+
{
|
|
518
|
+
value: 'eq',
|
|
519
|
+
text: '等于',
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
value: 'neq',
|
|
523
|
+
text: '不等于',
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
value: 'gt',
|
|
527
|
+
text: '大于',
|
|
528
|
+
},
|
|
529
|
+
{
|
|
530
|
+
value: 'lt',
|
|
531
|
+
text: '小于',
|
|
532
|
+
},
|
|
533
|
+
],
|
|
472
534
|
},
|
|
473
535
|
},
|
|
474
536
|
'x-props': {
|
|
@@ -116,6 +116,48 @@
|
|
|
116
116
|
"type": ["object", "array"]
|
|
117
117
|
},
|
|
118
118
|
"customRelOptions": {
|
|
119
|
+
"string": [
|
|
120
|
+
{
|
|
121
|
+
"text": "等于",
|
|
122
|
+
"value": "eq"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"text": "不等于",
|
|
126
|
+
"value": "neq"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"text": "包含",
|
|
130
|
+
"value": "search"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"text": "不包含",
|
|
134
|
+
"value": "nsearch"
|
|
135
|
+
}
|
|
136
|
+
],
|
|
137
|
+
"boolean": [
|
|
138
|
+
{
|
|
139
|
+
"text": "等于",
|
|
140
|
+
"value": "eq"
|
|
141
|
+
}
|
|
142
|
+
],
|
|
143
|
+
"keyVarType": [
|
|
144
|
+
{
|
|
145
|
+
"value": "eq",
|
|
146
|
+
"text": "等于"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"value": "neq",
|
|
150
|
+
"text": "不等于"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"value": "gt",
|
|
154
|
+
"text": "大于"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"value": "lt",
|
|
158
|
+
"text": "小于"
|
|
159
|
+
}
|
|
160
|
+
],
|
|
119
161
|
"number": [
|
|
120
162
|
{
|
|
121
163
|
"text": "等于",
|
|
@@ -2,17 +2,6 @@
|
|
|
2
2
|
"$schema": "https://comp-public-replace-1303824488-cos.weda.tencent.com/schema/lcds_component.json",
|
|
3
3
|
"data": {
|
|
4
4
|
"properties": {
|
|
5
|
-
"showScrollbar": {
|
|
6
|
-
"title": "滚动条显隐控制",
|
|
7
|
-
"type": "boolean",
|
|
8
|
-
"default": true,
|
|
9
|
-
"x-platforms": [
|
|
10
|
-
"MP"
|
|
11
|
-
],
|
|
12
|
-
"x-category": "基础属性",
|
|
13
|
-
"x-index": 1,
|
|
14
|
-
"description": "控制滚动条是否显示/隐藏"
|
|
15
|
-
},
|
|
16
5
|
"scrollX": {
|
|
17
6
|
"title": "允许横向滚动",
|
|
18
7
|
"type": "boolean",
|
|
@@ -49,9 +38,7 @@
|
|
|
49
38
|
"x-category": "高级属性",
|
|
50
39
|
"x-index": 4,
|
|
51
40
|
"description": "将当前的元素滚动到浏览器窗口的可视区域内",
|
|
52
|
-
"x-platforms": [
|
|
53
|
-
"WEB"
|
|
54
|
-
],
|
|
41
|
+
"x-platforms": ["WEB"],
|
|
55
42
|
"x-helper-text": "小程序暂时不支持此特性"
|
|
56
43
|
},
|
|
57
44
|
"scrollLeft": {
|
|
@@ -82,6 +69,26 @@
|
|
|
82
69
|
"x-index": 8,
|
|
83
70
|
"x-category": "高级属性"
|
|
84
71
|
},
|
|
72
|
+
"showScrollbar": {
|
|
73
|
+
"title": "滚动条显隐控制",
|
|
74
|
+
"type": "boolean",
|
|
75
|
+
"default": true,
|
|
76
|
+
"x-platforms": ["MP"],
|
|
77
|
+
"x-category": "高级属性",
|
|
78
|
+
"x-index": 80,
|
|
79
|
+
"description": "控制滚动条是否显示/隐藏",
|
|
80
|
+
"x-helper-text": "隐藏滚动条需启用 scroll-view 增强特性后生效",
|
|
81
|
+
"x-linkages": [
|
|
82
|
+
{
|
|
83
|
+
"type": "value:state",
|
|
84
|
+
"target": "*(enhanced)",
|
|
85
|
+
"condition": "{{ !$self.value }}",
|
|
86
|
+
"state": {
|
|
87
|
+
"value": true
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
]
|
|
91
|
+
},
|
|
85
92
|
"enhanced": {
|
|
86
93
|
"title": "启用 scroll-view 增强特性",
|
|
87
94
|
"type": "boolean",
|
|
@@ -89,13 +96,11 @@
|
|
|
89
96
|
"x-linkages": [
|
|
90
97
|
{
|
|
91
98
|
"type": "value:visible",
|
|
92
|
-
"target": "*(bounces,
|
|
99
|
+
"target": "*(bounces,pagingEnabled,fastDeceleration)",
|
|
93
100
|
"condition": "{{ $self.value }}"
|
|
94
101
|
}
|
|
95
102
|
],
|
|
96
|
-
"x-platforms": [
|
|
97
|
-
"MP"
|
|
98
|
-
],
|
|
103
|
+
"x-platforms": ["MP"],
|
|
99
104
|
"x-category": "高级属性",
|
|
100
105
|
"x-index": 90,
|
|
101
106
|
"description": "开启scroll-view增强特性 "
|
|
@@ -104,9 +109,7 @@
|
|
|
104
109
|
"title": "iOS 下 scroll-view 边界弹性控制",
|
|
105
110
|
"type": "boolean",
|
|
106
111
|
"default": true,
|
|
107
|
-
"x-platforms": [
|
|
108
|
-
"MP"
|
|
109
|
-
],
|
|
112
|
+
"x-platforms": ["MP"],
|
|
110
113
|
"x-index": 91,
|
|
111
114
|
"x-category": "高级属性"
|
|
112
115
|
},
|
|
@@ -114,9 +117,7 @@
|
|
|
114
117
|
"title": "分页滑动效果",
|
|
115
118
|
"type": "boolean",
|
|
116
119
|
"default": false,
|
|
117
|
-
"x-platforms": [
|
|
118
|
-
"MP"
|
|
119
|
-
],
|
|
120
|
+
"x-platforms": ["MP"],
|
|
120
121
|
"x-index": 93,
|
|
121
122
|
"x-category": "高级属性"
|
|
122
123
|
},
|
|
@@ -124,9 +125,7 @@
|
|
|
124
125
|
"title": "滑动减速速率控制",
|
|
125
126
|
"type": "boolean",
|
|
126
127
|
"default": false,
|
|
127
|
-
"x-platforms": [
|
|
128
|
-
"MP"
|
|
129
|
-
],
|
|
128
|
+
"x-platforms": ["MP"],
|
|
130
129
|
"x-index": 94,
|
|
131
130
|
"x-category": "高级属性"
|
|
132
131
|
},
|
|
@@ -141,9 +140,7 @@
|
|
|
141
140
|
"condition": "{{ $self.value }}"
|
|
142
141
|
}
|
|
143
142
|
],
|
|
144
|
-
"x-platforms": [
|
|
145
|
-
"MP"
|
|
146
|
-
],
|
|
143
|
+
"x-platforms": ["MP"],
|
|
147
144
|
"x-category": "高级属性",
|
|
148
145
|
"x-index": 100,
|
|
149
146
|
"description": "开启后可自定义对下拉刷新进行相关配置"
|
|
@@ -153,9 +150,7 @@
|
|
|
153
150
|
"type": "number",
|
|
154
151
|
"default": 50,
|
|
155
152
|
"x-index": 101,
|
|
156
|
-
"x-platforms": [
|
|
157
|
-
"MP"
|
|
158
|
-
],
|
|
153
|
+
"x-platforms": ["MP"],
|
|
159
154
|
"x-category": "高级属性"
|
|
160
155
|
},
|
|
161
156
|
"refresherDefaultStyle": {
|
|
@@ -177,9 +172,7 @@
|
|
|
177
172
|
"value": "none"
|
|
178
173
|
}
|
|
179
174
|
],
|
|
180
|
-
"x-platforms": [
|
|
181
|
-
"MP"
|
|
182
|
-
],
|
|
175
|
+
"x-platforms": ["MP"],
|
|
183
176
|
"x-index": 102,
|
|
184
177
|
"x-category": "高级属性"
|
|
185
178
|
},
|
|
@@ -188,9 +181,7 @@
|
|
|
188
181
|
"type": "string",
|
|
189
182
|
"x-component": "color",
|
|
190
183
|
"default": "#fff",
|
|
191
|
-
"x-platforms": [
|
|
192
|
-
"MP"
|
|
193
|
-
],
|
|
184
|
+
"x-platforms": ["MP"],
|
|
194
185
|
"x-index": 103,
|
|
195
186
|
"x-category": "高级属性"
|
|
196
187
|
},
|
|
@@ -198,9 +189,7 @@
|
|
|
198
189
|
"title": "设置当前下拉刷新状态",
|
|
199
190
|
"type": "boolean",
|
|
200
191
|
"default": false,
|
|
201
|
-
"x-platforms": [
|
|
202
|
-
"MP"
|
|
203
|
-
],
|
|
192
|
+
"x-platforms": ["MP"],
|
|
204
193
|
"x-index": 104,
|
|
205
194
|
"x-category": "高级属性"
|
|
206
195
|
},
|
|
@@ -208,9 +197,7 @@
|
|
|
208
197
|
"title": "开启 scroll anchoring 特性",
|
|
209
198
|
"type": "boolean",
|
|
210
199
|
"default": false,
|
|
211
|
-
"x-platforms": [
|
|
212
|
-
"MP"
|
|
213
|
-
],
|
|
200
|
+
"x-platforms": ["MP"],
|
|
214
201
|
"x-category": "高级属性",
|
|
215
202
|
"x-index": 110,
|
|
216
203
|
"description": "开启scroll-anchoring特性"
|
|
@@ -219,9 +206,7 @@
|
|
|
219
206
|
"title": "启用 flexbox 布局",
|
|
220
207
|
"type": "boolean",
|
|
221
208
|
"default": false,
|
|
222
|
-
"x-platforms": [
|
|
223
|
-
"MP"
|
|
224
|
-
],
|
|
209
|
+
"x-platforms": ["MP"],
|
|
225
210
|
"x-category": "高级属性",
|
|
226
211
|
"x-index": 120,
|
|
227
212
|
"description": "开启flexbox布局"
|
|
@@ -230,9 +215,7 @@
|
|
|
230
215
|
"title": "iOS点击顶部状态栏、安卓双击标题栏时,滚动条返回顶部,只支持竖向",
|
|
231
216
|
"type": "boolean",
|
|
232
217
|
"default": false,
|
|
233
|
-
"x-platforms": [
|
|
234
|
-
"MP"
|
|
235
|
-
],
|
|
218
|
+
"x-platforms": ["MP"],
|
|
236
219
|
"x-category": "高级属性",
|
|
237
220
|
"x-index": 130,
|
|
238
221
|
"description": "开启后当执行对应操作后滚动条将自动返回顶部"
|
|
@@ -241,9 +224,7 @@
|
|
|
241
224
|
"title": "在设置滚动条位置时使用动画过渡",
|
|
242
225
|
"type": "boolean",
|
|
243
226
|
"default": false,
|
|
244
|
-
"x-platforms": [
|
|
245
|
-
"MP"
|
|
246
|
-
],
|
|
227
|
+
"x-platforms": ["MP"],
|
|
247
228
|
"x-index": 140,
|
|
248
229
|
"x-category": "高级属性",
|
|
249
230
|
"description": "开启滚动条动画"
|
|
@@ -265,51 +246,37 @@
|
|
|
265
246
|
},
|
|
266
247
|
{
|
|
267
248
|
"name": "dragstart",
|
|
268
|
-
"x-platforms": [
|
|
269
|
-
"MP"
|
|
270
|
-
],
|
|
249
|
+
"x-platforms": ["MP"],
|
|
271
250
|
"title": "滑动开始事件(同时开启 enhanced 属性后生效)"
|
|
272
251
|
},
|
|
273
252
|
{
|
|
274
253
|
"name": "dragging",
|
|
275
|
-
"x-platforms": [
|
|
276
|
-
"MP"
|
|
277
|
-
],
|
|
254
|
+
"x-platforms": ["MP"],
|
|
278
255
|
"title": "滑动事件(同时开启 enhanced 属性后生效)"
|
|
279
256
|
},
|
|
280
257
|
{
|
|
281
258
|
"name": "dragend",
|
|
282
|
-
"x-platforms": [
|
|
283
|
-
"MP"
|
|
284
|
-
],
|
|
259
|
+
"x-platforms": ["MP"],
|
|
285
260
|
"title": "滑动结束事件(同时开启 enhanced 属性后生效)"
|
|
286
261
|
},
|
|
287
262
|
{
|
|
288
263
|
"name": "refresherpulling",
|
|
289
|
-
"x-platforms": [
|
|
290
|
-
"MP"
|
|
291
|
-
],
|
|
264
|
+
"x-platforms": ["MP"],
|
|
292
265
|
"title": "自定义下拉刷新控件被下拉"
|
|
293
266
|
},
|
|
294
267
|
{
|
|
295
268
|
"name": "refresherrefresh",
|
|
296
|
-
"x-platforms": [
|
|
297
|
-
"MP"
|
|
298
|
-
],
|
|
269
|
+
"x-platforms": ["MP"],
|
|
299
270
|
"title": "自定义下拉刷新被触发"
|
|
300
271
|
},
|
|
301
272
|
{
|
|
302
273
|
"name": "refresherrestore",
|
|
303
|
-
"x-platforms": [
|
|
304
|
-
"MP"
|
|
305
|
-
],
|
|
274
|
+
"x-platforms": ["MP"],
|
|
306
275
|
"title": "自定义下拉刷新被复位"
|
|
307
276
|
},
|
|
308
277
|
{
|
|
309
278
|
"name": "refresherabort",
|
|
310
|
-
"x-platforms": [
|
|
311
|
-
"MP"
|
|
312
|
-
],
|
|
279
|
+
"x-platforms": ["MP"],
|
|
313
280
|
"title": "自定义下拉刷新被中止"
|
|
314
281
|
}
|
|
315
282
|
],
|
|
@@ -325,10 +292,7 @@
|
|
|
325
292
|
"configMeta": {
|
|
326
293
|
"docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/grid/ScrollView",
|
|
327
294
|
"shortcut": {
|
|
328
|
-
"props": [
|
|
329
|
-
"scrollX",
|
|
330
|
-
"scrollY"
|
|
331
|
-
],
|
|
295
|
+
"props": ["scrollX", "scrollY"],
|
|
332
296
|
"extra": {
|
|
333
297
|
"container": {
|
|
334
298
|
"x-component": "container",
|
|
@@ -134,18 +134,6 @@ declare const config: {
|
|
|
134
134
|
};
|
|
135
135
|
};
|
|
136
136
|
description: string;
|
|
137
|
-
}, {
|
|
138
|
-
name: string;
|
|
139
|
-
label: string;
|
|
140
|
-
params: {
|
|
141
|
-
properties: {
|
|
142
|
-
value: {
|
|
143
|
-
title: string;
|
|
144
|
-
type: string;
|
|
145
|
-
};
|
|
146
|
-
};
|
|
147
|
-
};
|
|
148
|
-
description: string;
|
|
149
137
|
}, {
|
|
150
138
|
name: string;
|
|
151
139
|
label: string;
|
|
@@ -170,6 +158,13 @@ declare const config: {
|
|
|
170
158
|
name: string;
|
|
171
159
|
label: string;
|
|
172
160
|
description: string;
|
|
161
|
+
}, {
|
|
162
|
+
readonly name: "setValue";
|
|
163
|
+
readonly label: "设置值";
|
|
164
|
+
readonly params: import("@sinclair/typebox").TObject<{
|
|
165
|
+
value: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
166
|
+
}>;
|
|
167
|
+
readonly description: "通过 $w.cascader1.setValue(['bj','cy']) 设置组件值";
|
|
173
168
|
}];
|
|
174
169
|
readonly events: readonly [{
|
|
175
170
|
name: string;
|
|
@@ -139,13 +139,24 @@ const config = defineConfig({
|
|
|
139
139
|
properties,
|
|
140
140
|
classes,
|
|
141
141
|
methods: [
|
|
142
|
-
FORM_ITEM_METHODS.setValue,
|
|
142
|
+
// FORM_ITEM_METHODS.setValue,
|
|
143
143
|
FORM_ITEM_METHODS.setVisible,
|
|
144
144
|
FORM_ITEM_METHODS.setDisabled,
|
|
145
145
|
FORM_ITEM_METHODS.clearValue,
|
|
146
146
|
FORM_ITEM_METHODS.setReadOnly,
|
|
147
147
|
FORM_ITEM_METHODS.handleValidate,
|
|
148
148
|
FORM_ITEM_METHODS.clearValidate,
|
|
149
|
+
{
|
|
150
|
+
name: 'setValue',
|
|
151
|
+
label: '设置值',
|
|
152
|
+
params: Type.Object({
|
|
153
|
+
value: Type.Array(Type.String({}), {
|
|
154
|
+
title: '值',
|
|
155
|
+
default: [],
|
|
156
|
+
}),
|
|
157
|
+
}),
|
|
158
|
+
description: "通过 $w.cascader1.setValue(['bj','cy']) 设置组件值",
|
|
159
|
+
},
|
|
149
160
|
],
|
|
150
161
|
events: [
|
|
151
162
|
FORM_ITEM_EVENTS.change,
|
|
@@ -493,7 +493,7 @@ const data = Type.Object({
|
|
|
493
493
|
{
|
|
494
494
|
type: 'value:visible',
|
|
495
495
|
target: 'dataForm.isExport',
|
|
496
|
-
condition: '{{ Boolean($self.value) && Boolean($form.values.dataForm.format!=="one-many") && Boolean($form.values.dataForm.format!=="many-many") && Boolean($form.values.dataForm.format!=="one-one-r") }}',
|
|
496
|
+
condition: '{{ Boolean($self.value) && Boolean($form.values.dataForm.format!=="one-many") && Boolean($form.values.dataForm.format!=="many-many") && Boolean($form.values.dataForm.format!=="many-one") && Boolean($form.values.dataForm.format!=="one-one") && Boolean($form.values.dataForm.format!=="one-one-r") }}',
|
|
497
497
|
},
|
|
498
498
|
],
|
|
499
499
|
}),
|
|
@@ -104,11 +104,6 @@ declare const config: {
|
|
|
104
104
|
readonly name: "选项卡超长自动滑动遮罩";
|
|
105
105
|
readonly selector: ".wd-tabs-h5-root .wd-tabs__header-item-mask";
|
|
106
106
|
readonly description: "可以为移动端选项卡设置滑动背景色,提示选项卡内容超长可滑动";
|
|
107
|
-
}, {
|
|
108
|
-
readonly name: "去除滚动条样式";
|
|
109
|
-
readonly selector: "::-webkit-scrollbar";
|
|
110
|
-
readonly description: "受安卓端小程序渲染限制,需通过添加全局样式去除滚动条";
|
|
111
|
-
readonly code: "\n /* 注意: 添加此样式后,对全局滚动条生效*/\n ::-webkit-scrollbar {\n display: none;\n width: 0;\n height: 0;\n color: transparent;\n }\n ";
|
|
112
107
|
}];
|
|
113
108
|
readonly methods: readonly [{
|
|
114
109
|
readonly name: "selectTab";
|
|
@@ -440,20 +440,6 @@ const config = defineConfig({
|
|
|
440
440
|
selector: '.wd-tabs-h5-root .wd-tabs__header-item-mask',
|
|
441
441
|
description: '可以为移动端选项卡设置滑动背景色,提示选项卡内容超长可滑动',
|
|
442
442
|
},
|
|
443
|
-
{
|
|
444
|
-
name: '去除滚动条样式',
|
|
445
|
-
selector: '::-webkit-scrollbar',
|
|
446
|
-
description: '受安卓端小程序渲染限制,需通过添加全局样式去除滚动条',
|
|
447
|
-
code: `
|
|
448
|
-
/* 注意: 添加此样式后,对全局滚动条生效*/
|
|
449
|
-
::-webkit-scrollbar {
|
|
450
|
-
display: none;
|
|
451
|
-
width: 0;
|
|
452
|
-
height: 0;
|
|
453
|
-
color: transparent;
|
|
454
|
-
}
|
|
455
|
-
`,
|
|
456
|
-
},
|
|
457
443
|
],
|
|
458
444
|
// 组件方法
|
|
459
445
|
methods: [
|
package/dist/configs/index.d.ts
CHANGED
|
@@ -956,18 +956,6 @@ export declare const components: {
|
|
|
956
956
|
};
|
|
957
957
|
};
|
|
958
958
|
description: string;
|
|
959
|
-
}, {
|
|
960
|
-
name: string;
|
|
961
|
-
label: string;
|
|
962
|
-
params: {
|
|
963
|
-
properties: {
|
|
964
|
-
value: {
|
|
965
|
-
title: string;
|
|
966
|
-
type: string;
|
|
967
|
-
};
|
|
968
|
-
};
|
|
969
|
-
};
|
|
970
|
-
description: string;
|
|
971
959
|
}, {
|
|
972
960
|
name: string;
|
|
973
961
|
label: string;
|
|
@@ -992,6 +980,13 @@ export declare const components: {
|
|
|
992
980
|
name: string;
|
|
993
981
|
label: string;
|
|
994
982
|
description: string;
|
|
983
|
+
}, {
|
|
984
|
+
readonly name: "setValue";
|
|
985
|
+
readonly label: "设置值";
|
|
986
|
+
readonly params: import("@sinclair/typebox").TObject<{
|
|
987
|
+
value: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
988
|
+
}>;
|
|
989
|
+
readonly description: "通过 $w.cascader1.setValue(['bj','cy']) 设置组件值";
|
|
995
990
|
}];
|
|
996
991
|
readonly events: readonly [{
|
|
997
992
|
name: string;
|
|
@@ -6225,15 +6220,6 @@ export declare const components: {
|
|
|
6225
6220
|
$schema: string;
|
|
6226
6221
|
data: {
|
|
6227
6222
|
properties: {
|
|
6228
|
-
showScrollbar: {
|
|
6229
|
-
title: string;
|
|
6230
|
-
type: string;
|
|
6231
|
-
default: boolean;
|
|
6232
|
-
"x-platforms": string[];
|
|
6233
|
-
"x-category": string;
|
|
6234
|
-
"x-index": number;
|
|
6235
|
-
description: string;
|
|
6236
|
-
};
|
|
6237
6223
|
scrollX: {
|
|
6238
6224
|
title: string;
|
|
6239
6225
|
type: string;
|
|
@@ -6297,6 +6283,24 @@ export declare const components: {
|
|
|
6297
6283
|
"x-index": number;
|
|
6298
6284
|
"x-category": string;
|
|
6299
6285
|
};
|
|
6286
|
+
showScrollbar: {
|
|
6287
|
+
title: string;
|
|
6288
|
+
type: string;
|
|
6289
|
+
default: boolean;
|
|
6290
|
+
"x-platforms": string[];
|
|
6291
|
+
"x-category": string;
|
|
6292
|
+
"x-index": number;
|
|
6293
|
+
description: string;
|
|
6294
|
+
"x-helper-text": string;
|
|
6295
|
+
"x-linkages": {
|
|
6296
|
+
type: string;
|
|
6297
|
+
target: string;
|
|
6298
|
+
condition: string;
|
|
6299
|
+
state: {
|
|
6300
|
+
value: boolean;
|
|
6301
|
+
};
|
|
6302
|
+
}[];
|
|
6303
|
+
};
|
|
6300
6304
|
enhanced: {
|
|
6301
6305
|
title: string;
|
|
6302
6306
|
type: string;
|
|
@@ -8647,6 +8651,18 @@ export declare const components: {
|
|
|
8647
8651
|
type: string[];
|
|
8648
8652
|
};
|
|
8649
8653
|
customRelOptions: {
|
|
8654
|
+
string: {
|
|
8655
|
+
text: string;
|
|
8656
|
+
value: string;
|
|
8657
|
+
}[];
|
|
8658
|
+
boolean: {
|
|
8659
|
+
text: string;
|
|
8660
|
+
value: string;
|
|
8661
|
+
}[];
|
|
8662
|
+
keyVarType: {
|
|
8663
|
+
value: string;
|
|
8664
|
+
text: string;
|
|
8665
|
+
}[];
|
|
8650
8666
|
number: {
|
|
8651
8667
|
text: string;
|
|
8652
8668
|
value: string;
|
|
@@ -12749,11 +12765,6 @@ export declare const components: {
|
|
|
12749
12765
|
readonly name: "选项卡超长自动滑动遮罩";
|
|
12750
12766
|
readonly selector: ".wd-tabs-h5-root .wd-tabs__header-item-mask";
|
|
12751
12767
|
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 ";
|
|
12757
12768
|
}];
|
|
12758
12769
|
readonly methods: readonly [{
|
|
12759
12770
|
readonly name: "selectTab";
|
|
@@ -20505,18 +20516,6 @@ declare const _default: {
|
|
|
20505
20516
|
};
|
|
20506
20517
|
};
|
|
20507
20518
|
description: string;
|
|
20508
|
-
}, {
|
|
20509
|
-
name: string;
|
|
20510
|
-
label: string;
|
|
20511
|
-
params: {
|
|
20512
|
-
properties: {
|
|
20513
|
-
value: {
|
|
20514
|
-
title: string;
|
|
20515
|
-
type: string;
|
|
20516
|
-
};
|
|
20517
|
-
};
|
|
20518
|
-
};
|
|
20519
|
-
description: string;
|
|
20520
20519
|
}, {
|
|
20521
20520
|
name: string;
|
|
20522
20521
|
label: string;
|
|
@@ -20541,6 +20540,13 @@ declare const _default: {
|
|
|
20541
20540
|
name: string;
|
|
20542
20541
|
label: string;
|
|
20543
20542
|
description: string;
|
|
20543
|
+
}, {
|
|
20544
|
+
readonly name: "setValue";
|
|
20545
|
+
readonly label: "设置值";
|
|
20546
|
+
readonly params: import("@sinclair/typebox").TObject<{
|
|
20547
|
+
value: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
20548
|
+
}>;
|
|
20549
|
+
readonly description: "通过 $w.cascader1.setValue(['bj','cy']) 设置组件值";
|
|
20544
20550
|
}];
|
|
20545
20551
|
readonly events: readonly [{
|
|
20546
20552
|
name: string;
|
|
@@ -25774,15 +25780,6 @@ declare const _default: {
|
|
|
25774
25780
|
$schema: string;
|
|
25775
25781
|
data: {
|
|
25776
25782
|
properties: {
|
|
25777
|
-
showScrollbar: {
|
|
25778
|
-
title: string;
|
|
25779
|
-
type: string;
|
|
25780
|
-
default: boolean;
|
|
25781
|
-
"x-platforms": string[];
|
|
25782
|
-
"x-category": string;
|
|
25783
|
-
"x-index": number;
|
|
25784
|
-
description: string;
|
|
25785
|
-
};
|
|
25786
25783
|
scrollX: {
|
|
25787
25784
|
title: string;
|
|
25788
25785
|
type: string;
|
|
@@ -25846,6 +25843,24 @@ declare const _default: {
|
|
|
25846
25843
|
"x-index": number;
|
|
25847
25844
|
"x-category": string;
|
|
25848
25845
|
};
|
|
25846
|
+
showScrollbar: {
|
|
25847
|
+
title: string;
|
|
25848
|
+
type: string;
|
|
25849
|
+
default: boolean;
|
|
25850
|
+
"x-platforms": string[];
|
|
25851
|
+
"x-category": string;
|
|
25852
|
+
"x-index": number;
|
|
25853
|
+
description: string;
|
|
25854
|
+
"x-helper-text": string;
|
|
25855
|
+
"x-linkages": {
|
|
25856
|
+
type: string;
|
|
25857
|
+
target: string;
|
|
25858
|
+
condition: string;
|
|
25859
|
+
state: {
|
|
25860
|
+
value: boolean;
|
|
25861
|
+
};
|
|
25862
|
+
}[];
|
|
25863
|
+
};
|
|
25849
25864
|
enhanced: {
|
|
25850
25865
|
title: string;
|
|
25851
25866
|
type: string;
|
|
@@ -28196,6 +28211,18 @@ declare const _default: {
|
|
|
28196
28211
|
type: string[];
|
|
28197
28212
|
};
|
|
28198
28213
|
customRelOptions: {
|
|
28214
|
+
string: {
|
|
28215
|
+
text: string;
|
|
28216
|
+
value: string;
|
|
28217
|
+
}[];
|
|
28218
|
+
boolean: {
|
|
28219
|
+
text: string;
|
|
28220
|
+
value: string;
|
|
28221
|
+
}[];
|
|
28222
|
+
keyVarType: {
|
|
28223
|
+
value: string;
|
|
28224
|
+
text: string;
|
|
28225
|
+
}[];
|
|
28199
28226
|
number: {
|
|
28200
28227
|
text: string;
|
|
28201
28228
|
value: string;
|
|
@@ -32298,11 +32325,6 @@ declare const _default: {
|
|
|
32298
32325
|
readonly name: "选项卡超长自动滑动遮罩";
|
|
32299
32326
|
readonly selector: ".wd-tabs-h5-root .wd-tabs__header-item-mask";
|
|
32300
32327
|
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 ";
|
|
32306
32328
|
}];
|
|
32307
32329
|
readonly methods: readonly [{
|
|
32308
32330
|
readonly name: "selectTab";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
@cloudbase/weda-ui v3.19.
|
|
2
|
+
@cloudbase/weda-ui v3.19.2
|
|
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,d09GMgABAAAAAAkMAA0AAAAAFZgAAAi1AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP0ZGVE0cGh4GYACCXhEICpxYlmoLTgABNgIkA1gEIAWDMweDBRtzEVGUTVKf7GdCpjLGY/HIYGvbDpn6q7Qdj3xvUaZJUNFads3M7geYVSSiCgsZJYFkhEfn2DjU9//jpn8D1QTqVBQqSrtAVZAq1bwkpTOo0Hbz2tnYfkP3ZzAxpv6ZiSFf3OHh8/b+/oqzxIt4QmFX5ImmIe0SWAOEOJL2n9ZSO5PcCwErnTjzLxOYud0Az24IS8AOXSWgBt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hqZl1ZlhDTKQz8O+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,d09GMgABAAAAAAkMAA0AAAAAFZgAAAi1AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP0ZGVE0cGh4GYACCXhEICpxYlmoLTgABNgIkA1gEIAWDMweDBRtzEVGUTVKf7GdCpjLGY/HIYGvbDpn6q7Qdj3xvUaZJUNFads3M7geYVSSiCgsZJYFkhEfn2DjU9//jpn8D1QTqVBQqSrtAVZAq1bwkpTOo0Hbz2tnYfkP3ZzAxpv6ZiSFf3OHh8/b+/oqzxIt4QmFX5ImmIe0SWAOEOJL2n9ZSO5PcCwErnTjzLxOYud0Az24IS8AOXSWgBtyL2lbFtkKxMAhSoPNdlrMFakJqTjuamX+3E3teqiTm6/UpPkH213oLGNahKuAtpQ0wbERrXcnzO1bBpK388B4D6I5fCT9kh69EbSy65R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qrlx5gXZbykCAdhWAj3p+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
|
|
@@ -6,10 +6,10 @@ import { debug } from '../../utils/console';
|
|
|
6
6
|
import { useSyncValue } from '../../utils/hooks/useSyncValue';
|
|
7
7
|
import isObjectEqual from '../../utils/isObjectEqual';
|
|
8
8
|
import { isNil } from '../../utils/lodash';
|
|
9
|
-
import { getParentForm, useFormDetailContext, useFormObjContext
|
|
9
|
+
import { getParentForm, useFormDetailContext, useFormObjContext } from '../../utils/widget-api';
|
|
10
10
|
import { validType } from './validator';
|
|
11
11
|
import { emptyArray, noop } from '../../utils/constant';
|
|
12
|
-
import { useDeepCompareEffect, useRerender, useUnmountEffect
|
|
12
|
+
import { useDeepCompareEffect, useRerender, useUnmountEffect } from '@react-hookz/web';
|
|
13
13
|
import { useStatus, convertMethodParam } from '../../utils/hooks/useFormLegacy';
|
|
14
14
|
import { X_RUNTIME_DEFAULT } from '../../../configs/type-utils/x-runtime-default';
|
|
15
15
|
import { useFormType } from '../wd-form/contexts/form-type-context';
|
|
@@ -89,12 +89,17 @@ export function useFormInputTrait(inputParams) {
|
|
|
89
89
|
var _a, _b;
|
|
90
90
|
const removeFormItem = (_b = (_a = $widget
|
|
91
91
|
.closest((w) => { var _a, _b; return ((_b = (_a = w.getConfig) === null || _a === void 0 ? void 0 : _a.call(w)) === null || _b === void 0 ? void 0 : _b.componentType) === 'form'; })) === null || _a === void 0 ? void 0 : _a.addFormItem) === null || _b === void 0 ? void 0 : _b.call(_a, name, $widget);
|
|
92
|
-
|
|
92
|
+
let removeFormObjItem;
|
|
93
|
+
if ((formObjContext === null || formObjContext === void 0 ? void 0 : formObjContext.addFormItem) && typeof (formObjContext === null || formObjContext === void 0 ? void 0 : formObjContext.addFormItem) === 'function') {
|
|
94
|
+
removeFormObjItem = formObjContext === null || formObjContext === void 0 ? void 0 : formObjContext.addFormItem(name, $widget);
|
|
95
|
+
}
|
|
93
96
|
logger.debug('addFormItem', name);
|
|
94
97
|
return () => {
|
|
95
98
|
logger.debug('removeFormItem', name);
|
|
96
99
|
removeFormItem === null || removeFormItem === void 0 ? void 0 : removeFormItem();
|
|
97
|
-
removeFormObjItem
|
|
100
|
+
if (removeFormObjItem && typeof removeFormObjItem === 'function') {
|
|
101
|
+
removeFormObjItem === null || removeFormObjItem === void 0 ? void 0 : removeFormObjItem();
|
|
102
|
+
}
|
|
98
103
|
};
|
|
99
104
|
}, [$widget, name, form, formObjContext]);
|
|
100
105
|
const clearValidate = useCallback(() => {
|
|
@@ -189,8 +194,7 @@ export function useFormInputTrait(inputParams) {
|
|
|
189
194
|
let reg;
|
|
190
195
|
if (typeof item.pattern === 'string') {
|
|
191
196
|
const m = item.pattern.match(/(\/?)(.+)\1([a-z]*)/i);
|
|
192
|
-
if (m[3] &&
|
|
193
|
-
!/^(?!.*?(.).*?\1)[gmixXsuUAJ]+$/.test(m[3])) {
|
|
197
|
+
if (m[3] && !/^(?!.*?(.).*?\1)[gmixXsuUAJ]+$/.test(m[3])) {
|
|
194
198
|
reg = RegExp(item.pattern);
|
|
195
199
|
}
|
|
196
200
|
else {
|
|
@@ -323,13 +327,7 @@ export function useFormInputTrait(inputParams) {
|
|
|
323
327
|
else if (fieldPermission === 'n') {
|
|
324
328
|
setVisible(false);
|
|
325
329
|
}
|
|
326
|
-
}, [
|
|
327
|
-
disabled,
|
|
328
|
-
fieldPermission,
|
|
329
|
-
fieldPermissionError,
|
|
330
|
-
fieldPermissionLoading,
|
|
331
|
-
setDisabled,
|
|
332
|
-
]);
|
|
330
|
+
}, [disabled, fieldPermission, fieldPermissionError, fieldPermissionLoading, setDisabled]);
|
|
333
331
|
useUnmountEffect(() => {
|
|
334
332
|
var _a;
|
|
335
333
|
(_a = form === null || form === void 0 ? void 0 : form.updateFormContext) === null || _a === void 0 ? void 0 : _a.call(form, name, undefined);
|
|
@@ -18,7 +18,8 @@ export const ExportFileModal = ({ fields, columns, isExportFileModalByApiVisible
|
|
|
18
18
|
(field === null || field === void 0 ? void 0 : field.format) !== 'many-many' &&
|
|
19
19
|
(field === null || field === void 0 ? void 0 : field.format) !== 'many-one' &&
|
|
20
20
|
(field === null || field === void 0 ? void 0 : field.format) !== 'one-many' &&
|
|
21
|
-
(field === null || field === void 0 ? void 0 : field.format) !== 'one-one'
|
|
21
|
+
(field === null || field === void 0 ? void 0 : field.format) !== 'one-one' &&
|
|
22
|
+
(field === null || field === void 0 ? void 0 : field.format) !== 'one-one-r') {
|
|
22
23
|
supportFields.push(field);
|
|
23
24
|
}
|
|
24
25
|
});
|