mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-09-03 05:41:47 +08:00
1.3 KiB
1.3 KiB
图标组件 API
Props 属性说明
属性名 | 类型 | 必填 | 描述 |
---|---|---|---|
loc |
ElementLocator |
是 | 图标定位符 |
图标比例固定,会自动根据传入的长宽缩放。
图标继承所有图形参数,参考此文档
图标列表
RollbackIcon
: 回退图标RetweenIcon
: 回收图标ViewMapIcon
: 浏览地图图标DanmakuIcon
: 弹幕图标ReplayIcon
: 回放图标numpadIcon
: 数字键盘图标PlayIcon
: 开始播放图标PauseIcon
: 暂停播放图标DoubleArrow
: 双箭头图标(向右)StepForward
: 单步向前图标SoundVolume
: 音量图标Fullscreen
: 全屏图标ExitFullscreen
: 退出全屏图标ArrowLeftTailless
: 无尾巴左箭头图标ArrowRightTailless
: 无尾巴右箭头图标ArrowUpTailless
: 无尾巴上箭头图标ArrowDownTailless
: 无尾巴下箭头图标
使用示例
import { defineComponent } from 'vue';
import { RollbackIcon } from '@user/client-modules';
export const MyCom = defineComponent(() => {
return () => (
<container>
<RollbackIcon loc={[32, 32, 64, 64]} />
</container>
);
});