cc1-form 1.2.11 → 1.2.13

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.
@@ -82,7 +82,19 @@ export interface CurdConfig<T = any> {
82
82
  /**
83
83
  * 弹窗配置
84
84
  */
85
- dialog?: Record<string, any>;
85
+ dialog?: Partial<{
86
+ [key: string]: any;
87
+ /** 弹窗标题 */
88
+ title: string;
89
+ /** 弹窗宽度 */
90
+ width: any;
91
+ delete: Partial<{
92
+ /** 删除弹窗标题 */
93
+ title: string;
94
+ /** 删除弹窗内容 */
95
+ content: string | ((items: any[]) => any);
96
+ }>;
97
+ }>;
86
98
  /**
87
99
  * 额外的搜索附加信息
88
100
  */
@@ -157,6 +169,17 @@ export interface CurdConfig<T = any> {
157
169
  * 是否显示边框 默认显示
158
170
  */
159
171
  border: boolean;
172
+ /**
173
+ * 是否显示数字排序
174
+ * 默认不显示
175
+ */
176
+ index: Partial<{
177
+ [key: string]: any;
178
+ /** 是否显示选择 */
179
+ show: ((data: T) => boolean) | boolean;
180
+ /** 选择事件 */
181
+ on: any;
182
+ }> | ((data: T) => boolean) | boolean;
160
183
  /**
161
184
  * 是否可多选 - 通过conf.table.selection.list获取已选数据
162
185
  * 默认不显示
@@ -218,6 +241,10 @@ export interface CurdConfig<T = any> {
218
241
  * 工具栏配置
219
242
  */
220
243
  tools?: Partial<{
244
+ /**
245
+ * 是否显示序号-默认不显示
246
+ */
247
+ index: boolean;
221
248
  /**
222
249
  * 是否显示刷新-默认显示
223
250
  */
@@ -173,6 +173,10 @@ export default class TFormConfig {
173
173
  };
174
174
  /** 表格配置 */
175
175
  table: {
176
+ /**
177
+ * 是否显示序号-默认不显示
178
+ */
179
+ index: boolean;
176
180
  /** 表头标签宽度 默认100px */
177
181
  labelWidth: string;
178
182
  /** 表格组件大小 - 默认default */
@@ -19,6 +19,7 @@ declare const curdI18n: {
19
19
  cancel: string;
20
20
  submit: string;
21
21
  confirm: string;
22
+ deleteTitle: string;
22
23
  confirmDelete: string;
23
24
  confirmDeleteMessage: string;
24
25
  placeholderInput: string;
@@ -96,6 +97,7 @@ export default class TFormI18n {
96
97
  cancel: string;
97
98
  submit: string;
98
99
  confirm: string;
100
+ deleteTitle: string;
99
101
  confirmDelete: string;
100
102
  confirmDeleteMessage: string;
101
103
  placeholderInput: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc1-form",
3
- "version": "1.2.11",
3
+ "version": "1.2.13",
4
4
  "description": "我来助你-表单组件库",
5
5
  "repository": {
6
6
  "type": "git",