cc1-form 1.2.24 → 1.2.26
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 +1852 -1870
- 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 +50 -0
- package/dist/components/TCurd/index.d.ts +3 -2348
- package/dist/components/TCurd/index.vue.d.ts +44 -5124
- package/dist/components/TCurd/indexType.d.ts +28 -1
- package/package.json +3 -3
- package/dist/components/TCurd/formColumn.vue.d.ts +0 -2142
|
@@ -66,6 +66,11 @@ import type { curdConfType } from './index';
|
|
|
66
66
|
* - `form-{fieldKey}-start` — 表单字段开始位置,作用域参数:`{ row, item }`
|
|
67
67
|
* - `form-{fieldKey}-end` — 表单字段结束位置,作用域参数:`{ row, item }`
|
|
68
68
|
* - `form-{fieldKey}-right` — 表单字段右侧,作用域参数:`{ row, item }`
|
|
69
|
+
*
|
|
70
|
+
* **弹窗插槽:**
|
|
71
|
+
* - `dialog-start` — 弹窗开始位置,作用域参数:`{ row }` row = conf.update
|
|
72
|
+
* - `dialog-end` — 弹窗结束位置,作用域参数:`{ row }` row = conf.update
|
|
73
|
+
* - `dialog-footer` — 弹窗底部,作用域参数:`{ row }` row = conf.update
|
|
69
74
|
*/
|
|
70
75
|
export interface CurdConfig<T = any> {
|
|
71
76
|
/** 是否初始化就请求列表 - 默认为true */
|
|
@@ -339,6 +344,10 @@ export interface CurdConfig<T = any> {
|
|
|
339
344
|
* 默认栅格占比-默认为最大栅格占比的一半
|
|
340
345
|
*/
|
|
341
346
|
defaultSpan?: number;
|
|
347
|
+
/**
|
|
348
|
+
* 表单布局:row 横向栅格排列,column 纵向独占行排列
|
|
349
|
+
*/
|
|
350
|
+
layout?: 'row' | 'column';
|
|
342
351
|
/**
|
|
343
352
|
* 打开弹窗前执行处理
|
|
344
353
|
*/
|
|
@@ -489,6 +498,12 @@ export interface CurdConfigColumn<T = any> {
|
|
|
489
498
|
span: number;
|
|
490
499
|
/** 是否补充其他列空间 默认为false */
|
|
491
500
|
spanCol: boolean;
|
|
501
|
+
/** 是否强制换行,从当前字段开始新一行 */
|
|
502
|
+
rowBreak?: boolean;
|
|
503
|
+
/**
|
|
504
|
+
* 占用行高(12 栅格为一行,默认 12 占满一行;6 为半行,可与右侧跨两行字段对齐)
|
|
505
|
+
*/
|
|
506
|
+
row?: number;
|
|
492
507
|
/**
|
|
493
508
|
* 提示文本 - 返回字符串或者富文本内容
|
|
494
509
|
*/
|
|
@@ -880,7 +895,19 @@ export type CurdOptions<T = any> = {
|
|
|
880
895
|
export interface CurdFormColumn<T = any> {
|
|
881
896
|
item: CurdConfigColumn<T>;
|
|
882
897
|
span: number;
|
|
883
|
-
|
|
898
|
+
}
|
|
899
|
+
/** 表单栅格单元(含二维坐标,供 CSS Grid 渲染) */
|
|
900
|
+
export interface CurdFormGridCell<T = any> extends CurdFormColumn<T> {
|
|
901
|
+
/** 列宽(占 maxSpan 份数) */
|
|
902
|
+
colSpan: number;
|
|
903
|
+
/** 行高(12 栅格单位,对应 form.row) */
|
|
904
|
+
rowSpan: number;
|
|
905
|
+
/** 起始行(1-based 栅格行,对应 CSS grid-row) */
|
|
906
|
+
gridRow: number;
|
|
907
|
+
/** 起始列(1-based,对应 CSS grid-column) */
|
|
908
|
+
gridColumn: number;
|
|
909
|
+
/** 所在行带(用于斑马纹、spanCol) */
|
|
910
|
+
gridBand?: number;
|
|
884
911
|
}
|
|
885
912
|
export type CurdTableSize = 'large' | 'default' | 'small';
|
|
886
913
|
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.26",
|
|
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",
|