在demo中增加format示例
This commit is contained in:
parent
e0e550f360
commit
67dfe113bd
|
@ -37,6 +37,7 @@ class Demo14 extends React.Component {
|
|||
{
|
||||
key: "0",
|
||||
name: "沉鱼",
|
||||
number: "10",
|
||||
age: "y",
|
||||
address: "111",
|
||||
datepicker: "2017-06-12",
|
||||
|
@ -46,6 +47,7 @@ class Demo14 extends React.Component {
|
|||
{
|
||||
key: "1",
|
||||
name: "落雁",
|
||||
number: "100",
|
||||
age: "y",
|
||||
address: "lucy",
|
||||
datepicker: "2017-06-12",
|
||||
|
@ -55,6 +57,7 @@ class Demo14 extends React.Component {
|
|||
{
|
||||
key: "2",
|
||||
name: "闭月",
|
||||
number: "1000",
|
||||
age: "n",
|
||||
address: "lucy",
|
||||
datepicker: "2017-06-12",
|
||||
|
@ -64,6 +67,7 @@ class Demo14 extends React.Component {
|
|||
{
|
||||
key: "3",
|
||||
name: "羞花",
|
||||
number: "9999",
|
||||
age: "y",
|
||||
address: "lucy",
|
||||
datepicker: "2017-06-12",
|
||||
|
@ -78,7 +82,7 @@ class Demo14 extends React.Component {
|
|||
title: "普通输入",
|
||||
dataIndex: "name",
|
||||
key: "name",
|
||||
width: "100px",
|
||||
width: "150px",
|
||||
render: (text, record, index) => (
|
||||
<InputRender
|
||||
value={text}
|
||||
|
@ -87,6 +91,20 @@ class Demo14 extends React.Component {
|
|||
/>
|
||||
)
|
||||
},
|
||||
{
|
||||
title: "货币输入",
|
||||
dataIndex: "number",
|
||||
key: "number",
|
||||
width: "150px",
|
||||
render: (text, record, index) => (
|
||||
<InputRender
|
||||
value={text}
|
||||
format='Currency'
|
||||
isclickTrigger={true}
|
||||
onChange={this.onInputChange(index, "number")}
|
||||
/>
|
||||
)
|
||||
},
|
||||
{
|
||||
title: "复选",
|
||||
dataIndex: "age",
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,6 +1,9 @@
|
|||
## rendertype
|
||||
在表格中提供了多种rendertype可以供选择,比如下拉框,单选框,复选框,日期等
|
||||
|
||||
## 如何引用
|
||||
import InputRender from "bee-table/render/DateRender.js"
|
||||
|
||||
### InputRender
|
||||
输入框类型render
|
||||
|
||||
|
|
Loading…
Reference in New Issue