@bit-sun/business-component 4.0.13-alpha.28 → 4.0.13-alpha.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js
CHANGED
|
@@ -3215,7 +3215,8 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3215
3215
|
title = _this$props3.title,
|
|
3216
3216
|
notValid = _this$props3.notValid,
|
|
3217
3217
|
notExcelImport = _this$props3.notExcelImport,
|
|
3218
|
-
excelImportConfig = _this$props3.excelImportConfig
|
|
3218
|
+
excelImportConfig = _this$props3.excelImportConfig,
|
|
3219
|
+
getTemplate = _this$props3.getTemplate;
|
|
3219
3220
|
var _ref5 = excelImportConfig || {},
|
|
3220
3221
|
size = _ref5.size,
|
|
3221
3222
|
accept = _ref5.accept,
|
|
@@ -3283,7 +3284,11 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3283
3284
|
style: {
|
|
3284
3285
|
color: 'red'
|
|
3285
3286
|
}
|
|
3286
|
-
}, "\uFF08\u9F20\u6807\u79FB\u5165\u611F\u53F9\u53F7\u56FE\u6807\u67E5\u770B\u5BFC\u5165\u4F7F\u7528\u8BF4\u660E\uFF09")), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && ( /*#__PURE__*/React$1.createElement(
|
|
3287
|
+
}, "\uFF08\u9F20\u6807\u79FB\u5165\u611F\u53F9\u53F7\u56FE\u6807\u67E5\u770B\u5BFC\u5165\u4F7F\u7528\u8BF4\u660E\uFF09")), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && ( /*#__PURE__*/React$1.createElement(React$1.Fragment, null, getTemplate && ( /*#__PURE__*/React$1.createElement(Button, {
|
|
3288
|
+
ghost: true,
|
|
3289
|
+
type: "primary",
|
|
3290
|
+
onClick: getTemplate
|
|
3291
|
+
}, "\u4E0B\u8F7D\u6A21\u677F")), /*#__PURE__*/React$1.createElement(Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React$1.createElement(Button, null, "\u5BFC\u5165")))), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
3287
3292
|
trigger: ['click'],
|
|
3288
3293
|
overlay: this.menuList,
|
|
3289
3294
|
placement: "bottomRight"
|
package/dist/index.js
CHANGED
|
@@ -3238,7 +3238,8 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3238
3238
|
title = _this$props3.title,
|
|
3239
3239
|
notValid = _this$props3.notValid,
|
|
3240
3240
|
notExcelImport = _this$props3.notExcelImport,
|
|
3241
|
-
excelImportConfig = _this$props3.excelImportConfig
|
|
3241
|
+
excelImportConfig = _this$props3.excelImportConfig,
|
|
3242
|
+
getTemplate = _this$props3.getTemplate;
|
|
3242
3243
|
var _ref5 = excelImportConfig || {},
|
|
3243
3244
|
size = _ref5.size,
|
|
3244
3245
|
accept = _ref5.accept,
|
|
@@ -3306,7 +3307,11 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3306
3307
|
style: {
|
|
3307
3308
|
color: 'red'
|
|
3308
3309
|
}
|
|
3309
|
-
}, "\uFF08\u9F20\u6807\u79FB\u5165\u611F\u53F9\u53F7\u56FE\u6807\u67E5\u770B\u5BFC\u5165\u4F7F\u7528\u8BF4\u660E\uFF09")), /*#__PURE__*/React__default['default'].createElement(antd.Space, null, !notExcelImport && ( /*#__PURE__*/React__default['default'].createElement(
|
|
3310
|
+
}, "\uFF08\u9F20\u6807\u79FB\u5165\u611F\u53F9\u53F7\u56FE\u6807\u67E5\u770B\u5BFC\u5165\u4F7F\u7528\u8BF4\u660E\uFF09")), /*#__PURE__*/React__default['default'].createElement(antd.Space, null, !notExcelImport && ( /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, getTemplate && ( /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
3311
|
+
ghost: true,
|
|
3312
|
+
type: "primary",
|
|
3313
|
+
onClick: getTemplate
|
|
3314
|
+
}, "\u4E0B\u8F7D\u6A21\u677F")), /*#__PURE__*/React__default['default'].createElement(antd.Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React__default['default'].createElement(antd.Button, null, "\u5BFC\u5165")))), /*#__PURE__*/React__default['default'].createElement(antd.Dropdown, {
|
|
3310
3315
|
trigger: ['click'],
|
|
3311
3316
|
overlay: this.menuList,
|
|
3312
3317
|
placement: "bottomRight"
|
package/package.json
CHANGED
|
@@ -653,7 +653,7 @@ class DataValidation extends React.Component {
|
|
|
653
653
|
|
|
654
654
|
render() {
|
|
655
655
|
const { errorListCheck } = this.state;
|
|
656
|
-
const { title, notValid, notExcelImport, excelImportConfig } = this.props;
|
|
656
|
+
const { title, notValid, notExcelImport, excelImportConfig, getTemplate } = this.props;
|
|
657
657
|
const { size, accept, suffixRule } = excelImportConfig || {}
|
|
658
658
|
|
|
659
659
|
let totalSummary = this.getCount();
|
|
@@ -745,9 +745,16 @@ class DataValidation extends React.Component {
|
|
|
745
745
|
</Space>
|
|
746
746
|
<Space>
|
|
747
747
|
{!notExcelImport && (
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
748
|
+
<>
|
|
749
|
+
{
|
|
750
|
+
getTemplate && (
|
|
751
|
+
<Button ghost type="primary" onClick={getTemplate}>下载模板</Button>
|
|
752
|
+
)
|
|
753
|
+
}
|
|
754
|
+
<Upload {...uploadProps}>
|
|
755
|
+
<Button>导入</Button>
|
|
756
|
+
</Upload>
|
|
757
|
+
</>
|
|
751
758
|
)}
|
|
752
759
|
<Dropdown
|
|
753
760
|
trigger={['click']}
|