cc1-form 1.1.31 → 1.1.32

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.
@@ -166,6 +166,7 @@ export interface CurdConfig<T = any> {
166
166
  inlineEdit: boolean;
167
167
  /** 操作列配置 */
168
168
  operate: {
169
+ [key: string]: any;
169
170
  /** 操作列宽度-默认使用内容宽度 */
170
171
  width?: any;
171
172
  };
@@ -247,6 +248,8 @@ export interface CurdConfig<T = any> {
247
248
  * 新增编辑表单默认配置
248
249
  */
249
250
  form?: Partial<{
251
+ /** 标签宽度 默认100px */
252
+ labelWidth: string;
250
253
  /**
251
254
  * 是否使用斑马纹 默认使用
252
255
  */
@@ -267,14 +270,22 @@ export interface CurdConfig<T = any> {
267
270
  * 打开弹窗前执行处理
268
271
  */
269
272
  openBefore?: (data: T, update: {
273
+ /** 标题 */
274
+ title: string;
275
+ /** 类型 */
270
276
  type: any;
277
+ /** 表单数据 */
271
278
  form: T;
272
279
  }) => any;
273
280
  /**
274
281
  * 打开弹窗后执行处理
275
282
  */
276
283
  openAfter?: (data: T, update: {
284
+ /** 标题 */
285
+ title: string;
286
+ /** 类型 */
277
287
  type: any;
288
+ /** 表单数据 */
278
289
  form: T;
279
290
  }) => any;
280
291
  /**
@@ -285,14 +296,22 @@ export interface CurdConfig<T = any> {
285
296
  * 提交前执行处理
286
297
  */
287
298
  submitBefore?: (form: T, update: {
299
+ /** 标题 */
300
+ title: string;
301
+ /** 类型 */
288
302
  type: any;
303
+ /** 表单数据 */
289
304
  form: T;
290
305
  }) => any;
291
306
  /**
292
307
  * 提交后执行处理
293
308
  */
294
309
  submitAfter?: (form: T, update: {
310
+ /** 标题 */
311
+ title: string;
312
+ /** 类型 */
295
313
  type: any;
314
+ /** 表单数据 */
296
315
  form: T;
297
316
  }) => any;
298
317
  }>;
@@ -140,6 +140,8 @@ export default class TFormConfig {
140
140
  };
141
141
  /** 表格配置 */
142
142
  table: {
143
+ /** 表头标签宽度 默认100px */
144
+ labelWidth: string;
143
145
  /** 空文本 - 取自TFormI18n.tCurd('noData') */
144
146
  emptyText: string;
145
147
  /** 表头单元格类名 */
@@ -215,10 +217,6 @@ export default class TFormConfig {
215
217
  * 新增编辑表单配置 默认值
216
218
  */
217
219
  form: {
218
- /**
219
- * 标签宽度
220
- */
221
- labelWidth: string;
222
220
  /**
223
221
  * 宽度
224
222
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc1-form",
3
- "version": "1.1.31",
3
+ "version": "1.1.32",
4
4
  "description": "我来助你-表单组件库",
5
5
  "repository": {
6
6
  "type": "git",