Skip to content

Commit

Permalink
chore(mdeida): 优化注释
Browse files Browse the repository at this point in the history
  • Loading branch information
Sruimeng committed Sep 25, 2024
1 parent 0010c02 commit b0e5b9f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
9 changes: 4 additions & 5 deletions src/item/audio-component.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { ComponentData, DataPath } from '../components';
import type { ItemType } from '../type';
import type { BaseItem, EndBehavior } from './base-item';
import type { BaseItem } from './base-item';

/**
* 音频元素
Expand All @@ -11,10 +11,9 @@ export interface AudioItem extends BaseItem {
*/
type: ItemType.audio,
/**
* 音频元素渲染信息
* 音频元素基础属性
*/
content: AudioComponentData,
endBehavior: EndBehavior,
}

export interface AudioContentOptions {
Expand All @@ -40,11 +39,11 @@ export interface AudioContentOptions {
}

/**
* 图层组件属性
* 音频组件属性
*/
export interface AudioComponentData extends ComponentData {
/**
* 视频元素基础属性
* 音频元素基础属性
*/
options: AudioContentOptions,
}
4 changes: 2 additions & 2 deletions src/item/video-component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export interface VideoItem extends BaseItem {
*/
type: ItemType.video,
/**
* 图层元素渲染信息
* 视频元素渲染信息
*/
content: VideoComponentData,
endBehavior: EndBehavior,
Expand Down Expand Up @@ -46,7 +46,7 @@ export interface VideoContentOptions {
}

/**
* 图层组件属性
* 视频组件属性
*/
export interface VideoComponentData extends ComponentData {
/**
Expand Down

0 comments on commit b0e5b9f

Please sign in to comment.