Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

rtcloud-ui-common

Latest version: v0.2.7

Overview

Last scanned
25 Nov 2026
Published
25 Nov 2026
npm package Publisher: tortormore
11 Versions
1.1K Downloads

Scan summary

rtcloud-ui-common was last scanned on 25 Nov 2026 at version 0.2.7. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 11 versions; the latest 5 were published within 2 days (24 and 25 Nov 2026).
  • Findings: No rules fired in version 0.2.7.
  • Downloads: 1,080 downloads.

Versions

11 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.2.7 LATEST 25 Nov 2026 No rules fired
0.2.5 24 Nov 2026 No rules fired
0.2.4 24 Nov 2026 No rules fired
0.2.3 24 Nov 2026 Not shown
0.2.2 24 Nov 2026 Not shown

No rules fired in 0.2.7

Findings

Findings for v0.2.7. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.2.7; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

rtcloud-ui-common

rtcloud 微前端公共业务组件库。从 项目提取的 查询表单 / 数据表格 / Schema 表单 / 描述列表 四大核心组件及其配套 hooks 与工具函数,供微应用(以及后续新增微应用)复用。

特性

  • Vue 3.5 + TypeScript + Element Plus 2.13 + vxe-table 4.x,Vite 8 库模式构建(ESM + CJS + 完整 d.ts)
  • 运行时依赖全部 external 化:vue / element-plus / vxe-* 由宿主提供,不重复打包
  • 已解除对宿主 store / router / i18n / iconify 的耦合,改为 RtConfigProvider 注入 + 注册扩展 API
  • 卡片视觉对齐 rtcloud-ui-mes 设计体系(14px 圆角、hover 过渡动画、顶部蓝色横线),容器尺寸自适应不写死

组件清单

组件 源文件 说明
RtSearchForm src/components/RtSearchForm/RtSearchForm.vue 查询表单:configMode(schema 配置)/ slotMode(插槽)双模式;展开/收起互斥单按钮;fieldMapToTime 范围时间拆分;自动剔除空查询值
RtDataTable src/components/RtDataTable/RtDataTable.vue 数据表格:vxe-grid 表体 + 内置分页 + 跨页勾选保留 + 列顺序本地缓存 + 视口自适应高度 + 操作列表头全屏/列设置图标
RtForm src/components/RtForm/RtForm.tsx Schema 驱动表单:@register 注册模式(配套 useForm),内置 element-plus 全控件映射,支持 registerFormComponent 注册业务组件
RtDescriptions src/components/RtDescriptions/RtDescriptions.vue 描述列表:schema 驱动,dateFormat / dictType / formatter / render / 字段插槽,可折叠
RtContentWrap src/components/RtContentWrap/RtContentWrap.vue 卡片容器(蓝顶线 + header 插槽),查询面板/表格的公共外壳
RtIcon src/components/RtIcon/RtIcon.vue 图标:ep:* 内置映射 @element-plus/icons-vue(离线可用),registerIcon 扩展
RtDictTag src/components/RtDictTag/RtDictTag.vue 字典标签兜底实现;宿主可经 RtUIConfig.dictTagComponent 替换为自己的字典组件
RtConfigProvider src/components/RtConfigProvider/RtConfigProvider.vue 全局配置容器(provide 注入 RtUIConfig)

Hooks:useForm(表单注册与方法代理)、useBasicTable(查询/分页/选择联动)、usePaginationSelection(跨页选择记录)

表格辅助工具(vxeTableHelp.ts ):

函数 说明
addActionColumn(columns, width?) 列末尾追加"操作"列(fixed right + action 插槽),返回新数组
addColumnsByField(columns, addColumns, field?) 在指定字段列前插入一批列
refreshSlotValueValidator(slotParams) 编辑校验插槽辅助(触发 grid updateStatus)
isDisBatchBtnMultiple(data) 批量按钮禁用判断:无选中 → true
isDisBatchBtnSingle(data) 批量按钮禁用判断:选中数 ≠ 1 → true
getPermissionTag() 从路由路径末段生成权限标签
sleep(time?) 等待指定毫秒(默认 500)

其他工具:handleRangeTimeValue / formatToDateTime / formatToDate(时间处理)、isEmpty / isFunction / isArray / isString(类型判断)

安装

# 发布后:npm(或公司私服)
pnpm add rtcloud-ui-common

# 未发布前本地联调:file 协议
pnpm add rtcloud-ui-common@file:/path/to/rtcloud-ui-common

宿主前置条件(peerDependencies,rtcloud 微应用均已具备):

  • vue >= 3.5、element-plus >= 2.13
  • vxe-table >= 4.15 + vxe-pc-ui >= 4.0,并在 main.ts 按顺序注册:
import VxeUI from 'vxe-pc-ui'
import 'vxe-pc-ui/es/style.css'
import VxeTable from 'vxe-table'
import 'vxe-table/es/style.css'
app.use(VxeUI)   // 先装 vxe-pc-ui(分页等 UI 组件)
app.use(VxeTable) // 再装 vxe-table(表格主体)

引入方式

// 按需引入(推荐)
import { RtSearchForm, RtDataTable, RtForm, RtDescriptions, useForm, useBasicTable, addActionColumn } from 'rtcloud-ui-common'
// 组件样式(lib 构建产物 dist/rtcloud-ui-common.css;以源码方式引入时无需)
import 'rtcloud-ui-common/styles.css'

或整库安装(全局注册 Rt 前缀组件 + 注入全局配置):

import RtUICommon from 'rtcloud-ui-common'
app.use(RtUICommon, { config: { storageKeyPrefix: 'mes' } })

全局配置(RtUIConfig)

<RtConfigProvider :config="config"> 包裹页面,或 app.use(RtUICommon, { config }),或组件内 provideRtUIConfig(config):

字段 类型 默认 说明
componentSize 'small' \| 'medium' \| 'large' 'medium' 分页器尺寸
locale 'zh-CN' \| 'en-US' \| 'ru-RU' \| 'ja-JP' 'zh-CN' 界面语言(查询/展开/收起/搜索/重置等内置文案跟随切换,响应式生效)
dictTagComponent Component 内置 RtDictTag Descriptions dictType 字段渲染组件(宿主注入自己的字典组件)
storageKeyPrefix string 'RtDataTable' 列顺序缓存 localStorage key 前缀(多系统共用浏览器时区分)
isMobile boolean false Descriptions 排版方向 vertical/horizontal
getViewportContainer (gridEl) => HTMLElement \| null 表格父元素 autoFillViewport 视口自适应的容器获取函数
宿主本地多语言配置(推荐接入方式)

组件内置 zh-CN(默认)/ en-US / ru-RU / ja-JP 四语言。宿主项目在本地放一份语言包文件(JSON / TS 均可,结构同 rtLocaleMessages),import 后一行注册,即可覆盖内置文案或新增语言:

# 宿主工程目录示例(文件路径任意,import 即可)
src/locales/rt-ui-locales.json
{
  "zh-CN": { "searchForm": { "title": "筛选", "search": "查询", "reset": "重置", "expand": "展开", "collapse": "收起" } },
  "en-US": { "searchForm": { "title": "Filter", "search": "Query", "reset": "Reset", "expand": "Expand", "collapse": "Collapse" } }
}
// main.ts
import { registerRtLocales } from 'rtcloud-ui-common'
import rtUiLocales from './locales/rt-ui-locales.json'

// 合并语义:与内置语言包按 key 浅合并,宿主可只写要覆盖/新增的文案,未提供的 key 用内置兜底
registerRtLocales(rtUiLocales)

要点:

  • 结构兼容:支持扁平({ "searchForm.title": "筛选" })与嵌套({ "searchForm": { "title": "筛选" } })两种写法
  • TS 配置文件想要类型提示时,用 defineRtLocales() 包裹(运行时原样返回)
  • 新增语言:语言包 map 的 key 即语言标识(任意字符串),配合 RtUIConfig.locale 使用(如 "kk-KZ": {...} 后配 locale: 'kk-KZ')
  • 单条注册也可用 registerLocale(locale, messages)
  • 切换时机:运行时改 RtUIConfig.locale(响应式立即生效,见 playground 顶部语言切换按钮组);文案优先级:组件 props 传值 > 语言包 > 内置中文

典型用法(列表页)

<template>
  <RtSearchForm ref="searchRef" mode="configMode" :label-width="120" :schema="searchFormSchema"
    :field-map-to-time="fieldMapToTime" @search="handleSearch" @reset="handleReset" />

  <RtDataTable ref="tableRef" v-bind="tableConfig"
    :current-page="tableConfig.pageNo" :page-size="tableConfig.pageSize"
    column-order-key="mes_order_list" show-selection-summary
    @pagination="handlePageChange" @selection-change="onSelectionChange">
    <template #header-right>
      <el-button type="primary" :disabled="isDisBatchBtnSingle(selectedRecords)" @click="handleEdit">编辑</el-button>
    </template>
    <template #status="{ row }"><el-tag>{{ row.statusName }}</el-tag></template>
    <template #action="{ row }"><el-button link type="primary" @click="handlePreview(row)">查看</el-button></template>
  </RtDataTable>
</template>

<script lang="ts" setup>
import { addActionColumn, isDisBatchBtnSingle } from 'rtcloud-ui-common'
import type { FormSchema, tableProps } from 'rtcloud-ui-common'

const searchFormSchema: FormSchema[] = [
  { field: 'orderNo', label: '订单号', component: 'Input' },
  { field: 'createTimeRange', label: '下单时间', component: 'DatePicker', componentProps: { type: 'daterange', valueFormat: 'YYYY-MM-DD' } }
]
const fieldMapToTime: [string, [string, string], string][] = [['createTimeRange', ['createTimeStart', 'createTimeEnd'], 'YYYY-MM-DD']]

const tableConfig = reactive<tableProps>({
  title: '生产订单', data: [], total: 0, pageNo: 1, pageSize: 10,
  // 业务列末尾自动追加"操作"列
  columns: addActionColumn([{ field: 'orderNo', title: '订单号', width: 160 }], 150),
  gridOptions: { border: true, rowConfig: { isCurrent: true } }
})

const { searchRef, tableRef, reload, handlePageChange, handleSuccess, selectedRecords, onSelectionChange } =
  useBasicTable({ loadData, tableConfig })
</script>
组件级语言覆盖(locale prop,0.2.0 起)

RtSearchForm / RtDataTable 支持组件级 locale prop,与全局 RtUIConfig.locale 三级联动:

searchText / resetText 等显式 props 文案(最高)
  > 组件 locale prop(本组件语言)
  > RtUIConfig.locale(全局语言)
  > 内置中文兜底
<!-- 本组件切英文:按钮/标题/选择汇总条等内置文案自动跟随 -->
<RtSearchForm locale="en-US" ... />
<RtDataTable locale="en-US" ... />
  • RtDataTable 会同步调用 VxeUI.setLanguage() 联动 vxe 系文案(分页器"共 N 条/跳转"、列设置面板"全部/确定"等);vxe 无对应语言包时回退中文
  • 多表格传不同 locale 时,vxe 全局文案以最后渲染的组件为准(库自绘文案仍各自独立)
  • dataTable.* 文案键:selected(已选择 {n} 条)/ clear(清空)/ fullscreen(全屏)/ columns(列设置),可经 registerRtLocales 覆盖
RtForm(@register 模式)
const { register, methods, elFormRef } = useForm({ schema: formSchema, isCol: true, labelWidth: 110 })
// methods.setValues(data) / methods.getFormData() / methods.setSchema([...]) / methods.addSchema / delSchema
// elFormRef.value.validate() / resetFields()
  • 组件名映射:Input / InputNumber(左对齐)/ InputPassword / Select / SelectV2 / TreeSelect / Cascader / Radio / Checkbox / Switch / DatePicker / TimePicker / TimeSelect / Slider / Rate / ColorPicker / Transfer / Divider / Autocomplete
  • 下拉组件默认 filterable: true(schema 传 filterable: false 可覆盖);多选类组件初始值为 []
  • 动态隐藏:hidden: (formModel) => boolean(返回 true = 隐藏)
  • 插槽:${field} 字段替换、${field}-label、${field}-error、${field}-option(optionsSlot)、componentProps.slots 透传组件插槽
RtDescriptions

schema 支持 dateFormat(dayjs 格式)/ dictType(经 dictTagComponent 渲染)/ formatter / render / mappedField;插槽 ${field}、${field}-label;collapse 默认可折叠。

本地开发(playground)

pnpm install
pnpm dev          # 示例工程 http://localhost:48220(App.vue 挂载四组件示例,无路由,数据全 mock)
pnpm build        # 构建库产物 → dist/(index.js / index.cjs / index.d.ts / rtcloud-ui-common.css)
pnpm build:demo   # 构建示例
pnpm typecheck    # vue-tsc 类型检查

发布到 npm

pnpm publish:lib    # = npm publish --access public;publish 前自动执行 pnpm build(prepublishOnly)
  • 发版前修改 package.json 的 version(semver)
  • 公司私服(Nexus)在工程或用户级 .npmrc 配置:
@tortormore:registry=https://<私服地址>/repository/npm-hosted/
//<私服域名>/:_authToken=<token>
  • 产物自检:ls dist/ 应含 index.js / index.cjs / index.d.ts / rtcloud-ui-common.css / 各子目录 d.ts

原版的差异(迁移必读)

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm rtcloud-ui-common

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Frame 2085668439 (1)
Group 1261154229