ll-plus 2.3.10 → 2.3.13
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/drawer/index.d.ts +2 -1
- package/es/components/drawer/src/components/second-confirmation/index.d.ts +5 -0
- package/es/components/drawer/src/components/second-confirmation/src/second-confirmation.vue.d.ts +5 -0
- package/es/components/drawer/src/drawer.vue.d.ts +2 -1
- package/es/components/drawer/src/drawer.vue2.mjs +31 -18
- package/es/components/drawer/src/drawer.vue2.mjs.map +1 -1
- package/es/components/modal/index.d.ts +5 -0
- package/es/components/modal/src/modal.d.ts +1 -0
- package/es/components/modal/src/modal.mjs +4 -0
- package/es/components/modal/src/modal.mjs.map +1 -1
- package/es/components/modal/src/modal.vue.d.ts +5 -0
- package/es/components/modal/src/modal.vue2.mjs +24 -6
- package/es/components/modal/src/modal.vue2.mjs.map +1 -1
- package/es/components/operate-icon/index.d.ts +1 -0
- package/es/components/operate-icon/src/operate-icon.vue.d.ts +1 -0
- package/es/components/operate-icon/src/operate-icon.vue2.mjs +3 -1
- package/es/components/operate-icon/src/operate-icon.vue2.mjs.map +1 -1
- package/es/components/table/index.d.ts +8 -0
- package/es/components/table/src/components/main-table.vue.d.ts +4 -0
- package/es/components/table/src/config/main-table.d.ts +1 -0
- package/es/components/table/src/config/main-table.mjs +7 -0
- package/es/components/table/src/config/main-table.mjs.map +1 -1
- package/es/components/table/src/config/table.d.ts +2 -0
- package/es/components/table/src/table.vue.d.ts +8 -0
- package/es/components/tree-search/index.d.ts +3 -0
- package/es/components/tree-search/src/config/tree-search.d.ts +1 -0
- package/es/components/tree-search/src/tree-search.vue.d.ts +3 -0
- package/es/utils/props/runtime.d.ts +2 -2
- package/index.full.js +72 -171
- package/index.full.min.js +22 -22
- package/index.full.min.js.map +1 -1
- package/index.full.min.mjs +19 -19
- package/index.full.min.mjs.map +1 -1
- package/index.full.mjs +72 -171
- package/lib/components/drawer/index.d.ts +2 -1
- package/lib/components/drawer/src/components/second-confirmation/index.d.ts +5 -0
- package/lib/components/drawer/src/components/second-confirmation/src/second-confirmation.vue.d.ts +5 -0
- package/lib/components/drawer/src/drawer.vue.d.ts +2 -1
- package/lib/components/drawer/src/drawer.vue2.js +29 -16
- package/lib/components/drawer/src/drawer.vue2.js.map +1 -1
- package/lib/components/modal/index.d.ts +5 -0
- package/lib/components/modal/src/modal.d.ts +1 -0
- package/lib/components/modal/src/modal.js +4 -0
- package/lib/components/modal/src/modal.js.map +1 -1
- package/lib/components/modal/src/modal.vue.d.ts +5 -0
- package/lib/components/modal/src/modal.vue2.js +24 -6
- package/lib/components/modal/src/modal.vue2.js.map +1 -1
- package/lib/components/operate-icon/index.d.ts +1 -0
- package/lib/components/operate-icon/src/operate-icon.vue.d.ts +1 -0
- package/lib/components/operate-icon/src/operate-icon.vue2.js +3 -1
- package/lib/components/operate-icon/src/operate-icon.vue2.js.map +1 -1
- package/lib/components/table/index.d.ts +8 -0
- package/lib/components/table/src/components/main-table.vue.d.ts +4 -0
- package/lib/components/table/src/config/main-table.d.ts +1 -0
- package/lib/components/table/src/config/main-table.js +7 -0
- package/lib/components/table/src/config/main-table.js.map +1 -1
- package/lib/components/table/src/config/table.d.ts +2 -0
- package/lib/components/table/src/table.vue.d.ts +8 -0
- package/lib/components/tree-search/index.d.ts +3 -0
- package/lib/components/tree-search/src/config/tree-search.d.ts +1 -0
- package/lib/components/tree-search/src/tree-search.vue.d.ts +3 -0
- package/lib/utils/props/runtime.d.ts +2 -2
- package/package.json +1 -1
- package/theme-chalk/css/drawer.css +1 -1
- package/theme-chalk/css/index.css +1 -1
- package/theme-chalk/css/key-value.css +1 -1
- package/theme-chalk/css/modal.css +1 -1
- package/types/packages/components/drawer/index.d.ts +2 -1
- package/types/packages/components/drawer/src/components/second-confirmation/index.d.ts +5 -0
- package/types/packages/components/drawer/src/components/second-confirmation/src/second-confirmation.vue.d.ts +5 -0
- package/types/packages/components/drawer/src/drawer.vue.d.ts +2 -1
- package/types/packages/components/modal/index.d.ts +5 -0
- package/types/packages/components/modal/src/modal.d.ts +1 -0
- package/types/packages/components/modal/src/modal.vue.d.ts +5 -0
- package/types/packages/components/operate-icon/index.d.ts +1 -0
- package/types/packages/components/operate-icon/src/operate-icon.vue.d.ts +1 -0
- package/types/packages/components/table/index.d.ts +8 -0
- package/types/packages/components/table/src/components/main-table.vue.d.ts +4 -0
- package/types/packages/components/table/src/config/main-table.d.ts +1 -0
- package/types/packages/components/table/src/config/table.d.ts +2 -0
- package/types/packages/components/table/src/table.vue.d.ts +8 -0
- package/types/packages/components/tree-search/index.d.ts +3 -0
- package/types/packages/components/tree-search/src/config/tree-search.d.ts +1 -0
- package/types/packages/components/tree-search/src/tree-search.vue.d.ts +3 -0
- package/types/packages/utils/props/runtime.d.ts +2 -2
|
@@ -9,6 +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: string;
|
|
12
13
|
readonly settingKey: string;
|
|
13
14
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
14
15
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -27,6 +28,7 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
27
28
|
}) | (() => import("./src/config").MainTableProps) | ((new (...args: any[]) => {
|
|
28
29
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
29
30
|
readonly dataSource: any[];
|
|
31
|
+
readonly contentType: string;
|
|
30
32
|
readonly settingKey: string;
|
|
31
33
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
32
34
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -177,6 +179,7 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
177
179
|
readonly menuSwitchOptions: import("./src/config").IMenuSwitchOptions;
|
|
178
180
|
}, {}>;
|
|
179
181
|
MainTable: import("vue").DefineComponent<{
|
|
182
|
+
readonly contentType: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
180
183
|
readonly settingKey: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
181
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>;
|
|
182
185
|
readonly dataSource: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
@@ -247,6 +250,7 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
247
250
|
props: import("@vue/shared").LooseRequired<{
|
|
248
251
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
249
252
|
readonly dataSource: any[];
|
|
253
|
+
readonly contentType: string;
|
|
250
254
|
readonly settingKey: string;
|
|
251
255
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
252
256
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -374,6 +378,7 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
374
378
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
375
379
|
handleChangeDataSource: (dataSource: any[]) => boolean;
|
|
376
380
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
381
|
+
readonly contentType: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
377
382
|
readonly settingKey: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
378
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>;
|
|
379
384
|
readonly dataSource: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
@@ -445,6 +450,7 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
445
450
|
}, {
|
|
446
451
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
447
452
|
readonly dataSource: any[];
|
|
453
|
+
readonly contentType: string;
|
|
448
454
|
readonly settingKey: string;
|
|
449
455
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
450
456
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -532,6 +538,7 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
532
538
|
readonly tableProps: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => {
|
|
533
539
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
534
540
|
readonly dataSource: any[];
|
|
541
|
+
readonly contentType: string;
|
|
535
542
|
readonly settingKey: string;
|
|
536
543
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
537
544
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -550,6 +557,7 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
550
557
|
}) | (() => import("./src/config").MainTableProps) | ((new (...args: any[]) => {
|
|
551
558
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
552
559
|
readonly dataSource: any[];
|
|
560
|
+
readonly contentType: string;
|
|
553
561
|
readonly settingKey: string;
|
|
554
562
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
555
563
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
readonly contentType: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
2
3
|
readonly settingKey: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
3
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>;
|
|
4
5
|
readonly dataSource: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
@@ -69,6 +70,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
69
70
|
props: import("@vue/shared").LooseRequired<{
|
|
70
71
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
71
72
|
readonly dataSource: any[];
|
|
73
|
+
readonly contentType: string;
|
|
72
74
|
readonly settingKey: string;
|
|
73
75
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
74
76
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -196,6 +198,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
196
198
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
197
199
|
handleChangeDataSource: (dataSource: any[]) => boolean;
|
|
198
200
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
201
|
+
readonly contentType: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
199
202
|
readonly settingKey: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
200
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>;
|
|
201
204
|
readonly dataSource: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
@@ -267,6 +270,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
267
270
|
}, {
|
|
268
271
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
269
272
|
readonly dataSource: any[];
|
|
273
|
+
readonly contentType: string;
|
|
270
274
|
readonly settingKey: string;
|
|
271
275
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
272
276
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -6,6 +6,7 @@ export interface ITableScroll {
|
|
|
6
6
|
y: number | string;
|
|
7
7
|
}
|
|
8
8
|
export declare const mainTableProps: {
|
|
9
|
+
readonly contentType: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
9
10
|
readonly settingKey: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
10
11
|
readonly columns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => TableColumnProps[]) | (() => TableColumnProps[]) | ((new (...args: any[]) => TableColumnProps[]) | (() => TableColumnProps[]))[], unknown, unknown, () => never[], boolean>;
|
|
11
12
|
readonly dataSource: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
@@ -3,6 +3,13 @@ import { buildProps, definePropType } from '../../../../utils/props/runtime.mjs'
|
|
|
3
3
|
|
|
4
4
|
"use strict";
|
|
5
5
|
const mainTableProps = buildProps({
|
|
6
|
+
/**
|
|
7
|
+
* @description 动态插槽显示card和table
|
|
8
|
+
*/
|
|
9
|
+
contentType: {
|
|
10
|
+
type: String,
|
|
11
|
+
default: ""
|
|
12
|
+
},
|
|
6
13
|
/**
|
|
7
14
|
* @description 操作栏编辑操作列的key,用于下次记录用户行为
|
|
8
15
|
*/
|
|
@@ -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 操作栏编辑操作列的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":";;;;AAYO,MAAM,iBAAiB,UAAW,CAAA;AAAA;AAAA;AAAA;AAAA,EAIvC,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;;;;"}
|
|
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":";;;;AAYO,MAAM,iBAAiB,UAAW,CAAA;AAAA;AAAA;AAAA;AAAA,EAIvC,WAAa,EAAA;AAAA,IACX,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;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,6 +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: string;
|
|
14
15
|
readonly settingKey: string;
|
|
15
16
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
16
17
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -29,6 +30,7 @@ export declare const tableProps: {
|
|
|
29
30
|
}) | (() => MainTableProps) | ((new (...args: any[]) => {
|
|
30
31
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
31
32
|
readonly dataSource: any[];
|
|
33
|
+
readonly contentType: string;
|
|
32
34
|
readonly settingKey: string;
|
|
33
35
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
34
36
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -9,6 +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: string;
|
|
12
13
|
readonly settingKey: string;
|
|
13
14
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
14
15
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -27,6 +28,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
27
28
|
}) | (() => import("./config").MainTableProps) | ((new (...args: any[]) => {
|
|
28
29
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
29
30
|
readonly dataSource: any[];
|
|
31
|
+
readonly contentType: string;
|
|
30
32
|
readonly settingKey: string;
|
|
31
33
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
32
34
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -177,6 +179,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
177
179
|
readonly menuSwitchOptions: import("./config").IMenuSwitchOptions;
|
|
178
180
|
}, {}>;
|
|
179
181
|
MainTable: import("vue").DefineComponent<{
|
|
182
|
+
readonly contentType: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
180
183
|
readonly settingKey: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
181
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>;
|
|
182
185
|
readonly dataSource: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
@@ -247,6 +250,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
247
250
|
props: import("@vue/shared").LooseRequired<{
|
|
248
251
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
249
252
|
readonly dataSource: any[];
|
|
253
|
+
readonly contentType: string;
|
|
250
254
|
readonly settingKey: string;
|
|
251
255
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
252
256
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -374,6 +378,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
374
378
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
375
379
|
handleChangeDataSource: (dataSource: any[]) => boolean;
|
|
376
380
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
381
|
+
readonly contentType: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
377
382
|
readonly settingKey: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
378
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>;
|
|
379
384
|
readonly dataSource: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
@@ -445,6 +450,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
445
450
|
}, {
|
|
446
451
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
447
452
|
readonly dataSource: any[];
|
|
453
|
+
readonly contentType: string;
|
|
448
454
|
readonly settingKey: string;
|
|
449
455
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
450
456
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -532,6 +538,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
532
538
|
readonly tableProps: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => {
|
|
533
539
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
534
540
|
readonly dataSource: any[];
|
|
541
|
+
readonly contentType: string;
|
|
535
542
|
readonly settingKey: string;
|
|
536
543
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
537
544
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -550,6 +557,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
550
557
|
}) | (() => import("./config").MainTableProps) | ((new (...args: any[]) => {
|
|
551
558
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
552
559
|
readonly dataSource: any[];
|
|
560
|
+
readonly contentType: string;
|
|
553
561
|
readonly settingKey: string;
|
|
554
562
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
555
563
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -29,6 +29,7 @@ export declare const LlTreeSearch: import("ll-plus/es/utils").SFCWithInstall<imp
|
|
|
29
29
|
readonly cancelText: string;
|
|
30
30
|
readonly showCancel: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
31
31
|
readonly confirmText: string;
|
|
32
|
+
readonly isConfirmModel: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
32
33
|
}>;
|
|
33
34
|
readonly required: false;
|
|
34
35
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
@@ -81,6 +82,7 @@ export declare const LlTreeSearch: import("ll-plus/es/utils").SFCWithInstall<imp
|
|
|
81
82
|
readonly cancelText: string;
|
|
82
83
|
readonly showCancel: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
83
84
|
readonly confirmText: string;
|
|
85
|
+
readonly isConfirmModel: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
84
86
|
} | undefined;
|
|
85
87
|
readonly drawerConfigProps?: {
|
|
86
88
|
readonly title: string;
|
|
@@ -342,6 +344,7 @@ export declare const LlTreeSearch: import("ll-plus/es/utils").SFCWithInstall<imp
|
|
|
342
344
|
readonly cancelText: string;
|
|
343
345
|
readonly showCancel: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
344
346
|
readonly confirmText: string;
|
|
347
|
+
readonly isConfirmModel: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
345
348
|
}>;
|
|
346
349
|
readonly required: false;
|
|
347
350
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
@@ -32,6 +32,7 @@ export declare const treeSearchProps: {
|
|
|
32
32
|
readonly cancelText: string;
|
|
33
33
|
readonly showCancel: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
34
34
|
readonly confirmText: string;
|
|
35
|
+
readonly isConfirmModel: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
35
36
|
}>;
|
|
36
37
|
readonly required: false;
|
|
37
38
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
@@ -28,6 +28,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
28
28
|
readonly cancelText: string;
|
|
29
29
|
readonly showCancel: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
30
30
|
readonly confirmText: string;
|
|
31
|
+
readonly isConfirmModel: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
31
32
|
}>;
|
|
32
33
|
readonly required: false;
|
|
33
34
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
@@ -80,6 +81,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
80
81
|
readonly cancelText: string;
|
|
81
82
|
readonly showCancel: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
82
83
|
readonly confirmText: string;
|
|
84
|
+
readonly isConfirmModel: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
83
85
|
} | undefined;
|
|
84
86
|
readonly drawerConfigProps?: {
|
|
85
87
|
readonly title: string;
|
|
@@ -341,6 +343,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
341
343
|
readonly cancelText: string;
|
|
342
344
|
readonly showCancel: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
343
345
|
readonly confirmText: string;
|
|
346
|
+
readonly isConfirmModel: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
344
347
|
}>;
|
|
345
348
|
readonly required: false;
|
|
346
349
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
@@ -27,6 +27,6 @@ export declare const buildProp: <Type = never, Value = never, Validator = never,
|
|
|
27
27
|
export type TestProps = Record<string, {
|
|
28
28
|
[epPropKey]: true;
|
|
29
29
|
} | NativePropType | EpPropInput<any, any, any, any, any>>;
|
|
30
|
-
export declare const buildProps: <Props extends Record<string, {
|
|
30
|
+
export declare const buildProps: <Props extends Record<string, NativePropType | EpPropInput<any, any, any, any, any> | {
|
|
31
31
|
__epPropKey: true;
|
|
32
|
-
}
|
|
32
|
+
}>>(props: Props) => { [K in keyof Props]: IfEpProp<Props[K], Props[K], IfNativePropType<Props[K], Props[K], EpPropConvert<Props[K]>>>; };
|