forked from 77media/video-flow
Merge branch 'dev' of https://git.qikongjian.com/77media/video-flow into dev
This commit is contained in:
commit
2c88b8201b
@ -217,6 +217,7 @@ export function EditModal({
|
|||||||
<ShotTabContent
|
<ShotTabContent
|
||||||
currentSketchIndex={currentIndex}
|
currentSketchIndex={currentIndex}
|
||||||
roles={roles}
|
roles={roles}
|
||||||
|
onApply={handleApply}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
case '4':
|
case '4':
|
||||||
|
|||||||
@ -16,10 +16,11 @@ import { RoleEntity } from '@/app/service/domain/Entities';
|
|||||||
interface ShotTabContentProps {
|
interface ShotTabContentProps {
|
||||||
currentSketchIndex: number;
|
currentSketchIndex: number;
|
||||||
roles?: any[];
|
roles?: any[];
|
||||||
|
onApply: () => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const ShotTabContent = (props: ShotTabContentProps) => {
|
export const ShotTabContent = (props: ShotTabContentProps) => {
|
||||||
const { currentSketchIndex = 0, roles = [] } = props;
|
const { currentSketchIndex = 0, roles = [], onApply } = props;
|
||||||
const {
|
const {
|
||||||
loading,
|
loading,
|
||||||
shotData,
|
shotData,
|
||||||
@ -170,6 +171,7 @@ export const ShotTabContent = (props: ShotTabContentProps) => {
|
|||||||
const handleConfirmReplace = () => {
|
const handleConfirmReplace = () => {
|
||||||
applyRoleToSelectedShots(selectedLibaryRole);
|
applyRoleToSelectedShots(selectedLibaryRole);
|
||||||
setIsReplacePanelOpen(false);
|
setIsReplacePanelOpen(false);
|
||||||
|
onApply();
|
||||||
};
|
};
|
||||||
|
|
||||||
// 点击按钮重新生成
|
// 点击按钮重新生成
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user