
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.
amis-layout
Advanced tools
爱速搭框架渲染器+设计器
npm i amis-layout
import {render as renderAmis} from 'amis';
import 'amis-layout';
import 'amis-layout/dist/style.css';
const App = (props) => {
return (
{
// 渲染
renderAmis({
type: 'app-layout',
preset: '3',
header: [
{
type: 'tpl',
tpl: '我的应用'
}
],
page: [
{
type: 'page',
body: [
{
type: 'tpl',
tpl: '我的页面'
}
]
}
]
})
}
)
}
import {render as renderAmis} from 'amis';
import 'amis-layout';
import 'amis-layout/dist/style.css';
const App = (props) => {
return (
{
// 渲染
renderAmis({
type: 'app-layout',
preset: '3',
supportExtraScript: true,
extraCss: [
{
url: 'https://127.0.0.1:5500/main.css'
},
{
url: 'https://127.0.0.1:5500/iconfont.css'
}
],
extraJs: [
{
url: 'https://127.0.0.1:5500/bundle.js',
callback: async function () {
// 派发渲染器事件
this.dispatchEvent('JS_LOAD_FINISH', {data: 'xxx'});
}
}
],
page: [
{
type: 'page',
body: [
{
type: 'tpl',
tpl: '我的页面'
}
]
}
]
})
}
)
}
参考 types.d.ts
。
FAQs
爱速搭框架渲染器+设计器
We found that amis-layout 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
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.