
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
针对一些特殊场景提供的工具库。
npm install --save kbone-tool
废弃,如果需要全局共享 vuex 状态,建议如下操作:
const state = window.$$global.state || {}
window.$$global.state = state
// 退出页面时来一次 state 的深拷贝
const onShow = () => {
store.replaceState(window.$$global.state)
}
const onHide = () => {
window.$$global.state = JSON.parse(JSON.stringify(store.state))
}
window.addEventListener('wxshow', onShow)
window.addEventListener('wxhide', onHide)
window.addEventListener('wxunload', onHide)
因为原生小程序自定义组件的 relations 不支持跨自定义组件,而 form 表单相关组件用到了此特性,所以在此方法中直接在逻辑层实现 form 表单组件的 relations 逻辑。
import * as kbone from 'kbone-tool'
kbone.weui.useForm()
FAQs
some tools for kbone
We found that kbone-tool 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.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.