Fast application development stepped pit tour

Foreword

Time to try a new development framework is bound to encounter a variety of problems. For a start you may not be familiar with the document, resulting in configuration errors, or apiusing the wrong. Of course, the development of the framework when we can not confirm there is no problem, if there is bug. So in some cases wrong, we might continue to doubt yourself, doubt framework, the final suspect in life. This time it needs developers to play a selfless spirit, active discussion, contribute their records and fill the hole Tips for discussion reference. So here I first met record collection and his own pit, hoping to play a valuable role. We have different problems could be discussed together, facilitate the later developers.

Error-prone

1. Update rpk occur when the 版本号必须高于上一个版本error of

This problem occurs because the official fast application to configure the manifest.json property versionCodevalues to confirm the version of the update, the official requested each time the value added to our update requires manually increment 1. Many students mistakenly think versionName to modify the updated version, versionName should be one of those shown in the app store

2. Use the listcomponents caused by application闪退

According to documentation, list the following list-item components are configurable typeattribute to optimize the rendering, but with the same type attribute list-itemof dom结构must be the same, if there will be inconsistencies flash back, but do not see any error description, people find less than cause of the error, it is a headache. So we should try not to use inside ifand forinstruction, which can easily occur resulting in inconsistent application structure dom flash back.

3. In the protected public privateproperty defined in, in templatecan not get in

In the form of a variety of custom data in a fast application, respectively, can be defined in protected public private data inside, but there is an easily overlooked details in the official document is described only in a protected public private 页面级组件use in order, so, naturally did not get the data in a custom component, non-page-level assembly can not be used in the template.

4. Upload rpk, there have应用签名校验失败

Usually we use development and test time is npm run build packaged debugging command, which uses sign the following signatures and certificates debug runtime to package rpk. When we developed ready to upload, complete the following steps:

  1. Issued certificates and signatures generated: Run openssl req -newkey rsa:2048 -nodes -keyout private.pem -x509 -days 3650 -out certificate.pem
  2. In sign a new directory releasefolder, the resulting certificate.pem put into it and private.pem
  3. Run npm run releasegenerated at .signed.rpkthe end of the release for rpk

Official IDEbeen a key support for debugging, a key to generate a signature and other functions, that the above steps troublesome students can go to experience the experience, download link https: //www.quickapp.cn/docCe ...

Currently does not support local

  1. backgroundCurrently does not support network picture, so when the picture you want to use the network should consider the use of imagecomponents to replace
  2. Unable to canvasassembly into a picture stored locally
  3. swiperDoes not support the control direction, only support horizontal scroll
  4. does not support css overflowstyles can not be set or display beyond the scroll. Slide assembly provided with only listcomponent

But according to informed the students related development, these features have been developed and are improving and will soon be supported.

to sum up

Relatively speaking, as a new application of a new ecology, fast application there are still many deficiencies need to improve. But it does not require installation, and more quickly open the entrance is a certain advantage. In the foreseeable future, there will be more and more companies and developers to join them. This paper aims to summarize met by recording their own problems in the development process and solutions, easy access to newcomers.

Guess you like

Origin www.cnblogs.com/qianduanwriter/p/11823929.html