
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
miox-components
Advanced tools
native components introdution.
布局组件,用来创建webview上中下布局,使用flex实现。
<appview>...</appview>
属性
blank {Boolean} 用于适配头部点亮条高度
<appview blank>...</appview>
horizontal {Boolean} 横向布局左中右
<appview horizontal>...</appview>
子标签
appview-head 头部区域appview-body 中间区域appview-foot 脚部区域代码
<appview>
<appview-head>Header</appview-head>
<appview-body>Body</appview-body>
<appview-foot>Footer</appview-foot>
</appview>
顶部导航条组件,用来头部左中右布局,或者更佳灵活的多布局
<navgation>...</navgation>
子标签
navgation-item 子项,用来碎片化头部布局子项属性
width 宽度。left 居左。center 居中。right 居右。代码
<navgation>
<navgation-item left>Left</navgation-item>
<navgation-item center>Center</navgation-item>
<navgation-item right>Right</navgation-item>
</navgation>
列表布局组件。
布局组,属性如下:
border-color 边框颜色每组布局的最外层包裹,属性如下:
linked {Boolean} 出现右箭头,表示可跳转到链接border-color 边框颜色left 子项padding-left的值子项
cell-head cell左边布局cell-body cell中间布局cell-foot cell右边布局代码
<cells>
<cell>
<cell-head><img src="..." /></cell-head>
<cell-body>我的日记本</cell-body>
<cell-foot>16</cell-foot>
</cell>
<cell linked>
<cell-head><img src="..." /></cell-head>
<cell-body>每天日程</cell-body>
<cell-foot>365</cell-foot>
</cell>
...
</cells>
面板布局
属性
border-color 边框颜色子项
panel-head 头部布局panel-body 中部布局panel-foot 底部布局属性
linked 表示可跳转链接属性
linked 表示可跳转链接代码
<panel>
<panel-head linked>Title</panel-head>
<panel-body>
<img src="..." />
<p>...</p>
</panel-head>
<panel-foot>
<cell linked>
<cell-head><img src="..." /></cell-head>
<cell-body>我的日记本</cell-body>
<cell-foot>16</cell-foot>
</cell>
<panel-foot>
</panel>
一个自动按宽高比例布局的组件
属性
ratio 百分比width 宽度align 文字模式代码
<aspect ratio="200%" align="center" width="50%">...</aspect>
用于快速编写flex容器的组件,通过flex容器组件,你可以快速设置flex的各种属性,无需关心它的兼容写法
属性
flex flex属性 flex-grow flex-shrink flex-basis 组成的速记属性direction 容器内项目的方向justify 容器内的各项没有占用主轴上所有可用的空间时对齐容器内的各项(水平)。alignItems 容器内的各项的对齐方式alignContent 在弹性容器内的各项没有占用交叉轴上所有可用的空间时对齐容器内的各项(垂直)。wrap 灵活项目是否拆行或拆列。范围
flex 同CSS写法 如'0 0 auto'direction row | column | row-reverse | column-reversejustify start | end | between | center | aroundalignItems start | end | between | center | aroundalignContent start | end | between | center | aroundwrap wrap | nowrap | wrap-reverse<flex class="test-dice" justify="between" direction="column">
<flex justify="start" align-items="start">
<flex-item class="test-dice-pot "></flex-item>
</flex>
<flex justify="center" align-items="center">
<flex-item class="test-dice-pot "></flex-item>
</flex>
<flex justify="end" align-items="end">
<flex-item class="test-dice-pot "></flex-item>
</flex>
</flex>
FAQs
components
We found that miox-components demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.