ll-plus 2.8.1 → 2.8.3

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 (112) hide show
  1. package/es/components/config-provider/index.d.ts +37 -2
  2. package/es/components/config-provider/src/config-provider.d.ts +18 -2
  3. package/es/components/config-provider/src/config-provider.vue.d.ts +37 -2
  4. package/es/components/table/index.d.ts +20 -0
  5. package/es/components/table/src/components/main-table.vue.d.ts +1 -0
  6. package/es/components/table/src/components/pagination.vue.d.ts +13 -0
  7. package/es/components/table/src/config/main-table.d.ts +1 -1
  8. package/es/components/table/src/config/pagination.d.ts +6 -0
  9. package/es/components/table/src/config/table.d.ts +2 -0
  10. package/es/components/table/src/table.vue.d.ts +20 -0
  11. package/es/hooks/index.d.ts +1 -0
  12. package/es/hooks/use-locale/index.d.ts +15 -0
  13. package/es/index.mjs +2 -0
  14. package/es/index.mjs.map +1 -1
  15. package/es/locale/index.d.ts +10 -0
  16. package/es/locale/lang/en.d.ts +9 -0
  17. package/es/locale/lang/zh-cn.d.ts +9 -0
  18. package/es/locale/lang/zh-tw.d.ts +9 -0
  19. package/es/packages/components/config-provider/index.mjs +1 -1
  20. package/es/packages/components/config-provider/src/config-provider.mjs +29 -0
  21. package/es/packages/components/config-provider/src/config-provider.mjs.map +1 -1
  22. package/es/packages/components/config-provider/src/config-provider.vue2.mjs +18 -3
  23. package/es/packages/components/config-provider/src/config-provider.vue2.mjs.map +1 -1
  24. package/es/packages/components/index.mjs +1 -0
  25. package/es/packages/components/index.mjs.map +1 -1
  26. package/es/packages/components/table/src/components/main-table.vue2.mjs +4 -1
  27. package/es/packages/components/table/src/components/main-table.vue2.mjs.map +1 -1
  28. package/es/packages/components/table/src/components/pagination.vue2.mjs +5 -2
  29. package/es/packages/components/table/src/components/pagination.vue2.mjs.map +1 -1
  30. package/es/packages/components/table/src/config/main-table.mjs.map +1 -1
  31. package/es/packages/components/table/src/config/pagination.mjs +6 -0
  32. package/es/packages/components/table/src/config/pagination.mjs.map +1 -1
  33. package/es/packages/hooks/index.mjs +1 -0
  34. package/es/packages/hooks/index.mjs.map +1 -1
  35. package/es/packages/hooks/use-locale/index.mjs +29 -0
  36. package/es/packages/hooks/use-locale/index.mjs.map +1 -0
  37. package/es/packages/locale/index.mjs +6 -0
  38. package/es/packages/locale/index.mjs.map +1 -0
  39. package/es/packages/locale/lang/en.mjs +12 -0
  40. package/es/packages/locale/lang/en.mjs.map +1 -0
  41. package/es/packages/locale/lang/zh-cn.mjs +12 -0
  42. package/es/packages/locale/lang/zh-cn.mjs.map +1 -0
  43. package/es/packages/locale/lang/zh-tw.mjs +12 -0
  44. package/es/packages/locale/lang/zh-tw.mjs.map +1 -0
  45. package/index.full.js +93 -4
  46. package/index.full.min.js +34 -24
  47. package/index.full.min.js.map +1 -1
  48. package/index.full.min.mjs +34 -24
  49. package/index.full.min.mjs.map +1 -1
  50. package/index.full.mjs +89 -6
  51. package/lib/components/config-provider/index.d.ts +37 -2
  52. package/lib/components/config-provider/src/config-provider.d.ts +18 -2
  53. package/lib/components/config-provider/src/config-provider.vue.d.ts +37 -2
  54. package/lib/components/table/index.d.ts +20 -0
  55. package/lib/components/table/src/components/main-table.vue.d.ts +1 -0
  56. package/lib/components/table/src/components/pagination.vue.d.ts +13 -0
  57. package/lib/components/table/src/config/main-table.d.ts +1 -1
  58. package/lib/components/table/src/config/pagination.d.ts +6 -0
  59. package/lib/components/table/src/config/table.d.ts +2 -0
  60. package/lib/components/table/src/table.vue.d.ts +20 -0
  61. package/lib/hooks/index.d.ts +1 -0
  62. package/lib/hooks/use-locale/index.d.ts +15 -0
  63. package/lib/index.js +10 -2
  64. package/lib/index.js.map +1 -1
  65. package/lib/locale/index.d.ts +10 -0
  66. package/lib/locale/lang/en.d.ts +9 -0
  67. package/lib/locale/lang/zh-cn.d.ts +9 -0
  68. package/lib/locale/lang/zh-tw.d.ts +9 -0
  69. package/lib/packages/components/config-provider/index.js +4 -3
  70. package/lib/packages/components/config-provider/index.js.map +1 -1
  71. package/lib/packages/components/config-provider/src/config-provider.js +29 -0
  72. package/lib/packages/components/config-provider/src/config-provider.js.map +1 -1
  73. package/lib/packages/components/config-provider/src/config-provider.vue2.js +17 -2
  74. package/lib/packages/components/config-provider/src/config-provider.vue2.js.map +1 -1
  75. package/lib/packages/components/index.js +2 -0
  76. package/lib/packages/components/index.js.map +1 -1
  77. package/lib/packages/components/table/src/components/main-table.vue2.js +4 -1
  78. package/lib/packages/components/table/src/components/main-table.vue2.js.map +1 -1
  79. package/lib/packages/components/table/src/components/pagination.vue2.js +4 -1
  80. package/lib/packages/components/table/src/components/pagination.vue2.js.map +1 -1
  81. package/lib/packages/components/table/src/config/main-table.js.map +1 -1
  82. package/lib/packages/components/table/src/config/pagination.js +6 -0
  83. package/lib/packages/components/table/src/config/pagination.js.map +1 -1
  84. package/lib/packages/hooks/index.js +8 -2
  85. package/lib/packages/hooks/index.js.map +1 -1
  86. package/lib/packages/hooks/use-locale/index.js +35 -0
  87. package/lib/packages/hooks/use-locale/index.js.map +1 -0
  88. package/lib/packages/locale/index.js +12 -0
  89. package/lib/packages/locale/index.js.map +1 -0
  90. package/lib/packages/locale/lang/en.js +16 -0
  91. package/lib/packages/locale/lang/en.js.map +1 -0
  92. package/lib/packages/locale/lang/zh-cn.js +16 -0
  93. package/lib/packages/locale/lang/zh-cn.js.map +1 -0
  94. package/lib/packages/locale/lang/zh-tw.js +16 -0
  95. package/lib/packages/locale/lang/zh-tw.js.map +1 -0
  96. package/package.json +1 -1
  97. package/types/packages/components/config-provider/index.d.ts +37 -2
  98. package/types/packages/components/config-provider/src/config-provider.d.ts +18 -2
  99. package/types/packages/components/config-provider/src/config-provider.vue.d.ts +37 -2
  100. package/types/packages/components/table/index.d.ts +20 -0
  101. package/types/packages/components/table/src/components/main-table.vue.d.ts +1 -0
  102. package/types/packages/components/table/src/components/pagination.vue.d.ts +13 -0
  103. package/types/packages/components/table/src/config/main-table.d.ts +1 -1
  104. package/types/packages/components/table/src/config/pagination.d.ts +6 -0
  105. package/types/packages/components/table/src/config/table.d.ts +2 -0
  106. package/types/packages/components/table/src/table.vue.d.ts +20 -0
  107. package/types/packages/hooks/index.d.ts +1 -0
  108. package/types/packages/hooks/use-locale/index.d.ts +15 -0
  109. package/types/packages/locale/index.d.ts +10 -0
  110. package/types/packages/locale/lang/en.d.ts +9 -0
  111. package/types/packages/locale/lang/zh-cn.d.ts +9 -0
  112. package/types/packages/locale/lang/zh-tw.d.ts +9 -0
@@ -1,8 +1,27 @@
1
1
  import ConfigProvider from './src/config-provider.vue';
2
- export declare const LlConfigProvider: import("ll-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{}, {
2
+ export declare const LlConfigProvider: import("ll-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
3
+ readonly autoInsertSpaceInButton: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
4
+ readonly componentSize: {
5
+ readonly type: import("vue").PropType<import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "small" | "middle" | "large", unknown>>;
6
+ readonly required: false;
7
+ readonly validator: ((val: unknown) => boolean) | undefined;
8
+ __epPropKey: true;
9
+ };
10
+ readonly locale: {
11
+ readonly type: import("vue").PropType<object>;
12
+ readonly required: false;
13
+ readonly validator: ((val: unknown) => boolean) | undefined;
14
+ __epPropKey: true;
15
+ };
16
+ }, {
3
17
  attrs: {
4
18
  [x: string]: unknown;
5
19
  };
20
+ props: import("@vue/shared").LooseRequired<{
21
+ readonly autoInsertSpaceInButton: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
22
+ readonly locale?: object | undefined;
23
+ readonly componentSize?: import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "small" | "middle" | "large", unknown> | undefined;
24
+ } & {}>;
6
25
  bem: {
7
26
  b: (blockSuffix?: string) => string;
8
27
  e: (element?: string) => string;
@@ -13,7 +32,23 @@ export declare const LlConfigProvider: import("ll-plus/es/utils").SFCWithInstall
13
32
  bem: (blockSuffix: string, element: string, modifier: string) => string;
14
33
  is: (name?: string) => string;
15
34
  };
16
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>>;
35
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
36
+ readonly autoInsertSpaceInButton: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
37
+ readonly componentSize: {
38
+ readonly type: import("vue").PropType<import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "small" | "middle" | "large", unknown>>;
39
+ readonly required: false;
40
+ readonly validator: ((val: unknown) => boolean) | undefined;
41
+ __epPropKey: true;
42
+ };
43
+ readonly locale: {
44
+ readonly type: import("vue").PropType<object>;
45
+ readonly required: false;
46
+ readonly validator: ((val: unknown) => boolean) | undefined;
47
+ __epPropKey: true;
48
+ };
49
+ }>>, {
50
+ readonly autoInsertSpaceInButton: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
51
+ }, {}>>;
17
52
  export default LlConfigProvider;
18
53
  export * from './src/config-provider';
19
54
  declare module 'vue' {
@@ -1,4 +1,20 @@
1
1
  import ConfigProvider from './config-provider.vue';
2
- import { ConfigProviderProps as AntConfigProviderProps } from 'ant-design-vue';
3
- export type ConfigProviderProps = AntConfigProviderProps;
2
+ import type { ExtractPropTypes } from 'vue';
3
+ export declare const configProviderProps: {
4
+ readonly autoInsertSpaceInButton: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
5
+ readonly componentSize: {
6
+ readonly type: import("vue").PropType<import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "small" | "middle" | "large", unknown>>;
7
+ readonly required: false;
8
+ readonly validator: ((val: unknown) => boolean) | undefined;
9
+ __epPropKey: true;
10
+ };
11
+ readonly locale: {
12
+ readonly type: import("vue").PropType<object>;
13
+ readonly required: false;
14
+ readonly validator: ((val: unknown) => boolean) | undefined;
15
+ __epPropKey: true;
16
+ };
17
+ };
18
+ export type ConfigProviderProps = ExtractPropTypes<typeof configProviderProps>;
19
+ export type ComponentSizeType = ConfigProviderProps['componentSize'];
4
20
  export type ConfigProviderInstance = InstanceType<typeof ConfigProvider>;
@@ -1,7 +1,26 @@
1
- declare const _default: import("vue").DefineComponent<{}, {
1
+ declare const _default: import("vue").DefineComponent<{
2
+ readonly autoInsertSpaceInButton: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
3
+ readonly componentSize: {
4
+ readonly type: import("vue").PropType<import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "small" | "middle" | "large", unknown>>;
5
+ readonly required: false;
6
+ readonly validator: ((val: unknown) => boolean) | undefined;
7
+ __epPropKey: true;
8
+ };
9
+ readonly locale: {
10
+ readonly type: import("vue").PropType<object>;
11
+ readonly required: false;
12
+ readonly validator: ((val: unknown) => boolean) | undefined;
13
+ __epPropKey: true;
14
+ };
15
+ }, {
2
16
  attrs: {
3
17
  [x: string]: unknown;
4
18
  };
19
+ props: import("@vue/shared").LooseRequired<{
20
+ readonly autoInsertSpaceInButton: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
21
+ readonly locale?: object | undefined;
22
+ readonly componentSize?: import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "small" | "middle" | "large", unknown> | undefined;
23
+ } & {}>;
5
24
  bem: {
6
25
  b: (blockSuffix?: string) => string;
7
26
  e: (element?: string) => string;
@@ -12,5 +31,21 @@ declare const _default: import("vue").DefineComponent<{}, {
12
31
  bem: (blockSuffix: string, element: string, modifier: string) => string;
13
32
  is: (name?: string) => string;
14
33
  };
15
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
34
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
35
+ readonly autoInsertSpaceInButton: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
36
+ readonly componentSize: {
37
+ readonly type: import("vue").PropType<import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "small" | "middle" | "large", unknown>>;
38
+ readonly required: false;
39
+ readonly validator: ((val: unknown) => boolean) | undefined;
40
+ __epPropKey: true;
41
+ };
42
+ readonly locale: {
43
+ readonly type: import("vue").PropType<object>;
44
+ readonly required: false;
45
+ readonly validator: ((val: unknown) => boolean) | undefined;
46
+ __epPropKey: true;
47
+ };
48
+ }>>, {
49
+ readonly autoInsertSpaceInButton: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
50
+ }, {}>;
16
51
  export default _default;
@@ -54,11 +54,13 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
54
54
  readonly total?: number | undefined;
55
55
  readonly current?: number | undefined;
56
56
  readonly pageSize?: number | undefined;
57
+ readonly showTotal?: Function | undefined;
57
58
  }) | (() => import("./src/config").TablePaginationProps) | ((new (...args: any[]) => {} & {
58
59
  readonly onChange?: Function | undefined;
59
60
  readonly total?: number | undefined;
60
61
  readonly current?: number | undefined;
61
62
  readonly pageSize?: number | undefined;
63
+ readonly showTotal?: Function | undefined;
62
64
  }) | (() => import("./src/config").TablePaginationProps))[], unknown, unknown, () => import("ll-plus/es/utils").Mutable<{}>, boolean>;
63
65
  }, {
64
66
  props: import("@vue/shared").LooseRequired<{
@@ -73,6 +75,7 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
73
75
  readonly total?: number | undefined;
74
76
  readonly current?: number | undefined;
75
77
  readonly pageSize?: number | undefined;
78
+ readonly showTotal?: Function | undefined;
76
79
  };
77
80
  } & {}>;
78
81
  originDataSource: import("vue").Ref<any>;
@@ -295,6 +298,7 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
295
298
  attrs: {
296
299
  [x: string]: unknown;
297
300
  };
301
+ t: import("ll-plus/es/hooks").Translator;
298
302
  newColumns: any;
299
303
  settingColumns: any;
300
304
  newDataSource: any;
@@ -507,6 +511,12 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
507
511
  readonly validator: ((val: unknown) => boolean) | undefined;
508
512
  __epPropKey: true;
509
513
  };
514
+ readonly showTotal: {
515
+ readonly type: import("vue").PropType<Function>;
516
+ readonly required: false;
517
+ readonly validator: ((val: unknown) => boolean) | undefined;
518
+ __epPropKey: true;
519
+ };
510
520
  readonly onChange: {
511
521
  readonly type: import("vue").PropType<Function>;
512
522
  readonly required: false;
@@ -519,6 +529,7 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
519
529
  readonly total?: number | undefined;
520
530
  readonly current?: number | undefined;
521
531
  readonly pageSize?: number | undefined;
532
+ readonly showTotal?: Function | undefined;
522
533
  } & {}>;
523
534
  attrs: {
524
535
  [x: string]: unknown;
@@ -556,6 +567,12 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
556
567
  readonly validator: ((val: unknown) => boolean) | undefined;
557
568
  __epPropKey: true;
558
569
  };
570
+ readonly showTotal: {
571
+ readonly type: import("vue").PropType<Function>;
572
+ readonly required: false;
573
+ readonly validator: ((val: unknown) => boolean) | undefined;
574
+ __epPropKey: true;
575
+ };
559
576
  readonly onChange: {
560
577
  readonly type: import("vue").PropType<Function>;
561
578
  readonly required: false;
@@ -618,11 +635,13 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
618
635
  readonly total?: number | undefined;
619
636
  readonly current?: number | undefined;
620
637
  readonly pageSize?: number | undefined;
638
+ readonly showTotal?: Function | undefined;
621
639
  }) | (() => import("./src/config").TablePaginationProps) | ((new (...args: any[]) => {} & {
622
640
  readonly onChange?: Function | undefined;
623
641
  readonly total?: number | undefined;
624
642
  readonly current?: number | undefined;
625
643
  readonly pageSize?: number | undefined;
644
+ readonly showTotal?: Function | undefined;
626
645
  }) | (() => import("./src/config").TablePaginationProps))[], unknown, unknown, () => import("ll-plus/es/utils").Mutable<{}>, boolean>;
627
646
  }>>, {
628
647
  readonly loading: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
@@ -636,6 +655,7 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
636
655
  readonly total?: number | undefined;
637
656
  readonly current?: number | undefined;
638
657
  readonly pageSize?: number | undefined;
658
+ readonly showTotal?: Function | undefined;
639
659
  };
640
660
  }, {}>>;
641
661
  export default LlTable;
@@ -98,6 +98,7 @@ declare const _default: import("vue").DefineComponent<{
98
98
  attrs: {
99
99
  [x: string]: unknown;
100
100
  };
101
+ t: import("ll-plus/es/hooks").Translator;
101
102
  newColumns: any;
102
103
  settingColumns: any;
103
104
  newDataSource: any;
@@ -17,6 +17,12 @@ declare const _default: import("vue").DefineComponent<{
17
17
  readonly validator: ((val: unknown) => boolean) | undefined;
18
18
  __epPropKey: true;
19
19
  };
20
+ readonly showTotal: {
21
+ readonly type: import("vue").PropType<Function>;
22
+ readonly required: false;
23
+ readonly validator: ((val: unknown) => boolean) | undefined;
24
+ __epPropKey: true;
25
+ };
20
26
  readonly onChange: {
21
27
  readonly type: import("vue").PropType<Function>;
22
28
  readonly required: false;
@@ -29,6 +35,7 @@ declare const _default: import("vue").DefineComponent<{
29
35
  readonly total?: number | undefined;
30
36
  readonly current?: number | undefined;
31
37
  readonly pageSize?: number | undefined;
38
+ readonly showTotal?: Function | undefined;
32
39
  } & {}>;
33
40
  attrs: {
34
41
  [x: string]: unknown;
@@ -66,6 +73,12 @@ declare const _default: import("vue").DefineComponent<{
66
73
  readonly validator: ((val: unknown) => boolean) | undefined;
67
74
  __epPropKey: true;
68
75
  };
76
+ readonly showTotal: {
77
+ readonly type: import("vue").PropType<Function>;
78
+ readonly required: false;
79
+ readonly validator: ((val: unknown) => boolean) | undefined;
80
+ __epPropKey: true;
81
+ };
69
82
  readonly onChange: {
70
83
  readonly type: import("vue").PropType<Function>;
71
84
  readonly required: false;
@@ -1,6 +1,6 @@
1
1
  import MainTable from '../components/main-table.vue';
2
- import type { ExtractPropTypes } from 'vue';
3
2
  import type { TableColumnProps } from 'ant-design-vue';
3
+ import type { ExtractPropTypes } from 'vue';
4
4
  export declare const tableContentType: readonly ["table", "card"];
5
5
  export declare const mainTableProps: {
6
6
  readonly operateWidth: import("ll-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 120, boolean>;
@@ -19,6 +19,12 @@ export declare const tablePaginationProps: {
19
19
  readonly validator: ((val: unknown) => boolean) | undefined;
20
20
  __epPropKey: true;
21
21
  };
22
+ readonly showTotal: {
23
+ readonly type: import("vue").PropType<Function>;
24
+ readonly required: false;
25
+ readonly validator: ((val: unknown) => boolean) | undefined;
26
+ __epPropKey: true;
27
+ };
22
28
  readonly onChange: {
23
29
  readonly type: import("vue").PropType<Function>;
24
30
  readonly required: false;
@@ -56,11 +56,13 @@ export declare const tableProps: {
56
56
  readonly total?: number | undefined;
57
57
  readonly current?: number | undefined;
58
58
  readonly pageSize?: number | undefined;
59
+ readonly showTotal?: Function | undefined;
59
60
  }) | (() => TablePaginationProps) | ((new (...args: any[]) => {} & {
60
61
  readonly onChange?: Function | undefined;
61
62
  readonly total?: number | undefined;
62
63
  readonly current?: number | undefined;
63
64
  readonly pageSize?: number | undefined;
65
+ readonly showTotal?: Function | undefined;
64
66
  }) | (() => TablePaginationProps))[], unknown, unknown, () => import("ll-plus/es/utils").Mutable<{}>, boolean>;
65
67
  };
66
68
  export declare const HEADER_SRARCH_HEIGHT = 36;
@@ -54,11 +54,13 @@ declare const _default: import("vue").DefineComponent<{
54
54
  readonly total?: number | undefined;
55
55
  readonly current?: number | undefined;
56
56
  readonly pageSize?: number | undefined;
57
+ readonly showTotal?: Function | undefined;
57
58
  }) | (() => import("./config").TablePaginationProps) | ((new (...args: any[]) => {} & {
58
59
  readonly onChange?: Function | undefined;
59
60
  readonly total?: number | undefined;
60
61
  readonly current?: number | undefined;
61
62
  readonly pageSize?: number | undefined;
63
+ readonly showTotal?: Function | undefined;
62
64
  }) | (() => import("./config").TablePaginationProps))[], unknown, unknown, () => import("ll-plus/es/utils").Mutable<{}>, boolean>;
63
65
  }, {
64
66
  props: import("@vue/shared").LooseRequired<{
@@ -73,6 +75,7 @@ declare const _default: import("vue").DefineComponent<{
73
75
  readonly total?: number | undefined;
74
76
  readonly current?: number | undefined;
75
77
  readonly pageSize?: number | undefined;
78
+ readonly showTotal?: Function | undefined;
76
79
  };
77
80
  } & {}>;
78
81
  originDataSource: import("vue").Ref<any>;
@@ -295,6 +298,7 @@ declare const _default: import("vue").DefineComponent<{
295
298
  attrs: {
296
299
  [x: string]: unknown;
297
300
  };
301
+ t: import("ll-plus/es/hooks").Translator;
298
302
  newColumns: any;
299
303
  settingColumns: any;
300
304
  newDataSource: any;
@@ -507,6 +511,12 @@ declare const _default: import("vue").DefineComponent<{
507
511
  readonly validator: ((val: unknown) => boolean) | undefined;
508
512
  __epPropKey: true;
509
513
  };
514
+ readonly showTotal: {
515
+ readonly type: import("vue").PropType<Function>;
516
+ readonly required: false;
517
+ readonly validator: ((val: unknown) => boolean) | undefined;
518
+ __epPropKey: true;
519
+ };
510
520
  readonly onChange: {
511
521
  readonly type: import("vue").PropType<Function>;
512
522
  readonly required: false;
@@ -519,6 +529,7 @@ declare const _default: import("vue").DefineComponent<{
519
529
  readonly total?: number | undefined;
520
530
  readonly current?: number | undefined;
521
531
  readonly pageSize?: number | undefined;
532
+ readonly showTotal?: Function | undefined;
522
533
  } & {}>;
523
534
  attrs: {
524
535
  [x: string]: unknown;
@@ -556,6 +567,12 @@ declare const _default: import("vue").DefineComponent<{
556
567
  readonly validator: ((val: unknown) => boolean) | undefined;
557
568
  __epPropKey: true;
558
569
  };
570
+ readonly showTotal: {
571
+ readonly type: import("vue").PropType<Function>;
572
+ readonly required: false;
573
+ readonly validator: ((val: unknown) => boolean) | undefined;
574
+ __epPropKey: true;
575
+ };
559
576
  readonly onChange: {
560
577
  readonly type: import("vue").PropType<Function>;
561
578
  readonly required: false;
@@ -618,11 +635,13 @@ declare const _default: import("vue").DefineComponent<{
618
635
  readonly total?: number | undefined;
619
636
  readonly current?: number | undefined;
620
637
  readonly pageSize?: number | undefined;
638
+ readonly showTotal?: Function | undefined;
621
639
  }) | (() => import("./config").TablePaginationProps) | ((new (...args: any[]) => {} & {
622
640
  readonly onChange?: Function | undefined;
623
641
  readonly total?: number | undefined;
624
642
  readonly current?: number | undefined;
625
643
  readonly pageSize?: number | undefined;
644
+ readonly showTotal?: Function | undefined;
626
645
  }) | (() => import("./config").TablePaginationProps))[], unknown, unknown, () => import("ll-plus/es/utils").Mutable<{}>, boolean>;
627
646
  }>>, {
628
647
  readonly loading: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
@@ -636,6 +655,7 @@ declare const _default: import("vue").DefineComponent<{
636
655
  readonly total?: number | undefined;
637
656
  readonly current?: number | undefined;
638
657
  readonly pageSize?: number | undefined;
658
+ readonly showTotal?: Function | undefined;
639
659
  };
640
660
  }, {}>;
641
661
  export default _default;
@@ -1 +1,2 @@
1
+ export * from './use-locale';
1
2
  export * from './use-scroll';
@@ -0,0 +1,15 @@
1
+ import type { Language } from 'll-plus/es/locale';
2
+ import type { MaybeRef } from '@vueuse/core';
3
+ import type { InjectionKey, Ref } from 'vue';
4
+ export type TranslatorOption = Record<string, string | number>;
5
+ export type Translator = (path: string, option?: TranslatorOption) => string;
6
+ export type LocaleContext = {
7
+ locale: Ref<Language>;
8
+ lang: Ref<string>;
9
+ t: Translator;
10
+ };
11
+ export declare const buildTranslator: (locale: MaybeRef<Language>) => Translator;
12
+ export declare const translate: (path: string, option: undefined | TranslatorOption, locale: Language) => string;
13
+ export declare const buildLocaleContext: (locale: MaybeRef<Language>) => LocaleContext;
14
+ export declare const localeContextKey: InjectionKey<Ref<Language | undefined>>;
15
+ export declare const useLocale: (localeOverrides?: Ref<Language | undefined>) => LocaleContext;
package/es/index.mjs CHANGED
@@ -35,6 +35,7 @@ export { svPanelProps } from './packages/components/color-picker/src/config/sv-p
35
35
  export { OPTIONS_KEY, useOptions } from './packages/components/color-picker/src/config/use-options.mjs';
36
36
  export { LlColorPicker } from './packages/components/color-picker/index.mjs';
37
37
  export { default as Color } from './packages/components/color-picker/src/config/color.mjs';
38
+ export { configProviderProps } from './packages/components/config-provider/src/config-provider.mjs';
38
39
  export { LlConfigProvider } from './packages/components/config-provider/index.mjs';
39
40
  export { cropperImageEmits, cropperImageProps, cropperModalEmits, cropperModalProps, defaultCropperOptions } from './packages/components/cropper/src/cropper-image.mjs';
40
41
  export { LlCropperImage, LlCropperModal } from './packages/components/cropper/index.mjs';
@@ -147,6 +148,7 @@ export { getType, isBoolean, isElement, isEmpty, isNumber, isPropAbsent, isStrin
147
148
  export { dataURLtoBlob, fileToBase64, formatFileSize } from './packages/utils/file.mjs';
148
149
  export { deepUnref } from './packages/utils/deep-unref.mjs';
149
150
  export { deepCompare, guid, hasValue } from './packages/utils/data.mjs';
151
+ export { buildLocaleContext, buildTranslator, localeContextKey, translate, useLocale } from './packages/hooks/use-locale/index.mjs';
150
152
  export { useScroll } from './packages/hooks/use-scroll/index.mjs';
151
153
 
152
154
  "use strict";
package/es/index.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../packages/ll-plus/index.ts"],"sourcesContent":["import installer from './defaults'\n\nexport * from '@ll-plus/components'\nexport * from '@ll-plus/constant'\nexport * from '@ll-plus/utils'\nexport * from '@ll-plus/hooks'\n\nexport const install = installer.install\nexport default installer\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOO,MAAM,UAAU,SAAU,CAAA;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../packages/ll-plus/index.ts"],"sourcesContent":["import installer from './defaults'\n\nexport * from '@ll-plus/components'\nexport * from '@ll-plus/constant'\nexport * from '@ll-plus/utils'\nexport * from '@ll-plus/hooks'\n\nexport const install = installer.install\nexport default installer\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOO,MAAM,UAAU,SAAU,CAAA;;;;"}
@@ -0,0 +1,10 @@
1
+ export { default as en } from './lang/en';
2
+ export { default as zhCn } from './lang/zh-cn';
3
+ export { default as zhTw } from './lang/zh-tw';
4
+ export type TranslatePair = {
5
+ [key: string]: string | string[] | TranslatePair;
6
+ };
7
+ export type Language = {
8
+ name: string;
9
+ ll: TranslatePair;
10
+ };
@@ -0,0 +1,9 @@
1
+ declare const _default: {
2
+ name: string;
3
+ ll: {
4
+ table: {
5
+ operate: string;
6
+ };
7
+ };
8
+ };
9
+ export default _default;
@@ -0,0 +1,9 @@
1
+ declare const _default: {
2
+ name: string;
3
+ ll: {
4
+ table: {
5
+ operate: string;
6
+ };
7
+ };
8
+ };
9
+ export default _default;
@@ -0,0 +1,9 @@
1
+ declare const _default: {
2
+ name: string;
3
+ ll: {
4
+ table: {
5
+ operate: string;
6
+ };
7
+ };
8
+ };
9
+ export default _default;
@@ -1,6 +1,6 @@
1
1
  import '../../utils/index.mjs';
2
2
  import ConfigProvider from './src/config-provider.vue.mjs';
3
- import './src/config-provider.mjs';
3
+ export { configProviderProps } from './src/config-provider.mjs';
4
4
  import { withInstall } from '../../utils/with-install.mjs';
5
5
 
6
6
  "use strict";
@@ -1,2 +1,31 @@
1
+ import '../../../utils/index.mjs';
2
+ import { buildProps, definePropType } from '../../../utils/props/runtime.mjs';
3
+
1
4
  "use strict";
5
+ const componentSize = ["small", "middle", "large"];
6
+ const configProviderProps = buildProps({
7
+ // buildProps和defineprops一样
8
+ /**
9
+ * @description 设置为 false 时,移除按钮中 2 个汉字之间的空格
10
+ */
11
+ autoInsertSpaceInButton: {
12
+ type: Boolean,
13
+ default: false
14
+ },
15
+ /**
16
+ * @description 设置 antd 组件大小
17
+ */
18
+ componentSize: {
19
+ type: String,
20
+ values: componentSize
21
+ },
22
+ /**
23
+ * @description 多语言
24
+ */
25
+ locale: {
26
+ type: definePropType(Object)
27
+ }
28
+ });
29
+
30
+ export { configProviderProps };
2
31
  //# sourceMappingURL=config-provider.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"config-provider.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"config-provider.mjs","sources":["../../../../../../packages/components/config-provider/src/config-provider.ts"],"sourcesContent":["import ConfigProvider from './config-provider.vue'\n\nimport { buildProps, definePropType } from '@ll-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\n\nconst componentSize = ['small', 'middle', 'large'] as const\n// props\nexport const configProviderProps = buildProps({\n // buildProps和defineprops一样\n /**\n * @description 设置为 false 时,移除按钮中 2 个汉字之间的空格\n */\n autoInsertSpaceInButton: {\n type: Boolean,\n default: false\n },\n /**\n * @description 设置 antd 组件大小\n */\n componentSize: {\n type: String,\n values: componentSize\n },\n /**\n * @description 多语言\n */\n locale: {\n type: definePropType<object>(Object)\n }\n} as const)\n\nexport type ConfigProviderProps = ExtractPropTypes<typeof configProviderProps>\n\nexport type ComponentSizeType = ConfigProviderProps['componentSize']\n// instance\nexport type ConfigProviderInstance = InstanceType<typeof ConfigProvider>\n"],"names":[],"mappings":";;;;AAMA,MAAM,aAAgB,GAAA,CAAC,OAAS,EAAA,QAAA,EAAU,OAAO,CAAA,CAAA;AAE1C,MAAM,sBAAsB,UAAW,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAK5C,uBAAyB,EAAA;AAAA,IACvB,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,KAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,aAAe,EAAA;AAAA,IACb,IAAM,EAAA,MAAA;AAAA,IACN,MAAQ,EAAA,aAAA;AAAA,GACV;AAAA;AAAA;AAAA;AAAA,EAIA,MAAQ,EAAA;AAAA,IACN,IAAA,EAAM,eAAuB,MAAM,CAAA;AAAA,GACrC;AACF,CAAU;;;;"}
@@ -1,6 +1,9 @@
1
- import { defineComponent, useAttrs, resolveComponent, openBlock, createBlock, mergeProps, unref, withCtx, renderSlot } from 'vue';
1
+ import { defineComponent, useAttrs, provide, computed, resolveComponent, openBlock, createBlock, mergeProps, unref, withCtx, renderSlot } from 'vue';
2
+ import '../../../hooks/index.mjs';
2
3
  import '../../../utils/index.mjs';
4
+ import { configProviderProps } from './config-provider.mjs';
3
5
  import { createNamespace } from '../../../utils/create-namespace.mjs';
6
+ import { localeContextKey } from '../../../hooks/use-locale/index.mjs';
4
7
 
5
8
  "use strict";
6
9
  var _sfc_main = /* @__PURE__ */ defineComponent({
@@ -8,20 +11,32 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
8
11
  name: "LlConfigProvider"
9
12
  },
10
13
  __name: "config-provider",
14
+ props: configProviderProps,
11
15
  setup(__props) {
12
16
  const attrs = useAttrs();
17
+ const props = __props;
13
18
  const bem = createNamespace("config-provider");
19
+ provide(
20
+ localeContextKey,
21
+ computed(() => {
22
+ return props.locale;
23
+ })
24
+ );
14
25
  return (_ctx, _cache) => {
15
26
  const _component_a_config_provider = resolveComponent("a-config-provider");
16
27
  return openBlock(), createBlock(_component_a_config_provider, mergeProps({
17
28
  class: unref(bem).b()
18
- }, unref(attrs)), {
29
+ }, unref(attrs), {
30
+ "auto-insert-space-in-button": _ctx.autoInsertSpaceInButton,
31
+ "component-size": _ctx.componentSize,
32
+ locale: _ctx.locale
33
+ }), {
19
34
  default: withCtx(() => [
20
35
  renderSlot(_ctx.$slots, "default")
21
36
  ]),
22
37
  _: 3
23
38
  /* FORWARDED */
24
- }, 16, ["class"]);
39
+ }, 16, ["class", "auto-insert-space-in-button", "component-size", "locale"]);
25
40
  };
26
41
  }
27
42
  });
@@ -1 +1 @@
1
- {"version":3,"file":"config-provider.vue2.mjs","sources":["../../../../../../packages/components/config-provider/src/config-provider.vue"],"sourcesContent":["<template>\n <a-config-provider :class=\"bem.b()\" v-bind=\"attrs\">\n <slot />\n </a-config-provider>\n</template>\n<script lang=\"ts\" setup>\nimport { useAttrs } from 'vue'\n\nimport { createNamespace } from '@ll-plus/utils'\n\n// 1.defineOptions\ndefineOptions({\n name: 'LlConfigProvider'\n})\n\n// 2.hooks\nconst attrs = useAttrs()\n\n// 3.const\nconst bem = createNamespace('config-provider')\n</script>\n\n<style lang=\"less\" scoped></style>\n"],"names":[],"mappings":";;;;;;;;;;;AAgBA,IAAA,MAAM,QAAQ,QAAS,EAAA,CAAA;AAGvB,IAAM,MAAA,GAAA,GAAM,gBAAgB,iBAAiB,CAAA,CAAA;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"config-provider.vue2.mjs","sources":["../../../../../../packages/components/config-provider/src/config-provider.vue"],"sourcesContent":["<template>\n <a-config-provider\n :class=\"bem.b()\"\n v-bind=\"attrs\"\n :auto-insert-space-in-button=\"autoInsertSpaceInButton\"\n :component-size=\"componentSize\"\n :locale=\"locale\"\n >\n <slot />\n </a-config-provider>\n</template>\n<script lang=\"ts\" setup>\nimport { computed, provide, useAttrs } from 'vue'\n\nimport { localeContextKey } from '@ll-plus/hooks'\nimport { createNamespace } from '@ll-plus/utils'\nimport { configProviderProps } from './config-provider'\n\n// 1.defineOptions\ndefineOptions({\n name: 'LlConfigProvider'\n})\n\n// 2.hooks\nconst attrs = useAttrs()\nconst props = defineProps(configProviderProps)\n\n// 3.const\nconst bem = createNamespace('config-provider')\n\nprovide(\n localeContextKey,\n computed(() => {\n return props.locale\n }) as any\n)\n</script>\n\n<style lang=\"less\" scoped></style>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAwBA,IAAA,MAAM,QAAQ,QAAS,EAAA,CAAA;AACvB,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AAGd,IAAM,MAAA,GAAA,GAAM,gBAAgB,iBAAiB,CAAA,CAAA;AAE7C,IAAA,OAAA;AAAA,MACE,gBAAA;AAAA,MACA,SAAS,MAAM;AACb,QAAA,OAAO,KAAM,CAAA,MAAA,CAAA;AAAA,OACd,CAAA;AAAA,KACH,CAAA;;;;;;;;;;;;;;;;;;;;;;"}
@@ -78,6 +78,7 @@ export { parseColors, preDefineProps } from './color-picker/src/config/pre-defin
78
78
  export { svPanelProps } from './color-picker/src/config/sv-panel.mjs';
79
79
  export { OPTIONS_KEY, useOptions } from './color-picker/src/config/use-options.mjs';
80
80
  export { default as Color } from './color-picker/src/config/color.mjs';
81
+ export { configProviderProps } from './config-provider/src/config-provider.mjs';
81
82
  export { cropperImageEmits, cropperImageProps, cropperModalEmits, cropperModalProps, defaultCropperOptions } from './cropper/src/cropper-image.mjs';
82
83
  export { descriptionsProps } from './descriptions/src/descriptions.mjs';
83
84
  export { descriptionsItemProps } from './descriptions-item/src/descriptions-item.mjs';
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,9 +1,11 @@
1
1
  import { defineComponent, useAttrs, ref, watch, computed, resolveComponent, openBlock, createBlock, mergeProps, unref, createSlots, withCtx, createElementVNode, normalizeClass, createElementBlock, toDisplayString, createVNode, createCommentVNode, createTextVNode, renderSlot, Fragment, normalizeProps, guardReactiveProps } from 'vue';
2
+ import '../../../../hooks/index.mjs';
2
3
  import '../../../../utils/index.mjs';
3
4
  import draggable from 'vuedraggable';
4
5
  import { has } from 'lodash-es';
5
6
  import '../config/index.mjs';
6
7
  import { mainTableProps, mainTableEmits } from '../config/main-table.mjs';
8
+ import { useLocale } from '../../../../hooks/use-locale/index.mjs';
7
9
  import { createNamespace } from '../../../../utils/create-namespace.mjs';
8
10
 
9
11
  "use strict";
@@ -18,6 +20,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
18
20
  const props = __props;
19
21
  const emits = __emit;
20
22
  const attrs = useAttrs();
23
+ const { t } = useLocale();
21
24
  const newColumns = ref([]);
22
25
  const settingColumns = ref([]);
23
26
  const newDataSource = ref([]);
@@ -49,7 +52,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
49
52
  width = operateWidth;
50
53
  }
51
54
  newColumns.value.push({
52
- title: "\u64CD\u4F5C",
55
+ title: t("ll.table.operate"),
53
56
  dataIndex: "",
54
57
  key: "operate",
55
58
  maxWidth,