@ttk/component
v1.1.4-beta-12
Published
ttk组件库
Downloads
22
Readme
Install
npm i -S @ttk/component
1.0版本
antd升级3.26,增加多个新组件,原组件增加大量的新特性,极大提升业务开发效率;分离业务组件,简化样式文件
增加多个新组件
通用
- Typography排版
导航
- PageHeader页头
- Breadcrumb面包屑
数据录入
- Mentions提及
数据展示
- Comment评论
- Descriptions描述列表
- Empty空状态
- Statistic统计数值
反馈
Skeleton骨架屏
Result结果
ConfigProvider全局化配置
原组件增加大量的新特性
- 例如Icon图标的图标主题风格。可选实心、描线、双色等主题风格
分离业务组件,简化样式文件
以下业务相关组件分离,当前版本在@ttk/component/dz下,后续版本废弃删除
- MoneyCellHeader
- MoneyCell
- QuanAndForeCurrency
- SubjectDisplay
- AccountDisplay
- TableSettingCard
- TableOperate
- TableOperate2
- PrintOption
- PrintOption4
- PrintOption3
- FormDecorator
- GridDecorator
- VirtualTable
- VirtualTable2
组件在不同项目的适配备注
table组件
1、金财管家使用了动态设置高度,其他项目默认关闭,因此,增加了dynamicHeight的prop进行控制 金财管家table组件需要增加dynamicHeight的prop,值为true,修改代码如下:
setTableHeight = () => {
// 增加dynamicHeight的配置,是否动态控制高度
if (!this.props.dynamicHeight) {
return;
}
// 省略动态设置高度代码
}
2、金财管家默认设置水平滚动条,其他项目默认关闭,因此,屏蔽该行代码,金财管家table组件自行设置
// if (!scroll.x) scroll.x = 1 // 金财管家使用,后续自行设置,其他项目默认关闭
License
MIT License
Copyright (c) 2017-2018 TTK Team
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.