easecut-react 1.1.3 → 1.1.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/README.md +18 -2
- package/dist/index.js +2818 -2766
- package/dist/styles.css +1 -1
- package/dist/types/editor/EaseCut.d.ts.map +1 -1
- package/dist/types/editor/components/FormDialog.d.ts +2 -2
- package/dist/types/editor/components/FormDialog.d.ts.map +1 -1
- package/dist/types/editor/components/PreviewPanel.d.ts +1 -3
- package/dist/types/editor/components/PreviewPanel.d.ts.map +1 -1
- package/dist/types/editor/components/TimelineToolbar.d.ts +1 -2
- package/dist/types/editor/components/TimelineToolbar.d.ts.map +1 -1
- package/dist/types/editor/components/ui/IconButton.d.ts +2 -2
- package/dist/types/editor/components/ui/IconButton.d.ts.map +1 -1
- package/dist/types/editor/theme-context.d.ts +4 -0
- package/dist/types/editor/theme-context.d.ts.map +1 -0
- package/dist/types/editor/theme-provider.d.ts +9 -0
- package/dist/types/editor/theme-provider.d.ts.map +1 -0
- package/dist/types/editor/timeline/TimelineClip.d.ts.map +1 -1
- package/dist/types/editor/timeline/TimelinePanel.d.ts +1 -2
- package/dist/types/editor/timeline/TimelinePanel.d.ts.map +1 -1
- package/dist/types/editor/timeline/TimelineTrimHandle.d.ts.map +1 -1
- package/dist/types/editor/types.d.ts +2 -0
- package/dist/types/editor/types.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<a href="https://underhear.github.io/EaseCut/"><img src="https://img.shields.io/badge/演示地址-https://underhear.github.io/EaseCut/-01ab85" alt="在线演示"></a>
|
|
9
9
|
</p>
|
|
10
10
|
<p align="center">
|
|
11
|
-
<a href="https://
|
|
11
|
+
<a href="https://github.com/UnderHear/EaseCut"><img src="https://img.shields.io/badge/Github-https://github.com/UnderHear/EaseCut-6543ae" alt="项目地址"></a>
|
|
12
12
|
</p>
|
|
13
13
|
|
|
14
14
|
<p align="center">
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
|
|
26
26
|
## 效果图
|
|
27
27
|
|
|
28
|
-
[
|
|
28
|
+
[体验地址](https://underhear.github.io/EaseCut/)
|
|
29
29
|
|
|
30
30
|
<table>
|
|
31
31
|
<tr>
|
|
@@ -61,6 +61,21 @@ export function App() {
|
|
|
61
61
|
|
|
62
62
|
好了。
|
|
63
63
|
|
|
64
|
+
## 明暗主题
|
|
65
|
+
|
|
66
|
+
`theme` 支持 `"light"` 和 `"dark"`,未传时默认使用深色主题。
|
|
67
|
+
|
|
68
|
+
```tsx
|
|
69
|
+
import { EaseCut } from "easecut-react";
|
|
70
|
+
import "easecut-react/styles.css";
|
|
71
|
+
|
|
72
|
+
export function App() {
|
|
73
|
+
return <EaseCut theme="light" />;
|
|
74
|
+
}
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
`theme` 是受控属性,更新它即可在运行时切换主题。
|
|
78
|
+
|
|
64
79
|
## 导入素材 & 导出视频 & 关闭编辑器
|
|
65
80
|
|
|
66
81
|
### 导入素材
|
|
@@ -131,6 +146,7 @@ export function App() {
|
|
|
131
146
|
- 问你的AI,它知道怎么做
|
|
132
147
|
- EaseCut\docs\npm-component-usage.md 有较为详细的使用说明
|
|
133
148
|
- 如果确实是EaseCut没做好,请提交Issues
|
|
149
|
+
- 发送邮件至2533643340@qq.com
|
|
134
150
|
|
|
135
151
|
**官方文档在制作路上...**
|
|
136
152
|
|