cc1-form 1.4.2 → 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.
- package/dist/cc1-form.js +1024 -1033
- package/dist/cc1-form.umd.cjs +1 -1
- package/dist/components/TCurd/com/form/column.vue.d.ts +16 -0
- package/dist/components/TCurd/core/table.d.ts +3 -2
- package/dist/components/TCurd/index.d.ts +28 -2
- package/dist/components/TCurd/index.vue.d.ts +98 -22
- package/dist/components/TCurd/indexType.d.ts +4 -0
- package/dist/utils/TFormConfig.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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
|
}>;
|