@vrojs/element-plus 0.0.7 → 0.0.8
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/dist/index.d.ts +5 -0
- package/dist/index.js +125 -83
- package/dist/locale/index.js +6 -7
- package/dist/locale/lang/en.d.ts +8 -0
- package/dist/locale/lang/en.js +8 -0
- package/dist/locale/lang/zh-cn.d.ts +8 -0
- package/dist/locale/lang/zh-cn.js +8 -0
- package/dist/locale/useLocale.d.ts +1 -48
- package/dist/locale/useLocale.js +16 -17
- package/dist/style/deps.js +7 -0
- package/dist/style/index.css +1 -1
- package/dist/style/index.js +7 -0
- package/dist/utils/elTableColumnProps.d.ts +149 -0
- package/dist/utils/elTableColumnProps.js +152 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +4 -2
- package/dist/vro-el-checkbox-group/index.d.ts +1 -1
- package/dist/vro-el-checkbox-group/vro-el-checkbox-group.vue.d.ts +1 -1
- package/dist/vro-el-checkbox-group/vro-el-checkbox-group.vue.js +10 -10
- package/dist/vro-el-config-provider/config.d.ts +14 -0
- package/dist/vro-el-config-provider/config.js +36 -0
- package/dist/vro-el-config-provider/index.d.ts +16 -0
- package/dist/vro-el-config-provider/index.js +8 -2
- package/dist/vro-el-config-provider/types.d.ts +7 -0
- package/dist/vro-el-config-provider/types.js +7 -0
- package/dist/vro-el-config-provider/vro-el-config-provider.vue.d.ts +9 -0
- package/dist/vro-el-config-provider/vro-el-config-provider.vue.js +11 -11
- package/dist/vro-el-file-upload/index.d.ts +6 -6
- package/dist/vro-el-file-upload/style/index.css +1 -1
- package/dist/vro-el-file-upload/types.d.ts +9 -2
- package/dist/vro-el-file-upload/vro-el-file-upload.vue.d.ts +7 -6
- package/dist/vro-el-file-upload/vro-el-file-upload.vue.js +55 -51
- package/dist/vro-el-icon/index.d.ts +28 -40
- package/dist/vro-el-icon/style/css.js +1 -0
- package/dist/vro-el-icon/style/deps.js +1 -1
- package/dist/vro-el-icon/style/index.js +1 -1
- package/dist/vro-el-icon/types.d.ts +16 -13
- package/dist/vro-el-icon/types.js +8 -1
- package/dist/vro-el-icon/vro-el-icon.vue.d.ts +18 -27
- package/dist/vro-el-icon/vro-el-icon.vue.js +27 -23
- package/dist/vro-el-image/index.d.ts +10 -4
- package/dist/vro-el-image/style/css.js +4 -0
- package/dist/vro-el-image/style/index.css +1 -0
- package/dist/vro-el-image/style/index.js +4 -0
- package/dist/vro-el-image/types.d.ts +35 -0
- package/dist/vro-el-image/types.js +24 -1
- package/dist/vro-el-image/utils.d.ts +1 -1
- package/dist/vro-el-image/vro-el-image.vue.d.ts +7 -2
- package/dist/vro-el-image/vro-el-image.vue.js +55 -24
- package/dist/vro-el-image-upload/index.d.ts +1 -1
- package/dist/vro-el-image-upload/style/css.js +4 -0
- package/dist/vro-el-image-upload/style/index.css +1 -1
- package/dist/vro-el-image-upload/style/index.js +4 -0
- package/dist/vro-el-image-upload/types.d.ts +24 -7
- package/dist/vro-el-image-upload/types.js +21 -7
- package/dist/vro-el-image-upload/vro-el-image-upload.vue.d.ts +1 -1
- package/dist/vro-el-image-upload/vro-el-image-upload.vue.js +82 -68
- package/dist/vro-el-radio-group/index.d.ts +1 -1
- package/dist/vro-el-radio-group/vro-el-radio-group.vue.d.ts +1 -1
- package/dist/vro-el-radio-group/vro-el-radio-group.vue.js +12 -12
- package/dist/vro-el-schema-filter/index.d.ts +27 -31
- package/dist/vro-el-schema-filter/style/css.js +5 -0
- package/dist/vro-el-schema-filter/style/index.css +1 -1
- package/dist/vro-el-schema-filter/style/index.js +5 -0
- package/dist/vro-el-schema-filter/types.d.ts +17 -0
- package/dist/vro-el-schema-filter/vro-el-schema-filter.vue.d.ts +38 -43
- package/dist/vro-el-schema-filter/vro-el-schema-filter.vue.js +63 -44
- package/dist/vro-el-schema-form/index.d.ts +16 -18
- package/dist/vro-el-schema-form/style/css.js +5 -0
- package/dist/vro-el-schema-form/style/index.css +1 -1
- package/dist/vro-el-schema-form/style/index.js +5 -0
- package/dist/vro-el-schema-form/types.d.ts +65 -7
- package/dist/vro-el-schema-form/useVroElSchemaForm.d.ts +33 -37
- package/dist/vro-el-schema-form/useVroElSchemaForm.js +13 -13
- package/dist/vro-el-schema-form/vro-el-schema-form.vue.d.ts +11 -13
- package/dist/vro-el-schema-form/vro-el-schema-form.vue.js +79 -79
- package/dist/vro-el-schema-form-dialog/function-call.js +10 -7
- package/dist/vro-el-schema-form-dialog/index.d.ts +111 -142
- package/dist/vro-el-schema-form-dialog/style/css.js +5 -0
- package/dist/vro-el-schema-form-dialog/style/index.css +1 -1
- package/dist/vro-el-schema-form-dialog/style/index.js +5 -0
- package/dist/vro-el-schema-form-dialog/types.d.ts +25 -16
- package/dist/vro-el-schema-form-dialog/types.js +6 -11
- package/dist/vro-el-schema-form-dialog/vro-el-schema-form-dialog.vue.d.ts +92 -113
- package/dist/vro-el-schema-form-dialog/vro-el-schema-form-dialog.vue.js +83 -87
- package/dist/vro-el-schema-form-drawer/function-call.d.ts +4 -0
- package/dist/vro-el-schema-form-drawer/function-call.js +20 -0
- package/dist/vro-el-schema-form-drawer/index.d.ts +2207 -0
- package/dist/vro-el-schema-form-drawer/index.js +16 -0
- package/dist/vro-el-schema-form-drawer/injection.d.ts +9 -0
- package/dist/vro-el-schema-form-drawer/injection.js +9 -0
- package/dist/vro-el-schema-form-drawer/style/css.d.ts +0 -0
- package/dist/vro-el-schema-form-drawer/style/css.js +24 -0
- package/dist/vro-el-schema-form-drawer/style/deps.d.ts +0 -0
- package/dist/vro-el-schema-form-drawer/style/deps.js +24 -0
- package/dist/vro-el-schema-form-drawer/style/index.css +1 -0
- package/dist/vro-el-schema-form-drawer/style/index.d.ts +0 -0
- package/dist/vro-el-schema-form-drawer/style/index.js +48 -0
- package/dist/vro-el-schema-form-drawer/types.d.ts +110 -0
- package/dist/vro-el-schema-form-drawer/types.js +75 -0
- package/dist/vro-el-schema-form-drawer/useVroElSchemaFormDrawer.d.ts +14 -0
- package/dist/vro-el-schema-form-drawer/useVroElSchemaFormDrawer.js +18 -0
- package/dist/vro-el-schema-form-drawer/vro-el-schema-form-drawer.vue.d.ts +1832 -0
- package/dist/vro-el-schema-form-drawer/vro-el-schema-form-drawer.vue.js +134 -0
- package/dist/vro-el-schema-form-drawer/vro-el-schema-form-drawer.vue2.js +4 -0
- package/dist/vro-el-select/index.d.ts +11 -11
- package/dist/vro-el-select/vro-el-select.vue.d.ts +11 -11
- package/dist/vro-el-select/vro-el-select.vue.js +11 -11
- package/dist/vro-el-skeleton/index.d.ts +9 -73
- package/dist/vro-el-skeleton/style/index.css +1 -1
- package/dist/vro-el-skeleton/types.d.ts +32 -24
- package/dist/vro-el-skeleton/types.js +3 -23
- package/dist/vro-el-skeleton/vro-el-skeleton.vue.d.ts +7 -48
- package/dist/vro-el-skeleton/vro-el-skeleton.vue.js +48 -46
- package/dist/vro-el-table/createUseVroElTable.d.ts +9 -0
- package/dist/vro-el-table/createUseVroElTable.js +7 -0
- package/dist/vro-el-table/index.js +13 -0
- package/dist/vro-el-table/style/css.d.ts +0 -0
- package/dist/vro-el-table/style/css.js +29 -0
- package/dist/vro-el-table/style/deps.d.ts +0 -0
- package/dist/vro-el-table/style/deps.js +28 -0
- package/dist/vro-el-table/style/index.css +1 -0
- package/dist/vro-el-table/style/index.d.ts +0 -0
- package/dist/vro-el-table/style/index.js +57 -0
- package/dist/vro-el-table/types.d.ts +97 -0
- package/dist/vro-el-table/types.js +66 -0
- package/dist/vro-el-table/useVroElTable.d.ts +43 -0
- package/dist/vro-el-table/useVroElTable.js +47 -0
- package/dist/vro-el-table/vro-el-table.vue.js +94 -0
- package/dist/vro-el-table/vro-el-table.vue2.js +4 -0
- package/dist/vro-el-table-actions-column/index.d.ts +269 -0
- package/dist/vro-el-table-actions-column/index.js +9 -0
- package/dist/vro-el-table-actions-column/style/css.d.ts +0 -0
- package/dist/vro-el-table-actions-column/style/css.js +4 -0
- package/dist/vro-el-table-actions-column/style/deps.d.ts +0 -0
- package/dist/vro-el-table-actions-column/style/deps.js +5 -0
- package/dist/vro-el-table-actions-column/style/index.css +1 -0
- package/dist/vro-el-table-actions-column/style/index.d.ts +0 -0
- package/dist/vro-el-table-actions-column/style/index.js +9 -0
- package/dist/vro-el-table-actions-column/types.d.ts +139 -0
- package/dist/vro-el-table-actions-column/types.js +37 -0
- package/dist/vro-el-table-actions-column/vro-el-table-actions-column.vue.d.ts +167 -0
- package/dist/vro-el-table-actions-column/vro-el-table-actions-column.vue.js +101 -0
- package/dist/vro-el-table-actions-column/vro-el-table-actions-column.vue2.js +4 -0
- package/dist/vro-el-table-column/index.d.ts +257 -0
- package/dist/vro-el-table-column/index.js +9 -0
- package/dist/vro-el-table-column/style/css.d.ts +0 -0
- package/dist/vro-el-table-column/style/css.js +6 -0
- package/dist/vro-el-table-column/style/deps.d.ts +0 -0
- package/dist/vro-el-table-column/style/deps.js +1 -0
- package/dist/vro-el-table-column/style/index.css +1 -0
- package/dist/vro-el-table-column/style/index.d.ts +0 -0
- package/dist/vro-el-table-column/style/index.js +7 -0
- package/dist/vro-el-table-column/types.d.ts +141 -0
- package/dist/vro-el-table-column/types.js +43 -0
- package/dist/vro-el-table-column/vro-el-table-column.vue.d.ts +161 -0
- package/dist/vro-el-table-column/vro-el-table-column.vue.js +66 -0
- package/dist/vro-el-table-column/vro-el-table-column.vue2.js +4 -0
- package/dist/vro-el-table-column-group/index.d.ts +23 -0
- package/dist/vro-el-table-column-group/index.js +13 -0
- package/dist/vro-el-table-column-group/style/css.d.ts +0 -0
- package/dist/vro-el-table-column-group/style/css.js +9 -0
- package/dist/vro-el-table-column-group/style/deps.d.ts +0 -0
- package/dist/vro-el-table-column-group/style/deps.js +5 -0
- package/dist/vro-el-table-column-group/style/index.d.ts +0 -0
- package/dist/vro-el-table-column-group/style/index.js +14 -0
- package/dist/vro-el-table-column-group/types.d.ts +87 -0
- package/dist/vro-el-table-column-group/types.js +12 -0
- package/dist/vro-el-table-column-group/useVroElTableColumnGroup.d.ts +2 -0
- package/dist/vro-el-table-column-group/useVroElTableColumnGroup.js +10 -0
- package/dist/vro-el-table-column-group/vro-el-table-column-group.vue.d.ts +14 -0
- package/dist/vro-el-table-column-group/vro-el-table-column-group.vue.js +29 -0
- package/dist/vro-el-table-column-group/vro-el-table-column-group.vue2.js +4 -0
- package/dist/vro-el-table-column-group/vroElTableColumnGroupColumnManager.d.ts +2 -0
- package/dist/vro-el-table-column-group/vroElTableColumnGroupColumnManager.js +9 -0
- package/dist/vro-el-tags/index.d.ts +234 -187
- package/dist/vro-el-tags/style/css.js +1 -0
- package/dist/vro-el-tags/style/index.css +1 -0
- package/dist/vro-el-tags/style/index.js +1 -0
- package/dist/vro-el-tags/types.d.ts +37 -1
- package/dist/vro-el-tags/types.js +17 -1
- package/dist/vro-el-tags/vro-el-tags.vue.d.ts +219 -8
- package/dist/vro-el-tags/vro-el-tags.vue.js +55 -45
- package/dist/vro-el-tree/index.d.ts +3235 -32
- package/dist/vro-el-tree/style/index.css +1 -1
- package/dist/vro-el-tree/types.d.ts +124 -5
- package/dist/vro-el-tree/types.js +12 -6
- package/dist/vro-el-tree/vro-el-tree.vue.d.ts +6020 -20
- package/dist/vro-el-tree/vro-el-tree.vue.js +54 -36
- package/package.json +6 -6
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { VroElTableColumnIcon, VroElTableColumnSlots } from './types';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: Readonly<VroElTableColumnSlots<any>> & VroElTableColumnSlots<any>;
|
|
5
|
+
refs: {};
|
|
6
|
+
rootEl: any;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
9
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
10
|
+
placeholder: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
unit: StringConstructor;
|
|
15
|
+
lineClamp: NumberConstructor;
|
|
16
|
+
map: import('vue').PropType<Record<PropertyKey, any>>;
|
|
17
|
+
renderDefault: import('vue').PropType<import('./types').VroElTableColumnRender>;
|
|
18
|
+
renderContent: import('vue').PropType<import('./types').VroElTableColumnRender>;
|
|
19
|
+
prefixIcon: import('vue').PropType<VroElTableColumnIcon>;
|
|
20
|
+
suffixIcon: import('vue').PropType<VroElTableColumnIcon>;
|
|
21
|
+
type: {
|
|
22
|
+
type: import('vue').PropType<"default" | "selection" | "index" | "expand">;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
label: StringConstructor;
|
|
26
|
+
className: StringConstructor;
|
|
27
|
+
labelClassName: StringConstructor;
|
|
28
|
+
property: StringConstructor;
|
|
29
|
+
prop: StringConstructor;
|
|
30
|
+
width: {
|
|
31
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
minWidth: {
|
|
35
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
renderHeader: import('vue').PropType<import('element-plus').TableColumnCtx<any>["renderHeader"]>;
|
|
39
|
+
sortable: {
|
|
40
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
41
|
+
default: boolean;
|
|
42
|
+
};
|
|
43
|
+
sortMethod: import('vue').PropType<import('element-plus').TableColumnCtx<any>["sortMethod"]>;
|
|
44
|
+
sortBy: import('vue').PropType<import('element-plus').TableColumnCtx<any>["sortBy"]>;
|
|
45
|
+
resizable: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
columnKey: StringConstructor;
|
|
50
|
+
align: StringConstructor;
|
|
51
|
+
headerAlign: StringConstructor;
|
|
52
|
+
showOverflowTooltip: {
|
|
53
|
+
type: import('vue').PropType<import('element-plus').TableColumnCtx<any>["showOverflowTooltip"]>;
|
|
54
|
+
default: undefined;
|
|
55
|
+
};
|
|
56
|
+
tooltipFormatter: import('vue').PropType<import('element-plus').TableColumnCtx<any>["tooltipFormatter"]>;
|
|
57
|
+
fixed: (BooleanConstructor | StringConstructor)[];
|
|
58
|
+
formatter: import('vue').PropType<import('element-plus').TableColumnCtx<any>["formatter"]>;
|
|
59
|
+
selectable: import('vue').PropType<import('element-plus').TableColumnCtx<any>["selectable"]>;
|
|
60
|
+
reserveSelection: BooleanConstructor;
|
|
61
|
+
filterMethod: import('vue').PropType<import('element-plus').TableColumnCtx<any>["filterMethod"]>;
|
|
62
|
+
filteredValue: import('vue').PropType<import('element-plus').TableColumnCtx<any>["filteredValue"]>;
|
|
63
|
+
filters: import('vue').PropType<import('element-plus').TableColumnCtx<any>["filters"]>;
|
|
64
|
+
filterPlacement: StringConstructor;
|
|
65
|
+
filterMultiple: {
|
|
66
|
+
type: BooleanConstructor;
|
|
67
|
+
default: boolean;
|
|
68
|
+
};
|
|
69
|
+
filterClassName: StringConstructor;
|
|
70
|
+
index: import('vue').PropType<import('element-plus').TableColumnCtx<any>["index"]>;
|
|
71
|
+
sortOrders: {
|
|
72
|
+
type: import('vue').PropType<import('element-plus').TableColumnCtx<any>["sortOrders"]>;
|
|
73
|
+
default: () => (string | null)[];
|
|
74
|
+
validator: (val: import('element-plus').TableColumnCtx<any>["sortOrders"]) => boolean;
|
|
75
|
+
};
|
|
76
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
77
|
+
placeholder: {
|
|
78
|
+
type: StringConstructor;
|
|
79
|
+
default: string;
|
|
80
|
+
};
|
|
81
|
+
unit: StringConstructor;
|
|
82
|
+
lineClamp: NumberConstructor;
|
|
83
|
+
map: import('vue').PropType<Record<PropertyKey, any>>;
|
|
84
|
+
renderDefault: import('vue').PropType<import('./types').VroElTableColumnRender>;
|
|
85
|
+
renderContent: import('vue').PropType<import('./types').VroElTableColumnRender>;
|
|
86
|
+
prefixIcon: import('vue').PropType<VroElTableColumnIcon>;
|
|
87
|
+
suffixIcon: import('vue').PropType<VroElTableColumnIcon>;
|
|
88
|
+
type: {
|
|
89
|
+
type: import('vue').PropType<"default" | "selection" | "index" | "expand">;
|
|
90
|
+
default: string;
|
|
91
|
+
};
|
|
92
|
+
label: StringConstructor;
|
|
93
|
+
className: StringConstructor;
|
|
94
|
+
labelClassName: StringConstructor;
|
|
95
|
+
property: StringConstructor;
|
|
96
|
+
prop: StringConstructor;
|
|
97
|
+
width: {
|
|
98
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
99
|
+
default: string;
|
|
100
|
+
};
|
|
101
|
+
minWidth: {
|
|
102
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
103
|
+
default: string;
|
|
104
|
+
};
|
|
105
|
+
renderHeader: import('vue').PropType<import('element-plus').TableColumnCtx<any>["renderHeader"]>;
|
|
106
|
+
sortable: {
|
|
107
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
108
|
+
default: boolean;
|
|
109
|
+
};
|
|
110
|
+
sortMethod: import('vue').PropType<import('element-plus').TableColumnCtx<any>["sortMethod"]>;
|
|
111
|
+
sortBy: import('vue').PropType<import('element-plus').TableColumnCtx<any>["sortBy"]>;
|
|
112
|
+
resizable: {
|
|
113
|
+
type: BooleanConstructor;
|
|
114
|
+
default: boolean;
|
|
115
|
+
};
|
|
116
|
+
columnKey: StringConstructor;
|
|
117
|
+
align: StringConstructor;
|
|
118
|
+
headerAlign: StringConstructor;
|
|
119
|
+
showOverflowTooltip: {
|
|
120
|
+
type: import('vue').PropType<import('element-plus').TableColumnCtx<any>["showOverflowTooltip"]>;
|
|
121
|
+
default: undefined;
|
|
122
|
+
};
|
|
123
|
+
tooltipFormatter: import('vue').PropType<import('element-plus').TableColumnCtx<any>["tooltipFormatter"]>;
|
|
124
|
+
fixed: (BooleanConstructor | StringConstructor)[];
|
|
125
|
+
formatter: import('vue').PropType<import('element-plus').TableColumnCtx<any>["formatter"]>;
|
|
126
|
+
selectable: import('vue').PropType<import('element-plus').TableColumnCtx<any>["selectable"]>;
|
|
127
|
+
reserveSelection: BooleanConstructor;
|
|
128
|
+
filterMethod: import('vue').PropType<import('element-plus').TableColumnCtx<any>["filterMethod"]>;
|
|
129
|
+
filteredValue: import('vue').PropType<import('element-plus').TableColumnCtx<any>["filteredValue"]>;
|
|
130
|
+
filters: import('vue').PropType<import('element-plus').TableColumnCtx<any>["filters"]>;
|
|
131
|
+
filterPlacement: StringConstructor;
|
|
132
|
+
filterMultiple: {
|
|
133
|
+
type: BooleanConstructor;
|
|
134
|
+
default: boolean;
|
|
135
|
+
};
|
|
136
|
+
filterClassName: StringConstructor;
|
|
137
|
+
index: import('vue').PropType<import('element-plus').TableColumnCtx<any>["index"]>;
|
|
138
|
+
sortOrders: {
|
|
139
|
+
type: import('vue').PropType<import('element-plus').TableColumnCtx<any>["sortOrders"]>;
|
|
140
|
+
default: () => (string | null)[];
|
|
141
|
+
validator: (val: import('element-plus').TableColumnCtx<any>["sortOrders"]) => boolean;
|
|
142
|
+
};
|
|
143
|
+
}>> & Readonly<{}>, {
|
|
144
|
+
type: "default" | "selection" | "index" | "expand";
|
|
145
|
+
placeholder: string;
|
|
146
|
+
showOverflowTooltip: boolean | Partial<Omit<import('element-plus').UseTooltipProps, "content" | "rawContent" | "persistent" | "visible" | "autoClose" | "referenceEl" | "triggerTargetEl" | "virtualRef" | "virtualTriggering">> | undefined;
|
|
147
|
+
sortOrders: (import('element-plus/es/components/table/src/table/defaults.mjs').TableSortOrder | null)[];
|
|
148
|
+
width: string | number;
|
|
149
|
+
resizable: boolean;
|
|
150
|
+
minWidth: string | number;
|
|
151
|
+
sortable: string | boolean;
|
|
152
|
+
reserveSelection: boolean;
|
|
153
|
+
filterMultiple: boolean;
|
|
154
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
155
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
156
|
+
export default _default;
|
|
157
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
158
|
+
new (): {
|
|
159
|
+
$slots: S;
|
|
160
|
+
};
|
|
161
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { defineComponent as T, useSlots as w, computed as y, createBlock as D, openBlock as I, unref as S, mergeProps as A, createSlots as B, withCtx as o, createVNode as O, renderSlot as u, normalizeProps as i, guardReactiveProps as p, h as a } from "vue";
|
|
2
|
+
import { pick as R, typedKeys as j } from "@daysnap/utils";
|
|
3
|
+
import { ElTableColumn as z } from "element-plus";
|
|
4
|
+
import { getProp as K } from "element-plus/es/utils/objects";
|
|
5
|
+
import { elTableColumnProps as M } from "../utils/elTableColumnProps.js";
|
|
6
|
+
import "@vrojs/base";
|
|
7
|
+
import { VroElIcon as N } from "../vro-el-icon/index.js";
|
|
8
|
+
import { vroElTableColumnProps as _ } from "./types.js";
|
|
9
|
+
const W = /* @__PURE__ */ T({
|
|
10
|
+
name: "VroElTableColumn",
|
|
11
|
+
__name: "vro-el-table-column",
|
|
12
|
+
props: _,
|
|
13
|
+
setup(b) {
|
|
14
|
+
const r = b, l = w(), v = ["selection", "index", "expand"], x = y(() => R(r, j(M))), $ = y(() => !v.includes(r.type) || !!l.default || !!r.renderDefault), h = ({ scope: e }) => e.$index < 0 ? null : l.default ? l.default(e) : r.renderDefault ? r.renderDefault(e) : a("div", { class: ["vro-el-table-column-content", `is-${r.align || "left"}`] }, [
|
|
15
|
+
m("prefix", l.prefix?.(e) ?? f(r.prefixIcon)),
|
|
16
|
+
V(e),
|
|
17
|
+
m("suffix", l.suffix?.(e) ?? f(r.suffixIcon))
|
|
18
|
+
]), m = (e, n) => n == null ? null : a("span", { class: `vro-el-table-column-${e}` }, n), f = (e) => e ? a(N, typeof e == "string" ? { name: e } : e) : null, V = (e) => r.renderContent ? r.renderContent(e) : a(
|
|
19
|
+
"span",
|
|
20
|
+
{
|
|
21
|
+
class: ["vro-el-table-column-text", { "is-line-clamp": !!r.lineClamp }],
|
|
22
|
+
style: r.lineClamp ? { "--vro-el-table-column-line-clamp": r.lineClamp } : void 0
|
|
23
|
+
},
|
|
24
|
+
P(e)
|
|
25
|
+
), P = (e) => {
|
|
26
|
+
const n = g(e);
|
|
27
|
+
return c(n) ? r.placeholder : n;
|
|
28
|
+
}, g = (e) => {
|
|
29
|
+
const { row: n, column: t, $index: E } = e, d = r.prop || r.property, C = d ? K(n, d).value : void 0, s = r.formatter ? r.formatter(n, t, C, E) : k(C);
|
|
30
|
+
return c(s) || !r.unit ? s : `${s}${r.unit}`;
|
|
31
|
+
}, k = (e) => !r.map || e == null ? e : Object.prototype.hasOwnProperty.call(r.map, e) ? r.map[e] : e, c = (e) => e == null || e === "" || Array.isArray(e) && !e.length;
|
|
32
|
+
return (e, n) => (I(), D(S(z), A(x.value, { class: "vro-el-table-column" }), B({ _: 2 }, [
|
|
33
|
+
$.value ? {
|
|
34
|
+
name: "default",
|
|
35
|
+
fn: o((t) => [
|
|
36
|
+
O(h, { scope: t }, null, 8, ["scope"])
|
|
37
|
+
]),
|
|
38
|
+
key: "0"
|
|
39
|
+
} : void 0,
|
|
40
|
+
e.$slots.header ? {
|
|
41
|
+
name: "header",
|
|
42
|
+
fn: o((t) => [
|
|
43
|
+
u(e.$slots, "header", i(p(t)))
|
|
44
|
+
]),
|
|
45
|
+
key: "1"
|
|
46
|
+
} : void 0,
|
|
47
|
+
e.$slots.expand ? {
|
|
48
|
+
name: "expand",
|
|
49
|
+
fn: o((t) => [
|
|
50
|
+
u(e.$slots, "expand", i(p(t)))
|
|
51
|
+
]),
|
|
52
|
+
key: "2"
|
|
53
|
+
} : void 0,
|
|
54
|
+
e.$slots["filter-icon"] ? {
|
|
55
|
+
name: "filter-icon",
|
|
56
|
+
fn: o((t) => [
|
|
57
|
+
u(e.$slots, "filter-icon", i(p(t)))
|
|
58
|
+
]),
|
|
59
|
+
key: "3"
|
|
60
|
+
} : void 0
|
|
61
|
+
]), 1040));
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
export {
|
|
65
|
+
W as default
|
|
66
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export * from './types';
|
|
2
|
+
export * from './useVroElTableColumnGroup';
|
|
3
|
+
export * from './vroElTableColumnGroupColumnManager';
|
|
4
|
+
export declare const VroElTableColumnGroup: import('@vrojs/base').WithInstall<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
5
|
+
columns: {
|
|
6
|
+
type: import('vue').PropType<import('./types').VroElTableColumnGroupColumns>;
|
|
7
|
+
default: () => never[];
|
|
8
|
+
};
|
|
9
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
10
|
+
columns: {
|
|
11
|
+
type: import('vue').PropType<import('./types').VroElTableColumnGroupColumns>;
|
|
12
|
+
default: () => never[];
|
|
13
|
+
};
|
|
14
|
+
}>> & Readonly<{}>, {
|
|
15
|
+
columns: import('./types').VroElTableColumnGroupColumns<any>;
|
|
16
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>>;
|
|
17
|
+
export default VroElTableColumnGroup;
|
|
18
|
+
export type VroElTableColumnGroupInstance = InstanceType<typeof VroElTableColumnGroup>;
|
|
19
|
+
declare module 'vue' {
|
|
20
|
+
interface GlobalComponents {
|
|
21
|
+
VroElTableColumnGroup: typeof VroElTableColumnGroup;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { withInstall as o } from "@vrojs/base";
|
|
2
|
+
import r from "./vro-el-table-column-group.vue.js";
|
|
3
|
+
import { vroElTableColumnGroupProps as a } from "./types.js";
|
|
4
|
+
import { useVroElTableColumnGroup as n } from "./useVroElTableColumnGroup.js";
|
|
5
|
+
import { vroElTableColumnGroupColumnManager as s } from "./vroElTableColumnGroupColumnManager.js";
|
|
6
|
+
const e = o(r);
|
|
7
|
+
export {
|
|
8
|
+
e as VroElTableColumnGroup,
|
|
9
|
+
e as default,
|
|
10
|
+
n as useVroElTableColumnGroup,
|
|
11
|
+
s as vroElTableColumnGroupColumnManager,
|
|
12
|
+
a as vroElTableColumnGroupProps
|
|
13
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import '../../style/base.css';
|
|
2
|
+
import '../../vro-el-table-actions-column/style/index.css';
|
|
3
|
+
import '../../vro-el-table-column/style/index.css';
|
|
4
|
+
/* empty css */
|
|
5
|
+
/* empty css */
|
|
6
|
+
import "@vrojs/base/src/vro-icon/style/css";
|
|
7
|
+
/* empty css */
|
|
8
|
+
/* empty css */
|
|
9
|
+
/* empty css */
|
|
File without changes
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import "element-plus/es/components/button/style/css";
|
|
2
|
+
import "element-plus/es/components/dropdown-item/style/css";
|
|
3
|
+
import "element-plus/es/components/dropdown-menu/style/css";
|
|
4
|
+
import "element-plus/es/components/dropdown/style/css";
|
|
5
|
+
import "element-plus/es/components/table-column/style/css";
|
|
File without changes
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import '../../style/base.css';
|
|
2
|
+
import '../../vro-el-table-actions-column/style/index.css';
|
|
3
|
+
import '../../vro-el-table-column/style/index.css';
|
|
4
|
+
import "element-plus/es/components/button/style/css";
|
|
5
|
+
import "element-plus/es/components/dropdown-item/style/css";
|
|
6
|
+
import "element-plus/es/components/dropdown-menu/style/css";
|
|
7
|
+
import "element-plus/es/components/dropdown/style/css";
|
|
8
|
+
import "element-plus/es/components/table-column/style/css";
|
|
9
|
+
/* empty css */
|
|
10
|
+
/* empty css */
|
|
11
|
+
import "@vrojs/base/src/vro-icon/style/css";
|
|
12
|
+
/* empty css */
|
|
13
|
+
/* empty css */
|
|
14
|
+
/* empty css */
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { TableColumnCtx } from 'element-plus';
|
|
2
|
+
import { Component, ExtractPropTypes, PropType, Raw } from 'vue';
|
|
3
|
+
import { VroElTableActionsColumnActions, VroElTableActionsColumnProps } from '../vro-el-table-actions-column';
|
|
4
|
+
import { VroElTableColumnProps, VroElTableColumnRender } from '../vro-el-table-column';
|
|
5
|
+
export type VroElTableColumnGroupFormatter<T extends Record<string, any> = any> = (row: T, column: TableColumnCtx<T>, cellValue: any, index: number) => any;
|
|
6
|
+
export type VroElTableColumnGroupTableColumnProps<T extends Record<string, any> = any> = Partial<Omit<VroElTableColumnProps, 'formatter' | 'renderDefault' | 'renderContent'>> & {
|
|
7
|
+
/**
|
|
8
|
+
* 单元格格式化函数。
|
|
9
|
+
*/
|
|
10
|
+
formatter?: VroElTableColumnGroupFormatter<T>;
|
|
11
|
+
/**
|
|
12
|
+
* 自定义整格内容渲染函数,优先级高于 renderContent、formatter、map。
|
|
13
|
+
*/
|
|
14
|
+
renderDefault?: VroElTableColumnRender<T>;
|
|
15
|
+
/**
|
|
16
|
+
* 自定义中间主体内容渲染函数。
|
|
17
|
+
*/
|
|
18
|
+
renderContent?: VroElTableColumnRender<T>;
|
|
19
|
+
};
|
|
20
|
+
export type VroElTableColumnGroupActionsColumnProps<T extends Record<string, any> = any> = Partial<Omit<VroElTableActionsColumnProps, 'actions' | 'formatter' | 'moreActions'>> & {
|
|
21
|
+
/**
|
|
22
|
+
* 单元格格式化函数。
|
|
23
|
+
*/
|
|
24
|
+
formatter?: VroElTableColumnGroupFormatter<T>;
|
|
25
|
+
/**
|
|
26
|
+
* 直接展示的操作项。
|
|
27
|
+
*/
|
|
28
|
+
actions?: VroElTableActionsColumnActions<T>;
|
|
29
|
+
/**
|
|
30
|
+
* 收纳到更多下拉菜单中的操作项。
|
|
31
|
+
*/
|
|
32
|
+
moreActions?: VroElTableActionsColumnActions<T>;
|
|
33
|
+
};
|
|
34
|
+
export interface VroElTableColumnGroupColumnPropsMap<T extends Record<string, any> = any> {
|
|
35
|
+
VroElTableColumn: VroElTableColumnGroupTableColumnProps<T>;
|
|
36
|
+
VroElTableActionsColumn: VroElTableColumnGroupActionsColumnProps<T>;
|
|
37
|
+
}
|
|
38
|
+
export type VroElTableColumnGroupColumnType = keyof VroElTableColumnGroupColumnPropsMap<any>;
|
|
39
|
+
export type VroElTableColumnGroupRawComponent = Raw<Component>;
|
|
40
|
+
export interface VroElTableColumnGroupBaseColumn<TProps = Record<string, any>> {
|
|
41
|
+
/**
|
|
42
|
+
* 列唯一标识,用于优化列表渲染。
|
|
43
|
+
*/
|
|
44
|
+
key?: string | number;
|
|
45
|
+
/**
|
|
46
|
+
* 列组件。可以传入组件对象、内置组件名,或已扩展到 VroElTableColumnGroupColumnPropsMap 的注册 key。
|
|
47
|
+
*
|
|
48
|
+
* 不传时默认使用 VroElTableColumn。
|
|
49
|
+
*/
|
|
50
|
+
is?: VroElTableColumnGroupColumnType | VroElTableColumnGroupRawComponent;
|
|
51
|
+
/**
|
|
52
|
+
* 列字段名,透传给列组件,同时作为默认 key 使用。
|
|
53
|
+
*/
|
|
54
|
+
prop?: string;
|
|
55
|
+
/**
|
|
56
|
+
* 额外列属性,会与当前配置合并后透传给列组件。
|
|
57
|
+
*/
|
|
58
|
+
props?: TProps;
|
|
59
|
+
/**
|
|
60
|
+
* 是否隐藏当前列,函数返回 true 时隐藏当前列。
|
|
61
|
+
*/
|
|
62
|
+
hidden?: boolean | (() => boolean);
|
|
63
|
+
}
|
|
64
|
+
export type VroElTableColumnGroupMappedColumn<T extends Record<string, any> = any> = {
|
|
65
|
+
[K in VroElTableColumnGroupColumnType]: VroElTableColumnGroupBaseColumn<VroElTableColumnGroupColumnPropsMap<T>[K]> & VroElTableColumnGroupColumnPropsMap<T>[K] & {
|
|
66
|
+
is: K;
|
|
67
|
+
};
|
|
68
|
+
}[VroElTableColumnGroupColumnType];
|
|
69
|
+
export type VroElTableColumnGroupDefaultColumn<T extends Record<string, any> = any> = VroElTableColumnGroupBaseColumn<VroElTableColumnGroupColumnPropsMap<T>['VroElTableColumn']> & VroElTableColumnGroupColumnPropsMap<T>['VroElTableColumn'] & {
|
|
70
|
+
is?: undefined;
|
|
71
|
+
};
|
|
72
|
+
export type VroElTableColumnGroupCustomColumn = VroElTableColumnGroupBaseColumn & {
|
|
73
|
+
is: VroElTableColumnGroupRawComponent;
|
|
74
|
+
[key: string]: any;
|
|
75
|
+
};
|
|
76
|
+
export type VroElTableColumnGroupColumn<T extends Record<string, any> = any> = VroElTableColumnGroupDefaultColumn<T> | VroElTableColumnGroupMappedColumn<T> | VroElTableColumnGroupCustomColumn;
|
|
77
|
+
export type VroElTableColumnGroupColumns<T extends Record<string, any> = any> = VroElTableColumnGroupColumn<T>[];
|
|
78
|
+
export declare const vroElTableColumnGroupProps: {
|
|
79
|
+
/**
|
|
80
|
+
* 表格列配置。
|
|
81
|
+
*/
|
|
82
|
+
columns: {
|
|
83
|
+
type: PropType<VroElTableColumnGroupColumns>;
|
|
84
|
+
default: () => never[];
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
export type VroElTableColumnGroupProps = ExtractPropTypes<typeof vroElTableColumnGroupProps>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
columns: {
|
|
3
|
+
type: import('vue').PropType<import('./types').VroElTableColumnGroupColumns>;
|
|
4
|
+
default: () => never[];
|
|
5
|
+
};
|
|
6
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
7
|
+
columns: {
|
|
8
|
+
type: import('vue').PropType<import('./types').VroElTableColumnGroupColumns>;
|
|
9
|
+
default: () => never[];
|
|
10
|
+
};
|
|
11
|
+
}>> & Readonly<{}>, {
|
|
12
|
+
columns: import('./types').VroElTableColumnGroupColumns<any>;
|
|
13
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { defineComponent as c, computed as i, createElementBlock as f, openBlock as u, Fragment as g, renderList as b, createBlock as d, resolveDynamicComponent as C, mergeProps as _ } from "vue";
|
|
2
|
+
import { isFunction as k, isString as v } from "@daysnap/utils";
|
|
3
|
+
import { VroElTableColumn as y } from "../vro-el-table-column/index.js";
|
|
4
|
+
import { vroElTableColumnGroupProps as E } from "./types.js";
|
|
5
|
+
import { vroElTableColumnGroupColumnManager as T } from "./vroElTableColumnGroupColumnManager.js";
|
|
6
|
+
const x = /* @__PURE__ */ c({
|
|
7
|
+
name: "VroElTableColumnGroup",
|
|
8
|
+
__name: "vro-el-table-column-group",
|
|
9
|
+
props: E,
|
|
10
|
+
setup(s) {
|
|
11
|
+
const p = s, a = i(() => p.columns.flatMap((r) => {
|
|
12
|
+
const { props: e, is: o = y, hidden: n, ...l } = r;
|
|
13
|
+
if (k(n) ? n() : n)
|
|
14
|
+
return [];
|
|
15
|
+
if (v(o)) {
|
|
16
|
+
const t = T.get(o);
|
|
17
|
+
if (t)
|
|
18
|
+
return Object.assign({}, t.props, l, e, { is: t.is });
|
|
19
|
+
}
|
|
20
|
+
return Object.assign({}, l, e, { is: o });
|
|
21
|
+
})), m = (r, e) => r.key ?? r.columnKey ?? r.prop ?? r.label ?? e;
|
|
22
|
+
return (r, e) => (u(!0), f(g, null, b(a.value, (o, n) => (u(), d(C(o.is), _({ ref_for: !0 }, o, {
|
|
23
|
+
key: m(o, n)
|
|
24
|
+
}), null, 16))), 128));
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
export {
|
|
28
|
+
x as default
|
|
29
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ComponentManager as o } from "@vrojs/base";
|
|
2
|
+
import { ElTableColumn as l } from "element-plus";
|
|
3
|
+
import { VroElTableActionsColumn as m } from "../vro-el-table-actions-column/index.js";
|
|
4
|
+
import { VroElTableColumn as r } from "../vro-el-table-column/index.js";
|
|
5
|
+
const n = new o();
|
|
6
|
+
n.add("ElTableColumn", l).add("VroElTableColumn", r).add("VroElTableActionsColumn", m);
|
|
7
|
+
export {
|
|
8
|
+
n as vroElTableColumnGroupColumnManager
|
|
9
|
+
};
|