@cloudbase/weda-ui 3.20.0 → 3.20.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 +2 -2
- package/dist/configs/components/chart/line.js +2 -2
- package/dist/configs/components/chart/pie.js +2 -2
- package/dist/configs/components/chart/statisticsCard.json +5 -12
- package/dist/configs/components/form/location.json +3 -9
- package/dist/configs/components/form-location.d.ts +2 -2
- package/dist/configs/components/form-location.js +1 -1
- package/dist/configs/components/scrollVeiw.json +43 -79
- package/dist/configs/components/wd-calendar.d.ts +4 -0
- package/dist/configs/components/wd-calendar.js +23 -1
- package/dist/configs/components/wd-cascader.d.ts +7 -12
- package/dist/configs/components/wd-cascader.js +12 -1
- package/dist/configs/components/wd-checkbox.d.ts +4 -1
- package/dist/configs/components/wd-checkbox.js +11 -1
- package/dist/configs/components/wd-form.js +2 -1
- package/dist/configs/components/wd-location.d.ts +2 -2
- package/dist/configs/components/wd-location.js +1 -1
- package/dist/configs/components/wd-radio.d.ts +4 -1
- package/dist/configs/components/wd-select-multiple.d.ts +4 -1
- package/dist/configs/components/wd-select-multiple.js +11 -1
- package/dist/configs/components/wd-select.d.ts +4 -1
- package/dist/configs/components/wd-table.js +3 -2
- package/dist/configs/components/wd-tag-select.d.ts +4 -1
- package/dist/configs/components/wd-tag-select.js +11 -1
- package/dist/configs/components/wd-top-tab.d.ts +1 -1
- package/dist/configs/components/wd-top-tab.js +2 -1
- package/dist/configs/index.d.ts +102 -60
- package/dist/configs/type-utils/type-form.d.ts +10 -4
- package/dist/configs/type-utils/type-form.js +31 -4
- package/dist/enum/index.js +1 -0
- package/dist/style/index.css +1 -0
- package/dist/style/index.scss +1 -1
- package/dist/style/weda-ui.min.css +2 -2
- package/dist/web/components/form/location/common/propsConfig.d.ts +3 -3
- package/dist/web/components/form/location/common/propsConfig.js +2 -2
- package/dist/web/components/form/location/components/LocationH5/location.h5.js +36 -27
- package/dist/web/components/form/location/components/LocationPC/Header.js +2 -2
- package/dist/web/components/form/location/components/LocationPC/location.PC.js +38 -41
- package/dist/web/components/form-location/index.d.ts +1 -1
- package/dist/web/components/form-location/index.js +3 -3
- package/dist/web/components/form-rich-text/index.d.ts +2 -2
- package/dist/web/components/form-rich-text/index.js +2 -2
- package/dist/web/components/wd-calendar/wd-calendar.js +4 -11
- package/dist/web/components/wd-calendar/weeks.d.ts +1 -1
- package/dist/web/components/wd-calendar/weeks.js +2 -2
- package/dist/web/components/wd-form/form-utils.d.ts +0 -1
- package/dist/web/components/wd-form/form-utils.js +0 -32
- package/dist/web/components/wd-form/index.js +17 -7
- package/dist/web/components/wd-form-obj/base-form-obj.js +9 -0
- package/dist/web/components/wd-input-number/wd-input-number.js +3 -15
- package/dist/web/components/wd-location/wd-location.d.ts +1 -1
- package/dist/web/components/wd-location/wd-location.js +2 -2
- package/dist/web/components/wd-select/select/selectUI.js +12 -2
- package/dist/web/components/wd-table/components/ExportFileModalByApi/index.js +3 -2
- package/dist/web/components/wd-table/components/Table/index.js +9 -14
- package/dist/web/components/wd-table/hooks/useTableData.js +8 -3
- package/dist/web/components/wd-table/utils/index.d.ts +1 -0
- package/dist/web/components/wd-table/utils/index.js +1 -1
- package/package.json +1 -1
|
@@ -330,7 +330,17 @@ const data = Type.Partial(Type.Object({
|
|
|
330
330
|
}));
|
|
331
331
|
const properties = Type.Composite([
|
|
332
332
|
Type.Pick(data, ['name', 'label', 'value', 'required', 'before', 'after']),
|
|
333
|
-
Type.Pick(ItemData, ['visible', 'disabled', 'readOnly', 'selectedLabel'
|
|
333
|
+
Type.Pick(ItemData, ['visible', 'disabled', 'readOnly', 'selectedLabel']),
|
|
334
|
+
Type.Object({
|
|
335
|
+
item: Type.Array(Type.Object({
|
|
336
|
+
label: Type.String({ title: 'label' }),
|
|
337
|
+
value: Type.String({ title: 'value' }),
|
|
338
|
+
}), {
|
|
339
|
+
title: '选中项',
|
|
340
|
+
description: '选中项对应的对象',
|
|
341
|
+
'x-platforms': [],
|
|
342
|
+
}),
|
|
343
|
+
}),
|
|
334
344
|
]);
|
|
335
345
|
const CLASSES = getClasses('select-multiple', { kind: '选择框' });
|
|
336
346
|
const classes = [
|
|
@@ -164,7 +164,10 @@ declare const config: {
|
|
|
164
164
|
visible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
165
165
|
readOnly: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
166
166
|
selectedLabel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
167
|
-
item: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
167
|
+
item: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
168
|
+
label: import("@sinclair/typebox").TString;
|
|
169
|
+
value: import("@sinclair/typebox").TString;
|
|
170
|
+
}>>;
|
|
168
171
|
}>;
|
|
169
172
|
readonly classes: {
|
|
170
173
|
name: string;
|
|
@@ -488,12 +488,12 @@ const data = Type.Object({
|
|
|
488
488
|
{
|
|
489
489
|
type: 'value:visible',
|
|
490
490
|
target: 'dataForm.isSort',
|
|
491
|
-
condition: '{{ Boolean($self.value) && !Boolean($form.values.dataForm.isRelated) && Boolean($form.values.dataForm.format!=="one-many") && Boolean($form.values.dataForm.format!=="many-many") && Boolean($form.values.dataForm.format!=="one-one") && Boolean($form.values.dataForm.format!=="many-one") }}',
|
|
491
|
+
condition: '{{ Boolean($self.value) && !Boolean($form.values.dataForm.isRelated) && Boolean($form.values.dataForm.format!=="one-many") && Boolean($form.values.dataForm.format!=="many-many") && Boolean($form.values.dataForm.format!=="one-one") && Boolean($form.values.dataForm.format!=="many-one") && Boolean($form.values.dataForm.format!=="one-one-r") }}',
|
|
492
492
|
},
|
|
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") && Boolean($form.values.dataForm.format!=="
|
|
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
|
}),
|
|
@@ -1267,6 +1267,7 @@ const data = Type.Object({
|
|
|
1267
1267
|
default: true,
|
|
1268
1268
|
'x-group': '表格列',
|
|
1269
1269
|
description: '开启后,可拖拽按钮等组件,放入大纲树的操作列节点或表格的操作列区域',
|
|
1270
|
+
'x-helper-text': 'h5端操作列区域以弹窗形式展示,[详情参考配置](https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/database/WdTable#%E7%A7%BB%E5%8A%A8%E7%AB%AF%E9%85%8D%E7%BD%AE%E6%93%8D%E4%BD%9C%E5%88%97)',
|
|
1270
1271
|
'x-linkages': [
|
|
1271
1272
|
{
|
|
1272
1273
|
type: 'value:visible',
|
|
@@ -89,7 +89,10 @@ declare const config: {
|
|
|
89
89
|
value: import("@sinclair/typebox").TString;
|
|
90
90
|
}>>>;
|
|
91
91
|
selectedLabel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
92
|
-
item: import("@sinclair/typebox").
|
|
92
|
+
item: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
93
|
+
label: import("@sinclair/typebox").TString;
|
|
94
|
+
value: import("@sinclair/typebox").TString;
|
|
95
|
+
}>>;
|
|
93
96
|
}>;
|
|
94
97
|
readonly classes: {
|
|
95
98
|
name: string;
|
|
@@ -34,7 +34,17 @@ const data = Type.Partial(Type.Object({
|
|
|
34
34
|
}));
|
|
35
35
|
const properties = Type.Composite([
|
|
36
36
|
Type.Pick(data, ['name', 'value', 'label', 'required', 'range']),
|
|
37
|
-
Type.Pick(ItemData, ['visible', 'disabled', 'readOnly', 'selectedLabel'
|
|
37
|
+
Type.Pick(ItemData, ['visible', 'disabled', 'readOnly', 'selectedLabel']),
|
|
38
|
+
Type.Object({
|
|
39
|
+
item: Type.Array(Type.Object({
|
|
40
|
+
label: Type.String({ title: 'label' }),
|
|
41
|
+
value: Type.String({ title: 'value' }),
|
|
42
|
+
}), {
|
|
43
|
+
title: '选中项',
|
|
44
|
+
description: '选中项对应的对象',
|
|
45
|
+
'x-platforms': [],
|
|
46
|
+
}),
|
|
47
|
+
}),
|
|
38
48
|
]);
|
|
39
49
|
const CLASSES = getClasses('tag-select');
|
|
40
50
|
const classes = [
|
|
@@ -99,7 +99,7 @@ declare const config: {
|
|
|
99
99
|
readonly name: "内容区域";
|
|
100
100
|
readonly selector: ".wd-top-tab-root .wd-tabs__body";
|
|
101
101
|
readonly description: "可以为顶部选项卡内容区域编写样式,例如:设置顶部选项卡内容区域高度撑满页面";
|
|
102
|
-
readonly code: ".wd-top-tab-root .wd-tabs__body {\n
|
|
102
|
+
readonly code: "\n /* 设置顶部选项卡内容区域高度撑满页面 */\n /* 注意:此处需要设置为计算高度 【视口高度-选项卡头部标签区域高度】*/\n .wd-top-tab-root .wd-tabs__body {\n height: calc(100vh - 48px);\n overflow: auto;\n }\n ";
|
|
103
103
|
}, {
|
|
104
104
|
readonly name: "选项卡超长自动滑动遮罩";
|
|
105
105
|
readonly selector: ".wd-tabs-h5-root .wd-tabs__header-item-mask";
|
|
@@ -426,9 +426,10 @@ const config = defineConfig({
|
|
|
426
426
|
name: '内容区域',
|
|
427
427
|
selector: '.wd-top-tab-root .wd-tabs__body',
|
|
428
428
|
description: '可以为顶部选项卡内容区域编写样式,例如:设置顶部选项卡内容区域高度撑满页面',
|
|
429
|
-
code:
|
|
429
|
+
code: `
|
|
430
430
|
/* 设置顶部选项卡内容区域高度撑满页面 */
|
|
431
431
|
/* 注意:此处需要设置为计算高度 【视口高度-选项卡头部标签区域高度】*/
|
|
432
|
+
.wd-top-tab-root .wd-tabs__body {
|
|
432
433
|
height: calc(100vh - 48px);
|
|
433
434
|
overflow: auto;
|
|
434
435
|
}
|
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;
|
|
@@ -3403,7 +3398,7 @@ export declare const components: {
|
|
|
3403
3398
|
locationRange: import("@sinclair/typebox").TUnsafe<0 | -1 | 100 | 1000 | 500 | 300 | 2000>;
|
|
3404
3399
|
customRange: import("@sinclair/typebox").TNumber;
|
|
3405
3400
|
locationType: import("@sinclair/typebox").TUnsafe<2 | 1>;
|
|
3406
|
-
|
|
3401
|
+
defaultShowLocation: import("@sinclair/typebox").TBoolean;
|
|
3407
3402
|
required: import("@sinclair/typebox").TBoolean;
|
|
3408
3403
|
requiredFlag: import("@sinclair/typebox").TBoolean;
|
|
3409
3404
|
requiredMsg: import("@sinclair/typebox").TString;
|
|
@@ -5366,7 +5361,7 @@ export declare const components: {
|
|
|
5366
5361
|
default: boolean;
|
|
5367
5362
|
title: string;
|
|
5368
5363
|
};
|
|
5369
|
-
|
|
5364
|
+
defaultShowLocation: {
|
|
5370
5365
|
type: string;
|
|
5371
5366
|
default: boolean;
|
|
5372
5367
|
title: 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;
|
|
@@ -12756,7 +12760,7 @@ export declare const components: {
|
|
|
12756
12760
|
readonly name: "内容区域";
|
|
12757
12761
|
readonly selector: ".wd-top-tab-root .wd-tabs__body";
|
|
12758
12762
|
readonly description: "可以为顶部选项卡内容区域编写样式,例如:设置顶部选项卡内容区域高度撑满页面";
|
|
12759
|
-
readonly code: ".wd-top-tab-root .wd-tabs__body {\n
|
|
12763
|
+
readonly code: "\n /* 设置顶部选项卡内容区域高度撑满页面 */\n /* 注意:此处需要设置为计算高度 【视口高度-选项卡头部标签区域高度】*/\n .wd-top-tab-root .wd-tabs__body {\n height: calc(100vh - 48px);\n overflow: auto;\n }\n ";
|
|
12760
12764
|
}, {
|
|
12761
12765
|
readonly name: "选项卡超长自动滑动遮罩";
|
|
12762
12766
|
readonly selector: ".wd-tabs-h5-root .wd-tabs__header-item-mask";
|
|
@@ -13834,7 +13838,10 @@ export declare const components: {
|
|
|
13834
13838
|
visible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
13835
13839
|
readOnly: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
13836
13840
|
selectedLabel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
13837
|
-
item: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
13841
|
+
item: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
13842
|
+
label: import("@sinclair/typebox").TString;
|
|
13843
|
+
value: import("@sinclair/typebox").TString;
|
|
13844
|
+
}>>;
|
|
13838
13845
|
}>;
|
|
13839
13846
|
readonly classes: {
|
|
13840
13847
|
name: string;
|
|
@@ -14141,7 +14148,10 @@ export declare const components: {
|
|
|
14141
14148
|
after: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
14142
14149
|
before: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
14143
14150
|
selectedLabel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
14144
|
-
item: import("@sinclair/typebox").
|
|
14151
|
+
item: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
14152
|
+
label: import("@sinclair/typebox").TString;
|
|
14153
|
+
value: import("@sinclair/typebox").TString;
|
|
14154
|
+
}>>;
|
|
14145
14155
|
}>;
|
|
14146
14156
|
readonly classes: {
|
|
14147
14157
|
name: string;
|
|
@@ -15796,7 +15806,7 @@ export declare const components: {
|
|
|
15796
15806
|
}>;
|
|
15797
15807
|
}>>;
|
|
15798
15808
|
locationType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<number>>;
|
|
15799
|
-
|
|
15809
|
+
defaultShowLocation: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
15800
15810
|
placeholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString & {
|
|
15801
15811
|
default: string;
|
|
15802
15812
|
}>;
|
|
@@ -17045,7 +17055,10 @@ export declare const components: {
|
|
|
17045
17055
|
visible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
17046
17056
|
readOnly: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
17047
17057
|
selectedLabel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
17048
|
-
item: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
17058
|
+
item: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
17059
|
+
label: import("@sinclair/typebox").TString;
|
|
17060
|
+
value: import("@sinclair/typebox").TString;
|
|
17061
|
+
}>>;
|
|
17049
17062
|
}>;
|
|
17050
17063
|
readonly classes: {
|
|
17051
17064
|
name: string;
|
|
@@ -17255,7 +17268,10 @@ export declare const components: {
|
|
|
17255
17268
|
visible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
17256
17269
|
readOnly: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
17257
17270
|
selectedLabel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
17258
|
-
item: import("@sinclair/typebox").
|
|
17271
|
+
item: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
17272
|
+
label: import("@sinclair/typebox").TString;
|
|
17273
|
+
value: import("@sinclair/typebox").TString;
|
|
17274
|
+
}>>;
|
|
17259
17275
|
}>;
|
|
17260
17276
|
readonly classes: {
|
|
17261
17277
|
name: string;
|
|
@@ -17731,7 +17747,10 @@ export declare const components: {
|
|
|
17731
17747
|
value: import("@sinclair/typebox").TString;
|
|
17732
17748
|
}>>>;
|
|
17733
17749
|
selectedLabel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
17734
|
-
item: import("@sinclair/typebox").
|
|
17750
|
+
item: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
17751
|
+
label: import("@sinclair/typebox").TString;
|
|
17752
|
+
value: import("@sinclair/typebox").TString;
|
|
17753
|
+
}>>;
|
|
17735
17754
|
}>;
|
|
17736
17755
|
readonly classes: {
|
|
17737
17756
|
name: string;
|
|
@@ -18773,6 +18792,8 @@ export declare const components: {
|
|
|
18773
18792
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
18774
18793
|
initMonth: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
18775
18794
|
value: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
18795
|
+
start: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
18796
|
+
end: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
18776
18797
|
configData: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
18777
18798
|
matchDate: import("@sinclair/typebox").TString;
|
|
18778
18799
|
disabled: import("@sinclair/typebox").TUnsafe<string>;
|
|
@@ -20497,18 +20518,6 @@ declare const _default: {
|
|
|
20497
20518
|
};
|
|
20498
20519
|
};
|
|
20499
20520
|
description: string;
|
|
20500
|
-
}, {
|
|
20501
|
-
name: string;
|
|
20502
|
-
label: string;
|
|
20503
|
-
params: {
|
|
20504
|
-
properties: {
|
|
20505
|
-
value: {
|
|
20506
|
-
title: string;
|
|
20507
|
-
type: string;
|
|
20508
|
-
};
|
|
20509
|
-
};
|
|
20510
|
-
};
|
|
20511
|
-
description: string;
|
|
20512
20521
|
}, {
|
|
20513
20522
|
name: string;
|
|
20514
20523
|
label: string;
|
|
@@ -20533,6 +20542,13 @@ declare const _default: {
|
|
|
20533
20542
|
name: string;
|
|
20534
20543
|
label: string;
|
|
20535
20544
|
description: string;
|
|
20545
|
+
}, {
|
|
20546
|
+
readonly name: "setValue";
|
|
20547
|
+
readonly label: "设置值";
|
|
20548
|
+
readonly params: import("@sinclair/typebox").TObject<{
|
|
20549
|
+
value: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
20550
|
+
}>;
|
|
20551
|
+
readonly description: "通过 $w.cascader1.setValue(['bj','cy']) 设置组件值";
|
|
20536
20552
|
}];
|
|
20537
20553
|
readonly events: readonly [{
|
|
20538
20554
|
name: string;
|
|
@@ -22944,7 +22960,7 @@ declare const _default: {
|
|
|
22944
22960
|
locationRange: import("@sinclair/typebox").TUnsafe<0 | -1 | 100 | 1000 | 500 | 300 | 2000>;
|
|
22945
22961
|
customRange: import("@sinclair/typebox").TNumber;
|
|
22946
22962
|
locationType: import("@sinclair/typebox").TUnsafe<2 | 1>;
|
|
22947
|
-
|
|
22963
|
+
defaultShowLocation: import("@sinclair/typebox").TBoolean;
|
|
22948
22964
|
required: import("@sinclair/typebox").TBoolean;
|
|
22949
22965
|
requiredFlag: import("@sinclair/typebox").TBoolean;
|
|
22950
22966
|
requiredMsg: import("@sinclair/typebox").TString;
|
|
@@ -24907,7 +24923,7 @@ declare const _default: {
|
|
|
24907
24923
|
default: boolean;
|
|
24908
24924
|
title: string;
|
|
24909
24925
|
};
|
|
24910
|
-
|
|
24926
|
+
defaultShowLocation: {
|
|
24911
24927
|
type: string;
|
|
24912
24928
|
default: boolean;
|
|
24913
24929
|
title: string;
|
|
@@ -25766,15 +25782,6 @@ declare const _default: {
|
|
|
25766
25782
|
$schema: string;
|
|
25767
25783
|
data: {
|
|
25768
25784
|
properties: {
|
|
25769
|
-
showScrollbar: {
|
|
25770
|
-
title: string;
|
|
25771
|
-
type: string;
|
|
25772
|
-
default: boolean;
|
|
25773
|
-
"x-platforms": string[];
|
|
25774
|
-
"x-category": string;
|
|
25775
|
-
"x-index": number;
|
|
25776
|
-
description: string;
|
|
25777
|
-
};
|
|
25778
25785
|
scrollX: {
|
|
25779
25786
|
title: string;
|
|
25780
25787
|
type: string;
|
|
@@ -25838,6 +25845,24 @@ declare const _default: {
|
|
|
25838
25845
|
"x-index": number;
|
|
25839
25846
|
"x-category": string;
|
|
25840
25847
|
};
|
|
25848
|
+
showScrollbar: {
|
|
25849
|
+
title: string;
|
|
25850
|
+
type: string;
|
|
25851
|
+
default: boolean;
|
|
25852
|
+
"x-platforms": string[];
|
|
25853
|
+
"x-category": string;
|
|
25854
|
+
"x-index": number;
|
|
25855
|
+
description: string;
|
|
25856
|
+
"x-helper-text": string;
|
|
25857
|
+
"x-linkages": {
|
|
25858
|
+
type: string;
|
|
25859
|
+
target: string;
|
|
25860
|
+
condition: string;
|
|
25861
|
+
state: {
|
|
25862
|
+
value: boolean;
|
|
25863
|
+
};
|
|
25864
|
+
}[];
|
|
25865
|
+
};
|
|
25841
25866
|
enhanced: {
|
|
25842
25867
|
title: string;
|
|
25843
25868
|
type: string;
|
|
@@ -32297,7 +32322,7 @@ declare const _default: {
|
|
|
32297
32322
|
readonly name: "内容区域";
|
|
32298
32323
|
readonly selector: ".wd-top-tab-root .wd-tabs__body";
|
|
32299
32324
|
readonly description: "可以为顶部选项卡内容区域编写样式,例如:设置顶部选项卡内容区域高度撑满页面";
|
|
32300
|
-
readonly code: ".wd-top-tab-root .wd-tabs__body {\n
|
|
32325
|
+
readonly code: "\n /* 设置顶部选项卡内容区域高度撑满页面 */\n /* 注意:此处需要设置为计算高度 【视口高度-选项卡头部标签区域高度】*/\n .wd-top-tab-root .wd-tabs__body {\n height: calc(100vh - 48px);\n overflow: auto;\n }\n ";
|
|
32301
32326
|
}, {
|
|
32302
32327
|
readonly name: "选项卡超长自动滑动遮罩";
|
|
32303
32328
|
readonly selector: ".wd-tabs-h5-root .wd-tabs__header-item-mask";
|
|
@@ -33375,7 +33400,10 @@ declare const _default: {
|
|
|
33375
33400
|
visible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
33376
33401
|
readOnly: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
33377
33402
|
selectedLabel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
33378
|
-
item: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
33403
|
+
item: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
33404
|
+
label: import("@sinclair/typebox").TString;
|
|
33405
|
+
value: import("@sinclair/typebox").TString;
|
|
33406
|
+
}>>;
|
|
33379
33407
|
}>;
|
|
33380
33408
|
readonly classes: {
|
|
33381
33409
|
name: string;
|
|
@@ -33682,7 +33710,10 @@ declare const _default: {
|
|
|
33682
33710
|
after: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
33683
33711
|
before: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
33684
33712
|
selectedLabel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
33685
|
-
item: import("@sinclair/typebox").
|
|
33713
|
+
item: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
33714
|
+
label: import("@sinclair/typebox").TString;
|
|
33715
|
+
value: import("@sinclair/typebox").TString;
|
|
33716
|
+
}>>;
|
|
33686
33717
|
}>;
|
|
33687
33718
|
readonly classes: {
|
|
33688
33719
|
name: string;
|
|
@@ -35337,7 +35368,7 @@ declare const _default: {
|
|
|
35337
35368
|
}>;
|
|
35338
35369
|
}>>;
|
|
35339
35370
|
locationType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<number>>;
|
|
35340
|
-
|
|
35371
|
+
defaultShowLocation: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
35341
35372
|
placeholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString & {
|
|
35342
35373
|
default: string;
|
|
35343
35374
|
}>;
|
|
@@ -36586,7 +36617,10 @@ declare const _default: {
|
|
|
36586
36617
|
visible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
36587
36618
|
readOnly: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
36588
36619
|
selectedLabel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
36589
|
-
item: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
36620
|
+
item: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
36621
|
+
label: import("@sinclair/typebox").TString;
|
|
36622
|
+
value: import("@sinclair/typebox").TString;
|
|
36623
|
+
}>>;
|
|
36590
36624
|
}>;
|
|
36591
36625
|
readonly classes: {
|
|
36592
36626
|
name: string;
|
|
@@ -36796,7 +36830,10 @@ declare const _default: {
|
|
|
36796
36830
|
visible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
36797
36831
|
readOnly: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
36798
36832
|
selectedLabel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
36799
|
-
item: import("@sinclair/typebox").
|
|
36833
|
+
item: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
36834
|
+
label: import("@sinclair/typebox").TString;
|
|
36835
|
+
value: import("@sinclair/typebox").TString;
|
|
36836
|
+
}>>;
|
|
36800
36837
|
}>;
|
|
36801
36838
|
readonly classes: {
|
|
36802
36839
|
name: string;
|
|
@@ -37272,7 +37309,10 @@ declare const _default: {
|
|
|
37272
37309
|
value: import("@sinclair/typebox").TString;
|
|
37273
37310
|
}>>>;
|
|
37274
37311
|
selectedLabel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
37275
|
-
item: import("@sinclair/typebox").
|
|
37312
|
+
item: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
37313
|
+
label: import("@sinclair/typebox").TString;
|
|
37314
|
+
value: import("@sinclair/typebox").TString;
|
|
37315
|
+
}>>;
|
|
37276
37316
|
}>;
|
|
37277
37317
|
readonly classes: {
|
|
37278
37318
|
name: string;
|
|
@@ -38314,6 +38354,8 @@ declare const _default: {
|
|
|
38314
38354
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
38315
38355
|
initMonth: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
38316
38356
|
value: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
38357
|
+
start: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
38358
|
+
end: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
38317
38359
|
configData: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
38318
38360
|
matchDate: import("@sinclair/typebox").TString;
|
|
38319
38361
|
disabled: import("@sinclair/typebox").TUnsafe<string>;
|
|
@@ -184,7 +184,10 @@ export declare const FORM_ITEM_DATA: {
|
|
|
184
184
|
value: import("@sinclair/typebox").TString;
|
|
185
185
|
}>>;
|
|
186
186
|
selectedLabel: import("@sinclair/typebox").TString;
|
|
187
|
-
item: import("@sinclair/typebox").TObject<{
|
|
187
|
+
item: import("@sinclair/typebox").TObject<{
|
|
188
|
+
label: import("@sinclair/typebox").TString;
|
|
189
|
+
value: import("@sinclair/typebox").TString;
|
|
190
|
+
}>;
|
|
188
191
|
isTableView: import("@sinclair/typebox").TBoolean;
|
|
189
192
|
_formatInSelect: import("@sinclair/typebox").TUnsafe<string>;
|
|
190
193
|
viewId: import("@sinclair/typebox").TString;
|
|
@@ -194,7 +197,7 @@ export declare const FORM_ITEM_DATA: {
|
|
|
194
197
|
/** 渲染但隐藏的属性,为了区分新老组件 */
|
|
195
198
|
isWdFormDetail: import("@sinclair/typebox").TBoolean;
|
|
196
199
|
isPureArray: import("@sinclair/typebox").TBoolean;
|
|
197
|
-
|
|
200
|
+
defaultShowLocation: import("@sinclair/typebox").TBoolean;
|
|
198
201
|
_valueInLocation: import("@sinclair/typebox").TObject<{
|
|
199
202
|
address: import("@sinclair/typebox").TString;
|
|
200
203
|
geopoint: import("@sinclair/typebox").TObject<{
|
|
@@ -603,7 +606,10 @@ export declare const ItemData: import("@sinclair/typebox").TObject<{
|
|
|
603
606
|
value: import("@sinclair/typebox").TString;
|
|
604
607
|
}>>>;
|
|
605
608
|
selectedLabel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
606
|
-
item: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
609
|
+
item: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
610
|
+
label: import("@sinclair/typebox").TString;
|
|
611
|
+
value: import("@sinclair/typebox").TString;
|
|
612
|
+
}>>;
|
|
607
613
|
isTableView: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
608
614
|
_formatInSelect: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
609
615
|
viewId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
@@ -612,7 +618,7 @@ export declare const ItemData: import("@sinclair/typebox").TObject<{
|
|
|
612
618
|
dataSourceName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
613
619
|
isWdFormDetail: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
614
620
|
isPureArray: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
615
|
-
|
|
621
|
+
defaultShowLocation: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
616
622
|
_valueInLocation: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
617
623
|
address: import("@sinclair/typebox").TString;
|
|
618
624
|
geopoint: import("@sinclair/typebox").TObject<{
|
|
@@ -393,11 +393,34 @@ export const FORM_ITEM_DATA = {
|
|
|
393
393
|
locationType: Type.NumberEnum({
|
|
394
394
|
enum: Tuple(WD_LOCATION_TYPE),
|
|
395
395
|
title: '默认位置',
|
|
396
|
-
'x-
|
|
396
|
+
'x-props': { 'data-hidebind': true },
|
|
397
|
+
default: X_RUNTIME_DEFAULT.locationType,
|
|
397
398
|
description: '地理位置的默认值',
|
|
398
399
|
'x-category': X_CATEGORY.COMMON,
|
|
399
400
|
'x-component': 'string',
|
|
400
401
|
'x-index': 13,
|
|
402
|
+
'x-linkages': [
|
|
403
|
+
{
|
|
404
|
+
type: 'value:state',
|
|
405
|
+
target: 'value',
|
|
406
|
+
condition: '{{$self.value==3}}',
|
|
407
|
+
state: {
|
|
408
|
+
display: true,
|
|
409
|
+
value: {
|
|
410
|
+
address: '海淀区中关村中国技术交易大厦(海淀桥东南200米)',
|
|
411
|
+
geopoint: {
|
|
412
|
+
type: 'Point',
|
|
413
|
+
coordinates: [116.307503, 39.98410411],
|
|
414
|
+
},
|
|
415
|
+
detailedAddress: '北京市海淀区彩和坊路',
|
|
416
|
+
},
|
|
417
|
+
},
|
|
418
|
+
otherwise: {
|
|
419
|
+
value: null,
|
|
420
|
+
display: false,
|
|
421
|
+
},
|
|
422
|
+
},
|
|
423
|
+
],
|
|
401
424
|
}),
|
|
402
425
|
mode: Type.StringEnum({
|
|
403
426
|
title: '时间模式',
|
|
@@ -1704,7 +1727,10 @@ export const FORM_ITEM_DATA = {
|
|
|
1704
1727
|
description: '选中项对应的文本名称',
|
|
1705
1728
|
'x-platforms': [],
|
|
1706
1729
|
}),
|
|
1707
|
-
item: Type.Object({
|
|
1730
|
+
item: Type.Object({
|
|
1731
|
+
label: Type.String({ title: 'label' }),
|
|
1732
|
+
value: Type.String({ title: 'value' }),
|
|
1733
|
+
}, {
|
|
1708
1734
|
title: '选中项',
|
|
1709
1735
|
description: '选中项对应的对象',
|
|
1710
1736
|
'x-platforms': [],
|
|
@@ -1835,7 +1861,7 @@ export const FORM_ITEM_DATA = {
|
|
|
1835
1861
|
'x-category': X_CATEGORY.COMMON,
|
|
1836
1862
|
'x-index': 24,
|
|
1837
1863
|
}),
|
|
1838
|
-
|
|
1864
|
+
defaultShowLocation: Type.Boolean({
|
|
1839
1865
|
type: 'boolean',
|
|
1840
1866
|
title: '默认显示当前位置',
|
|
1841
1867
|
default: true,
|
|
@@ -1864,7 +1890,8 @@ export const FORM_ITEM_DATA = {
|
|
|
1864
1890
|
type: 'object',
|
|
1865
1891
|
title: '默认值',
|
|
1866
1892
|
format: 'x-location',
|
|
1867
|
-
|
|
1893
|
+
'x-helper-text': '纬度,范围为-90~90;经度,范围为-180~180,位置经纬度可前往腾讯位置服务获取 [去获取](https://lbs.qq.com/getPoint/)',
|
|
1894
|
+
// display: false,
|
|
1868
1895
|
dataType: 'object',
|
|
1869
1896
|
'x-category': X_CATEGORY.COMMON,
|
|
1870
1897
|
'x-component': 'jsontext',
|
package/dist/enum/index.js
CHANGED
|
@@ -1022,6 +1022,7 @@ export const PROPS_WHERE_REL_MEMBER = [].concat(PROPS_WHERE_REL, [
|
|
|
1022
1022
|
export const WD_LOCATION_TYPE = [
|
|
1023
1023
|
{ label: '无', value: 1 },
|
|
1024
1024
|
{ label: '用户当前位置', value: 2 },
|
|
1025
|
+
{ label: '自定义位置', value: 3 },
|
|
1025
1026
|
];
|
|
1026
1027
|
export const WD_LOCATION_RANGE = [
|
|
1027
1028
|
{
|