上传修改样式的dist
This commit is contained in:
parent
34de179182
commit
0dced88a46
|
@ -34,7 +34,7 @@ class Demo extends Component {
|
||||||
const header = (
|
const header = (
|
||||||
<div>
|
<div>
|
||||||
{example}
|
{example}
|
||||||
<Button style={{"margin-top": "10px"}} shape="block" onClick={ this.handleClick }>
|
<Button style={{"marginTop": "10px"}} shape="block" onClick={ this.handleClick }>
|
||||||
{ caret }
|
{ caret }
|
||||||
{ text }
|
{ text }
|
||||||
</Button>
|
</Button>
|
||||||
|
|
|
@ -114,7 +114,7 @@
|
||||||
example,
|
example,
|
||||||
_react2['default'].createElement(
|
_react2['default'].createElement(
|
||||||
_beeButton2['default'],
|
_beeButton2['default'],
|
||||||
{ style: { "margin-top": "10px" }, shape: 'block', onClick: this.handleClick },
|
{ style: { "marginTop": "10px" }, shape: 'block', onClick: this.handleClick },
|
||||||
caret,
|
caret,
|
||||||
text
|
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); }
|
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) {
|
var DateRender = function (_Component) {
|
||||||
_inherits(DateRender, _Component);
|
_inherits(DateRender, _Component);
|
||||||
|
|
||||||
|
@ -24221,15 +24225,33 @@
|
||||||
var _state = this.state,
|
var _state = this.state,
|
||||||
value = _state.value,
|
value = _state.value,
|
||||||
editable = _state.editable;
|
editable = _state.editable;
|
||||||
var isclickTrigger = this.props.isclickTrigger;
|
var _props = this.props,
|
||||||
|
isclickTrigger = _props.isclickTrigger,
|
||||||
|
type = _props.type;
|
||||||
|
|
||||||
var cellContent = "";
|
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;
|
var date_value = value ? (0, _moment2["default"])(value) : value;
|
||||||
if (editable) {
|
if (editable) {
|
||||||
cellContent = isclickTrigger ? _react2["default"].createElement(
|
cellContent = isclickTrigger ? _react2["default"].createElement(
|
||||||
"div",
|
"div",
|
||||||
{ className: "editable-cell-input-wrapper" },
|
{ className: "editable-cell-input-wrapper" },
|
||||||
_react2["default"].createElement(_beeDatepicker2["default"], _extends({}, this.props, {
|
_react2["default"].createElement(TComponent, _extends({}, this.props, {
|
||||||
value: date_value,
|
value: date_value,
|
||||||
onChange: this.handleChange
|
onChange: this.handleChange
|
||||||
})),
|
})),
|
||||||
|
@ -24241,7 +24263,7 @@
|
||||||
) : _react2["default"].createElement(
|
) : _react2["default"].createElement(
|
||||||
"div",
|
"div",
|
||||||
{ className: "editable-cell-input-wrapper" },
|
{ className: "editable-cell-input-wrapper" },
|
||||||
_react2["default"].createElement(_beeDatepicker2["default"], _extends({}, this.props, {
|
_react2["default"].createElement(TComponent, _extends({}, this.props, {
|
||||||
value: date_value,
|
value: date_value,
|
||||||
onChange: this.handleChange
|
onChange: this.handleChange
|
||||||
})),
|
})),
|
||||||
|
@ -24278,6 +24300,10 @@
|
||||||
}(_react.Component);
|
}(_react.Component);
|
||||||
|
|
||||||
exports["default"] = DateRender;
|
exports["default"] = DateRender;
|
||||||
|
|
||||||
|
DateRender.defaultProps = {
|
||||||
|
type: "DatePicker"
|
||||||
|
};
|
||||||
module.exports = exports["default"];
|
module.exports = exports["default"];
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue