hbt-debang-ui/README.md

29 lines
668 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# hbt-template-ui
## Project setup
```
npm install
```
### Compiles and hot-reloads for development
```
npm run serve
```
### 本框架采用ts与法 具体依赖vue-property-decorator
```
see vue-property-decorator用法详解 https://blog.csdn.net/weixin_44116302/article/details/111225763#PropSync_141
```
### 采用模块联邦
```
远程引用需要先在global.d.ts中注册
例:如需使用远程地图
1.在global.d.ts中注册 declare module 'common/map';
2.在页面中引用
@Component({
components:{MapComponent:()=>import("common/map") }
})
3.在html中应用 <MapComponent :id="'testID'" @onMapLoaded="getMap($event)"></MapComponent>
```