diff --git a/README.md b/README.md index a57e7b6..4762f89 100644 --- a/README.md +++ b/README.md @@ -210,7 +210,9 @@ import InputRender from "bee-table/render/InputRender.js" #### 配置 | 参数 | 说明 | 类型 | 默认值 | | ----------------- | ---------------------------------------- | ---------- | ------ | -| isclickTrigger | 是否使用点击触发编辑状态 | boolean | false | +| isclickTrigger | 是否使用点击触发编辑状态 | boolean | false | +| type | 控制日期的显示格式,DatePicker、MonthPicker或者WeekPicker,暂时不支持RangePicker | string | "DatePicker" | + 注:其他参数参见bee-datepicker组件参数配置 diff --git a/demo/demolist/Demo14.js b/demo/demolist/Demo14.js index 703c7d1..927356f 100644 --- a/demo/demolist/Demo14.js +++ b/demo/demolist/Demo14.js @@ -18,10 +18,6 @@ import InputRender from "../../build/render/InputRender.js"; import DateRender from "../../build/render/DateRender.js"; import SelectRender from "../../build/render/SelectRender.js"; -//日期控件引入 -import DatePicker from "bee-datepicker"; -import MonthPicker, { WeekPicker, RangePicker } from "bee-datepicker"; - const format = "YYYY-MM-DD"; const format2 = "YYYY-MM"; const format3 = "YYYY-MM-DD HH:mm:ss"; @@ -197,6 +193,7 @@ class Demo14 extends React.Component { return ( - ) : (
- {cellContent}
; } } +DateRender.defaultProps = { + type: "DatePicker" +};