@cloudbase/weda-ui 3.21.0 → 3.21.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/wd-cascader.d.ts +7 -7
- package/dist/configs/components/wd-cascader.js +6 -7
- package/dist/configs/components/wd-form.d.ts +7 -0
- package/dist/configs/components/wd-form.js +12 -6
- package/dist/configs/components/wd-table.js +1 -1
- package/dist/configs/index.d.ts +28 -14
- package/dist/style/weda-ui.min.css +3 -3
- package/dist/web/components/richText/index.css +238 -3
- package/dist/web/components/wd-form/index.js +17 -13
- package/package.json +1 -1
|
@@ -111,6 +111,13 @@ declare const config: {
|
|
|
111
111
|
description: string;
|
|
112
112
|
}[];
|
|
113
113
|
readonly methods: readonly [{
|
|
114
|
+
readonly name: "setValue";
|
|
115
|
+
readonly label: "设置值";
|
|
116
|
+
readonly params: import("@sinclair/typebox").TObject<{
|
|
117
|
+
value: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
118
|
+
}>;
|
|
119
|
+
readonly description: "通过 $w.cascader1.setValue(['bj','cy']) 设置组件值";
|
|
120
|
+
}, {
|
|
114
121
|
name: string;
|
|
115
122
|
label: string;
|
|
116
123
|
params: {
|
|
@@ -158,13 +165,6 @@ declare const config: {
|
|
|
158
165
|
name: string;
|
|
159
166
|
label: string;
|
|
160
167
|
description: string;
|
|
161
|
-
}, {
|
|
162
|
-
readonly name: "setValue";
|
|
163
|
-
readonly label: "设置值";
|
|
164
|
-
readonly params: import("@sinclair/typebox").TObject<{
|
|
165
|
-
value: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
166
|
-
}>;
|
|
167
|
-
readonly description: "通过 $w.cascader1.setValue(['bj','cy']) 设置组件值";
|
|
168
168
|
}];
|
|
169
169
|
readonly events: readonly [{
|
|
170
170
|
name: string;
|
|
@@ -139,13 +139,6 @@ const config = defineConfig({
|
|
|
139
139
|
properties,
|
|
140
140
|
classes,
|
|
141
141
|
methods: [
|
|
142
|
-
// FORM_ITEM_METHODS.setValue,
|
|
143
|
-
FORM_ITEM_METHODS.setVisible,
|
|
144
|
-
FORM_ITEM_METHODS.setDisabled,
|
|
145
|
-
FORM_ITEM_METHODS.clearValue,
|
|
146
|
-
FORM_ITEM_METHODS.setReadOnly,
|
|
147
|
-
FORM_ITEM_METHODS.handleValidate,
|
|
148
|
-
FORM_ITEM_METHODS.clearValidate,
|
|
149
142
|
{
|
|
150
143
|
name: 'setValue',
|
|
151
144
|
label: '设置值',
|
|
@@ -157,6 +150,12 @@ const config = defineConfig({
|
|
|
157
150
|
}),
|
|
158
151
|
description: "通过 $w.cascader1.setValue(['bj','cy']) 设置组件值",
|
|
159
152
|
},
|
|
153
|
+
FORM_ITEM_METHODS.setVisible,
|
|
154
|
+
FORM_ITEM_METHODS.setDisabled,
|
|
155
|
+
FORM_ITEM_METHODS.clearValue,
|
|
156
|
+
FORM_ITEM_METHODS.setReadOnly,
|
|
157
|
+
FORM_ITEM_METHODS.handleValidate,
|
|
158
|
+
FORM_ITEM_METHODS.clearValidate,
|
|
160
159
|
],
|
|
161
160
|
events: [
|
|
162
161
|
FORM_ITEM_EVENTS.change,
|
|
@@ -143,6 +143,13 @@ declare const _default: {
|
|
|
143
143
|
readonly description: "可以为小程序端的表单编写样式";
|
|
144
144
|
}];
|
|
145
145
|
readonly methods: readonly [{
|
|
146
|
+
readonly name: "setValue";
|
|
147
|
+
readonly label: "设置值";
|
|
148
|
+
readonly params: import("@sinclair/typebox").TObject<{
|
|
149
|
+
value: import("@sinclair/typebox").TObject<{}>;
|
|
150
|
+
}>;
|
|
151
|
+
readonly description: "通过 $w.form1.setValue({a:'111'}) 设置组件值";
|
|
152
|
+
}, {
|
|
146
153
|
readonly name: "submit";
|
|
147
154
|
readonly label: "提交";
|
|
148
155
|
readonly description: "通过 $w.<id>.submit() 触发表单提交";
|
|
@@ -570,12 +570,6 @@ const properties = Type.Composite([
|
|
|
570
570
|
}),
|
|
571
571
|
}),
|
|
572
572
|
]);
|
|
573
|
-
// const templateExpr = `
|
|
574
|
-
// {{#if (helper_utils '===' $self.attributes.datasourceType 'expression')}}
|
|
575
|
-
// [attributes]
|
|
576
|
-
// ':value': "{}"
|
|
577
|
-
// {{/if}}
|
|
578
|
-
// `;
|
|
579
573
|
export default defineConfig({
|
|
580
574
|
$schema: 'https://comp-public-replace-1303824488-cos.weda.tencent.com/schema/lcds_component.json',
|
|
581
575
|
data,
|
|
@@ -610,6 +604,18 @@ export default defineConfig({
|
|
|
610
604
|
},
|
|
611
605
|
],
|
|
612
606
|
methods: [
|
|
607
|
+
{
|
|
608
|
+
name: 'setValue',
|
|
609
|
+
label: '设置值',
|
|
610
|
+
params: Type.Object({
|
|
611
|
+
value: Type.Object({}, {
|
|
612
|
+
title: '值',
|
|
613
|
+
description: '表单的值',
|
|
614
|
+
default: {},
|
|
615
|
+
}),
|
|
616
|
+
}),
|
|
617
|
+
description: "通过 $w.form1.setValue({a:'111'}) 设置组件值",
|
|
618
|
+
},
|
|
613
619
|
{
|
|
614
620
|
name: 'submit',
|
|
615
621
|
label: '提交',
|
|
@@ -1398,7 +1398,7 @@ const data = Type.Object({
|
|
|
1398
1398
|
'x-slot-auto': {
|
|
1399
1399
|
iterable: "{{ $form.values.enableBottomTipSlot ?[{key:'_bottom__slot',title:'表格底部内容插槽'}]:[] }}",
|
|
1400
1400
|
generator: '{{ {key:$item.key, title: ($item.title) } }}',
|
|
1401
|
-
reservedSlots: "{{$form.values.columnSets.filter(item => item.genre === 'slot'&& (item.slotKey||item.key)).map(item => ('cell_'+item.slotKey||item.key)).concat('cell__custom__option','globalButton') }}",
|
|
1401
|
+
reservedSlots: "{{$form.values.columnSets.filter(item => item.genre === 'slot'&& (item.slotKey||item.key)).map(item => ('cell_'+item.slotKey||item.key)).concat('cell__custom__option','globalButton','__innerSlot') }}",
|
|
1402
1402
|
},
|
|
1403
1403
|
})),
|
|
1404
1404
|
enablePagination: Type.Optional(Type.Boolean({
|
package/dist/configs/index.d.ts
CHANGED
|
@@ -933,6 +933,13 @@ export declare const components: {
|
|
|
933
933
|
description: string;
|
|
934
934
|
}[];
|
|
935
935
|
readonly methods: readonly [{
|
|
936
|
+
readonly name: "setValue";
|
|
937
|
+
readonly label: "设置值";
|
|
938
|
+
readonly params: import("@sinclair/typebox").TObject<{
|
|
939
|
+
value: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
940
|
+
}>;
|
|
941
|
+
readonly description: "通过 $w.cascader1.setValue(['bj','cy']) 设置组件值";
|
|
942
|
+
}, {
|
|
936
943
|
name: string;
|
|
937
944
|
label: string;
|
|
938
945
|
params: {
|
|
@@ -980,13 +987,6 @@ export declare const components: {
|
|
|
980
987
|
name: string;
|
|
981
988
|
label: string;
|
|
982
989
|
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']) 设置组件值";
|
|
990
990
|
}];
|
|
991
991
|
readonly events: readonly [{
|
|
992
992
|
name: string;
|
|
@@ -4142,6 +4142,13 @@ export declare const components: {
|
|
|
4142
4142
|
readonly description: "可以为小程序端的表单编写样式";
|
|
4143
4143
|
}];
|
|
4144
4144
|
readonly methods: readonly [{
|
|
4145
|
+
readonly name: "setValue";
|
|
4146
|
+
readonly label: "设置值";
|
|
4147
|
+
readonly params: import("@sinclair/typebox").TObject<{
|
|
4148
|
+
value: import("@sinclair/typebox").TObject<{}>;
|
|
4149
|
+
}>;
|
|
4150
|
+
readonly description: "通过 $w.form1.setValue({a:'111'}) 设置组件值";
|
|
4151
|
+
}, {
|
|
4145
4152
|
readonly name: "submit";
|
|
4146
4153
|
readonly label: "提交";
|
|
4147
4154
|
readonly description: "通过 $w.<id>.submit() 触发表单提交";
|
|
@@ -20384,6 +20391,13 @@ declare const _default: {
|
|
|
20384
20391
|
description: string;
|
|
20385
20392
|
}[];
|
|
20386
20393
|
readonly methods: readonly [{
|
|
20394
|
+
readonly name: "setValue";
|
|
20395
|
+
readonly label: "设置值";
|
|
20396
|
+
readonly params: import("@sinclair/typebox").TObject<{
|
|
20397
|
+
value: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
20398
|
+
}>;
|
|
20399
|
+
readonly description: "通过 $w.cascader1.setValue(['bj','cy']) 设置组件值";
|
|
20400
|
+
}, {
|
|
20387
20401
|
name: string;
|
|
20388
20402
|
label: string;
|
|
20389
20403
|
params: {
|
|
@@ -20431,13 +20445,6 @@ declare const _default: {
|
|
|
20431
20445
|
name: string;
|
|
20432
20446
|
label: string;
|
|
20433
20447
|
description: string;
|
|
20434
|
-
}, {
|
|
20435
|
-
readonly name: "setValue";
|
|
20436
|
-
readonly label: "设置值";
|
|
20437
|
-
readonly params: import("@sinclair/typebox").TObject<{
|
|
20438
|
-
value: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
20439
|
-
}>;
|
|
20440
|
-
readonly description: "通过 $w.cascader1.setValue(['bj','cy']) 设置组件值";
|
|
20441
20448
|
}];
|
|
20442
20449
|
readonly events: readonly [{
|
|
20443
20450
|
name: string;
|
|
@@ -23593,6 +23600,13 @@ declare const _default: {
|
|
|
23593
23600
|
readonly description: "可以为小程序端的表单编写样式";
|
|
23594
23601
|
}];
|
|
23595
23602
|
readonly methods: readonly [{
|
|
23603
|
+
readonly name: "setValue";
|
|
23604
|
+
readonly label: "设置值";
|
|
23605
|
+
readonly params: import("@sinclair/typebox").TObject<{
|
|
23606
|
+
value: import("@sinclair/typebox").TObject<{}>;
|
|
23607
|
+
}>;
|
|
23608
|
+
readonly description: "通过 $w.form1.setValue({a:'111'}) 设置组件值";
|
|
23609
|
+
}, {
|
|
23596
23610
|
readonly name: "submit";
|
|
23597
23611
|
readonly label: "提交";
|
|
23598
23612
|
readonly description: "通过 $w.<id>.submit() 触发表单提交";
|