cc1-form 1.4.3 → 1.4.5

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.
@@ -212,6 +212,8 @@ export interface CurdConfig<T = any> {
212
212
  scroll: boolean;
213
213
  /** 排序字段名 - 默认sortNo */
214
214
  field: string;
215
+ /** 排序方向 - asc:升序 desc:降序 默认升序 */
216
+ order: 'asc' | 'desc';
215
217
  /** 拖拽排序结束自定义排序,使rule字段失效 */
216
218
  onEnd: (data: T[]) => any;
217
219
  /** 排序规则 - index:按照当前索引自动从1开始排序 value:按照原有值重新分配排序 默认按照索引排序 */
@@ -486,6 +488,10 @@ export interface CurdConfigColumn<T = any> {
486
488
  * 新增表单的默认值
487
489
  */
488
490
  value?: any;
491
+ /**
492
+ * 新增编辑表单文本提示
493
+ */
494
+ tip?: string;
489
495
  /**
490
496
  * 表头存在子字段时,子字段列表配置
491
497
  */
@@ -686,6 +692,8 @@ export interface CurdConfigColumn<T = any> {
686
692
  form: Partial<{
687
693
  /** 新增编辑表单文本标签 如果为false则不显示标签 */
688
694
  label: string;
695
+ /** 新增编辑表单文本提示 */
696
+ tip: string;
689
697
  }>;
690
698
  }>;
691
699
  /**
@@ -808,6 +816,8 @@ export type CurdOptions<T = any> = {
808
816
  confirm: boolean;
809
817
  /** 表格直接操作切换后是否重新加载列表 默认需要重新加载列表 */
810
818
  loadList: boolean;
819
+ /** 操作成功后是否提示 默认提示 */
820
+ needTip: boolean;
811
821
  /** 切换绑定api,用于切换后执行处理 */
812
822
  api: (data: T, type: 'switch') => any;
813
823
  }>;
@@ -262,6 +262,7 @@ export default class TFormConfig {
262
262
  scroll: boolean;
263
263
  field: string;
264
264
  rule: "index" | "value";
265
+ order: "asc" | "desc";
265
266
  api: {};
266
267
  };
267
268
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc1-form",
3
- "version": "1.4.3",
3
+ "version": "1.4.5",
4
4
  "description": "我来助你-表单组件库",
5
5
  "repository": {
6
6
  "type": "git",