react-native-table-component
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -20,3 +20,3 @@ import React, { Component } from 'react'; | ||
); | ||
const borderTopWidth = (borderStyle && borderStyle.borderWidth) || 1; | ||
const borderTopWidth = (borderStyle && borderStyle.borderWidth) || 0; | ||
const borderRightWidth = borderTopWidth; | ||
@@ -50,2 +50,2 @@ const borderColor = (borderStyle && borderStyle.borderColor) || '#000'; | ||
text: { backgroundColor: 'transparent' } | ||
}); | ||
}); |
@@ -66,2 +66,2 @@ import React, { Component } from 'react'; | ||
} | ||
}); | ||
}); |
@@ -21,3 +21,3 @@ import React, { Component } from 'react'; | ||
const { borderStyle } = this.props; | ||
const borderLeftWidth = (borderStyle && borderStyle.borderWidth) || 1; | ||
const borderLeftWidth = (borderStyle && borderStyle.borderWidth) || 0; | ||
const borderBottomWidth = borderLeftWidth; | ||
@@ -24,0 +24,0 @@ const borderColor = (borderStyle && borderStyle.borderColor) || '#000'; |
{ | ||
"name": "react-native-table-component", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Build table for react native.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -42,2 +42,4 @@ <p align="center"> | ||
- data属性内可以插入自定义组件 | ||
+ [v1.2.1] | ||
- borderWidth默认值从1改为0 | ||
<br/><br/> | ||
@@ -118,3 +120,3 @@ | ||
<View style={styles.container}> | ||
<Table> | ||
<Table borderStyle={{borderWidth: 1}}> | ||
<Row data={state.tableHead} flexArr={[1, 2, 1, 1]} style={styles.head} textStyle={styles.text}/> | ||
@@ -175,7 +177,7 @@ <TableWrapper style={styles.wrapper}> | ||
<View> | ||
<Table borderStyle={{borderColor: '#C1C0B9'}}> | ||
<Table borderStyle={{borderWidth: 1, borderColor: '#C1C0B9'}}> | ||
<Row data={state.tableHead} widthArr={state.widthArr} style={styles.header} textStyle={styles.text}/> | ||
</Table> | ||
<ScrollView style={styles.dataWrapper}> | ||
<Table borderStyle={{borderColor: '#C1C0B9'}}> | ||
<Table borderStyle={{borderWidth: 1, borderColor: '#C1C0B9'}}> | ||
{ | ||
@@ -318,3 +320,3 @@ tableData.map((rowData, index) => ( | ||
<View style={styles.container}> | ||
<Table style={{flexDirection: 'row'}}> | ||
<Table style={{flexDirection: 'row'}} borderStyle={{borderWidth: 1}}> | ||
{/* 左边模块 */} | ||
@@ -362,3 +364,3 @@ <TableWrapper style={{width: 80}}> | ||
| <b>style</b> | Style | 组件style样式 | `null` | | ||
| <b>borderStyle</b>| Object| 表格边框样式 | `{ borderWidth: 1, borderColor: #000 }` | | ||
| <b>borderStyle</b>| Object| 表格边框样式 | `{ borderWidth: 0, borderColor: #000 }` | | ||
| <b>textStyle</b> | Style | 子项文字样式 | `null` | | ||
@@ -365,0 +367,0 @@ | <b>flexArr</b> | Array | 每列的flex值 | `[]` | |
@@ -42,2 +42,4 @@ <p align="center"> | ||
- Data supports incoming Element types | ||
+ [v1.2.1] | ||
- Change the default value of the borderWidth from 1 to 0 | ||
<br/><br/> | ||
@@ -118,3 +120,3 @@ | ||
<View style={styles.container}> | ||
<Table> | ||
<Table borderStyle={{borderWidth: 1}}> | ||
<Row data={state.tableHead} flexArr={[1, 2, 1, 1]} style={styles.head} textStyle={styles.text}/> | ||
@@ -175,7 +177,7 @@ <TableWrapper style={styles.wrapper}> | ||
<View> | ||
<Table borderStyle={{borderColor: '#C1C0B9'}}> | ||
<Table borderStyle={{borderWidth: 1, borderColor: '#C1C0B9'}}> | ||
<Row data={state.tableHead} widthArr={state.widthArr} style={styles.header} textStyle={styles.text}/> | ||
</Table> | ||
<ScrollView style={styles.dataWrapper}> | ||
<Table borderStyle={{borderColor: '#C1C0B9'}}> | ||
<Table borderStyle={{borderWidth: 1, borderColor: '#C1C0B9'}}> | ||
{ | ||
@@ -318,3 +320,3 @@ tableData.map((rowData, index) => ( | ||
<View style={styles.container}> | ||
<Table style={{flexDirection: 'row'}}> | ||
<Table style={{flexDirection: 'row'}} borderStyle={{borderWidth: 1}}> | ||
{/* Left Wrapper */} | ||
@@ -362,3 +364,3 @@ <TableWrapper style={{width: 80}}> | ||
| <b>style</b> | Style | Container style. | `null` | | ||
| <b>borderStyle</b>| Object| Table border line width and color. | `{ borderWidth: 1, borderColor: #000 }` | | ||
| <b>borderStyle</b>| Object| Table border line width and color. | `{ borderWidth: 0, borderColor: #000 }` | | ||
| <b>textStyle</b> | Style | Cell font style. | `null` | | ||
@@ -365,0 +367,0 @@ | <b>flexArr</b> | Array | Flex value per column. | `[]` | |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
390
0
33979
13
223