@vunk/plus 1.6.7 → 1.6.9
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/components/SendOutlined.mjs +8 -6
- package/components/SharedSystems.mjs +290 -72
- package/components/WebGLRenderer.mjs +32 -20
- package/components/WebGPURenderer.mjs +48 -10
- package/components/agent-chat-provider/index.d.ts +7 -0
- package/components/agent-chat-provider/index.mjs +7 -4
- package/components/agent-chat-provider/src/api.d.ts +3 -0
- package/components/agent-chat-provider/src/const-roles.d.ts +8 -0
- package/components/agent-chat-provider/src/const.d.ts +1 -0
- package/components/agent-chat-provider/src/index.vue.d.ts +22 -0
- package/components/agent-chat-provider/src/types.d.ts +50 -0
- package/components/agent-chat-provider/src/use.d.ts +5 -0
- package/components/avatar/index.d.ts +4 -0
- package/components/avatar/index.mjs +2 -2
- package/components/avatar/src/ctx.d.ts +6 -0
- package/components/avatar/src/index.vue.d.ts +180 -0
- package/components/avatar/src/types.d.ts +1 -0
- package/components/broadcasting-markdown/index.d.ts +7 -0
- package/components/broadcasting-markdown/index.mjs +78 -158
- package/components/broadcasting-markdown/src/const.d.ts +13 -0
- package/components/broadcasting-markdown/src/ctx.d.ts +129 -0
- package/components/broadcasting-markdown/src/howler-speech.vue.d.ts +104 -0
- package/components/broadcasting-markdown/src/index.vue.d.ts +439 -0
- package/components/broadcasting-markdown/src/paragraph.vue.d.ts +79 -0
- package/components/broadcasting-markdown/src/speech-error.vue.d.ts +67 -0
- package/components/broadcasting-markdown/src/types.d.ts +26 -0
- package/components/broadcasting-markdown/src/use.d.ts +21 -0
- package/components/browserAll.mjs +333 -562
- package/components/bubble-list/index.d.ts +5 -0
- package/components/bubble-list/index.mjs +91 -72
- package/components/bubble-list/src/ctx.d.ts +32 -0
- package/components/bubble-list/src/index.vue.d.ts +810 -0
- package/components/bubble-list/src/types.d.ts +4 -0
- package/components/bubble-templates/index.d.ts +4 -0
- package/components/bubble-templates/index.mjs +83 -68
- package/components/bubble-templates/src/index.vue.d.ts +595 -0
- package/components/bubble-templates/src/types.d.ts +40 -0
- package/components/chat-independent/index.d.ts +4 -0
- package/components/chat-independent/index.mjs +136 -115
- package/components/chat-independent/src/const.d.ts +13 -0
- package/components/chat-independent/src/ctx.d.ts +21 -0
- package/components/chat-independent/src/index.vue.d.ts +2429 -0
- package/components/chat-independent/src/types.d.ts +13 -0
- package/components/colorToUniform.mjs +2 -0
- package/components/index.d.ts +0 -0
- package/components/index2.mjs +11896 -8381
- package/components/init.mjs +1724 -998
- package/components/lottie-animation/index.d.ts +4 -0
- package/components/lottie-animation/index.mjs +2 -2
- package/components/lottie-animation/src/ctx.d.ts +10 -0
- package/components/lottie-animation/src/index.vue.d.ts +21 -0
- package/components/lottie-animation/src/types.d.ts +4 -0
- package/components/metahuman-broadcasting/index.d.ts +5 -0
- package/components/metahuman-broadcasting/index.mjs +57 -40
- package/components/metahuman-broadcasting/src/ctx.d.ts +57 -0
- package/components/metahuman-broadcasting/src/index.vue.d.ts +885 -0
- package/components/metahuman-broadcasting/src/types.d.ts +1 -0
- package/components/monaco-editor/index.d.ts +5 -0
- package/components/monaco-editor/index.mjs +2 -2
- package/components/monaco-editor/src/ctx.d.ts +23 -0
- package/components/monaco-editor/src/index.vue.d.ts +40 -0
- package/components/monaco-editor/src/types.d.ts +1 -0
- package/components/monaco-environment/index.d.ts +4 -0
- package/components/monaco-environment/index.mjs +1 -1
- package/components/monaco-environment/src/ctx.d.ts +8 -0
- package/components/monaco-environment/src/index.vue.d.ts +2 -0
- package/components/monaco-environment/src/types.d.ts +1 -0
- package/components/pixi-frame/index.d.ts +11 -0
- package/components/pixi-frame/index.mjs +2 -2
- package/components/pixi-frame/src/apng.vue.d.ts +161 -0
- package/components/pixi-frame/src/bitmap.vue.d.ts +158 -0
- package/components/pixi-frame/src/core.vue.d.ts +173 -0
- package/components/pixi-frame/src/ctx.d.ts +55 -0
- package/components/pixi-frame/src/index.vue.d.ts +591 -0
- package/components/pixi-frame/src/provider.vue.d.ts +2 -0
- package/components/pixi-frame/src/types.d.ts +17 -0
- package/components/pixi-frame/src/use.d.ts +16 -0
- package/components/pixi-frame/src/useSprite.d.ts +12 -0
- package/components/pixi-frame/src/video.vue.d.ts +159 -0
- package/components/pixi-frame/src/view.vue.d.ts +29 -0
- package/components/recorder-button/index.d.ts +4 -0
- package/components/recorder-button/index.mjs +2 -2
- package/components/recorder-button/src/ctx.d.ts +41 -0
- package/components/recorder-button/src/index.vue.d.ts +333 -0
- package/components/recorder-button/src/speech-to-text.d.ts +1 -0
- package/components/recorder-button/src/types.d.ts +7 -0
- package/components/routes-menu-content/index.d.ts +4 -0
- package/components/routes-menu-content/index.mjs +5 -5
- package/components/routes-menu-content/src/ctx.d.ts +17 -0
- package/components/routes-menu-content/src/index.vue.d.ts +350 -0
- package/components/routes-menu-content/src/item/core/ctx.d.ts +18 -0
- package/components/routes-menu-content/src/item/core/index.vue.d.ts +185 -0
- package/components/routes-menu-content/src/item/ctx.d.ts +14 -0
- package/components/routes-menu-content/src/item/index.vue.d.ts +316 -0
- package/components/routes-menu-content/src/types.d.ts +1 -0
- package/components/sender/index.css +0 -8
- package/components/sender/index.d.ts +4 -0
- package/components/sender/index.mjs +101 -69
- package/components/sender/src/SenderHeader.vue.d.ts +270 -0
- package/components/sender/src/ctx.d.ts +64 -0
- package/components/sender/src/index.vue.d.ts +779 -0
- package/components/sender/src/types.d.ts +1 -0
- package/components/speech-button/index.d.ts +4 -0
- package/components/speech-button/index.mjs +14 -7
- package/components/speech-button/src/LoadingIcon.vue.d.ts +2 -0
- package/components/speech-button/src/RecordingIcon.vue.d.ts +2 -0
- package/components/speech-button/src/ctx.d.ts +10 -0
- package/components/speech-button/src/index.vue.d.ts +22 -0
- package/components/speech-button/src/types.d.ts +1 -0
- package/components/table-columns/index.d.ts +5 -0
- package/components/table-columns/index.mjs +6 -3
- package/components/table-columns/src/ctx.d.ts +59 -0
- package/components/table-columns/src/el-ctx.d.ts +57 -0
- package/components/table-columns/src/index.vue.d.ts +266 -0
- package/components/table-columns/src/types.d.ts +21 -0
- package/components/tables-v1/index.d.ts +5 -0
- package/components/tables-v1/index.mjs +3 -3
- package/components/tables-v1/src/ctx.d.ts +280 -0
- package/components/tables-v1/src/el-ctx.d.ts +262 -0
- package/components/tables-v1/src/index.vue.d.ts +3054 -0
- package/components/tables-v1/src/types.d.ts +3 -0
- package/components/tables-v1-checkbox/index.d.ts +5 -0
- package/components/tables-v1-checkbox/index.mjs +33 -269
- package/components/tables-v1-checkbox/src/ctx.d.ts +313 -0
- package/components/tables-v1-checkbox/src/index.vue.d.ts +3831 -0
- package/components/tables-v1-checkbox/src/types.d.ts +1 -0
- package/components/text/index.d.ts +4 -0
- package/components/text/index.mjs +52 -42
- package/components/text/src/ctx.d.ts +341 -0
- package/components/text/src/index.vue.d.ts +4593 -0
- package/components/text/src/types.d.ts +1 -0
- package/components/typing-markdown/index.d.ts +4 -0
- package/components/typing-markdown/index.mjs +2 -2
- package/components/typing-markdown/src/core.d.ts +2 -0
- package/components/typing-markdown/src/ctx.d.ts +41 -0
- package/components/typing-markdown/src/index.vue.d.ts +75 -0
- package/components/typing-markdown/src/types.d.ts +1 -0
- package/components/vditor/index.d.ts +5 -0
- package/components/vditor/index.mjs +9 -5
- package/components/vditor/src/ctx.d.ts +38 -0
- package/components/vditor/src/handle-fullscreen.vue.d.ts +18 -0
- package/components/vditor/src/handle-value.vue.d.ts +18 -0
- package/components/vditor/src/index.vue.d.ts +143 -0
- package/components/vditor/src/types.d.ts +9 -0
- package/components/vditor/src/use.d.ts +4 -0
- package/components/webworkerAll.mjs +1 -1
- package/composables/el-breakpoints/index.d.ts +5 -5
- package/composables/recorder/index.mjs +191 -288
- package/icons/end/index.mjs +3 -3
- package/icons/end/src/avatar.d.ts +2 -11
- package/icons/end/src/icon.d.ts +2 -56
- package/icons/keyboard/index.mjs +3 -3
- package/icons/keyboard/src/avatar.d.ts +2 -11
- package/icons/keyboard/src/icon.d.ts +2 -56
- package/icons/start/index.mjs +3 -3
- package/icons/start/src/avatar.d.ts +2 -11
- package/icons/start/src/icon.d.ts +2 -56
- package/icons/voice/index.mjs +2 -2
- package/icons/voice/src/avatar.d.ts +2 -11
- package/icons/voice/src/icon.d.ts +2 -56
- package/index.css +0 -8
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type Module = 'Attachments';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { defineComponent, createVNode, createTextVNode } from 'vue';
|
|
2
2
|
import { useRecorder } from '@vunk/plus/composables/recorder';
|
|
3
3
|
import { Button } from 'ant-design-vue';
|
|
4
|
-
import {
|
|
4
|
+
import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
|
|
5
|
+
import { A as AudioMutedOutlined, b as AudioOutlined } from '../SendOutlined.mjs';
|
|
5
6
|
|
|
6
7
|
const props = {
|
|
7
8
|
disabled: {
|
|
@@ -47,6 +48,8 @@ var _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
47
48
|
}
|
|
48
49
|
});
|
|
49
50
|
|
|
51
|
+
var LoadingIcon = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__file", "/home/runner/work/vunk-plus/vunk-plus/packages/components/speech-button/src/LoadingIcon.vue"]]);
|
|
52
|
+
|
|
50
53
|
const SIZE = 1e3;
|
|
51
54
|
const COUNT = 4;
|
|
52
55
|
const RECT_WIDTH = 140;
|
|
@@ -99,10 +102,12 @@ var _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
99
102
|
}
|
|
100
103
|
});
|
|
101
104
|
|
|
105
|
+
var RecordingIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__file", "/home/runner/work/vunk-plus/vunk-plus/packages/components/speech-button/src/RecordingIcon.vue"]]);
|
|
106
|
+
|
|
102
107
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
103
108
|
name: "VkSpeechButton",
|
|
104
109
|
components: {
|
|
105
|
-
RecordingIcon
|
|
110
|
+
RecordingIcon
|
|
106
111
|
},
|
|
107
112
|
props,
|
|
108
113
|
emits,
|
|
@@ -129,9 +134,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
129
134
|
};
|
|
130
135
|
const iconRender = () => {
|
|
131
136
|
if (props2.disabled) return createVNode(AudioMutedOutlined, null, null);
|
|
132
|
-
if (opening.value) return createVNode(
|
|
137
|
+
if (opening.value) return createVNode(LoadingIcon, null, null);
|
|
133
138
|
if (recording.value) {
|
|
134
|
-
return createVNode(
|
|
139
|
+
return createVNode(RecordingIcon, {
|
|
135
140
|
"class": "vk-speech-button-recording-icon"
|
|
136
141
|
}, null);
|
|
137
142
|
}
|
|
@@ -146,12 +151,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
146
151
|
}
|
|
147
152
|
});
|
|
148
153
|
|
|
154
|
+
var VkSpeechButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/vunk-plus/vunk-plus/packages/components/speech-button/src/index.vue"]]);
|
|
155
|
+
|
|
149
156
|
var types = /*#__PURE__*/Object.freeze({
|
|
150
157
|
__proto__: null
|
|
151
158
|
});
|
|
152
159
|
|
|
153
|
-
|
|
154
|
-
app.component(
|
|
160
|
+
VkSpeechButton.install = (app) => {
|
|
161
|
+
app.component(VkSpeechButton.name || "VkSpeechButton", VkSpeechButton);
|
|
155
162
|
};
|
|
156
163
|
|
|
157
|
-
export {
|
|
164
|
+
export { VkSpeechButton, types as __VkSpeechButton, VkSpeechButton as default };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
disabled: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
}>, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
stop: (_: Blob) => boolean;
|
|
8
|
+
start: null;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10
|
+
disabled: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
}>> & Readonly<{
|
|
15
|
+
onStart?: ((...args: any[]) => any) | undefined;
|
|
16
|
+
onStop?: ((_: Blob) => any) | undefined;
|
|
17
|
+
}>, {
|
|
18
|
+
disabled: boolean;
|
|
19
|
+
}, {}, {
|
|
20
|
+
RecordingIcon: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
21
|
+
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -2,6 +2,7 @@ import { bindPropsFactory } from '@vunk/core/shared/utils-vue';
|
|
|
2
2
|
import { defineComponent, unref, h } from 'vue';
|
|
3
3
|
import { ElTableColumn } from 'element-plus';
|
|
4
4
|
import { isPlainObject, pickObject } from '@vunk/shared/object';
|
|
5
|
+
import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
|
|
5
6
|
|
|
6
7
|
const tableColumnProps = {
|
|
7
8
|
type: {
|
|
@@ -124,12 +125,14 @@ var _sfc_main = defineComponent({
|
|
|
124
125
|
}
|
|
125
126
|
});
|
|
126
127
|
|
|
128
|
+
var VkTableColumns = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/vunk-plus/vunk-plus/packages/components/table-columns/src/index.vue"]]);
|
|
129
|
+
|
|
127
130
|
var types = /*#__PURE__*/Object.freeze({
|
|
128
131
|
__proto__: null
|
|
129
132
|
});
|
|
130
133
|
|
|
131
|
-
|
|
132
|
-
app.component(
|
|
134
|
+
VkTableColumns.install = (app) => {
|
|
135
|
+
app.component(VkTableColumns.name, VkTableColumns);
|
|
133
136
|
};
|
|
134
137
|
|
|
135
|
-
export {
|
|
138
|
+
export { VkTableColumns, elCtx as _VkTableColumnsElCtx, types as __VkTableColumns, VkTableColumns as default };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { Source } from './types';
|
|
3
|
+
export declare const props: {
|
|
4
|
+
source: {
|
|
5
|
+
type: PropType<Source<any>[]>;
|
|
6
|
+
default: () => never[];
|
|
7
|
+
};
|
|
8
|
+
type: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
label: StringConstructor;
|
|
13
|
+
className: StringConstructor;
|
|
14
|
+
labelClassName: StringConstructor;
|
|
15
|
+
property: StringConstructor;
|
|
16
|
+
prop: StringConstructor;
|
|
17
|
+
width: {
|
|
18
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
minWidth: {
|
|
22
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
renderHeader: PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["renderHeader"]>;
|
|
26
|
+
sortable: {
|
|
27
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
sortMethod: PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["sortMethod"]>;
|
|
31
|
+
sortBy: PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["sortBy"]>;
|
|
32
|
+
resizable: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
columnKey: StringConstructor;
|
|
37
|
+
align: StringConstructor;
|
|
38
|
+
headerAlign: StringConstructor;
|
|
39
|
+
showTooltipWhenOverflow: BooleanConstructor;
|
|
40
|
+
showOverflowTooltip: BooleanConstructor;
|
|
41
|
+
fixed: (StringConstructor | BooleanConstructor)[];
|
|
42
|
+
formatter: PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["formatter"]>;
|
|
43
|
+
selectable: PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["selectable"]>;
|
|
44
|
+
reserveSelection: BooleanConstructor;
|
|
45
|
+
filterMethod: PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["filterMethod"]>;
|
|
46
|
+
filteredValue: PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["filteredValue"]>;
|
|
47
|
+
filters: PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["filters"]>;
|
|
48
|
+
filterPlacement: StringConstructor;
|
|
49
|
+
filterMultiple: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
53
|
+
index: PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["index"]>;
|
|
54
|
+
sortOrders: {
|
|
55
|
+
type: PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["sortOrders"]>;
|
|
56
|
+
default: () => (string | null)[];
|
|
57
|
+
validator: (val: import("element-plus").TableColumnCtx<unknown>["sortOrders"]) => boolean;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { TableColumnCtx } from 'element-plus/es/components/table/src/table-column/defaults';
|
|
2
|
+
import type { DefaultRow } from 'element-plus/es/components/table/src/table/defaults';
|
|
3
|
+
import { PropType } from 'vue';
|
|
4
|
+
export declare const tableColumnProps: {
|
|
5
|
+
type: {
|
|
6
|
+
type: StringConstructor;
|
|
7
|
+
default: string;
|
|
8
|
+
};
|
|
9
|
+
label: StringConstructor;
|
|
10
|
+
className: StringConstructor;
|
|
11
|
+
labelClassName: StringConstructor;
|
|
12
|
+
property: StringConstructor;
|
|
13
|
+
prop: StringConstructor;
|
|
14
|
+
width: {
|
|
15
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
minWidth: {
|
|
19
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
renderHeader: PropType<TableColumnCtx<DefaultRow>["renderHeader"]>;
|
|
23
|
+
sortable: {
|
|
24
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
25
|
+
default: boolean;
|
|
26
|
+
};
|
|
27
|
+
sortMethod: PropType<TableColumnCtx<DefaultRow>["sortMethod"]>;
|
|
28
|
+
sortBy: PropType<TableColumnCtx<DefaultRow>["sortBy"]>;
|
|
29
|
+
resizable: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
columnKey: StringConstructor;
|
|
34
|
+
align: StringConstructor;
|
|
35
|
+
headerAlign: StringConstructor;
|
|
36
|
+
showTooltipWhenOverflow: BooleanConstructor;
|
|
37
|
+
showOverflowTooltip: BooleanConstructor;
|
|
38
|
+
fixed: (StringConstructor | BooleanConstructor)[];
|
|
39
|
+
formatter: PropType<TableColumnCtx<DefaultRow>["formatter"]>;
|
|
40
|
+
selectable: PropType<TableColumnCtx<DefaultRow>["selectable"]>;
|
|
41
|
+
reserveSelection: BooleanConstructor;
|
|
42
|
+
filterMethod: PropType<TableColumnCtx<DefaultRow>["filterMethod"]>;
|
|
43
|
+
filteredValue: PropType<TableColumnCtx<DefaultRow>["filteredValue"]>;
|
|
44
|
+
filters: PropType<TableColumnCtx<DefaultRow>["filters"]>;
|
|
45
|
+
filterPlacement: StringConstructor;
|
|
46
|
+
filterMultiple: {
|
|
47
|
+
type: BooleanConstructor;
|
|
48
|
+
default: boolean;
|
|
49
|
+
};
|
|
50
|
+
index: PropType<TableColumnCtx<DefaultRow>["index"]>;
|
|
51
|
+
sortOrders: {
|
|
52
|
+
type: PropType<TableColumnCtx<DefaultRow>["sortOrders"]>;
|
|
53
|
+
default: () => (string | null)[];
|
|
54
|
+
validator: (val: TableColumnCtx<unknown>["sortOrders"]) => boolean;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
export declare const createTableColumnBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"type", keyof T2> | Extract<"fixed", keyof T2> | Extract<"filters", keyof T2> | Extract<"label", keyof T2> | Extract<"className", keyof T2> | Extract<"width", keyof T2> | Extract<"index", keyof T2> | Extract<"renderHeader", keyof T2> | Extract<"sortMethod", keyof T2> | Extract<"sortBy", keyof T2> | Extract<"formatter", keyof T2> | Extract<"selectable", keyof T2> | Extract<"filterMethod", keyof T2> | Extract<"filteredValue", keyof T2> | Extract<"sortOrders", keyof T2> | Extract<"labelClassName", keyof T2> | Extract<"property", keyof T2> | Extract<"prop", keyof T2> | Extract<"minWidth", keyof T2> | Extract<"sortable", keyof T2> | Extract<"resizable", keyof T2> | Extract<"columnKey", keyof T2> | Extract<"align", keyof T2> | Extract<"headerAlign", keyof T2> | Extract<"showTooltipWhenOverflow", keyof T2> | Extract<"showOverflowTooltip", keyof T2> | Extract<"reserveSelection", keyof T2> | Extract<"filterPlacement", keyof T2> | Extract<"filterMultiple", keyof T2>)[]>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"type", keyof T2>, KE> | Exclude<Extract<"fixed", keyof T2>, KE> | Exclude<Extract<"filters", keyof T2>, KE> | Exclude<Extract<"label", keyof T2>, KE> | Exclude<Extract<"className", keyof T2>, KE> | Exclude<Extract<"width", keyof T2>, KE> | Exclude<Extract<"index", keyof T2>, KE> | Exclude<Extract<"renderHeader", keyof T2>, KE> | Exclude<Extract<"sortMethod", keyof T2>, KE> | Exclude<Extract<"sortBy", keyof T2>, KE> | Exclude<Extract<"formatter", keyof T2>, KE> | Exclude<Extract<"selectable", keyof T2>, KE> | Exclude<Extract<"filterMethod", keyof T2>, KE> | Exclude<Extract<"filteredValue", keyof T2>, KE> | Exclude<Extract<"sortOrders", keyof T2>, KE> | Exclude<Extract<"labelClassName", keyof T2>, KE> | Exclude<Extract<"property", keyof T2>, KE> | Exclude<Extract<"prop", keyof T2>, KE> | Exclude<Extract<"minWidth", keyof T2>, KE> | Exclude<Extract<"sortable", keyof T2>, KE> | Exclude<Extract<"resizable", keyof T2>, KE> | Exclude<Extract<"columnKey", keyof T2>, KE> | Exclude<Extract<"align", keyof T2>, KE> | Exclude<Extract<"headerAlign", keyof T2>, KE> | Exclude<Extract<"showTooltipWhenOverflow", keyof T2>, KE> | Exclude<Extract<"showOverflowTooltip", keyof T2>, KE> | Exclude<Extract<"reserveSelection", keyof T2>, KE> | Exclude<Extract<"filterPlacement", keyof T2>, KE> | Exclude<Extract<"filterMultiple", keyof T2>, KE> : Extract<"type", keyof T2> | Extract<"fixed", keyof T2> | Extract<"filters", keyof T2> | Extract<"label", keyof T2> | Extract<"className", keyof T2> | Extract<"width", keyof T2> | Extract<"index", keyof T2> | Extract<"renderHeader", keyof T2> | Extract<"sortMethod", keyof T2> | Extract<"sortBy", keyof T2> | Extract<"formatter", keyof T2> | Extract<"selectable", keyof T2> | Extract<"filterMethod", keyof T2> | Extract<"filteredValue", keyof T2> | Extract<"sortOrders", keyof T2> | Extract<"labelClassName", keyof T2> | Extract<"property", keyof T2> | Extract<"prop", keyof T2> | Extract<"minWidth", keyof T2> | Extract<"sortable", keyof T2> | Extract<"resizable", keyof T2> | Extract<"columnKey", keyof T2> | Extract<"align", keyof T2> | Extract<"headerAlign", keyof T2> | Extract<"showTooltipWhenOverflow", keyof T2> | Extract<"showOverflowTooltip", keyof T2> | Extract<"reserveSelection", keyof T2> | Extract<"filterPlacement", keyof T2> | Extract<"filterMultiple", keyof T2>]: { [k in Extract<"type", keyof T2> | Extract<"fixed", keyof T2> | Extract<"filters", keyof T2> | Extract<"label", keyof T2> | Extract<"className", keyof T2> | Extract<"width", keyof T2> | Extract<"index", keyof T2> | Extract<"renderHeader", keyof T2> | Extract<"sortMethod", keyof T2> | Extract<"sortBy", keyof T2> | Extract<"formatter", keyof T2> | Extract<"selectable", keyof T2> | Extract<"filterMethod", keyof T2> | Extract<"filteredValue", keyof T2> | Extract<"sortOrders", keyof T2> | Extract<"labelClassName", keyof T2> | Extract<"property", keyof T2> | Extract<"prop", keyof T2> | Extract<"minWidth", keyof T2> | Extract<"sortable", keyof T2> | Extract<"resizable", keyof T2> | Extract<"columnKey", keyof T2> | Extract<"align", keyof T2> | Extract<"headerAlign", keyof T2> | Extract<"showTooltipWhenOverflow", keyof T2> | Extract<"showOverflowTooltip", keyof T2> | Extract<"reserveSelection", keyof T2> | Extract<"filterPlacement", keyof T2> | Extract<"filterMultiple", keyof T2>]: T2[k]; }[P]; }>;
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
import { VNode } from 'vue';
|
|
2
|
+
import { Source } from './types';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
source: {
|
|
5
|
+
type: import("vue").PropType<Source<any>[]>;
|
|
6
|
+
default: () => never[];
|
|
7
|
+
};
|
|
8
|
+
type: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
label: StringConstructor;
|
|
13
|
+
className: StringConstructor;
|
|
14
|
+
labelClassName: StringConstructor;
|
|
15
|
+
property: StringConstructor;
|
|
16
|
+
prop: StringConstructor;
|
|
17
|
+
width: {
|
|
18
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
minWidth: {
|
|
22
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
renderHeader: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["renderHeader"]>;
|
|
26
|
+
sortable: {
|
|
27
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
sortMethod: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["sortMethod"]>;
|
|
31
|
+
sortBy: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["sortBy"]>;
|
|
32
|
+
resizable: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
columnKey: StringConstructor;
|
|
37
|
+
align: StringConstructor;
|
|
38
|
+
headerAlign: StringConstructor;
|
|
39
|
+
showTooltipWhenOverflow: BooleanConstructor;
|
|
40
|
+
showOverflowTooltip: BooleanConstructor;
|
|
41
|
+
fixed: (StringConstructor | BooleanConstructor)[];
|
|
42
|
+
formatter: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["formatter"]>;
|
|
43
|
+
selectable: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["selectable"]>;
|
|
44
|
+
reserveSelection: BooleanConstructor;
|
|
45
|
+
filterMethod: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["filterMethod"]>;
|
|
46
|
+
filteredValue: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["filteredValue"]>;
|
|
47
|
+
filters: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["filters"]>;
|
|
48
|
+
filterPlacement: StringConstructor;
|
|
49
|
+
filterMultiple: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
53
|
+
index: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["index"]>;
|
|
54
|
+
sortOrders: {
|
|
55
|
+
type: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["sortOrders"]>;
|
|
56
|
+
default: () => (string | null)[];
|
|
57
|
+
validator: (val: import("element-plus").TableColumnCtx<unknown>["sortOrders"]) => boolean;
|
|
58
|
+
};
|
|
59
|
+
}>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
60
|
+
[key: string]: any;
|
|
61
|
+
}>[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
62
|
+
source: {
|
|
63
|
+
type: import("vue").PropType<Source<any>[]>;
|
|
64
|
+
default: () => never[];
|
|
65
|
+
};
|
|
66
|
+
type: {
|
|
67
|
+
type: StringConstructor;
|
|
68
|
+
default: string;
|
|
69
|
+
};
|
|
70
|
+
label: StringConstructor;
|
|
71
|
+
className: StringConstructor;
|
|
72
|
+
labelClassName: StringConstructor;
|
|
73
|
+
property: StringConstructor;
|
|
74
|
+
prop: StringConstructor;
|
|
75
|
+
width: {
|
|
76
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
77
|
+
default: string;
|
|
78
|
+
};
|
|
79
|
+
minWidth: {
|
|
80
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
81
|
+
default: string;
|
|
82
|
+
};
|
|
83
|
+
renderHeader: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["renderHeader"]>;
|
|
84
|
+
sortable: {
|
|
85
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
86
|
+
default: boolean;
|
|
87
|
+
};
|
|
88
|
+
sortMethod: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["sortMethod"]>;
|
|
89
|
+
sortBy: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["sortBy"]>;
|
|
90
|
+
resizable: {
|
|
91
|
+
type: BooleanConstructor;
|
|
92
|
+
default: boolean;
|
|
93
|
+
};
|
|
94
|
+
columnKey: StringConstructor;
|
|
95
|
+
align: StringConstructor;
|
|
96
|
+
headerAlign: StringConstructor;
|
|
97
|
+
showTooltipWhenOverflow: BooleanConstructor;
|
|
98
|
+
showOverflowTooltip: BooleanConstructor;
|
|
99
|
+
fixed: (StringConstructor | BooleanConstructor)[];
|
|
100
|
+
formatter: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["formatter"]>;
|
|
101
|
+
selectable: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["selectable"]>;
|
|
102
|
+
reserveSelection: BooleanConstructor;
|
|
103
|
+
filterMethod: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["filterMethod"]>;
|
|
104
|
+
filteredValue: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["filteredValue"]>;
|
|
105
|
+
filters: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["filters"]>;
|
|
106
|
+
filterPlacement: StringConstructor;
|
|
107
|
+
filterMultiple: {
|
|
108
|
+
type: BooleanConstructor;
|
|
109
|
+
default: boolean;
|
|
110
|
+
};
|
|
111
|
+
index: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["index"]>;
|
|
112
|
+
sortOrders: {
|
|
113
|
+
type: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["sortOrders"]>;
|
|
114
|
+
default: () => (string | null)[];
|
|
115
|
+
validator: (val: import("element-plus").TableColumnCtx<unknown>["sortOrders"]) => boolean;
|
|
116
|
+
};
|
|
117
|
+
}>> & Readonly<{}>, {
|
|
118
|
+
type: string;
|
|
119
|
+
source: Source<any>[];
|
|
120
|
+
width: string | number;
|
|
121
|
+
sortOrders: ("ascending" | "descending" | null)[];
|
|
122
|
+
minWidth: string | number;
|
|
123
|
+
sortable: string | boolean;
|
|
124
|
+
resizable: boolean;
|
|
125
|
+
showTooltipWhenOverflow: boolean;
|
|
126
|
+
showOverflowTooltip: boolean;
|
|
127
|
+
reserveSelection: boolean;
|
|
128
|
+
filterMultiple: boolean;
|
|
129
|
+
}, {}, {
|
|
130
|
+
ElTableColumn: import("element-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
131
|
+
type: {
|
|
132
|
+
type: StringConstructor;
|
|
133
|
+
default: string;
|
|
134
|
+
};
|
|
135
|
+
label: StringConstructor;
|
|
136
|
+
className: StringConstructor;
|
|
137
|
+
labelClassName: StringConstructor;
|
|
138
|
+
property: StringConstructor;
|
|
139
|
+
prop: StringConstructor;
|
|
140
|
+
width: {
|
|
141
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
142
|
+
default: string;
|
|
143
|
+
};
|
|
144
|
+
minWidth: {
|
|
145
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
146
|
+
default: string;
|
|
147
|
+
};
|
|
148
|
+
renderHeader: import("vue").PropType<(data: {
|
|
149
|
+
column: import("element-plus").TableColumnCtx<any>;
|
|
150
|
+
$index: number;
|
|
151
|
+
}) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
152
|
+
[key: string]: any;
|
|
153
|
+
}>>;
|
|
154
|
+
sortable: {
|
|
155
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
156
|
+
default: boolean;
|
|
157
|
+
};
|
|
158
|
+
sortMethod: import("vue").PropType<(a: any, b: any) => number>;
|
|
159
|
+
sortBy: import("vue").PropType<string | string[] | ((row: any, index: number) => string)>;
|
|
160
|
+
resizable: {
|
|
161
|
+
type: BooleanConstructor;
|
|
162
|
+
default: boolean;
|
|
163
|
+
};
|
|
164
|
+
columnKey: StringConstructor;
|
|
165
|
+
align: StringConstructor;
|
|
166
|
+
headerAlign: StringConstructor;
|
|
167
|
+
showOverflowTooltip: {
|
|
168
|
+
type: import("vue").PropType<boolean | Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperClass" | "showAfter" | "hideAfter" | "popperOptions" | "enterable" | "appendTo" | "transition" | "showArrow">> | undefined>;
|
|
169
|
+
default: undefined;
|
|
170
|
+
};
|
|
171
|
+
fixed: (BooleanConstructor | StringConstructor)[];
|
|
172
|
+
formatter: import("vue").PropType<(row: any, column: import("element-plus").TableColumnCtx<any>, cellValue: any, index: number) => string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
173
|
+
[key: string]: any;
|
|
174
|
+
}>>;
|
|
175
|
+
selectable: import("vue").PropType<(row: any, index: number) => boolean>;
|
|
176
|
+
reserveSelection: BooleanConstructor;
|
|
177
|
+
filterMethod: import("vue").PropType<import("element-plus/es/components/table/src/table-column/defaults").FilterMethods<any>>;
|
|
178
|
+
filteredValue: import("vue").PropType<string[]>;
|
|
179
|
+
filters: import("vue").PropType<import("element-plus/es/components/table/src/table-column/defaults").Filters>;
|
|
180
|
+
filterPlacement: StringConstructor;
|
|
181
|
+
filterMultiple: {
|
|
182
|
+
type: BooleanConstructor;
|
|
183
|
+
default: boolean;
|
|
184
|
+
};
|
|
185
|
+
filterClassName: StringConstructor;
|
|
186
|
+
index: import("vue").PropType<number | ((index: number) => number)>;
|
|
187
|
+
sortOrders: {
|
|
188
|
+
type: import("vue").PropType<("ascending" | "descending" | null)[]>;
|
|
189
|
+
default: () => (string | null)[];
|
|
190
|
+
validator: (val: ("ascending" | "descending" | null)[]) => boolean;
|
|
191
|
+
};
|
|
192
|
+
}, void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
193
|
+
type: {
|
|
194
|
+
type: StringConstructor;
|
|
195
|
+
default: string;
|
|
196
|
+
};
|
|
197
|
+
label: StringConstructor;
|
|
198
|
+
className: StringConstructor;
|
|
199
|
+
labelClassName: StringConstructor;
|
|
200
|
+
property: StringConstructor;
|
|
201
|
+
prop: StringConstructor;
|
|
202
|
+
width: {
|
|
203
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
204
|
+
default: string;
|
|
205
|
+
};
|
|
206
|
+
minWidth: {
|
|
207
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
208
|
+
default: string;
|
|
209
|
+
};
|
|
210
|
+
renderHeader: import("vue").PropType<(data: {
|
|
211
|
+
column: import("element-plus").TableColumnCtx<any>;
|
|
212
|
+
$index: number;
|
|
213
|
+
}) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
214
|
+
[key: string]: any;
|
|
215
|
+
}>>;
|
|
216
|
+
sortable: {
|
|
217
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
218
|
+
default: boolean;
|
|
219
|
+
};
|
|
220
|
+
sortMethod: import("vue").PropType<(a: any, b: any) => number>;
|
|
221
|
+
sortBy: import("vue").PropType<string | string[] | ((row: any, index: number) => string)>;
|
|
222
|
+
resizable: {
|
|
223
|
+
type: BooleanConstructor;
|
|
224
|
+
default: boolean;
|
|
225
|
+
};
|
|
226
|
+
columnKey: StringConstructor;
|
|
227
|
+
align: StringConstructor;
|
|
228
|
+
headerAlign: StringConstructor;
|
|
229
|
+
showOverflowTooltip: {
|
|
230
|
+
type: import("vue").PropType<boolean | Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperClass" | "showAfter" | "hideAfter" | "popperOptions" | "enterable" | "appendTo" | "transition" | "showArrow">> | undefined>;
|
|
231
|
+
default: undefined;
|
|
232
|
+
};
|
|
233
|
+
fixed: (BooleanConstructor | StringConstructor)[];
|
|
234
|
+
formatter: import("vue").PropType<(row: any, column: import("element-plus").TableColumnCtx<any>, cellValue: any, index: number) => string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
235
|
+
[key: string]: any;
|
|
236
|
+
}>>;
|
|
237
|
+
selectable: import("vue").PropType<(row: any, index: number) => boolean>;
|
|
238
|
+
reserveSelection: BooleanConstructor;
|
|
239
|
+
filterMethod: import("vue").PropType<import("element-plus/es/components/table/src/table-column/defaults").FilterMethods<any>>;
|
|
240
|
+
filteredValue: import("vue").PropType<string[]>;
|
|
241
|
+
filters: import("vue").PropType<import("element-plus/es/components/table/src/table-column/defaults").Filters>;
|
|
242
|
+
filterPlacement: StringConstructor;
|
|
243
|
+
filterMultiple: {
|
|
244
|
+
type: BooleanConstructor;
|
|
245
|
+
default: boolean;
|
|
246
|
+
};
|
|
247
|
+
filterClassName: StringConstructor;
|
|
248
|
+
index: import("vue").PropType<number | ((index: number) => number)>;
|
|
249
|
+
sortOrders: {
|
|
250
|
+
type: import("vue").PropType<("ascending" | "descending" | null)[]>;
|
|
251
|
+
default: () => (string | null)[];
|
|
252
|
+
validator: (val: ("ascending" | "descending" | null)[]) => boolean;
|
|
253
|
+
};
|
|
254
|
+
}>>, {
|
|
255
|
+
type: string;
|
|
256
|
+
width: string | number;
|
|
257
|
+
minWidth: string | number;
|
|
258
|
+
showOverflowTooltip: boolean | Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperClass" | "showAfter" | "hideAfter" | "popperOptions" | "enterable" | "appendTo" | "transition" | "showArrow">> | undefined;
|
|
259
|
+
sortOrders: ("ascending" | "descending" | null)[];
|
|
260
|
+
sortable: string | boolean;
|
|
261
|
+
resizable: boolean;
|
|
262
|
+
reserveSelection: boolean;
|
|
263
|
+
filterMultiple: boolean;
|
|
264
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
265
|
+
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
266
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Func, Keyof, NormalObject, VueComponentPropsType } from '@vunk/core';
|
|
2
|
+
import { ElTableColumn } from 'element-plus';
|
|
3
|
+
import type { TableColumnCtx } from 'element-plus/es/components/table/src/table-column/defaults';
|
|
4
|
+
export type DefaultSlot<R extends NormalObject> = Func<{
|
|
5
|
+
row: R;
|
|
6
|
+
column: TableColumnCtx<R>;
|
|
7
|
+
$index: number;
|
|
8
|
+
}>;
|
|
9
|
+
export interface Source<T extends NormalObject = NormalObject> extends VueComponentPropsType<typeof ElTableColumn> {
|
|
10
|
+
prop?: Keyof<T>;
|
|
11
|
+
slots?: DefaultSlot<T> | {
|
|
12
|
+
default?: DefaultSlot<T>;
|
|
13
|
+
header?: Func<{
|
|
14
|
+
column: TableColumnCtx<T>;
|
|
15
|
+
$index: number;
|
|
16
|
+
}>;
|
|
17
|
+
};
|
|
18
|
+
children?: Source<T>[];
|
|
19
|
+
hidden?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { _VkTableColumnsElCtx, VkTableColumns } from '@vunk/plus/components/table-columns';
|
|
2
2
|
import { useElBreakpoints } from '@vunk/plus/composables/el-breakpoints';
|
|
3
3
|
import { VkDuplexCalc } from '@vunk/core';
|
|
4
|
-
import { useSizeProp, paginationProps, paginationEmits,
|
|
5
|
-
import { defineComponent, computed, resolveComponent,
|
|
4
|
+
import { useSizeProp, paginationProps, paginationEmits, ElPagination, ElTable } from 'element-plus';
|
|
5
|
+
import { defineComponent, computed, resolveComponent, openBlock, createBlock, withCtx, createVNode, mergeProps, toHandlers, createElementBlock, createCommentVNode } from 'vue';
|
|
6
6
|
import { pickObject } from '@vunk/core/shared/utils-object';
|
|
7
7
|
import { bindPropsFactory, onEmitsFactory } from '@vunk/core/shared/utils-vue';
|
|
8
8
|
import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
|
|
@@ -427,7 +427,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
427
427
|
/* STABLE */
|
|
428
428
|
}, 8, ["full"]);
|
|
429
429
|
}
|
|
430
|
-
var VkTablesV1 = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
430
|
+
var VkTablesV1 = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/vunk-plus/vunk-plus/packages/components/tables-v1/src/index.vue"]]);
|
|
431
431
|
|
|
432
432
|
var types = /*#__PURE__*/Object.freeze({
|
|
433
433
|
__proto__: null
|