ll-plus 2.8.2 → 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.
- package/es/components/config-provider/index.d.ts +37 -2
- package/es/components/config-provider/src/config-provider.d.ts +18 -2
- package/es/components/config-provider/src/config-provider.vue.d.ts +37 -2
- package/es/components/table/index.d.ts +1 -8
- package/es/components/table/src/components/main-table.vue.d.ts +1 -4
- package/es/components/table/src/config/main-table.d.ts +0 -1
- package/es/components/table/src/config/table.d.ts +0 -2
- package/es/components/table/src/table.vue.d.ts +1 -8
- package/es/hooks/index.d.ts +1 -0
- package/es/hooks/use-locale/index.d.ts +15 -0
- package/es/index.mjs +2 -0
- package/es/index.mjs.map +1 -1
- package/es/locale/index.d.ts +10 -0
- package/es/locale/lang/en.d.ts +9 -0
- package/es/locale/lang/zh-cn.d.ts +9 -0
- package/es/locale/lang/zh-tw.d.ts +9 -0
- package/es/packages/components/config-provider/index.mjs +1 -1
- package/es/packages/components/config-provider/src/config-provider.mjs +29 -0
- package/es/packages/components/config-provider/src/config-provider.mjs.map +1 -1
- package/es/packages/components/config-provider/src/config-provider.vue2.mjs +18 -3
- package/es/packages/components/config-provider/src/config-provider.vue2.mjs.map +1 -1
- package/es/packages/components/index.mjs +1 -0
- package/es/packages/components/index.mjs.map +1 -1
- package/es/packages/components/table/src/components/main-table.vue2.mjs +4 -1
- package/es/packages/components/table/src/components/main-table.vue2.mjs.map +1 -1
- package/es/packages/components/table/src/components/pagination.vue2.mjs +30 -7
- package/es/packages/components/table/src/components/pagination.vue2.mjs.map +1 -1
- package/es/packages/components/table/src/config/main-table.mjs +0 -7
- package/es/packages/components/table/src/config/main-table.mjs.map +1 -1
- package/es/packages/hooks/index.mjs +1 -0
- package/es/packages/hooks/index.mjs.map +1 -1
- package/es/packages/hooks/use-locale/index.mjs +29 -0
- package/es/packages/hooks/use-locale/index.mjs.map +1 -0
- package/es/packages/locale/index.mjs +6 -0
- package/es/packages/locale/index.mjs.map +1 -0
- package/es/packages/locale/lang/en.mjs +12 -0
- package/es/packages/locale/lang/en.mjs.map +1 -0
- package/es/packages/locale/lang/zh-cn.mjs +12 -0
- package/es/packages/locale/lang/zh-cn.mjs.map +1 -0
- package/es/packages/locale/lang/zh-tw.mjs +12 -0
- package/es/packages/locale/lang/zh-tw.mjs.map +1 -0
- package/index.full.js +125 -18
- package/index.full.min.js +27 -40
- package/index.full.min.js.map +1 -1
- package/index.full.min.mjs +27 -40
- package/index.full.min.mjs.map +1 -1
- package/index.full.mjs +121 -20
- package/lib/components/config-provider/index.d.ts +37 -2
- package/lib/components/config-provider/src/config-provider.d.ts +18 -2
- package/lib/components/config-provider/src/config-provider.vue.d.ts +37 -2
- package/lib/components/table/index.d.ts +1 -8
- package/lib/components/table/src/components/main-table.vue.d.ts +1 -4
- package/lib/components/table/src/config/main-table.d.ts +0 -1
- package/lib/components/table/src/config/table.d.ts +0 -2
- package/lib/components/table/src/table.vue.d.ts +1 -8
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/use-locale/index.d.ts +15 -0
- package/lib/index.js +10 -2
- package/lib/index.js.map +1 -1
- package/lib/locale/index.d.ts +10 -0
- package/lib/locale/lang/en.d.ts +9 -0
- package/lib/locale/lang/zh-cn.d.ts +9 -0
- package/lib/locale/lang/zh-tw.d.ts +9 -0
- package/lib/packages/components/config-provider/index.js +4 -3
- package/lib/packages/components/config-provider/index.js.map +1 -1
- package/lib/packages/components/config-provider/src/config-provider.js +29 -0
- package/lib/packages/components/config-provider/src/config-provider.js.map +1 -1
- package/lib/packages/components/config-provider/src/config-provider.vue2.js +17 -2
- package/lib/packages/components/config-provider/src/config-provider.vue2.js.map +1 -1
- package/lib/packages/components/index.js +2 -0
- package/lib/packages/components/index.js.map +1 -1
- package/lib/packages/components/table/src/components/main-table.vue2.js +4 -1
- package/lib/packages/components/table/src/components/main-table.vue2.js.map +1 -1
- package/lib/packages/components/table/src/components/pagination.vue2.js +29 -6
- package/lib/packages/components/table/src/components/pagination.vue2.js.map +1 -1
- package/lib/packages/components/table/src/config/main-table.js +0 -7
- package/lib/packages/components/table/src/config/main-table.js.map +1 -1
- package/lib/packages/hooks/index.js +8 -2
- package/lib/packages/hooks/index.js.map +1 -1
- package/lib/packages/hooks/use-locale/index.js +35 -0
- package/lib/packages/hooks/use-locale/index.js.map +1 -0
- package/lib/packages/locale/index.js +12 -0
- package/lib/packages/locale/index.js.map +1 -0
- package/lib/packages/locale/lang/en.js +16 -0
- package/lib/packages/locale/lang/en.js.map +1 -0
- package/lib/packages/locale/lang/zh-cn.js +16 -0
- package/lib/packages/locale/lang/zh-cn.js.map +1 -0
- package/lib/packages/locale/lang/zh-tw.js +16 -0
- package/lib/packages/locale/lang/zh-tw.js.map +1 -0
- package/package.json +1 -1
- package/types/packages/components/config-provider/index.d.ts +37 -2
- package/types/packages/components/config-provider/src/config-provider.d.ts +18 -2
- package/types/packages/components/config-provider/src/config-provider.vue.d.ts +37 -2
- package/types/packages/components/table/index.d.ts +1 -8
- package/types/packages/components/table/src/components/main-table.vue.d.ts +1 -4
- package/types/packages/components/table/src/config/main-table.d.ts +0 -1
- package/types/packages/components/table/src/config/table.d.ts +0 -2
- package/types/packages/components/table/src/table.vue.d.ts +1 -8
- package/types/packages/hooks/index.d.ts +1 -0
- package/types/packages/hooks/use-locale/index.d.ts +15 -0
- package/types/packages/locale/index.d.ts +10 -0
- package/types/packages/locale/lang/en.d.ts +9 -0
- package/types/packages/locale/lang/zh-cn.d.ts +9 -0
- 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
|
-
},
|
|
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 {
|
|
3
|
-
export
|
|
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
|
-
},
|
|
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;
|
|
@@ -18,7 +18,6 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
18
18
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
19
19
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
20
20
|
readonly showSetting: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
21
|
-
readonly operateText: string;
|
|
22
21
|
} & {
|
|
23
22
|
readonly change?: Function | undefined;
|
|
24
23
|
readonly expand?: Function | undefined;
|
|
@@ -39,7 +38,6 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
39
38
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
40
39
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
41
40
|
readonly showSetting: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
42
|
-
readonly operateText: string;
|
|
43
41
|
} & {
|
|
44
42
|
readonly change?: Function | undefined;
|
|
45
43
|
readonly expand?: Function | undefined;
|
|
@@ -274,7 +272,6 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
274
272
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
275
273
|
__epPropKey: true;
|
|
276
274
|
};
|
|
277
|
-
readonly operateText: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "操作", boolean>;
|
|
278
275
|
}, {
|
|
279
276
|
props: import("@vue/shared").LooseRequired<{
|
|
280
277
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
@@ -286,7 +283,6 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
286
283
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
287
284
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
288
285
|
readonly showSetting: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
289
|
-
readonly operateText: string;
|
|
290
286
|
readonly change?: Function | undefined;
|
|
291
287
|
readonly expand?: Function | undefined;
|
|
292
288
|
readonly showDrag?: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
@@ -302,6 +298,7 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
302
298
|
attrs: {
|
|
303
299
|
[x: string]: unknown;
|
|
304
300
|
};
|
|
301
|
+
t: import("ll-plus/es/hooks").Translator;
|
|
305
302
|
newColumns: any;
|
|
306
303
|
settingColumns: any;
|
|
307
304
|
newDataSource: any;
|
|
@@ -482,7 +479,6 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
482
479
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
483
480
|
__epPropKey: true;
|
|
484
481
|
};
|
|
485
|
-
readonly operateText: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "操作", boolean>;
|
|
486
482
|
}>> & {
|
|
487
483
|
onHandleChangeDataSource?: ((dataSource: any[]) => any) | undefined;
|
|
488
484
|
}, {
|
|
@@ -495,7 +491,6 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
495
491
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
496
492
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
497
493
|
readonly showSetting: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
498
|
-
readonly operateText: string;
|
|
499
494
|
}, {}>;
|
|
500
495
|
Pagination: import("vue").DefineComponent<{
|
|
501
496
|
readonly current: {
|
|
@@ -604,7 +599,6 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
604
599
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
605
600
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
606
601
|
readonly showSetting: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
607
|
-
readonly operateText: string;
|
|
608
602
|
} & {
|
|
609
603
|
readonly change?: Function | undefined;
|
|
610
604
|
readonly expand?: Function | undefined;
|
|
@@ -625,7 +619,6 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
625
619
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
626
620
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
627
621
|
readonly showSetting: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
628
|
-
readonly operateText: string;
|
|
629
622
|
} & {
|
|
630
623
|
readonly change?: Function | undefined;
|
|
631
624
|
readonly expand?: Function | undefined;
|
|
@@ -72,7 +72,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
72
72
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
73
73
|
__epPropKey: true;
|
|
74
74
|
};
|
|
75
|
-
readonly operateText: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "操作", boolean>;
|
|
76
75
|
}, {
|
|
77
76
|
props: import("@vue/shared").LooseRequired<{
|
|
78
77
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
@@ -84,7 +83,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
84
83
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
85
84
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
86
85
|
readonly showSetting: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
87
|
-
readonly operateText: string;
|
|
88
86
|
readonly change?: Function | undefined;
|
|
89
87
|
readonly expand?: Function | undefined;
|
|
90
88
|
readonly showDrag?: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
@@ -100,6 +98,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
100
98
|
attrs: {
|
|
101
99
|
[x: string]: unknown;
|
|
102
100
|
};
|
|
101
|
+
t: import("ll-plus/es/hooks").Translator;
|
|
103
102
|
newColumns: any;
|
|
104
103
|
settingColumns: any;
|
|
105
104
|
newDataSource: any;
|
|
@@ -280,7 +279,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
280
279
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
281
280
|
__epPropKey: true;
|
|
282
281
|
};
|
|
283
|
-
readonly operateText: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "操作", boolean>;
|
|
284
282
|
}>> & {
|
|
285
283
|
onHandleChangeDataSource?: ((dataSource: any[]) => any) | undefined;
|
|
286
284
|
}, {
|
|
@@ -293,6 +291,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
293
291
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
294
292
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
295
293
|
readonly showSetting: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
296
|
-
readonly operateText: string;
|
|
297
294
|
}, {}>;
|
|
298
295
|
export default _default;
|
|
@@ -76,7 +76,6 @@ export declare const mainTableProps: {
|
|
|
76
76
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
77
77
|
__epPropKey: true;
|
|
78
78
|
};
|
|
79
|
-
readonly operateText: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "操作", boolean>;
|
|
80
79
|
};
|
|
81
80
|
export declare const mainTableEmits: {
|
|
82
81
|
handleChangeDataSource: (dataSource: any[]) => boolean;
|
|
@@ -20,7 +20,6 @@ export declare const tableProps: {
|
|
|
20
20
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
21
21
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
22
22
|
readonly showSetting: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
23
|
-
readonly operateText: string;
|
|
24
23
|
} & {
|
|
25
24
|
readonly change?: Function | undefined;
|
|
26
25
|
readonly expand?: Function | undefined;
|
|
@@ -41,7 +40,6 @@ export declare const tableProps: {
|
|
|
41
40
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
42
41
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
43
42
|
readonly showSetting: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
44
|
-
readonly operateText: string;
|
|
45
43
|
} & {
|
|
46
44
|
readonly change?: Function | undefined;
|
|
47
45
|
readonly expand?: Function | undefined;
|
|
@@ -18,7 +18,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
18
18
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
19
19
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
20
20
|
readonly showSetting: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
21
|
-
readonly operateText: string;
|
|
22
21
|
} & {
|
|
23
22
|
readonly change?: Function | undefined;
|
|
24
23
|
readonly expand?: Function | undefined;
|
|
@@ -39,7 +38,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
39
38
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
40
39
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
41
40
|
readonly showSetting: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
42
|
-
readonly operateText: string;
|
|
43
41
|
} & {
|
|
44
42
|
readonly change?: Function | undefined;
|
|
45
43
|
readonly expand?: Function | undefined;
|
|
@@ -274,7 +272,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
274
272
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
275
273
|
__epPropKey: true;
|
|
276
274
|
};
|
|
277
|
-
readonly operateText: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "操作", boolean>;
|
|
278
275
|
}, {
|
|
279
276
|
props: import("@vue/shared").LooseRequired<{
|
|
280
277
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
@@ -286,7 +283,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
286
283
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
287
284
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
288
285
|
readonly showSetting: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
289
|
-
readonly operateText: string;
|
|
290
286
|
readonly change?: Function | undefined;
|
|
291
287
|
readonly expand?: Function | undefined;
|
|
292
288
|
readonly showDrag?: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
@@ -302,6 +298,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
302
298
|
attrs: {
|
|
303
299
|
[x: string]: unknown;
|
|
304
300
|
};
|
|
301
|
+
t: import("ll-plus/es/hooks").Translator;
|
|
305
302
|
newColumns: any;
|
|
306
303
|
settingColumns: any;
|
|
307
304
|
newDataSource: any;
|
|
@@ -482,7 +479,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
482
479
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
483
480
|
__epPropKey: true;
|
|
484
481
|
};
|
|
485
|
-
readonly operateText: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "操作", boolean>;
|
|
486
482
|
}>> & {
|
|
487
483
|
onHandleChangeDataSource?: ((dataSource: any[]) => any) | undefined;
|
|
488
484
|
}, {
|
|
@@ -495,7 +491,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
495
491
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
496
492
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
497
493
|
readonly showSetting: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
498
|
-
readonly operateText: string;
|
|
499
494
|
}, {}>;
|
|
500
495
|
Pagination: import("vue").DefineComponent<{
|
|
501
496
|
readonly current: {
|
|
@@ -604,7 +599,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
604
599
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
605
600
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
606
601
|
readonly showSetting: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
607
|
-
readonly operateText: string;
|
|
608
602
|
} & {
|
|
609
603
|
readonly change?: Function | undefined;
|
|
610
604
|
readonly expand?: Function | undefined;
|
|
@@ -625,7 +619,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
625
619
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
626
620
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
627
621
|
readonly showSetting: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
628
|
-
readonly operateText: string;
|
|
629
622
|
} & {
|
|
630
623
|
readonly change?: Function | undefined;
|
|
631
624
|
readonly expand?: Function | undefined;
|
package/es/hooks/index.d.ts
CHANGED
|
@@ -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":"
|
|
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
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../utils/index.mjs';
|
|
2
2
|
import ConfigProvider from './src/config-provider.vue.mjs';
|
|
3
|
-
|
|
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
|
|
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:
|
|
55
|
+
title: t("ll.table.operate"),
|
|
53
56
|
dataIndex: "",
|
|
54
57
|
key: "operate",
|
|
55
58
|
maxWidth,
|