当前位置:网站首页>Getting started with harmonios
Getting started with harmonios
2022-07-19 05:02:00 【m0_ sixty-one million one hundred and sixty-nine thousand four 】
Catalog
- Download and install
- Real name authentication
- Real machine simulation
Catalog function
- Directory structure

- Main concern entry--》src--》main This file

- app.js Files are used for global JavaScript Logic and entire application lifecycle management .
- pages The directory is used to store all component pages .
- common Directory is used to store public resource files , such as : Media resources and JS file .
- i18n The directory is used to configure the content of resources in different language scenes , such as : Apply text entry , Path... Pictures, etc , Be careful i18n Is the development retention folder , Cannot rename .
- equipment

- When previewing , You cannot select a folder for , To select files inside the folder for preview
- Directory structure
File usage rules
- Application resources can be accessed through absolute path or relative path , The absolute path in this development framework is "/" start , The relative path is as follows "./" or "../" , The specific access rules are as follows :
- Reference code file , Relative paths are required , such as :../common/utils.js.
- Reference resource files , Absolute path is recommended . such as :/common/xxx.png.
- If the image path reference fails, there will be no error prompt of file search failure , It is recommended to use absolute path for file path encoding
- Tips : There is no automatic path completion prompt for absolute path input , have access to 「 Relative paths 」 Select the corresponding file , then , After removing the previous relative path, introduce .
- Data files import Import can only use relative paths , You can't use absolute paths , Using an absolute path will report an error .
chart Components
- For chart components , Used to render line graphs 、 Histogram 、 Gauge graph interface .

- step
- stay pages Create folder , contain index.hml,index.css,index.js Three files ( Be careful : These three files must be named in the same way as the folder ), Otherwise it will go wrong
- Configure the routing , stay config.json In this document .

- You can also create JSpage, There is no need to configure the routing
- When previewing a page , Be sure to open the page folder that currently needs to be previewed hml、css、js Any file .
- Switch pages for preview , There is no need to restart the previewer , Directly click the refresh button in the upper right corner , An error message appears .
- Preview error appears. After modification , Refresh invalid , You must restart the previewer to display , Click on the right side to collapse and then expand .
- For chart components , Used to render line graphs 、 Histogram 、 Gauge graph interface .
button Components
- placement Property to set the position relationship between the picture and text on the button

- justify-content Used to set or retrieve elastic box elements in the spindle ( The horizontal axis ) Alignment in the direction .
- stack( Container components )
- Stacking containers , The subcomponents are put on the stack in order , The latter one covers the former one . <stack class="stack-parent"> <div class="back-child bd-radius"></div> <div class="positioned-child bd-radius"></div> <div class="front-child bd-radius"></div> </stack>
- Use div when , It is arranged horizontally by default , Can be adjusted by flex-direction To change
- You can only have one page div, Others can only be included in the largest div Inside
- placement Property to set the position relationship between the picture and text on the button
边栏推荐
猜你喜欢

RestClient操作文档

浅聊链路追踪

Tidb performance analysis and optimization

Cve-2022-23131 ZABBIX SAML SSO authentication bypass vulnerability

UE plug-in electronicnodes 5.0.0/4.23-4.27

Sleuth getting started

MySQL takes the union of two query conditions and then queries

pygame-飞机大战1.0(步骤+窗口无响应问题)

Notes on Advanced Mathematics: selected exercises of Wu Yue

Implementation idea of log adding to database
随机推荐
毕设:基于Vue+Socket+Redis的分布式高并发防疫健康管理系统
Warriors of the Visual Studio, Assemble! (warriors of visual studio, assemble!) Original 19:40:00 on July 12, 2009 label: compilation /mic
sleuth入门
ThinkPHP official website tutorial
Swagger's pit
脱敏字段举例
POC——DVWA‘s SQL Injection
Database learning notes (I) retrieval data
Desensitization field example
ES文档操作
RestAPI
微服务高并发服务治理
Hyperlink implementation post submission
接口的参数返回封装类Result
md5 密码加密
3.RestClient查询文档
消息转换器(json)
知识图谱de构建与应用(五):知识推理
junit4和junit5区别
加密和解密





