
Security News
PEP 810 Proposes Explicit Lazy Imports for Python 3.15
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
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 2,398 weekly downloads. As such, mini-ali-ui popularity was classified as 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
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.