@easyv/react-gui
v3.5.0
Published
在 `packages/easy-gui` 目录执行:
Maintainers
Keywords
Readme
Easy[V] 组件 GUI 配置界面
发布 npm 包
在 packages/easy-gui 目录执行:
pnpm push登录账号需要有 @easyv/react-gui 的发布权限。pnpm push 会先检查 npm 登录状态。如果凭据失效或尚未登录,会启动交互式登录。完成登录后,脚本会再次确认身份,再构建并公开发布到 npmjs,最后同步镜像。
该脚本使用 npm,读取当前包目录的 .npmrc 和用户的 ~/.npmrc,不会自动读取 monorepo 根目录的 .npmrc。发布时的 E404 也可能由无效凭据或缺少包发布权限引起。
tip: 组件配置项,旧版本 “ _xxx ” 开头,新版本 " xxx "
旧版本:

类似于name/value/displayName/type 都属于主属性,不会改变其数据结构位置,如上图示例 selectableDisabled、defaultEntry等其他属性会被处理到config对象中,
组件接收的数据如下所示
{
name: 'upload5',
displayName: '文件夹',
config:{
selectableDisabled:true,
defaultEntry:'/main.json',
accept:".easytwin",
},
value: {
entry: 'components/static-image/borderMapNew/hebei/130000.json',
options: [
xxx
]
},
type: 'folder'
}
新版本

类似于name/value/displayName/type 都属于主属性,不会改变其数据结构位置,如上图示例 selectableDisabled、defaultEntry等其他属性 需要预先写到 config对象中,
组件接收的数据如下所示
{
name: 'upload7',
displayName: '文件夹_new',
config:{
selectableDisabled:true,
defaultEntry:'/main.json',
accept:".easytwin"
},
value: {
entry: 'components/static-image/borderMapNew/hebei/130000.json',
options: [
xxx
]
},
type: 'folder'
},
