ll-plus 2.3.13 → 2.3.15
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/index.mjs +1 -1
- package/es/components/table/index.d.ts +8 -8
- package/es/components/table/index.mjs +1 -1
- package/es/components/table/src/components/main-table.vue.d.ts +4 -4
- package/es/components/table/src/config/index.mjs +1 -1
- package/es/components/table/src/config/main-table.d.ts +3 -1
- package/es/components/table/src/config/main-table.mjs +4 -2
- package/es/components/table/src/config/main-table.mjs.map +1 -1
- package/es/components/table/src/config/table.d.ts +2 -2
- package/es/components/table/src/table.vue.d.ts +8 -8
- package/es/components/table/src/table.vue2.mjs +1 -0
- package/es/components/table/src/table.vue2.mjs.map +1 -1
- package/es/index.mjs +1 -1
- package/index.full.js +5 -1
- package/index.full.min.js +15 -15
- package/index.full.min.js.map +1 -1
- package/index.full.min.mjs +15 -15
- package/index.full.min.mjs.map +1 -1
- package/index.full.mjs +5 -2
- package/lib/components/index.js +1 -0
- package/lib/components/index.js.map +1 -1
- package/lib/components/table/index.d.ts +8 -8
- package/lib/components/table/index.js +1 -0
- package/lib/components/table/index.js.map +1 -1
- package/lib/components/table/src/components/main-table.vue.d.ts +4 -4
- package/lib/components/table/src/config/index.js +1 -0
- package/lib/components/table/src/config/index.js.map +1 -1
- package/lib/components/table/src/config/main-table.d.ts +3 -1
- package/lib/components/table/src/config/main-table.js +4 -1
- package/lib/components/table/src/config/main-table.js.map +1 -1
- package/lib/components/table/src/config/table.d.ts +2 -2
- package/lib/components/table/src/table.vue.d.ts +8 -8
- package/lib/components/table/src/table.vue2.js +1 -0
- package/lib/components/table/src/table.vue2.js.map +1 -1
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/types/packages/components/table/index.d.ts +8 -8
- package/types/packages/components/table/src/components/main-table.vue.d.ts +4 -4
- package/types/packages/components/table/src/config/main-table.d.ts +3 -1
- package/types/packages/components/table/src/config/table.d.ts +2 -2
- package/types/packages/components/table/src/table.vue.d.ts +8 -8
package/es/components/index.mjs
CHANGED
|
@@ -89,7 +89,7 @@ export { OperateTreeEmits, operateTreeEmits, operateTreeProps } from './operate-
|
|
|
89
89
|
export { selectOptGroupProps, selectOptionProps } from './select/src/select.mjs';
|
|
90
90
|
export { selectGroupData, selectGroupEmits, selectGroupFormType, selectGroupProps } from './select-group/src/select-group.mjs';
|
|
91
91
|
export { ImenuSwitchType, menuSwitchRadioList, tableHeaderSearchEmits, tableHeaderSearchProps } from './table/src/config/header-search.mjs';
|
|
92
|
-
export { mainTableEmits, mainTableProps } from './table/src/config/main-table.mjs';
|
|
92
|
+
export { mainTableEmits, mainTableProps, tableContentType } from './table/src/config/main-table.mjs';
|
|
93
93
|
export { tablePaginationProps } from './table/src/config/pagination.mjs';
|
|
94
94
|
export { tableProps } from './table/src/config/table.mjs';
|
|
95
95
|
export { tabsSimpleEmits, tabsSimpleProps } from './tabs-simple/src/tabs-simple.mjs';
|
|
@@ -9,7 +9,7 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
9
9
|
readonly tableProps: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => {
|
|
10
10
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
11
11
|
readonly dataSource: any[];
|
|
12
|
-
readonly contentType:
|
|
12
|
+
readonly contentType: import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "card" | "table", unknown>;
|
|
13
13
|
readonly settingKey: string;
|
|
14
14
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
15
15
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -28,7 +28,7 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
28
28
|
}) | (() => import("./src/config").MainTableProps) | ((new (...args: any[]) => {
|
|
29
29
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
30
30
|
readonly dataSource: any[];
|
|
31
|
-
readonly contentType:
|
|
31
|
+
readonly contentType: import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "card" | "table", unknown>;
|
|
32
32
|
readonly settingKey: string;
|
|
33
33
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
34
34
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -179,7 +179,7 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
179
179
|
readonly menuSwitchOptions: import("./src/config").IMenuSwitchOptions;
|
|
180
180
|
}, {}>;
|
|
181
181
|
MainTable: import("vue").DefineComponent<{
|
|
182
|
-
readonly contentType: import("ll-plus/es/utils").EpPropFinalized<StringConstructor,
|
|
182
|
+
readonly contentType: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, "card" | "table", unknown, "table", boolean>;
|
|
183
183
|
readonly settingKey: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
184
184
|
readonly columns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("ant-design-vue").TableColumnProps[]) | (() => import("ant-design-vue").TableColumnProps[]) | ((new (...args: any[]) => import("ant-design-vue").TableColumnProps[]) | (() => import("ant-design-vue").TableColumnProps[]))[], unknown, unknown, () => never[], boolean>;
|
|
185
185
|
readonly dataSource: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
@@ -250,7 +250,7 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
250
250
|
props: import("@vue/shared").LooseRequired<{
|
|
251
251
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
252
252
|
readonly dataSource: any[];
|
|
253
|
-
readonly contentType:
|
|
253
|
+
readonly contentType: import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "card" | "table", unknown>;
|
|
254
254
|
readonly settingKey: string;
|
|
255
255
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
256
256
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -378,7 +378,7 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
378
378
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
379
379
|
handleChangeDataSource: (dataSource: any[]) => boolean;
|
|
380
380
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
381
|
-
readonly contentType: import("ll-plus/es/utils").EpPropFinalized<StringConstructor,
|
|
381
|
+
readonly contentType: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, "card" | "table", unknown, "table", boolean>;
|
|
382
382
|
readonly settingKey: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
383
383
|
readonly columns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("ant-design-vue").TableColumnProps[]) | (() => import("ant-design-vue").TableColumnProps[]) | ((new (...args: any[]) => import("ant-design-vue").TableColumnProps[]) | (() => import("ant-design-vue").TableColumnProps[]))[], unknown, unknown, () => never[], boolean>;
|
|
384
384
|
readonly dataSource: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
@@ -450,7 +450,7 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
450
450
|
}, {
|
|
451
451
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
452
452
|
readonly dataSource: any[];
|
|
453
|
-
readonly contentType:
|
|
453
|
+
readonly contentType: import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "card" | "table", unknown>;
|
|
454
454
|
readonly settingKey: string;
|
|
455
455
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
456
456
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -538,7 +538,7 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
538
538
|
readonly tableProps: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => {
|
|
539
539
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
540
540
|
readonly dataSource: any[];
|
|
541
|
-
readonly contentType:
|
|
541
|
+
readonly contentType: import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "card" | "table", unknown>;
|
|
542
542
|
readonly settingKey: string;
|
|
543
543
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
544
544
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -557,7 +557,7 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
557
557
|
}) | (() => import("./src/config").MainTableProps) | ((new (...args: any[]) => {
|
|
558
558
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
559
559
|
readonly dataSource: any[];
|
|
560
|
-
readonly contentType:
|
|
560
|
+
readonly contentType: import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "card" | "table", unknown>;
|
|
561
561
|
readonly settingKey: string;
|
|
562
562
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
563
563
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -3,7 +3,7 @@ import Table from './src/table.vue.mjs';
|
|
|
3
3
|
import './src/config/index.mjs';
|
|
4
4
|
import { withInstall } from '../../utils/with-install.mjs';
|
|
5
5
|
export { ImenuSwitchType, menuSwitchRadioList, tableHeaderSearchEmits, tableHeaderSearchProps } from './src/config/header-search.mjs';
|
|
6
|
-
export { mainTableEmits, mainTableProps } from './src/config/main-table.mjs';
|
|
6
|
+
export { mainTableEmits, mainTableProps, tableContentType } from './src/config/main-table.mjs';
|
|
7
7
|
export { tablePaginationProps } from './src/config/pagination.mjs';
|
|
8
8
|
export { tableProps } from './src/config/table.mjs';
|
|
9
9
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
|
-
readonly contentType: import("ll-plus/es/utils").EpPropFinalized<StringConstructor,
|
|
2
|
+
readonly contentType: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, "card" | "table", unknown, "table", boolean>;
|
|
3
3
|
readonly settingKey: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
4
4
|
readonly columns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("ant-design-vue").TableColumnProps[]) | (() => import("ant-design-vue").TableColumnProps[]) | ((new (...args: any[]) => import("ant-design-vue").TableColumnProps[]) | (() => import("ant-design-vue").TableColumnProps[]))[], unknown, unknown, () => never[], boolean>;
|
|
5
5
|
readonly dataSource: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
@@ -70,7 +70,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
70
70
|
props: import("@vue/shared").LooseRequired<{
|
|
71
71
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
72
72
|
readonly dataSource: any[];
|
|
73
|
-
readonly contentType:
|
|
73
|
+
readonly contentType: import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "card" | "table", unknown>;
|
|
74
74
|
readonly settingKey: string;
|
|
75
75
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
76
76
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -198,7 +198,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
198
198
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
199
199
|
handleChangeDataSource: (dataSource: any[]) => boolean;
|
|
200
200
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
201
|
-
readonly contentType: import("ll-plus/es/utils").EpPropFinalized<StringConstructor,
|
|
201
|
+
readonly contentType: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, "card" | "table", unknown, "table", boolean>;
|
|
202
202
|
readonly settingKey: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
203
203
|
readonly columns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("ant-design-vue").TableColumnProps[]) | (() => import("ant-design-vue").TableColumnProps[]) | ((new (...args: any[]) => import("ant-design-vue").TableColumnProps[]) | (() => import("ant-design-vue").TableColumnProps[]))[], unknown, unknown, () => never[], boolean>;
|
|
204
204
|
readonly dataSource: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
@@ -270,7 +270,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
270
270
|
}, {
|
|
271
271
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
272
272
|
readonly dataSource: any[];
|
|
273
|
-
readonly contentType:
|
|
273
|
+
readonly contentType: import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "card" | "table", unknown>;
|
|
274
274
|
readonly settingKey: string;
|
|
275
275
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
276
276
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { ImenuSwitchType, menuSwitchRadioList, tableHeaderSearchEmits, tableHeaderSearchProps } from './header-search.mjs';
|
|
2
|
-
export { mainTableEmits, mainTableProps } from './main-table.mjs';
|
|
2
|
+
export { mainTableEmits, mainTableProps, tableContentType } from './main-table.mjs';
|
|
3
3
|
export { tablePaginationProps } from './pagination.mjs';
|
|
4
4
|
export { tableProps } from './table.mjs';
|
|
5
5
|
|
|
@@ -5,8 +5,9 @@ export interface ITableScroll {
|
|
|
5
5
|
x: number | string | boolean;
|
|
6
6
|
y: number | string;
|
|
7
7
|
}
|
|
8
|
+
export declare const tableContentType: readonly ["table", "card"];
|
|
8
9
|
export declare const mainTableProps: {
|
|
9
|
-
readonly contentType: import("ll-plus/es/utils").EpPropFinalized<StringConstructor,
|
|
10
|
+
readonly contentType: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, "card" | "table", unknown, "table", boolean>;
|
|
10
11
|
readonly settingKey: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
11
12
|
readonly columns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => TableColumnProps[]) | (() => TableColumnProps[]) | ((new (...args: any[]) => TableColumnProps[]) | (() => TableColumnProps[]))[], unknown, unknown, () => never[], boolean>;
|
|
12
13
|
readonly dataSource: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
@@ -78,5 +79,6 @@ export declare const mainTableEmits: {
|
|
|
78
79
|
handleChangeDataSource: (dataSource: any[]) => boolean;
|
|
79
80
|
};
|
|
80
81
|
export type MainTableProps = ExtractPropTypes<typeof mainTableProps>;
|
|
82
|
+
export type TableContentType = MainTableProps['contentType'];
|
|
81
83
|
export type MainTableEmits = typeof mainTableEmits;
|
|
82
84
|
export type MainTableInstance = InstanceType<typeof MainTable>;
|
|
@@ -2,13 +2,15 @@ import '../../../../utils/index.mjs';
|
|
|
2
2
|
import { buildProps, definePropType } from '../../../../utils/props/runtime.mjs';
|
|
3
3
|
|
|
4
4
|
"use strict";
|
|
5
|
+
const tableContentType = ["table", "card"];
|
|
5
6
|
const mainTableProps = buildProps({
|
|
6
7
|
/**
|
|
7
8
|
* @description 动态插槽显示card和table
|
|
8
9
|
*/
|
|
9
10
|
contentType: {
|
|
10
11
|
type: String,
|
|
11
|
-
|
|
12
|
+
values: tableContentType,
|
|
13
|
+
default: "table"
|
|
12
14
|
},
|
|
13
15
|
/**
|
|
14
16
|
* @description 操作栏编辑操作列的key,用于下次记录用户行为
|
|
@@ -117,5 +119,5 @@ const mainTableEmits = {
|
|
|
117
119
|
handleChangeDataSource: (dataSource) => !!dataSource
|
|
118
120
|
};
|
|
119
121
|
|
|
120
|
-
export { mainTableEmits, mainTableProps };
|
|
122
|
+
export { mainTableEmits, mainTableProps, tableContentType };
|
|
121
123
|
//# sourceMappingURL=main-table.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main-table.mjs","sources":["../../../../../../packages/components/table/src/config/main-table.ts"],"sourcesContent":["import { buildProps, definePropType } from '@ll-plus/utils'\n\nimport MainTable from '../components/main-table.vue'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type { TableColumnProps } from 'ant-design-vue'\n\n// ITableScroll\nexport interface ITableScroll {\n x: number | string | boolean\n y: number | string\n}\nexport const mainTableProps = buildProps({\n /**\n * @description 动态插槽显示card和table\n */\n contentType: {\n type: String,\n default: ''\n },\n /**\n * @description 操作栏编辑操作列的key,用于下次记录用户行为\n */\n settingKey: {\n type: String,\n default: ''\n },\n /**\n * @description 列设置\n */\n columns: {\n type: definePropType<TableColumnProps[]>(Array),\n default: () => []\n },\n /**\n * @description 数据源\n */\n dataSource: {\n type: definePropType<any[]>(Array),\n default: () => []\n },\n /**\n * @description 是否数据拖拽\n */\n showDrag: {\n type: Boolean\n },\n /**\n * @description 是否显示#序列\n */\n showIndexColumn: {\n type: Boolean,\n default: true\n },\n /**\n * @description 展示操作列的\n */\n showOperate: {\n type: Boolean,\n default: true\n },\n /**\n * @description 是否显示操作栏上的设置\n */\n showSetting: {\n type: Boolean,\n default: true\n },\n /**\n * @description table的scroll\n */\n scroll: {\n type: definePropType<ITableScroll>(Object)\n },\n /**\n * @description 展开的key\n */\n expandedRowKeys: {\n type: definePropType<string[]>(Array)\n },\n /**\n * @description 是否隐藏分页\n */\n hiddenPagination: {\n type: Boolean\n },\n /**\n * @description 设置行属性同表格的customRow属性\n */\n customRowProps: {\n type: Function\n },\n /**\n * @description 点击展开图标时触发\n */\n expand: {\n type: Function\n },\n /**\n * @description 分页、排序、筛选变化时触发\n */\n change: {\n type: Function\n },\n /**\n * @description 展开的行变化时触发\n */\n expandedRowsChange: {\n type: Function\n },\n /**\n * @description 拖动列改变列的宽度时触发\n */\n resizeColumn: {\n type: Function\n },\n /**\n * @description 拖拽后的change\n */\n dragChange: {\n type: Function\n }\n} as const)\n\nexport const mainTableEmits = {\n handleChangeDataSource: (dataSource: any[]) => !!dataSource\n}\n\n// props\nexport type MainTableProps = ExtractPropTypes<typeof mainTableProps>\n\n// emits\nexport type MainTableEmits = typeof mainTableEmits\n\n// instance\nexport type MainTableInstance = InstanceType<typeof MainTable>\n"],"names":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"main-table.mjs","sources":["../../../../../../packages/components/table/src/config/main-table.ts"],"sourcesContent":["import { buildProps, definePropType } from '@ll-plus/utils'\n\nimport MainTable from '../components/main-table.vue'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type { TableColumnProps } from 'ant-design-vue'\n\n// ITableScroll\nexport interface ITableScroll {\n x: number | string | boolean\n y: number | string\n}\n\n// 弹窗定位的位置\nexport const tableContentType = ['table', 'card'] as const\nexport const mainTableProps = buildProps({\n /**\n * @description 动态插槽显示card和table\n */\n contentType: {\n type: String,\n values: tableContentType,\n default: 'table'\n },\n /**\n * @description 操作栏编辑操作列的key,用于下次记录用户行为\n */\n settingKey: {\n type: String,\n default: ''\n },\n /**\n * @description 列设置\n */\n columns: {\n type: definePropType<TableColumnProps[]>(Array),\n default: () => []\n },\n /**\n * @description 数据源\n */\n dataSource: {\n type: definePropType<any[]>(Array),\n default: () => []\n },\n /**\n * @description 是否数据拖拽\n */\n showDrag: {\n type: Boolean\n },\n /**\n * @description 是否显示#序列\n */\n showIndexColumn: {\n type: Boolean,\n default: true\n },\n /**\n * @description 展示操作列的\n */\n showOperate: {\n type: Boolean,\n default: true\n },\n /**\n * @description 是否显示操作栏上的设置\n */\n showSetting: {\n type: Boolean,\n default: true\n },\n /**\n * @description table的scroll\n */\n scroll: {\n type: definePropType<ITableScroll>(Object)\n },\n /**\n * @description 展开的key\n */\n expandedRowKeys: {\n type: definePropType<string[]>(Array)\n },\n /**\n * @description 是否隐藏分页\n */\n hiddenPagination: {\n type: Boolean\n },\n /**\n * @description 设置行属性同表格的customRow属性\n */\n customRowProps: {\n type: Function\n },\n /**\n * @description 点击展开图标时触发\n */\n expand: {\n type: Function\n },\n /**\n * @description 分页、排序、筛选变化时触发\n */\n change: {\n type: Function\n },\n /**\n * @description 展开的行变化时触发\n */\n expandedRowsChange: {\n type: Function\n },\n /**\n * @description 拖动列改变列的宽度时触发\n */\n resizeColumn: {\n type: Function\n },\n /**\n * @description 拖拽后的change\n */\n dragChange: {\n type: Function\n }\n} as const)\n\nexport const mainTableEmits = {\n handleChangeDataSource: (dataSource: any[]) => !!dataSource\n}\n\n// props\nexport type MainTableProps = ExtractPropTypes<typeof mainTableProps>\nexport type TableContentType = MainTableProps['contentType']\n\n// emits\nexport type MainTableEmits = typeof mainTableEmits\n\n// instance\nexport type MainTableInstance = InstanceType<typeof MainTable>\n"],"names":[],"mappings":";;;;AAca,MAAA,gBAAA,GAAmB,CAAC,OAAA,EAAS,MAAM,EAAA;AACzC,MAAM,iBAAiB,UAAW,CAAA;AAAA;AAAA;AAAA;AAAA,EAIvC,WAAa,EAAA;AAAA,IACX,IAAM,EAAA,MAAA;AAAA,IACN,MAAQ,EAAA,gBAAA;AAAA,IACR,OAAS,EAAA,OAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,UAAY,EAAA;AAAA,IACV,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,OAAS,EAAA;AAAA,IACP,IAAA,EAAM,eAAmC,KAAK,CAAA;AAAA,IAC9C,OAAA,EAAS,MAAM,EAAC;AAAA,GAClB;AAAA;AAAA;AAAA;AAAA,EAIA,UAAY,EAAA;AAAA,IACV,IAAA,EAAM,eAAsB,KAAK,CAAA;AAAA,IACjC,OAAA,EAAS,MAAM,EAAC;AAAA,GAClB;AAAA;AAAA;AAAA;AAAA,EAIA,QAAU,EAAA;AAAA,IACR,IAAM,EAAA,OAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,eAAiB,EAAA;AAAA,IACf,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,IAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,WAAa,EAAA;AAAA,IACX,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,IAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,WAAa,EAAA;AAAA,IACX,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,IAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,MAAQ,EAAA;AAAA,IACN,IAAA,EAAM,eAA6B,MAAM,CAAA;AAAA,GAC3C;AAAA;AAAA;AAAA;AAAA,EAIA,eAAiB,EAAA;AAAA,IACf,IAAA,EAAM,eAAyB,KAAK,CAAA;AAAA,GACtC;AAAA;AAAA;AAAA;AAAA,EAIA,gBAAkB,EAAA;AAAA,IAChB,IAAM,EAAA,OAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,cAAgB,EAAA;AAAA,IACd,IAAM,EAAA,QAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,QAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,QAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,kBAAoB,EAAA;AAAA,IAClB,IAAM,EAAA,QAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,YAAc,EAAA;AAAA,IACZ,IAAM,EAAA,QAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,UAAY,EAAA;AAAA,IACV,IAAM,EAAA,QAAA;AAAA,GACR;AACF,CAAU,EAAA;AAEH,MAAM,cAAiB,GAAA;AAAA,EAC5B,sBAAwB,EAAA,CAAC,UAAsB,KAAA,CAAC,CAAC,UAAA;AACnD;;;;"}
|
|
@@ -11,7 +11,7 @@ export declare const tableProps: {
|
|
|
11
11
|
readonly tableProps: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => {
|
|
12
12
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
13
13
|
readonly dataSource: any[];
|
|
14
|
-
readonly contentType:
|
|
14
|
+
readonly contentType: import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "card" | "table", unknown>;
|
|
15
15
|
readonly settingKey: string;
|
|
16
16
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
17
17
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -30,7 +30,7 @@ export declare const tableProps: {
|
|
|
30
30
|
}) | (() => MainTableProps) | ((new (...args: any[]) => {
|
|
31
31
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
32
32
|
readonly dataSource: any[];
|
|
33
|
-
readonly contentType:
|
|
33
|
+
readonly contentType: import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "card" | "table", unknown>;
|
|
34
34
|
readonly settingKey: string;
|
|
35
35
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
36
36
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -9,7 +9,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
9
9
|
readonly tableProps: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => {
|
|
10
10
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
11
11
|
readonly dataSource: any[];
|
|
12
|
-
readonly contentType:
|
|
12
|
+
readonly contentType: import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "card" | "table", unknown>;
|
|
13
13
|
readonly settingKey: string;
|
|
14
14
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
15
15
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -28,7 +28,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
28
28
|
}) | (() => import("./config").MainTableProps) | ((new (...args: any[]) => {
|
|
29
29
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
30
30
|
readonly dataSource: any[];
|
|
31
|
-
readonly contentType:
|
|
31
|
+
readonly contentType: import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "card" | "table", unknown>;
|
|
32
32
|
readonly settingKey: string;
|
|
33
33
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
34
34
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -179,7 +179,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
179
179
|
readonly menuSwitchOptions: import("./config").IMenuSwitchOptions;
|
|
180
180
|
}, {}>;
|
|
181
181
|
MainTable: import("vue").DefineComponent<{
|
|
182
|
-
readonly contentType: import("ll-plus/es/utils").EpPropFinalized<StringConstructor,
|
|
182
|
+
readonly contentType: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, "card" | "table", unknown, "table", boolean>;
|
|
183
183
|
readonly settingKey: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
184
184
|
readonly columns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("ant-design-vue").TableColumnProps[]) | (() => import("ant-design-vue").TableColumnProps[]) | ((new (...args: any[]) => import("ant-design-vue").TableColumnProps[]) | (() => import("ant-design-vue").TableColumnProps[]))[], unknown, unknown, () => never[], boolean>;
|
|
185
185
|
readonly dataSource: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
@@ -250,7 +250,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
250
250
|
props: import("@vue/shared").LooseRequired<{
|
|
251
251
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
252
252
|
readonly dataSource: any[];
|
|
253
|
-
readonly contentType:
|
|
253
|
+
readonly contentType: import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "card" | "table", unknown>;
|
|
254
254
|
readonly settingKey: string;
|
|
255
255
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
256
256
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -378,7 +378,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
378
378
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
379
379
|
handleChangeDataSource: (dataSource: any[]) => boolean;
|
|
380
380
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
381
|
-
readonly contentType: import("ll-plus/es/utils").EpPropFinalized<StringConstructor,
|
|
381
|
+
readonly contentType: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, "card" | "table", unknown, "table", boolean>;
|
|
382
382
|
readonly settingKey: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
383
383
|
readonly columns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("ant-design-vue").TableColumnProps[]) | (() => import("ant-design-vue").TableColumnProps[]) | ((new (...args: any[]) => import("ant-design-vue").TableColumnProps[]) | (() => import("ant-design-vue").TableColumnProps[]))[], unknown, unknown, () => never[], boolean>;
|
|
384
384
|
readonly dataSource: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
@@ -450,7 +450,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
450
450
|
}, {
|
|
451
451
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
452
452
|
readonly dataSource: any[];
|
|
453
|
-
readonly contentType:
|
|
453
|
+
readonly contentType: import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "card" | "table", unknown>;
|
|
454
454
|
readonly settingKey: string;
|
|
455
455
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
456
456
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -538,7 +538,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
538
538
|
readonly tableProps: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => {
|
|
539
539
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
540
540
|
readonly dataSource: any[];
|
|
541
|
-
readonly contentType:
|
|
541
|
+
readonly contentType: import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "card" | "table", unknown>;
|
|
542
542
|
readonly settingKey: string;
|
|
543
543
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
544
544
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -557,7 +557,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
557
557
|
}) | (() => import("./config").MainTableProps) | ((new (...args: any[]) => {
|
|
558
558
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
559
559
|
readonly dataSource: any[];
|
|
560
|
-
readonly contentType:
|
|
560
|
+
readonly contentType: import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "card" | "table", unknown>;
|
|
561
561
|
readonly settingKey: string;
|
|
562
562
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
563
563
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.vue2.mjs","sources":["../../../../../packages/components/table/src/table.vue"],"sourcesContent":["<template>\n <a-spin :spinning=\"props.loading\" wrapper-class-name=\"ll-table-spin-wrapper\">\n <div :class=\"bem.b()\">\n <!-- 头部seach -->\n <header-search\n v-bind=\"headerSearchProps\"\n @change=\"handleSwitchMenuChange\"\n >\n <!-- header-slot -->\n <template #header>\n <slot name=\"header\" />\n </template>\n <slot name=\"header\"></slot>\n <!-- left-slot -->\n <template #headerLeft>\n <slot name=\"headerLeft\"></slot>\n </template>\n <!-- middle-slot -->\n <template #headerMiddle>\n <slot name=\"headerMiddle\"></slot>\n </template>\n <!-- right-slot -->\n <template #headerRight>\n <slot name=\"headerRight\"></slot>\n </template>\n </header-search>\n <!-- slot-content table和card默认table -->\n <div\n :class=\"[\n bem.m('fixed-height'),\n !newNaTableptions.dataSource!.length ? bem.m('empty') : ''\n ]\"\n >\n <slot :name=\"contentType\">\n <main-table\n v-bind=\"newNaTableptions\"\n @handle-change-data-source=\"handleChangeDataSource\"\n >\n <!-- tableHeaderCell-slot -->\n <template #tableHeaderCell=\"slots\">\n <slot name=\"tableHeaderCell\" v-bind=\"slots\"></slot>\n </template>\n <!-- tableBodyCell-slot -->\n <template #tableBodyCell=\"slots\">\n <slot name=\"tableBodyCell\" v-bind=\"slots\"></slot>\n </template>\n <!--tableOperate-slot -->\n <template #tableOperate=\"slots\">\n <slot name=\"tableOperate\" v-bind=\"slots\"></slot>\n </template>\n <!-- tableRowExpand-slot -->\n <template v-if=\"$slots.expandedRow\" #expandedRow=\"slots\">\n <slot name=\"expandedRow\" v-bind=\"slots\"></slot>\n </template>\n <!-- expandColumnTitle-slot -->\n <template #expandedTitle>\n <slot name=\"expandedTitle\"> </slot>\n </template>\n <!-- empty-slot -->\n <template #emptyText>\n <slot name=\"emptyText\"></slot>\n </template>\n <!-- customFilterDropdown-slot -->\n <template\n v-if=\"$slots.customFilterDropdown\"\n #customFilterDropdown=\"slots\"\n >\n <slot name=\"customFilterDropdown\" v-bind=\"slots\"></slot>\n </template>\n <!-- customFilterIcon-slot -->\n <template v-if=\"$slots.customFilterIcon\" #customFilterIcon=\"slots\">\n <slot name=\"customFilterIcon\" v-bind=\"slots\"></slot>\n </template>\n <!-- summary-slot -->\n <template v-if=\"$slots.summary\" #summary=\"slots\">\n <slot name=\"summary\" v-bind=\"slots\"></slot>\n </template>\n </main-table>\n </slot>\n </div>\n <!-- 底部分页 -->\n <template\n v-if=\"\n newNaTableptions.dataSource!.length &&\n !newNaTableptions.hiddenPagination\n \"\n >\n <pagination v-bind=\"paginationProps\" />\n </template>\n </div>\n </a-spin>\n</template>\n<script lang=\"ts\" setup>\nimport { ref, watch, provide } from 'vue'\n\nimport { ImenuSwitchType } from './config'\nimport { createNamespace } from '@ll-plus/utils'\n\nimport HeaderSearch from './components/header-search.vue'\nimport MainTable from './components/main-table.vue'\nimport Pagination from './components/pagination.vue'\n\nimport { tableProps } from './config'\n\n// 1.defineOptions\ndefineOptions({ name: 'LlTable' })\n\n// 2.props\nconst props = defineProps(tableProps)\n// 3.ref\n// 表格数据\nconst originDataSource = ref()\nconst newNaTableptions = ref<any>({\n dataSource: [],\n columns: []\n})\n// 菜单切换/内容插槽\nconst contentType = ref(ImenuSwitchType.TABLE) // 菜单切换\nconst bem = createNamespace('table')\n\n// 4.methods\n// 拖拽完成后获取拖拽后的数据\nconst handleChangeDataSource = (dataSource: any[]) => {\n newNaTableptions.value.dataSource = dataSource\n}\n// 切换菜单内容\nconst handleSwitchMenuChange = (v: ImenuSwitchType) => {\n contentType.value = v\n}\n\n// 5.watch\nwatch(\n () => props.tableProps,\n (newValue: any) => {\n if (newValue) {\n newNaTableptions.value = { ...newValue }\n originDataSource.value = [...newValue.dataSource]\n }\n },\n {\n deep: true,\n immediate: true\n }\n)\n// 6.其他\nprovide('contentType', contentType)\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AA4GA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AAGd,IAAA,MAAM,mBAAmB,GAAI,EAAA,CAAA;AAC7B,IAAA,MAAM,mBAAmB,GAAS,CAAA;AAAA,MAChC,YAAY,EAAC;AAAA,MACb,SAAS,EAAC;AAAA,KACX,CAAA,CAAA;AAED,IAAM,MAAA,WAAA,GAAc,GAAI,CAAA,eAAA,CAAgB,KAAK,CAAA,CAAA;AAC7C,IAAM,MAAA,GAAA,GAAM,gBAAgB,OAAO,CAAA,CAAA;AAInC,IAAM,MAAA,sBAAA,GAAyB,CAAC,UAAsB,KAAA;AACpD,MAAA,gBAAA,CAAiB,MAAM,UAAa,GAAA,UAAA,CAAA;AAAA,KACtC,CAAA;AAEA,IAAM,MAAA,sBAAA,GAAyB,CAAC,CAAuB,KAAA;AACrD,MAAA,WAAA,CAAY,KAAQ,GAAA,CAAA,CAAA;AAAA,KACtB,CAAA;AAGA,IAAA,KAAA;AAAA,MACE,MAAM,KAAM,CAAA,UAAA;AAAA,MACZ,CAAC,QAAkB,KAAA;AACjB,QAAA,IAAI,QAAU,EAAA;AACZ,UAAiB,gBAAA,CAAA,KAAA,GAAQ,EAAE,GAAG,QAAS,EAAA,CAAA;AACvC,UAAA,gBAAA,CAAiB,KAAQ,GAAA,CAAC,GAAG,QAAA,CAAS,UAAU,CAAA,CAAA;AAAA,
|
|
1
|
+
{"version":3,"file":"table.vue2.mjs","sources":["../../../../../packages/components/table/src/table.vue"],"sourcesContent":["<template>\n <a-spin :spinning=\"props.loading\" wrapper-class-name=\"ll-table-spin-wrapper\">\n <div :class=\"bem.b()\">\n <!-- 头部seach -->\n <header-search\n v-bind=\"headerSearchProps\"\n @change=\"handleSwitchMenuChange\"\n >\n <!-- header-slot -->\n <template #header>\n <slot name=\"header\" />\n </template>\n <slot name=\"header\"></slot>\n <!-- left-slot -->\n <template #headerLeft>\n <slot name=\"headerLeft\"></slot>\n </template>\n <!-- middle-slot -->\n <template #headerMiddle>\n <slot name=\"headerMiddle\"></slot>\n </template>\n <!-- right-slot -->\n <template #headerRight>\n <slot name=\"headerRight\"></slot>\n </template>\n </header-search>\n <!-- slot-content table和card默认table -->\n <div\n :class=\"[\n bem.m('fixed-height'),\n !newNaTableptions.dataSource!.length ? bem.m('empty') : ''\n ]\"\n >\n <slot :name=\"contentType\">\n <main-table\n v-bind=\"newNaTableptions\"\n @handle-change-data-source=\"handleChangeDataSource\"\n >\n <!-- tableHeaderCell-slot -->\n <template #tableHeaderCell=\"slots\">\n <slot name=\"tableHeaderCell\" v-bind=\"slots\"></slot>\n </template>\n <!-- tableBodyCell-slot -->\n <template #tableBodyCell=\"slots\">\n <slot name=\"tableBodyCell\" v-bind=\"slots\"></slot>\n </template>\n <!--tableOperate-slot -->\n <template #tableOperate=\"slots\">\n <slot name=\"tableOperate\" v-bind=\"slots\"></slot>\n </template>\n <!-- tableRowExpand-slot -->\n <template v-if=\"$slots.expandedRow\" #expandedRow=\"slots\">\n <slot name=\"expandedRow\" v-bind=\"slots\"></slot>\n </template>\n <!-- expandColumnTitle-slot -->\n <template #expandedTitle>\n <slot name=\"expandedTitle\"> </slot>\n </template>\n <!-- empty-slot -->\n <template #emptyText>\n <slot name=\"emptyText\"></slot>\n </template>\n <!-- customFilterDropdown-slot -->\n <template\n v-if=\"$slots.customFilterDropdown\"\n #customFilterDropdown=\"slots\"\n >\n <slot name=\"customFilterDropdown\" v-bind=\"slots\"></slot>\n </template>\n <!-- customFilterIcon-slot -->\n <template v-if=\"$slots.customFilterIcon\" #customFilterIcon=\"slots\">\n <slot name=\"customFilterIcon\" v-bind=\"slots\"></slot>\n </template>\n <!-- summary-slot -->\n <template v-if=\"$slots.summary\" #summary=\"slots\">\n <slot name=\"summary\" v-bind=\"slots\"></slot>\n </template>\n </main-table>\n </slot>\n </div>\n <!-- 底部分页 -->\n <template\n v-if=\"\n newNaTableptions.dataSource!.length &&\n !newNaTableptions.hiddenPagination\n \"\n >\n <pagination v-bind=\"paginationProps\" />\n </template>\n </div>\n </a-spin>\n</template>\n<script lang=\"ts\" setup>\nimport { ref, watch, provide } from 'vue'\n\nimport { ImenuSwitchType } from './config'\nimport { createNamespace } from '@ll-plus/utils'\n\nimport HeaderSearch from './components/header-search.vue'\nimport MainTable from './components/main-table.vue'\nimport Pagination from './components/pagination.vue'\n\nimport { tableProps } from './config'\n\n// 1.defineOptions\ndefineOptions({ name: 'LlTable' })\n\n// 2.props\nconst props = defineProps(tableProps)\n// 3.ref\n// 表格数据\nconst originDataSource = ref()\nconst newNaTableptions = ref<any>({\n dataSource: [],\n columns: []\n})\n// 菜单切换/内容插槽\nconst contentType = ref(ImenuSwitchType.TABLE) // 菜单切换\nconst bem = createNamespace('table')\n\n// 4.methods\n// 拖拽完成后获取拖拽后的数据\nconst handleChangeDataSource = (dataSource: any[]) => {\n newNaTableptions.value.dataSource = dataSource\n}\n// 切换菜单内容\nconst handleSwitchMenuChange = (v: ImenuSwitchType) => {\n contentType.value = v\n}\n\n// 5.watch\nwatch(\n () => props.tableProps,\n (newValue: any) => {\n if (newValue) {\n newNaTableptions.value = { ...newValue }\n originDataSource.value = [...newValue.dataSource]\n contentType.value = newNaTableptions.value.contentType\n }\n },\n {\n deep: true,\n immediate: true\n }\n)\n// 6.其他\nprovide('contentType', contentType)\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AA4GA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AAGd,IAAA,MAAM,mBAAmB,GAAI,EAAA,CAAA;AAC7B,IAAA,MAAM,mBAAmB,GAAS,CAAA;AAAA,MAChC,YAAY,EAAC;AAAA,MACb,SAAS,EAAC;AAAA,KACX,CAAA,CAAA;AAED,IAAM,MAAA,WAAA,GAAc,GAAI,CAAA,eAAA,CAAgB,KAAK,CAAA,CAAA;AAC7C,IAAM,MAAA,GAAA,GAAM,gBAAgB,OAAO,CAAA,CAAA;AAInC,IAAM,MAAA,sBAAA,GAAyB,CAAC,UAAsB,KAAA;AACpD,MAAA,gBAAA,CAAiB,MAAM,UAAa,GAAA,UAAA,CAAA;AAAA,KACtC,CAAA;AAEA,IAAM,MAAA,sBAAA,GAAyB,CAAC,CAAuB,KAAA;AACrD,MAAA,WAAA,CAAY,KAAQ,GAAA,CAAA,CAAA;AAAA,KACtB,CAAA;AAGA,IAAA,KAAA;AAAA,MACE,MAAM,KAAM,CAAA,UAAA;AAAA,MACZ,CAAC,QAAkB,KAAA;AACjB,QAAA,IAAI,QAAU,EAAA;AACZ,UAAiB,gBAAA,CAAA,KAAA,GAAQ,EAAE,GAAG,QAAS,EAAA,CAAA;AACvC,UAAA,gBAAA,CAAiB,KAAQ,GAAA,CAAC,GAAG,QAAA,CAAS,UAAU,CAAA,CAAA;AAChD,UAAY,WAAA,CAAA,KAAA,GAAQ,iBAAiB,KAAM,CAAA,WAAA,CAAA;AAAA,SAC7C;AAAA,OACF;AAAA,MACA;AAAA,QACE,IAAM,EAAA,IAAA;AAAA,QACN,SAAW,EAAA,IAAA;AAAA,OACb;AAAA,KACF,CAAA;AAEA,IAAA,OAAA,CAAQ,eAAe,WAAW,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/es/index.mjs
CHANGED
|
@@ -78,7 +78,7 @@ export { LlSpace } from './components/space/index.mjs';
|
|
|
78
78
|
export { LlSteps } from './components/steps/index.mjs';
|
|
79
79
|
export { LlSwitch } from './components/switch/index.mjs';
|
|
80
80
|
export { ImenuSwitchType, menuSwitchRadioList, tableHeaderSearchEmits, tableHeaderSearchProps } from './components/table/src/config/header-search.mjs';
|
|
81
|
-
export { mainTableEmits, mainTableProps } from './components/table/src/config/main-table.mjs';
|
|
81
|
+
export { mainTableEmits, mainTableProps, tableContentType } from './components/table/src/config/main-table.mjs';
|
|
82
82
|
export { tablePaginationProps } from './components/table/src/config/pagination.mjs';
|
|
83
83
|
export { tableProps } from './components/table/src/config/table.mjs';
|
|
84
84
|
export { LlTable } from './components/table/index.mjs';
|
package/index.full.js
CHANGED
|
@@ -61573,13 +61573,15 @@
|
|
|
61573
61573
|
// 返回值要明确返回一个布尔类型要不然vue会警告
|
|
61574
61574
|
};
|
|
61575
61575
|
|
|
61576
|
+
const tableContentType = ["table", "card"];
|
|
61576
61577
|
const mainTableProps = buildProps({
|
|
61577
61578
|
/**
|
|
61578
61579
|
* @description 动态插槽显示card和table
|
|
61579
61580
|
*/
|
|
61580
61581
|
contentType: {
|
|
61581
61582
|
type: String,
|
|
61582
|
-
|
|
61583
|
+
values: tableContentType,
|
|
61584
|
+
default: "table"
|
|
61583
61585
|
},
|
|
61584
61586
|
/**
|
|
61585
61587
|
* @description 操作栏编辑操作列的key,用于下次记录用户行为
|
|
@@ -69521,6 +69523,7 @@
|
|
|
69521
69523
|
if (newValue) {
|
|
69522
69524
|
newNaTableptions.value = { ...newValue };
|
|
69523
69525
|
originDataSource.value = [...newValue.dataSource];
|
|
69526
|
+
contentType.value = newNaTableptions.value.contentType;
|
|
69524
69527
|
}
|
|
69525
69528
|
},
|
|
69526
69529
|
{
|
|
@@ -77283,6 +77286,7 @@
|
|
|
77283
77286
|
exports.selectGroupProps = selectGroupProps;
|
|
77284
77287
|
exports.selectOptGroupProps = selectOptGroupProps;
|
|
77285
77288
|
exports.selectOptionProps = selectOptionProps;
|
|
77289
|
+
exports.tableContentType = tableContentType;
|
|
77286
77290
|
exports.tableHeaderSearchEmits = tableHeaderSearchEmits;
|
|
77287
77291
|
exports.tableHeaderSearchProps = tableHeaderSearchProps;
|
|
77288
77292
|
exports.tablePaginationProps = tablePaginationProps;
|