@vtx/components 4.0.0-beta.43 → 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.
- package/es/vtx-date-picker/QdatePicker.js +1 -1
- package/es/vtx-descriptions/Descriptions.js +0 -1
- package/es/vtx-import2/index.js +0 -1
- package/es/vtx-search/index.js +13 -9
- package/es/vtx-split-pane/Resizer.js +0 -1
- package/es/vtx-split-pane/SplitPane.js +0 -1
- package/es/vtx-transfer/Transfer.js +0 -1
- package/es/vtx-wang-editor/index.js +0 -11
- package/lib/vtx-date-picker/QdatePicker.js +1 -1
- package/lib/vtx-descriptions/Descriptions.js +0 -1
- package/lib/vtx-import2/index.js +0 -1
- package/lib/vtx-search/index.js +13 -9
- package/lib/vtx-split-pane/Resizer.js +0 -1
- package/lib/vtx-split-pane/SplitPane.js +0 -1
- package/lib/vtx-transfer/Transfer.js +0 -1
- package/lib/vtx-wang-editor/index.js +0 -11
- package/package.json +1 -1
|
@@ -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-
|
|
29
|
+
var prefixCls = getPrefixCls('', 'vtx-date-picker');
|
|
30
30
|
var _useStyle = useStyle(prefixCls),
|
|
31
31
|
wrapSSR = _useStyle.wrapSSR,
|
|
32
32
|
hashId = _useStyle.hashId;
|
package/es/vtx-import2/index.js
CHANGED
package/es/vtx-search/index.js
CHANGED
|
@@ -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 ? {
|
|
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: [
|
|
325
|
+
children: [customEnumText.collapseText, /*#__PURE__*/_jsx(UpOutlined, {})]
|
|
322
326
|
}) : /*#__PURE__*/_jsxs(_Fragment, {
|
|
323
|
-
children: [
|
|
327
|
+
children: [customEnumText.expandText, /*#__PURE__*/_jsx(DownOutlined, {})]
|
|
324
328
|
})
|
|
325
329
|
})]
|
|
326
330
|
})
|
|
@@ -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-
|
|
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;
|
package/lib/vtx-import2/index.js
CHANGED
package/lib/vtx-search/index.js
CHANGED
|
@@ -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 ? {
|
|
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: [
|
|
331
|
+
children: [customEnumText.collapseText, /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.UpOutlined, {})]
|
|
328
332
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
329
|
-
children: [
|
|
333
|
+
children: [customEnumText.expandText, /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.DownOutlined, {})]
|
|
330
334
|
})
|
|
331
335
|
})]
|
|
332
336
|
})
|
|
@@ -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
|
};
|