PageSourceSearch

https://cdn.nocobase.com/2.4.0-alpha.9.20260930161833/assets/5064-3f4d601d.js

js nocobase.com collected 2026-10-02 09:56:03 UTC 633 bytes, 8 lines download raw bytes

1"use strict";(globalThis.webpackChunknocobase=globalThis.webpackChunknocobase||[]).push([["5064"],{35803(e,t,c){c.r(t),c.d(t,{default:()=>s});let s={contexts:[c(64700).JSCollectionActionRunJSContext],prefix:"sn-act-selected-count",label:"Selected count",description:"Show number of selected rows in list action",locales:{"zh-CN":{label:"选中数量",description:"提示当前选中行的数量"}},content:`
2const rows = ctx.resource?.getSelectedRows?.() || [];
3if (!rows.length) {
4  ctx.message.warning(ctx.t('Please select data'));
5} else {
6  ctx.message.success(ctx.t('Selected {{count}} rows', { count: rows.length }));
7}
8`}}}]);

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.