Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
mini-ali-ui
Advanced tools
px
与 rpx
;$ npm install mini-ali-ui --save
同时,我们提供了 rpx 版本的 mini-ali-ui,如需要使用 rpx 作为单位的组件,可以通过下述方式进行安装:
$ npm install mini-ali-ui-rpx --save
在页面 json 中文件中进行注册,如 title 组件的注册如下所示:
{
"usingComponents": {
"title": "mini-ali-ui/es/title/index"
}
}
如安装的是 rpx 版本的 mini-ali-ui,那么在进行组件注册时,修改一下名称即可,方式如下:
{
"usingComponents": {
"title": "mini-ali-ui-rpx/es/title/index"
}
}
组件注册成功之后,具体的使用方式无差别。
在 axml 文件中进行调用:
<title
hasLine="true"
iconURL="https://t.alipayobjects.com/images/T1HHFgXXVeXXXXXXXX.png"
type="close"
onActionTap="titleClose"
>内部标题可关闭</title>
详细使用说明请参照官方文档使用自定义组件
对组件内部的文案进行梳理,将内部的文案提取后,并翻译。目前支持的语种如下:
默认为中文。
在小程序中如需要使用非中文语种时,需要在 app.js 中的 globalData
加入指定 key 和 value。
key | value |
---|---|
miniAliUiLang | ''、'en-US' |
miniAliUiLang
为空或者未定义,将作为以中文展示组件内部的默认文案。
App({
globalData: {
miniAliUiLang: 'en-US',
},
onLaunch() {},
});
如果你有好的意见或建议,欢迎给我们提 issue。
群号:30147295
1.4.1
FAQs
小程序版AntUI
The npm package mini-ali-ui receives a total of 40 weekly downloads. As such, mini-ali-ui popularity was classified as not popular.
We found that mini-ali-ui demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.