@vunk/plus 1.1.4 → 1.2.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/components/SendOutlined.mjs +1337 -0
- package/components/avatar/index.d.ts +4 -0
- package/components/avatar/index.mjs +49 -0
- package/components/avatar/src/ctx.d.ts +18 -0
- package/components/avatar/src/index.vue.d.ts +180 -0
- package/components/avatar/src/types.d.ts +1 -0
- package/components/monaco-environment/index.mjs +10 -10
- package/components/recorder-button/index.css +72 -0
- package/components/recorder-button/index.d.ts +4 -0
- package/components/recorder-button/index.mjs +319 -0
- package/components/recorder-button/src/ctx.d.ts +19 -0
- package/components/recorder-button/src/index.vue.d.ts +309 -0
- package/components/recorder-button/src/speech-to-text.d.ts +1 -0
- package/components/recorder-button/src/types.d.ts +6 -0
- package/components/sender/index.css +33 -0
- package/components/sender/index.d.ts +4 -0
- package/components/sender/index.mjs +301 -0
- package/components/sender/src/SenderHeader.vue.d.ts +270 -0
- package/components/sender/src/ctx.d.ts +38 -0
- package/components/sender/src/index.vue.d.ts +732 -0
- package/components/sender/src/types.d.ts +1 -0
- package/components/speech-button/index.css +10 -0
- package/components/speech-button/index.d.ts +4 -0
- package/components/speech-button/index.mjs +164 -0
- 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/src/ctx.d.ts +4 -4
- package/components/table-columns/src/el-ctx.d.ts +5 -5
- package/components/table-columns/src/index.vue.d.ts +21 -21
- package/components/tables-v1/index.mjs +6 -7
- package/components/tables-v1/src/ctx.d.ts +27 -27
- package/components/tables-v1/src/el-ctx.d.ts +12 -12
- package/components/tables-v1/src/index.vue.d.ts +103 -103
- package/components/tables-v1/src/types.d.ts +2 -2
- package/components/tables-v1-checkbox/src/ctx.d.ts +26 -25
- package/components/tables-v1-checkbox/src/index.vue.d.ts +182 -170
- package/components/vditor/src/index.vue.d.ts +5 -5
- package/composables/recorder/index.d.ts +15 -0
- package/composables/recorder/index.mjs +14479 -0
- package/index.css +118 -0
- package/package.json +30 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { defineComponent, createVNode, createTextVNode } from 'vue';
|
|
2
|
+
import { useRecorder } from '@vunk/plus/composables/recorder';
|
|
3
|
+
import { Button } from 'ant-design-vue';
|
|
4
|
+
import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
|
|
5
|
+
import { A as AudioMutedOutlined, b as AudioOutlined } from '../SendOutlined.mjs';
|
|
6
|
+
|
|
7
|
+
const props = {
|
|
8
|
+
disabled: {
|
|
9
|
+
type: Boolean,
|
|
10
|
+
default: false
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
const emits = {
|
|
14
|
+
stop: (_) => true,
|
|
15
|
+
start: null
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
const SIZE$1 = 1e3;
|
|
19
|
+
const STROKE_WIDTH = 50;
|
|
20
|
+
const CIRCLE_RADIUS = 200;
|
|
21
|
+
var _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
22
|
+
name: "AXSenderLoadingIcon",
|
|
23
|
+
setup() {
|
|
24
|
+
return () => {
|
|
25
|
+
return createVNode("svg", {
|
|
26
|
+
"color": "currentColor",
|
|
27
|
+
"viewBox": `0 0 ${SIZE$1} ${SIZE$1}`,
|
|
28
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
29
|
+
"xmlnsXlink": "http://www.w3.org/1999/xlink"
|
|
30
|
+
}, [createVNode("title", null, [createTextVNode("Speech Loading")]), createVNode("circle", {
|
|
31
|
+
"cx": SIZE$1 / 2,
|
|
32
|
+
"cy": SIZE$1 / 2,
|
|
33
|
+
"r": CIRCLE_RADIUS,
|
|
34
|
+
"fill": "none",
|
|
35
|
+
"stroke": "currentColor",
|
|
36
|
+
"stroke-width": STROKE_WIDTH,
|
|
37
|
+
"stroke-linecap": "round",
|
|
38
|
+
"stroke-dasharray": `${Math.PI * CIRCLE_RADIUS * 0.75} ${Math.PI * CIRCLE_RADIUS * 0.25}`
|
|
39
|
+
}, [createVNode("animateTransform", {
|
|
40
|
+
"attributeName": "transform",
|
|
41
|
+
"type": "rotate",
|
|
42
|
+
"from": `0 ${SIZE$1 / 2} ${SIZE$1 / 2}`,
|
|
43
|
+
"to": `360 ${SIZE$1 / 2} ${SIZE$1 / 2}`,
|
|
44
|
+
"dur": "1s",
|
|
45
|
+
"repeatCount": "indefinite"
|
|
46
|
+
}, null)])]);
|
|
47
|
+
};
|
|
48
|
+
}
|
|
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
|
+
|
|
53
|
+
const SIZE = 1e3;
|
|
54
|
+
const COUNT = 4;
|
|
55
|
+
const RECT_WIDTH = 140;
|
|
56
|
+
const RECT_RADIUS = RECT_WIDTH / 2;
|
|
57
|
+
const RECT_HEIGHT_MIN = 250;
|
|
58
|
+
const RECT_HEIGHT_MAX = 500;
|
|
59
|
+
const DURATION = 0.8;
|
|
60
|
+
var _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
61
|
+
name: "AXSenderRecordingIcon",
|
|
62
|
+
setup() {
|
|
63
|
+
return () => {
|
|
64
|
+
return createVNode("svg", {
|
|
65
|
+
"color": "currentColor",
|
|
66
|
+
"viewBox": `0 0 ${SIZE} ${SIZE}`,
|
|
67
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
68
|
+
"xmlnsXlink": "http://www.w3.org/1999/xlink"
|
|
69
|
+
}, [createVNode("title", null, [createTextVNode("Speech Recording")]), Array.from({
|
|
70
|
+
length: COUNT
|
|
71
|
+
}).map((_, index) => {
|
|
72
|
+
const dest = (SIZE - RECT_WIDTH * COUNT) / (COUNT - 1);
|
|
73
|
+
const x = index * (dest + RECT_WIDTH);
|
|
74
|
+
const yMin = SIZE / 2 - RECT_HEIGHT_MIN / 2;
|
|
75
|
+
const yMax = SIZE / 2 - RECT_HEIGHT_MAX / 2;
|
|
76
|
+
return createVNode("rect", {
|
|
77
|
+
"fill": "currentColor",
|
|
78
|
+
"rx": RECT_RADIUS,
|
|
79
|
+
"ry": RECT_RADIUS,
|
|
80
|
+
"height": RECT_HEIGHT_MIN,
|
|
81
|
+
"width": RECT_WIDTH,
|
|
82
|
+
"x": x,
|
|
83
|
+
"y": yMin,
|
|
84
|
+
"key": index
|
|
85
|
+
}, [createVNode("animate", {
|
|
86
|
+
"attributeName": "height",
|
|
87
|
+
"values": `${RECT_HEIGHT_MIN}; ${RECT_HEIGHT_MAX}; ${RECT_HEIGHT_MIN}`,
|
|
88
|
+
"keyTimes": "0; 0.5; 1",
|
|
89
|
+
"dur": `${DURATION}s`,
|
|
90
|
+
"begin": `${DURATION / COUNT * index}s`,
|
|
91
|
+
"repeatCount": "indefinite"
|
|
92
|
+
}, null), createVNode("animate", {
|
|
93
|
+
"attributeName": "y",
|
|
94
|
+
"values": `${yMin}; ${yMax}; ${yMin}`,
|
|
95
|
+
"keyTimes": "0; 0.5; 1",
|
|
96
|
+
"dur": `${DURATION}s`,
|
|
97
|
+
"begin": `${DURATION / COUNT * index}s`,
|
|
98
|
+
"repeatCount": "indefinite"
|
|
99
|
+
}, null)]);
|
|
100
|
+
})]);
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
});
|
|
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
|
+
|
|
107
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
108
|
+
name: "VkSpeechButton",
|
|
109
|
+
components: {
|
|
110
|
+
RecordingIcon
|
|
111
|
+
},
|
|
112
|
+
props,
|
|
113
|
+
emits,
|
|
114
|
+
setup(props2, {
|
|
115
|
+
emit
|
|
116
|
+
}) {
|
|
117
|
+
const {
|
|
118
|
+
openOrStart,
|
|
119
|
+
recording,
|
|
120
|
+
stop,
|
|
121
|
+
opening
|
|
122
|
+
} = useRecorder();
|
|
123
|
+
const handleClick = () => {
|
|
124
|
+
if (props2.disabled || opening.value) return;
|
|
125
|
+
if (recording.value) {
|
|
126
|
+
stop().then(blob => {
|
|
127
|
+
emit("stop", blob);
|
|
128
|
+
});
|
|
129
|
+
} else {
|
|
130
|
+
openOrStart().then(v => {
|
|
131
|
+
if (v) emit("start");
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
const iconRender = () => {
|
|
136
|
+
if (props2.disabled) return createVNode(AudioMutedOutlined, null, null);
|
|
137
|
+
if (opening.value) return createVNode(LoadingIcon, null, null);
|
|
138
|
+
if (recording.value) {
|
|
139
|
+
return createVNode(RecordingIcon, {
|
|
140
|
+
"class": "vk-speech-button-recording-icon"
|
|
141
|
+
}, null);
|
|
142
|
+
}
|
|
143
|
+
return createVNode(AudioOutlined, null, null);
|
|
144
|
+
};
|
|
145
|
+
return () => createVNode(Button, {
|
|
146
|
+
"onClick": handleClick,
|
|
147
|
+
"class": "vk-speech-button"
|
|
148
|
+
}, {
|
|
149
|
+
icon: iconRender
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
});
|
|
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
|
+
|
|
156
|
+
var types = /*#__PURE__*/Object.freeze({
|
|
157
|
+
__proto__: null
|
|
158
|
+
});
|
|
159
|
+
|
|
160
|
+
VkSpeechButton.install = (app) => {
|
|
161
|
+
app.component(VkSpeechButton.name || "VkSpeechButton", VkSpeechButton);
|
|
162
|
+
};
|
|
163
|
+
|
|
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: any;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10
|
+
disabled: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
}>> & Readonly<{
|
|
15
|
+
onStop?: (_: Blob) => any;
|
|
16
|
+
onStart?: (...args: any[] | unknown[]) => any;
|
|
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 {};
|
|
@@ -15,11 +15,11 @@ export declare const props: {
|
|
|
15
15
|
property: StringConstructor;
|
|
16
16
|
prop: StringConstructor;
|
|
17
17
|
width: {
|
|
18
|
-
type: (
|
|
18
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
19
19
|
default: string;
|
|
20
20
|
};
|
|
21
21
|
minWidth: {
|
|
22
|
-
type: (
|
|
22
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
23
23
|
default: string;
|
|
24
24
|
};
|
|
25
25
|
renderHeader: PropType<(data: {
|
|
@@ -29,7 +29,7 @@ export declare const props: {
|
|
|
29
29
|
[key: string]: any;
|
|
30
30
|
}>>;
|
|
31
31
|
sortable: {
|
|
32
|
-
type: (
|
|
32
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
33
33
|
default: boolean;
|
|
34
34
|
};
|
|
35
35
|
sortMethod: PropType<(a: any, b: any) => number>;
|
|
@@ -43,7 +43,7 @@ export declare const props: {
|
|
|
43
43
|
headerAlign: StringConstructor;
|
|
44
44
|
showTooltipWhenOverflow: BooleanConstructor;
|
|
45
45
|
showOverflowTooltip: BooleanConstructor;
|
|
46
|
-
fixed: (
|
|
46
|
+
fixed: (BooleanConstructor | StringConstructor)[];
|
|
47
47
|
formatter: PropType<(row: any, column: import("element-plus").TableColumnCtx<any>, cellValue: any, index: number) => string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
48
48
|
[key: string]: any;
|
|
49
49
|
}>>;
|
|
@@ -11,11 +11,11 @@ export declare const tableColumnProps: {
|
|
|
11
11
|
property: StringConstructor;
|
|
12
12
|
prop: StringConstructor;
|
|
13
13
|
width: {
|
|
14
|
-
type: (
|
|
14
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
15
15
|
default: string;
|
|
16
16
|
};
|
|
17
17
|
minWidth: {
|
|
18
|
-
type: (
|
|
18
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
19
19
|
default: string;
|
|
20
20
|
};
|
|
21
21
|
renderHeader: PropType<(data: {
|
|
@@ -25,7 +25,7 @@ export declare const tableColumnProps: {
|
|
|
25
25
|
[key: string]: any;
|
|
26
26
|
}>>;
|
|
27
27
|
sortable: {
|
|
28
|
-
type: (
|
|
28
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
29
29
|
default: boolean;
|
|
30
30
|
};
|
|
31
31
|
sortMethod: PropType<(a: any, b: any) => number>;
|
|
@@ -39,7 +39,7 @@ export declare const tableColumnProps: {
|
|
|
39
39
|
headerAlign: StringConstructor;
|
|
40
40
|
showTooltipWhenOverflow: BooleanConstructor;
|
|
41
41
|
showOverflowTooltip: BooleanConstructor;
|
|
42
|
-
fixed: (
|
|
42
|
+
fixed: (BooleanConstructor | StringConstructor)[];
|
|
43
43
|
formatter: PropType<(row: any, column: TableColumnCtx<any>, cellValue: any, index: number) => string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
44
44
|
[key: string]: any;
|
|
45
45
|
}>>;
|
|
@@ -60,4 +60,4 @@ export declare const tableColumnProps: {
|
|
|
60
60
|
validator: (val: TableColumnCtx<unknown>['sortOrders']) => boolean;
|
|
61
61
|
};
|
|
62
62
|
};
|
|
63
|
-
export declare const createTableColumnBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"
|
|
63
|
+
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<"index", keyof T2> | Extract<"className", keyof T2> | Extract<"width", keyof T2> | Extract<"align", 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<"headerAlign", keyof T2> | Extract<"showOverflowTooltip", keyof T2> | Extract<"reserveSelection", keyof T2> | Extract<"filterPlacement", keyof T2> | Extract<"filterMultiple", keyof T2> | Extract<"showTooltipWhenOverflow", keyof T2>)[]>(propsArg: T2, excludes?: EX) => 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<"index", keyof T2>, KE> | Exclude<Extract<"className", keyof T2>, KE> | Exclude<Extract<"width", keyof T2>, KE> | Exclude<Extract<"align", 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<"headerAlign", 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> | Exclude<Extract<"showTooltipWhenOverflow", keyof T2>, KE> : Extract<"type", keyof T2> | Extract<"fixed", keyof T2> | Extract<"filters", keyof T2> | Extract<"label", keyof T2> | Extract<"index", keyof T2> | Extract<"className", keyof T2> | Extract<"width", keyof T2> | Extract<"align", 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<"headerAlign", keyof T2> | Extract<"showOverflowTooltip", keyof T2> | Extract<"reserveSelection", keyof T2> | Extract<"filterPlacement", keyof T2> | Extract<"filterMultiple", keyof T2> | Extract<"showTooltipWhenOverflow", keyof T2>]: { [k in Extract<"type", keyof T2> | Extract<"fixed", keyof T2> | Extract<"filters", keyof T2> | Extract<"label", keyof T2> | Extract<"index", keyof T2> | Extract<"className", keyof T2> | Extract<"width", keyof T2> | Extract<"align", 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<"headerAlign", keyof T2> | Extract<"showOverflowTooltip", keyof T2> | Extract<"reserveSelection", keyof T2> | Extract<"filterPlacement", keyof T2> | Extract<"filterMultiple", keyof T2> | Extract<"showTooltipWhenOverflow", keyof T2>]: T2[k]; }[P]; }>;
|
|
@@ -15,11 +15,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
15
15
|
property: StringConstructor;
|
|
16
16
|
prop: StringConstructor;
|
|
17
17
|
width: {
|
|
18
|
-
type: (
|
|
18
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
19
19
|
default: string;
|
|
20
20
|
};
|
|
21
21
|
minWidth: {
|
|
22
|
-
type: (
|
|
22
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
23
23
|
default: string;
|
|
24
24
|
};
|
|
25
25
|
renderHeader: import("vue").PropType<(data: {
|
|
@@ -29,7 +29,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
29
29
|
[key: string]: any;
|
|
30
30
|
}>>;
|
|
31
31
|
sortable: {
|
|
32
|
-
type: (
|
|
32
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
33
33
|
default: boolean;
|
|
34
34
|
};
|
|
35
35
|
sortMethod: import("vue").PropType<(a: any, b: any) => number>;
|
|
@@ -43,7 +43,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
43
43
|
headerAlign: StringConstructor;
|
|
44
44
|
showTooltipWhenOverflow: BooleanConstructor;
|
|
45
45
|
showOverflowTooltip: BooleanConstructor;
|
|
46
|
-
fixed: (
|
|
46
|
+
fixed: (BooleanConstructor | StringConstructor)[];
|
|
47
47
|
formatter: import("vue").PropType<(row: any, column: import("element-plus").TableColumnCtx<any>, cellValue: any, index: number) => string | VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
48
48
|
[key: string]: any;
|
|
49
49
|
}>>;
|
|
@@ -80,11 +80,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
80
80
|
property: StringConstructor;
|
|
81
81
|
prop: StringConstructor;
|
|
82
82
|
width: {
|
|
83
|
-
type: (
|
|
83
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
84
84
|
default: string;
|
|
85
85
|
};
|
|
86
86
|
minWidth: {
|
|
87
|
-
type: (
|
|
87
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
88
88
|
default: string;
|
|
89
89
|
};
|
|
90
90
|
renderHeader: import("vue").PropType<(data: {
|
|
@@ -94,7 +94,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
94
94
|
[key: string]: any;
|
|
95
95
|
}>>;
|
|
96
96
|
sortable: {
|
|
97
|
-
type: (
|
|
97
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
98
98
|
default: boolean;
|
|
99
99
|
};
|
|
100
100
|
sortMethod: import("vue").PropType<(a: any, b: any) => number>;
|
|
@@ -108,7 +108,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
108
108
|
headerAlign: StringConstructor;
|
|
109
109
|
showTooltipWhenOverflow: BooleanConstructor;
|
|
110
110
|
showOverflowTooltip: BooleanConstructor;
|
|
111
|
-
fixed: (
|
|
111
|
+
fixed: (BooleanConstructor | StringConstructor)[];
|
|
112
112
|
formatter: import("vue").PropType<(row: any, column: import("element-plus").TableColumnCtx<any>, cellValue: any, index: number) => string | VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
113
113
|
[key: string]: any;
|
|
114
114
|
}>>;
|
|
@@ -130,15 +130,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
130
130
|
};
|
|
131
131
|
}>> & Readonly<{}>, {
|
|
132
132
|
type: string;
|
|
133
|
-
|
|
133
|
+
source: Source<any>[];
|
|
134
134
|
width: string | number;
|
|
135
|
+
sortOrders: ("ascending" | "descending")[];
|
|
135
136
|
minWidth: string | number;
|
|
136
137
|
sortable: string | boolean;
|
|
137
138
|
resizable: boolean;
|
|
138
139
|
showOverflowTooltip: boolean;
|
|
139
140
|
reserveSelection: boolean;
|
|
140
141
|
filterMultiple: boolean;
|
|
141
|
-
source: Source<any>[];
|
|
142
142
|
showTooltipWhenOverflow: boolean;
|
|
143
143
|
}, {}, {
|
|
144
144
|
ElTableColumn: import("element-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
@@ -152,11 +152,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
152
152
|
property: StringConstructor;
|
|
153
153
|
prop: StringConstructor;
|
|
154
154
|
width: {
|
|
155
|
-
type: (
|
|
155
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
156
156
|
default: string;
|
|
157
157
|
};
|
|
158
158
|
minWidth: {
|
|
159
|
-
type: (
|
|
159
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
160
160
|
default: string;
|
|
161
161
|
};
|
|
162
162
|
renderHeader: import("vue").PropType<(data: {
|
|
@@ -166,7 +166,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
166
166
|
[key: string]: any;
|
|
167
167
|
}>>;
|
|
168
168
|
sortable: {
|
|
169
|
-
type: (
|
|
169
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
170
170
|
default: boolean;
|
|
171
171
|
};
|
|
172
172
|
sortMethod: import("vue").PropType<(a: any, b: any) => number>;
|
|
@@ -179,10 +179,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
179
179
|
align: StringConstructor;
|
|
180
180
|
headerAlign: StringConstructor;
|
|
181
181
|
showOverflowTooltip: {
|
|
182
|
-
type: import("vue").PropType<boolean | Partial<Pick<import("element-plus").ElTooltipProps, "
|
|
182
|
+
type: import("vue").PropType<boolean | Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "appendTo" | "popperClass" | "placement" | "showArrow" | "transition" | "effect" | "enterable" | "popperOptions" | "showAfter" | "hideAfter">>>;
|
|
183
183
|
default: undefined;
|
|
184
184
|
};
|
|
185
|
-
fixed: (
|
|
185
|
+
fixed: (BooleanConstructor | StringConstructor)[];
|
|
186
186
|
formatter: import("vue").PropType<(row: any, column: import("element-plus").TableColumnCtx<any>, cellValue: any, index: number) => string | VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
187
187
|
[key: string]: any;
|
|
188
188
|
}>>;
|
|
@@ -214,11 +214,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
214
214
|
property: StringConstructor;
|
|
215
215
|
prop: StringConstructor;
|
|
216
216
|
width: {
|
|
217
|
-
type: (
|
|
217
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
218
218
|
default: string;
|
|
219
219
|
};
|
|
220
220
|
minWidth: {
|
|
221
|
-
type: (
|
|
221
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
222
222
|
default: string;
|
|
223
223
|
};
|
|
224
224
|
renderHeader: import("vue").PropType<(data: {
|
|
@@ -228,7 +228,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
228
228
|
[key: string]: any;
|
|
229
229
|
}>>;
|
|
230
230
|
sortable: {
|
|
231
|
-
type: (
|
|
231
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
232
232
|
default: boolean;
|
|
233
233
|
};
|
|
234
234
|
sortMethod: import("vue").PropType<(a: any, b: any) => number>;
|
|
@@ -241,10 +241,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
241
241
|
align: StringConstructor;
|
|
242
242
|
headerAlign: StringConstructor;
|
|
243
243
|
showOverflowTooltip: {
|
|
244
|
-
type: import("vue").PropType<boolean | Partial<Pick<import("element-plus").ElTooltipProps, "
|
|
244
|
+
type: import("vue").PropType<boolean | Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "appendTo" | "popperClass" | "placement" | "showArrow" | "transition" | "effect" | "enterable" | "popperOptions" | "showAfter" | "hideAfter">>>;
|
|
245
245
|
default: undefined;
|
|
246
246
|
};
|
|
247
|
-
fixed: (
|
|
247
|
+
fixed: (BooleanConstructor | StringConstructor)[];
|
|
248
248
|
formatter: import("vue").PropType<(row: any, column: import("element-plus").TableColumnCtx<any>, cellValue: any, index: number) => string | VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
249
249
|
[key: string]: any;
|
|
250
250
|
}>>;
|
|
@@ -269,7 +269,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
269
269
|
type: string;
|
|
270
270
|
width: string | number;
|
|
271
271
|
minWidth: string | number;
|
|
272
|
-
showOverflowTooltip: boolean | Partial<Pick<import("element-plus").ElTooltipProps, "
|
|
272
|
+
showOverflowTooltip: boolean | Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "appendTo" | "popperClass" | "placement" | "showArrow" | "transition" | "effect" | "enterable" | "popperOptions" | "showAfter" | "hideAfter">>;
|
|
273
273
|
sortOrders: ("ascending" | "descending")[];
|
|
274
274
|
sortable: string | boolean;
|
|
275
275
|
resizable: boolean;
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
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
4
|
import { useSizeProp, paginationProps, paginationEmits, ElPagination, ElTable } from 'element-plus';
|
|
5
5
|
import { defineComponent, computed, resolveComponent, openBlock, createBlock, withCtx, createVNode, mergeProps, toHandlers, createElementBlock, createCommentVNode } from 'vue';
|
|
6
|
-
import { bindPropsFactory, onEmitsFactory } from '@vunk/core/shared/utils-vue';
|
|
7
6
|
import { pickObject } from '@vunk/core/shared/utils-object';
|
|
8
|
-
import {
|
|
7
|
+
import { bindPropsFactory, onEmitsFactory } from '@vunk/core/shared/utils-vue';
|
|
9
8
|
import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
|
|
10
9
|
|
|
11
10
|
const tableProps$1 = {
|
|
12
11
|
/**
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
* @description table data
|
|
13
|
+
*/
|
|
15
14
|
data: {
|
|
16
15
|
type: Array,
|
|
17
16
|
default: () => []
|
|
@@ -262,7 +261,7 @@ const props = {
|
|
|
262
261
|
default: 1
|
|
263
262
|
},
|
|
264
263
|
/**
|
|
265
|
-
* @description 表示偏移量 v-model:start 和 v-model:currentPage 二选一
|
|
264
|
+
* @description 表示偏移量 v-model:start 和 v-model:currentPage 二选一
|
|
266
265
|
*/
|
|
267
266
|
start: {
|
|
268
267
|
type: Number,
|
|
@@ -331,7 +330,7 @@ var _sfc_main = defineComponent({
|
|
|
331
330
|
const paginationOnEmits = createPaginationOnEmits(emit, [
|
|
332
331
|
"update:current-page"
|
|
333
332
|
]);
|
|
334
|
-
const columnsProps = _VkTableColumnsElCtx
|
|
333
|
+
const columnsProps = _VkTableColumnsElCtx.createTableColumnBindProps(props2);
|
|
335
334
|
const tableProps = createTableBindProps(props2);
|
|
336
335
|
const tableOnEmits = createElTableOnEmits(emit);
|
|
337
336
|
const { isMobile } = useElBreakpoints();
|