@cloudbase/weda-ui 3.13.0 → 3.13.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.
Files changed (40) 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/components/wd-upload-image.d.ts +7 -2
  10. package/dist/configs/components/wd-upload-image.js +40 -6
  11. package/dist/configs/index.d.ts +60 -14
  12. package/dist/configs/type-utils/classes.js +1 -1
  13. package/dist/configs/type-utils/type-form.d.ts +2 -0
  14. package/dist/configs/type-utils/type-form.js +25 -7
  15. package/dist/configs/type-utils/x-runtime-default.d.ts +1 -0
  16. package/dist/configs/type-utils/x-runtime-default.js +1 -0
  17. package/dist/style/weda-ui.min.css +2 -2
  18. package/dist/web/components/echart/echart.js +3 -4
  19. package/dist/web/components/form/uploader/uploader.h5.js +14 -17
  20. package/dist/web/components/form/uploader/uploader.pc.js +3 -3
  21. package/dist/web/components/wd-form-item/wd-form-item-read-only.d.ts +1 -0
  22. package/dist/web/components/wd-form-item/wd-form-item-read-only.js +2 -2
  23. package/dist/web/components/wd-location/wd-location.css +7 -10
  24. package/dist/web/components/wd-location/wd-location.js +4 -0
  25. package/dist/web/components/wd-select/relationSelect/relationSelect.js +12 -4
  26. package/dist/web/components/wd-select/select/selectUI.js +12 -8
  27. package/dist/web/components/wd-select/wd-select.css +12 -22
  28. package/dist/web/components/wd-select/wd-select.js +2 -2
  29. package/dist/web/components/wd-select-multiple/wd-select-multiple.js +2 -2
  30. package/dist/web/components/wd-store-home/index.d.ts +3 -3
  31. package/dist/web/components/wd-store-home/index.js +8 -2
  32. package/dist/web/components/wd-store-product/index.d.ts +3 -3
  33. package/dist/web/components/wd-store-product/index.js +8 -2
  34. package/dist/web/components/wd-table/components/FieldRender/index.d.ts +3 -3
  35. package/dist/web/components/wd-table/components/FieldRender/index.js +31 -46
  36. package/dist/web/components/wd-table/hooks/useChooseList.d.ts +2 -1
  37. package/dist/web/components/wd-table/hooks/useChooseList.js +17 -4
  38. package/dist/web/components/wd-table/wd-table.js +6 -3
  39. package/dist/web/utils/moment.js +3 -0
  40. package/package.json +4 -4
@@ -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,
@@ -104,11 +104,16 @@ declare const config: {
104
104
  visible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
105
105
  readOnly: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
106
106
  }>;
107
- classes: {
107
+ classes: ({
108
108
  name: string;
109
109
  selector: string;
110
110
  description: string;
111
- }[];
111
+ } | {
112
+ name: string;
113
+ selector: string;
114
+ description: string;
115
+ code: string;
116
+ })[];
112
117
  methods: {
113
118
  name: string;
114
119
  label: string;
@@ -122,24 +122,58 @@ const classes = [
122
122
  ...getFormItemClasses('upload-image', { isInput: false }),
123
123
  ...[
124
124
  {
125
- name: '图片上传前的容器样式',
125
+ name: 'PC端图片上传点击区域容器样式',
126
+ selector: `.weda-uploader-btn__box`,
127
+ description: 'PC端图片上传点击区域容器样式',
128
+ code: `
129
+ :scope .weda-uploader-btn__box {
130
+ background: #fafafa;
131
+ border:1px dashed #d9d9d9 !important;
132
+ border-radius: 10px;
133
+ }
134
+ `,
135
+ },
136
+ {
137
+ name: 'H5、小程序端图片上传点击区域容器样式',
126
138
  selector: `.weui-uploader__input-box`,
127
- description: '图片上传前的背景框样式',
139
+ description: 'H5、小程序端图片上传点击区域容器样式',
140
+ code: `
141
+ :scope .weui-uploader__input-box {
142
+ background: #fff;
143
+ border:1px dashed #d9d9d9;
144
+ }
145
+ `,
128
146
  },
129
147
  {
130
- name: '图片上传的 + 号竖线样式',
148
+ name: 'H5、小程序端图片上传的 + 号竖线样式',
131
149
  selector: `.weui-uploader__input-box::before `,
132
150
  description: '图片上传的 + 号竖线样式',
151
+ code: `
152
+ :scope .weui-uploader__input-box::before {
153
+ background: #fff;
154
+ content: '+';
155
+ width: 10px;
156
+ top:40%;
157
+ }
158
+ `,
133
159
  },
134
160
  {
135
- name: '图片上传的 + 号横线样式',
161
+ name: 'H5、小程序端图片上传的 + 号横线样式',
136
162
  selector: `.weui-uploader__input-box::after `,
137
163
  description: '图片上传的 + 号横线样式',
164
+ code: `
165
+ :scope .weui-uploader__input-box::after {
166
+ background: #fff;
167
+ width: 50px;
168
+ content: '上传图片';
169
+ font-size: 12px;
170
+ }
171
+ `,
138
172
  },
139
173
  {
140
- name: '图片上传后的容器样式',
174
+ name: 'H5、小程序端图片展示容器样式',
141
175
  selector: `weui-uploader__file`,
142
- description: '图片上传后的容器样式',
176
+ description: 'H5、小程序端图片展示容器样式',
143
177
  },
144
178
  ],
145
179
  ];
@@ -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";
@@ -15700,11 +15718,16 @@ export declare const components: {
15700
15718
  visible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
15701
15719
  readOnly: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
15702
15720
  }>;
15703
- classes: {
15721
+ classes: ({
15704
15722
  name: string;
15705
15723
  selector: string;
15706
15724
  description: string;
15707
- }[];
15725
+ } | {
15726
+ name: string;
15727
+ selector: string;
15728
+ description: string;
15729
+ code: string;
15730
+ })[];
15708
15731
  methods: {
15709
15732
  name: string;
15710
15733
  label: string;
@@ -19582,7 +19605,7 @@ declare const _default: {
19582
19605
  };
19583
19606
  };
19584
19607
  readonly shortcut: {
19585
- readonly props: readonly ["adType", "unitId"];
19608
+ readonly props: readonly ["appid"];
19586
19609
  };
19587
19610
  readonly description: "小程序内嵌微信小店商品,展示小店商品,并进行跳转交易。支持小店优选联盟带货跟佣功能。";
19588
19611
  readonly propertyPanelTips: "1.仅支持在小程序端使用,PC/H5中将自动隐藏,请注意页面布局。\n \n2.该组件必须在小程序真实环境使用才能够看到实际效果。\n ";
@@ -31453,6 +31476,7 @@ declare const _default: {
31453
31476
  connectorParams: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
31454
31477
  isOrderBy: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
31455
31478
  enableCellCustomOption: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
31479
+ enableRelationTag: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
31456
31480
  customOptionTitle: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
31457
31481
  columnSelectType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
31458
31482
  fixedFront: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<any>>;
@@ -33566,6 +33590,7 @@ declare const _default: {
33566
33590
  enableAddRelationButton: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
33567
33591
  addRelationButtonText: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
33568
33592
  enableRelationOptionJump: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
33593
+ enableRelationTag: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
33569
33594
  suffixType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
33570
33595
  status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
33571
33596
  required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
@@ -33693,12 +33718,15 @@ declare const _default: {
33693
33718
  description: string;
33694
33719
  }];
33695
33720
  readonly events: readonly [{
33696
- name: string;
33697
- title: string;
33698
- detail: import("@sinclair/typebox").TObject<{
33721
+ readonly name: "change";
33722
+ readonly title: "值改变";
33723
+ readonly detail: import("@sinclair/typebox").TObject<{
33699
33724
  value: import("@sinclair/typebox").TString;
33725
+ context: import("@sinclair/typebox").TObject<{
33726
+ option: import("@sinclair/typebox").TObject<{}>;
33727
+ }>;
33700
33728
  }>;
33701
- description: string;
33729
+ readonly description: "用户修改组件值时触发";
33702
33730
  }, {
33703
33731
  readonly title: "输入搜索内容";
33704
33732
  readonly name: "search";
@@ -33831,6 +33859,7 @@ declare const _default: {
33831
33859
  enableRelationalSetting: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
33832
33860
  enableRelationalRefresh: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
33833
33861
  enableRelationOptionJump: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
33862
+ enableRelationTag: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
33834
33863
  enableAddRelationButton: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
33835
33864
  addRelationButtonText: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
33836
33865
  suffixType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
@@ -33974,6 +34003,18 @@ declare const _default: {
33974
34003
  readonly name: string;
33975
34004
  readonly title: string;
33976
34005
  readonly description: string;
34006
+ }, {
34007
+ readonly name: "change";
34008
+ readonly title: "值改变";
34009
+ readonly detail: import("@sinclair/typebox").TObject<{
34010
+ value: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString> & {
34011
+ title: string;
34012
+ };
34013
+ context: import("@sinclair/typebox").TObject<{
34014
+ options: import("@sinclair/typebox").TObject<{}>;
34015
+ }>;
34016
+ }>;
34017
+ readonly description: "用户修改组件值时触发";
33977
34018
  }, {
33978
34019
  readonly title: "输入搜索内容";
33979
34020
  readonly name: "search";
@@ -35217,11 +35258,16 @@ declare const _default: {
35217
35258
  visible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
35218
35259
  readOnly: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
35219
35260
  }>;
35220
- classes: {
35261
+ classes: ({
35221
35262
  name: string;
35222
35263
  selector: string;
35223
35264
  description: string;
35224
- }[];
35265
+ } | {
35266
+ name: string;
35267
+ selector: string;
35268
+ description: string;
35269
+ code: string;
35270
+ })[];
35225
35271
  methods: {
35226
35272
  name: string;
35227
35273
  label: string;
@@ -134,7 +134,7 @@ export const getClasses = (classRoot, options = {}) => {
134
134
  input_edit: {
135
135
  name: `编辑态-${kind}样式`,
136
136
  selector: `${ROOT_SELECTOR} .wd-form-input-wrap`,
137
- description: '组件边框、边距样式',
137
+ description: '组件边框、边距样式、背景色、字体大小、字体颜色等',
138
138
  code: `
139
139
  :scope .wd-form-input-wrap {
140
140
  font-size: 20px;
@@ -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: '支持批量上传',