
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.
binu 是一个 vue2.x 插件,用于快速构建页面的 布局、自定义模块集成、自定义场景、可视化展示集成等应用场景,可供技术人员与非技术人员快速迭代页面/场景。
npm install binu -D
main.js:
import "binu/bine.css" // 引入样式文件
import binu from "binu" // 引入插件
Vue.use(binu) // 全局注册插件
vue中使用:
epfm —— 自定义平台插件
1. 编辑模式下:
<template>
<div id="app">
<epfm @saveHandle="saveScene" />
</div>
</template>
<script>
export default {
name: 'app',
methods: {
saveScene(data) {
console.log(data) // 该data值为保存的场景数据,可以调接口保存
localStorage.setItem('myScene',JSON.stringify(data))
alert('已保存')
}
}
}
</script>
2. 展示模式下:
<template>
<div id="app">
<epfm @saveHandle="saveScene" :inputScene="scene" :isEdit="false" />
</div>
</template>
<script>
export default {
name: 'app',
data() {
return {
scene: null // 需要导入的场景数据(编辑模式下保存的数据),或通过接口方式获得
}
},
created() {
const data = JSON.parse(localStorage.getItem('myScene')); // 本示例自定义场景保存在浏览器本地
this.scene = data;
},
methods: {
saveScene(data) {
// 展示模式下,如果对重现的布局需要调整位置,仍可通过双击方式切换移动布局位置
// 通过组合键ctrl + s来再次保存场景
console.log(data)
}
}
}
</script>
qq:1204443652
email:13670042232@163.com
FAQs
This is an easier platfrom with custom component for vue.
The npm package binu receives a total of 4 weekly downloads. As such, binu popularity was classified as not popular.
We found that binu 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.