vue-business-kit 0.0.3 → 0.0.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/global.d.ts +0 -1
- package/dist/index.cjs.js +19 -19
- package/dist/index.css +1 -1
- package/dist/index.d.ts +48 -12
- package/dist/index.es.js +3203 -3193
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4368,20 +4368,44 @@ nativeScrollbar: boolean;
|
|
|
4368
4368
|
preserveExpandedContent: boolean;
|
|
4369
4369
|
}> | undefined>;
|
|
4370
4370
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
4371
|
-
delete: (
|
|
4372
|
-
|
|
4371
|
+
delete: (data: {
|
|
4372
|
+
action: "delete";
|
|
4373
|
+
data: any;
|
|
4374
|
+
}) => any;
|
|
4375
|
+
add: (data: {
|
|
4376
|
+
action: "add";
|
|
4377
|
+
data: any;
|
|
4378
|
+
}) => any;
|
|
4373
4379
|
search: (value: string, columns: string[]) => any;
|
|
4374
|
-
edit: (
|
|
4375
|
-
|
|
4380
|
+
edit: (data: {
|
|
4381
|
+
action: "edit";
|
|
4382
|
+
data: any;
|
|
4383
|
+
}, row: any) => any;
|
|
4384
|
+
batch: (data: {
|
|
4385
|
+
action: "batch";
|
|
4386
|
+
data: any;
|
|
4387
|
+
}) => any;
|
|
4376
4388
|
refresh: () => any;
|
|
4377
4389
|
export: (data: any[], columns: TableColumnCtx<DefaultRow>[]) => any;
|
|
4378
4390
|
paginationChange: (page: number, size: number) => any;
|
|
4379
4391
|
}, string, PublicProps, Readonly<TableInternalProps> & Readonly<{
|
|
4380
|
-
onDelete?: ((
|
|
4381
|
-
|
|
4392
|
+
onDelete?: ((data: {
|
|
4393
|
+
action: "delete";
|
|
4394
|
+
data: any;
|
|
4395
|
+
}) => any) | undefined;
|
|
4396
|
+
onAdd?: ((data: {
|
|
4397
|
+
action: "add";
|
|
4398
|
+
data: any;
|
|
4399
|
+
}) => any) | undefined;
|
|
4382
4400
|
onSearch?: ((value: string, columns: string[]) => any) | undefined;
|
|
4383
|
-
onEdit?: ((
|
|
4384
|
-
|
|
4401
|
+
onEdit?: ((data: {
|
|
4402
|
+
action: "edit";
|
|
4403
|
+
data: any;
|
|
4404
|
+
}, row: any) => any) | undefined;
|
|
4405
|
+
onBatch?: ((data: {
|
|
4406
|
+
action: "batch";
|
|
4407
|
+
data: any;
|
|
4408
|
+
}) => any) | undefined;
|
|
4385
4409
|
onRefresh?: (() => any) | undefined;
|
|
4386
4410
|
onExport?: ((data: any[], columns: TableColumnCtx<DefaultRow>[]) => any) | undefined;
|
|
4387
4411
|
onPaginationChange?: ((page: number, size: number) => any) | undefined;
|
|
@@ -8226,10 +8250,22 @@ export declare interface TableEmits {
|
|
|
8226
8250
|
export: [data: any[], columns: TableColumnCtx[]];
|
|
8227
8251
|
search: [value: string, columns: string[]];
|
|
8228
8252
|
paginationChange: [page: number, size: number];
|
|
8229
|
-
add: [
|
|
8230
|
-
|
|
8231
|
-
|
|
8232
|
-
|
|
8253
|
+
add: [data: {
|
|
8254
|
+
action: "add";
|
|
8255
|
+
data: any;
|
|
8256
|
+
}];
|
|
8257
|
+
edit: [data: {
|
|
8258
|
+
action: "edit";
|
|
8259
|
+
data: any;
|
|
8260
|
+
}, row: any];
|
|
8261
|
+
delete: [data: {
|
|
8262
|
+
action: "delete";
|
|
8263
|
+
data: any;
|
|
8264
|
+
}];
|
|
8265
|
+
batch: [data: {
|
|
8266
|
+
action: "batch";
|
|
8267
|
+
data: any;
|
|
8268
|
+
}];
|
|
8233
8269
|
}
|
|
8234
8270
|
|
|
8235
8271
|
export declare interface TableInstance {
|