cc1-form 1.2.1 → 1.2.3

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.
@@ -653,6 +653,7 @@ export type CurdOptions<T = any> = {
653
653
  * 开关选项 - 更多配置:https://element-plus.org/zh-CN/component/switch#attributes
654
654
  */
655
655
  switch?: Partial<{
656
+ [key: string]: any;
656
657
  /**
657
658
  * 事件 文档:https://element-plus.org/zh-CN/component/switch#%E4%BA%8B%E4%BB%B6
658
659
  */
@@ -662,21 +663,32 @@ export type CurdOptions<T = any> = {
662
663
  */
663
664
  activeValue: any;
664
665
  /**
665
- * 开启值标签 默认开启
666
+ * 开启值文本 默认开启
666
667
  */
667
- activeLabel: string;
668
+ activeText: string;
668
669
  /**
669
670
  * 关闭值 默认false
670
671
  */
671
672
  inactiveValue: any;
672
673
  /**
673
- * 关闭值标签 默认关闭
674
+ * 关闭值文本 默认关闭
674
675
  */
675
- inactiveLabel: string;
676
+ inactiveText: string;
676
677
  /**
677
678
  * 表格直接操作切换前执行处理
678
679
  */
679
680
  tableBeforeChange: (key: string, data: any) => any;
681
+ /** 表格中直接操作切换配置 */
682
+ tableConfig: Partial<{
683
+ /** 是否在表格中进行切换,默认true */
684
+ change: boolean;
685
+ /** 表格直接操作切换后是否确认 默认需要确认 需要用户确认后才进行切换 */
686
+ confirm: boolean;
687
+ /** 表格直接操作切换后是否重新加载列表 默认需要重新加载列表 */
688
+ loadList: boolean;
689
+ /** 切换绑定api,用于切换后执行处理 */
690
+ api: (data: T) => any;
691
+ }>;
680
692
  }>;
681
693
  /**
682
694
  * 选择组件属性 - 更多配置:https://element-plus.org/zh-CN/component/select#select-attributes
@@ -326,6 +326,11 @@ export default class TFormConfig {
326
326
  switch: {
327
327
  activeValue: boolean;
328
328
  inactiveValue: boolean;
329
+ tableConfig: {
330
+ change: boolean;
331
+ confirm: boolean;
332
+ loadList: boolean;
333
+ };
329
334
  };
330
335
  treeSelect: {
331
336
  multiple: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc1-form",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "description": "我来助你-表单组件库",
5
5
  "repository": {
6
6
  "type": "git",