cc1-form 1.2.24 → 1.2.25
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 +1752 -1784
- package/dist/cc1-form.umd.cjs +1 -1
- package/dist/components/TCurd/com/form/column.vue.d.ts +837 -2123
- package/dist/components/TCurd/com/form/field.vue.d.ts +62 -0
- package/dist/components/TCurd/com/form/layout.vue.d.ts +65 -0
- package/dist/components/TCurd/com/form/list.vue.d.ts +2 -2
- package/dist/components/TCurd/com/form/shared.d.ts +77 -0
- package/dist/components/TCurd/core/boundForm.d.ts +13 -0
- package/dist/components/TCurd/core/export.d.ts +13 -0
- package/dist/components/TCurd/core/formRef.d.ts +7 -0
- package/dist/components/TCurd/core/init.d.ts +11 -0
- package/dist/components/TCurd/core/page.d.ts +16 -0
- package/dist/components/TCurd/core/remove.d.ts +12 -0
- package/dist/components/TCurd/core/search.d.ts +15 -0
- package/dist/components/TCurd/core/table.d.ts +45 -0
- package/dist/components/TCurd/core/types.d.ts +14 -0
- package/dist/components/TCurd/core/update.d.ts +49 -0
- package/dist/components/TCurd/index.d.ts +3 -2348
- package/dist/components/TCurd/index.vue.d.ts +28 -5120
- package/dist/components/TCurd/indexType.d.ts +23 -1
- package/package.json +3 -3
- package/dist/components/TCurd/formColumn.vue.d.ts +0 -2142
|
@@ -339,6 +339,10 @@ export interface CurdConfig<T = any> {
|
|
|
339
339
|
* 默认栅格占比-默认为最大栅格占比的一半
|
|
340
340
|
*/
|
|
341
341
|
defaultSpan?: number;
|
|
342
|
+
/**
|
|
343
|
+
* 表单布局:row 横向栅格排列,column 纵向独占行排列
|
|
344
|
+
*/
|
|
345
|
+
layout?: 'row' | 'column';
|
|
342
346
|
/**
|
|
343
347
|
* 打开弹窗前执行处理
|
|
344
348
|
*/
|
|
@@ -489,6 +493,12 @@ export interface CurdConfigColumn<T = any> {
|
|
|
489
493
|
span: number;
|
|
490
494
|
/** 是否补充其他列空间 默认为false */
|
|
491
495
|
spanCol: boolean;
|
|
496
|
+
/** 是否强制换行,从当前字段开始新一行 */
|
|
497
|
+
rowBreak?: boolean;
|
|
498
|
+
/**
|
|
499
|
+
* 占用行高(12 栅格为一行,默认 12 占满一行;6 为半行,可与右侧跨两行字段对齐)
|
|
500
|
+
*/
|
|
501
|
+
row?: number;
|
|
492
502
|
/**
|
|
493
503
|
* 提示文本 - 返回字符串或者富文本内容
|
|
494
504
|
*/
|
|
@@ -880,7 +890,19 @@ export type CurdOptions<T = any> = {
|
|
|
880
890
|
export interface CurdFormColumn<T = any> {
|
|
881
891
|
item: CurdConfigColumn<T>;
|
|
882
892
|
span: number;
|
|
883
|
-
|
|
893
|
+
}
|
|
894
|
+
/** 表单栅格单元(含二维坐标,供 CSS Grid 渲染) */
|
|
895
|
+
export interface CurdFormGridCell<T = any> extends CurdFormColumn<T> {
|
|
896
|
+
/** 列宽(占 maxSpan 份数) */
|
|
897
|
+
colSpan: number;
|
|
898
|
+
/** 行高(12 栅格单位,对应 form.row) */
|
|
899
|
+
rowSpan: number;
|
|
900
|
+
/** 起始行(1-based 栅格行,对应 CSS grid-row) */
|
|
901
|
+
gridRow: number;
|
|
902
|
+
/** 起始列(1-based,对应 CSS grid-column) */
|
|
903
|
+
gridColumn: number;
|
|
904
|
+
/** 所在行带(用于斑马纹、spanCol) */
|
|
905
|
+
gridBand?: number;
|
|
884
906
|
}
|
|
885
907
|
export type CurdTableSize = 'large' | 'default' | 'small';
|
|
886
908
|
interface CurdSearchDto {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cc1-form",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.25",
|
|
4
4
|
"description": "我来助你-表单组件库",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"@types/node": "22.15.2",
|
|
50
50
|
"@vitejs/plugin-vue": "5.2.1",
|
|
51
51
|
"@vue/tsconfig": "0.7.0",
|
|
52
|
-
"cc1-js": "
|
|
53
|
-
"cc1-vue3": "
|
|
52
|
+
"cc1-js": "1.0.8",
|
|
53
|
+
"cc1-vue3": "1.0.13",
|
|
54
54
|
"element-plus": "2.9.7",
|
|
55
55
|
"less": "4.3.0",
|
|
56
56
|
"prettier": "3.2.5",
|