@cloudbase/weda-ui 3.13.0 → 3.13.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.
Files changed (27) hide show
  1. package/dist/configs/components/wd-select-multiple.d.ts +14 -0
  2. package/dist/configs/components/wd-select-multiple.js +18 -1
  3. package/dist/configs/components/wd-select.d.ts +9 -4
  4. package/dist/configs/components/wd-select.js +11 -2
  5. package/dist/configs/components/wd-store-product.d.ts +1 -1
  6. package/dist/configs/components/wd-store-product.js +1 -1
  7. package/dist/configs/components/wd-table.d.ts +2 -0
  8. package/dist/configs/components/wd-table.js +7 -0
  9. package/dist/configs/index.d.ts +46 -10
  10. package/dist/configs/type-utils/type-form.d.ts +2 -0
  11. package/dist/configs/type-utils/type-form.js +25 -7
  12. package/dist/configs/type-utils/x-runtime-default.d.ts +1 -0
  13. package/dist/configs/type-utils/x-runtime-default.js +1 -0
  14. package/dist/style/weda-ui.min.css +1 -1
  15. package/dist/web/components/wd-form-item/wd-form-item-read-only.d.ts +1 -0
  16. package/dist/web/components/wd-form-item/wd-form-item-read-only.js +2 -2
  17. package/dist/web/components/wd-select/relationSelect/relationSelect.js +4 -1
  18. package/dist/web/components/wd-select/select/selectUI.js +11 -7
  19. package/dist/web/components/wd-select/wd-select.js +2 -2
  20. package/dist/web/components/wd-select-multiple/wd-select-multiple.js +2 -2
  21. package/dist/web/components/wd-store-home/index.d.ts +3 -3
  22. package/dist/web/components/wd-store-home/index.js +8 -2
  23. package/dist/web/components/wd-store-product/index.d.ts +3 -3
  24. package/dist/web/components/wd-store-product/index.js +8 -2
  25. package/dist/web/components/wd-table/hooks/useChooseList.js +2 -1
  26. package/dist/web/components/wd-table/wd-table.js +6 -3
  27. package/package.json +1 -1
@@ -4,6 +4,7 @@ declare const data: import("@sinclair/typebox").TObject<{
4
4
  enableRelationalSetting: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
5
5
  enableRelationalRefresh: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
6
6
  enableRelationOptionJump: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
7
+ enableRelationTag: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
7
8
  enableAddRelationButton: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
8
9
  addRelationButtonText: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
9
10
  suffixType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
@@ -59,6 +60,7 @@ declare const config: {
59
60
  enableRelationalSetting: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
60
61
  enableRelationalRefresh: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
61
62
  enableRelationOptionJump: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
63
+ enableRelationTag: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
62
64
  enableAddRelationButton: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
63
65
  addRelationButtonText: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
64
66
  suffixType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
@@ -202,6 +204,18 @@ declare const config: {
202
204
  readonly name: string;
203
205
  readonly title: string;
204
206
  readonly description: string;
207
+ }, {
208
+ readonly name: "change";
209
+ readonly title: "值改变";
210
+ readonly detail: import("@sinclair/typebox").TObject<{
211
+ value: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString> & {
212
+ title: string;
213
+ };
214
+ context: import("@sinclair/typebox").TObject<{
215
+ options: import("@sinclair/typebox").TObject<{}>;
216
+ }>;
217
+ }>;
218
+ readonly description: "用户修改组件值时触发";
205
219
  }, {
206
220
  readonly title: "输入搜索内容";
207
221
  readonly name: "search";
@@ -47,6 +47,7 @@ const data = Type.Partial(Type.Object({
47
47
  enableRelationalSetting: FORM_ITEM_DATA.enableRelationalSetting,
48
48
  enableRelationalRefresh: FORM_ITEM_DATA.enableRelationalRefresh,
49
49
  enableRelationOptionJump: FORM_ITEM_DATA.enableRelationOptionJump,
50
+ enableRelationTag: FORM_ITEM_DATA.enableRelationTag,
50
51
  enableAddRelationButton: FORM_ITEM_DATA.enableAddRelationButton,
51
52
  addRelationButtonText: FORM_ITEM_DATA.addRelationButtonText,
52
53
  suffixType: FORM_ITEM_DATA._suffixTypeInSelect,
@@ -66,9 +67,14 @@ const data = Type.Partial(Type.Object({
66
67
  },
67
68
  {
68
69
  type: 'value:visible',
69
- target: '*(selectFieldType,tipBlock,where,enableRelationalSetting,enableRelationalRefresh,enableAddRelationButton)',
70
+ target: '*(selectFieldType,tipBlock,where,enableRelationalSetting,enableRelationalRefresh,enableAddRelationButton,enableRelationOptionJump)',
70
71
  condition: "{{$self.value=='many-many'||$self.value=='one-many'}}",
71
72
  },
73
+ {
74
+ type: 'value:visible',
75
+ target: '*(enableRelationTag)',
76
+ condition: "{{$self.value=='x-enum'||$self.value=='many-many'||$self.value=='one-many'}}",
77
+ },
72
78
  ],
73
79
  'x-category': X_CATEGORY.COMMON,
74
80
  'x-index': 43,
@@ -140,6 +146,17 @@ const config = defineConfig({
140
146
  ...FORM_ITEM_EVENTS.change,
141
147
  detail: paramValueType,
142
148
  },
149
+ {
150
+ name: 'change',
151
+ title: '值改变',
152
+ detail: Type.Object({
153
+ value: Object.assign({}, FORM_ITEM_DATA._valueInSelectMultiple, {
154
+ title: '值',
155
+ }),
156
+ context: Type.Object({ options: Type.Object({}, { description: '选中值' }) }, { description: '此次变更的更多上下文信息,其中 context.options 可以获得选中项的值' }),
157
+ }),
158
+ description: '用户修改组件值时触发',
159
+ },
143
160
  {
144
161
  title: '输入搜索内容',
145
162
  name: 'search',
@@ -8,6 +8,7 @@ declare const data: import("@sinclair/typebox").TObject<{
8
8
  enableAddRelationButton: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
9
9
  addRelationButtonText: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
10
10
  enableRelationOptionJump: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
11
+ enableRelationTag: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
11
12
  suffixType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
12
13
  status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
13
14
  required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
@@ -65,6 +66,7 @@ declare const config: {
65
66
  enableAddRelationButton: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
66
67
  addRelationButtonText: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
67
68
  enableRelationOptionJump: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
69
+ enableRelationTag: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
68
70
  suffixType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
69
71
  status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
70
72
  required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
@@ -192,12 +194,15 @@ declare const config: {
192
194
  description: string;
193
195
  }];
194
196
  readonly events: readonly [{
195
- name: string;
196
- title: string;
197
- detail: import("@sinclair/typebox").TObject<{
197
+ readonly name: "change";
198
+ readonly title: "值改变";
199
+ readonly detail: import("@sinclair/typebox").TObject<{
198
200
  value: import("@sinclair/typebox").TString;
201
+ context: import("@sinclair/typebox").TObject<{
202
+ option: import("@sinclair/typebox").TObject<{}>;
203
+ }>;
199
204
  }>;
200
- description: string;
205
+ readonly description: "用户修改组件值时触发";
201
206
  }, {
202
207
  readonly title: "输入搜索内容";
203
208
  readonly name: "search";
@@ -1,5 +1,5 @@
1
1
  import { defineConfig, Type } from '../type-utils';
2
- import { FORM_ITEM_DATA, FORM_ITEM_EVENTS, FORM_ITEM_METHODS, FORM_ITEM_META, ItemData, pickWithXCategory, X_CATEGORY, getFormItemDataTitle, } from '../type-utils/type-form';
2
+ import { FORM_ITEM_DATA, FORM_ITEM_METHODS, FORM_ITEM_META, ItemData, pickWithXCategory, X_CATEGORY, getFormItemDataTitle, } from '../type-utils/type-form';
3
3
  import { getClasses } from '../type-utils/classes';
4
4
  import { templateInitNameWithId } from './common/init-name-with-id';
5
5
  const SELECT = pickWithXCategory(FORM_ITEM_DATA, [
@@ -54,6 +54,7 @@ const data = Type.Partial(Type.Object({
54
54
  enableAddRelationButton: FORM_ITEM_DATA.enableAddRelationButton,
55
55
  addRelationButtonText: FORM_ITEM_DATA.addRelationButtonText,
56
56
  enableRelationOptionJump: FORM_ITEM_DATA.enableRelationOptionJump,
57
+ enableRelationTag: FORM_ITEM_DATA.enableRelationTag,
57
58
  suffixType: FORM_ITEM_DATA._suffixTypeInSelect,
58
59
  // 状态校验
59
60
  status: FORM_ITEM_DATA.status,
@@ -107,7 +108,15 @@ const config = defineConfig({
107
108
  FORM_ITEM_METHODS.clearValidate,
108
109
  ],
109
110
  events: [
110
- FORM_ITEM_EVENTS.change,
111
+ {
112
+ name: 'change',
113
+ title: '值改变',
114
+ detail: Type.Object({
115
+ value: Type.String({ description: '选中值' }),
116
+ context: Type.Object({ option: Type.Object({}, { description: '选中项' }) }, { description: '此次变更的更多上下文信息,其中 context.option 可以获得选中项的内容' }),
117
+ }),
118
+ description: '用户修改组件值时触发',
119
+ },
111
120
  {
112
121
  title: '输入搜索内容',
113
122
  name: 'search',
@@ -95,7 +95,7 @@ declare const config: {
95
95
  };
96
96
  };
97
97
  readonly shortcut: {
98
- readonly props: readonly ["adType", "unitId"];
98
+ readonly props: readonly ["appid"];
99
99
  };
100
100
  readonly description: "小程序内嵌微信小店商品,展示小店商品,并进行跳转交易。支持小店优选联盟带货跟佣功能。";
101
101
  readonly propertyPanelTips: "1.仅支持在小程序端使用,PC/H5中将自动隐藏,请注意页面布局。\n \n2.该组件必须在小程序真实环境使用才能够看到实际效果。\n ";
@@ -92,7 +92,7 @@ const config = defineConfig({
92
92
  },
93
93
  },
94
94
  shortcut: {
95
- props: ['adType', 'unitId'],
95
+ props: ['appid'],
96
96
  },
97
97
  description: '小程序内嵌微信小店商品,展示小店商品,并进行跳转交易。支持小店优选联盟带货跟佣功能。',
98
98
  propertyPanelTips: '1.仅支持在小程序端使用,PC/H5中将自动隐藏,请注意页面布局。\n \n2.该组件必须在小程序真实环境使用才能够看到实际效果。\n ',
@@ -76,6 +76,7 @@ declare const data: import("@sinclair/typebox").TObject<{
76
76
  connectorParams: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
77
77
  isOrderBy: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
78
78
  enableCellCustomOption: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
79
+ enableRelationTag: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
79
80
  customOptionTitle: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
80
81
  columnSelectType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
81
82
  fixedFront: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<any>>;
@@ -173,6 +174,7 @@ declare const config: {
173
174
  connectorParams: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
174
175
  isOrderBy: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
175
176
  enableCellCustomOption: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
177
+ enableRelationTag: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
176
178
  customOptionTitle: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
177
179
  columnSelectType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
178
180
  fixedFront: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<any>>;
@@ -1275,6 +1275,13 @@ const data = Type.Object({
1275
1275
  },
1276
1276
  ],
1277
1277
  })),
1278
+ enableRelationTag: Type.Optional(Type.Boolean({
1279
+ title: '显示关联标签',
1280
+ 'x-index': 131,
1281
+ 'x-runtime-default': true,
1282
+ 'x-group': '表格列',
1283
+ description: '开启后,表格中的关联关系字段默认以标签形式展示',
1284
+ })),
1278
1285
  customOptionTitle: Type.Optional(Type.String({
1279
1286
  title: '操作列标题',
1280
1287
  'x-index': 133,
@@ -65,7 +65,7 @@ export declare const components: {
65
65
  };
66
66
  };
67
67
  readonly shortcut: {
68
- readonly props: readonly ["adType", "unitId"];
68
+ readonly props: readonly ["appid"];
69
69
  };
70
70
  readonly description: "小程序内嵌微信小店商品,展示小店商品,并进行跳转交易。支持小店优选联盟带货跟佣功能。";
71
71
  readonly propertyPanelTips: "1.仅支持在小程序端使用,PC/H5中将自动隐藏,请注意页面布局。\n \n2.该组件必须在小程序真实环境使用才能够看到实际效果。\n ";
@@ -11936,6 +11936,7 @@ export declare const components: {
11936
11936
  connectorParams: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
11937
11937
  isOrderBy: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
11938
11938
  enableCellCustomOption: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
11939
+ enableRelationTag: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
11939
11940
  customOptionTitle: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
11940
11941
  columnSelectType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
11941
11942
  fixedFront: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<any>>;
@@ -14049,6 +14050,7 @@ export declare const components: {
14049
14050
  enableAddRelationButton: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
14050
14051
  addRelationButtonText: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
14051
14052
  enableRelationOptionJump: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
14053
+ enableRelationTag: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
14052
14054
  suffixType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
14053
14055
  status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
14054
14056
  required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
@@ -14176,12 +14178,15 @@ export declare const components: {
14176
14178
  description: string;
14177
14179
  }];
14178
14180
  readonly events: readonly [{
14179
- name: string;
14180
- title: string;
14181
- detail: import("@sinclair/typebox").TObject<{
14181
+ readonly name: "change";
14182
+ readonly title: "值改变";
14183
+ readonly detail: import("@sinclair/typebox").TObject<{
14182
14184
  value: import("@sinclair/typebox").TString;
14185
+ context: import("@sinclair/typebox").TObject<{
14186
+ option: import("@sinclair/typebox").TObject<{}>;
14187
+ }>;
14183
14188
  }>;
14184
- description: string;
14189
+ readonly description: "用户修改组件值时触发";
14185
14190
  }, {
14186
14191
  readonly title: "输入搜索内容";
14187
14192
  readonly name: "search";
@@ -14314,6 +14319,7 @@ export declare const components: {
14314
14319
  enableRelationalSetting: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
14315
14320
  enableRelationalRefresh: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
14316
14321
  enableRelationOptionJump: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
14322
+ enableRelationTag: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
14317
14323
  enableAddRelationButton: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
14318
14324
  addRelationButtonText: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
14319
14325
  suffixType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
@@ -14457,6 +14463,18 @@ export declare const components: {
14457
14463
  readonly name: string;
14458
14464
  readonly title: string;
14459
14465
  readonly description: string;
14466
+ }, {
14467
+ readonly name: "change";
14468
+ readonly title: "值改变";
14469
+ readonly detail: import("@sinclair/typebox").TObject<{
14470
+ value: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString> & {
14471
+ title: string;
14472
+ };
14473
+ context: import("@sinclair/typebox").TObject<{
14474
+ options: import("@sinclair/typebox").TObject<{}>;
14475
+ }>;
14476
+ }>;
14477
+ readonly description: "用户修改组件值时触发";
14460
14478
  }, {
14461
14479
  readonly title: "输入搜索内容";
14462
14480
  readonly name: "search";
@@ -19582,7 +19600,7 @@ declare const _default: {
19582
19600
  };
19583
19601
  };
19584
19602
  readonly shortcut: {
19585
- readonly props: readonly ["adType", "unitId"];
19603
+ readonly props: readonly ["appid"];
19586
19604
  };
19587
19605
  readonly description: "小程序内嵌微信小店商品,展示小店商品,并进行跳转交易。支持小店优选联盟带货跟佣功能。";
19588
19606
  readonly propertyPanelTips: "1.仅支持在小程序端使用,PC/H5中将自动隐藏,请注意页面布局。\n \n2.该组件必须在小程序真实环境使用才能够看到实际效果。\n ";
@@ -31453,6 +31471,7 @@ declare const _default: {
31453
31471
  connectorParams: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
31454
31472
  isOrderBy: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
31455
31473
  enableCellCustomOption: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
31474
+ enableRelationTag: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
31456
31475
  customOptionTitle: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
31457
31476
  columnSelectType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
31458
31477
  fixedFront: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<any>>;
@@ -33566,6 +33585,7 @@ declare const _default: {
33566
33585
  enableAddRelationButton: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
33567
33586
  addRelationButtonText: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
33568
33587
  enableRelationOptionJump: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
33588
+ enableRelationTag: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
33569
33589
  suffixType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
33570
33590
  status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
33571
33591
  required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
@@ -33693,12 +33713,15 @@ declare const _default: {
33693
33713
  description: string;
33694
33714
  }];
33695
33715
  readonly events: readonly [{
33696
- name: string;
33697
- title: string;
33698
- detail: import("@sinclair/typebox").TObject<{
33716
+ readonly name: "change";
33717
+ readonly title: "值改变";
33718
+ readonly detail: import("@sinclair/typebox").TObject<{
33699
33719
  value: import("@sinclair/typebox").TString;
33720
+ context: import("@sinclair/typebox").TObject<{
33721
+ option: import("@sinclair/typebox").TObject<{}>;
33722
+ }>;
33700
33723
  }>;
33701
- description: string;
33724
+ readonly description: "用户修改组件值时触发";
33702
33725
  }, {
33703
33726
  readonly title: "输入搜索内容";
33704
33727
  readonly name: "search";
@@ -33831,6 +33854,7 @@ declare const _default: {
33831
33854
  enableRelationalSetting: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
33832
33855
  enableRelationalRefresh: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
33833
33856
  enableRelationOptionJump: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
33857
+ enableRelationTag: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
33834
33858
  enableAddRelationButton: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
33835
33859
  addRelationButtonText: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
33836
33860
  suffixType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
@@ -33974,6 +33998,18 @@ declare const _default: {
33974
33998
  readonly name: string;
33975
33999
  readonly title: string;
33976
34000
  readonly description: string;
34001
+ }, {
34002
+ readonly name: "change";
34003
+ readonly title: "值改变";
34004
+ readonly detail: import("@sinclair/typebox").TObject<{
34005
+ value: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString> & {
34006
+ title: string;
34007
+ };
34008
+ context: import("@sinclair/typebox").TObject<{
34009
+ options: import("@sinclair/typebox").TObject<{}>;
34010
+ }>;
34011
+ }>;
34012
+ readonly description: "用户修改组件值时触发";
33977
34013
  }, {
33978
34014
  readonly title: "输入搜索内容";
33979
34015
  readonly name: "search";
@@ -132,6 +132,7 @@ export declare const FORM_ITEM_DATA: {
132
132
  enableRelationOptionJump: import("@sinclair/typebox").TBoolean;
133
133
  enableAddRelationButton: import("@sinclair/typebox").TBoolean;
134
134
  addRelationButtonText: import("@sinclair/typebox").TString;
135
+ enableRelationTag: import("@sinclair/typebox").TBoolean;
135
136
  extra: import("@sinclair/typebox").TString;
136
137
  showShape: import("@sinclair/typebox").TUnsafe<string>;
137
138
  downloadVisible: import("@sinclair/typebox").TBoolean;
@@ -547,6 +548,7 @@ export declare const ItemData: import("@sinclair/typebox").TObject<{
547
548
  enableRelationOptionJump: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
548
549
  enableAddRelationButton: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
549
550
  addRelationButtonText: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
551
+ enableRelationTag: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
550
552
  extra: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
551
553
  showShape: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
552
554
  downloadVisible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
@@ -1194,30 +1194,35 @@ export const FORM_ITEM_DATA = {
1194
1194
  },
1195
1195
  })),
1196
1196
  enableRelationalRefresh: Type.Boolean({
1197
- title: '显示刷新按钮',
1198
- description: '点击刷新下拉列表数据',
1197
+ title: '刷新按钮',
1198
+ description: '点击刷新下拉列表数据。仅选项来自关联关系字段时,支持配置刷新按钮,在编辑状态下展示。',
1199
1199
  'x-runtime-default': X_RUNTIME_DEFAULT.enableRelationalRefresh,
1200
1200
  'x-index': 165,
1201
1201
  'x-category': X_CATEGORY.COMMON,
1202
1202
  }),
1203
1203
  enableRelationalSetting: Type.Boolean({
1204
- title: '显示设置按钮',
1204
+ title: '设置按钮',
1205
1205
  'x-runtime-default': X_RUNTIME_DEFAULT.enableRelationalSetting,
1206
1206
  'x-index': 166,
1207
1207
  'x-category': X_CATEGORY.COMMON,
1208
+ description: '仅选项来自关联关系字段时,支持配置设置按钮,在编辑状态下展示。',
1209
+ 'x-helper-text': '开启后响应事件为:onSettingButtonClick。',
1208
1210
  }),
1209
1211
  enableRelationOptionJump: Type.Boolean({
1210
- title: '显示下拉选项跳转按钮',
1212
+ title: '下拉选项跳转按钮',
1211
1213
  'x-runtime-default': X_RUNTIME_DEFAULT.enableAddRelationButton,
1212
1214
  'x-index': 167,
1213
1215
  'x-category': X_CATEGORY.COMMON,
1214
- description: '仅选自自定义展示关联关系字段时,支持配置下拉选项跳转按钮',
1216
+ description: '仅选项来自关联关系字段时,支持配置下拉选项跳转按钮,在编辑状态下展示。',
1217
+ 'x-helper-text': '开启后响应事件为:onRelationOptionJump。',
1215
1218
  }),
1216
1219
  enableAddRelationButton: Type.Boolean({
1217
- title: '显示新建按钮',
1220
+ title: '新建按钮',
1218
1221
  'x-runtime-default': X_RUNTIME_DEFAULT.enableAddRelationButton,
1219
1222
  'x-index': 168,
1220
1223
  'x-category': X_CATEGORY.COMMON,
1224
+ description: '仅选项来自关联关系字段时,支持配置新建按钮,在编辑状态下展示。',
1225
+ 'x-helper-text': '开启后响应事件为:onAddRelationButtonClick。',
1221
1226
  'x-linkages': [
1222
1227
  {
1223
1228
  type: 'value:visible',
@@ -1232,6 +1237,14 @@ export const FORM_ITEM_DATA = {
1232
1237
  'x-index': 169,
1233
1238
  'x-category': X_CATEGORY.COMMON,
1234
1239
  }),
1240
+ enableRelationTag: Type.Boolean({
1241
+ title: '标签展示',
1242
+ 'x-runtime-default': X_RUNTIME_DEFAULT.enableRelationTag,
1243
+ 'x-index': 170,
1244
+ 'x-category': X_CATEGORY.COMMON,
1245
+ description: '仅选项来自关联关系字段时,支持配置组件在只读状态下以标签形式展示。',
1246
+ 'x-helper-text': '开启后响应事件为:onRelationTagClick。',
1247
+ }),
1235
1248
  extra: Type.String({
1236
1249
  title: '下方提示',
1237
1250
  type: 'string',
@@ -1677,9 +1690,14 @@ export const FORM_ITEM_DATA = {
1677
1690
  },
1678
1691
  {
1679
1692
  type: 'value:visible',
1680
- target: '*(selectFieldType,tipBlock,where,enableRelationalSetting,enableRelationalRefresh,enableAddRelationButton)',
1693
+ target: '*(selectFieldType,tipBlock,where,enableRelationalSetting,enableRelationalRefresh,enableAddRelationButton,enableRelationOptionJump)',
1681
1694
  condition: "{{$self.value=='father-son'||$self.value=='related'||$self.value=='many-one'||$self.value=='one-one'||$self.value=='one-one-r'}}",
1682
1695
  },
1696
+ {
1697
+ type: 'value:visible',
1698
+ target: '*(enableRelationTag)',
1699
+ condition: "{{$self.value=='x-enum'||$self.value=='father-son'||$self.value=='related'||$self.value=='many-one'||$self.value=='one-one'||$self.value=='one-one-r'}}",
1700
+ },
1683
1701
  ],
1684
1702
  display: false,
1685
1703
  'x-platforms': [''],
@@ -92,6 +92,7 @@ export declare const X_RUNTIME_DEFAULT: {
92
92
  enableRelationalRefresh: boolean;
93
93
  enableAddRelationButton: boolean;
94
94
  enableRelationOptionJump: boolean;
95
+ enableRelationTag: boolean;
95
96
  addRelationButtonText: string;
96
97
  _uploadButtonText: string;
97
98
  _uploadTipText: string;
@@ -92,6 +92,7 @@ export const X_RUNTIME_DEFAULT = {
92
92
  enableRelationalRefresh: true,
93
93
  enableAddRelationButton: false,
94
94
  enableRelationOptionJump: false,
95
+ enableRelationTag: true,
95
96
  addRelationButtonText: '去新建',
96
97
  _uploadButtonText: '点击上传',
97
98
  _uploadTipText: '支持批量上传',
@@ -1,5 +1,5 @@
1
1
  /**
2
- @cloudbase/weda-ui v3.13.0
2
+ @cloudbase/weda-ui v3.13.1
3
3
  */
4
4
  @charset "UTF-8";@media (min-width:1024px){.weda-ui .weui-cells{font-size:1em}.weui .weui-cell_active:active{background-color:unset!important}}@font-face{font-family:lcap-icon;font-weight:400;font-style:normal;src:url(data:application/font-woff2;charset=utf-8;base64,d09GMgABAAAAAAkMAA0AAAAAFZgAAAi1AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP0ZGVE0cGh4GYACCXhEICpxYlmoLTgABNgIkA1gEIAWDMweDBRtzEVGUTVKf7GdCpjLGY/HIYGvbDpn6q7Qdj3xvUaZJUNFads3M7geYVSSiCgsZJYFkhEfn2DjU9//jpn8D1QTqVBQqSrtAVZAq1bwkpTOo0Hbz2tnYfkP3ZzAxpv6ZiSFf3OHh8/b+/oqzxIt4QmFX5ImmIe0SWAOEOJL2n9ZSO5PcCwErnTjzLxOYud0Az24IS8AOXSWgBtyL2lbFtkKxMAhSoPNdlrMFakJqTjuamX+3E3teqiTm6/UpPkH213oLGNahKuAtpQ0wbERrXcnzO1bBpK388B4D6I5fCT9kh69EbSy65RKsi/26+7qKtJv2oREq98FIbnbJO3TaMjBjPcwtqFDG9qp0XxcX/7ndSrUHxotP16TcVrHOGHgIM0PwK6JIMvN/BgpiRTDc/CFwhO+x7ZDYI/ONMoO4NDIX3PYHqpDAWg0a1byp4P4j3ft6fX2jqrvbO6bLU5gtI53w8U4ueG4vS7h0Ze7t9hJUld5xMnwpJp2X5O8KxChB4KG0IQ8pBk+JUXq17qFT7cTN1G17zf2SrGdNz1yMi7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8+rYA9icsgyFzkc5s8Ne9hwCEXWH8WM82YAhjUzGZLCR46/+MZFkk2djoLT1IzKCbi3WV1hnUrcvSm+MZtRSpiYWanQU+67DN62G7tnPGP8h5DgBGvMgjgCILl0eQyJQoo5wKKqmimhpqqSOQIIIJQUQoYYQTQSRRRBNDLHGIkRBPAonZMHXOzF6Z99D0PpIk80xVIUlCBjmykYNc5CEfBShEJaqggBIqjzpSRkIGObKRg1zkIR8FKEQlqqCAEiqPulNOAgAA) format('woff2')}.wd-form--vertical-left .wedatea2td-form .weda-formcells__pc.horizontal,.wd-form--vertical-right .wedatea2td-form .weda-formcells__pc.horizontal,.wedatea2td-form--vertical .wd-form--horizontal-left .wd-form-item-wrap,.wedatea2td-form--vertical .wd-form--horizontal-right .wd-form-item-wrap,.wedatea2td-form--vertical .wd-form-item.wd-form-item--horizontal-left .wd-form-item-wrap,.wedatea2td-form--vertical .wd-form-item.wd-form-item--horizontal-right .wd-form-item-wrap,.wedatea2td-form--vertical .wedatea2td-form .weda-formcells__pc.horizontal{flex-direction:column}.g-swiper-item>div>*{max-width:100%;max-height:100%;object-fit:cover;max-width:100%;object-fit:cover;max-width:100%;max-height:100%;object-fit:cover;width:100%;height:auto;max-width:100%;object-fit:cover}.form-detail-wrap .form-detail-content-wrap .form-detail-group-header-container{display:flex;align-items:center;justify-content:space-between}.weda-graphic-card .weda-graphic-card__col .weda-graphic-card__title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.weda-graphic-card .weda-graphic-card__col .weda-graphic-card__desc{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.weda-menu .wedatea2td-menu--light .wedatea2td-menu__list li.is-selected>.wedatea2td-menu__item:hover,.wedatea2td-drawer .wedatea2td-menu--light .wedatea2td-menu__list li .wedatea2td-menu__item:hover{background-color:var(--weda-navigation-menu-hover-color)}.weda-menu-mobile .weda-menu__wrapper{display:flex;align-items:center;justify-content:space-between;box-shadow:0 2px 2px rgba(0,0,0,.05)}.weda-menu .wedatea2td-menu__text .menu-text,.weda-menu__drawer .wedatea2td-menu__text .menu-text{display:flex;justify-content:center;align-items:center}@media (max-width:1024px){.g-swiper .g-swiper__turn-next,.g-swiper .g-swiper__turn-pre{display:none}.modal-table-delete .wedatea2td-dialog__inner,.model-relation-selector-modal .wedatea2td-dialog__inner,.wedatea2td-dialog__inner{min-width:0;width:90%;margin:10px 0}.wedatea2td-form.model-form{width:100%}}.markdown-body .octicon{fill:currentColor}.markdown-body pre{word-wrap:normal}.wd-form-item.wd-pc-rich-text-root .ExEditor-basic,.wd-form-item.wd-pc-rich-text-root .exeditor-toolbar{background-color:inherit}.wd-add-relation-button-wrap{display:flex;align-items:center;color:var(--wd-color-brand,#0052d9);white-space:pre-wrap}.weda-import-csv-file-modal .file-json-map-wrap{display:flex;flex-direction:column;box-sizing:border-box}.weda-import-csv-file-modal .import-file-result-wrap .error-container{display:flex;flex-direction:column}.weda-import-csv-file-modal .import-file-result-wrap .error-content{flex:1}.wd-table-wrap-filter .wedatea2td-input:focus,.wd-table-wrap-filter .wedatea2td-input:hover,.wd-table-wrap-filter .wedatea2td-textarea-group:focus,.wd-table-wrap-filter .wedatea2td-textarea-group:hover,.wd-table-wrap-filter .wedatea2td-textarea:focus,.wd-table-wrap-filter .wedatea2td-textarea:hover,.wedatea2td-overlay .wedatea2td-checkbox:focus,.wedatea2td-overlay .wedatea2td-checkbox:hover,.wedatea2td-overlay input[type=checkbox]:focus,.wedatea2td-overlay input[type=checkbox]:hover{border-color:var(--wd-color-brand,#0052d9)}.weda-ui_mapChoose_search_input_clear{display:flex;justify-content:center}.form-select-map .wedatea2td-dialog__inner{box-shadow:none;min-width:100vw!important}.weda-ui-custom-calendar-op__end,.weda-ui-custom-calendar-op__start{display:flex;align-items:center}.weui-tag span{word-wrap:break-word;word-break:break-word}.weda-ui-user-select-container-list__start .depart-tree .wedatea2td-tree__node.is-selected>.wedatea2td-tree__node-content,.weda-ui-user-select-container-list__start .depart-tree .wedatea2td-tree__node.is-selected>.wedatea2td-tree__node-content .wedatea2td-tree__label,.weda-ui-user-select-container-list__start .wedatea2td-tree.wedatea2td-tree--checkbox-separate .wedatea2td-tree__node.is-selected>.wedatea2td-tree__node-content .wedatea2td-tree__label .wedatea2td-tree__label-title{background-color:var(--wd-color-brand-light,#d4e3fc)}.weda-select-user-dept-breadcrumb{display:flex;align-items:center}.form-location-con_disabled{opacity:.4}body{font-size:var(--wd-font-base)}@font-face{font-family:wd-lcap-icon;font-weight:400;font-style:normal;src:url(data:application/font-woff2;charset=utf-8;base64,d09GMgABAAAAAAkMAA0AAAAAFZgAAAi1AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP0ZGVE0cGh4GYACCXhEICpxYlmoLTgABNgIkA1gEIAWDMweDBRtzEVGUTVKf7GdCpjLGY/HIYGvbDpn6q7Qdj3xvUaZJUNFads3M7geYVSSiCgsZJYFkhEfn2DjU9//jpn8D1QTqVBQqSrtAVZAq1bwkpTOo0Hbz2tnYfkP3ZzAxpv6ZiSFf3OHh8/b+/oqzxIt4QmFX5ImmIe0SWAOEOJL2n9ZSO5PcCwErnTjzLxOYud0Az24IS8AOXSWgBtyL2lbFtkKxMAhSoPNdlrMFakJqTjuamX+3E3teqiTm6/UpPkH213oLGNahKuAtpQ0wbERrXcnzO1bBpK388B4D6I5fCT9kh69EbSy65RKsi/26+7qKtJv2oREq98FIbnbJO3TaMjBjPcwtqFDG9qp0XxcX/7ndSrUHxotP16TcVrHOGHgIM0PwK6JIMvN/BgpiRTDc/CFwhO+x7ZDYI/ONMoO4NDIX3PYHqpDAWg0a1byp4P4j3ft6fX2jqrvbO6bLU5gtI53w8U4ueG4vS7h0Ze7t9hJUld5xMnwpJp2X5O8KxChB4KG0IQ8pBk+JUXq17qFT7cTN1G17zf2SrGdNz1yMi7Agh0PzRINR0otFF515Z3Fzzml7wfmCrEvFl1zV9wiL6o6j8ELh5LgzjkKpbVTilkw1XLvyYxiCxZHZhpkOEZY3gDto5Ci7PcrBz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7tnPGP8h5DgBGvMgjgCILl0eQyJQoo5wKKqmimhpqqSOQIIIJQUQoYYQTQSRRRBNDLHGIkRBPAonZMHXOzF6Z99D0PpIk80xVIUlCBjmykYNc5CEfBShEJaqggBIqjzpSRkIGObKRg1zkIR8FKEQlqqCAEiqPulNOAgAA) format("woff2")}.t-icon{speak:none;text-transform:none;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.wd-space-align-items--flex-start{align-items:flex-start;align-items:center;align-items:flex-end}.wd-space-justify-content--flex-start{justify-content:flex-start;justify-content:center;justify-content:flex-end}.wd-btn{--wd-btn-sm-padding:0.0625rem calc(var(--wd-space-base) * 2);--wd-btn-md-padding:0.25rem calc(var(--wd-space-base) * 4);--wd-btn-lg-padding:0.4375rem calc(var(--wd-space-base) * 6);--wd-btn-margin-top:0;--wd-btn-margin-top:0;--wd-btn-font-size-sm:var(--wd-font-size-2);--wd-btn-line-height-sm:1.5;--wd-btn-min-height-sm:24px;--wd-btn-font-size-md:var(--wd-font-size-3);--wd-btn-line-height-md:1.5;--wd-btn-min-height-md:32px;--wd-btn-font-size-lg:var(--wd-font-size-4);--wd-btn-line-height-lg:1.5;--wd-btn-min-height-lg:40px;--wd-btn-icon-space-sm:var(--wd-space-base);--wd-btn-icon-space-md:calc(var(--wd-space-base) * 2);--wd-btn-icon-space-lg:calc(var(--wd-space-base) * 3);--wd-btn-icon-size-sm:calc(var(--wd-btn-font-size-sm) + 0.125rem);--wd-btn-icon-size-md:calc(var(--wd-btn-font-size-md) + 0.125rem);--wd-btn-icon-size-lg:calc(var(--wd-btn-font-size-lg) + 0.25rem);--wd-btn-border-radius:var(--wd-border-radius);--wd-btn-color-text:var(--wd-color-text-default);--wd-btn-color-text-inverse:var(--wd-color-text-inverse);--wd-btn-color-text-hover:var(--wd-color-text-default);--wd-btn-color-text-active:var(--wd-color-text-default);--wd-btn-color-text-focus:var(--wd-color-text-default);--wd-btn-color-text-disabled:var(--wd-color-text-disabled);--wd-btn-color-brand:var(--wd-color-brand);--wd-btn-color-brand-hover:var(--wd-color-brand-hover);--wd-btn-color-brand-active:var(--wd-color-brand-active);--wd-btn-color-brand-focus:var(--wd-color-brand-focus);--wd-btn-color-brand-disabled:var(--wd-color-brand-disabled);--wd-btn-color-warning:var(--wd-color-warning);--wd-btn-color-warning-hover:var(--wd-color-warning-hover);--wd-btn-color-warning-active:var(--wd-color-warning-active);--wd-btn-color-warning-focus:var(--wd-color-warning-focus);--wd-btn-color-warning-disabled:var(--wd-color-warning-disabled);--wd-btn-color-error:var(--wd-color-error);--wd-btn-color-error-hover:var(--wd-color-error-hover);--wd-btn-color-error-active:var(--wd-color-error-active);--wd-btn-color-error-focus:var(--wd-color-error-focus);--wd-btn-color-error-disabled:var(--wd-color-error-disabled);--wd-btn-color-gray:var(
5
5
  --wd-color-gray-1
@@ -8,6 +8,7 @@ interface IWdFormItemReadOnly {
8
8
  readBeforeAfter?: boolean;
9
9
  format?: string;
10
10
  value?: any;
11
+ enableRelationTag?: boolean;
11
12
  onRelationTagClick?: () => void;
12
13
  }
13
14
  /**
@@ -10,7 +10,7 @@ import { isFormatWithRelation } from '../form/select/formats-util';
10
10
  */
11
11
  export function WdFormItemReadOnly(props) {
12
12
  const ctx = useRecycle();
13
- const { readValue, readOnly, version, readBeforeAfter, before, after, format, onRelationTagClick = undefined, value, } = Object.assign({}, ctx, props);
13
+ const { readValue, readOnly, version, readBeforeAfter, before, after, format, enableRelationTag, onRelationTagClick = undefined, value, } = Object.assign({}, ctx, props);
14
14
  const platform = usePlatform();
15
15
  const { classPrefix } = useConfig();
16
16
  const item = `${classPrefix}-form-item`;
@@ -20,7 +20,7 @@ export function WdFormItemReadOnly(props) {
20
20
  const _after = useMemo(() => readBeforeAfter && textToString(after), [after, readBeforeAfter]);
21
21
  const isRelation = isFormatWithRelation(format);
22
22
  const isXEnum = 'x-enum' === format;
23
- return readOnly && version === 'wd' ? (_jsxs("div", { className: cls, children: [_before && _jsx("span", { className: `${item}__readonly-before`, children: _before }), _jsx("span", { className: `${item}__readonly-value`, children: isRelation && _readValue ? (_jsx(WdTag, { range: _readValue === null || _readValue === void 0 ? void 0 : _readValue.split(',').map((i, index) => ({
23
+ return readOnly && version === 'wd' ? (_jsxs("div", { className: cls, children: [_before && _jsx("span", { className: `${item}__readonly-before`, children: _before }), _jsx("span", { className: `${item}__readonly-value`, children: enableRelationTag && isRelation && _readValue ? (_jsx(WdTag, { range: _readValue === null || _readValue === void 0 ? void 0 : _readValue.split(',').map((i, index) => ({
24
24
  label: i,
25
25
  value: Array.isArray(value) ? value[index] : value,
26
26
  prefixType: !isXEnum && 'inner',
@@ -39,7 +39,10 @@ const OptionText = ({ mode, option, selectFields, authFields, onChange, onRelati
39
39
  if (platform === 'pc' && mode !== 'multiple') {
40
40
  e.stopPropagation();
41
41
  e.preventDefault();
42
- onChange === null || onChange === void 0 ? void 0 : onChange(option === null || option === void 0 ? void 0 : option.value);
42
+ onChange === null || onChange === void 0 ? void 0 : onChange(option === null || option === void 0 ? void 0 : option.value, {
43
+ event: e,
44
+ option,
45
+ });
43
46
  }
44
47
  }, children: [_jsxs("div", { className: "wd-relation-select-header", children: [_jsx("p", { className: "wd-relation-select-header-text", children: (option === null || option === void 0 ? void 0 : option.label) || (option === null || option === void 0 ? void 0 : option.value) }), enableRelationOptionJump && (_jsx("span", { onClick: () => {
45
48
  onRelationOptionJump({ item: option });
@@ -9,6 +9,7 @@ import { usePlatform, textToString } from '../../../utils/platform';
9
9
  import { useSyncValue } from '../../../utils/hooks/useSyncValue';
10
10
  import isObjectEqual from '../../../utils/isObjectEqual';
11
11
  import AllEmpty from '../../form/select/status/allEmpty';
12
+ import { X_RUNTIME_DEFAULT } from '../../../../configs/type-utils/x-runtime-default';
12
13
  import '../style';
13
14
  const OptionList = ({ options, inputFocus, currentSelected, optionClick, bottomTips, onScrollBottom }) => {
14
15
  return (_jsxs(List, { className: "weda-ui-custom-picker__cloumn", style: {
@@ -20,7 +21,7 @@ const OptionList = ({ options, inputFocus, currentSelected, optionClick, bottomT
20
21
  'is-selected': currentSelected.find((i) => i.value === item.value),
21
22
  'is-disabled': item.disabled,
22
23
  });
23
- return (_jsx(List.Item, { className: itemCls, onClick: () => optionClick(item), children: _jsx("p", { className: 'weda-ui-custom-picker__cloumn-item-text', children: item.text || item.label }) }, index));
24
+ return (_jsx(List.Item, { className: itemCls, onClick: (e) => optionClick(item, e), children: _jsx("p", { className: 'weda-ui-custom-picker__cloumn-item-text', children: item.text || item.label }) }, index));
24
25
  }), bottomTips && (_jsx(List.Item, { children: _jsx("div", { className: "weda-ui-custom-picker__status weda-ui-custom-picker__status--empty", children: bottomTips }) }))] }));
25
26
  };
26
27
  const getSelectedItem = (options = [], value) => {
@@ -93,7 +94,7 @@ function SelectH5(props) {
93
94
  };
94
95
  const handleOk = () => {
95
96
  const selectedVal = currentSelected === null || currentSelected === void 0 ? void 0 : currentSelected.map((i) => i.value);
96
- onChange(isMultiple ? selectedVal : selectedVal[0]);
97
+ onChange(isMultiple ? selectedVal : selectedVal[0], { options: currentSelected });
97
98
  setVisible(false);
98
99
  };
99
100
  // 处理当前选中值
@@ -109,13 +110,13 @@ function SelectH5(props) {
109
110
  }
110
111
  return [...currentSelected, item];
111
112
  };
112
- const optionClick = (item) => {
113
+ const optionClick = (item, e) => {
113
114
  if (item.disabled)
114
115
  return;
115
116
  setInputFocus(false);
116
117
  if (!isMultiple) {
117
118
  // 单选直接关弹窗
118
- onChange(item.value);
119
+ onChange(item.value, { event: e, option: item });
119
120
  setCurrentSelected([item]);
120
121
  setVisible(false);
121
122
  }
@@ -137,7 +138,7 @@ function SelectH5(props) {
137
138
  }, children: _jsx(OptionList, { onScrollBottom: onScrollBottom, options: customOptions, inputFocus: inputFocus, currentSelected: currentSelected, optionClick: optionClick, bottomTips: bottomTips }) }), footer] })) })] })] }));
138
139
  }
139
140
  export function SelectUI(props) {
140
- const { placeholder, size, disabled, onChange, onSearch, searchable, options = [], value, footer, overlayClassName, onOpen, onScrollBottom, tips, bottomTips, mode, format, readOnly, setAllOption, listHeight, listWidth, popupContainer, searchPlaceholder = '搜索选项', matchButtonWidth = true, ...restProps } = props;
141
+ const { placeholder, size, disabled, onChange, onSearch, searchable, options = [], value, footer, overlayClassName, onOpen, onScrollBottom, tips, bottomTips, mode, format, readOnly, setAllOption, listHeight, listWidth, popupContainer, searchPlaceholder = '搜索选项', matchButtonWidth = true, enableRelationTag = X_RUNTIME_DEFAULT.enableRelationTag, ...restProps } = props;
141
142
  const platform = usePlatform();
142
143
  const [currentOption] = useSyncValue((options === null || options === void 0 ? void 0 : options.map(({ label, value }) => ({ label, value }))) || [], isObjectEqual);
143
144
  // 更新option,从而更新最新的选项值
@@ -169,7 +170,10 @@ export function SelectUI(props) {
169
170
  return _jsx("div", { className: "wedatea2td-text-weak", children: placeholder });
170
171
  }
171
172
  return selectedItem.map((i) => (i === null || i === void 0 ? void 0 : i.label) || i.value).join(',');
172
- }, staging: false, overlayClassName: `${overlayClassName} multiple`, searchable: searchable, matchButtonWidth: matchButtonWidth, placeholder: placeholder, searchPlaceholder: searchPlaceholder, appearance: 'button', size: size, disabled: disabled, autoClearSearchValue: true, options: options === null || options === void 0 ? void 0 : options.map((i) => ({ ...i, text: i.text || i.label })), value: Array.isArray(value) ? value : [], onChange: onChange, onSearch: onSearch, footer: footer, onOpen: onOpen, onScrollBottom: onScrollBottom, bottomTips: bottomTips, tips: tips, listHeight: listHeight, listWidth: listWidth }));
173
+ }, staging: false, overlayClassName: `${overlayClassName} multiple`, searchable: searchable, matchButtonWidth: matchButtonWidth, placeholder: placeholder, searchPlaceholder: searchPlaceholder, appearance: 'button', size: size, disabled: disabled, autoClearSearchValue: true, options: options === null || options === void 0 ? void 0 : options.map((i) => ({ ...i, text: i.text || i.label })), value: Array.isArray(value) ? value : [], onChange: (v, context) => {
174
+ const _options = v === null || v === void 0 ? void 0 : v.map((item) => options === null || options === void 0 ? void 0 : options.find((i) => i.value === item));
175
+ onChange(v, { ...context, options: _options });
176
+ }, onSearch: onSearch, footer: footer, onOpen: onOpen, onScrollBottom: onScrollBottom, bottomTips: bottomTips, tips: tips, listHeight: listHeight, listWidth: listWidth }));
173
177
  }
174
178
  else {
175
179
  return (_jsx(Select, { ...restProps, popupContainer: popupContainer, button: (selectedItem) => {
@@ -180,5 +184,5 @@ export function SelectUI(props) {
180
184
  }, overlayClassName: overlayClassName, searchable: searchable, matchButtonWidth: matchButtonWidth, placeholder: placeholder, searchPlaceholder: searchPlaceholder, appearance: 'button', size: size, disabled: disabled, autoClearSearchValue: true, options: options === null || options === void 0 ? void 0 : options.map((i) => ({ ...i, text: i.text || i.label })), value: value, onChange: onChange, onSearch: onSearch, footer: footer, onOpen: onOpen, onScrollBottom: onScrollBottom, bottomTips: bottomTips, tips: tips, listHeight: listHeight, listWidth: listWidth }));
181
185
  }
182
186
  };
183
- return (_jsx(WdFormItemReadOnly, { after: props.after, before: props.before, onRelationTagClick: props.onRelationTagClick, readBeforeAfter: true, readOnly: readOnly, readValue: readValue, format: format, value: value, version: 'wd', children: _jsx("div", { "data-testid": isMultiple ? 'form-item-select-multiple-pc' : 'form-select', className: isMultiple ? 'form-select-multiple-pc' : 'form-select-pc', children: render() }) }));
187
+ return (_jsx(WdFormItemReadOnly, { after: props.after, before: props.before, onRelationTagClick: props.onRelationTagClick, readBeforeAfter: true, readOnly: readOnly, readValue: readValue, format: format, value: value, version: 'wd', enableRelationTag: enableRelationTag, children: _jsx("div", { "data-testid": isMultiple ? 'form-item-select-multiple-pc' : 'form-select', className: isMultiple ? 'form-select-multiple-pc' : 'form-select-pc', children: render() }) }));
184
188
  }
@@ -40,10 +40,10 @@ export const WdSelect = forwardRef(function WsSelect(props, ref) {
40
40
  onChange === null || onChange === void 0 ? void 0 : onChange(v);
41
41
  (_a = delayEvents === null || delayEvents === void 0 ? void 0 : delayEvents.change) === null || _a === void 0 ? void 0 : _a.call(delayEvents, { value: v });
42
42
  }, [onChange, delayEvents]);
43
- const handleChange = (v) => {
43
+ const handleChange = (v, context) => {
44
44
  var _a;
45
45
  onChange === null || onChange === void 0 ? void 0 : onChange(v);
46
- (_a = delayEvents === null || delayEvents === void 0 ? void 0 : delayEvents.change) === null || _a === void 0 ? void 0 : _a.call(delayEvents, { value: v });
46
+ (_a = delayEvents === null || delayEvents === void 0 ? void 0 : delayEvents.change) === null || _a === void 0 ? void 0 : _a.call(delayEvents, { value: v, context });
47
47
  };
48
48
  const clearProps = useHandleClear({
49
49
  onChange: onClearChange,
@@ -48,10 +48,10 @@ export const WdSelectMultiple = forwardRef(function WdSelectMultiple(props, ref)
48
48
  disabled,
49
49
  value,
50
50
  });
51
- const handleChange = (v) => {
51
+ const handleChange = (v, context) => {
52
52
  var _a;
53
53
  onChange === null || onChange === void 0 ? void 0 : onChange(v);
54
- (_a = delayEvents === null || delayEvents === void 0 ? void 0 : delayEvents.change) === null || _a === void 0 ? void 0 : _a.call(delayEvents, { value: v });
54
+ (_a = delayEvents === null || delayEvents === void 0 ? void 0 : delayEvents.change) === null || _a === void 0 ? void 0 : _a.call(delayEvents, { value: v, context });
55
55
  };
56
56
  const isRelation = isFormatWithRelation(format);
57
57
  const LabelAdornment = isRelation && (_jsx(RelationalSetting, { size: props.size, refresh: () => {
@@ -2,7 +2,7 @@
2
2
  import type { CommonPropsType } from '../../types';
3
3
  import type { DataType } from '../../../configs/components/wd-store-home';
4
4
  import './style';
5
- export type PropsType = CommonPropsType;
6
- export default function WdStoreHome(): JSX.Element;
7
- export interface WdStoreHomeProps extends CommonPropsType, DataType {
5
+ export default function WdStoreHome({ className, id }: WdStoreHomeProps): JSX.Element;
6
+ interface WdStoreHomeProps extends CommonPropsType, DataType {
8
7
  }
8
+ export { type WdStoreHomeProps };
@@ -1,6 +1,12 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { ConfigProvider, Bubble } from 'tea-component';
3
+ import { useCanPreview } from '../../utils/hooks/useCanPreview';
4
+ import { useConfig } from '../../utils/config-context';
3
5
  import './style';
4
- export default function WdStoreHome() {
5
- return (_jsx(ConfigProvider, { classPrefix: "wedatea2td", children: _jsx(Bubble, { placement: "auto", openDelay: 300, content: _jsxs(_Fragment, { children: ["\u8BE5\u7EC4\u4EF6\u5FC5\u987B\u5728\u5C0F\u7A0B\u5E8F\u771F\u5B9E\u73AF\u5883\u4F7F\u7528\u624D\u80FD\u591F\u770B\u5230\u5B9E\u9645\u6548\u679C\u3002", _jsx("br", {}), _jsx("a", { href: "https://developers.weixin.qq.com/miniprogram/dev/component/store-home.html", target: "_blank", rel: "noreferrer", children: "\u67E5\u770B\u8BF4\u660E" })] }), children: _jsxs("div", { className: "wd-store-home__wrap", children: [_jsxs("div", { className: "wd-store-home__content", children: [_jsx("img", { className: "wd-store-home__img", src: "https://qcloudimg.tencent-cloud.cn/raw/4a29d51b504f12b4933ce4490110b4dc.svg", alt: "" }), _jsxs("div", { children: [_jsx("p", { className: "wd-store-home__title", children: "\u5C0F\u5E97\u540D\u79F0" }), _jsx("p", { className: "wd-store-home__label", children: "\u5C0F\u5E97\u7B80\u4ECB" })] })] }), _jsxs("div", { className: "wd-store-home__footer", children: [_jsx("i", { className: "wd-store-home__icon" }), "\u5C0F\u5E97\u540D\u79F0"] })] }) }) }));
6
+ export default function WdStoreHome({ className, id }) {
7
+ const { classPrefix } = useConfig();
8
+ const canPreview = useCanPreview();
9
+ if (!canPreview)
10
+ return null;
11
+ return (_jsx(ConfigProvider, { classPrefix: "wedatea2td", children: _jsx(Bubble, { placement: "auto", openDelay: 300, content: _jsxs(_Fragment, { children: ["\u8BE5\u7EC4\u4EF6\u5FC5\u987B\u5728\u5C0F\u7A0B\u5E8F\u771F\u5B9E\u73AF\u5883\u4F7F\u7528\u624D\u80FD\u591F\u770B\u5230\u5B9E\u9645\u6548\u679C\u3002", _jsx("br", {}), _jsx("a", { href: "https://developers.weixin.qq.com/miniprogram/dev/component/store-home.html", target: "_blank", rel: "noreferrer", children: "\u67E5\u770B\u8BF4\u660E" })] }), children: _jsxs("div", { className: `${className} ${classPrefix}-store-home__wrap`, id: id, children: [_jsxs("div", { className: `${classPrefix}-store-home__content`, children: [_jsx("img", { className: `${classPrefix}-store-home__img`, src: "https://qcloudimg.tencent-cloud.cn/raw/4a29d51b504f12b4933ce4490110b4dc.svg", alt: "" }), _jsxs("div", { children: [_jsx("p", { className: `${classPrefix}-store-home__title`, children: "\u5C0F\u5E97\u540D\u79F0" }), _jsx("p", { className: `${classPrefix}-store-home__label`, children: "\u5C0F\u5E97\u7B80\u4ECB" })] })] }), _jsxs("div", { className: `${classPrefix}-store-home__footer`, children: [_jsx("i", { className: `${classPrefix}-store-home__icon` }), "\u5C0F\u5E97\u540D\u79F0"] })] }) }) }));
6
12
  }
@@ -2,7 +2,7 @@
2
2
  import type { CommonPropsType } from '../../types';
3
3
  import type { DataType } from '../../../configs/components/wd-store-product';
4
4
  import './style';
5
- export type PropsType = CommonPropsType;
6
- export default function WdStoreProduct(): JSX.Element;
7
- export interface WdStoreProductProps extends CommonPropsType, DataType {
5
+ export default function WdStoreProduct({ className, id }: WdStoreProductProps): JSX.Element;
6
+ interface WdStoreProductProps extends CommonPropsType, DataType {
8
7
  }
8
+ export { type WdStoreProductProps };
@@ -2,6 +2,12 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
2
2
  import { ConfigProvider, Bubble } from 'tea-component';
3
3
  import './style';
4
4
  import WdButton from '../wd-button';
5
- export default function WdStoreProduct() {
6
- return (_jsx(ConfigProvider, { classPrefix: "wedatea2td", children: _jsx(Bubble, { placement: "auto", openDelay: 300, content: _jsxs(_Fragment, { children: ["\u8BE5\u7EC4\u4EF6\u5FC5\u987B\u5728\u5C0F\u7A0B\u5E8F\u771F\u5B9E\u73AF\u5883\u4F7F\u7528\u624D\u80FD\u591F\u770B\u5230\u5B9E\u9645\u6548\u679C\u3002", _jsx("br", {}), _jsx("a", { href: "https://developers.weixin.qq.com/miniprogram/dev/component/store-product.html", target: "_blank", rel: "noreferrer", children: "\u67E5\u770B\u8BF4\u660E" })] }), children: _jsxs("div", { className: "wd-store-product__wrap", children: [_jsxs("div", { className: "wd-store-home__content", children: [_jsx("img", { className: "wd-store-product__img", src: "https://qcloudimg.tencent-cloud.cn/raw/4a29d51b504f12b4933ce4490110b4dc.svg", alt: "" }), _jsxs("div", { className: "wd-store-product__text", children: [_jsxs("div", { children: [_jsx("p", { className: "wd-store-home__title", children: "\u5546\u54C1\u540D\u79F0" }), _jsx("span", { className: "wd-store-home__label", children: "\u5546\u54C1\u6807\u7B7E" })] }), _jsxs("div", { className: "wd-store-product__text__footer", children: [_jsx("p", { className: "price", children: "\u00A5\u4EF7\u683C \u8D77" }), " ", _jsx(WdButton, { text: "\u8D2D\u4E70" })] })] })] }), _jsxs("div", { className: "wd-store-home__footer", children: [_jsx("i", { className: "wd-store-home__icon" }), "\u5C0F\u5E97\u540D\u79F0"] })] }) }) }));
5
+ import { useCanPreview } from '../../utils/hooks/useCanPreview';
6
+ import { useConfig } from '../../utils/config-context';
7
+ export default function WdStoreProduct({ className, id }) {
8
+ const { classPrefix } = useConfig();
9
+ const canPreview = useCanPreview();
10
+ if (!canPreview)
11
+ return null;
12
+ return (_jsx(ConfigProvider, { classPrefix: "wedatea2td", children: _jsx(Bubble, { placement: "auto", openDelay: 300, content: _jsxs(_Fragment, { children: ["\u8BE5\u7EC4\u4EF6\u5FC5\u987B\u5728\u5C0F\u7A0B\u5E8F\u771F\u5B9E\u73AF\u5883\u4F7F\u7528\u624D\u80FD\u591F\u770B\u5230\u5B9E\u9645\u6548\u679C\u3002", _jsx("br", {}), _jsx("a", { href: "https://developers.weixin.qq.com/miniprogram/dev/component/store-product.html", target: "_blank", rel: "noreferrer", children: "\u67E5\u770B\u8BF4\u660E" })] }), children: _jsxs("div", { className: `${className} ${classPrefix}-store-product__wrap`, id: id, children: [_jsxs("div", { className: `${classPrefix}-store-home__content`, children: [_jsx("img", { className: `${classPrefix}-store-product__img`, src: "https://qcloudimg.tencent-cloud.cn/raw/4a29d51b504f12b4933ce4490110b4dc.svg", alt: "" }), _jsxs("div", { className: `${classPrefix}-store-product__text`, children: [_jsxs("div", { children: [_jsx("p", { className: `${classPrefix}-store-home__title`, children: "\u5546\u54C1\u540D\u79F0" }), _jsx("span", { className: `${classPrefix}-store-home__label`, children: "\u5546\u54C1\u6807\u7B7E" })] }), _jsxs("div", { className: `${classPrefix}-store-product__text__footer`, children: [_jsx("p", { className: "price", children: "\u00A5\u4EF7\u683C \u8D77" }), " ", _jsx(WdButton, { text: "\u8D2D\u4E70" })] })] })] }), _jsxs("div", { className: `${classPrefix}-store-home__footer`, children: [_jsx("i", { className: `${classPrefix}-store-home__icon` }), "\u5C0F\u5E97\u540D\u79F0"] })] }) }) }));
7
13
  }
@@ -34,7 +34,8 @@ export const getDataBaseInfo = (fields, format, childDbName) => {
34
34
  return dataBase;
35
35
  };
36
36
  export const mapResult = (records, primaryColumn) => {
37
- return records === null || records === void 0 ? void 0 : records.map((childItem) => ({
37
+ var _a;
38
+ return (_a = records === null || records === void 0 ? void 0 : records.filter((i) => i._id)) === null || _a === void 0 ? void 0 : _a.map((childItem) => ({
38
39
  _id: childItem._id,
39
40
  value: childItem._id,
40
41
  text: childItem[primaryColumn] ? childItem[primaryColumn] : childItem._id,
@@ -73,7 +73,8 @@ export const WdTable = forwardRef(function TableComp(tableProps, ref) {
73
73
  isSuspendFooter = true, // 是否分页器在页面底部悬停
74
74
  isSupportMultipleSort = false, // 是否支持多字段排序
75
75
  sorter, // 排序规则
76
- __innerSlot, ...props } = tableProps;
76
+ __innerSlot, enableRelationTag = true, // 关联关系字段是否开启关联标签
77
+ ...props } = tableProps;
77
78
  const wList = convertWhere(props, supportManyRelated); // 查询参数
78
79
  const { classPrefix } = useConfig();
79
80
  const platform = usePlatform();
@@ -211,6 +212,7 @@ export const WdTable = forwardRef(function TableComp(tableProps, ref) {
211
212
  fixedEnd,
212
213
  isH5,
213
214
  supportManyRelated,
215
+ showRelationWithTag: enableRelationTag,
214
216
  });
215
217
  // 操作列
216
218
  if (enableCellCustomOption && !isH5) {
@@ -259,11 +261,12 @@ export const WdTable = forwardRef(function TableComp(tableProps, ref) {
259
261
  fixedFront,
260
262
  fixedEnd,
261
263
  isH5,
264
+ supportManyRelated,
265
+ enableRelationTag,
262
266
  enableCellCustomOption,
263
- customOptionTitle,
264
267
  columnSelectType,
268
+ customOptionTitle,
265
269
  classPrefix,
266
- supportManyRelated,
267
270
  resizeColumns,
268
271
  ]);
269
272
  // 主键
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudbase/weda-ui",
3
- "version": "3.13.0",
3
+ "version": "3.13.1",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index",
6
6
  "miniprogram": "mpdist",