@cloudbase/weda-ui 3.21.2 → 3.22.0
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/wd-select-multiple.js +12 -0
- package/dist/configs/components/wd-select.js +12 -0
- package/dist/configs/components/wd-table.d.ts +3 -0
- package/dist/configs/components/wd-table.js +28 -1
- package/dist/configs/index.d.ts +4 -0
- package/dist/enum/index.js +4 -0
- package/dist/style/weda-ui.min.css +2 -2
- package/dist/web/components/richText/index.js +11 -21
- package/dist/web/components/richTextView/index.css +56 -4
- package/dist/web/components/richTextView/style.d.ts +1 -0
- package/dist/web/components/richTextView/style.js +1 -0
- package/dist/web/components/table/ExportFileModalByApi/index.js +11 -14
- package/dist/web/components/wd-select/select/selectUI.js +9 -7
- package/dist/web/components/wd-select/wd-select.js +1 -1
- package/dist/web/components/wd-select-multiple/wd-select-multiple.js +1 -1
- package/dist/web/components/wd-table/components/FieldRender/index.js +15 -0
- package/dist/web/components/wd-table/wd-table.js +2 -1
- package/dist/web/components/wd-tabs/tabs-h5.js +14 -13
- package/dist/web/components/wd-tabs/tabs-pc.js +15 -16
- package/dist/web/utils/tool.js +19 -1
- package/package.json +1 -1
|
@@ -367,6 +367,18 @@ const classes = [
|
|
|
367
367
|
CLASSES.item_readonly,
|
|
368
368
|
CLASSES.input_addon_left,
|
|
369
369
|
CLASSES.input_addon_right,
|
|
370
|
+
{
|
|
371
|
+
name: '移动端下拉选择列表选项',
|
|
372
|
+
selector: `.wd-select-modal .wd-select-list .wd-select-list-item`,
|
|
373
|
+
description: '设置移动端下拉选择列表选项样式',
|
|
374
|
+
code: `
|
|
375
|
+
.wd-select-modal .wd-select-list .wd-select-list-item{
|
|
376
|
+
color: lightgray ;
|
|
377
|
+
font-size: 16px ;
|
|
378
|
+
height: 50px ;
|
|
379
|
+
}
|
|
380
|
+
`,
|
|
381
|
+
},
|
|
370
382
|
];
|
|
371
383
|
const paramValueType = Type.Object({
|
|
372
384
|
value: Object.assign({}, FORM_ITEM_DATA._valueInSelectMultiple, {
|
|
@@ -353,6 +353,18 @@ const classes = [
|
|
|
353
353
|
CLASSES.item_readonly,
|
|
354
354
|
CLASSES.input_addon_left,
|
|
355
355
|
CLASSES.input_addon_right,
|
|
356
|
+
{
|
|
357
|
+
name: '移动端下拉选择列表选项',
|
|
358
|
+
selector: `.wd-select-modal .wd-select-list .wd-select-list-item`,
|
|
359
|
+
description: '设置移动端下拉选择列表选项样式',
|
|
360
|
+
code: `
|
|
361
|
+
.wd-select-modal .wd-select-list .wd-select-list-item{
|
|
362
|
+
color: lightgray ;
|
|
363
|
+
font-size: 16px ;
|
|
364
|
+
height: 50px ;
|
|
365
|
+
}
|
|
366
|
+
`,
|
|
367
|
+
},
|
|
356
368
|
];
|
|
357
369
|
// export default
|
|
358
370
|
const config = defineConfig({
|
|
@@ -27,6 +27,7 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
27
27
|
width: import("@sinclair/typebox").TNumber;
|
|
28
28
|
align: import("@sinclair/typebox").TUnsafe<string>;
|
|
29
29
|
isSort: import("@sinclair/typebox").TBoolean;
|
|
30
|
+
hidden: import("@sinclair/typebox").TBoolean;
|
|
30
31
|
isExport: import("@sinclair/typebox").TBoolean;
|
|
31
32
|
slotKey: import("@sinclair/typebox").TString;
|
|
32
33
|
schema: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
@@ -127,6 +128,7 @@ declare const config: {
|
|
|
127
128
|
width: import("@sinclair/typebox").TNumber;
|
|
128
129
|
align: import("@sinclair/typebox").TUnsafe<string>;
|
|
129
130
|
isSort: import("@sinclair/typebox").TBoolean;
|
|
131
|
+
hidden: import("@sinclair/typebox").TBoolean;
|
|
130
132
|
isExport: import("@sinclair/typebox").TBoolean;
|
|
131
133
|
slotKey: import("@sinclair/typebox").TString;
|
|
132
134
|
schema: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
@@ -224,6 +226,7 @@ declare const config: {
|
|
|
224
226
|
width: import("@sinclair/typebox").TNumber;
|
|
225
227
|
align: import("@sinclair/typebox").TUnsafe<string>;
|
|
226
228
|
isSort: import("@sinclair/typebox").TBoolean;
|
|
229
|
+
hidden: import("@sinclair/typebox").TBoolean;
|
|
227
230
|
isExport: import("@sinclair/typebox").TBoolean;
|
|
228
231
|
slotKey: import("@sinclair/typebox").TString;
|
|
229
232
|
schema: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
@@ -3,6 +3,10 @@ import { defineConfig, Tuple, Type } from '../type-utils';
|
|
|
3
3
|
import { WD_TABLE_PAGE_SIZE, WD_TABLE_SELECT_COLUMN, WD_TABLE_CUSTOM_FORMAT, WD_TABLE_CUSTOM_FORMAT_SINGLE, } from '../../enum';
|
|
4
4
|
import { genericErrorType } from '../type-utils/error';
|
|
5
5
|
import { previewOperationHeaderIcon } from '../utils/constants';
|
|
6
|
+
// 非关联关系字段,支持导出
|
|
7
|
+
// 旧关联关系导出字段本身是主列字段
|
|
8
|
+
// 新关联关系不能导出字段本身的,通过下钻@a.b的方式导出模型字段
|
|
9
|
+
// 对于新关联关系字段,仅支持多对一,一对一关联关系的模型字段导出,包含isRelated,表示关联关系模型字段
|
|
6
10
|
const expressionTemplate = `
|
|
7
11
|
{{#if (helper_utils '===' $self.attributes.dataSourceType 'expression')}}
|
|
8
12
|
[attributes]
|
|
@@ -491,9 +495,16 @@ const data = Type.Object({
|
|
|
491
495
|
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
496
|
},
|
|
493
497
|
{
|
|
494
|
-
type: 'value:
|
|
498
|
+
type: 'value:state',
|
|
495
499
|
target: 'dataForm.isExport',
|
|
496
500
|
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") }}',
|
|
501
|
+
state: {
|
|
502
|
+
disabled: false,
|
|
503
|
+
},
|
|
504
|
+
otherwise: {
|
|
505
|
+
disabled: true,
|
|
506
|
+
value: false,
|
|
507
|
+
},
|
|
497
508
|
},
|
|
498
509
|
],
|
|
499
510
|
}),
|
|
@@ -617,10 +628,25 @@ const data = Type.Object({
|
|
|
617
628
|
type: 'boolean',
|
|
618
629
|
default: 'false',
|
|
619
630
|
}),
|
|
631
|
+
hidden: Type.Boolean({
|
|
632
|
+
title: '隐藏列',
|
|
633
|
+
type: 'boolean',
|
|
634
|
+
default: false,
|
|
635
|
+
description: '是否隐藏该列',
|
|
636
|
+
'x-linkages': [
|
|
637
|
+
{
|
|
638
|
+
type: 'value:visible',
|
|
639
|
+
target: '*(dataForm.genre,dataForm.align,dataForm.customType,dataForm.widthType,dataForm.align)',
|
|
640
|
+
condition: '{{!Boolean($self.value)}}',
|
|
641
|
+
},
|
|
642
|
+
],
|
|
643
|
+
}),
|
|
620
644
|
isExport: Type.Boolean({
|
|
621
645
|
title: '允许导出',
|
|
622
646
|
type: 'boolean',
|
|
623
647
|
default: 'true',
|
|
648
|
+
'x-helper-text': '开启后支持导出该列数据,仅在数据源为数据模型时有效。对于关联关系类型字段,仅支持一对一或多对一关系的模型字段导出。',
|
|
649
|
+
description: '开启后支持导出该列数据,仅在数据源为数据模型时有效。对于关联关系类型字段,仅支持一对一或多对一关系的模型字段导出。',
|
|
624
650
|
}),
|
|
625
651
|
slotKey: Type.String({
|
|
626
652
|
title: '插槽名称后缀',
|
|
@@ -647,6 +673,7 @@ const data = Type.Object({
|
|
|
647
673
|
isSort: false,
|
|
648
674
|
isExport: true,
|
|
649
675
|
width: 120,
|
|
676
|
+
visible: true,
|
|
650
677
|
},
|
|
651
678
|
}), {
|
|
652
679
|
title: '列管理',
|
package/dist/configs/index.d.ts
CHANGED
|
@@ -11428,6 +11428,7 @@ export declare const components: {
|
|
|
11428
11428
|
width: import("@sinclair/typebox").TNumber;
|
|
11429
11429
|
align: import("@sinclair/typebox").TUnsafe<string>;
|
|
11430
11430
|
isSort: import("@sinclair/typebox").TBoolean;
|
|
11431
|
+
hidden: import("@sinclair/typebox").TBoolean;
|
|
11431
11432
|
isExport: import("@sinclair/typebox").TBoolean;
|
|
11432
11433
|
slotKey: import("@sinclair/typebox").TString;
|
|
11433
11434
|
schema: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
@@ -11525,6 +11526,7 @@ export declare const components: {
|
|
|
11525
11526
|
width: import("@sinclair/typebox").TNumber;
|
|
11526
11527
|
align: import("@sinclair/typebox").TUnsafe<string>;
|
|
11527
11528
|
isSort: import("@sinclair/typebox").TBoolean;
|
|
11529
|
+
hidden: import("@sinclair/typebox").TBoolean;
|
|
11528
11530
|
isExport: import("@sinclair/typebox").TBoolean;
|
|
11529
11531
|
slotKey: import("@sinclair/typebox").TString;
|
|
11530
11532
|
schema: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
@@ -30886,6 +30888,7 @@ declare const _default: {
|
|
|
30886
30888
|
width: import("@sinclair/typebox").TNumber;
|
|
30887
30889
|
align: import("@sinclair/typebox").TUnsafe<string>;
|
|
30888
30890
|
isSort: import("@sinclair/typebox").TBoolean;
|
|
30891
|
+
hidden: import("@sinclair/typebox").TBoolean;
|
|
30889
30892
|
isExport: import("@sinclair/typebox").TBoolean;
|
|
30890
30893
|
slotKey: import("@sinclair/typebox").TString;
|
|
30891
30894
|
schema: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
@@ -30983,6 +30986,7 @@ declare const _default: {
|
|
|
30983
30986
|
width: import("@sinclair/typebox").TNumber;
|
|
30984
30987
|
align: import("@sinclair/typebox").TUnsafe<string>;
|
|
30985
30988
|
isSort: import("@sinclair/typebox").TBoolean;
|
|
30989
|
+
hidden: import("@sinclair/typebox").TBoolean;
|
|
30986
30990
|
isExport: import("@sinclair/typebox").TBoolean;
|
|
30987
30991
|
slotKey: import("@sinclair/typebox").TString;
|
|
30988
30992
|
schema: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
package/dist/enum/index.js
CHANGED
|
@@ -1204,6 +1204,10 @@ export const WD_TABLE_CUSTOM_FORMAT_SINGLE = [
|
|
|
1204
1204
|
{ label: '图片', value: 'image' },
|
|
1205
1205
|
{ label: '视频', value: 'video' },
|
|
1206
1206
|
{ label: '文件', value: 'file' },
|
|
1207
|
+
{ label: '日期', value: 'date' },
|
|
1208
|
+
{ label: '时间', value: 'time' },
|
|
1209
|
+
{ label: '日期时间', value: 'datetime' },
|
|
1210
|
+
{ label: '布尔', value: 'boolean' },
|
|
1207
1211
|
];
|
|
1208
1212
|
export const WD_TABLE_CUSTOM_FORMAT = [
|
|
1209
1213
|
{ label: '自动匹配', value: '' },
|