@cloudbase/weda-ui 3.22.5 → 3.23.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/wd-table.d.ts +1 -0
- package/dist/configs/components/wd-table.js +14 -1
- package/dist/configs/index.d.ts +2 -0
- package/dist/style/index.css +27 -0
- package/dist/style/index.scss +1 -1
- package/dist/style/weda-ui.min.css +2 -2
- package/dist/web/components/form/select/index.js +14 -25
- package/dist/web/components/form-input-hooks/index.d.ts +0 -1
- package/dist/web/components/form-input-hooks/index.js +6 -13
- package/dist/web/components/wd-form/contexts/form-field-context.d.ts +6 -2
- package/dist/web/components/wd-form/contexts/form-field-context.js +18 -2
- package/dist/web/components/wd-form/contexts/form-field-obj-context.d.ts +2 -2
- package/dist/web/components/wd-form/contexts/form-field-obj-context.js +2 -2
- package/dist/web/components/wd-form/hoc/form-container-decorator.d.ts +11 -0
- package/dist/web/components/wd-form/hoc/form-container-decorator.js +61 -0
- package/dist/web/components/wd-form/index.d.ts +4 -49
- package/dist/web/components/wd-form/index.js +53 -70
- package/dist/web/components/wd-form-obj/base-form-obj.d.ts +5 -1
- package/dist/web/components/wd-form-obj/base-form-obj.js +19 -38
- package/dist/web/components/wd-input/wd-input.d.ts +2 -0
- package/dist/web/components/wd-input/wd-input.js +70 -18
- package/dist/web/components/wd-table/components/FieldRender/index.d.ts +9 -1
- package/dist/web/components/wd-table/components/FieldRender/index.js +33 -4
- package/dist/web/components/wd-table/components/FilterFieldsPanel/Fields.d.ts +3 -1
- package/dist/web/components/wd-table/components/FilterFieldsPanel/Fields.js +7 -3
- package/dist/web/components/wd-table/components/FilterFieldsPanel/FilterFieldItem.js +4 -1
- package/dist/web/components/wd-table/components/FilterFieldsPanel/filterFieldsGenerate.d.ts +6 -15
- package/dist/web/components/wd-table/components/FilterFieldsPanel/filterFieldsGenerate.js +47 -16
- package/dist/web/components/wd-table/components/FilterFieldsPanel/index.js +15 -5
- package/dist/web/components/wd-table/utils/index.d.ts +5 -2
- package/dist/web/components/wd-table/utils/index.js +12 -1
- package/dist/web/components/wd-table/wd-table.d.ts +5 -19
- package/dist/web/components/wd-table/wd-table.js +22 -2
- package/dist/web/utils/hooks/useFormLegacy.js +5 -12
- package/package.json +1 -1
|
@@ -200,6 +200,7 @@ declare const config: {
|
|
|
200
200
|
__innerSlot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<import("react").ReactNode>>;
|
|
201
201
|
}>;
|
|
202
202
|
readonly properties: import("@sinclair/typebox").TObject<{
|
|
203
|
+
value: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TAny>;
|
|
203
204
|
error: import("@sinclair/typebox").TObject<{
|
|
204
205
|
requestid: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
205
206
|
message: import("@sinclair/typebox").TString;
|
|
@@ -1136,8 +1136,9 @@ const data = Type.Object({
|
|
|
1136
1136
|
title: '筛选器',
|
|
1137
1137
|
'x-component': 'mutilp-data-source-field-select',
|
|
1138
1138
|
'x-component-props': {
|
|
1139
|
+
enableFilterConfig: true,
|
|
1139
1140
|
isWdTable: true,
|
|
1140
|
-
'x-filter': "!(this?.type === 'object' && this?.format === '')&&!(this?.type === 'array' && this?.format === '')&&!(this.name === '_departmentList' && this.format === '')&& !['x-markdown','x-location','x-music','x-json','x-video','x-file','x-image','x-rtf','function'].includes(this.format) ",
|
|
1141
|
+
'x-filter': "!(this?.type === 'object' && this?.format === '')&&!(this?.type === 'array' && this?.format === '')&&!(this.name === '_departmentList' && this.format === '')&& !['x-markdown','x-location','x-music','x-json','x-video','x-file','x-image','x-rtf','function'].includes(this.format)||(this?.type === 'array' && this?.items?.type === 'string'&& !['x-markdown','x-location','x-music','x-json','x-video','x-file','x-image','x-rtf','function'].includes(this?.items?.format)) ",
|
|
1141
1142
|
},
|
|
1142
1143
|
'x-helper-text': '通过开启fx、绑定表达式,可配置默认筛选值、默认筛选方式等功能 [查看示例](https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/database/WdTable#%E8%87%AA%E5%AE%9A%E4%B9%89%E9%85%8D%E7%BD%AE%E7%AD%9B%E9%80%89%E5%99%A8)',
|
|
1143
1144
|
'x-index': 70,
|
|
@@ -1501,6 +1502,14 @@ const data = Type.Object({
|
|
|
1501
1502
|
title: '列序号',
|
|
1502
1503
|
type: 'number',
|
|
1503
1504
|
},
|
|
1505
|
+
rowValue: {
|
|
1506
|
+
title: '表格行数据实时值',
|
|
1507
|
+
type: 'object',
|
|
1508
|
+
},
|
|
1509
|
+
value: {
|
|
1510
|
+
title: '当前页表格数据实时值',
|
|
1511
|
+
type: 'array',
|
|
1512
|
+
},
|
|
1504
1513
|
},
|
|
1505
1514
|
'x-group': '操作配置',
|
|
1506
1515
|
})),
|
|
@@ -1611,6 +1620,10 @@ const properties = Type.Composite([
|
|
|
1611
1620
|
title: '筛选面板的配置',
|
|
1612
1621
|
description: '筛选面板的配置',
|
|
1613
1622
|
}),
|
|
1623
|
+
value: Type.Array(Type.Any(), {
|
|
1624
|
+
title: '表格行数据实时值',
|
|
1625
|
+
description: '表格行数据的实时值,用于获取自定义插槽内表单组件的值。',
|
|
1626
|
+
}),
|
|
1614
1627
|
}),
|
|
1615
1628
|
]);
|
|
1616
1629
|
// export default
|
package/dist/configs/index.d.ts
CHANGED
|
@@ -11500,6 +11500,7 @@ export declare const components: {
|
|
|
11500
11500
|
__innerSlot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<import("react").ReactNode>>;
|
|
11501
11501
|
}>;
|
|
11502
11502
|
readonly properties: import("@sinclair/typebox").TObject<{
|
|
11503
|
+
value: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TAny>;
|
|
11503
11504
|
error: import("@sinclair/typebox").TObject<{
|
|
11504
11505
|
requestid: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
11505
11506
|
message: import("@sinclair/typebox").TString;
|
|
@@ -30976,6 +30977,7 @@ declare const _default: {
|
|
|
30976
30977
|
__innerSlot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<import("react").ReactNode>>;
|
|
30977
30978
|
}>;
|
|
30978
30979
|
readonly properties: import("@sinclair/typebox").TObject<{
|
|
30980
|
+
value: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TAny>;
|
|
30979
30981
|
error: import("@sinclair/typebox").TObject<{
|
|
30980
30982
|
requestid: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
30981
30983
|
message: import("@sinclair/typebox").TString;
|
package/dist/style/index.css
CHANGED
|
@@ -5042,6 +5042,33 @@ textarea {
|
|
|
5042
5042
|
margin-left: 0.25rem;
|
|
5043
5043
|
}
|
|
5044
5044
|
|
|
5045
|
+
.wd-form-tag-input-wrap.wd-form-input-wrap.size-height-md {
|
|
5046
|
+
position: relative;
|
|
5047
|
+
height: auto;
|
|
5048
|
+
min-height: var(--wd-form-item-height-md);
|
|
5049
|
+
}
|
|
5050
|
+
.wd-form-tag-input-wrap.wd-form-input-wrap.size-height-md .wedatea2td-tag-group {
|
|
5051
|
+
font-size: inherit;
|
|
5052
|
+
width: calc(100% - 1rem);
|
|
5053
|
+
display: flex;
|
|
5054
|
+
align-items: center;
|
|
5055
|
+
flex-wrap: wrap;
|
|
5056
|
+
padding: 0.25rem 0;
|
|
5057
|
+
}
|
|
5058
|
+
.wd-form-tag-input-wrap.wd-form-input-wrap.size-height-md .wedatea2td-tag-group .wedatea2td-tag--edit {
|
|
5059
|
+
display: inline-flex;
|
|
5060
|
+
}
|
|
5061
|
+
.wd-form-tag-input-wrap.wd-form-input-wrap.size-height-md .wedatea2td-tag-group input {
|
|
5062
|
+
flex-grow: 1;
|
|
5063
|
+
width: min-content;
|
|
5064
|
+
margin-top: 0.25rem;
|
|
5065
|
+
margin-right: 0.25rem;
|
|
5066
|
+
}
|
|
5067
|
+
.wd-form-tag-input-wrap.wd-form-input-wrap.size-height-md .wd-form-input-wrap__after {
|
|
5068
|
+
position: absolute;
|
|
5069
|
+
right: 0.25rem;
|
|
5070
|
+
}
|
|
5071
|
+
|
|
5045
5072
|
.wd-form-input-wrap.size-font-sm {
|
|
5046
5073
|
font: var(--wd-typography-body-sm);
|
|
5047
5074
|
}
|