jky-component-lib 0.0.97 → 0.0.99

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.
Files changed (57) hide show
  1. package/dist/es/add-input/style.css +1 -1
  2. package/dist/es/amap/ATrackPlayback.vue.d.ts +69 -0
  3. package/dist/es/amap/ATrackPlayback.vue.js +237 -0
  4. package/dist/es/amap/ATrackPlayback.vue3.js +5 -0
  5. package/dist/es/amap/index.d.ts +3 -1
  6. package/dist/es/amap/index.js +5 -0
  7. package/dist/es/amap/style.css +2 -6
  8. package/dist/es/amap/style2.css +5 -12
  9. package/dist/es/amap/style3.css +14 -0
  10. package/dist/es/components.js +4 -1
  11. package/dist/es/form/Form.vue.d.ts +3 -3
  12. package/dist/es/form/Form.vue.js +88 -155
  13. package/dist/es/form/FormItem.vue.js +3 -1
  14. package/dist/es/form/SelectTable.vue.js +14 -5
  15. package/dist/es/form/style.css +1 -21
  16. package/dist/es/index.js +7 -2
  17. package/dist/es/package.json.js +1 -1
  18. package/dist/es/page-layout/PageLayout.vue.js +1 -1
  19. package/dist/es/page-table/ActionColumn.vue.d.ts +11 -0
  20. package/dist/es/page-table/ActionColumn.vue.js +137 -0
  21. package/dist/es/page-table/ActionColumn.vue3.js +5 -0
  22. package/dist/es/page-table/PageTable.vue.d.ts +35 -26
  23. package/dist/es/page-table/PageTable.vue.js +84 -33
  24. package/dist/es/page-table/index.d.ts +3 -1
  25. package/dist/es/page-table/index.js +4 -0
  26. package/dist/es/page-table/style.css +9 -0
  27. package/dist/es/style.css +90 -2
  28. package/dist/es/styles.css +1 -1
  29. package/dist/lib/add-input/style.css +1 -1
  30. package/dist/lib/amap/ATrackPlayback.vue.d.ts +69 -0
  31. package/dist/lib/amap/ATrackPlayback.vue.js +237 -0
  32. package/dist/lib/amap/ATrackPlayback.vue3.js +5 -0
  33. package/dist/lib/amap/index.d.ts +3 -1
  34. package/dist/lib/amap/index.js +5 -0
  35. package/dist/lib/amap/style.css +2 -6
  36. package/dist/lib/amap/style2.css +5 -12
  37. package/dist/lib/amap/style3.css +14 -0
  38. package/dist/lib/components.js +32 -30
  39. package/dist/lib/form/Form.vue.d.ts +3 -3
  40. package/dist/lib/form/Form.vue.js +86 -153
  41. package/dist/lib/form/FormItem.vue.js +3 -1
  42. package/dist/lib/form/SelectTable.vue.js +13 -4
  43. package/dist/lib/form/style.css +1 -21
  44. package/dist/lib/index.js +25 -20
  45. package/dist/lib/package.json.js +1 -1
  46. package/dist/lib/page-layout/PageLayout.vue.js +1 -1
  47. package/dist/lib/page-table/ActionColumn.vue.d.ts +11 -0
  48. package/dist/lib/page-table/ActionColumn.vue.js +137 -0
  49. package/dist/lib/page-table/ActionColumn.vue3.js +5 -0
  50. package/dist/lib/page-table/PageTable.vue.d.ts +35 -26
  51. package/dist/lib/page-table/PageTable.vue.js +83 -32
  52. package/dist/lib/page-table/index.d.ts +3 -1
  53. package/dist/lib/page-table/index.js +4 -0
  54. package/dist/lib/page-table/style.css +9 -0
  55. package/dist/lib/style.css +90 -2
  56. package/dist/lib/styles.css +1 -1
  57. package/package.json +1 -1
@@ -1,5 +1,6 @@
1
1
  import { TableColumnCtx } from 'element-plus';
2
2
  import { PageTableProps, PaginationConfig } from './types';
3
+ import { nextTick } from 'vue';
3
4
  type __VLS_Props = PageTableProps;
4
5
  type __VLS_PublicProps = {
5
6
  'pagination'?: PaginationConfig;
@@ -28,7 +29,6 @@ declare function __VLS_template(): {
28
29
  }) => any) | undefined;
29
30
  }>, {
30
31
  validate: (callback?: (isValid: boolean, invalidFields?: any) => void) => Promise<boolean>;
31
- resetFields: () => void;
32
32
  clearValidate: (props?: any) => void;
33
33
  getFormInstance: () => ({
34
34
  $: import('vue').ComponentInternalInstance;
@@ -103,7 +103,7 @@ declare function __VLS_template(): {
103
103
  errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
104
104
  };
105
105
  $forceUpdate: () => void;
106
- $nextTick: typeof import('vue').nextTick;
106
+ $nextTick: typeof nextTick;
107
107
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
108
108
  } & Readonly<{
109
109
  scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
@@ -202,7 +202,7 @@ declare function __VLS_template(): {
202
202
  errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
203
203
  };
204
204
  $forceUpdate: () => void;
205
- $nextTick: typeof import('vue').nextTick;
205
+ $nextTick: typeof nextTick;
206
206
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
207
207
  } & Readonly<{
208
208
  scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
@@ -300,7 +300,7 @@ declare function __VLS_template(): {
300
300
  errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
301
301
  };
302
302
  $forceUpdate: () => void;
303
- $nextTick: typeof import('vue').nextTick;
303
+ $nextTick: typeof nextTick;
304
304
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
305
305
  } & Readonly<{
306
306
  scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
@@ -337,11 +337,11 @@ declare function __VLS_template(): {
337
337
  }) => any;
338
338
  }, import('vue').PublicProps, {
339
339
  size: import('element-plus').ComponentSize;
340
+ disabled: boolean;
340
341
  grid: import('../form').GridConfig;
341
342
  inline: boolean;
342
343
  labelPosition: "left" | "right" | "top";
343
344
  labelWidth: string | number;
344
- showTitle: boolean;
345
345
  gutter: number;
346
346
  defaultSpan: number;
347
347
  responsive: boolean;
@@ -350,6 +350,8 @@ declare function __VLS_template(): {
350
350
  footerClass: string;
351
351
  submitText: string;
352
352
  cancelText: string;
353
+ submitDisabled: boolean;
354
+ cancelDisabled: boolean;
353
355
  showCount: number;
354
356
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
355
357
  formRef: ({
@@ -425,7 +427,7 @@ declare function __VLS_template(): {
425
427
  errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
426
428
  };
427
429
  $forceUpdate: () => void;
428
- $nextTick: typeof import('vue').nextTick;
430
+ $nextTick: typeof nextTick;
429
431
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
430
432
  } & Readonly<{
431
433
  scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
@@ -471,7 +473,6 @@ declare function __VLS_template(): {
471
473
  }) => any) | undefined;
472
474
  }>, {
473
475
  validate: (callback?: (isValid: boolean, invalidFields?: any) => void) => Promise<boolean>;
474
- resetFields: () => void;
475
476
  clearValidate: (props?: any) => void;
476
477
  getFormInstance: () => ({
477
478
  $: import('vue').ComponentInternalInstance;
@@ -546,7 +547,7 @@ declare function __VLS_template(): {
546
547
  errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
547
548
  };
548
549
  $forceUpdate: () => void;
549
- $nextTick: typeof import('vue').nextTick;
550
+ $nextTick: typeof nextTick;
550
551
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
551
552
  } & Readonly<{
552
553
  scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
@@ -645,7 +646,7 @@ declare function __VLS_template(): {
645
646
  errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
646
647
  };
647
648
  $forceUpdate: () => void;
648
- $nextTick: typeof import('vue').nextTick;
649
+ $nextTick: typeof nextTick;
649
650
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
650
651
  } & Readonly<{
651
652
  scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
@@ -743,7 +744,7 @@ declare function __VLS_template(): {
743
744
  errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
744
745
  };
745
746
  $forceUpdate: () => void;
746
- $nextTick: typeof import('vue').nextTick;
747
+ $nextTick: typeof nextTick;
747
748
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
748
749
  } & Readonly<{
749
750
  scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
@@ -771,11 +772,11 @@ declare function __VLS_template(): {
771
772
  }) | undefined>;
772
773
  }, {}, {}, {}, {
773
774
  size: import('element-plus').ComponentSize;
775
+ disabled: boolean;
774
776
  grid: import('../form').GridConfig;
775
777
  inline: boolean;
776
778
  labelPosition: "left" | "right" | "top";
777
779
  labelWidth: string | number;
778
- showTitle: boolean;
779
780
  gutter: number;
780
781
  defaultSpan: number;
781
782
  responsive: boolean;
@@ -784,6 +785,8 @@ declare function __VLS_template(): {
784
785
  footerClass: string;
785
786
  submitText: string;
786
787
  cancelText: string;
788
+ submitDisabled: boolean;
789
+ cancelDisabled: boolean;
787
790
  showCount: number;
788
791
  }> | null;
789
792
  tableRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<globalThis.ExtractPropTypes<{
@@ -1360,7 +1363,8 @@ declare function __VLS_template(): {
1360
1363
  updateTableScrollY: () => void;
1361
1364
  assertRowKey: () => void;
1362
1365
  updateColumns: () => void;
1363
- scheduleLayout: (needUpdateColumns?: boolean, immediate?: boolean) => void;
1366
+ scheduleLayout: (needUpdateColumns?: boolean, immediate
1367
+ /** @type { [typeof __VLS_components.ElTableColumn, typeof __VLS_components.ElTableColumn, ] } */ ? /** @type { [typeof __VLS_components.ElTableColumn, typeof __VLS_components.ElTableColumn, ] } */: boolean) => void;
1364
1368
  isSelected: (row: any) => boolean;
1365
1369
  clearSelection: () => void;
1366
1370
  cleanSelection: () => void;
@@ -2708,7 +2712,8 @@ declare function __VLS_template(): {
2708
2712
  updateTableScrollY: () => void;
2709
2713
  assertRowKey: () => void;
2710
2714
  updateColumns: () => void;
2711
- scheduleLayout: (needUpdateColumns?: boolean, immediate?: boolean) => void;
2715
+ scheduleLayout: (needUpdateColumns?: boolean, immediate
2716
+ /** @type { [typeof __VLS_components.ElTableColumn, typeof __VLS_components.ElTableColumn, ] } */ ? /** @type { [typeof __VLS_components.ElTableColumn, typeof __VLS_components.ElTableColumn, ] } */: boolean) => void;
2712
2717
  isSelected: (row: any) => boolean;
2713
2718
  clearSelection: () => void;
2714
2719
  cleanSelection: () => void;
@@ -2979,7 +2984,6 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
2979
2984
  }) => any) | undefined;
2980
2985
  }>, {
2981
2986
  validate: (callback?: (isValid: boolean, invalidFields?: any) => void) => Promise<boolean>;
2982
- resetFields: () => void;
2983
2987
  clearValidate: (props?: any) => void;
2984
2988
  getFormInstance: () => ({
2985
2989
  $: import('vue').ComponentInternalInstance;
@@ -3054,7 +3058,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
3054
3058
  errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
3055
3059
  };
3056
3060
  $forceUpdate: () => void;
3057
- $nextTick: typeof import('vue').nextTick;
3061
+ $nextTick: typeof nextTick;
3058
3062
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
3059
3063
  } & Readonly<{
3060
3064
  scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
@@ -3153,7 +3157,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
3153
3157
  errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
3154
3158
  };
3155
3159
  $forceUpdate: () => void;
3156
- $nextTick: typeof import('vue').nextTick;
3160
+ $nextTick: typeof nextTick;
3157
3161
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
3158
3162
  } & Readonly<{
3159
3163
  scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
@@ -3251,7 +3255,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
3251
3255
  errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
3252
3256
  };
3253
3257
  $forceUpdate: () => void;
3254
- $nextTick: typeof import('vue').nextTick;
3258
+ $nextTick: typeof nextTick;
3255
3259
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
3256
3260
  } & Readonly<{
3257
3261
  scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
@@ -3288,11 +3292,11 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
3288
3292
  }) => any;
3289
3293
  }, import('vue').PublicProps, {
3290
3294
  size: import('element-plus').ComponentSize;
3295
+ disabled: boolean;
3291
3296
  grid: import('../form').GridConfig;
3292
3297
  inline: boolean;
3293
3298
  labelPosition: "left" | "right" | "top";
3294
3299
  labelWidth: string | number;
3295
- showTitle: boolean;
3296
3300
  gutter: number;
3297
3301
  defaultSpan: number;
3298
3302
  responsive: boolean;
@@ -3301,6 +3305,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
3301
3305
  footerClass: string;
3302
3306
  submitText: string;
3303
3307
  cancelText: string;
3308
+ submitDisabled: boolean;
3309
+ cancelDisabled: boolean;
3304
3310
  showCount: number;
3305
3311
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
3306
3312
  formRef: ({
@@ -3376,7 +3382,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
3376
3382
  errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
3377
3383
  };
3378
3384
  $forceUpdate: () => void;
3379
- $nextTick: typeof import('vue').nextTick;
3385
+ $nextTick: typeof nextTick;
3380
3386
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
3381
3387
  } & Readonly<{
3382
3388
  scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
@@ -3422,7 +3428,6 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
3422
3428
  }) => any) | undefined;
3423
3429
  }>, {
3424
3430
  validate: (callback?: (isValid: boolean, invalidFields?: any) => void) => Promise<boolean>;
3425
- resetFields: () => void;
3426
3431
  clearValidate: (props?: any) => void;
3427
3432
  getFormInstance: () => ({
3428
3433
  $: import('vue').ComponentInternalInstance;
@@ -3497,7 +3502,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
3497
3502
  errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
3498
3503
  };
3499
3504
  $forceUpdate: () => void;
3500
- $nextTick: typeof import('vue').nextTick;
3505
+ $nextTick: typeof nextTick;
3501
3506
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
3502
3507
  } & Readonly<{
3503
3508
  scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
@@ -3596,7 +3601,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
3596
3601
  errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
3597
3602
  };
3598
3603
  $forceUpdate: () => void;
3599
- $nextTick: typeof import('vue').nextTick;
3604
+ $nextTick: typeof nextTick;
3600
3605
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
3601
3606
  } & Readonly<{
3602
3607
  scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
@@ -3694,7 +3699,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
3694
3699
  errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
3695
3700
  };
3696
3701
  $forceUpdate: () => void;
3697
- $nextTick: typeof import('vue').nextTick;
3702
+ $nextTick: typeof nextTick;
3698
3703
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
3699
3704
  } & Readonly<{
3700
3705
  scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
@@ -3722,11 +3727,11 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
3722
3727
  }) | undefined>;
3723
3728
  }, {}, {}, {}, {
3724
3729
  size: import('element-plus').ComponentSize;
3730
+ disabled: boolean;
3725
3731
  grid: import('../form').GridConfig;
3726
3732
  inline: boolean;
3727
3733
  labelPosition: "left" | "right" | "top";
3728
3734
  labelWidth: string | number;
3729
- showTitle: boolean;
3730
3735
  gutter: number;
3731
3736
  defaultSpan: number;
3732
3737
  responsive: boolean;
@@ -3735,6 +3740,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
3735
3740
  footerClass: string;
3736
3741
  submitText: string;
3737
3742
  cancelText: string;
3743
+ submitDisabled: boolean;
3744
+ cancelDisabled: boolean;
3738
3745
  showCount: number;
3739
3746
  }> | null;
3740
3747
  tableRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<globalThis.ExtractPropTypes<{
@@ -4311,7 +4318,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
4311
4318
  updateTableScrollY: () => void;
4312
4319
  assertRowKey: () => void;
4313
4320
  updateColumns: () => void;
4314
- scheduleLayout: (needUpdateColumns?: boolean, immediate?: boolean) => void;
4321
+ scheduleLayout: (needUpdateColumns?: boolean, immediate
4322
+ /** @type { [typeof __VLS_components.ElTableColumn, typeof __VLS_components.ElTableColumn, ] } */ ? /** @type { [typeof __VLS_components.ElTableColumn, typeof __VLS_components.ElTableColumn, ] } */: boolean) => void;
4315
4323
  isSelected: (row: any) => boolean;
4316
4324
  clearSelection: () => void;
4317
4325
  cleanSelection: () => void;
@@ -5659,7 +5667,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
5659
5667
  updateTableScrollY: () => void;
5660
5668
  assertRowKey: () => void;
5661
5669
  updateColumns: () => void;
5662
- scheduleLayout: (needUpdateColumns?: boolean, immediate?: boolean) => void;
5670
+ scheduleLayout: (needUpdateColumns?: boolean, immediate
5671
+ /** @type { [typeof __VLS_components.ElTableColumn, typeof __VLS_components.ElTableColumn, ] } */ ? /** @type { [typeof __VLS_components.ElTableColumn, typeof __VLS_components.ElTableColumn, ] } */: boolean) => void;
5663
5672
  isSelected: (row: any) => boolean;
5664
5673
  clearSelection: () => void;
5665
5674
  cleanSelection: () => void;
@@ -37,10 +37,12 @@ var __async = (__this, __arguments, generator) => {
37
37
  step((generator = generator.apply(__this, __arguments)).next());
38
38
  });
39
39
  };
40
- import { defineComponent, ref, watch, useModel, computed, onMounted, resolveDirective, openBlock, createElementBlock, normalizeClass, createBlock, unref, withCtx, createVNode, mergeProps, createCommentVNode, resolveDynamicComponent, withDirectives, Fragment, renderList, renderSlot, createTextVNode, toDisplayString, normalizeStyle, mergeModels } from "vue";
40
+ import { defineComponent, ref, watch, useModel, computed, onMounted, resolveDirective, openBlock, createElementBlock, normalizeClass, createBlock, unref, withCtx, createVNode, mergeProps, createCommentVNode, resolveDynamicComponent, withDirectives, Fragment, renderList, renderSlot, createTextVNode, toDisplayString, normalizeStyle, mergeModels, nextTick } from "vue";
41
41
  import { useFullscreen } from "@vueuse/core";
42
42
  import { ElCard, ElTable, ElTableColumn, ElScrollbar, ElPagination } from "element-plus";
43
43
  import { JkyForm } from "../form/index.js";
44
+ import _sfc_main$2 from "./ActionColumn.vue.js";
45
+ /* empty css */
44
46
  import _sfc_main$1 from "./Toolbar.vue.js";
45
47
  /* empty css */
46
48
  const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
@@ -72,7 +74,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
72
74
  paginationProps: { default: () => ({}) },
73
75
  toolbarButtonLimit: { default: 0 },
74
76
  toolbarButtons: {},
75
- autoSearchDelay: { default: 500 }
77
+ autoSearchDelay: { default: 500 },
78
+ actionColumn: { type: [Object, Boolean] }
76
79
  }, {
77
80
  "pagination": {
78
81
  default: () => ({
@@ -148,6 +151,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
148
151
  function getColumnProps(column) {
149
152
  return __spreadValues({}, column);
150
153
  }
154
+ const _showActionColumn = computed(() => {
155
+ if (props.actionColumn === false)
156
+ return false;
157
+ if (!props.actionColumn)
158
+ return true;
159
+ const config = props.actionColumn;
160
+ return config.show !== false;
161
+ });
162
+ const _actionColumnConfig = computed(() => {
163
+ if (props.actionColumn === false)
164
+ return void 0;
165
+ if (!props.actionColumn)
166
+ return void 0;
167
+ return props.actionColumn;
168
+ });
169
+ function _handleActionColumnClick(_button, _row, _index) {
170
+ }
151
171
  function buildApiParams() {
152
172
  var _a, _b;
153
173
  const baseParams = {
@@ -206,6 +226,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
206
226
  pagination.value.total = 0;
207
227
  } finally {
208
228
  isLoading.value = false;
229
+ refreshTableLayout();
209
230
  }
210
231
  });
211
232
  }
@@ -270,6 +291,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
270
291
  function handleSortChange({ column, prop, order }) {
271
292
  emit("sortChange", { column, prop, order });
272
293
  }
294
+ function refreshTableLayout() {
295
+ nextTick(() => {
296
+ var _a;
297
+ (_a = tableRef.value) == null ? void 0 : _a.doLayout();
298
+ });
299
+ }
273
300
  __expose({
274
301
  refresh: loadData,
275
302
  getFilterData: () => __spreadValues({}, form.value),
@@ -328,7 +355,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
328
355
  createVNode(unref(JkyForm), mergeProps({
329
356
  ref_key: "formRef",
330
357
  ref: formRef
331
- }, __spreadValues({ inline: true }, __props.formProps), {
358
+ }, __spreadValues({ inline: true, grid: true }, __props.formProps), {
332
359
  modelValue: form.value,
333
360
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => form.value = $event),
334
361
  "show-footer": true,
@@ -377,36 +404,60 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
377
404
  onRowDblclick: handleRowDblclick,
378
405
  onSortChange: handleSortChange
379
406
  }), {
380
- default: withCtx(() => [
381
- __props.selection ? (openBlock(), createBlock(unref(ElTableColumn), {
382
- key: 0,
383
- type: "selection",
384
- width: "55",
385
- align: "center"
386
- })) : createCommentVNode("", true),
387
- (openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, (column) => {
388
- return openBlock(), createBlock(unref(ElTableColumn), mergeProps({
389
- key: column.prop
390
- }, { ref_for: true }, getColumnProps(column)), {
391
- default: withCtx((scope) => [
392
- renderSlot(_ctx.$slots, `column-${column.prop}`, {
393
- row: scope.row,
394
- column: scope.column,
395
- index: scope.$index
396
- }, () => {
397
- var _a3;
398
- return [
399
- column.render ? (openBlock(), createBlock(resolveDynamicComponent((_a3 = column.render) == null ? void 0 : _a3.call(column, scope)), { key: 0 })) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
400
- createTextVNode(toDisplayString(column.formatter ? column.formatter(scope.row, scope.column, scope.row[column.prop], scope.$index) : scope.row[column.prop]), 1)
401
- ], 64))
402
- ];
403
- })
404
- ]),
405
- _: 2
406
- }, 1040);
407
- }), 128)),
408
- renderSlot(_ctx.$slots, "columns")
409
- ]),
407
+ default: withCtx(() => {
408
+ var _a3, _b3, _c3, _d2;
409
+ return [
410
+ __props.selection ? (openBlock(), createBlock(unref(ElTableColumn), {
411
+ key: 0,
412
+ type: "selection",
413
+ width: "55",
414
+ align: "center"
415
+ })) : createCommentVNode("", true),
416
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, (column) => {
417
+ return openBlock(), createBlock(unref(ElTableColumn), mergeProps({
418
+ key: column.prop
419
+ }, { ref_for: true }, getColumnProps(column)), {
420
+ default: withCtx((scope) => [
421
+ renderSlot(_ctx.$slots, `column-${column.prop}`, {
422
+ row: scope.row,
423
+ column: scope.column,
424
+ index: scope.$index
425
+ }, () => {
426
+ var _a4;
427
+ return [
428
+ column.render ? (openBlock(), createBlock(resolveDynamicComponent((_a4 = column.render) == null ? void 0 : _a4.call(column, scope)), { key: 0 })) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
429
+ createTextVNode(toDisplayString(column.formatter ? column.formatter(scope.row, scope.column, scope.row[column.prop], scope.$index) : scope.row[column.prop]), 1)
430
+ ], 64))
431
+ ];
432
+ })
433
+ ]),
434
+ _: 2
435
+ }, 1040);
436
+ }), 128)),
437
+ _showActionColumn.value ? (openBlock(), createBlock(unref(ElTableColumn), {
438
+ key: 1,
439
+ label: ((_a3 = _actionColumnConfig.value) == null ? void 0 : _a3.label) || "操作",
440
+ width: (_b3 = _actionColumnConfig.value) == null ? void 0 : _b3.width,
441
+ fixed: (_c3 = _actionColumnConfig.value) == null ? void 0 : _c3.fixed,
442
+ align: ((_d2 = _actionColumnConfig.value) == null ? void 0 : _d2.align) || "center"
443
+ }, {
444
+ default: withCtx((scope) => {
445
+ var _a4, _b4, _c4;
446
+ return [
447
+ ((_a4 = _actionColumnConfig.value) == null ? void 0 : _a4.render) ? (openBlock(), createBlock(resolveDynamicComponent((_c4 = (_b4 = _actionColumnConfig.value) == null ? void 0 : _b4.render) == null ? void 0 : _c4.call(_b4, scope)), { key: 0 })) : (openBlock(), createBlock(_sfc_main$2, {
448
+ key: 1,
449
+ row: scope.row,
450
+ index: scope.$index,
451
+ config: _actionColumnConfig.value,
452
+ onClick: _handleActionColumnClick
453
+ }, null, 8, ["row", "index", "config"]))
454
+ ];
455
+ }),
456
+ _: 1
457
+ }, 8, ["label", "width", "fixed", "align"])) : createCommentVNode("", true),
458
+ renderSlot(_ctx.$slots, "columns")
459
+ ];
460
+ }),
410
461
  _: 3
411
462
  }, 16, ["data", "border", "stripe", "height", "max-height", "empty-text"])), [
412
463
  [_directive_loading, isLoading.value]
@@ -1,5 +1,7 @@
1
1
  import { InstallWithSFC } from '../utils/types';
2
+ import { default as ActionColumn } from './ActionColumn.vue';
2
3
  import { default as PageTable } from './PageTable.vue';
3
- export type { ApiParamsGetter, FilterItemConfig, PageTableEmits, PageTableExpose, PageTableProps, PaginationConfig, TableApiFunction, TableApiResponse, TableColumnConfig, TableDataSource, TableResponseProps, ToolbarButtonConfig, ToolbarEmits, ToolbarProps, } from './types';
4
+ export type { ActionColumnButtonConfig, ActionColumnConfig, ActionColumnEmits, ActionColumnProps, ApiParamsGetter, FilterItemConfig, PageTableEmits, PageTableExpose, PageTableProps, PaginationConfig, TableApiFunction, TableApiResponse, TableColumnConfig, TableDataSource, TableResponseProps, ToolbarButtonConfig, ToolbarEmits, ToolbarProps, } from './types';
4
5
  export declare const JkyPageTable: InstallWithSFC<typeof PageTable>;
6
+ export declare const JkyActionColumn: InstallWithSFC<typeof ActionColumn>;
5
7
  export default JkyPageTable;
@@ -1,8 +1,12 @@
1
1
  import { installWithSFC } from "../utils/with-install.js";
2
+ import _sfc_main$1 from "./ActionColumn.vue.js";
3
+ /* empty css */
2
4
  import _sfc_main from "./PageTable.vue.js";
3
5
  /* empty css */
4
6
  const JkyPageTable = installWithSFC(_sfc_main);
7
+ const JkyActionColumn = installWithSFC(_sfc_main$1);
5
8
  export {
9
+ JkyActionColumn,
6
10
  JkyPageTable,
7
11
  JkyPageTable as default
8
12
  };
@@ -7,4 +7,13 @@
7
7
  justify-content: var(--jky-page-table_pagination-position);
8
8
  }
9
9
  }
10
+ .el-table__header col[name="gutter"] {
11
+ /* display: table-cell !important; */
12
+ }
13
+ }
14
+ /* ActionColumn 组件样式 */
15
+ .jky-action-column {
16
+ .el-button + .el-button {
17
+ margin-left: 0;
18
+ }
10
19
  }
package/dist/es/style.css CHANGED
@@ -1350,6 +1350,70 @@
1350
1350
  mask-repeat: no-repeat;
1351
1351
  }
1352
1352
 
1353
+ .icon-\[mdi--content-copy\] {
1354
+ width: 1em;
1355
+ height: 1em;
1356
+ -webkit-mask-image: var(--svg);
1357
+ -webkit-mask-image: var(--svg);
1358
+ -webkit-mask-image: var(--svg);
1359
+ mask-image: var(--svg);
1360
+ --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M19 21H8V7h11m0-2H8a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2m-3-4H4a2 2 0 0 0-2 2v14h2V3h12z'/%3E%3C/svg%3E");
1361
+ background-color: currentColor;
1362
+ display: inline-block;
1363
+ -webkit-mask-size: 100% 100%;
1364
+ mask-size: 100% 100%;
1365
+ -webkit-mask-repeat: no-repeat;
1366
+ mask-repeat: no-repeat;
1367
+ }
1368
+
1369
+ .icon-\[mdi--delete\] {
1370
+ width: 1em;
1371
+ height: 1em;
1372
+ -webkit-mask-image: var(--svg);
1373
+ -webkit-mask-image: var(--svg);
1374
+ -webkit-mask-image: var(--svg);
1375
+ mask-image: var(--svg);
1376
+ --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M19 4h-3.5l-1-1h-5l-1 1H5v2h14M6 19a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V7H6z'/%3E%3C/svg%3E");
1377
+ background-color: currentColor;
1378
+ display: inline-block;
1379
+ -webkit-mask-size: 100% 100%;
1380
+ mask-size: 100% 100%;
1381
+ -webkit-mask-repeat: no-repeat;
1382
+ mask-repeat: no-repeat;
1383
+ }
1384
+
1385
+ .icon-\[mdi--download\] {
1386
+ width: 1em;
1387
+ height: 1em;
1388
+ -webkit-mask-image: var(--svg);
1389
+ -webkit-mask-image: var(--svg);
1390
+ -webkit-mask-image: var(--svg);
1391
+ mask-image: var(--svg);
1392
+ --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M5 20h14v-2H5m14-9h-4V3H9v6H5l7 7z'/%3E%3C/svg%3E");
1393
+ background-color: currentColor;
1394
+ display: inline-block;
1395
+ -webkit-mask-size: 100% 100%;
1396
+ mask-size: 100% 100%;
1397
+ -webkit-mask-repeat: no-repeat;
1398
+ mask-repeat: no-repeat;
1399
+ }
1400
+
1401
+ .icon-\[mdi--eye\] {
1402
+ width: 1em;
1403
+ height: 1em;
1404
+ -webkit-mask-image: var(--svg);
1405
+ -webkit-mask-image: var(--svg);
1406
+ -webkit-mask-image: var(--svg);
1407
+ mask-image: var(--svg);
1408
+ --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M12 9a3 3 0 0 0-3 3a3 3 0 0 0 3 3a3 3 0 0 0 3-3a3 3 0 0 0-3-3m0 8a5 5 0 0 1-5-5a5 5 0 0 1 5-5a5 5 0 0 1 5 5a5 5 0 0 1-5 5m0-12.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5'/%3E%3C/svg%3E");
1409
+ background-color: currentColor;
1410
+ display: inline-block;
1411
+ -webkit-mask-size: 100% 100%;
1412
+ mask-size: 100% 100%;
1413
+ -webkit-mask-repeat: no-repeat;
1414
+ mask-repeat: no-repeat;
1415
+ }
1416
+
1353
1417
  .icon-\[mdi--format-list-bulleted\] {
1354
1418
  width: 1em;
1355
1419
  height: 1em;
@@ -1398,6 +1462,22 @@
1398
1462
  mask-repeat: no-repeat;
1399
1463
  }
1400
1464
 
1465
+ .icon-\[mdi--pencil\] {
1466
+ width: 1em;
1467
+ height: 1em;
1468
+ -webkit-mask-image: var(--svg);
1469
+ -webkit-mask-image: var(--svg);
1470
+ -webkit-mask-image: var(--svg);
1471
+ mask-image: var(--svg);
1472
+ --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M20.71 7.04c.39-.39.39-1.04 0-1.41l-2.34-2.34c-.37-.39-1.02-.39-1.41 0l-1.84 1.83l3.75 3.75M3 17.25V21h3.75L17.81 9.93l-3.75-3.75z'/%3E%3C/svg%3E");
1473
+ background-color: currentColor;
1474
+ display: inline-block;
1475
+ -webkit-mask-size: 100% 100%;
1476
+ mask-size: 100% 100%;
1477
+ -webkit-mask-repeat: no-repeat;
1478
+ mask-repeat: no-repeat;
1479
+ }
1480
+
1401
1481
  .icon-\[mdi--refresh\] {
1402
1482
  width: 1em;
1403
1483
  height: 1em;
@@ -1566,8 +1646,8 @@
1566
1646
  height: 100vh;
1567
1647
  }
1568
1648
 
1569
- .max-h-0 {
1570
- max-height: calc(var(--spacing) * 0);
1649
+ .max-h-screen {
1650
+ max-height: 100vh;
1571
1651
  }
1572
1652
 
1573
1653
  .min-h-0 {
@@ -1996,6 +2076,10 @@
1996
2076
  }
1997
2077
  }
1998
2078
 
2079
+ .bg-\(--my-color\) {
2080
+ background-color: var(--my-color);
2081
+ }
2082
+
1999
2083
  .bg-\(--my-var\), .bg-\[var\(--my-var\)\] {
2000
2084
  background-color: var(--my-var);
2001
2085
  }
@@ -2104,6 +2188,10 @@
2104
2188
  background-color: var(--color-white);
2105
2189
  }
2106
2190
 
2191
+ .bg-white\! {
2192
+ background-color: var(--color-white) !important;
2193
+ }
2194
+
2107
2195
  .bg-white\/10 {
2108
2196
  background-color: #ffffff1a;
2109
2197
  }