daily-video-editor 0.0.3 → 0.0.5
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/clip-track/components/index.vue.d.ts +12 -2
- package/dist/clip-track/index.d.ts +1 -1
- package/dist/clip-track/stores/tracks.d.ts +15 -6
- package/dist/clip-track/types/config.d.ts +11 -4
- package/dist/editor/VideoComposeEditor.vue.d.ts +72 -38
- package/dist/editor/asset-panel/VideoComposeAssetPanel.vue.d.ts +0 -2
- package/dist/editor/asset-panel/VideoComposeClipCatalog.vue.d.ts +16 -3
- package/dist/editor/asset-panel/VideoComposeTextTemplateCatalog.vue.d.ts +16 -1
- package/dist/editor/index.d.ts +1 -1
- package/dist/editor/session/createComposeEditorState.d.ts +13 -3
- package/dist/editor/session/useComposeCatalog.d.ts +0 -1
- package/dist/editor/session/useComposeEditorSession.d.ts +159 -137
- package/dist/editor/session/videoComposeEditorExpose.d.ts +7 -1
- package/dist/editor/timeline/VideoComposeTimeline.vue.d.ts +24 -12
- package/dist/index.d.ts +1 -1
- package/dist/index.js +10051 -9958
- package/dist/style.css +1 -1
- package/dist/types/videoCompose.d.ts +13 -10
- package/package.json +1 -1
|
@@ -53,7 +53,17 @@ declare function importData(data: {
|
|
|
53
53
|
}): void;
|
|
54
54
|
declare function exportAsJSON(): string;
|
|
55
55
|
declare function importFromJSON(json: string): boolean;
|
|
56
|
-
|
|
56
|
+
/**
|
|
57
|
+
* 当前类型是否还能再建轨(无 max 配置则不限制)
|
|
58
|
+
* @param type - 轨道类型
|
|
59
|
+
*/
|
|
60
|
+
declare function canAddTrack(type: Track["type"]): boolean;
|
|
61
|
+
/**
|
|
62
|
+
* 添加轨道;达类型上限时拒绝,不写历史、不发事件
|
|
63
|
+
* @param track - 待添加轨道
|
|
64
|
+
* @returns 是否添加成功
|
|
65
|
+
*/
|
|
66
|
+
declare function addTrack(track: Track): boolean;
|
|
57
67
|
declare function removeTrack(trackId: string): void;
|
|
58
68
|
declare function updateTrack(trackId: string, updates: Partial<Track>): void;
|
|
59
69
|
declare function getTracks(): {
|
|
@@ -1690,6 +1700,7 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {
|
|
|
1690
1700
|
importData: typeof importData;
|
|
1691
1701
|
exportAsJSON: typeof exportAsJSON;
|
|
1692
1702
|
importFromJSON: typeof importFromJSON;
|
|
1703
|
+
canAddTrack: typeof canAddTrack;
|
|
1693
1704
|
addTrack: typeof addTrack;
|
|
1694
1705
|
removeTrack: typeof removeTrack;
|
|
1695
1706
|
updateTrack: typeof updateTrack;
|
|
@@ -1825,7 +1836,6 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {
|
|
|
1825
1836
|
playbackRates: number[];
|
|
1826
1837
|
trackControlWidth: number;
|
|
1827
1838
|
trackContextMenu: TrackContextMenuConfig;
|
|
1828
|
-
trackTypes: TrackTypeConfig;
|
|
1829
1839
|
clipConfigs: ClipTypeConfig;
|
|
1830
1840
|
showToolsBar: boolean;
|
|
1831
1841
|
enableMainTrackMode: boolean;
|
|
@@ -3,7 +3,7 @@ export { locales } from './types/config';
|
|
|
3
3
|
export { generateId } from './utils/helpers';
|
|
4
4
|
export type { RectConfig, MediaClip, SubtitleClip, TextClip, Clip, } from './types/clip';
|
|
5
5
|
export type { Track, TrackType } from './types/track';
|
|
6
|
-
export type { OperationButton, ClipTypeConfig, TrackContextMenuConfig, ClipContextMenuConfig, ThemeConfig, } from './types/config';
|
|
6
|
+
export type { OperationButton, ClipTypeConfig, TrackTypeConfig, TrackContextMenuConfig, ClipContextMenuConfig, ThemeConfig, } from './types/config';
|
|
7
7
|
/** VideoTrack importData / exportData 工程快照 */
|
|
8
8
|
export interface VideoTrackProjectData {
|
|
9
9
|
version: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Track, Clip, TrackType } from '../types';
|
|
1
|
+
import { Track, Clip, TrackType, TrackTypeConfig } from '../types';
|
|
2
2
|
export declare const useTracksStore: import('pinia').StoreDefinition<"tracks", Pick<{
|
|
3
3
|
tracks: import('vue').Ref<{
|
|
4
4
|
id: string;
|
|
@@ -1170,6 +1170,7 @@ export declare const useTracksStore: import('pinia').StoreDefinition<"tracks", P
|
|
|
1170
1170
|
})[];
|
|
1171
1171
|
operation: "copy" | "cut" | null;
|
|
1172
1172
|
}>;
|
|
1173
|
+
trackTypes: import('vue').Ref<TrackTypeConfig, TrackTypeConfig>;
|
|
1173
1174
|
mainTrack: import('vue').ComputedRef<{
|
|
1174
1175
|
id: string;
|
|
1175
1176
|
type: TrackType;
|
|
@@ -1762,7 +1763,9 @@ export declare const useTracksStore: import('pinia').StoreDefinition<"tracks", P
|
|
|
1762
1763
|
}[]>;
|
|
1763
1764
|
totalDuration: import('vue').ComputedRef<number>;
|
|
1764
1765
|
selectedClips: import('vue').ComputedRef<Clip[]>;
|
|
1765
|
-
|
|
1766
|
+
setTrackTypes: (config: TrackTypeConfig | undefined) => void;
|
|
1767
|
+
canAddTrack: (type: TrackType) => boolean;
|
|
1768
|
+
addTrack: (track: Track) => boolean;
|
|
1766
1769
|
addTrackAbove: (trackId: string, type: TrackType) => Track | null;
|
|
1767
1770
|
addTrackBelow: (trackId: string, type: TrackType) => Track | null;
|
|
1768
1771
|
removeTrack: (trackId: string) => void;
|
|
@@ -2108,7 +2111,7 @@ export declare const useTracksStore: import('pinia').StoreDefinition<"tracks", P
|
|
|
2108
2111
|
newDuration?: number;
|
|
2109
2112
|
};
|
|
2110
2113
|
calculateTrackDuration: (trimStart: number, trimEnd: number, playbackRate?: number) => number;
|
|
2111
|
-
}, "tracks" | "selectedClipIds" | "clipboard">, Pick<{
|
|
2114
|
+
}, "tracks" | "selectedClipIds" | "clipboard" | "trackTypes">, Pick<{
|
|
2112
2115
|
tracks: import('vue').Ref<{
|
|
2113
2116
|
id: string;
|
|
2114
2117
|
type: TrackType;
|
|
@@ -3279,6 +3282,7 @@ export declare const useTracksStore: import('pinia').StoreDefinition<"tracks", P
|
|
|
3279
3282
|
})[];
|
|
3280
3283
|
operation: "copy" | "cut" | null;
|
|
3281
3284
|
}>;
|
|
3285
|
+
trackTypes: import('vue').Ref<TrackTypeConfig, TrackTypeConfig>;
|
|
3282
3286
|
mainTrack: import('vue').ComputedRef<{
|
|
3283
3287
|
id: string;
|
|
3284
3288
|
type: TrackType;
|
|
@@ -3871,7 +3875,9 @@ export declare const useTracksStore: import('pinia').StoreDefinition<"tracks", P
|
|
|
3871
3875
|
}[]>;
|
|
3872
3876
|
totalDuration: import('vue').ComputedRef<number>;
|
|
3873
3877
|
selectedClips: import('vue').ComputedRef<Clip[]>;
|
|
3874
|
-
|
|
3878
|
+
setTrackTypes: (config: TrackTypeConfig | undefined) => void;
|
|
3879
|
+
canAddTrack: (type: TrackType) => boolean;
|
|
3880
|
+
addTrack: (track: Track) => boolean;
|
|
3875
3881
|
addTrackAbove: (trackId: string, type: TrackType) => Track | null;
|
|
3876
3882
|
addTrackBelow: (trackId: string, type: TrackType) => Track | null;
|
|
3877
3883
|
removeTrack: (trackId: string) => void;
|
|
@@ -5388,6 +5394,7 @@ export declare const useTracksStore: import('pinia').StoreDefinition<"tracks", P
|
|
|
5388
5394
|
})[];
|
|
5389
5395
|
operation: "copy" | "cut" | null;
|
|
5390
5396
|
}>;
|
|
5397
|
+
trackTypes: import('vue').Ref<TrackTypeConfig, TrackTypeConfig>;
|
|
5391
5398
|
mainTrack: import('vue').ComputedRef<{
|
|
5392
5399
|
id: string;
|
|
5393
5400
|
type: TrackType;
|
|
@@ -5980,7 +5987,9 @@ export declare const useTracksStore: import('pinia').StoreDefinition<"tracks", P
|
|
|
5980
5987
|
}[]>;
|
|
5981
5988
|
totalDuration: import('vue').ComputedRef<number>;
|
|
5982
5989
|
selectedClips: import('vue').ComputedRef<Clip[]>;
|
|
5983
|
-
|
|
5990
|
+
setTrackTypes: (config: TrackTypeConfig | undefined) => void;
|
|
5991
|
+
canAddTrack: (type: TrackType) => boolean;
|
|
5992
|
+
addTrack: (track: Track) => boolean;
|
|
5984
5993
|
addTrackAbove: (trackId: string, type: TrackType) => Track | null;
|
|
5985
5994
|
addTrackBelow: (trackId: string, type: TrackType) => Track | null;
|
|
5986
5995
|
removeTrack: (trackId: string) => void;
|
|
@@ -6326,4 +6335,4 @@ export declare const useTracksStore: import('pinia').StoreDefinition<"tracks", P
|
|
|
6326
6335
|
newDuration?: number;
|
|
6327
6336
|
};
|
|
6328
6337
|
calculateTrackDuration: (trimStart: number, trimEnd: number, playbackRate?: number) => number;
|
|
6329
|
-
}, "reset" | "addTrack" | "addTrackAbove" | "addTrackBelow" | "removeTrack" | "updateTrack" | "getTrackCountByType" | "setTracks" | "normalizeTracks" | "normalizeClipDuration" | "addClip" | "removeClip" | "removeClips" | "updateClip" | "moveClipToTrack" | "getClip" | "selectClip" | "toggleClipSelection" | "deselectClip" | "clearSelection" | "hasOverlap" | "cleanupEmptyTracks" | "copyClips" | "cutClips" | "pasteClips" | "hasClipboardContent" | "getClipboardContent" | "clearClipboard" | "splitClip" | "setClipPlaybackRate" | "getClipDurationAtRate" | "checkPlaybackRateCollision" | "calculateTrackDuration">>;
|
|
6338
|
+
}, "reset" | "setTrackTypes" | "canAddTrack" | "addTrack" | "addTrackAbove" | "addTrackBelow" | "removeTrack" | "updateTrack" | "getTrackCountByType" | "setTracks" | "normalizeTracks" | "normalizeClipDuration" | "addClip" | "removeClip" | "removeClips" | "updateClip" | "moveClipToTrack" | "getClip" | "selectClip" | "toggleClipSelection" | "deselectClip" | "clearSelection" | "hasOverlap" | "cleanupEmptyTracks" | "copyClips" | "cutClips" | "pasteClips" | "hasClipboardContent" | "getClipboardContent" | "clearClipboard" | "splitClip" | "setClipPlaybackRate" | "getClipDurationAtRate" | "checkPlaybackRateCollision" | "calculateTrackDuration">>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Component, FunctionalComponent } from 'vue';
|
|
2
2
|
export interface CustomButton {
|
|
3
|
-
type:
|
|
3
|
+
type: "custom";
|
|
4
4
|
key: string;
|
|
5
5
|
}
|
|
6
6
|
export interface OperationButtonConfig {
|
|
@@ -19,7 +19,7 @@ export interface OperationButtonConfig {
|
|
|
19
19
|
/** 自定义CSS类名 */
|
|
20
20
|
className?: string;
|
|
21
21
|
}
|
|
22
|
-
export type OperationButton =
|
|
22
|
+
export type OperationButton = "reset" | "undo" | "redo" | "split" | "delete" | CustomButton | OperationButtonConfig;
|
|
23
23
|
export interface ScaleConfigButtonConfig {
|
|
24
24
|
/** 按钮标识 */
|
|
25
25
|
key: string;
|
|
@@ -36,7 +36,14 @@ export interface ScaleConfigButtonConfig {
|
|
|
36
36
|
/** 自定义CSS类名 */
|
|
37
37
|
className?: string;
|
|
38
38
|
}
|
|
39
|
-
export type ScaleConfigButton =
|
|
39
|
+
export type ScaleConfigButton = "snap" | CustomButton | ScaleConfigButtonConfig;
|
|
40
|
+
/**
|
|
41
|
+
* {
|
|
42
|
+
video: { max: 5 },
|
|
43
|
+
audio: { max: 3 },
|
|
44
|
+
subtitle: { max: 2 },
|
|
45
|
+
}
|
|
46
|
+
*/
|
|
40
47
|
export interface TrackTypeConfig {
|
|
41
48
|
[key: string]: {
|
|
42
49
|
max: number;
|
|
@@ -82,7 +89,7 @@ export interface TrackContextMenuConfig {
|
|
|
82
89
|
enabled?: boolean;
|
|
83
90
|
}
|
|
84
91
|
export interface ClipContextMenuConfig {
|
|
85
|
-
commonItems?: Array<
|
|
92
|
+
commonItems?: Array<"copy" | "cut" | "delete" | ContextMenuItem>;
|
|
86
93
|
showCommonItems?: boolean;
|
|
87
94
|
byType?: {
|
|
88
95
|
[clipType: string]: ContextMenuItem[];
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Slot } from 'vue';
|
|
2
2
|
import { TextTemplateItem } from './shared/textTemplateCatalog';
|
|
3
3
|
import { ComposeCatalogUploadPayload, ComposeUploadAdapter } from './session/createComposeEditorState';
|
|
4
|
-
import {
|
|
4
|
+
import { TrackTypeConfig } from '../clip-track';
|
|
5
|
+
import { BgmItem, ComposeClip, ComposeSegmentClipAssets, ComposeSubtitleAsset, VideoComposeEditorModel } from '../types/videoCompose';
|
|
5
6
|
type __VLS_Props = {
|
|
6
7
|
/** 编辑器聚合状态(轨道真相源:modelValue.tracks) */
|
|
7
8
|
modelValue: VideoComposeEditorModel;
|
|
@@ -13,6 +14,8 @@ type __VLS_Props = {
|
|
|
13
14
|
audioAssets?: BgmItem[];
|
|
14
15
|
/** 侧栏音效种子 */
|
|
15
16
|
sfxAssets?: BgmItem[];
|
|
17
|
+
/** 侧栏字幕种子;同步进内部列表,不进 v-model */
|
|
18
|
+
subtitleAssets?: ComposeSubtitleAsset[];
|
|
16
19
|
/** 侧栏花字种子 */
|
|
17
20
|
textTemplates?: TextTemplateItem[];
|
|
18
21
|
/** 可选上传适配器(无 onRequestUpload* 时由 Editor 选文件并调用) */
|
|
@@ -29,10 +32,15 @@ type __VLS_Props = {
|
|
|
29
32
|
resolveMediaUrl?: (url: string) => Promise<string>;
|
|
30
33
|
/** 美颜 WASM / 模型根路径,默认 /algorithm/ */
|
|
31
34
|
algorithmBaseUrl?: string;
|
|
35
|
+
/**
|
|
36
|
+
* 各轨道类型数量上限;未传则使用 clip-track 组件默认。
|
|
37
|
+
* 某类型未出现在配置中视为不限制。
|
|
38
|
+
*/
|
|
39
|
+
trackTypes?: TrackTypeConfig;
|
|
32
40
|
};
|
|
33
41
|
declare function __VLS_template(): {
|
|
34
42
|
attrs: Partial<{}>;
|
|
35
|
-
slots: Partial<Record<NonNullable<"video-actions" | "audio-actions" | "subtitle-actions" | "fancy-actions" | "sfx-actions">, (_: {}) => any>>;
|
|
43
|
+
slots: Partial<Record<NonNullable<"video-actions" | "audio-actions" | "subtitle-actions" | "fancy-actions" | "sfx-actions">, (_: {}) => any>> & Partial<Record<NonNullable<"before-apply-video" | "before-apply-audio" | "before-apply-subtitle" | "before-apply-text">, (_: {}) => any>>;
|
|
36
44
|
refs: {
|
|
37
45
|
shellRef: HTMLDivElement;
|
|
38
46
|
playerRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
@@ -462,7 +470,7 @@ declare function __VLS_template(): {
|
|
|
462
470
|
startTime: number;
|
|
463
471
|
}) => any) | undefined;
|
|
464
472
|
"onDrop-subtitle-asset"?: ((payload: {
|
|
465
|
-
item:
|
|
473
|
+
item: ComposeSubtitleAsset;
|
|
466
474
|
startTime: number;
|
|
467
475
|
}) => any) | undefined;
|
|
468
476
|
"onDrop-text-template"?: ((payload: {
|
|
@@ -492,6 +500,11 @@ declare function __VLS_template(): {
|
|
|
492
500
|
text?: string;
|
|
493
501
|
startTime?: number;
|
|
494
502
|
durationSec?: number;
|
|
503
|
+
fontFamily?: string;
|
|
504
|
+
fontSize?: number;
|
|
505
|
+
color?: string;
|
|
506
|
+
bold?: boolean;
|
|
507
|
+
italic?: boolean;
|
|
495
508
|
}) => string;
|
|
496
509
|
addTextClip: (options: import('./timeline/VideoComposeTimeline.vue').AddTextClipOptions) => string;
|
|
497
510
|
selectClipById: (clipId: string) => void;
|
|
@@ -551,7 +564,7 @@ declare function __VLS_template(): {
|
|
|
551
564
|
startTime: number;
|
|
552
565
|
}) => any;
|
|
553
566
|
"drop-subtitle-asset": (payload: {
|
|
554
|
-
item:
|
|
567
|
+
item: ComposeSubtitleAsset;
|
|
555
568
|
startTime: number;
|
|
556
569
|
}) => any;
|
|
557
570
|
"drop-text-template": (payload: {
|
|
@@ -571,7 +584,7 @@ declare function __VLS_template(): {
|
|
|
571
584
|
$props: {
|
|
572
585
|
readonly operationButtons?: import('../clip-track').OperationButton[] | undefined;
|
|
573
586
|
readonly scaleConfigButtons?: import('../clip-track/types').ScaleConfigButton[] | undefined;
|
|
574
|
-
readonly trackTypes?:
|
|
587
|
+
readonly trackTypes?: TrackTypeConfig | undefined;
|
|
575
588
|
readonly clipConfigs?: import('../clip-track').ClipTypeConfig | undefined;
|
|
576
589
|
readonly showToolsBar?: boolean | undefined;
|
|
577
590
|
readonly showPlayback?: boolean | undefined;
|
|
@@ -773,12 +786,13 @@ declare function __VLS_template(): {
|
|
|
773
786
|
}) => void;
|
|
774
787
|
exportAsJSON: () => string;
|
|
775
788
|
importFromJSON: (json: string) => boolean;
|
|
776
|
-
|
|
789
|
+
canAddTrack: (type: import('../clip-track').Track["type"]) => boolean;
|
|
790
|
+
addTrack: (track: import('../clip-track').Track) => boolean;
|
|
777
791
|
removeTrack: (trackId: string) => void;
|
|
778
792
|
updateTrack: (trackId: string, updates: Partial<import('../clip-track').Track>) => void;
|
|
779
793
|
getTracks: () => {
|
|
780
794
|
id: string;
|
|
781
|
-
type: import('
|
|
795
|
+
type: import('../clip-track').TrackType;
|
|
782
796
|
name: string;
|
|
783
797
|
isMain?: boolean | undefined;
|
|
784
798
|
visible: boolean;
|
|
@@ -1073,7 +1087,7 @@ declare function __VLS_template(): {
|
|
|
1073
1087
|
}[];
|
|
1074
1088
|
getSortedTracks: () => {
|
|
1075
1089
|
id: string;
|
|
1076
|
-
type: import('
|
|
1090
|
+
type: import('../clip-track').TrackType;
|
|
1077
1091
|
name: string;
|
|
1078
1092
|
isMain?: boolean | undefined;
|
|
1079
1093
|
visible: boolean;
|
|
@@ -1368,7 +1382,7 @@ declare function __VLS_template(): {
|
|
|
1368
1382
|
}[];
|
|
1369
1383
|
getTrackById: (trackId: string) => {
|
|
1370
1384
|
id: string;
|
|
1371
|
-
type: import('
|
|
1385
|
+
type: import('../clip-track').TrackType;
|
|
1372
1386
|
name: string;
|
|
1373
1387
|
isMain?: boolean | undefined;
|
|
1374
1388
|
visible: boolean;
|
|
@@ -1663,7 +1677,7 @@ declare function __VLS_template(): {
|
|
|
1663
1677
|
} | undefined;
|
|
1664
1678
|
getMainTrack: () => {
|
|
1665
1679
|
id: string;
|
|
1666
|
-
type: import('
|
|
1680
|
+
type: import('../clip-track').TrackType;
|
|
1667
1681
|
name: string;
|
|
1668
1682
|
isMain?: boolean | undefined;
|
|
1669
1683
|
visible: boolean;
|
|
@@ -2065,7 +2079,6 @@ declare function __VLS_template(): {
|
|
|
2065
2079
|
playbackRates: number[];
|
|
2066
2080
|
trackControlWidth: number;
|
|
2067
2081
|
trackContextMenu: import('../clip-track').TrackContextMenuConfig;
|
|
2068
|
-
trackTypes: import('../clip-track/types').TrackTypeConfig;
|
|
2069
2082
|
clipConfigs: import('../clip-track').ClipTypeConfig;
|
|
2070
2083
|
showToolsBar: boolean;
|
|
2071
2084
|
enableMainTrackMode: boolean;
|
|
@@ -2108,7 +2121,6 @@ declare function __VLS_template(): {
|
|
|
2108
2121
|
playbackRates: number[];
|
|
2109
2122
|
trackControlWidth: number;
|
|
2110
2123
|
trackContextMenu: import('../clip-track').TrackContextMenuConfig;
|
|
2111
|
-
trackTypes: import('../clip-track/types').TrackTypeConfig;
|
|
2112
2124
|
clipConfigs: import('../clip-track').ClipTypeConfig;
|
|
2113
2125
|
showToolsBar: boolean;
|
|
2114
2126
|
enableMainTrackMode: boolean;
|
|
@@ -2158,7 +2170,7 @@ declare function __VLS_template(): {
|
|
|
2158
2170
|
onTrackContextMenuSelect?: ((key: string, track: import('../clip-track').Track, time: number) => any) | undefined;
|
|
2159
2171
|
onClipContextMenuSelect?: ((key: string, clip: any) => any) | undefined;
|
|
2160
2172
|
"onData:changed"?: (() => any) | undefined;
|
|
2161
|
-
}>, "zoomIn" | "zoomOut" | "reset" | "undo" | "redo" | "addTrack" | "removeTrack" | "updateTrack" | "addClip" | "removeClip" | "updateClip" | "selectClip" | "clearSelection" | "setClipPlaybackRate" | "getClipDurationAtRate" | "checkPlaybackRateCollision" | "isPlaying" | "play" | "pause" | "togglePlay" | "seekTo" | "setPlaybackRate" | "setScale" | "setScrollLeft" | "getCurrentTime" | ("minScale" | "maxScale" | "pixelsPerSecond" | "snapThreshold" | "operationButtons" | "scaleConfigButtons" | "locale" | "showPlayback" | "showScaleControl" | "playbackRates" | "trackControlWidth" | "trackContextMenu" | "
|
|
2173
|
+
}>, "zoomIn" | "zoomOut" | "reset" | "undo" | "redo" | "canAddTrack" | "addTrack" | "removeTrack" | "updateTrack" | "addClip" | "removeClip" | "updateClip" | "selectClip" | "clearSelection" | "setClipPlaybackRate" | "getClipDurationAtRate" | "checkPlaybackRateCollision" | "isPlaying" | "play" | "pause" | "togglePlay" | "seekTo" | "setPlaybackRate" | "setScale" | "setScrollLeft" | "getCurrentTime" | ("minScale" | "maxScale" | "pixelsPerSecond" | "snapThreshold" | "operationButtons" | "scaleConfigButtons" | "locale" | "showPlayback" | "showScaleControl" | "playbackRates" | "trackControlWidth" | "trackContextMenu" | "clipConfigs" | "showToolsBar" | "enableMainTrackMode" | "enableCrossTrackDrag" | "fps" | "defaultScale" | "enableSnap" | "clipContextMenu" | "theme") | "registerClipType" | "emitTransitionAdded" | "exportData" | "importData" | "exportAsJSON" | "importFromJSON" | "getTracks" | "getSortedTracks" | "getTrackById" | "getMainTrack" | "getClipById" | "moveClip" | "selectClips" | "getSelectedClips" | "getSelectedClipIds" | "getPlaybackRate" | "getDuration" | "getScale" | "getViewportWidth" | "getScrollLeft" | "disableSnap" | "isSnapEnabled" | "getHistoryState"> & {
|
|
2162
2174
|
reset: () => void;
|
|
2163
2175
|
registerClipType: (type: string, config: any) => void;
|
|
2164
2176
|
emitTransitionAdded: (transitionClip: any, beforeClipId: string, afterClipId: string) => void;
|
|
@@ -2178,12 +2190,13 @@ declare function __VLS_template(): {
|
|
|
2178
2190
|
}) => void;
|
|
2179
2191
|
exportAsJSON: () => string;
|
|
2180
2192
|
importFromJSON: (json: string) => boolean;
|
|
2181
|
-
|
|
2193
|
+
canAddTrack: (type: import('../clip-track').Track["type"]) => boolean;
|
|
2194
|
+
addTrack: (track: import('../clip-track').Track) => boolean;
|
|
2182
2195
|
removeTrack: (trackId: string) => void;
|
|
2183
2196
|
updateTrack: (trackId: string, updates: Partial<import('../clip-track').Track>) => void;
|
|
2184
2197
|
getTracks: () => {
|
|
2185
2198
|
id: string;
|
|
2186
|
-
type: import('
|
|
2199
|
+
type: import('../clip-track').TrackType;
|
|
2187
2200
|
name: string;
|
|
2188
2201
|
isMain?: boolean | undefined;
|
|
2189
2202
|
visible: boolean;
|
|
@@ -2478,7 +2491,7 @@ declare function __VLS_template(): {
|
|
|
2478
2491
|
}[];
|
|
2479
2492
|
getSortedTracks: () => {
|
|
2480
2493
|
id: string;
|
|
2481
|
-
type: import('
|
|
2494
|
+
type: import('../clip-track').TrackType;
|
|
2482
2495
|
name: string;
|
|
2483
2496
|
isMain?: boolean | undefined;
|
|
2484
2497
|
visible: boolean;
|
|
@@ -2773,7 +2786,7 @@ declare function __VLS_template(): {
|
|
|
2773
2786
|
}[];
|
|
2774
2787
|
getTrackById: (trackId: string) => {
|
|
2775
2788
|
id: string;
|
|
2776
|
-
type: import('
|
|
2789
|
+
type: import('../clip-track').TrackType;
|
|
2777
2790
|
name: string;
|
|
2778
2791
|
isMain?: boolean | undefined;
|
|
2779
2792
|
visible: boolean;
|
|
@@ -3068,7 +3081,7 @@ declare function __VLS_template(): {
|
|
|
3068
3081
|
} | undefined;
|
|
3069
3082
|
getMainTrack: () => {
|
|
3070
3083
|
id: string;
|
|
3071
|
-
type: import('
|
|
3084
|
+
type: import('../clip-track').TrackType;
|
|
3072
3085
|
name: string;
|
|
3073
3086
|
isMain?: boolean | undefined;
|
|
3074
3087
|
visible: boolean;
|
|
@@ -3433,7 +3446,7 @@ declare function __VLS_template(): {
|
|
|
3433
3446
|
'track-control'?(_: {
|
|
3434
3447
|
track: {
|
|
3435
3448
|
id: string;
|
|
3436
|
-
type: import('
|
|
3449
|
+
type: import('../clip-track').TrackType;
|
|
3437
3450
|
name: string;
|
|
3438
3451
|
isMain?: boolean | undefined;
|
|
3439
3452
|
visible: boolean;
|
|
@@ -3769,7 +3782,7 @@ declare function __VLS_template(): {
|
|
|
3769
3782
|
startTime: number;
|
|
3770
3783
|
}) => any) | undefined;
|
|
3771
3784
|
"onDrop-subtitle-asset"?: ((payload: {
|
|
3772
|
-
item:
|
|
3785
|
+
item: ComposeSubtitleAsset;
|
|
3773
3786
|
startTime: number;
|
|
3774
3787
|
}) => any) | undefined;
|
|
3775
3788
|
"onDrop-text-template"?: ((payload: {
|
|
@@ -3799,6 +3812,11 @@ declare function __VLS_template(): {
|
|
|
3799
3812
|
text?: string;
|
|
3800
3813
|
startTime?: number;
|
|
3801
3814
|
durationSec?: number;
|
|
3815
|
+
fontFamily?: string;
|
|
3816
|
+
fontSize?: number;
|
|
3817
|
+
color?: string;
|
|
3818
|
+
bold?: boolean;
|
|
3819
|
+
italic?: boolean;
|
|
3802
3820
|
}) => string;
|
|
3803
3821
|
addTextClip: (options: import('./timeline/VideoComposeTimeline.vue').AddTextClipOptions) => string;
|
|
3804
3822
|
selectClipById: (clipId: string) => void;
|
|
@@ -3851,18 +3869,24 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
3851
3869
|
exportComposePayload: () => import('../types/videoCompose').ComposeExportPayload;
|
|
3852
3870
|
getMainVideoClips: () => import('../types/videoCompose').VideoClipItem[];
|
|
3853
3871
|
requestUploadClip: () => void;
|
|
3872
|
+
getEditingClip: () => ComposeClip | null;
|
|
3873
|
+
getSelectedClips: () => ComposeClip[];
|
|
3854
3874
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3855
3875
|
ready: () => any;
|
|
3876
|
+
"toggle-like": (variant: ComposeSegmentClipAssets) => any;
|
|
3856
3877
|
"update:modelValue": (value: VideoComposeEditorModel) => any;
|
|
3857
3878
|
"remove-catalog-clip": (variant: ComposeSegmentClipAssets) => any;
|
|
3879
|
+
"selection-changed": (clips: ComposeClip[]) => any;
|
|
3858
3880
|
"video-uploaded": (payload: ComposeCatalogUploadPayload<ComposeSegmentClipAssets>) => any;
|
|
3859
3881
|
"audio-uploaded": (payload: ComposeCatalogUploadPayload<BgmItem>) => any;
|
|
3860
3882
|
"sfx-uploaded": (payload: ComposeCatalogUploadPayload<BgmItem>) => any;
|
|
3861
3883
|
"text-template-uploaded": (payload: ComposeCatalogUploadPayload<TextTemplateItem>) => any;
|
|
3862
3884
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
3863
3885
|
onReady?: (() => any) | undefined;
|
|
3886
|
+
"onToggle-like"?: ((variant: ComposeSegmentClipAssets) => any) | undefined;
|
|
3864
3887
|
"onUpdate:modelValue"?: ((value: VideoComposeEditorModel) => any) | undefined;
|
|
3865
3888
|
"onRemove-catalog-clip"?: ((variant: ComposeSegmentClipAssets) => any) | undefined;
|
|
3889
|
+
"onSelection-changed"?: ((clips: ComposeClip[]) => any) | undefined;
|
|
3866
3890
|
"onVideo-uploaded"?: ((payload: ComposeCatalogUploadPayload<ComposeSegmentClipAssets>) => any) | undefined;
|
|
3867
3891
|
"onAudio-uploaded"?: ((payload: ComposeCatalogUploadPayload<BgmItem>) => any) | undefined;
|
|
3868
3892
|
"onSfx-uploaded"?: ((payload: ComposeCatalogUploadPayload<BgmItem>) => any) | undefined;
|
|
@@ -4299,7 +4323,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
4299
4323
|
startTime: number;
|
|
4300
4324
|
}) => any) | undefined;
|
|
4301
4325
|
"onDrop-subtitle-asset"?: ((payload: {
|
|
4302
|
-
item:
|
|
4326
|
+
item: ComposeSubtitleAsset;
|
|
4303
4327
|
startTime: number;
|
|
4304
4328
|
}) => any) | undefined;
|
|
4305
4329
|
"onDrop-text-template"?: ((payload: {
|
|
@@ -4329,6 +4353,11 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
4329
4353
|
text?: string;
|
|
4330
4354
|
startTime?: number;
|
|
4331
4355
|
durationSec?: number;
|
|
4356
|
+
fontFamily?: string;
|
|
4357
|
+
fontSize?: number;
|
|
4358
|
+
color?: string;
|
|
4359
|
+
bold?: boolean;
|
|
4360
|
+
italic?: boolean;
|
|
4332
4361
|
}) => string;
|
|
4333
4362
|
addTextClip: (options: import('./timeline/VideoComposeTimeline.vue').AddTextClipOptions) => string;
|
|
4334
4363
|
selectClipById: (clipId: string) => void;
|
|
@@ -4388,7 +4417,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
4388
4417
|
startTime: number;
|
|
4389
4418
|
}) => any;
|
|
4390
4419
|
"drop-subtitle-asset": (payload: {
|
|
4391
|
-
item:
|
|
4420
|
+
item: ComposeSubtitleAsset;
|
|
4392
4421
|
startTime: number;
|
|
4393
4422
|
}) => any;
|
|
4394
4423
|
"drop-text-template": (payload: {
|
|
@@ -4408,7 +4437,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
4408
4437
|
$props: {
|
|
4409
4438
|
readonly operationButtons?: import('../clip-track').OperationButton[] | undefined;
|
|
4410
4439
|
readonly scaleConfigButtons?: import('../clip-track/types').ScaleConfigButton[] | undefined;
|
|
4411
|
-
readonly trackTypes?:
|
|
4440
|
+
readonly trackTypes?: TrackTypeConfig | undefined;
|
|
4412
4441
|
readonly clipConfigs?: import('../clip-track').ClipTypeConfig | undefined;
|
|
4413
4442
|
readonly showToolsBar?: boolean | undefined;
|
|
4414
4443
|
readonly showPlayback?: boolean | undefined;
|
|
@@ -4610,12 +4639,13 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
4610
4639
|
}) => void;
|
|
4611
4640
|
exportAsJSON: () => string;
|
|
4612
4641
|
importFromJSON: (json: string) => boolean;
|
|
4613
|
-
|
|
4642
|
+
canAddTrack: (type: import('../clip-track').Track["type"]) => boolean;
|
|
4643
|
+
addTrack: (track: import('../clip-track').Track) => boolean;
|
|
4614
4644
|
removeTrack: (trackId: string) => void;
|
|
4615
4645
|
updateTrack: (trackId: string, updates: Partial<import('../clip-track').Track>) => void;
|
|
4616
4646
|
getTracks: () => {
|
|
4617
4647
|
id: string;
|
|
4618
|
-
type: import('
|
|
4648
|
+
type: import('../clip-track').TrackType;
|
|
4619
4649
|
name: string;
|
|
4620
4650
|
isMain?: boolean | undefined;
|
|
4621
4651
|
visible: boolean;
|
|
@@ -4910,7 +4940,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
4910
4940
|
}[];
|
|
4911
4941
|
getSortedTracks: () => {
|
|
4912
4942
|
id: string;
|
|
4913
|
-
type: import('
|
|
4943
|
+
type: import('../clip-track').TrackType;
|
|
4914
4944
|
name: string;
|
|
4915
4945
|
isMain?: boolean | undefined;
|
|
4916
4946
|
visible: boolean;
|
|
@@ -5205,7 +5235,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
5205
5235
|
}[];
|
|
5206
5236
|
getTrackById: (trackId: string) => {
|
|
5207
5237
|
id: string;
|
|
5208
|
-
type: import('
|
|
5238
|
+
type: import('../clip-track').TrackType;
|
|
5209
5239
|
name: string;
|
|
5210
5240
|
isMain?: boolean | undefined;
|
|
5211
5241
|
visible: boolean;
|
|
@@ -5500,7 +5530,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
5500
5530
|
} | undefined;
|
|
5501
5531
|
getMainTrack: () => {
|
|
5502
5532
|
id: string;
|
|
5503
|
-
type: import('
|
|
5533
|
+
type: import('../clip-track').TrackType;
|
|
5504
5534
|
name: string;
|
|
5505
5535
|
isMain?: boolean | undefined;
|
|
5506
5536
|
visible: boolean;
|
|
@@ -5902,7 +5932,6 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
5902
5932
|
playbackRates: number[];
|
|
5903
5933
|
trackControlWidth: number;
|
|
5904
5934
|
trackContextMenu: import('../clip-track').TrackContextMenuConfig;
|
|
5905
|
-
trackTypes: import('../clip-track/types').TrackTypeConfig;
|
|
5906
5935
|
clipConfigs: import('../clip-track').ClipTypeConfig;
|
|
5907
5936
|
showToolsBar: boolean;
|
|
5908
5937
|
enableMainTrackMode: boolean;
|
|
@@ -5945,7 +5974,6 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
5945
5974
|
playbackRates: number[];
|
|
5946
5975
|
trackControlWidth: number;
|
|
5947
5976
|
trackContextMenu: import('../clip-track').TrackContextMenuConfig;
|
|
5948
|
-
trackTypes: import('../clip-track/types').TrackTypeConfig;
|
|
5949
5977
|
clipConfigs: import('../clip-track').ClipTypeConfig;
|
|
5950
5978
|
showToolsBar: boolean;
|
|
5951
5979
|
enableMainTrackMode: boolean;
|
|
@@ -5995,7 +6023,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
5995
6023
|
onTrackContextMenuSelect?: ((key: string, track: import('../clip-track').Track, time: number) => any) | undefined;
|
|
5996
6024
|
onClipContextMenuSelect?: ((key: string, clip: any) => any) | undefined;
|
|
5997
6025
|
"onData:changed"?: (() => any) | undefined;
|
|
5998
|
-
}>, "zoomIn" | "zoomOut" | "reset" | "undo" | "redo" | "addTrack" | "removeTrack" | "updateTrack" | "addClip" | "removeClip" | "updateClip" | "selectClip" | "clearSelection" | "setClipPlaybackRate" | "getClipDurationAtRate" | "checkPlaybackRateCollision" | "isPlaying" | "play" | "pause" | "togglePlay" | "seekTo" | "setPlaybackRate" | "setScale" | "setScrollLeft" | "getCurrentTime" | ("minScale" | "maxScale" | "pixelsPerSecond" | "snapThreshold" | "operationButtons" | "scaleConfigButtons" | "locale" | "showPlayback" | "showScaleControl" | "playbackRates" | "trackControlWidth" | "trackContextMenu" | "
|
|
6026
|
+
}>, "zoomIn" | "zoomOut" | "reset" | "undo" | "redo" | "canAddTrack" | "addTrack" | "removeTrack" | "updateTrack" | "addClip" | "removeClip" | "updateClip" | "selectClip" | "clearSelection" | "setClipPlaybackRate" | "getClipDurationAtRate" | "checkPlaybackRateCollision" | "isPlaying" | "play" | "pause" | "togglePlay" | "seekTo" | "setPlaybackRate" | "setScale" | "setScrollLeft" | "getCurrentTime" | ("minScale" | "maxScale" | "pixelsPerSecond" | "snapThreshold" | "operationButtons" | "scaleConfigButtons" | "locale" | "showPlayback" | "showScaleControl" | "playbackRates" | "trackControlWidth" | "trackContextMenu" | "clipConfigs" | "showToolsBar" | "enableMainTrackMode" | "enableCrossTrackDrag" | "fps" | "defaultScale" | "enableSnap" | "clipContextMenu" | "theme") | "registerClipType" | "emitTransitionAdded" | "exportData" | "importData" | "exportAsJSON" | "importFromJSON" | "getTracks" | "getSortedTracks" | "getTrackById" | "getMainTrack" | "getClipById" | "moveClip" | "selectClips" | "getSelectedClips" | "getSelectedClipIds" | "getPlaybackRate" | "getDuration" | "getScale" | "getViewportWidth" | "getScrollLeft" | "disableSnap" | "isSnapEnabled" | "getHistoryState"> & {
|
|
5999
6027
|
reset: () => void;
|
|
6000
6028
|
registerClipType: (type: string, config: any) => void;
|
|
6001
6029
|
emitTransitionAdded: (transitionClip: any, beforeClipId: string, afterClipId: string) => void;
|
|
@@ -6015,12 +6043,13 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
6015
6043
|
}) => void;
|
|
6016
6044
|
exportAsJSON: () => string;
|
|
6017
6045
|
importFromJSON: (json: string) => boolean;
|
|
6018
|
-
|
|
6046
|
+
canAddTrack: (type: import('../clip-track').Track["type"]) => boolean;
|
|
6047
|
+
addTrack: (track: import('../clip-track').Track) => boolean;
|
|
6019
6048
|
removeTrack: (trackId: string) => void;
|
|
6020
6049
|
updateTrack: (trackId: string, updates: Partial<import('../clip-track').Track>) => void;
|
|
6021
6050
|
getTracks: () => {
|
|
6022
6051
|
id: string;
|
|
6023
|
-
type: import('
|
|
6052
|
+
type: import('../clip-track').TrackType;
|
|
6024
6053
|
name: string;
|
|
6025
6054
|
isMain?: boolean | undefined;
|
|
6026
6055
|
visible: boolean;
|
|
@@ -6315,7 +6344,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
6315
6344
|
}[];
|
|
6316
6345
|
getSortedTracks: () => {
|
|
6317
6346
|
id: string;
|
|
6318
|
-
type: import('
|
|
6347
|
+
type: import('../clip-track').TrackType;
|
|
6319
6348
|
name: string;
|
|
6320
6349
|
isMain?: boolean | undefined;
|
|
6321
6350
|
visible: boolean;
|
|
@@ -6610,7 +6639,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
6610
6639
|
}[];
|
|
6611
6640
|
getTrackById: (trackId: string) => {
|
|
6612
6641
|
id: string;
|
|
6613
|
-
type: import('
|
|
6642
|
+
type: import('../clip-track').TrackType;
|
|
6614
6643
|
name: string;
|
|
6615
6644
|
isMain?: boolean | undefined;
|
|
6616
6645
|
visible: boolean;
|
|
@@ -6905,7 +6934,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
6905
6934
|
} | undefined;
|
|
6906
6935
|
getMainTrack: () => {
|
|
6907
6936
|
id: string;
|
|
6908
|
-
type: import('
|
|
6937
|
+
type: import('../clip-track').TrackType;
|
|
6909
6938
|
name: string;
|
|
6910
6939
|
isMain?: boolean | undefined;
|
|
6911
6940
|
visible: boolean;
|
|
@@ -7270,7 +7299,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
7270
7299
|
'track-control'?(_: {
|
|
7271
7300
|
track: {
|
|
7272
7301
|
id: string;
|
|
7273
|
-
type: import('
|
|
7302
|
+
type: import('../clip-track').TrackType;
|
|
7274
7303
|
name: string;
|
|
7275
7304
|
isMain?: boolean | undefined;
|
|
7276
7305
|
visible: boolean;
|
|
@@ -7606,7 +7635,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
7606
7635
|
startTime: number;
|
|
7607
7636
|
}) => any) | undefined;
|
|
7608
7637
|
"onDrop-subtitle-asset"?: ((payload: {
|
|
7609
|
-
item:
|
|
7638
|
+
item: ComposeSubtitleAsset;
|
|
7610
7639
|
startTime: number;
|
|
7611
7640
|
}) => any) | undefined;
|
|
7612
7641
|
"onDrop-text-template"?: ((payload: {
|
|
@@ -7636,6 +7665,11 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
7636
7665
|
text?: string;
|
|
7637
7666
|
startTime?: number;
|
|
7638
7667
|
durationSec?: number;
|
|
7668
|
+
fontFamily?: string;
|
|
7669
|
+
fontSize?: number;
|
|
7670
|
+
color?: string;
|
|
7671
|
+
bold?: boolean;
|
|
7672
|
+
italic?: boolean;
|
|
7639
7673
|
}) => string;
|
|
7640
7674
|
addTextClip: (options: import('./timeline/VideoComposeTimeline.vue').AddTextClipOptions) => string;
|
|
7641
7675
|
selectClipById: (clipId: string) => void;
|
|
@@ -3,8 +3,6 @@ import { TextTemplateItem } from '../shared/textTemplateCatalog';
|
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
/** 扁平视频素材 */
|
|
5
5
|
videoVariants?: ComposeSegmentClipAssets[];
|
|
6
|
-
/** 已喜欢媒体的匹配键 */
|
|
7
|
-
likedMediaKeys?: Set<string>;
|
|
8
6
|
/** 已在时间轴上的视频地址 */
|
|
9
7
|
timelineClipUrls?: Set<string>;
|
|
10
8
|
/** 正在预览的版本 id */
|
|
@@ -2,8 +2,6 @@ import { ComposeSegmentClipAssets } from '../../types/videoCompose';
|
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
/** 扁平视频素材(上传与生成统一卡片) */
|
|
4
4
|
variants: ComposeSegmentClipAssets[];
|
|
5
|
-
/** 已喜欢媒体的匹配键 */
|
|
6
|
-
likedKeys?: Set<string>;
|
|
7
5
|
/** 已在时间轴上的视频 URL 集合 */
|
|
8
6
|
timelineClipUrls?: Set<string>;
|
|
9
7
|
/** 当前主播放器预览中的版本 id */
|
|
@@ -11,7 +9,16 @@ type __VLS_Props = {
|
|
|
11
9
|
/** 只读:禁止拖入时间轴,已喜欢的心只展示 */
|
|
12
10
|
readonly?: boolean;
|
|
13
11
|
};
|
|
14
|
-
declare
|
|
12
|
+
declare function __VLS_template(): {
|
|
13
|
+
attrs: Partial<{}>;
|
|
14
|
+
slots: {
|
|
15
|
+
leading?(_: {}): any;
|
|
16
|
+
};
|
|
17
|
+
refs: {};
|
|
18
|
+
rootEl: HTMLDivElement;
|
|
19
|
+
};
|
|
20
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
21
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
22
|
preview: (variant: ComposeSegmentClipAssets) => any;
|
|
16
23
|
remove: (variant: ComposeSegmentClipAssets) => any;
|
|
17
24
|
"toggle-like": (variant: ComposeSegmentClipAssets) => any;
|
|
@@ -20,4 +27,10 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
20
27
|
onRemove?: ((variant: ComposeSegmentClipAssets) => any) | undefined;
|
|
21
28
|
"onToggle-like"?: ((variant: ComposeSegmentClipAssets) => any) | undefined;
|
|
22
29
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
30
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
23
31
|
export default _default;
|
|
32
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
33
|
+
new (): {
|
|
34
|
+
$slots: S;
|
|
35
|
+
};
|
|
36
|
+
};
|