PageSourceSearch

https://cdn.nocobase.com/2.4.0-alpha.7.20260922234137/assets/7201-1a9a4dad.js

js nocobase.com collected 2026-09-24 21:37:40 UTC 608 bytes, 9 lines download raw bytes

1"use strict";(globalThis.webpackChunknocobase=globalThis.webpackChunknocobase||[]).push([["7201"],{93512(t,e,n){n.r(e),n.d(e,{default:()=>c});let c={contexts:[n(79271).JSBlockRunJSContext],prefix:"sn-jsb-button",label:"Render button handler",description:"Render a button and handle click events inside the block",locales:{"zh-CN":{label:"按钮事件处理",description:"在区块中渲染按钮并绑定点击处理逻辑"}},content:`
2const { Button } = ctx.libs.antd;
3
4ctx.render(
5  <Button type="primary" onClick={() => ctx.message.success(ctx.t('Clicked!'))}>
6    {ctx.t('Button')}
7  </Button>
8);
9`}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.