鸿蒙原生加载动画,包含各种加载动画和提示弹窗
![demoimg](https://private-user-images.githubusercontent.com/20789312/291793640-50c58bc2-60f9-456a-810b-ca4414d34258.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI2NjQxNDksIm5iZiI6MTcyMjY2Mzg0OSwicGF0aCI6Ii8yMDc4OTMxMi8yOTE3OTM2NDAtNTBjNThiYzItNjBmOS00NTZhLTgxMGItY2E0NDE0ZDM0MjU4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODAzVDA1NDQwOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZhMjRmMTM2MzdkY2Y2ZTE5MDI4ZWJlN2RmMDI0MjNlNmY3NTkyNjc0NmEyZTZjMjIwNmQ5ZjYyNGMwNGJhMzMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.M4mFt4zndkXKnJb0xF101HqOcp8EYBt3eg7yDTyLX-0)
本项目基于ArkTs语言,api9
使用方法:
1、将ets文件夹下的YLLoadingHUD文件夹拖入项目
2、在需要使用的文件引入
import YLHud, { HUDClass, HUDMode } from '../YLLoadingHUD/YLLoadingHUD'
3、定义变量
@State hudItem:HUDClass = {
show:false,
mode:HUDMode.loading,
string:'loading'
}
4、添加组件
YLHud({hudItem:$hudItem})