@cloudbase/weda-ui 3.12.0 → 3.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/configs/components/dataView.d.ts +1 -0
- package/dist/configs/components/dataView.js +2 -1
- package/dist/configs/components/listView.js +5 -12
- package/dist/configs/components/wd-modal.d.ts +10 -1
- package/dist/configs/components/wd-modal.js +52 -1
- package/dist/configs/components/wd-table.d.ts +10 -0
- package/dist/configs/components/wd-table.js +9 -17
- package/dist/configs/components/web-view.d.ts +4 -0
- package/dist/configs/components/web-view.js +19 -1
- package/dist/configs/index.d.ts +36 -2
- package/dist/configs/type-utils/type-form.js +2 -28
- package/dist/style/weda-ui.min.css +1 -1
- package/dist/web/components/form/uploader/uploader.pc.d.ts +5 -0
- package/dist/web/components/form/uploader/uploader.pc.js +7 -9
- package/dist/web/components/uploaderView/index.d.ts +8 -1
- package/dist/web/components/uploaderView/index.js +5 -4
- package/dist/web/components/wd-form-item/wd-input-wrap.js +8 -2
- package/dist/web/components/wd-image/ImagePreview.js +5 -8
- package/dist/web/components/wd-image/image.d.ts +2 -1
- package/dist/web/components/wd-image/image.js +4 -6
- package/dist/web/components/wd-image/index.d.ts +1 -0
- package/dist/web/components/wd-image/index.js +4 -4
- package/dist/web/components/wd-select/relationSelect/relationSelect.js +7 -12
- package/dist/web/components/wd-select/select/selectUI.js +8 -13
- package/dist/web/components/wd-table/wd-table.js +16 -46
- package/dist/web/components/web-view/web-view.d.ts +2 -0
- package/dist/web/components/web-view/web-view.js +2 -2
- package/dist/web/utils/getModelParams.js +8 -3
- package/package.json +1 -1
|
@@ -184,6 +184,7 @@ declare const config: {
|
|
|
184
184
|
'data-withBindMeta': boolean;
|
|
185
185
|
};
|
|
186
186
|
description: string;
|
|
187
|
+
'x-helper-text': string;
|
|
187
188
|
};
|
|
188
189
|
isSupportApis: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
189
190
|
selectFieldType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { svgDataUri as svg } from '../svg-tag';
|
|
2
2
|
import { Type } from '../type-utils';
|
|
3
3
|
import { genericErrorType } from '../type-utils/error';
|
|
4
|
-
import { OFFICIAL_LIB_KEY, previewOperationHeaderIcon
|
|
4
|
+
import { OFFICIAL_LIB_KEY, previewOperationHeaderIcon } from '../utils/constants';
|
|
5
5
|
const rawTemplate = `
|
|
6
6
|
{{#with (helper_utils 'concat' 'string' 'number' 'boolean') as |_rangeTypes|}}
|
|
7
7
|
|
|
@@ -499,6 +499,7 @@ const config = {
|
|
|
499
499
|
'data-withBindMeta': true,
|
|
500
500
|
},
|
|
501
501
|
description: '对数据进行筛选过滤',
|
|
502
|
+
'x-helper-text': '点击fx支持编辑数据筛选表达式 [查看格式](https://docs.cloudbase.net/lowcode/manage/datasource-v2#%E6%9F%A5%E8%AF%A2wedagetitemv2)',
|
|
502
503
|
},
|
|
503
504
|
isSupportApis: Type.Optional(Type.Boolean({
|
|
504
505
|
title: '是否支持apis',
|
|
@@ -1021,9 +1021,7 @@ const data = Type.Object({
|
|
|
1021
1021
|
condition: '{{!!$value && !!$value.name && !!$form.values?.sorter?.length && !$form.values.sorter.every(o => getDataSourceValueOptions($value.name, undefined, true).find(n=>o.orderBy===n.value))}}',
|
|
1022
1022
|
target: 'sorter',
|
|
1023
1023
|
state: {
|
|
1024
|
-
value: [
|
|
1025
|
-
{ orderBy: 'updatedAt', orderType: 'desc', label: '更新时间' },
|
|
1026
|
-
],
|
|
1024
|
+
value: [{ orderBy: 'updatedAt', orderType: 'desc', label: '更新时间' }],
|
|
1027
1025
|
},
|
|
1028
1026
|
},
|
|
1029
1027
|
{
|
|
@@ -1105,7 +1103,7 @@ const data = Type.Object({
|
|
|
1105
1103
|
},
|
|
1106
1104
|
description: '展示数据的APIs来源选择',
|
|
1107
1105
|
})),
|
|
1108
|
-
dataSourceData: Type.Optional(Type.Array(Type.Object({}, {
|
|
1106
|
+
dataSourceData: Type.Optional(Type.Array(Type.Object({}), {
|
|
1109
1107
|
title: '表达式',
|
|
1110
1108
|
type: 'array',
|
|
1111
1109
|
required: true,
|
|
@@ -1114,7 +1112,7 @@ const data = Type.Object({
|
|
|
1114
1112
|
'x-helper-text': '新特性:数据列表追加绑定表达式数据,原APIs路径优化为表达式。注意:数组中默认需包含_id字段。且当输入的表达式变化时,会触发自动生成列表字段。因此建议先输入表达式再调整样式。[查看示例](https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/database/ListView#2-%E7%BB%91%E5%AE%9A%E8%A1%A8%E8%BE%BE%E5%BC%8F)',
|
|
1115
1113
|
'x-group': '数据',
|
|
1116
1114
|
'x-index': 14,
|
|
1117
|
-
}))
|
|
1115
|
+
})),
|
|
1118
1116
|
exprToFieldsSchema: Type.Optional(Type.String({
|
|
1119
1117
|
title: '',
|
|
1120
1118
|
type: 'string',
|
|
@@ -1228,6 +1226,7 @@ const data = Type.Object({
|
|
|
1228
1226
|
'data-withBindMeta': true,
|
|
1229
1227
|
},
|
|
1230
1228
|
description: '对数据进行筛选过滤',
|
|
1229
|
+
'x-helper-text': '点击fx支持编辑数据筛选表达式 [查看格式](https://docs.cloudbase.net/lowcode/manage/datasource-v2#%E6%9F%A5%E8%AF%A2wedagetitemv2)',
|
|
1231
1230
|
})),
|
|
1232
1231
|
orderBy: Type.Optional(Type.String({
|
|
1233
1232
|
'x-index': 30,
|
|
@@ -1837,13 +1836,7 @@ export default {
|
|
|
1837
1836
|
keywords: ['数据列表', '商品列表', '卡片列表', '图文卡片', '列表页'],
|
|
1838
1837
|
docsUrl: 'https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/database/ListView',
|
|
1839
1838
|
shortcut: {
|
|
1840
|
-
props: [
|
|
1841
|
-
'dataSourceType',
|
|
1842
|
-
'datasource',
|
|
1843
|
-
'bindConnectMetadata',
|
|
1844
|
-
'connectorMethod',
|
|
1845
|
-
'template',
|
|
1846
|
-
],
|
|
1839
|
+
props: ['dataSourceType', 'datasource', 'bindConnectMetadata', 'connectorMethod', 'template'],
|
|
1847
1840
|
},
|
|
1848
1841
|
contextData: {
|
|
1849
1842
|
setField: true,
|
|
@@ -38,38 +38,47 @@ declare const config: {
|
|
|
38
38
|
readonly name: "根元素";
|
|
39
39
|
readonly selector: ".wd-modal";
|
|
40
40
|
readonly description: "组件根元素";
|
|
41
|
+
readonly code: "\n :scope.wd-modal {\n /* 在这里编写CSS 样式 */\n }\n ";
|
|
41
42
|
}, {
|
|
42
43
|
readonly name: "PC 端根元素";
|
|
43
44
|
readonly selector: ".wd-pc-modal";
|
|
44
45
|
readonly description: "可以为 PC 端的编写样式";
|
|
46
|
+
readonly code: "\n :scope.wd-pc-modal {\n /* 可以为 PC 端的编写样式 */\n }\n ";
|
|
45
47
|
}, {
|
|
46
48
|
readonly name: "H5 端根元素";
|
|
47
49
|
readonly selector: ".wd-h5-modal";
|
|
48
50
|
readonly description: "可以为 H5 端的编写样式";
|
|
51
|
+
readonly code: "\n :scope.wd-h5-modal {\n /* 在这里编写CSS 样式 */\n }\n ";
|
|
49
52
|
}, {
|
|
50
53
|
readonly name: "小程序 端根元素";
|
|
51
54
|
readonly selector: ".wd-mp-modal";
|
|
52
55
|
readonly description: "可以为 小程序 端的编写样式";
|
|
56
|
+
readonly code: "\n :scope.wd-mp-modal {\n /* 可以为 小程序 端的编写样式 */\n }\n ";
|
|
53
57
|
}, {
|
|
54
58
|
readonly name: "弹窗遮罩层样式";
|
|
55
59
|
readonly selector: ".wd-modal-mask";
|
|
56
60
|
readonly description: "可以为遮罩层编写样式";
|
|
61
|
+
readonly code: "\n :scope .wd-modal-mask {\n /* 可以为遮罩层编写样式 */\n background-color: rgba(0, 0, 0, 0.5)\n }\n ";
|
|
57
62
|
}, {
|
|
58
63
|
readonly name: "弹窗主体容器样式";
|
|
59
|
-
readonly selector: ".wd-modal-
|
|
64
|
+
readonly selector: ".wd-modal-content";
|
|
60
65
|
readonly description: "可以为主体容器编写样式";
|
|
66
|
+
readonly code: "\n :scope .wd-modal-content {\n /* 可以为主体容器编写样式 */\n inset-inline-start: auto;\n inset-inline-end: 0;\n }\n ";
|
|
61
67
|
}, {
|
|
62
68
|
readonly name: "弹窗标题区样式";
|
|
63
69
|
readonly selector: ".wd-modal-bd__hd";
|
|
64
70
|
readonly description: "可以为标题区编写样式";
|
|
71
|
+
readonly code: "\n :scope .wd-modal-bd__hd .wd-typography {\n /* 可以为标题区编写样式 */\n font-size: 20px;\n color: #333;\n }\n ";
|
|
65
72
|
}, {
|
|
66
73
|
readonly name: "弹窗内容区样式";
|
|
67
74
|
readonly selector: ".wd-modal-bd__main";
|
|
68
75
|
readonly description: "可以为内容区编写样式";
|
|
76
|
+
readonly code: "\n :scope .wd-modal-bd__main {\n /* 可以为内容区编写样式 */\n }\n ";
|
|
69
77
|
}, {
|
|
70
78
|
readonly name: "弹窗按钮区样式";
|
|
71
79
|
readonly selector: ".wd-modal-bd__ft";
|
|
72
80
|
readonly description: "可以为按钮区编写样式";
|
|
81
|
+
readonly code: "\n :scope .wd-modal-bd__ft {\n /* 可以为按钮区编写样式 */\n justify-content: flex-start;\n }\n ";
|
|
73
82
|
}];
|
|
74
83
|
readonly methods: readonly [{
|
|
75
84
|
readonly name: "open";
|
|
@@ -522,46 +522,97 @@ const config = defineConfig({
|
|
|
522
522
|
name: '根元素',
|
|
523
523
|
selector: '.wd-modal',
|
|
524
524
|
description: '组件根元素',
|
|
525
|
+
code: `
|
|
526
|
+
:scope.wd-modal {
|
|
527
|
+
/* 在这里编写CSS 样式 */
|
|
528
|
+
}
|
|
529
|
+
`,
|
|
525
530
|
},
|
|
526
531
|
{
|
|
527
532
|
name: 'PC 端根元素',
|
|
528
533
|
selector: '.wd-pc-modal',
|
|
529
534
|
description: '可以为 PC 端的编写样式',
|
|
535
|
+
code: `
|
|
536
|
+
:scope.wd-pc-modal {
|
|
537
|
+
/* 可以为 PC 端的编写样式 */
|
|
538
|
+
}
|
|
539
|
+
`,
|
|
530
540
|
},
|
|
531
541
|
{
|
|
532
542
|
name: 'H5 端根元素',
|
|
533
543
|
selector: '.wd-h5-modal',
|
|
534
544
|
description: '可以为 H5 端的编写样式',
|
|
545
|
+
code: `
|
|
546
|
+
:scope.wd-h5-modal {
|
|
547
|
+
/* 在这里编写CSS 样式 */
|
|
548
|
+
}
|
|
549
|
+
`,
|
|
535
550
|
},
|
|
536
551
|
{
|
|
537
552
|
name: '小程序 端根元素',
|
|
538
553
|
selector: '.wd-mp-modal',
|
|
539
554
|
description: '可以为 小程序 端的编写样式',
|
|
555
|
+
code: `
|
|
556
|
+
:scope.wd-mp-modal {
|
|
557
|
+
/* 可以为 小程序 端的编写样式 */
|
|
558
|
+
}
|
|
559
|
+
`,
|
|
540
560
|
},
|
|
541
561
|
{
|
|
542
562
|
name: '弹窗遮罩层样式',
|
|
543
563
|
selector: '.wd-modal-mask',
|
|
544
564
|
description: '可以为遮罩层编写样式',
|
|
565
|
+
code: `
|
|
566
|
+
:scope .wd-modal-mask {
|
|
567
|
+
/* 可以为遮罩层编写样式 */
|
|
568
|
+
background-color: rgba(0, 0, 0, 0.5)
|
|
569
|
+
}
|
|
570
|
+
`,
|
|
545
571
|
},
|
|
546
572
|
{
|
|
547
573
|
name: '弹窗主体容器样式',
|
|
548
|
-
selector: '.wd-modal-
|
|
574
|
+
selector: '.wd-modal-content',
|
|
549
575
|
description: '可以为主体容器编写样式',
|
|
576
|
+
code: `
|
|
577
|
+
:scope .wd-modal-content {
|
|
578
|
+
/* 可以为主体容器编写样式 */
|
|
579
|
+
inset-inline-start: auto;
|
|
580
|
+
inset-inline-end: 0;
|
|
581
|
+
}
|
|
582
|
+
`,
|
|
550
583
|
},
|
|
551
584
|
{
|
|
552
585
|
name: '弹窗标题区样式',
|
|
553
586
|
selector: '.wd-modal-bd__hd',
|
|
554
587
|
description: '可以为标题区编写样式',
|
|
588
|
+
code: `
|
|
589
|
+
:scope .wd-modal-bd__hd .wd-typography {
|
|
590
|
+
/* 可以为标题区编写样式 */
|
|
591
|
+
font-size: 20px;
|
|
592
|
+
color: #333;
|
|
593
|
+
}
|
|
594
|
+
`,
|
|
555
595
|
},
|
|
556
596
|
{
|
|
557
597
|
name: '弹窗内容区样式',
|
|
558
598
|
selector: '.wd-modal-bd__main',
|
|
559
599
|
description: '可以为内容区编写样式',
|
|
600
|
+
code: `
|
|
601
|
+
:scope .wd-modal-bd__main {
|
|
602
|
+
/* 可以为内容区编写样式 */
|
|
603
|
+
}
|
|
604
|
+
`,
|
|
560
605
|
},
|
|
561
606
|
{
|
|
562
607
|
name: '弹窗按钮区样式',
|
|
563
608
|
selector: '.wd-modal-bd__ft',
|
|
564
609
|
description: '可以为按钮区编写样式',
|
|
610
|
+
code: `
|
|
611
|
+
:scope .wd-modal-bd__ft {
|
|
612
|
+
/* 可以为按钮区编写样式 */
|
|
613
|
+
justify-content: flex-start;
|
|
614
|
+
}
|
|
615
|
+
`,
|
|
565
616
|
},
|
|
566
617
|
],
|
|
567
618
|
// 组件方法
|
|
@@ -340,6 +340,11 @@ declare const config: {
|
|
|
340
340
|
readonly label: "重置筛选器";
|
|
341
341
|
readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
|
|
342
342
|
readonly description: "重置筛选器";
|
|
343
|
+
}, {
|
|
344
|
+
readonly name: "clearSelection";
|
|
345
|
+
readonly label: "清空选中项";
|
|
346
|
+
readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
|
|
347
|
+
readonly description: "清空选中项";
|
|
343
348
|
}];
|
|
344
349
|
readonly events: readonly [{
|
|
345
350
|
readonly title: "点击表格行";
|
|
@@ -658,4 +663,9 @@ export declare const methods: readonly [{
|
|
|
658
663
|
readonly label: "重置筛选器";
|
|
659
664
|
readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
|
|
660
665
|
readonly description: "重置筛选器";
|
|
666
|
+
}, {
|
|
667
|
+
readonly name: "clearSelection";
|
|
668
|
+
readonly label: "清空选中项";
|
|
669
|
+
readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
|
|
670
|
+
readonly description: "清空选中项";
|
|
661
671
|
}];
|
|
@@ -374,9 +374,7 @@ const data = Type.Object({
|
|
|
374
374
|
condition: '{{!!$value && !!$value.datasource && !!$value.datasource.name && !!$form.values?.sorter?.length && !$form.values.sorter.every(o => getDataSourceValueOptions($value.datasource.name, undefined, true).find(n=>o.orderBy===n.value))}}',
|
|
375
375
|
target: 'sorter',
|
|
376
376
|
state: {
|
|
377
|
-
value: [
|
|
378
|
-
{ orderBy: 'updatedAt', orderType: 'desc', label: '更新时间' },
|
|
379
|
-
],
|
|
377
|
+
value: [{ orderBy: 'updatedAt', orderType: 'desc', label: '更新时间' }],
|
|
380
378
|
},
|
|
381
379
|
},
|
|
382
380
|
{
|
|
@@ -1704,6 +1702,12 @@ const config = defineConfig({
|
|
|
1704
1702
|
'x-platforms': ['MOBILEWEB', 'PCWEB'],
|
|
1705
1703
|
description: '重置筛选器',
|
|
1706
1704
|
},
|
|
1705
|
+
{
|
|
1706
|
+
name: 'clearSelection',
|
|
1707
|
+
label: '清空选中项',
|
|
1708
|
+
'x-platforms': ['MOBILEWEB', 'PCWEB'],
|
|
1709
|
+
description: '清空选中项',
|
|
1710
|
+
},
|
|
1707
1711
|
],
|
|
1708
1712
|
// 组件对外暴露事件
|
|
1709
1713
|
events: [
|
|
@@ -1932,21 +1936,9 @@ const config = defineConfig({
|
|
|
1932
1936
|
// 当前场景
|
|
1933
1937
|
scenes: ['batchSelect', 'batchDelete', 'create', 'select', 'update'],
|
|
1934
1938
|
// 允许选择的场景
|
|
1935
|
-
availableScenes: [
|
|
1936
|
-
'batchSelect',
|
|
1937
|
-
'create',
|
|
1938
|
-
'select',
|
|
1939
|
-
'update',
|
|
1940
|
-
'batchDelete',
|
|
1941
|
-
],
|
|
1939
|
+
availableScenes: ['batchSelect', 'create', 'select', 'update', 'batchDelete'],
|
|
1942
1940
|
// 场景组合
|
|
1943
|
-
validCombinations: getCombinations([
|
|
1944
|
-
'batchSelect',
|
|
1945
|
-
'create',
|
|
1946
|
-
'select',
|
|
1947
|
-
'update',
|
|
1948
|
-
'batchDelete',
|
|
1949
|
-
]).filter((scenes) => {
|
|
1941
|
+
validCombinations: getCombinations(['batchSelect', 'create', 'select', 'update', 'batchDelete']).filter((scenes) => {
|
|
1950
1942
|
if (!scenes.includes('batchSelect')) {
|
|
1951
1943
|
return false;
|
|
1952
1944
|
}
|
|
@@ -2,6 +2,8 @@ import { Static, StaticEventsType } from '../type-utils';
|
|
|
2
2
|
import type { Simplify } from 'type-fest';
|
|
3
3
|
declare const data: import("@sinclair/typebox").TObject<{
|
|
4
4
|
link: import("@sinclair/typebox").TString;
|
|
5
|
+
allow: import("@sinclair/typebox").TString;
|
|
6
|
+
sandbox: import("@sinclair/typebox").TString;
|
|
5
7
|
}>;
|
|
6
8
|
export type DataType = Simplify<Static<typeof data>>;
|
|
7
9
|
declare const events: [{
|
|
@@ -27,6 +29,8 @@ declare const config: {
|
|
|
27
29
|
readonly $schema: "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json";
|
|
28
30
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
29
31
|
link: import("@sinclair/typebox").TString;
|
|
32
|
+
allow: import("@sinclair/typebox").TString;
|
|
33
|
+
sandbox: import("@sinclair/typebox").TString;
|
|
30
34
|
}>;
|
|
31
35
|
readonly properties: import("@sinclair/typebox").TObject<{
|
|
32
36
|
link: import("@sinclair/typebox").TString;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineConfig, Type, Tuple
|
|
1
|
+
import { defineConfig, Type, Tuple } from '../type-utils';
|
|
2
2
|
// 属性类型定义
|
|
3
3
|
const data = Type.Object({
|
|
4
4
|
link: Type.String({
|
|
@@ -10,6 +10,24 @@ const data = Type.Object({
|
|
|
10
10
|
'x-category': '基础属性',
|
|
11
11
|
'x-helper-text': `小程序端以真机调试效果为准。除关联公众号文章链接外,其他链接需配置业务域名才可生效,[去配置](https://console.cloud.tencent.com/lowcode/auth/personal-wechat?from=editor)`,
|
|
12
12
|
}),
|
|
13
|
+
allow: Type.String({
|
|
14
|
+
title: 'allow',
|
|
15
|
+
type: 'string',
|
|
16
|
+
default: 'microphone;camera;midi;encrypted-media;geolocation;fullscreen;clipboard-write;clipboard-read;',
|
|
17
|
+
required: true,
|
|
18
|
+
'x-index': 20,
|
|
19
|
+
'x-category': '基础属性',
|
|
20
|
+
'x-helper-text': '用于为 <iframe> 指定其权限策略。该策略根据请求的来源规定 <iframe> 可以使用哪些特性(例如,访问麦克风、摄像头、电池、web 共享等)。该属性暂不支持小程序。',
|
|
21
|
+
}),
|
|
22
|
+
sandbox: Type.String({
|
|
23
|
+
title: 'sandbox',
|
|
24
|
+
type: 'string',
|
|
25
|
+
default: 'allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts allow-downloads',
|
|
26
|
+
required: true,
|
|
27
|
+
'x-index': 30,
|
|
28
|
+
'x-category': '基础属性',
|
|
29
|
+
'x-helper-text': '控制应用于嵌入在 <iframe> 中的内容的限制。该属性的值可以为空以应用所有限制,也可以为空格分隔的标记以解除特定的限制。该属性暂不支持小程序。',
|
|
30
|
+
}),
|
|
13
31
|
});
|
|
14
32
|
// 组件对外暴露的只读属性
|
|
15
33
|
// 未来可通过 widget API 开放,应用可以获取到组件的实例属性
|
package/dist/configs/index.d.ts
CHANGED
|
@@ -1704,38 +1704,47 @@ export declare const components: {
|
|
|
1704
1704
|
readonly name: "根元素";
|
|
1705
1705
|
readonly selector: ".wd-modal";
|
|
1706
1706
|
readonly description: "组件根元素";
|
|
1707
|
+
readonly code: "\n :scope.wd-modal {\n /* 在这里编写CSS 样式 */\n }\n ";
|
|
1707
1708
|
}, {
|
|
1708
1709
|
readonly name: "PC 端根元素";
|
|
1709
1710
|
readonly selector: ".wd-pc-modal";
|
|
1710
1711
|
readonly description: "可以为 PC 端的编写样式";
|
|
1712
|
+
readonly code: "\n :scope.wd-pc-modal {\n /* 可以为 PC 端的编写样式 */\n }\n ";
|
|
1711
1713
|
}, {
|
|
1712
1714
|
readonly name: "H5 端根元素";
|
|
1713
1715
|
readonly selector: ".wd-h5-modal";
|
|
1714
1716
|
readonly description: "可以为 H5 端的编写样式";
|
|
1717
|
+
readonly code: "\n :scope.wd-h5-modal {\n /* 在这里编写CSS 样式 */\n }\n ";
|
|
1715
1718
|
}, {
|
|
1716
1719
|
readonly name: "小程序 端根元素";
|
|
1717
1720
|
readonly selector: ".wd-mp-modal";
|
|
1718
1721
|
readonly description: "可以为 小程序 端的编写样式";
|
|
1722
|
+
readonly code: "\n :scope.wd-mp-modal {\n /* 可以为 小程序 端的编写样式 */\n }\n ";
|
|
1719
1723
|
}, {
|
|
1720
1724
|
readonly name: "弹窗遮罩层样式";
|
|
1721
1725
|
readonly selector: ".wd-modal-mask";
|
|
1722
1726
|
readonly description: "可以为遮罩层编写样式";
|
|
1727
|
+
readonly code: "\n :scope .wd-modal-mask {\n /* 可以为遮罩层编写样式 */\n background-color: rgba(0, 0, 0, 0.5)\n }\n ";
|
|
1723
1728
|
}, {
|
|
1724
1729
|
readonly name: "弹窗主体容器样式";
|
|
1725
|
-
readonly selector: ".wd-modal-
|
|
1730
|
+
readonly selector: ".wd-modal-content";
|
|
1726
1731
|
readonly description: "可以为主体容器编写样式";
|
|
1732
|
+
readonly code: "\n :scope .wd-modal-content {\n /* 可以为主体容器编写样式 */\n inset-inline-start: auto;\n inset-inline-end: 0;\n }\n ";
|
|
1727
1733
|
}, {
|
|
1728
1734
|
readonly name: "弹窗标题区样式";
|
|
1729
1735
|
readonly selector: ".wd-modal-bd__hd";
|
|
1730
1736
|
readonly description: "可以为标题区编写样式";
|
|
1737
|
+
readonly code: "\n :scope .wd-modal-bd__hd .wd-typography {\n /* 可以为标题区编写样式 */\n font-size: 20px;\n color: #333;\n }\n ";
|
|
1731
1738
|
}, {
|
|
1732
1739
|
readonly name: "弹窗内容区样式";
|
|
1733
1740
|
readonly selector: ".wd-modal-bd__main";
|
|
1734
1741
|
readonly description: "可以为内容区编写样式";
|
|
1742
|
+
readonly code: "\n :scope .wd-modal-bd__main {\n /* 可以为内容区编写样式 */\n }\n ";
|
|
1735
1743
|
}, {
|
|
1736
1744
|
readonly name: "弹窗按钮区样式";
|
|
1737
1745
|
readonly selector: ".wd-modal-bd__ft";
|
|
1738
1746
|
readonly description: "可以为按钮区编写样式";
|
|
1747
|
+
readonly code: "\n :scope .wd-modal-bd__ft {\n /* 可以为按钮区编写样式 */\n justify-content: flex-start;\n }\n ";
|
|
1739
1748
|
}];
|
|
1740
1749
|
readonly methods: readonly [{
|
|
1741
1750
|
readonly name: "open";
|
|
@@ -7396,6 +7405,7 @@ export declare const components: {
|
|
|
7396
7405
|
'data-withBindMeta': boolean;
|
|
7397
7406
|
};
|
|
7398
7407
|
description: string;
|
|
7408
|
+
'x-helper-text': string;
|
|
7399
7409
|
};
|
|
7400
7410
|
isSupportApis: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
7401
7411
|
selectFieldType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
@@ -11988,6 +11998,11 @@ export declare const components: {
|
|
|
11988
11998
|
readonly label: "重置筛选器";
|
|
11989
11999
|
readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
|
|
11990
12000
|
readonly description: "重置筛选器";
|
|
12001
|
+
}, {
|
|
12002
|
+
readonly name: "clearSelection";
|
|
12003
|
+
readonly label: "清空选中项";
|
|
12004
|
+
readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
|
|
12005
|
+
readonly description: "清空选中项";
|
|
11991
12006
|
}];
|
|
11992
12007
|
readonly events: readonly [{
|
|
11993
12008
|
readonly title: "点击表格行";
|
|
@@ -18966,6 +18981,8 @@ export declare const components: {
|
|
|
18966
18981
|
readonly $schema: "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json";
|
|
18967
18982
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
18968
18983
|
link: import("@sinclair/typebox").TString;
|
|
18984
|
+
allow: import("@sinclair/typebox").TString;
|
|
18985
|
+
sandbox: import("@sinclair/typebox").TString;
|
|
18969
18986
|
}>;
|
|
18970
18987
|
readonly properties: import("@sinclair/typebox").TObject<{
|
|
18971
18988
|
link: import("@sinclair/typebox").TString;
|
|
@@ -21097,38 +21114,47 @@ declare const _default: {
|
|
|
21097
21114
|
readonly name: "根元素";
|
|
21098
21115
|
readonly selector: ".wd-modal";
|
|
21099
21116
|
readonly description: "组件根元素";
|
|
21117
|
+
readonly code: "\n :scope.wd-modal {\n /* 在这里编写CSS 样式 */\n }\n ";
|
|
21100
21118
|
}, {
|
|
21101
21119
|
readonly name: "PC 端根元素";
|
|
21102
21120
|
readonly selector: ".wd-pc-modal";
|
|
21103
21121
|
readonly description: "可以为 PC 端的编写样式";
|
|
21122
|
+
readonly code: "\n :scope.wd-pc-modal {\n /* 可以为 PC 端的编写样式 */\n }\n ";
|
|
21104
21123
|
}, {
|
|
21105
21124
|
readonly name: "H5 端根元素";
|
|
21106
21125
|
readonly selector: ".wd-h5-modal";
|
|
21107
21126
|
readonly description: "可以为 H5 端的编写样式";
|
|
21127
|
+
readonly code: "\n :scope.wd-h5-modal {\n /* 在这里编写CSS 样式 */\n }\n ";
|
|
21108
21128
|
}, {
|
|
21109
21129
|
readonly name: "小程序 端根元素";
|
|
21110
21130
|
readonly selector: ".wd-mp-modal";
|
|
21111
21131
|
readonly description: "可以为 小程序 端的编写样式";
|
|
21132
|
+
readonly code: "\n :scope.wd-mp-modal {\n /* 可以为 小程序 端的编写样式 */\n }\n ";
|
|
21112
21133
|
}, {
|
|
21113
21134
|
readonly name: "弹窗遮罩层样式";
|
|
21114
21135
|
readonly selector: ".wd-modal-mask";
|
|
21115
21136
|
readonly description: "可以为遮罩层编写样式";
|
|
21137
|
+
readonly code: "\n :scope .wd-modal-mask {\n /* 可以为遮罩层编写样式 */\n background-color: rgba(0, 0, 0, 0.5)\n }\n ";
|
|
21116
21138
|
}, {
|
|
21117
21139
|
readonly name: "弹窗主体容器样式";
|
|
21118
|
-
readonly selector: ".wd-modal-
|
|
21140
|
+
readonly selector: ".wd-modal-content";
|
|
21119
21141
|
readonly description: "可以为主体容器编写样式";
|
|
21142
|
+
readonly code: "\n :scope .wd-modal-content {\n /* 可以为主体容器编写样式 */\n inset-inline-start: auto;\n inset-inline-end: 0;\n }\n ";
|
|
21120
21143
|
}, {
|
|
21121
21144
|
readonly name: "弹窗标题区样式";
|
|
21122
21145
|
readonly selector: ".wd-modal-bd__hd";
|
|
21123
21146
|
readonly description: "可以为标题区编写样式";
|
|
21147
|
+
readonly code: "\n :scope .wd-modal-bd__hd .wd-typography {\n /* 可以为标题区编写样式 */\n font-size: 20px;\n color: #333;\n }\n ";
|
|
21124
21148
|
}, {
|
|
21125
21149
|
readonly name: "弹窗内容区样式";
|
|
21126
21150
|
readonly selector: ".wd-modal-bd__main";
|
|
21127
21151
|
readonly description: "可以为内容区编写样式";
|
|
21152
|
+
readonly code: "\n :scope .wd-modal-bd__main {\n /* 可以为内容区编写样式 */\n }\n ";
|
|
21128
21153
|
}, {
|
|
21129
21154
|
readonly name: "弹窗按钮区样式";
|
|
21130
21155
|
readonly selector: ".wd-modal-bd__ft";
|
|
21131
21156
|
readonly description: "可以为按钮区编写样式";
|
|
21157
|
+
readonly code: "\n :scope .wd-modal-bd__ft {\n /* 可以为按钮区编写样式 */\n justify-content: flex-start;\n }\n ";
|
|
21132
21158
|
}];
|
|
21133
21159
|
readonly methods: readonly [{
|
|
21134
21160
|
readonly name: "open";
|
|
@@ -26789,6 +26815,7 @@ declare const _default: {
|
|
|
26789
26815
|
'data-withBindMeta': boolean;
|
|
26790
26816
|
};
|
|
26791
26817
|
description: string;
|
|
26818
|
+
'x-helper-text': string;
|
|
26792
26819
|
};
|
|
26793
26820
|
isSupportApis: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
26794
26821
|
selectFieldType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
@@ -31381,6 +31408,11 @@ declare const _default: {
|
|
|
31381
31408
|
readonly label: "重置筛选器";
|
|
31382
31409
|
readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
|
|
31383
31410
|
readonly description: "重置筛选器";
|
|
31411
|
+
}, {
|
|
31412
|
+
readonly name: "clearSelection";
|
|
31413
|
+
readonly label: "清空选中项";
|
|
31414
|
+
readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
|
|
31415
|
+
readonly description: "清空选中项";
|
|
31384
31416
|
}];
|
|
31385
31417
|
readonly events: readonly [{
|
|
31386
31418
|
readonly title: "点击表格行";
|
|
@@ -38359,6 +38391,8 @@ declare const _default: {
|
|
|
38359
38391
|
readonly $schema: "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json";
|
|
38360
38392
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
38361
38393
|
link: import("@sinclair/typebox").TString;
|
|
38394
|
+
allow: import("@sinclair/typebox").TString;
|
|
38395
|
+
sandbox: import("@sinclair/typebox").TString;
|
|
38362
38396
|
}>;
|
|
38363
38397
|
readonly properties: import("@sinclair/typebox").TObject<{
|
|
38364
38398
|
link: import("@sinclair/typebox").TString;
|
|
@@ -594,39 +594,13 @@ export const FORM_ITEM_DATA = {
|
|
|
594
594
|
default: 'obj',
|
|
595
595
|
enum: [
|
|
596
596
|
{ label: '对象数组(卡片)', value: 'obj' },
|
|
597
|
-
{ label: '对象数组(表格)', value: '
|
|
597
|
+
{ label: '对象数组(表格)', value: 'table' },
|
|
598
|
+
{ label: '对象数组(自定义)', value: 'custom' },
|
|
598
599
|
{ label: '值数组(表单项)', value: 'field' },
|
|
599
600
|
],
|
|
600
601
|
'x-category': X_CATEGORY.COMMON,
|
|
601
602
|
'x-component': 'string',
|
|
602
603
|
'x-index': 21,
|
|
603
|
-
'x-linkages': [
|
|
604
|
-
{
|
|
605
|
-
type: 'value:schema',
|
|
606
|
-
target: 'mode',
|
|
607
|
-
condition: '{{!!$form.values.dataSourceName}}',
|
|
608
|
-
schema: {
|
|
609
|
-
enum: [
|
|
610
|
-
{ label: '对象数组(卡片)', value: 'obj' },
|
|
611
|
-
{ label: '对象数组(表格)', value: 'table' },
|
|
612
|
-
{ label: '对象数组(自定义)', value: 'custom' },
|
|
613
|
-
{ label: '值数组(表单项)', value: 'field' },
|
|
614
|
-
],
|
|
615
|
-
},
|
|
616
|
-
},
|
|
617
|
-
{
|
|
618
|
-
type: 'value:schema',
|
|
619
|
-
target: 'mode',
|
|
620
|
-
condition: '{{!$form.values.dataSourceName}}',
|
|
621
|
-
schema: {
|
|
622
|
-
enum: [
|
|
623
|
-
{ label: '对象数组(卡片)', value: 'obj' },
|
|
624
|
-
{ label: '对象数组(自定义)', value: 'custom' },
|
|
625
|
-
{ label: '值数组(表单项)', value: 'field' },
|
|
626
|
-
],
|
|
627
|
-
},
|
|
628
|
-
},
|
|
629
|
-
],
|
|
630
604
|
}),
|
|
631
605
|
_addDefaultValue: Type.Unknown({
|
|
632
606
|
title: '新增表单项初始值',
|