@aicut/vue 0.4.2 → 0.4.3
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/README.md +16 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -79,6 +79,22 @@ interface VideoEditorProps {
|
|
|
79
79
|
}
|
|
80
80
|
```
|
|
81
81
|
|
|
82
|
+
## Slots
|
|
83
|
+
|
|
84
|
+
Two named slots — `headerLeft` and `headerRight` — fill the optional header bar above the preview. Empty by default; the header collapses entirely when both are unused, so the default layout is identical to before they existed.
|
|
85
|
+
|
|
86
|
+
```vue
|
|
87
|
+
<VideoEditor :default-project="project">
|
|
88
|
+
<template #headerLeft>
|
|
89
|
+
<strong>Untitled project</strong>
|
|
90
|
+
</template>
|
|
91
|
+
<template #headerRight>
|
|
92
|
+
<button @click="share">Share</button>
|
|
93
|
+
<button @click="editor?.api()?.requestExport()">Export</button>
|
|
94
|
+
</template>
|
|
95
|
+
</VideoEditor>
|
|
96
|
+
```
|
|
97
|
+
|
|
82
98
|
## Events
|
|
83
99
|
|
|
84
100
|
```ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aicut/vue",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "Vue 3 wrapper for the AiCut video editor + lighting picker — thin declarative shells over @aicut/core.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "ziqiang <ziqiangytu@gmail.com>",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"README.md"
|
|
61
61
|
],
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@aicut/core": "0.4.
|
|
63
|
+
"@aicut/core": "0.4.3"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"vue": "^3.4.0"
|