UNPKG

@gdjiami/jm-mrc-components

Version:

移动端可复用组件库

17 lines (16 loc) 891 B
import { __assign, __extends, __rest } from "tslib"; import React from 'react'; import List from 'antd-mobile/es/list'; import MonthDayPicker from '../month-day-picker'; var MonthDayPickerItem = /** @class */ (function (_super) { __extends(MonthDayPickerItem, _super); function MonthDayPickerItem() { return _super !== null && _super.apply(this, arguments) || this; } MonthDayPickerItem.prototype.render = function () { var _a = this.props, children = _a.children, props = __rest(_a, ["children"]); return (React.createElement(MonthDayPicker, __assign({}, props), function (value, onClick) { return (React.createElement(List.Item, { arrow: "horizontal", extra: value[0] + "\u6708" + value[1] + "\u53F7", onClick: onClick }, children)); })); }; return MonthDayPickerItem; }(React.Component)); export default MonthDayPickerItem;