@cloudbase/weda-ui 3.22.2 → 3.23.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-tabbar.d.ts +16 -0
- package/dist/configs/components/wd-tabbar.js +6 -0
- package/dist/configs/components/wd-table.d.ts +1 -0
- package/dist/configs/components/wd-table.js +14 -1
- package/dist/configs/components/wd-upload-image.js +1 -1
- package/dist/configs/index.d.ts +34 -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-input-hooks/index.d.ts +0 -1
- package/dist/web/components/form-input-hooks/index.js +8 -14
- package/dist/web/components/richText/index.js +1 -1
- 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 +61 -72
- 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-input-number/wd-input-number.js +15 -15
- package/dist/web/components/wd-tabbar/wd-tabbar.js +4 -6
- 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/components/wd-tree/utils.js +1 -1
- package/dist/web/utils/hooks/useFormLegacy.js +5 -12
- package/package.json +5 -5
|
@@ -183,6 +183,22 @@ declare const config: {
|
|
|
183
183
|
readonly events: readonly [{
|
|
184
184
|
readonly name: "tap";
|
|
185
185
|
readonly title: "点击";
|
|
186
|
+
readonly detail: import("@sinclair/typebox").TObject<{
|
|
187
|
+
tab: import("@sinclair/typebox").TObject<{
|
|
188
|
+
title: import("@sinclair/typebox").TString;
|
|
189
|
+
key: import("@sinclair/typebox").TString;
|
|
190
|
+
iconUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
191
|
+
iconPath: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
192
|
+
selectedIconPath: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
193
|
+
disabled: import("@sinclair/typebox").TBoolean;
|
|
194
|
+
visible: import("@sinclair/typebox").TBoolean;
|
|
195
|
+
type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
196
|
+
path: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
197
|
+
linkUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
198
|
+
linkTargetBlank: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
199
|
+
subPackageName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
200
|
+
}>;
|
|
201
|
+
}>;
|
|
186
202
|
}, {
|
|
187
203
|
readonly name: "change";
|
|
188
204
|
readonly title: "选项卡切换";
|
|
@@ -107,6 +107,7 @@ const properties = Type.Object({
|
|
|
107
107
|
default: [],
|
|
108
108
|
}),
|
|
109
109
|
selectedTab: Type.Object(Tab, {
|
|
110
|
+
title: '选中标签',
|
|
110
111
|
description: '当前选中标签',
|
|
111
112
|
}),
|
|
112
113
|
});
|
|
@@ -206,6 +207,11 @@ const config = defineConfig({
|
|
|
206
207
|
{
|
|
207
208
|
name: 'tap',
|
|
208
209
|
title: '点击',
|
|
210
|
+
detail: Type.Object({
|
|
211
|
+
tab: Type.Object(Tab, {
|
|
212
|
+
description: '当前点击的标签',
|
|
213
|
+
}),
|
|
214
|
+
}),
|
|
209
215
|
},
|
|
210
216
|
{
|
|
211
217
|
name: 'change',
|
|
@@ -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;
|
|
@@ -18916,6 +18917,22 @@ export declare const components: {
|
|
|
18916
18917
|
readonly events: readonly [{
|
|
18917
18918
|
readonly name: "tap";
|
|
18918
18919
|
readonly title: "点击";
|
|
18920
|
+
readonly detail: import("@sinclair/typebox").TObject<{
|
|
18921
|
+
tab: import("@sinclair/typebox").TObject<{
|
|
18922
|
+
title: import("@sinclair/typebox").TString;
|
|
18923
|
+
key: import("@sinclair/typebox").TString;
|
|
18924
|
+
iconUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
18925
|
+
iconPath: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
18926
|
+
selectedIconPath: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
18927
|
+
disabled: import("@sinclair/typebox").TBoolean;
|
|
18928
|
+
visible: import("@sinclair/typebox").TBoolean;
|
|
18929
|
+
type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
18930
|
+
path: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
18931
|
+
linkUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
18932
|
+
linkTargetBlank: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
18933
|
+
subPackageName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
18934
|
+
}>;
|
|
18935
|
+
}>;
|
|
18919
18936
|
}, {
|
|
18920
18937
|
readonly name: "change";
|
|
18921
18938
|
readonly title: "选项卡切换";
|
|
@@ -30960,6 +30977,7 @@ declare const _default: {
|
|
|
30960
30977
|
__innerSlot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<import("react").ReactNode>>;
|
|
30961
30978
|
}>;
|
|
30962
30979
|
readonly properties: import("@sinclair/typebox").TObject<{
|
|
30980
|
+
value: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TAny>;
|
|
30963
30981
|
error: import("@sinclair/typebox").TObject<{
|
|
30964
30982
|
requestid: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
30965
30983
|
message: import("@sinclair/typebox").TString;
|
|
@@ -38376,6 +38394,22 @@ declare const _default: {
|
|
|
38376
38394
|
readonly events: readonly [{
|
|
38377
38395
|
readonly name: "tap";
|
|
38378
38396
|
readonly title: "点击";
|
|
38397
|
+
readonly detail: import("@sinclair/typebox").TObject<{
|
|
38398
|
+
tab: import("@sinclair/typebox").TObject<{
|
|
38399
|
+
title: import("@sinclair/typebox").TString;
|
|
38400
|
+
key: import("@sinclair/typebox").TString;
|
|
38401
|
+
iconUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
38402
|
+
iconPath: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
38403
|
+
selectedIconPath: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
38404
|
+
disabled: import("@sinclair/typebox").TBoolean;
|
|
38405
|
+
visible: import("@sinclair/typebox").TBoolean;
|
|
38406
|
+
type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
38407
|
+
path: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
38408
|
+
linkUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
38409
|
+
linkTargetBlank: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
38410
|
+
subPackageName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
38411
|
+
}>;
|
|
38412
|
+
}>;
|
|
38379
38413
|
}, {
|
|
38380
38414
|
readonly name: "change";
|
|
38381
38415
|
readonly title: "选项卡切换";
|
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
|
}
|