tabula-vue 1.0.0 → 1.0.2
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/component.mjs +4 -0
- package/es/components/dialog/index.d.ts +30 -30
- package/es/components/dialog/src/index.vue.d.ts +2 -2
- package/es/components/dialog-form/index.d.ts +2 -2
- package/es/components/dialog-form/src/index.vue.d.ts +2 -2
- package/es/components/display-item/index.d.ts +25 -25
- package/es/components/display-item/src/index.vue.d.ts +7 -7
- package/es/components/drawer-form/index.d.ts +50 -50
- package/es/components/drawer-form/src/index.vue.d.ts +10 -10
- package/es/components/form/index.d.ts +99 -99
- package/es/components/form/src/form-content.vue.d.ts +12 -12
- package/es/components/form/src/index.vue.d.ts +11 -11
- package/es/components/form-item/index.d.ts +80 -80
- package/es/components/form-item/src/index.vue.d.ts +9 -9
- package/es/components/index.d.ts +2 -0
- package/es/components/index.mjs +6 -0
- package/es/components/input-tag/index.d.ts +6 -6
- package/es/components/input-tag/src/index.vue.d.ts +6 -6
- package/es/components/layout/index.d.ts +30 -30
- package/es/components/layout/src/index.vue.d.ts +10 -10
- package/es/components/page/index.d.ts +9087 -4864
- package/es/components/page/src/index.vue.d.ts +1903 -513
- package/es/components/page/src/index.vue2.mjs +43 -12
- package/es/components/popover/index.d.ts +49 -49
- package/es/components/popover/src/index.vue.d.ts +3 -3
- package/es/components/render/index.d.ts +14 -14
- package/es/components/render/src/index.vue.d.ts +1 -1
- package/es/components/search/index.d.ts +298 -298
- package/es/components/search/src/index.vue.d.ts +84 -84
- package/es/components/sidebar/index.d.ts +31 -31
- package/es/components/sidebar/src/index.vue.d.ts +5 -5
- package/es/components/table/index.d.ts +165 -180
- package/es/components/table/index.mjs +3 -0
- package/es/components/table/src/index.vue.d.ts +12 -21
- package/es/components/table/src/index.vue2.mjs +11 -34
- package/es/components/table/src/table-action-bar-content.vue.d.ts +78 -0
- package/es/components/table/src/table-action-bar-content.vue.mjs +6 -0
- package/es/components/table/src/table-action-bar-content.vue2.mjs +395 -0
- package/es/components/table/src/table-action-bar.vue.d.ts +4 -4
- package/es/components/table/src/table-action-bar.vue2.mjs +30 -353
- package/es/components/table/src/table-column-drag-sort.vue.d.ts +1 -1
- package/es/components/table/src/table-column-index.vue.d.ts +1 -1
- package/es/components/table/src/table-column.vue.d.ts +22 -29
- package/es/components/table/src/table-column.vue2.mjs +4 -57
- package/es/components/table/src/table-title-bar.vue.d.ts +2 -2
- package/es/components/table/src/type.d.ts +0 -11
- package/es/components/table/src/use-columns.d.ts +26 -0
- package/es/components/table/src/use-columns.mjs +40 -0
- package/es/components/table-lite/index.d.ts +1783 -0
- package/es/components/table-lite/index.mjs +6 -0
- package/es/components/table-lite/src/index.vue.d.ts +672 -0
- package/es/components/table-lite/src/index.vue.mjs +6 -0
- package/es/components/table-lite/src/index.vue2.mjs +681 -0
- package/es/components/table-lite/src/type.d.ts +91 -0
- package/es/components/table-lite/src/type.mjs +1 -0
- package/es/components/table-lite/style/css.d.ts +16 -0
- package/es/components/table-lite/style/css.mjs +16 -0
- package/es/components/table-lite/style/index.d.ts +16 -0
- package/es/components/table-lite/style/index.mjs +16 -0
- package/es/components/table-v2/index.d.ts +174 -0
- package/es/components/table-v2/index.mjs +7 -0
- package/es/components/table-v2/src/column-converter.d.ts +27 -0
- package/es/components/table-v2/src/column-converter.mjs +42 -0
- package/es/components/table-v2/src/index.vue.d.ts +157 -0
- package/es/components/table-v2/src/index.vue.mjs +6 -0
- package/es/components/table-v2/src/index.vue2.mjs +491 -0
- package/es/components/table-v2/src/special-columns.d.ts +61 -0
- package/es/components/table-v2/src/special-columns.mjs +76 -0
- package/es/components/table-v2/src/table-v2-cell.d.ts +104 -0
- package/es/components/table-v2/src/table-v2-cell.mjs +139 -0
- package/es/components/table-v2/src/table-v2-header-cell.vue.d.ts +61 -0
- package/es/components/table-v2/src/table-v2-header-cell.vue.mjs +6 -0
- package/es/components/table-v2/src/table-v2-header-cell.vue2.mjs +92 -0
- package/es/components/table-v2/src/type.d.ts +95 -0
- package/es/components/table-v2/src/type.mjs +1 -0
- package/es/components/table-v2/src/use-table-v2-columns.d.ts +43 -0
- package/es/components/table-v2/src/use-table-v2-columns.mjs +47 -0
- package/es/components/table-v2/style/css.d.ts +17 -0
- package/es/components/table-v2/style/css.mjs +17 -0
- package/es/components/table-v2/style/index.d.ts +17 -0
- package/es/components/table-v2/style/index.mjs +17 -0
- package/es/index.mjs +6 -0
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/index.css +1 -1
- package/index.js +1850 -279
- package/index.min.js +9 -6
- package/index.min.mjs +9 -6
- package/index.mjs +1813 -248
- package/lib/component.js +42 -38
- package/lib/components/dialog/index.d.ts +30 -30
- package/lib/components/dialog/src/index.vue.d.ts +2 -2
- package/lib/components/dialog-form/index.d.ts +2 -2
- package/lib/components/dialog-form/src/index.vue.d.ts +2 -2
- package/lib/components/display-item/index.d.ts +25 -25
- package/lib/components/display-item/src/index.vue.d.ts +7 -7
- package/lib/components/drawer-form/index.d.ts +50 -50
- package/lib/components/drawer-form/src/index.vue.d.ts +10 -10
- package/lib/components/form/index.d.ts +99 -99
- package/lib/components/form/src/form-content.vue.d.ts +12 -12
- package/lib/components/form/src/index.vue.d.ts +11 -11
- package/lib/components/form-item/index.d.ts +80 -80
- package/lib/components/form-item/src/index.vue.d.ts +9 -9
- package/lib/components/index.d.ts +2 -0
- package/lib/components/index.js +51 -39
- package/lib/components/input-tag/index.d.ts +6 -6
- package/lib/components/input-tag/src/index.vue.d.ts +6 -6
- package/lib/components/layout/index.d.ts +30 -30
- package/lib/components/layout/src/index.vue.d.ts +10 -10
- package/lib/components/page/index.d.ts +9087 -4864
- package/lib/components/page/src/index.vue.d.ts +1903 -513
- package/lib/components/page/src/index.vue2.js +46 -15
- package/lib/components/popover/index.d.ts +49 -49
- package/lib/components/popover/src/index.vue.d.ts +3 -3
- package/lib/components/render/index.d.ts +14 -14
- package/lib/components/render/src/index.vue.d.ts +1 -1
- package/lib/components/search/index.d.ts +298 -298
- package/lib/components/search/src/index.vue.d.ts +84 -84
- package/lib/components/sidebar/index.d.ts +31 -31
- package/lib/components/sidebar/src/index.vue.d.ts +5 -5
- package/lib/components/table/index.d.ts +165 -180
- package/lib/components/table/index.js +6 -0
- package/lib/components/table/src/index.vue.d.ts +12 -21
- package/lib/components/table/src/index.vue2.js +10 -33
- package/lib/components/table/src/table-action-bar-content.vue.d.ts +78 -0
- package/lib/components/table/src/table-action-bar-content.vue.js +10 -0
- package/lib/components/table/src/table-action-bar-content.vue2.js +399 -0
- package/lib/components/table/src/table-action-bar.vue.d.ts +4 -4
- package/lib/components/table/src/table-action-bar.vue2.js +28 -351
- package/lib/components/table/src/table-column-drag-sort.vue.d.ts +1 -1
- package/lib/components/table/src/table-column-index.vue.d.ts +1 -1
- package/lib/components/table/src/table-column.vue.d.ts +22 -29
- package/lib/components/table/src/table-column.vue2.js +2 -55
- package/lib/components/table/src/table-title-bar.vue.d.ts +2 -2
- package/lib/components/table/src/type.d.ts +0 -11
- package/lib/components/table/src/use-columns.d.ts +26 -0
- package/lib/components/table/src/use-columns.js +42 -0
- package/lib/components/table-lite/index.d.ts +1783 -0
- package/lib/components/table-lite/index.js +8 -0
- package/lib/components/table-lite/src/index.vue.d.ts +672 -0
- package/lib/components/table-lite/src/index.vue.js +10 -0
- package/lib/components/table-lite/src/index.vue2.js +685 -0
- package/lib/components/table-lite/src/type.d.ts +91 -0
- package/lib/components/table-lite/src/type.js +2 -0
- package/lib/components/table-lite/style/css.d.ts +16 -0
- package/lib/components/table-lite/style/css.js +19 -0
- package/lib/components/table-lite/style/index.d.ts +16 -0
- package/lib/components/table-lite/style/index.js +19 -0
- package/lib/components/table-v2/index.d.ts +174 -0
- package/lib/components/table-v2/index.js +10 -0
- package/lib/components/table-v2/src/column-converter.d.ts +27 -0
- package/lib/components/table-v2/src/column-converter.js +44 -0
- package/lib/components/table-v2/src/index.vue.d.ts +157 -0
- package/lib/components/table-v2/src/index.vue.js +10 -0
- package/lib/components/table-v2/src/index.vue2.js +495 -0
- package/lib/components/table-v2/src/special-columns.d.ts +61 -0
- package/lib/components/table-v2/src/special-columns.js +80 -0
- package/lib/components/table-v2/src/table-v2-cell.d.ts +104 -0
- package/lib/components/table-v2/src/table-v2-cell.js +143 -0
- package/lib/components/table-v2/src/table-v2-header-cell.vue.d.ts +61 -0
- package/lib/components/table-v2/src/table-v2-header-cell.vue.js +10 -0
- package/lib/components/table-v2/src/table-v2-header-cell.vue2.js +96 -0
- package/lib/components/table-v2/src/type.d.ts +95 -0
- package/lib/components/table-v2/src/type.js +2 -0
- package/lib/components/table-v2/src/use-table-v2-columns.d.ts +43 -0
- package/lib/components/table-v2/src/use-table-v2-columns.js +51 -0
- package/lib/components/table-v2/style/css.d.ts +17 -0
- package/lib/components/table-v2/style/css.js +20 -0
- package/lib/components/table-v2/style/index.d.ts +17 -0
- package/lib/components/table-v2/style/index.js +20 -0
- package/lib/index.js +51 -39
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/locale/en.js +1 -1
- package/locale/en.min.js +1 -1
- package/locale/en.min.mjs +1 -1
- package/locale/en.mjs +1 -1
- package/locale/ja.js +1 -1
- package/locale/ja.min.js +1 -1
- package/locale/ja.min.mjs +1 -1
- package/locale/ja.mjs +1 -1
- package/locale/ko.js +1 -1
- package/locale/ko.min.js +1 -1
- package/locale/ko.min.mjs +1 -1
- package/locale/ko.mjs +1 -1
- package/locale/zh-cn.js +1 -1
- package/locale/zh-cn.min.js +1 -1
- package/locale/zh-cn.min.mjs +1 -1
- package/locale/zh-cn.mjs +1 -1
- package/locale/zh-hk.js +1 -1
- package/locale/zh-hk.min.js +1 -1
- package/locale/zh-hk.min.mjs +1 -1
- package/locale/zh-hk.mjs +1 -1
- package/locale/zh-tw.js +1 -1
- package/locale/zh-tw.min.js +1 -1
- package/locale/zh-tw.min.mjs +1 -1
- package/locale/zh-tw.mjs +1 -1
- package/package.json +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/plus-table-lite.css +1 -0
- package/theme-chalk/plus-table-v2.css +1 -0
- package/theme-chalk/src/index.scss +2 -0
- package/theme-chalk/src/table-lite.scss +53 -0
- package/theme-chalk/src/table-v2.scss +71 -0
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { FormChangeCallBackParams } from 'tabula-vue/es/components/table';
|
|
2
|
+
import { PlusColumn, RecordType } from 'tabula-vue/es/types';
|
|
3
|
+
import { PropType, DefineComponent, VNode, RendererNode, RendererElement, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* 单元格组件
|
|
7
|
+
*
|
|
8
|
+
* 用渲染函数实现而不是 SFC:
|
|
9
|
+
* 该组件需要把父级所有插槽原样透传给 PlusDisplayItem,
|
|
10
|
+
* 若用 SFC + 动态插槽,生成的 d.ts 会触发 TS7056(类型序列化超限)。
|
|
11
|
+
*/
|
|
12
|
+
declare const TableV2Cell: DefineComponent<{
|
|
13
|
+
/** 列配置 */
|
|
14
|
+
column: {
|
|
15
|
+
type: PropType<PlusColumn>;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
/** 行数据 */
|
|
19
|
+
row: {
|
|
20
|
+
type: PropType<RecordType>;
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
/** 行索引 */
|
|
24
|
+
index: {
|
|
25
|
+
type: NumberConstructor;
|
|
26
|
+
default: number;
|
|
27
|
+
};
|
|
28
|
+
/** 单元格列索引 */
|
|
29
|
+
cellIndex: {
|
|
30
|
+
type: NumberConstructor;
|
|
31
|
+
default: number;
|
|
32
|
+
};
|
|
33
|
+
/** 是否可编辑 */
|
|
34
|
+
editable: {
|
|
35
|
+
type: PropType<boolean | "click" | "dblclick">;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
/** 空值默认值 */
|
|
39
|
+
emptyValue: {
|
|
40
|
+
type: PropType<string | number | undefined>;
|
|
41
|
+
default: undefined;
|
|
42
|
+
};
|
|
43
|
+
/** 透传给展示组件的额外参数 */
|
|
44
|
+
rest: {
|
|
45
|
+
type: PropType<RecordType>;
|
|
46
|
+
default: () => {};
|
|
47
|
+
};
|
|
48
|
+
}, () => VNode<RendererNode, RendererElement, {
|
|
49
|
+
[key: string]: any;
|
|
50
|
+
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
51
|
+
/** 单元格点击 */
|
|
52
|
+
cellClick: (_row: RecordType, _column: PlusColumn, _event: MouseEvent) => true;
|
|
53
|
+
/** 单元格双击 */
|
|
54
|
+
cellDblclick: (_row: RecordType, _column: PlusColumn, _event: MouseEvent) => true;
|
|
55
|
+
/** 表单值变化 */
|
|
56
|
+
formChange: (_data: FormChangeCallBackParams) => true;
|
|
57
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
58
|
+
/** 列配置 */
|
|
59
|
+
column: {
|
|
60
|
+
type: PropType<PlusColumn>;
|
|
61
|
+
required: true;
|
|
62
|
+
};
|
|
63
|
+
/** 行数据 */
|
|
64
|
+
row: {
|
|
65
|
+
type: PropType<RecordType>;
|
|
66
|
+
required: true;
|
|
67
|
+
};
|
|
68
|
+
/** 行索引 */
|
|
69
|
+
index: {
|
|
70
|
+
type: NumberConstructor;
|
|
71
|
+
default: number;
|
|
72
|
+
};
|
|
73
|
+
/** 单元格列索引 */
|
|
74
|
+
cellIndex: {
|
|
75
|
+
type: NumberConstructor;
|
|
76
|
+
default: number;
|
|
77
|
+
};
|
|
78
|
+
/** 是否可编辑 */
|
|
79
|
+
editable: {
|
|
80
|
+
type: PropType<boolean | "click" | "dblclick">;
|
|
81
|
+
default: boolean;
|
|
82
|
+
};
|
|
83
|
+
/** 空值默认值 */
|
|
84
|
+
emptyValue: {
|
|
85
|
+
type: PropType<string | number | undefined>;
|
|
86
|
+
default: undefined;
|
|
87
|
+
};
|
|
88
|
+
/** 透传给展示组件的额外参数 */
|
|
89
|
+
rest: {
|
|
90
|
+
type: PropType<RecordType>;
|
|
91
|
+
default: () => {};
|
|
92
|
+
};
|
|
93
|
+
}>> & {
|
|
94
|
+
onFormChange?: ((_data: FormChangeCallBackParams) => any) | undefined;
|
|
95
|
+
onCellClick?: ((_row: RecordType, _column: PlusColumn, _event: MouseEvent) => any) | undefined;
|
|
96
|
+
onCellDblclick?: ((_row: RecordType, _column: PlusColumn, _event: MouseEvent) => any) | undefined;
|
|
97
|
+
}, {
|
|
98
|
+
index: number;
|
|
99
|
+
rest: RecordType;
|
|
100
|
+
emptyValue: string | number | undefined;
|
|
101
|
+
editable: boolean | "click" | "dblclick";
|
|
102
|
+
cellIndex: number;
|
|
103
|
+
}, {}>;
|
|
104
|
+
export default TableV2Cell;
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { defineComponent, ref, inject, watch, h } from 'vue';
|
|
2
|
+
import { PlusDisplayItem } from '../../display-item/index.mjs';
|
|
3
|
+
import '../../../constants/index.mjs';
|
|
4
|
+
import { set } from 'lodash-es';
|
|
5
|
+
import { TableFormRefInjectionKey } from '../../../constants/form.mjs';
|
|
6
|
+
|
|
7
|
+
const TableV2Cell = defineComponent({
|
|
8
|
+
name: "PlusTableV2Cell",
|
|
9
|
+
props: {
|
|
10
|
+
/** 列配置 */
|
|
11
|
+
column: {
|
|
12
|
+
type: Object,
|
|
13
|
+
required: true
|
|
14
|
+
},
|
|
15
|
+
/** 行数据 */
|
|
16
|
+
row: {
|
|
17
|
+
type: Object,
|
|
18
|
+
required: true
|
|
19
|
+
},
|
|
20
|
+
/** 行索引 */
|
|
21
|
+
index: {
|
|
22
|
+
type: Number,
|
|
23
|
+
default: 0
|
|
24
|
+
},
|
|
25
|
+
/** 单元格列索引 */
|
|
26
|
+
cellIndex: {
|
|
27
|
+
type: Number,
|
|
28
|
+
default: 0
|
|
29
|
+
},
|
|
30
|
+
/** 是否可编辑 */
|
|
31
|
+
editable: {
|
|
32
|
+
type: [Boolean, String],
|
|
33
|
+
default: false
|
|
34
|
+
},
|
|
35
|
+
/** 空值默认值 */
|
|
36
|
+
emptyValue: {
|
|
37
|
+
type: [String, Number],
|
|
38
|
+
default: void 0
|
|
39
|
+
},
|
|
40
|
+
/** 透传给展示组件的额外参数 */
|
|
41
|
+
rest: {
|
|
42
|
+
type: Object,
|
|
43
|
+
default: () => ({})
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
emits: {
|
|
47
|
+
/** 单元格点击 */
|
|
48
|
+
cellClick: (_row, _column, _event) => true,
|
|
49
|
+
/** 单元格双击 */
|
|
50
|
+
cellDblclick: (_row, _column, _event) => true,
|
|
51
|
+
/** 表单值变化 */
|
|
52
|
+
formChange: (_data) => true
|
|
53
|
+
},
|
|
54
|
+
setup(props, { emit, slots, expose }) {
|
|
55
|
+
const displayItemInstance = ref(null);
|
|
56
|
+
const cellInstance = ref(null);
|
|
57
|
+
const formRefs = inject(
|
|
58
|
+
TableFormRefInjectionKey,
|
|
59
|
+
null
|
|
60
|
+
);
|
|
61
|
+
const handleClick = (event) => {
|
|
62
|
+
emit("cellClick", props.row, props.column, event);
|
|
63
|
+
};
|
|
64
|
+
const handleDblclick = (event) => {
|
|
65
|
+
emit("cellDblclick", props.row, props.column, event);
|
|
66
|
+
};
|
|
67
|
+
const handleChange = (data) => {
|
|
68
|
+
emit("formChange", {
|
|
69
|
+
...data,
|
|
70
|
+
index: props.index,
|
|
71
|
+
rowIndex: props.index,
|
|
72
|
+
cellIndex: props.cellIndex,
|
|
73
|
+
column: { ...props.rest.column, ...props.column }
|
|
74
|
+
});
|
|
75
|
+
};
|
|
76
|
+
const syncFormRef = () => {
|
|
77
|
+
const instance = displayItemInstance.value;
|
|
78
|
+
if (!formRefs || !instance) return;
|
|
79
|
+
const info = {
|
|
80
|
+
...instance,
|
|
81
|
+
...instance.getDisplayItemInstance(),
|
|
82
|
+
index: props.index,
|
|
83
|
+
rowIndex: props.index,
|
|
84
|
+
cellIndex: props.cellIndex
|
|
85
|
+
};
|
|
86
|
+
set(formRefs.value, [props.index, props.cellIndex], info);
|
|
87
|
+
};
|
|
88
|
+
watch(
|
|
89
|
+
() => [props.index, props.cellIndex, props.column.prop, displayItemInstance.value],
|
|
90
|
+
syncFormRef,
|
|
91
|
+
{
|
|
92
|
+
flush: "post",
|
|
93
|
+
immediate: true
|
|
94
|
+
}
|
|
95
|
+
);
|
|
96
|
+
expose({
|
|
97
|
+
cellInstance,
|
|
98
|
+
startCellEdit: () => {
|
|
99
|
+
var _a;
|
|
100
|
+
return (_a = displayItemInstance.value) == null ? void 0 : _a.startCellEdit();
|
|
101
|
+
},
|
|
102
|
+
stopCellEdit: () => {
|
|
103
|
+
var _a;
|
|
104
|
+
return (_a = displayItemInstance.value) == null ? void 0 : _a.stopCellEdit();
|
|
105
|
+
},
|
|
106
|
+
getDisplayItemInstance: () => {
|
|
107
|
+
var _a;
|
|
108
|
+
return (_a = displayItemInstance.value) == null ? void 0 : _a.getDisplayItemInstance();
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
return () => h(
|
|
112
|
+
"div",
|
|
113
|
+
{
|
|
114
|
+
ref: cellInstance,
|
|
115
|
+
class: "plus-table-v2-cell",
|
|
116
|
+
onClick: handleClick,
|
|
117
|
+
onDblclick: handleDblclick
|
|
118
|
+
},
|
|
119
|
+
[
|
|
120
|
+
h(
|
|
121
|
+
PlusDisplayItem,
|
|
122
|
+
{
|
|
123
|
+
ref: displayItemInstance,
|
|
124
|
+
column: props.column,
|
|
125
|
+
row: props.row,
|
|
126
|
+
index: props.index,
|
|
127
|
+
editable: props.editable,
|
|
128
|
+
rest: props.rest,
|
|
129
|
+
emptyValue: props.emptyValue,
|
|
130
|
+
onChange: handleChange
|
|
131
|
+
},
|
|
132
|
+
slots
|
|
133
|
+
)
|
|
134
|
+
]
|
|
135
|
+
);
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
|
|
139
|
+
export { TableV2Cell as default };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { PlusRadioProps, PlusDatePickerProps, PlusInputTagProps } from 'tabula-vue';
|
|
2
|
+
import { TimeSelectProps } from 'element-plus/es/components/time-select/src/time-select';
|
|
3
|
+
import { ProgressFn, CascaderNode, InputAutoSize, AutocompleteProps, CheckboxGroupProps, ColorPickerProps, DatePickerProps, InputProps, InputNumberProps, RadioGroupProps, RateProps, ISelectProps, SliderProps, SwitchProps, TimePickerDefaultProps, TextProps, ImageProps, LinkProps, TagProps, ProgressProps } from 'element-plus';
|
|
4
|
+
import { EpPropMergeType } from 'element-plus/es/utils';
|
|
5
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, CSSProperties, PropType } from 'vue';
|
|
6
|
+
import { PlusColumn, PropsItemType, Mutable, OmitTypes, CascaderProps, TableValueType, FormItemValueType } from 'tabula-vue/es/types';
|
|
7
|
+
|
|
8
|
+
export interface TableV2HeaderCellProps {
|
|
9
|
+
/** 列配置 */
|
|
10
|
+
column: PlusColumn;
|
|
11
|
+
/** 列索引 */
|
|
12
|
+
cellIndex: number;
|
|
13
|
+
}
|
|
14
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_TypePropsToRuntimeProps<TableV2HeaderCellProps>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToRuntimeProps<TableV2HeaderCellProps>>>, {}, {}>, Partial<Record<string, (_: {
|
|
15
|
+
prop: string;
|
|
16
|
+
label: string;
|
|
17
|
+
fieldProps: PropsItemType<Partial<{
|
|
18
|
+
[index: string]: any;
|
|
19
|
+
[index: number]: any;
|
|
20
|
+
[index: symbol]: any;
|
|
21
|
+
class: any;
|
|
22
|
+
style: CSSProperties;
|
|
23
|
+
modelModifiers: {
|
|
24
|
+
[index: string]: any;
|
|
25
|
+
lazy?: boolean | undefined;
|
|
26
|
+
trim?: boolean | undefined;
|
|
27
|
+
number?: boolean | undefined;
|
|
28
|
+
};
|
|
29
|
+
rows: number;
|
|
30
|
+
autocomplete: string;
|
|
31
|
+
type: "" | "number" | "default" | "checkbox" | "radio" | "textarea" | "text" | "circle" | "color" | "button" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "search" | "time" | "image" | "line" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
32
|
+
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
33
|
+
step: string | number;
|
|
34
|
+
format: string | ProgressFn | undefined;
|
|
35
|
+
filterMethod: Function | ((node: CascaderNode, keyword: string) => boolean) | undefined;
|
|
36
|
+
id: string | [string, string];
|
|
37
|
+
effect: string;
|
|
38
|
+
height: string | number;
|
|
39
|
+
autosize: InputAutoSize;
|
|
40
|
+
} & Mutable<Omit< AutocompleteProps, OmitTypes> & Omit< CascaderProps, OmitTypes> & Omit< CheckboxGroupProps, OmitTypes> & Omit< ColorPickerProps, OmitTypes> & Omit< DatePickerProps, OmitTypes> & Omit< InputProps, OmitTypes> & Omit< InputNumberProps, OmitTypes> & Omit< RadioGroupProps, OmitTypes> & Omit< RateProps, OmitTypes> & Omit< ISelectProps, OmitTypes> & Omit< SliderProps, OmitTypes> & Omit< SwitchProps, OmitTypes> & Omit< TimePickerDefaultProps, OmitTypes> & Omit< TimeSelectProps, OmitTypes> & Omit< PlusRadioProps, OmitTypes> & Omit< PlusDatePickerProps, OmitTypes> & Omit< PlusInputTagProps, OmitTypes> & Omit< TextProps, OmitTypes> & Omit< ImageProps, OmitTypes> & Omit< LinkProps, OmitTypes> & Omit< TagProps, OmitTypes> & Omit< ProgressProps, OmitTypes>>>> | undefined;
|
|
41
|
+
valueType: TableValueType | FormItemValueType;
|
|
42
|
+
cellIndex: number;
|
|
43
|
+
column: PlusColumn;
|
|
44
|
+
}) => any>> & {
|
|
45
|
+
"tooltip-icon"?(_: {}): any;
|
|
46
|
+
}>;
|
|
47
|
+
export default _default;
|
|
48
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
49
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
50
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
51
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
52
|
+
} : {
|
|
53
|
+
type: PropType<T[K]>;
|
|
54
|
+
required: true;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
58
|
+
new (): {
|
|
59
|
+
$slots: S;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import _sfc_main from './table-v2-header-cell.vue2.mjs';
|
|
2
|
+
import _export_sfc from '../../../_virtual/_plugin-vue_export-helper.mjs';
|
|
3
|
+
|
|
4
|
+
var TableV2HeaderCell = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "table-v2-header-cell.vue"]]);
|
|
5
|
+
|
|
6
|
+
export { TableV2HeaderCell as default };
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { defineComponent, computed, openBlock, createElementBlock, Fragment, createCommentVNode, createElementVNode, unref, createBlock, renderSlot, createTextVNode, toDisplayString, mergeProps, withCtx, createVNode } from 'vue';
|
|
2
|
+
import { PlusRender } from '../../render/index.mjs';
|
|
3
|
+
import { getLabel, getTableHeaderSlotName, getTooltip } from '../../utils/index.mjs';
|
|
4
|
+
import { ElTooltip, ElIcon } from 'element-plus';
|
|
5
|
+
import { QuestionFilled } from '@element-plus/icons-vue';
|
|
6
|
+
import { isFunction } from '../../utils/is.mjs';
|
|
7
|
+
|
|
8
|
+
const _hoisted_1 = { class: "plus-table-v2-header" };
|
|
9
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
|
+
...{
|
|
11
|
+
name: "PlusTableV2HeaderCell"
|
|
12
|
+
},
|
|
13
|
+
__name: "table-v2-header-cell",
|
|
14
|
+
props: {
|
|
15
|
+
column: {},
|
|
16
|
+
cellIndex: {}
|
|
17
|
+
},
|
|
18
|
+
setup(__props) {
|
|
19
|
+
const props = __props;
|
|
20
|
+
const labelText = computed(() => getLabel(props.column.label));
|
|
21
|
+
return (_ctx, _cache) => {
|
|
22
|
+
return openBlock(), createElementBlock(
|
|
23
|
+
Fragment,
|
|
24
|
+
null,
|
|
25
|
+
[
|
|
26
|
+
createCommentVNode(" \u8868\u5934\u5355\u5143\u683C\uFF1A\u4E0E el-table \u7248\u672C\u7684 PlusTableColumn header \u903B\u8F91\u4FDD\u6301\u4E00\u81F4 "),
|
|
27
|
+
createElementVNode("span", _hoisted_1, [
|
|
28
|
+
_ctx.column.renderHeader && unref(isFunction)(_ctx.column.renderHeader) ? (openBlock(), createBlock(unref(PlusRender), {
|
|
29
|
+
key: 0,
|
|
30
|
+
render: _ctx.column.renderHeader,
|
|
31
|
+
params: { column: _ctx.column, cellIndex: _ctx.cellIndex },
|
|
32
|
+
"callback-value": labelText.value
|
|
33
|
+
}, null, 8, ["render", "params", "callback-value"])) : (openBlock(), createElementBlock(
|
|
34
|
+
Fragment,
|
|
35
|
+
{ key: 1 },
|
|
36
|
+
[
|
|
37
|
+
createCommentVNode("\u8868\u683C\u5355\u5143\u683C Header \u7684\u63D2\u69FD "),
|
|
38
|
+
renderSlot(_ctx.$slots, unref(getTableHeaderSlotName)(_ctx.column.prop), {
|
|
39
|
+
prop: _ctx.column.prop,
|
|
40
|
+
label: labelText.value,
|
|
41
|
+
fieldProps: _ctx.column.fieldProps,
|
|
42
|
+
valueType: _ctx.column.valueType,
|
|
43
|
+
cellIndex: _ctx.cellIndex,
|
|
44
|
+
column: _ctx.column
|
|
45
|
+
}, () => [
|
|
46
|
+
createTextVNode(
|
|
47
|
+
toDisplayString(labelText.value),
|
|
48
|
+
1
|
|
49
|
+
/* TEXT */
|
|
50
|
+
)
|
|
51
|
+
])
|
|
52
|
+
],
|
|
53
|
+
2112
|
|
54
|
+
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
55
|
+
)),
|
|
56
|
+
_ctx.column.tooltip ? (openBlock(), createBlock(
|
|
57
|
+
unref(ElTooltip),
|
|
58
|
+
mergeProps({
|
|
59
|
+
key: 2,
|
|
60
|
+
placement: "top"
|
|
61
|
+
}, unref(getTooltip)(_ctx.column.tooltip)),
|
|
62
|
+
{
|
|
63
|
+
default: withCtx(() => [
|
|
64
|
+
renderSlot(_ctx.$slots, "tooltip-icon", {}, () => [
|
|
65
|
+
createVNode(unref(ElIcon), {
|
|
66
|
+
class: "plus-table-v2-header__icon",
|
|
67
|
+
size: 16
|
|
68
|
+
}, {
|
|
69
|
+
default: withCtx(() => [
|
|
70
|
+
createVNode(unref(QuestionFilled))
|
|
71
|
+
]),
|
|
72
|
+
_: 1
|
|
73
|
+
/* STABLE */
|
|
74
|
+
})
|
|
75
|
+
])
|
|
76
|
+
]),
|
|
77
|
+
_: 3
|
|
78
|
+
/* FORWARDED */
|
|
79
|
+
},
|
|
80
|
+
16
|
|
81
|
+
/* FULL_PROPS */
|
|
82
|
+
)) : createCommentVNode("v-if", true)
|
|
83
|
+
])
|
|
84
|
+
],
|
|
85
|
+
2112
|
|
86
|
+
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
87
|
+
);
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
|
|
92
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { ActionBarProps, TitleBar, TableColumn, TableSpecialColumnType } from '../../table';
|
|
2
|
+
import { ComponentSize } from 'element-plus/es/constants';
|
|
3
|
+
import { PlusRadioProps } from 'tabula-vue/es/components/radio';
|
|
4
|
+
import { PlusPaginationProps } from 'tabula-vue/es/components/pagination';
|
|
5
|
+
import { RecordType, PlusColumn, PageInfo } from 'tabula-vue/es/types';
|
|
6
|
+
import { CSSProperties, ComputedRef } from 'vue';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* 表格内置特殊列类型(虚拟表格首期支持 radio / selection / index)
|
|
10
|
+
*/
|
|
11
|
+
export type TableV2SpecialColumnType = Extract<TableSpecialColumnType, 'radio' | 'selection' | 'index'>;
|
|
12
|
+
/**
|
|
13
|
+
* PlusTableV2 自身的 props
|
|
14
|
+
*/
|
|
15
|
+
export interface PlusTableV2SelfProps {
|
|
16
|
+
/** 表格数据 同 data */
|
|
17
|
+
tableData?: RecordType[];
|
|
18
|
+
/** 表格数据 同 tableData */
|
|
19
|
+
data?: RecordType[];
|
|
20
|
+
/** 表格配置信息 */
|
|
21
|
+
columns?: PlusColumn[];
|
|
22
|
+
/** 默认密度,映射到 rowHeight */
|
|
23
|
+
defaultSize?: ComponentSize;
|
|
24
|
+
/** 分页参数 */
|
|
25
|
+
pagination?: false | Partial<PlusPaginationProps>;
|
|
26
|
+
/** 操作栏参数 */
|
|
27
|
+
actionBar?: false | Partial<ActionBarProps>;
|
|
28
|
+
/** 是否需要序号 */
|
|
29
|
+
hasIndexColumn?: boolean;
|
|
30
|
+
/** 是否显示标题栏 */
|
|
31
|
+
titleBar?: boolean | Partial<TitleBar>;
|
|
32
|
+
/** 是否是多选表格 */
|
|
33
|
+
isSelection?: boolean;
|
|
34
|
+
/** 是否是单选表格 */
|
|
35
|
+
isRadio?: boolean;
|
|
36
|
+
/** 内置特殊列展示顺序 */
|
|
37
|
+
specialColumnsOrder?: TableV2SpecialColumnType[];
|
|
38
|
+
/** loading 状态 */
|
|
39
|
+
loadingStatus?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* 表格高度,支持数字或带单位字符串,不传时由父容器(或 adaptive)决定
|
|
42
|
+
*/
|
|
43
|
+
height?: number | string;
|
|
44
|
+
/**
|
|
45
|
+
* 表格宽度,支持数字或带单位字符串,不传时自动撑满父容器
|
|
46
|
+
*/
|
|
47
|
+
width?: number | string;
|
|
48
|
+
/** 行高,默认 50 */
|
|
49
|
+
rowHeight?: number;
|
|
50
|
+
/** 表头高度,默认 50 */
|
|
51
|
+
headerHeight?: number;
|
|
52
|
+
/** 表头单元格样式 */
|
|
53
|
+
headerCellStyle?: CSSProperties;
|
|
54
|
+
/** 行 key */
|
|
55
|
+
rowKey?: string;
|
|
56
|
+
/** 默认选择的单选框值,对应表格某一行的数据 */
|
|
57
|
+
defaultSelectedRadioRow?: RecordType | ComputedRef<RecordType>;
|
|
58
|
+
/** 单选框的 props(plus-radio) */
|
|
59
|
+
radioProps?: Partial<PlusRadioProps>;
|
|
60
|
+
/** 多选列的额外配置 */
|
|
61
|
+
selectionTableColumnProps?: TableColumn;
|
|
62
|
+
/** 单选列的额外配置 */
|
|
63
|
+
radioTableColumnProps?: TableColumn;
|
|
64
|
+
/** 序号列的额外配置 */
|
|
65
|
+
indexTableColumnProps?: TableColumn;
|
|
66
|
+
/** 序号单元格样式 */
|
|
67
|
+
indexContentStyle?: Partial<CSSProperties> | ((row: RecordType, index: number) => Partial<CSSProperties>);
|
|
68
|
+
/** 是否可编辑单元格 */
|
|
69
|
+
editable?: boolean | 'click' | 'dblclick';
|
|
70
|
+
/**
|
|
71
|
+
* 是否自适应页面剩余高度
|
|
72
|
+
* @default false
|
|
73
|
+
*/
|
|
74
|
+
adaptive?: boolean | {
|
|
75
|
+
/** 表格距离页面底部的偏移量,默认值为 `20` */
|
|
76
|
+
offsetBottom?: number;
|
|
77
|
+
/** 页面 `resize` 时的防抖时间,默认值为 `60` ms */
|
|
78
|
+
timeout?: number;
|
|
79
|
+
};
|
|
80
|
+
/** 获取到的值为空时返回的默认值,优先级低于 column.emptyValue */
|
|
81
|
+
emptyValue?: PlusColumn['emptyValue'];
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* 表格 props(允许透传 el-table-v2 的其余属性)
|
|
85
|
+
*/
|
|
86
|
+
export type PlusTableV2Props = PlusTableV2SelfProps & RecordType;
|
|
87
|
+
/**
|
|
88
|
+
* 表格自身状态
|
|
89
|
+
*/
|
|
90
|
+
export interface PlusTableV2State {
|
|
91
|
+
/** 当前密度对应的行高 */
|
|
92
|
+
size: ComponentSize;
|
|
93
|
+
/** 分页参数供表格自身使用 */
|
|
94
|
+
subPageInfo: PageInfo;
|
|
95
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Column } from 'element-plus';
|
|
2
|
+
import { ComputedRef } from 'vue';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* 默认列最小宽度(未配置 width / minWidth 时兜底)
|
|
6
|
+
*/
|
|
7
|
+
export declare const DEFAULT_TABLE_V2_MIN_WIDTH = 100;
|
|
8
|
+
/**
|
|
9
|
+
* 将 width / minWidth 统一解析成数字
|
|
10
|
+
* @param value 数字或带单位的字符串
|
|
11
|
+
*/
|
|
12
|
+
export declare const toColumnNumber: (value?: string | number | null) => number;
|
|
13
|
+
export interface UseTableV2ColumnsOptions {
|
|
14
|
+
/**
|
|
15
|
+
* 已经转换好的 table-v2 列(可只声明 minWidth / width 作为宽度下限)
|
|
16
|
+
*/
|
|
17
|
+
columns: () => Column[];
|
|
18
|
+
/**
|
|
19
|
+
* 容器宽度,用于把多余宽度均分给可拉伸列
|
|
20
|
+
*/
|
|
21
|
+
containerWidth: () => number;
|
|
22
|
+
/**
|
|
23
|
+
* 不参与拉伸的列 key
|
|
24
|
+
*/
|
|
25
|
+
excludeKeys?: string[];
|
|
26
|
+
/**
|
|
27
|
+
* 列宽度下限兜底
|
|
28
|
+
* @default DEFAULT_TABLE_V2_MIN_WIDTH
|
|
29
|
+
*/
|
|
30
|
+
defaultMinWidth?: number;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* el-table-v2 列宽分配:
|
|
34
|
+
* - 每列以 minWidth(未配置则 width)为下限;
|
|
35
|
+
* - 容器宽度大于各列下限之和时,把多余宽度均分给可拉伸列(固定列除外),撑满容器;
|
|
36
|
+
* - 容器宽度不足时保持下限宽度,出现横向滚动,避免单元格被压缩导致样式错乱。
|
|
37
|
+
*
|
|
38
|
+
* 通过 computed 缓存,仅在容器宽度或列配置变化时重算,
|
|
39
|
+
* 避免每次渲染重建列对象导致 el-table-v2 全量重渲染可见行。
|
|
40
|
+
*/
|
|
41
|
+
export declare const useTableV2Columns: ({ columns, containerWidth, excludeKeys, defaultMinWidth }: UseTableV2ColumnsOptions) => {
|
|
42
|
+
resolvedColumns: ComputedRef<Column[]>;
|
|
43
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { computed } from 'vue';
|
|
2
|
+
|
|
3
|
+
const DEFAULT_TABLE_V2_MIN_WIDTH = 100;
|
|
4
|
+
const toColumnNumber = (value) => {
|
|
5
|
+
if (typeof value === "number") return Number.isFinite(value) ? value : 0;
|
|
6
|
+
if (typeof value === "string") return Number.parseFloat(value) || 0;
|
|
7
|
+
return 0;
|
|
8
|
+
};
|
|
9
|
+
const useTableV2Columns = ({
|
|
10
|
+
columns,
|
|
11
|
+
containerWidth,
|
|
12
|
+
excludeKeys = [],
|
|
13
|
+
defaultMinWidth = DEFAULT_TABLE_V2_MIN_WIDTH
|
|
14
|
+
}) => {
|
|
15
|
+
const resolvedColumns = computed(() => {
|
|
16
|
+
const cols = columns();
|
|
17
|
+
const floors = cols.map(
|
|
18
|
+
(col) => toColumnNumber(col.minWidth) || toColumnNumber(col.width) || defaultMinWidth
|
|
19
|
+
);
|
|
20
|
+
const sumFloor = floors.reduce((total, item) => total + item, 0);
|
|
21
|
+
const target = Math.max(sumFloor, containerWidth());
|
|
22
|
+
const stretchableIndexes = cols.map(
|
|
23
|
+
(col, index) => col.fixed || col.key !== void 0 && excludeKeys.includes(String(col.key)) ? -1 : index
|
|
24
|
+
).filter((index) => index >= 0);
|
|
25
|
+
const extra = target - sumFloor;
|
|
26
|
+
const stretchCount = stretchableIndexes.length;
|
|
27
|
+
const base = stretchCount ? Math.floor(extra / stretchCount) : 0;
|
|
28
|
+
let remainder = stretchCount ? extra % stretchCount : 0;
|
|
29
|
+
const widths = floors.map((floor, index) => {
|
|
30
|
+
if (!stretchableIndexes.includes(index)) return floor;
|
|
31
|
+
let width = floor + base;
|
|
32
|
+
if (remainder > 0) {
|
|
33
|
+
width += 1;
|
|
34
|
+
remainder -= 1;
|
|
35
|
+
}
|
|
36
|
+
return width;
|
|
37
|
+
});
|
|
38
|
+
return cols.map((col, index) => ({
|
|
39
|
+
...col,
|
|
40
|
+
minWidth: floors[index],
|
|
41
|
+
width: widths[index]
|
|
42
|
+
}));
|
|
43
|
+
});
|
|
44
|
+
return { resolvedColumns };
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export { DEFAULT_TABLE_V2_MIN_WIDTH, toColumnNumber, useTableV2Columns };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import "element-plus/es/components/table-v2/style/css";
|
|
2
|
+
import "element-plus/es/components/empty/style/css";
|
|
3
|
+
import "element-plus/es/components/loading/style/css";
|
|
4
|
+
import "element-plus/es/components/checkbox/style/css";
|
|
5
|
+
import "element-plus/es/components/button/style/css";
|
|
6
|
+
import "element-plus/es/components/link/style/css";
|
|
7
|
+
import "element-plus/es/components/tooltip/style/css";
|
|
8
|
+
import "element-plus/es/components/message-box/style/css";
|
|
9
|
+
import "element-plus/es/components/dropdown/style/css";
|
|
10
|
+
import "element-plus/es/components/dropdown-menu/style/css";
|
|
11
|
+
import "element-plus/es/components/dropdown-item/style/css";
|
|
12
|
+
import "element-plus/es/components/popconfirm/style/css";
|
|
13
|
+
import "tabula-vue/es/components/display-item/style/css";
|
|
14
|
+
import "tabula-vue/es/components/popover/style/css";
|
|
15
|
+
import "tabula-vue/es/components/pagination/style/css";
|
|
16
|
+
import "tabula-vue/es/components/radio/style/css";
|
|
17
|
+
import "tabula-vue/theme-chalk/plus-table-v2.css";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import 'element-plus/es/components/table-v2/style/css.mjs';
|
|
2
|
+
import 'element-plus/es/components/empty/style/css.mjs';
|
|
3
|
+
import 'element-plus/es/components/loading/style/css.mjs';
|
|
4
|
+
import 'element-plus/es/components/checkbox/style/css.mjs';
|
|
5
|
+
import 'element-plus/es/components/button/style/css.mjs';
|
|
6
|
+
import 'element-plus/es/components/link/style/css.mjs';
|
|
7
|
+
import 'element-plus/es/components/tooltip/style/css.mjs';
|
|
8
|
+
import 'element-plus/es/components/message-box/style/css.mjs';
|
|
9
|
+
import 'element-plus/es/components/dropdown/style/css.mjs';
|
|
10
|
+
import 'element-plus/es/components/dropdown-menu/style/css.mjs';
|
|
11
|
+
import 'element-plus/es/components/dropdown-item/style/css.mjs';
|
|
12
|
+
import 'element-plus/es/components/popconfirm/style/css.mjs';
|
|
13
|
+
import '../../display-item/style/css.mjs';
|
|
14
|
+
import '../../popover/style/css.mjs';
|
|
15
|
+
import '../../pagination/style/css.mjs';
|
|
16
|
+
import '../../radio/style/css.mjs';
|
|
17
|
+
import 'tabula-vue/theme-chalk/plus-table-v2.css';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import "element-plus/es/components/table-v2/style/index";
|
|
2
|
+
import "element-plus/es/components/empty/style/index";
|
|
3
|
+
import "element-plus/es/components/loading/style/index";
|
|
4
|
+
import "element-plus/es/components/checkbox/style/index";
|
|
5
|
+
import "element-plus/es/components/button/style/index";
|
|
6
|
+
import "element-plus/es/components/link/style/index";
|
|
7
|
+
import "element-plus/es/components/tooltip/style/index";
|
|
8
|
+
import "element-plus/es/components/message-box/style/index";
|
|
9
|
+
import "element-plus/es/components/dropdown/style/index";
|
|
10
|
+
import "element-plus/es/components/dropdown-menu/style/index";
|
|
11
|
+
import "element-plus/es/components/dropdown-item/style/index";
|
|
12
|
+
import "element-plus/es/components/popconfirm/style/index";
|
|
13
|
+
import "tabula-vue/es/components/display-item/style/index";
|
|
14
|
+
import "tabula-vue/es/components/popover/style/index";
|
|
15
|
+
import "tabula-vue/es/components/pagination/style/index";
|
|
16
|
+
import "tabula-vue/es/components/radio/style/index";
|
|
17
|
+
import "tabula-vue/theme-chalk/src/table-v2.scss";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import 'element-plus/es/components/table-v2/style/index.mjs';
|
|
2
|
+
import 'element-plus/es/components/empty/style/index.mjs';
|
|
3
|
+
import 'element-plus/es/components/loading/style/index.mjs';
|
|
4
|
+
import 'element-plus/es/components/checkbox/style/index.mjs';
|
|
5
|
+
import 'element-plus/es/components/button/style/index.mjs';
|
|
6
|
+
import 'element-plus/es/components/link/style/index.mjs';
|
|
7
|
+
import 'element-plus/es/components/tooltip/style/index.mjs';
|
|
8
|
+
import 'element-plus/es/components/message-box/style/index.mjs';
|
|
9
|
+
import 'element-plus/es/components/dropdown/style/index.mjs';
|
|
10
|
+
import 'element-plus/es/components/dropdown-menu/style/index.mjs';
|
|
11
|
+
import 'element-plus/es/components/dropdown-item/style/index.mjs';
|
|
12
|
+
import 'element-plus/es/components/popconfirm/style/index.mjs';
|
|
13
|
+
import '../../display-item/style/index.mjs';
|
|
14
|
+
import '../../popover/style/index.mjs';
|
|
15
|
+
import '../../pagination/style/index.mjs';
|
|
16
|
+
import '../../radio/style/index.mjs';
|
|
17
|
+
import 'tabula-vue/theme-chalk/src/table-v2.scss';
|