oc-form
场景化组件-纯表单容器。容器类组件,提供一个容器区域(一般是放入表单容器) 和 底部按钮操作区,在无线端底部按钮会被 fix 到底部。
安装
源码
tnpm i @alife/oc-form --save
搭建
组件依赖做如下配置
{
namespace: '@alife',
name: 'oc-form',
version: '0.1.1',// 版本使用最新版
group: 'def'
}
界面预览
API
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
className | 类名 | String | - |
footerActions | 底部操作按钮组, cone 搭建按钮的所有属性,也可参考 fusion next 的 button 组件属性 | Button[] | [] |
children | 子节点,一般是表单 | ReactNode | [] |
备注
申通同学使用
申通的同学直接使用 @stofe/oc-scene 组件包(多包)
- 安装
snpm i @stofe/oc-scene --save
- 弹外 cone 搭建依赖管理
{
namespace: '@stofe',
name: 'oc-scene',
version: '0.0.2',//版本使用最新版
urlPrefix: 'https://assets.sto.cn/cone-biz-components/oc-scene/0.0.2'
}