Comparing version 0.0.67 to 0.0.68
@@ -7,2 +7,6 @@ 'use strict'; | ||
var _react = require('react'); | ||
var _react2 = _interopRequireDefault(_react); | ||
var _antd = require('antd'); | ||
@@ -22,2 +26,5 @@ | ||
/* form搜索过滤器组件*/ | ||
/** | ||
* Created by Tears on 2017/8/26. | ||
*/ | ||
var FilterItem = function FilterItem(_ref) { | ||
@@ -148,3 +155,3 @@ var componentProps = _ref.componentProps, | ||
return React.createElement( | ||
return _react2.default.createElement( | ||
'div', | ||
@@ -155,6 +162,4 @@ null, | ||
); | ||
}; /** | ||
* Created by Tears on 2017/8/26. | ||
*/ | ||
}; | ||
exports.default = _antd.Form.create()(FilterItem); | ||
//# sourceMappingURL=index.js.map |
@@ -11,2 +11,8 @@ 'use strict'; | ||
var _react = require('react'); | ||
var _react2 = _interopRequireDefault(_react); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } /** | ||
@@ -27,6 +33,6 @@ * Created by Tears on 2017/8/26. | ||
return React.createElement( | ||
return _react2.default.createElement( | ||
'div', | ||
null, | ||
React.createElement(_antd.Table, _extends({}, tableProps, { | ||
_react2.default.createElement(_antd.Table, _extends({}, tableProps, { | ||
rowKey: function rowKey(record) { | ||
@@ -38,6 +44,6 @@ return record.id; | ||
})), | ||
React.createElement( | ||
_react2.default.createElement( | ||
'div', | ||
{ style: { marginTop: '10px' } }, | ||
!hidePagination ? React.createElement(_antd.Pagination, { style: { textAlign: 'right' }, defaultCurrent: 1, onChange: function onChange(page) { | ||
!hidePagination ? _react2.default.createElement(_antd.Pagination, { style: { textAlign: 'right' }, defaultCurrent: 1, onChange: function onChange(page) { | ||
onPaginationChange(page); | ||
@@ -44,0 +50,0 @@ }, pageSize: pageSize || 10, current: current, total: total }) : '' |
{ | ||
"name": "cqsmart", | ||
"version": "0.0.67", | ||
"version": "0.0.68", | ||
"description": "Smart Building Components", | ||
@@ -5,0 +5,0 @@ "authors": [ |
/** | ||
* Created by Tears on 2017/8/26. | ||
*/ | ||
import React from 'react' | ||
import {Form,Col} from 'antd' | ||
@@ -5,0 +6,0 @@ import FilterComponents from './FilterComponent' |
@@ -5,3 +5,3 @@ /** | ||
import {Table,Pagination} from 'antd' | ||
import React from 'react' | ||
const List=({...tableProps})=>{ | ||
@@ -8,0 +8,0 @@ const {onPaginationChange,current,total,hidePagination,pageSize}=tableProps |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41539
516