cc1-form 1.4.3 → 1.4.4

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:按照原有值重新分配排序 默认按照索引排序 */
@@ -808,6 +810,8 @@ export type CurdOptions<T = any> = {
808
810
  confirm: boolean;
809
811
  /** 表格直接操作切换后是否重新加载列表 默认需要重新加载列表 */
810
812
  loadList: boolean;
813
+ /** 操作成功后是否提示 默认提示 */
814
+ needTip: boolean;
811
815
  /** 切换绑定api,用于切换后执行处理 */
812
816
  api: (data: T, type: 'switch') => any;
813
817
  }>;
@@ -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.4",
4
4
  "description": "我来助你-表单组件库",
5
5
  "repository": {
6
6
  "type": "git",