@zykj2024/much-library 1.1.4-beta.1 → 1.1.4-beta.3
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.
@@ -66,10 +66,13 @@ export default (function () {
|
|
66
66
|
}, 1000);
|
67
67
|
});
|
68
68
|
};
|
69
|
+
|
70
|
+
// TODO: 测试
|
69
71
|
return /*#__PURE__*/_jsx(McContainer, {
|
70
72
|
height: "100%",
|
71
73
|
immediateQuery: false,
|
72
74
|
loading: loading,
|
75
|
+
loadingText: "\u52A0\u8F7D\u4E2D",
|
73
76
|
onQuery: onQuery,
|
74
77
|
queryItems: queryItems,
|
75
78
|
tableProps: {
|
@@ -19,6 +19,8 @@ export type McContainerPropsType = {
|
|
19
19
|
immediateQuery?: boolean;
|
20
20
|
/** 加载中(已覆盖table组件的loading) */
|
21
21
|
loading?: boolean;
|
22
|
+
/** 加载loading下方的文案,默认为测试中 */
|
23
|
+
loadingText?: string;
|
22
24
|
/**
|
23
25
|
* 查询项(不受展开、收起按钮控制显示隐藏的查询项)
|
24
26
|
结合以下组件使用为最佳实现方式:McSelect、McCascader、McDateRange、McInput、McInput.Search、McInput.TextArea
|
@@ -24,6 +24,8 @@ var McContainer = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
24
24
|
immediateQuery = _props$immediateQuery === void 0 ? true : _props$immediateQuery,
|
25
25
|
_props$loading = props.loading,
|
26
26
|
loading = _props$loading === void 0 ? false : _props$loading,
|
27
|
+
_props$loadingText = props.loadingText,
|
28
|
+
loadingText = _props$loadingText === void 0 ? '' : _props$loadingText,
|
27
29
|
queryItems = props.queryItems,
|
28
30
|
_props$showQuery = props.showQuery,
|
29
31
|
showQuery = _props$showQuery === void 0 ? true : _props$showQuery,
|
@@ -347,6 +349,7 @@ var McContainer = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
347
349
|
maxHeight: 'none'
|
348
350
|
},
|
349
351
|
spinning: loading,
|
352
|
+
tip: loadingText,
|
350
353
|
children: /*#__PURE__*/_jsxs("div", {
|
351
354
|
className: "mc-container ".concat(className || ''),
|
352
355
|
style: _objectSpread({
|
@@ -496,7 +499,7 @@ var McContainer = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
496
499
|
}
|
497
500
|
}, tableProps === null || tableProps === void 0 ? void 0 : tableProps.expandable)
|
498
501
|
}))]
|
499
|
-
}), !(tableProps !== null && tableProps !== void 0 && tableProps.pagination) && /*#__PURE__*/_jsx("div", {
|
502
|
+
}), !(tableProps !== null && tableProps !== void 0 && tableProps.pagination) && !tableRender && /*#__PURE__*/_jsx("div", {
|
500
503
|
className: "mc-container__ceiling",
|
501
504
|
style: {
|
502
505
|
backgroundColor: backgroundColor,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@zykj2024/much-library",
|
3
|
-
"version": "1.1.4-beta.
|
3
|
+
"version": "1.1.4-beta.3",
|
4
4
|
"description": "react library",
|
5
5
|
"license": "MIT",
|
6
6
|
"module": "dist/index.js",
|
@@ -9,7 +9,7 @@
|
|
9
9
|
"dist"
|
10
10
|
],
|
11
11
|
"scripts": {
|
12
|
-
"build": "
|
12
|
+
"build": "father build",
|
13
13
|
"build:watch": "father dev",
|
14
14
|
"dev": "dumi dev",
|
15
15
|
"dev-build-all": "pnpm -r --parallel run dev & dumi dev",
|
@@ -67,7 +67,6 @@
|
|
67
67
|
"devDependencies": {
|
68
68
|
"@commitlint/cli": "^17.1.2",
|
69
69
|
"@commitlint/config-conventional": "^17.1.0",
|
70
|
-
"@types/html-minifier-terser": "^7.0.2",
|
71
70
|
"@types/lodash": "^4.17.10",
|
72
71
|
"@types/react": "^18.0.0",
|
73
72
|
"@types/react-dom": "^18.0.0",
|