@vtx/components 4.0.0-beta.42 → 4.0.0-beta.45

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.
@@ -26,7 +26,7 @@ export default function VtxQtimePicker(props) {
26
26
  var _format$split;
27
27
  var _useContext = useContext(ConfigProvider.ConfigContext),
28
28
  getPrefixCls = _useContext.getPrefixCls;
29
- var prefixCls = getPrefixCls('', 'vtx-color-picker');
29
+ var prefixCls = getPrefixCls('', 'vtx-date-picker');
30
30
  var _useStyle = useStyle(prefixCls),
31
31
  wrapSSR = _useStyle.wrapSSR,
32
32
  hashId = _useStyle.hashId;
@@ -26,5 +26,4 @@ function VtxDescriptions(props) {
26
26
  }, rest)));
27
27
  }
28
28
  VtxDescriptions.propTypes = {};
29
- VtxDescriptions.defaultProps = {};
30
29
  export default VtxDescriptions;
@@ -52,10 +52,13 @@ var VtxImport2 = function VtxImport2(props) {
52
52
  var visible = props.visible,
53
53
  close = props.close,
54
54
  title = props.title,
55
- accept = props.accept,
56
- fileKey = props.fileKey,
55
+ _props$accept = props.accept,
56
+ accept = _props$accept === void 0 ? 'application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,text/csv' : _props$accept,
57
+ _props$fileKey = props.fileKey,
58
+ fileKey = _props$fileKey === void 0 ? 'file' : _props$fileKey,
57
59
  uploadURL = props.uploadURL,
58
- postData = props.postData,
60
+ _props$postData = props.postData,
61
+ postData = _props$postData === void 0 ? {} : _props$postData,
59
62
  errorURL = props.errorURL,
60
63
  templateURL = props.templateURL,
61
64
  afterUpload = props.afterUpload,
@@ -430,11 +433,6 @@ var VtxImport2 = function VtxImport2(props) {
430
433
  })]
431
434
  })));
432
435
  };
433
- VtxImport2.defaultProps = {
434
- fileKey: 'file',
435
- accept: 'application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,text/csv',
436
- postData: {}
437
- };
438
436
  VtxImport2.propTypes = {
439
437
  visible: PropTypes.bool,
440
438
  templateURL: PropTypes.string,
@@ -55,10 +55,6 @@ function VtxSearch(props) {
55
55
  isClearButton = _props$isClearButton === void 0 ? true : _props$isClearButton,
56
56
  _props$isMoreButton = props.isMoreButton,
57
57
  isMoreButton = _props$isMoreButton === void 0 ? true : _props$isMoreButton,
58
- _props$confirmText = props.confirmText,
59
- confirmText = _props$confirmText === void 0 ? intl.getMessage('tableForm.search', '查询') : _props$confirmText,
60
- _props$clearText = props.clearText,
61
- clearText = _props$clearText === void 0 ? intl.getMessage('tableForm.reset', '重置') : _props$clearText,
62
58
  onConfirm = props.onConfirm,
63
59
  onClear = props.onClear,
64
60
  renderButtons = props.renderButtons,
@@ -66,7 +62,15 @@ function VtxSearch(props) {
66
62
  showAll = _props$showAll === void 0 ? false : _props$showAll,
67
63
  onToggleShow = props.onToggleShow,
68
64
  _props$customEnumText = props.customEnumText,
69
- customEnumText = _props$customEnumText === void 0 ? {} : _props$customEnumText;
65
+ customEnumText = _props$customEnumText === void 0 ? {
66
+ confirmText: intl.getMessage('tableForm.search', '查询'),
67
+ //确认按钮文本
68
+ clearText: intl.getMessage('tableForm.reset', '重置'),
69
+ //情况按钮文本
70
+ collapseText: intl.getMessage('tableForm.expand', '收起'),
71
+ //情况按钮文本
72
+ expandText: intl.getMessage('tableForm.collapsed', '展开') //情况按钮文本
73
+ } : _props$customEnumText;
70
74
  var vtxSearchRef = useRef();
71
75
  var ref = useRef();
72
76
  var size = useColSize(vtxSearchRef);
@@ -299,7 +303,7 @@ function VtxSearch(props) {
299
303
  },
300
304
  type: "primary",
301
305
  onClick: onConfirm,
302
- children: confirmText
306
+ children: customEnumText.confirmText
303
307
  })
304
308
  }), isClearButton && /*#__PURE__*/_jsx("span", {
305
309
  "data-type": 'bt',
@@ -309,7 +313,7 @@ function VtxSearch(props) {
309
313
  width: '100%'
310
314
  },
311
315
  onClick: onClear,
312
- children: clearText
316
+ children: customEnumText.clearText
313
317
  })
314
318
  }), isMoreButton && grid.len > realColumn - 1 && /*#__PURE__*/_jsx("div", {
315
319
  "data-type": 'bt',
@@ -318,9 +322,9 @@ function VtxSearch(props) {
318
322
  },
319
323
  className: classnames("".concat(prefix, "-more"), hashId),
320
324
  children: showMore ? /*#__PURE__*/_jsxs(_Fragment, {
321
- children: [(customEnumText === null || customEnumText === void 0 ? void 0 : customEnumText.collapseText) || '收起', /*#__PURE__*/_jsx(UpOutlined, {})]
325
+ children: [customEnumText.collapseText, /*#__PURE__*/_jsx(UpOutlined, {})]
322
326
  }) : /*#__PURE__*/_jsxs(_Fragment, {
323
- children: [(customEnumText === null || customEnumText === void 0 ? void 0 : customEnumText.expandText) || '展开', /*#__PURE__*/_jsx(DownOutlined, {})]
327
+ children: [customEnumText.expandText, /*#__PURE__*/_jsx(DownOutlined, {})]
324
328
  })
325
329
  })]
326
330
  })
@@ -43,5 +43,4 @@ function Resizer(props) {
43
43
  }));
44
44
  }
45
45
  Resizer.propTypes = {};
46
- Resizer.defaultProps = {};
47
46
  export default Resizer;
@@ -65,6 +65,5 @@ function VtxSplitPane(props) {
65
65
  }));
66
66
  }
67
67
  VtxSplitPane.propTypes = {};
68
- VtxSplitPane.defaultProps = {};
69
68
  VtxSplitPane.Pane = Splitter.Panel;
70
69
  export default VtxSplitPane;
@@ -26,5 +26,4 @@ function VtxTransfer(props) {
26
26
  }, rest)));
27
27
  }
28
28
  VtxTransfer.propTypes = {};
29
- VtxTransfer.defaultProps = {};
30
29
  export default VtxTransfer;
@@ -407,15 +407,4 @@ VtxWangEditor.propTypes = {
407
407
  status: PropTypes.string,
408
408
  prefixCls: PropTypes.string,
409
409
  enableSanitization: PropTypes.bool // 是否启用HTML过滤
410
- };
411
-
412
- // 添加默认属性
413
- VtxWangEditor.defaultProps = {
414
- enableSanitization: true,
415
- maxFileSize: 5 * 1024 * 1024,
416
- maxNumberOfFiles: 5,
417
- height: 350,
418
- placeholder: '',
419
- downloadUrl: '/cloudFile/common/downloadFile?id=',
420
- uploadUrl: '/cloudFile/common/uploadFile'
421
410
  };
@@ -31,7 +31,7 @@ function VtxQtimePicker(props) {
31
31
  var _format$split;
32
32
  var _useContext = (0, _react.useContext)(_antd.ConfigProvider.ConfigContext),
33
33
  getPrefixCls = _useContext.getPrefixCls;
34
- var prefixCls = getPrefixCls('', 'vtx-color-picker');
34
+ var prefixCls = getPrefixCls('', 'vtx-date-picker');
35
35
  var _useStyle = (0, _index.useStyle)(prefixCls),
36
36
  wrapSSR = _useStyle.wrapSSR,
37
37
  hashId = _useStyle.hashId;
@@ -35,5 +35,4 @@ function VtxDescriptions(props) {
35
35
  }, rest)));
36
36
  }
37
37
  VtxDescriptions.propTypes = {};
38
- VtxDescriptions.defaultProps = {};
39
38
  var _default = exports.default = VtxDescriptions;
@@ -58,10 +58,13 @@ var VtxImport2 = exports.VtxImport2 = function VtxImport2(props) {
58
58
  var visible = props.visible,
59
59
  close = props.close,
60
60
  title = props.title,
61
- accept = props.accept,
62
- fileKey = props.fileKey,
61
+ _props$accept = props.accept,
62
+ accept = _props$accept === void 0 ? 'application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,text/csv' : _props$accept,
63
+ _props$fileKey = props.fileKey,
64
+ fileKey = _props$fileKey === void 0 ? 'file' : _props$fileKey,
63
65
  uploadURL = props.uploadURL,
64
- postData = props.postData,
66
+ _props$postData = props.postData,
67
+ postData = _props$postData === void 0 ? {} : _props$postData,
65
68
  errorURL = props.errorURL,
66
69
  templateURL = props.templateURL,
67
70
  afterUpload = props.afterUpload,
@@ -436,11 +439,6 @@ var VtxImport2 = exports.VtxImport2 = function VtxImport2(props) {
436
439
  })]
437
440
  })));
438
441
  };
439
- VtxImport2.defaultProps = {
440
- fileKey: 'file',
441
- accept: 'application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,text/csv',
442
- postData: {}
443
- };
444
442
  VtxImport2.propTypes = {
445
443
  visible: _propTypes.default.bool,
446
444
  templateURL: _propTypes.default.string,
@@ -61,10 +61,6 @@ function VtxSearch(props) {
61
61
  isClearButton = _props$isClearButton === void 0 ? true : _props$isClearButton,
62
62
  _props$isMoreButton = props.isMoreButton,
63
63
  isMoreButton = _props$isMoreButton === void 0 ? true : _props$isMoreButton,
64
- _props$confirmText = props.confirmText,
65
- confirmText = _props$confirmText === void 0 ? intl.getMessage('tableForm.search', '查询') : _props$confirmText,
66
- _props$clearText = props.clearText,
67
- clearText = _props$clearText === void 0 ? intl.getMessage('tableForm.reset', '重置') : _props$clearText,
68
64
  onConfirm = props.onConfirm,
69
65
  onClear = props.onClear,
70
66
  renderButtons = props.renderButtons,
@@ -72,7 +68,15 @@ function VtxSearch(props) {
72
68
  showAll = _props$showAll === void 0 ? false : _props$showAll,
73
69
  onToggleShow = props.onToggleShow,
74
70
  _props$customEnumText = props.customEnumText,
75
- customEnumText = _props$customEnumText === void 0 ? {} : _props$customEnumText;
71
+ customEnumText = _props$customEnumText === void 0 ? {
72
+ confirmText: intl.getMessage('tableForm.search', '查询'),
73
+ //确认按钮文本
74
+ clearText: intl.getMessage('tableForm.reset', '重置'),
75
+ //情况按钮文本
76
+ collapseText: intl.getMessage('tableForm.expand', '收起'),
77
+ //情况按钮文本
78
+ expandText: intl.getMessage('tableForm.collapsed', '展开') //情况按钮文本
79
+ } : _props$customEnumText;
76
80
  var vtxSearchRef = (0, _react.useRef)();
77
81
  var ref = (0, _react.useRef)();
78
82
  var size = (0, _useColSize.default)(vtxSearchRef);
@@ -305,7 +309,7 @@ function VtxSearch(props) {
305
309
  },
306
310
  type: "primary",
307
311
  onClick: onConfirm,
308
- children: confirmText
312
+ children: customEnumText.confirmText
309
313
  })
310
314
  }), isClearButton && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
311
315
  "data-type": 'bt',
@@ -315,7 +319,7 @@ function VtxSearch(props) {
315
319
  width: '100%'
316
320
  },
317
321
  onClick: onClear,
318
- children: clearText
322
+ children: customEnumText.clearText
319
323
  })
320
324
  }), isMoreButton && grid.len > realColumn - 1 && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
321
325
  "data-type": 'bt',
@@ -324,9 +328,9 @@ function VtxSearch(props) {
324
328
  },
325
329
  className: (0, _classnames.default)("".concat(_index.prefix, "-more"), hashId),
326
330
  children: showMore ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
327
- children: [(customEnumText === null || customEnumText === void 0 ? void 0 : customEnumText.collapseText) || '收起', /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.UpOutlined, {})]
331
+ children: [customEnumText.collapseText, /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.UpOutlined, {})]
328
332
  }) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
329
- children: [(customEnumText === null || customEnumText === void 0 ? void 0 : customEnumText.expandText) || '展开', /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.DownOutlined, {})]
333
+ children: [customEnumText.expandText, /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.DownOutlined, {})]
330
334
  })
331
335
  })]
332
336
  })
@@ -48,5 +48,4 @@ function Resizer(props) {
48
48
  }));
49
49
  }
50
50
  Resizer.propTypes = {};
51
- Resizer.defaultProps = {};
52
51
  var _default = exports.default = Resizer;
@@ -73,6 +73,5 @@ function VtxSplitPane(props) {
73
73
  }));
74
74
  }
75
75
  VtxSplitPane.propTypes = {};
76
- VtxSplitPane.defaultProps = {};
77
76
  VtxSplitPane.Pane = _antd.Splitter.Panel;
78
77
  var _default = exports.default = VtxSplitPane;
@@ -35,5 +35,4 @@ function VtxTransfer(props) {
35
35
  }, rest)));
36
36
  }
37
37
  VtxTransfer.propTypes = {};
38
- VtxTransfer.defaultProps = {};
39
38
  var _default = exports.default = VtxTransfer;
@@ -411,15 +411,4 @@ VtxWangEditor.propTypes = {
411
411
  status: _propTypes.default.string,
412
412
  prefixCls: _propTypes.default.string,
413
413
  enableSanitization: _propTypes.default.bool // 是否启用HTML过滤
414
- };
415
-
416
- // 添加默认属性
417
- VtxWangEditor.defaultProps = {
418
- enableSanitization: true,
419
- maxFileSize: 5 * 1024 * 1024,
420
- maxNumberOfFiles: 5,
421
- height: 350,
422
- placeholder: '',
423
- downloadUrl: '/cloudFile/common/downloadFile?id=',
424
- uploadUrl: '/cloudFile/common/uploadFile'
425
414
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vtx/components",
3
- "version": "4.0.0-beta.42",
3
+ "version": "4.0.0-beta.45",
4
4
  "description": "React components for Vortex",
5
5
  "keywords": [
6
6
  "react",