-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MiniApp Widget specification draft #11
base: main
Are you sure you want to change the base?
Changes from 3 commits
325ad99
7b29371
4c6a28a
ae3264c
652230a
036fe90
afa0d77
85026cc
237275e
077c006
23283de
e93c60d
4459717
fb64181
30bf2a2
6d4059e
18ffabf
ec5b4d1
c54aff7
7d741b0
66eff72
40ee16b
759ae16
58798b2
cc2146a
5d22d8f
f278df9
9aaa242
4ac70f3
a2c6b98
db37256
8c55eb8
63abc90
84fa806
16e04c5
b74b31d
31b913a
b52a5cf
491dfc7
98b8ff2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -92,6 +92,13 @@ <h3> | |||||
it) and are used to display key information to the user and respond to simple | ||||||
user actions, such as displaying the weather at the user's location, tracking | ||||||
user's current travel status and providing next actions .</p> | ||||||
|
||||||
<p its-locale-filter-list="zh-hans" lang="zh-hans">本标准的内容符合MiniApp Manifest、Packaging、Lifecycle和Addressing的标准要求,除此之外,还规定了MiniApp特有的生命周期事件,以及MiniApp widget与MiniApp或与宿主环境间进行互动交流的要求。</p> | ||||||
|
||||||
<p its-locale-filter-list="en" lang="en">This specification follows the specifications of MiniApp Manifest, Packaging, Lifecycle and Addressing. In addition, it defines the unique life cycle events of MiniApp and the requirements for the interaction between MiniApp widget and MiniApp or with the host environment.</p> | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
|
||||||
|
||||||
</section> | ||||||
|
||||||
<section id='terminology'> | ||||||
|
@@ -237,10 +244,10 @@ <h2> | |||||
|
||||||
<p its-locale-filter-list="zh-hans" lang="zh-hans">MiniApp widget 沿用 MiniApp page的<a href="https://w3c.github.io/miniapp-lifecycle/#pagestate-enum">PageState enum</a> | ||||||
和<a href="https://w3c.github.io/miniapp-lifecycle/#miniapp-page-lifecycle-interface-and-callbacks"> 生命周期接口及回调</a>, | ||||||
MiniApp widget 增加了 update 生命周期事件,具体描述在 6.4 MiniApp widget 更新过程处理。</p> | ||||||
MiniApp widget 增加了 update 生命周期事件,具体描述在 5.4 MiniApp widget 更新过程处理。</p> | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
<p its-locale-filter-list="en" lang="en">MiniApp widget follows the <a href="https://w3c.github.io/miniapp-lifecycle/#pagestate-enum">PageState enum</a> | ||||||
and <a href="https://w3c.github.io/miniapp-lifecycle/#miniapp-page-lifecycle-interface-and-callbacks">lifecycle | ||||||
interfaces and callbacks</a> of MiniApp page. The MiniApp widget adds the update lifecycle event, which is described in 6.4.</p> | ||||||
interfaces and callbacks</a> of MiniApp page. The MiniApp widget adds the update lifecycle event, which is described in 5.4.</p> | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
<section id='loading-process'> | ||||||
<h3> | ||||||
|
@@ -594,7 +601,7 @@ <h4> | |||||
</h4> | ||||||
|
||||||
<p its-locale-filter-list="zh-hans" lang="zh-hans">一些MiniApp Widget 的 UI components和API 可以通过属性和参数对文件进行访问,例如image 组件的的 src 属性:</p> | ||||||
<p its-locale-filter-list="en" lang="en">MiniApp Widget and MiniApp page can access files through the src attribute of the tag and the File API,Example of tag src attribute:</p> | ||||||
<p its-locale-filter-list="en" lang="en">UI components and API of some MiniApp widget can access files through properties and parameters, such as the src property of the image component:</p> | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
<pre class="example xml" title="Example: example of src attribute | src 属性示例"> | ||||||
<image src="platform://miniapp/foo/common/example.png" /> | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: remove blank space before the period: