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.
- package/dist/cc1-form.css +1 -1
- package/dist/cc1-form.js +877 -880
- package/dist/cc1-form.umd.cjs +1 -1
- package/dist/components/TCurd/com/form/column.vue.d.ts +24 -0
- package/dist/components/TCurd/com/form/field.vue.d.ts +14 -11
- package/dist/components/TCurd/core/table.d.ts +3 -2
- package/dist/components/TCurd/index.d.ts +40 -2
- package/dist/components/TCurd/index.vue.d.ts +134 -22
- package/dist/components/TCurd/indexType.d.ts +10 -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:按照原有值重新分配排序 默认按照索引排序 */
|
|
@@ -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
|
}>;
|