上传修改样式的dist
This commit is contained in:
parent
34de179182
commit
0dced88a46
|
@ -34,7 +34,7 @@ class Demo extends Component {
|
|||
const header = (
|
||||
<div>
|
||||
{example}
|
||||
<Button style={{"margin-top": "10px"}} shape="block" onClick={ this.handleClick }>
|
||||
<Button style={{"marginTop": "10px"}} shape="block" onClick={ this.handleClick }>
|
||||
{ caret }
|
||||
{ text }
|
||||
</Button>
|
||||
|
|
|
@ -114,7 +114,7 @@
|
|||
example,
|
||||
_react2['default'].createElement(
|
||||
_beeButton2['default'],
|
||||
{ style: { "margin-top": "10px" }, shape: 'block', onClick: this.handleClick },
|
||||
{ style: { "marginTop": "10px" }, shape: 'block', onClick: this.handleClick },
|
||||
caret,
|
||||
text
|
||||
)
|
||||
|
@ -24179,6 +24179,10 @@
|
|||
|
||||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }
|
||||
|
||||
var MonthPicker = _beeDatepicker2["default"].MonthPicker,
|
||||
RangePicker = _beeDatepicker2["default"].RangePicker,
|
||||
WeekPicker = _beeDatepicker2["default"].WeekPicker;
|
||||
|
||||
var DateRender = function (_Component) {
|
||||
_inherits(DateRender, _Component);
|
||||
|
||||
|
@ -24221,15 +24225,33 @@
|
|||
var _state = this.state,
|
||||
value = _state.value,
|
||||
editable = _state.editable;
|
||||
var isclickTrigger = this.props.isclickTrigger;
|
||||
var _props = this.props,
|
||||
isclickTrigger = _props.isclickTrigger,
|
||||
type = _props.type;
|
||||
|
||||
var cellContent = "";
|
||||
var TComponent = void 0;
|
||||
switch (type.toLowerCase()) {
|
||||
case "monthpicker":
|
||||
TComponent = MonthPicker;
|
||||
break;
|
||||
// case "rangepicker":
|
||||
// TComponent = RangePicker;
|
||||
// break;
|
||||
case "weekpicker":
|
||||
TComponent = WeekPicker;
|
||||
break;
|
||||
default:
|
||||
TComponent = _beeDatepicker2["default"];
|
||||
break;
|
||||
}
|
||||
TComponent;
|
||||
var date_value = value ? (0, _moment2["default"])(value) : value;
|
||||
if (editable) {
|
||||
cellContent = isclickTrigger ? _react2["default"].createElement(
|
||||
"div",
|
||||
{ className: "editable-cell-input-wrapper" },
|
||||
_react2["default"].createElement(_beeDatepicker2["default"], _extends({}, this.props, {
|
||||
_react2["default"].createElement(TComponent, _extends({}, this.props, {
|
||||
value: date_value,
|
||||
onChange: this.handleChange
|
||||
})),
|
||||
|
@ -24241,7 +24263,7 @@
|
|||
) : _react2["default"].createElement(
|
||||
"div",
|
||||
{ className: "editable-cell-input-wrapper" },
|
||||
_react2["default"].createElement(_beeDatepicker2["default"], _extends({}, this.props, {
|
||||
_react2["default"].createElement(TComponent, _extends({}, this.props, {
|
||||
value: date_value,
|
||||
onChange: this.handleChange
|
||||
})),
|
||||
|
@ -24278,6 +24300,10 @@
|
|||
}(_react.Component);
|
||||
|
||||
exports["default"] = DateRender;
|
||||
|
||||
DateRender.defaultProps = {
|
||||
type: "DatePicker"
|
||||
};
|
||||
module.exports = exports["default"];
|
||||
|
||||
/***/ }),
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue