@longhongguo/form-create-ant-design-vue 3.2.50 → 3.2.51

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longhongguo/form-create-ant-design-vue",
3
- "version": "3.2.50",
3
+ "version": "3.2.51",
4
4
  "description": "AntDesignVue版本低代码表单|FormCreate 是一个可以通过 JSON 生成具有动态渲染、数据收集、验证和提交功能的低代码表单生成组件。支持6个UI框架,适配移动端,并且支持生成任何 Vue 组件。内置20种常用表单组件和自定义组件,再复杂的表单都可以轻松搞定。",
5
5
  "main": "./dist/form-create.min.js",
6
6
  "module": "./dist/form-create.esm.js",
@@ -99,6 +99,10 @@ export default defineComponent({
99
99
  extraQuery: {
100
100
  type: Object,
101
101
  default: () => ({})
102
+ },
103
+ extraQueryFn: {
104
+ type: Function,
105
+ default: () => {}
102
106
  }
103
107
  },
104
108
  emits: ['update:modelValue', 'change'],
@@ -232,6 +236,12 @@ export default defineComponent({
232
236
  : this.serializeForPostMessage(valueToSend)
233
237
 
234
238
  // 发送消息给父窗口,请求打开门店选择弹窗
239
+ const extraQuery = {
240
+ ...this.extraQuery
241
+ }
242
+ if (this.extraQueryFn) {
243
+ Object.assign(extraQuery, this.extraQueryFn())
244
+ }
235
245
  const message = {
236
246
  type: 'OPEN_STORE_SELECT',
237
247
  field: this.field || '',
@@ -239,7 +249,7 @@ export default defineComponent({
239
249
  currentValue: serializedCurrentValue,
240
250
  valueKey: this.valueKey,
241
251
  labelKey: this.labelKey,
242
- extraQuery: this.extraQuery,
252
+ extraQuery,
243
253
  messageId: msgId
244
254
  }
245
255
 
@@ -102,6 +102,10 @@ export default defineComponent({
102
102
  extraQuery: {
103
103
  type: Object,
104
104
  default: () => ({})
105
+ },
106
+ extraQueryFn: {
107
+ type: Function,
108
+ default: () => {}
105
109
  }
106
110
  },
107
111
  emits: ['update:modelValue', 'change'],
@@ -235,6 +239,13 @@ export default defineComponent({
235
239
  : this.serializeForPostMessage(valueToSend)
236
240
 
237
241
  // 发送消息给父窗口,请求打开用户选择弹窗
242
+ const extraQuery = {
243
+ ...this.extraQuery
244
+ }
245
+ if (this.extraQueryFn) {
246
+ Object.assign(extraQuery, this.extraQueryFn())
247
+ }
248
+
238
249
  const message = {
239
250
  type: 'OPEN_USER_SELECT',
240
251
  field: this.field || '',
@@ -243,7 +254,7 @@ export default defineComponent({
243
254
  valueKey: this.valueKey,
244
255
  labelKey: this.labelKey,
245
256
  selectType: this.selectType,
246
- extraQuery: this.extraQuery,
257
+ extraQuery,
247
258
  messageId: msgId
248
259
  }
249
260
 
@@ -317,18 +317,21 @@
317
317
  margin-bottom: 1px !important;
318
318
  }
319
319
 
320
- ._fc-table-form .ant-form-item-label, ._fc-table-form .van-field__label {
320
+ ._fc-table-form .ant-form-item-label,
321
+ ._fc-table-form .van-field__label {
321
322
  display: none !important;
322
323
  }
323
324
 
324
- ._fc-tf-head-idx, ._fc-tf-idx {
325
+ ._fc-tf-head-idx,
326
+ ._fc-tf-idx {
325
327
  width: 40px;
326
328
  min-width: 40px;
327
329
  font-weight: 500;
328
330
  text-align: center;
329
331
  }
330
332
 
331
- ._fc-tf-edit, ._fc-tf-btn {
333
+ ._fc-tf-edit,
334
+ ._fc-tf-btn {
332
335
  width: 70px;
333
336
  min-width: 70px;
334
337
  text-align: center;
@@ -344,7 +347,8 @@
344
347
  padding: 2px;
345
348
  }
346
349
 
347
- ._fc-table-form._fc-disabled ._fc-tf-btn .fc-icon, ._fc-table-form._fc-disabled > .ant-btn {
350
+ ._fc-table-form._fc-disabled ._fc-tf-btn .fc-icon,
351
+ ._fc-table-form._fc-disabled > .ant-btn {
348
352
  cursor: not-allowed;
349
353
  }
350
354
 
@@ -353,13 +357,13 @@
353
357
  height: 100%;
354
358
  overflow: hidden;
355
359
  table-layout: fixed;
356
- border: 1px solid #EBEEF5;
360
+ border: 1px solid #ebeef5;
357
361
  border-bottom: 0 none;
358
362
  }
359
363
 
360
364
  ._fc-table-form ._fc-tf-table > thead > tr > th {
361
365
  border: 0 none;
362
- border-bottom: 1px solid #EBEEF5;
366
+ border-bottom: 1px solid #ebeef5;
363
367
  height: 40px;
364
368
  font-weight: 500;
365
369
  padding: 0 5px;
@@ -367,7 +371,7 @@
367
371
  }
368
372
 
369
373
  ._fc-table-form ._fc-tf-table > thead > tr > th + th {
370
- border-left: 1px solid #EBEEF5;
374
+ border-left: 1px solid #ebeef5;
371
375
  }
372
376
 
373
377
  ._fc-table-form tr {
@@ -388,14 +392,18 @@
388
392
  overflow-wrap: break-word;
389
393
  overflow: hidden;
390
394
  border: 0 none;
391
- border-bottom: 1px solid #EBEEF5;
395
+ border-bottom: 1px solid #ebeef5;
392
396
  }
393
397
 
394
398
  ._fc-table-form td + td {
395
- border-left: 1px solid #EBEEF5;
399
+ border-left: 1px solid #ebeef5;
396
400
  }
397
401
 
398
- ._fc-tf-table .ant-input-number, ._fc-tf-table .ant-select, ._fc-tf-table .ant-slider, ._fc-tf-table .ant-cascader, ._fc-tf-table .ant-picker {
402
+ ._fc-tf-table .ant-input-number,
403
+ ._fc-tf-table .ant-select,
404
+ ._fc-tf-table .ant-slider,
405
+ ._fc-tf-table .ant-cascader,
406
+ ._fc-tf-table .ant-picker {
399
407
  width: 100%;
400
408
  }
401
409
 
@@ -409,8 +417,8 @@
409
417
  ._fd-table-form {
410
418
  min-height: 130px;
411
419
  width: 100%;
412
- border: 1px solid #ECECEC;
413
- background: #FFFFFF;
420
+ border: 1px solid #ececec;
421
+ background: #ffffff;
414
422
  }
415
423
 
416
424
  ._fc-child-empty {
@@ -443,7 +451,8 @@
443
451
  flex-shrink: 0;
444
452
  }
445
453
 
446
- ._fd-tf-con .ant-form-item-label,._fd-tf-con .van-field__label {
454
+ ._fd-tf-con .ant-form-item-label,
455
+ ._fd-tf-con .van-field__label {
447
456
  display: none !important;
448
457
  }
449
458
 
@@ -471,7 +480,11 @@
471
480
  display: none !important;
472
481
  }
473
482
 
474
- ._fd-tf-con .ant-input-number, ._fd-tf-con .ant-select, ._fd-tf-con .ant-slider, ._fd-tf-con .ant-cascader, ._fd-tf-con .ant-picker {
483
+ ._fd-tf-con .ant-input-number,
484
+ ._fd-tf-con .ant-select,
485
+ ._fd-tf-con .ant-slider,
486
+ ._fd-tf-con .ant-cascader,
487
+ ._fd-tf-con .ant-picker {
475
488
  width: 100%;
476
489
  }
477
490