1"use strict";(globalThis.webpackChunknocobase=globalThis.webpackChunknocobase||[]).push([["2555"],{53494(e,t,r){r.r(t),r.d(t,{default:()=>c});let c={contexts:[r(79271).JSBlockRunJSContext],prefix:"sn-jsb-info-card",label:"Render record info card",description:"Display current record information in an Ant Design card",locales:{"zh-CN":{label:"渲æè®°å½ä¿¡æ¯å¡ç",description:"ä½¿ç¨ Ant Design å¡çæ¾ç¤ºå½åè®°å½çå ³é®ä¿¡æ¯"}},content:` 2const { Card, Descriptions, Tag } = ctx.libs.antd; 3 4if (!ctx.record) { 5 ctx.render('<div style="padding:16px;color:#999;">' + ctx.t('No record data') + '</div>'); 6 return; 7} 8 9const record = ctx.record; 10 11ctx.render( 12 <Card title={ctx.t('Record Details')} bordered style={{ margin: 0 }}> 13 <Descriptions column={2} size="small"> 14 <Descriptions.Item label={ctx.t('ID')}>{record.id || '-'}</Descriptions.Item> 15 <Descriptions.Item label={ctx.t('Status')}> 16 <Tag color={record.status === 'active' ? 'green' : 'default'}>{record.status || '-'}</Tag> 17 </Descriptions.Item> 18 <Descriptions.Item label={ctx.t('Title')}>{record.title || '-'}</Descriptions.Item> 19 <Descriptions.Item label={ctx.t('Created At')}> 20 {record.createdAt ? new Date(record.createdAt).toLocaleString() : '-'} 21 </Descriptions.Item> 22 </Descriptions> 23 </Card> 24); 25 26`}}}]);
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.