@aicut/vue 0.4.0 → 0.4.1
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 +13 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -164,7 +164,14 @@ function onGenerate() {
|
|
|
164
164
|
ref="editor"
|
|
165
165
|
subject-image-url="/frames/subject.jpg"
|
|
166
166
|
@change="onChange"
|
|
167
|
-
|
|
167
|
+
>
|
|
168
|
+
<!-- Reset / Generate / save-preset / etc. go into the controls
|
|
169
|
+
column's footer slot — the only host-supplied surface the
|
|
170
|
+
library reserves space for. -->
|
|
171
|
+
<template #controlsFooter>
|
|
172
|
+
<button @click="editor?.api()?.reset()">Reset</button>
|
|
173
|
+
</template>
|
|
174
|
+
</LightingEditor>
|
|
168
175
|
<aside>
|
|
169
176
|
<textarea placeholder="Describe the mood…" />
|
|
170
177
|
<button @click="onGenerate">Generate</button>
|
|
@@ -173,7 +180,11 @@ function onGenerate() {
|
|
|
173
180
|
</template>
|
|
174
181
|
```
|
|
175
182
|
|
|
176
|
-
Props: `subjectImageUrl`, `defaultConfig`, `defaultView`, `theme`, `locale`. Events: `ready`, `change`.
|
|
183
|
+
Props: `subjectImageUrl`, `defaultConfig`, `defaultView`, `theme`, `locale`. Slots: `controlsFooter`. Events: `ready`, `change`.
|
|
184
|
+
|
|
185
|
+
Exposed API (`editor.api()`): `setConfig`, `getConfig`, `setSubjectImage`, `setView`, `setTheme`, `setLocale`, `reset`.
|
|
186
|
+
|
|
187
|
+
The library is intentionally scoped to the picker — Smart mode UI / Generate buttons / layout live in host code.
|
|
177
188
|
|
|
178
189
|
## Standalone `<Timeline>`
|
|
179
190
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aicut/vue",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
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.1"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"vue": "^3.4.0"
|