@weitutech/by-components 1.0.31 → 1.1.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.
package/README.md CHANGED
@@ -298,11 +298,36 @@ export default {
298
298
 
299
299
  ```
300
300
 
301
+ #### 自定义时间选择器'customDatePicker'特别说明
302
+
303
+ 自定义时间选择器同时支持时间段方式绑定值 和 单独时间方式绑定值
304
+
305
+ ```
306
+ // 时间段方式绑定值
307
+ {
308
+ type: 'customDatePicker',
309
+ field: 'report_time',
310
+ label: '报表时间'
311
+ }
312
+ ```
313
+
314
+ ```
315
+ // 单独时间方式绑定值
316
+ {
317
+ type: 'customDatePicker',
318
+ field: 'report_time', // 仍然保留原来的字段,保证兼容性
319
+ startTimeField: 'start_time', // 新增开始时间字段
320
+ endTimeField: 'end_time', // 新增结束时间字段
321
+ label: '报表时间'
322
+ }
323
+ ```
324
+
301
325
  ### 表格 by-table
302
326
 
303
327
  [vxe-table 文档](https://vxetable.cn/v3.8/#/table/start/install)
304
328
 
305
329
  ###### 通用配置
330
+
306
331
  ```
307
332
  <template>
308
333
  <by-table
@@ -372,7 +397,7 @@ export default {
372
397
  }
373
398
  },
374
399
 
375
- customColumnConfig: { // 自定义列
400
+ customColumnConfig: { // 自定义列
376
401
  showCustomColumn: true, // 是否显示自定义列
377
402
  infoMethod: getCustomTableList, // 回显用的接口
378
403
  submitMethod: setCustomTableList, // 保存用的接口
@@ -411,7 +436,9 @@ export default {
411
436
  </script>
412
437
 
413
438
  ```
439
+
414
440
  ###### 自定义列支持多级表头
441
+
415
442
  ```
416
443
  <template>
417
444
  <by-table
@@ -450,7 +477,7 @@ export default {
450
477
  },
451
478
  { field: 'address', title: 'Address', sortable: true, showOverflow: true }
452
479
  ],
453
- }
480
+ }
454
481
  }
455
482
  },
456
483
  methods: {
@@ -467,4 +494,4 @@ export default {
467
494
  }
468
495
  }
469
496
  </script>
470
- ```
497
+ ```