general-basic-form 2.1.9 → 2.1.10

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
@@ -399,71 +399,76 @@ parametersType 类型介绍
399
399
  {
400
400
  label: "分类",
401
401
  prop: "分类",
402
- type: "cascader",
403
- setting:{},
402
+ type: "command",
403
+ setting:{
404
+ placeholder:"请输入分类",
405
+ empty:"搜索内容为空的提示",
406
+ },
404
407
  options: [
405
408
  {
406
- value: "zhinan",
407
409
  label: "指南",
410
+ value: "guide",
411
+ separator:true, //分割线
408
412
  children: [
409
- {
410
- value: "shejiyuanze",
411
- label: "设计原则",
412
- children: [
413
- {
414
- value: "yizhi",
415
- label: "一致",
416
- },
417
- {
418
- value: "fankui",
419
- label: "反馈",
420
- },
421
- {
422
- value: "xiaolv",
423
- label: "效率",
424
- },
425
- {
426
- value: "kekong",
427
- label: "可控",
428
- },
429
- ],
430
- },
431
- {
432
- value: "daohang",
433
- label: "导航",
434
- children: [
435
- {
436
- value: "cexiangdaohang",
437
- label: "侧向导航",
438
- },
439
- {
440
- value: "dingbudaohang",
441
- label: "顶部导航",
442
- },
443
- ],
413
+ {
414
+ value: 'shejiyuanze',
415
+ label: '设计原则',
416
+ onSelect: (value) => {
417
+ console.log('Selected', value);
444
418
  },
419
+ shortcut: 'ctrl+z', //选项右侧的内容
420
+ },
421
+
445
422
  ],
446
423
  },
447
424
  {
448
- value: "ziyuan",
449
425
  label: "资源",
426
+ value: "resource",
450
427
  children: [
451
428
  {
452
429
  value: "axure",
453
430
  label: "Axure Components",
454
- },
431
+ }
432
+ ],
433
+ },
434
+ ],
435
+ },
436
+ {
437
+ label: '分类',
438
+ prop: 'expense_category_id',
439
+ type: 'combobox',
440
+ setting: {
441
+ placeholder: '请输入分类',
442
+ empty: '搜索内容为空的提示',
443
+ },
444
+ fieldSetting: {
445
+ className: fieldClassName,
446
+ },
447
+ options: [
455
448
  {
456
- value: "sketch",
457
- label: "Sketch Templates",
449
+ label: '指南',
450
+ value: '指南',
451
+ separator: true, //分割线
452
+ children: [
453
+ {
454
+ value: 'shejiyuanze',
455
+ label: '设计原则',
456
+ shortcut: 'ctrl+z', //选项右侧的内容
457
+ },
458
+ ],
458
459
  },
459
460
  {
460
- value: "jiaohu",
461
- label: "组件交互文档",
461
+ label: '资源',
462
+ value: 'resource',
463
+ children: [
464
+ {
465
+ value: 'axure',
466
+ label: 'Axure Components',
467
+ },
468
+ ],
462
469
  },
463
470
  ],
464
471
  },
465
- ],
466
- },
467
472
  ],
468
473
 
469
474
  //rules为表单校验规则,每个组件都可以传入
@@ -479,51 +484,58 @@ parametersType 类型介绍
479
484
 
480
485
  支持组件 type:
481
486
 
482
- /\*\*
483
-
484
- - @description: 输入框
485
- - @return {_}
486
- _/
487
+ export enum FormType {
488
+ /**
489
+ * @description: 输入框
490
+ * @return {*}
491
+ */
487
492
  "input" = "input",
488
- /\*\*
489
- - @description: 表单中的多维列表,可增减元素
490
- - @return {_}
491
- _/
493
+ /**
494
+ * @description: 表单中的多维列表,可增减元素,内部可以使用的数据类型除自身form-list外同FormType
495
+ * @return {*}
496
+ */
492
497
  "form-list" = "form-list",
493
- /\*\*
494
- - @description: 选择器
495
- - @return {_}
496
- _/
498
+ /**
499
+ * @description: 选择器
500
+ * @return {*}
501
+ */
497
502
  "select" = "select",
498
- /\*\*
499
- - @description: 级联选择器
500
- - @return {_}
501
- _/
502
- "cascader" = "cascader",
503
- /\*\*
504
- - @description: 日期选择器
505
- - @return {_}
506
- _/
503
+ /**
504
+ * @description: 带搜索的二级菜单
505
+ * @return {*}
506
+ */
507
+ "command" = "command",
508
+ /**
509
+ * @description: 响应式下拉框+带搜索的二级菜单
510
+ * @return {*}
511
+ */
512
+ "combobox" = "combobox",
513
+ /**
514
+ * @description: 日期选择器
515
+ * @return {*}
516
+ */
507
517
  "date-picker" = "date-picker",
508
518
 
509
- /\*\*
510
-
511
- - @description: 单选框
512
- - @return {_}
513
- _/
519
+ /**
520
+ * @description: 单选框
521
+ * @return {*}
522
+ */
514
523
  "radio" = "radio",
515
524
  // /**
516
- // _ @description: 自定义元素,插槽组件
517
- // _ @return {_}
518
- // _/
525
+ // * @description: 自定义元素,插槽组件
526
+ // * @return {*}
527
+ // */
519
528
  // "form-item-slot" = "form-item-slot",
520
529
  /**
521
- - @description: 多选框
522
- - @return {_}
523
- _/
530
+ * @description: 多选框
531
+ * @return {*}
532
+ */
524
533
  "checkbox" = "checkbox",
525
- /\*\*
526
- - @description: 多选框列表,输入输出都是字符串列表 ["value1", "value2", "value3"]
527
- - @return {_}
528
- _/
534
+ /**
535
+ * @description: 多选框列表,输入输出都是字符串列表 ["value1", "value2", "value3"]
536
+ * @return {*}
537
+ */
529
538
  "checkbox-list" = "checkbox-list",
539
+ }
540
+
541
+