@ztocwst/rc-pro-materials 0.2.2 → 0.2.3-4.1
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/README.md +17 -17
- package/build/index.js +8 -8
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +8 -8
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/designer.html +2 -2
- package/build/lowcode/index.html +2 -2
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.css +1 -1
- package/build/lowcode/preview.js +4 -5
- package/build/lowcode/render/default/view.css +1 -2
- package/build/lowcode/render/default/view.js +9 -58
- package/build/lowcode/view.css +1 -2
- package/build/lowcode/view.js +10 -59
- package/dist/SCM_Comps.css +2 -2
- package/dist/SCM_Comps.js +22 -53
- package/dist/SCM_Comps.js.map +1 -1
- package/es/components/z-Ellipsis/ellipsis.d.ts +4 -4
- package/es/components/z-Ellipsis/index.d.ts +3 -3
- package/es/components/z-agg-block/index.d.ts +3 -3
- package/es/components/z-agg-block/index.less +134 -134
- package/es/components/z-agg-block/z-agg-block.d.ts +27 -27
- package/es/components/z-agg-block/z-agg-block.js +1 -1
- package/es/components/z-auth/auth.d.ts +9 -9
- package/es/components/z-auth/index.d.ts +3 -3
- package/es/components/z-box/box.d.ts +20 -20
- package/es/components/z-box/index.d.ts +3 -3
- package/es/components/z-box/index.less +4 -4
- package/es/components/z-button/index.d.ts +3 -3
- package/es/components/z-button/z-button.d.ts +4 -4
- package/es/components/z-config-provider/configProvider.d.ts +4 -4
- package/es/components/z-config-provider/configProvider.js +45 -4
- package/es/components/z-config-provider/index.d.ts +3 -3
- package/es/components/z-data-table/data-table.d.ts +9 -0
- package/es/components/z-data-table/data-table.js +24 -0
- package/es/components/z-data-table/index.d.ts +3 -0
- package/es/components/z-data-table/index.js +2 -0
- package/es/components/z-div/div.d.ts +6 -6
- package/es/components/z-div/index.d.ts +2 -2
- package/es/components/z-editTable/editTable.d.ts +11 -11
- package/es/components/z-editTable/editTable.js +3 -4
- package/es/components/z-editTable/index.d.ts +2 -2
- package/es/components/z-form/index.d.ts +3 -3
- package/es/components/z-form/z-form.d.ts +10 -10
- package/es/components/z-form/z-form.js +1 -1
- package/es/components/z-list/index.d.ts +3 -3
- package/es/components/z-list/list.d.ts +17 -17
- package/es/components/z-list/list.js +3 -3
- package/es/components/z-operation-records/index.d.ts +3 -3
- package/es/components/z-operation-records/operationRecords.d.ts +4 -4
- package/es/components/z-pointer-block/index.d.ts +3 -3
- package/es/components/z-pointer-block/index.less +15 -15
- package/es/components/z-pointer-block/z-pointer-block.d.ts +16 -16
- package/es/components/z-preview/index.d.ts +3 -3
- package/es/components/z-preview/preview.d.ts +4 -4
- package/es/components/z-pro-provider/index.d.ts +3 -3
- package/es/components/z-pro-provider/z-pro-provider.d.ts +6 -6
- package/es/components/z-ranking-list/index.d.ts +2 -2
- package/es/components/z-ranking-list/index.less +49 -49
- package/es/components/z-ranking-list/z-ranking-list.d.ts +14 -14
- package/es/components/z-ranking-list/z-ranking-list.js +2 -3
- package/es/components/z-simple-bar/index.d.ts +3 -3
- package/es/components/z-simple-bar/index.less +9 -9
- package/es/components/z-simple-bar/z-simple-bar.d.ts +27 -27
- package/es/components/z-singleFactory/index.d.ts +2 -2
- package/es/components/z-singleFactory/zSingerFactory.d.ts +2 -3
- package/es/components/z-slick/index.d.ts +3 -0
- package/es/components/z-slick/index.js +2 -0
- package/es/components/z-slick/slick.d.ts +47 -0
- package/es/components/z-slick/slick.js +35 -0
- package/es/components/z-statistic/index.d.ts +3 -3
- package/es/components/z-statistic/index.less +22 -22
- package/es/components/z-statistic/z-statistic.d.ts +13 -13
- package/es/components/z-table/index.d.ts +3 -3
- package/es/components/z-table/table.d.ts +8 -8
- package/es/components/z-table/table.js +1 -1
- package/es/components/z-templates-data-common/components/chart-renderer/index.d.ts +12 -14
- package/es/components/z-templates-data-common/components/chart-renderer/index.js +33 -13
- package/es/components/z-templates-data-common/data-common.d.ts +20 -105
- package/es/components/z-templates-data-common/data-common.helper.d.ts +2 -61
- package/es/components/z-templates-data-common/data-common.helper.js +2 -336
- package/es/components/z-templates-data-common/data-common.js +81 -62
- package/es/components/z-templates-data-common/index.d.ts +3 -3
- package/es/components/z-tpl/index.d.ts +3 -3
- package/es/components/z-tpl/tpl.d.ts +23 -23
- package/es/components/z-tpl/tpl.js +3 -3
- package/es/components/z-warehouse/index.d.ts +2 -2
- package/es/components/z-warehouse/zWarehouse.d.ts +2 -3
- package/es/components/z-watermark/index.d.ts +3 -0
- package/es/components/z-watermark/index.js +2 -0
- package/es/components/z-watermark/zWatermark.d.ts +3 -0
- package/es/components/z-watermark/zWatermark.js +4 -0
- package/es/index.d.ts +44 -38
- package/es/index.js +4 -0
- package/es/index.scss +1 -1
- package/es/style.js +2 -6
- package/es/utils/hoc.d.ts +6 -6
- package/es/utils/hoc.js +3 -3
- package/es/utils/index.d.ts +13 -13
- package/es/utils/index.js +5 -1
- package/es/utils/props/button.d.ts +13 -13
- package/es/utils/props/common.d.ts +7 -1
- package/es/utils/props/common.js +17 -0
- package/es/utils/props/editTable.d.ts +3 -3
- package/es/utils/props/editTable.js +21 -14
- package/es/utils/props/form.d.ts +36 -0
- package/es/utils/props/form.js +33 -14
- package/es/utils/props/listTpl.d.ts +29 -29
- package/es/utils/props/microModal.d.ts +7 -7
- package/es/utils/props/microModal.js +0 -1
- package/es/utils/props/microSwitch.d.ts +1 -1
- package/es/utils/props/microSwitch.js +4 -3
- package/es/utils/props/modalSelect.d.ts +6 -6
- package/es/utils/props/operationRecords.d.ts +2 -2
- package/es/utils/props/operationRecords.js +4 -4
- package/es/utils/props/preview.d.ts +2 -2
- package/es/utils/props/preview.js +4 -4
- package/es/utils/props/tpl.d.ts +173 -162
- package/es/utils/props/warehouseAndFactory.d.ts +1 -1
- package/es/utils/rcProRequest.d.ts +3 -3
- package/es/utils/rcProRequest.js +3 -3
- package/es/variables.scss +3 -3
- package/lib/components/z-Ellipsis/ellipsis.d.ts +4 -4
- package/lib/components/z-Ellipsis/ellipsis.js +3 -4
- package/lib/components/z-Ellipsis/index.d.ts +3 -3
- package/lib/components/z-Ellipsis/index.js +1 -2
- package/lib/components/z-agg-block/index.d.ts +3 -3
- package/lib/components/z-agg-block/index.js +1 -2
- package/lib/components/z-agg-block/index.less +134 -134
- package/lib/components/z-agg-block/z-agg-block.d.ts +27 -27
- package/lib/components/z-agg-block/z-agg-block.js +2 -3
- package/lib/components/z-auth/auth.d.ts +9 -9
- package/lib/components/z-auth/auth.js +1 -2
- package/lib/components/z-auth/index.d.ts +3 -3
- package/lib/components/z-auth/index.js +1 -2
- package/lib/components/z-box/box.d.ts +20 -20
- package/lib/components/z-box/box.js +1 -2
- package/lib/components/z-box/index.d.ts +3 -3
- package/lib/components/z-box/index.js +1 -2
- package/lib/components/z-box/index.less +4 -4
- package/lib/components/z-button/index.d.ts +3 -3
- package/lib/components/z-button/index.js +1 -2
- package/lib/components/z-button/z-button.d.ts +4 -4
- package/lib/components/z-button/z-button.js +4 -4
- package/lib/components/z-config-provider/configProvider.d.ts +4 -4
- package/lib/components/z-config-provider/configProvider.js +47 -7
- package/lib/components/z-config-provider/index.d.ts +3 -3
- package/lib/components/z-config-provider/index.js +1 -2
- package/lib/components/z-data-table/data-table.d.ts +9 -0
- package/lib/components/z-data-table/data-table.js +27 -0
- package/lib/components/z-data-table/index.d.ts +3 -0
- package/lib/components/z-data-table/index.js +7 -0
- package/lib/components/z-div/div.d.ts +6 -6
- package/lib/components/z-div/div.js +1 -2
- package/lib/components/z-div/index.d.ts +2 -2
- package/lib/components/z-div/index.js +1 -2
- package/lib/components/z-editTable/editTable.d.ts +11 -11
- package/lib/components/z-editTable/editTable.js +7 -9
- package/lib/components/z-editTable/index.d.ts +2 -2
- package/lib/components/z-editTable/index.js +1 -2
- package/lib/components/z-form/index.d.ts +3 -3
- package/lib/components/z-form/index.js +1 -2
- package/lib/components/z-form/z-form.d.ts +10 -10
- package/lib/components/z-form/z-form.js +5 -6
- package/lib/components/z-list/index.d.ts +3 -3
- package/lib/components/z-list/index.js +1 -2
- package/lib/components/z-list/list.d.ts +17 -17
- package/lib/components/z-list/list.js +7 -8
- package/lib/components/z-operation-records/index.d.ts +3 -3
- package/lib/components/z-operation-records/index.js +1 -2
- package/lib/components/z-operation-records/operationRecords.d.ts +4 -4
- package/lib/components/z-operation-records/operationRecords.js +3 -4
- package/lib/components/z-pointer-block/index.d.ts +3 -3
- package/lib/components/z-pointer-block/index.js +1 -2
- package/lib/components/z-pointer-block/index.less +15 -15
- package/lib/components/z-pointer-block/z-pointer-block.d.ts +16 -16
- package/lib/components/z-pointer-block/z-pointer-block.js +1 -2
- package/lib/components/z-preview/index.d.ts +3 -3
- package/lib/components/z-preview/index.js +1 -2
- package/lib/components/z-preview/preview.d.ts +4 -4
- package/lib/components/z-preview/preview.js +3 -4
- package/lib/components/z-pro-provider/index.d.ts +3 -3
- package/lib/components/z-pro-provider/index.js +1 -2
- package/lib/components/z-pro-provider/z-pro-provider.d.ts +6 -6
- package/lib/components/z-pro-provider/z-pro-provider.js +3 -4
- package/lib/components/z-ranking-list/index.d.ts +2 -2
- package/lib/components/z-ranking-list/index.js +1 -2
- package/lib/components/z-ranking-list/index.less +49 -49
- package/lib/components/z-ranking-list/z-ranking-list.d.ts +14 -14
- package/lib/components/z-ranking-list/z-ranking-list.js +5 -7
- package/lib/components/z-simple-bar/index.d.ts +3 -3
- package/lib/components/z-simple-bar/index.js +1 -2
- package/lib/components/z-simple-bar/index.less +9 -9
- package/lib/components/z-simple-bar/z-simple-bar.d.ts +27 -27
- package/lib/components/z-simple-bar/z-simple-bar.js +1 -2
- package/lib/components/z-singleFactory/index.d.ts +2 -2
- package/lib/components/z-singleFactory/index.js +1 -2
- package/lib/components/z-singleFactory/zSingerFactory.d.ts +2 -3
- package/lib/components/z-singleFactory/zSingerFactory.js +3 -4
- package/lib/components/z-slick/index.d.ts +3 -0
- package/lib/components/z-slick/index.js +7 -0
- package/lib/components/z-slick/slick.d.ts +47 -0
- package/lib/components/z-slick/slick.js +39 -0
- package/lib/components/z-statistic/index.d.ts +3 -3
- package/lib/components/z-statistic/index.js +1 -2
- package/lib/components/z-statistic/index.less +22 -22
- package/lib/components/z-statistic/z-statistic.d.ts +13 -13
- package/lib/components/z-statistic/z-statistic.js +1 -2
- package/lib/components/z-table/index.d.ts +3 -3
- package/lib/components/z-table/index.js +1 -2
- package/lib/components/z-table/table.d.ts +8 -8
- package/lib/components/z-table/table.js +5 -6
- package/lib/components/z-templates-data-common/components/chart-renderer/index.d.ts +12 -14
- package/lib/components/z-templates-data-common/components/chart-renderer/index.js +36 -17
- package/lib/components/z-templates-data-common/data-common.d.ts +20 -105
- package/lib/components/z-templates-data-common/data-common.helper.d.ts +2 -61
- package/lib/components/z-templates-data-common/data-common.helper.js +3 -351
- package/lib/components/z-templates-data-common/data-common.js +85 -66
- package/lib/components/z-templates-data-common/index.d.ts +3 -3
- package/lib/components/z-templates-data-common/index.js +1 -2
- package/lib/components/z-tpl/index.d.ts +3 -3
- package/lib/components/z-tpl/index.js +1 -2
- package/lib/components/z-tpl/tpl.d.ts +23 -23
- package/lib/components/z-tpl/tpl.js +7 -8
- package/lib/components/z-warehouse/index.d.ts +2 -2
- package/lib/components/z-warehouse/index.js +1 -2
- package/lib/components/z-warehouse/zWarehouse.d.ts +2 -3
- package/lib/components/z-warehouse/zWarehouse.js +3 -4
- package/lib/components/z-watermark/index.d.ts +3 -0
- package/lib/components/z-watermark/index.js +7 -0
- package/lib/components/z-watermark/zWatermark.d.ts +3 -0
- package/lib/components/z-watermark/zWatermark.js +8 -0
- package/lib/index.d.ts +44 -38
- package/lib/index.js +8 -2
- package/lib/index.scss +1 -1
- package/lib/style.js +1 -3
- package/lib/utils/hoc.d.ts +6 -6
- package/lib/utils/hoc.js +3 -3
- package/lib/utils/index.d.ts +13 -13
- package/lib/utils/index.js +7 -4
- package/lib/utils/props/button.d.ts +13 -13
- package/lib/utils/props/button.js +2 -3
- package/lib/utils/props/common.d.ts +7 -1
- package/lib/utils/props/common.js +19 -3
- package/lib/utils/props/editTable.d.ts +3 -3
- package/lib/utils/props/editTable.js +23 -17
- package/lib/utils/props/form.d.ts +36 -0
- package/lib/utils/props/form.js +35 -17
- package/lib/utils/props/listTpl.d.ts +29 -29
- package/lib/utils/props/listTpl.js +2 -3
- package/lib/utils/props/microModal.d.ts +7 -7
- package/lib/utils/props/microModal.js +1 -3
- package/lib/utils/props/microSwitch.d.ts +1 -1
- package/lib/utils/props/microSwitch.js +5 -4
- package/lib/utils/props/modalSelect.d.ts +6 -6
- package/lib/utils/props/modalSelect.js +2 -4
- package/lib/utils/props/operationRecords.d.ts +2 -2
- package/lib/utils/props/operationRecords.js +6 -7
- package/lib/utils/props/preview.d.ts +2 -2
- package/lib/utils/props/preview.js +6 -7
- package/lib/utils/props/tpl.d.ts +173 -162
- package/lib/utils/props/tpl.js +3 -5
- package/lib/utils/props/warehouseAndFactory.d.ts +1 -1
- package/lib/utils/props/warehouseAndFactory.js +2 -3
- package/lib/utils/rcProRequest.d.ts +3 -3
- package/lib/utils/rcProRequest.js +3 -4
- package/lib/variables.scss +3 -3
- package/package.json +5 -5
- package/es/components/z-templates-data-common/components/custom-renderer/index.d.ts +0 -13
- package/es/components/z-templates-data-common/components/custom-renderer/index.js +0 -172
- package/es/components/z-templates-data-common/components/dim-target/dim-target.helper.d.ts +0 -39
- package/es/components/z-templates-data-common/components/dim-target/dim-target.helper.js +0 -1
- package/es/components/z-templates-data-common/components/dim-target/index.d.ts +0 -16
- package/es/components/z-templates-data-common/components/dim-target/index.js +0 -430
- package/es/components/z-templates-data-common/components/dim-target/index.less +0 -49
- package/es/components/z-templates-data-common/components/dim-target/useUpdateEffect.d.ts +0 -8
- package/es/components/z-templates-data-common/components/dim-target/useUpdateEffect.js +0 -26
- package/es/components/z-templates-data-common/components/link-renderer/index.d.ts +0 -16
- package/es/components/z-templates-data-common/components/link-renderer/index.js +0 -320
- package/es/components/z-templates-data-common/components/link-renderer/index.less +0 -33
- package/es/components/z-templates-data-common/components/table-renderer/index.d.ts +0 -6
- package/es/components/z-templates-data-common/components/table-renderer/index.js +0 -481
- package/es/components/z-templates-data-common/components/table-renderer/table-renderer.helper.d.ts +0 -64
- package/es/components/z-templates-data-common/components/table-renderer/table-renderer.helper.js +0 -220
- package/lib/components/z-templates-data-common/components/custom-renderer/index.d.ts +0 -13
- package/lib/components/z-templates-data-common/components/custom-renderer/index.js +0 -178
- package/lib/components/z-templates-data-common/components/dim-target/dim-target.helper.d.ts +0 -39
- package/lib/components/z-templates-data-common/components/dim-target/dim-target.helper.js +0 -3
- package/lib/components/z-templates-data-common/components/dim-target/index.d.ts +0 -16
- package/lib/components/z-templates-data-common/components/dim-target/index.js +0 -438
- package/lib/components/z-templates-data-common/components/dim-target/index.less +0 -49
- package/lib/components/z-templates-data-common/components/dim-target/useUpdateEffect.d.ts +0 -8
- package/lib/components/z-templates-data-common/components/dim-target/useUpdateEffect.js +0 -30
- package/lib/components/z-templates-data-common/components/link-renderer/index.d.ts +0 -16
- package/lib/components/z-templates-data-common/components/link-renderer/index.js +0 -326
- package/lib/components/z-templates-data-common/components/link-renderer/index.less +0 -33
- package/lib/components/z-templates-data-common/components/table-renderer/index.d.ts +0 -6
- package/lib/components/z-templates-data-common/components/table-renderer/index.js +0 -487
- package/lib/components/z-templates-data-common/components/table-renderer/table-renderer.helper.d.ts +0 -64
- package/lib/components/z-templates-data-common/components/table-renderer/table-renderer.helper.js +0 -229
|
@@ -10,18 +10,15 @@ var _message2 = _interopRequireDefault(require("antd/lib/message"));
|
|
|
10
10
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
11
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _rcPro = require("@ztocwst/rc-pro");
|
|
13
|
-
var _chartRenderer = _interopRequireDefault(require("./components/chart-renderer"));
|
|
14
13
|
var _utils = require("../../utils");
|
|
15
|
-
|
|
16
|
-
function
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
/** 表格相关配置 */
|
|
20
|
-
|
|
14
|
+
var _chartRenderer = _interopRequireDefault(require("./components/chart-renderer"));
|
|
15
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
16
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
21
17
|
var ZTemplatesDataCommon = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) {
|
|
22
18
|
var querySetting = props.querySetting,
|
|
19
|
+
tabsSetting = props.tabsSetting,
|
|
20
|
+
chartSetting = props.chartSetting,
|
|
23
21
|
_unsafe_MixedSetter_chartSetting_select = props._unsafe_MixedSetter_chartSetting_select;
|
|
24
|
-
var chartSetting = props.chartSetting;
|
|
25
22
|
var formRef = (0, _react.useRef)();
|
|
26
23
|
var chartRenderRef = (0, _react.useRef)();
|
|
27
24
|
// todo 不知道meta里是哪里配置有问题,出现_unsafe_MixedSetter...
|
|
@@ -35,103 +32,125 @@ var ZTemplatesDataCommon = /*#__PURE__*/_react["default"].forwardRef(function (p
|
|
|
35
32
|
var onFinish = function onFinish(values) {
|
|
36
33
|
chartRenderRef.current.queryChart(values);
|
|
37
34
|
};
|
|
38
|
-
var
|
|
39
|
-
var _ref = (0, _asyncToGenerator2["default"])(
|
|
40
|
-
var
|
|
35
|
+
var onQueryValues = /*#__PURE__*/function () {
|
|
36
|
+
var _ref = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
37
|
+
var _formRef$current$vali, _formRef$current, _formRef$current$vali2;
|
|
41
38
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
42
39
|
while (1) switch (_context.prev = _context.next) {
|
|
43
40
|
case 0:
|
|
44
|
-
_context.
|
|
45
|
-
|
|
46
|
-
|
|
41
|
+
return _context.abrupt("return", (_formRef$current$vali = (_formRef$current = formRef.current) === null || _formRef$current === void 0 ? void 0 : (_formRef$current$vali2 = _formRef$current.validateFields) === null || _formRef$current$vali2 === void 0 ? void 0 : _formRef$current$vali2.call(_formRef$current)) !== null && _formRef$current$vali !== void 0 ? _formRef$current$vali : {});
|
|
42
|
+
case 1:
|
|
43
|
+
case "end":
|
|
44
|
+
return _context.stop();
|
|
45
|
+
}
|
|
46
|
+
}, _callee);
|
|
47
|
+
}));
|
|
48
|
+
return function onQueryValues() {
|
|
49
|
+
return _ref.apply(this, arguments);
|
|
50
|
+
};
|
|
51
|
+
}();
|
|
52
|
+
var onQueryFormatValues = /*#__PURE__*/function () {
|
|
53
|
+
var _ref2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2() {
|
|
54
|
+
var _formRef$current$vali3, _formRef$current2, _formRef$current2$val;
|
|
55
|
+
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
56
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
57
|
+
case 0:
|
|
58
|
+
return _context2.abrupt("return", (_formRef$current$vali3 = (_formRef$current2 = formRef.current) === null || _formRef$current2 === void 0 ? void 0 : (_formRef$current2$val = _formRef$current2.validateFieldsReturnFormatValue) === null || _formRef$current2$val === void 0 ? void 0 : _formRef$current2$val.call(_formRef$current2)) !== null && _formRef$current$vali3 !== void 0 ? _formRef$current$vali3 : {});
|
|
59
|
+
case 1:
|
|
60
|
+
case "end":
|
|
61
|
+
return _context2.stop();
|
|
62
|
+
}
|
|
63
|
+
}, _callee2);
|
|
64
|
+
}));
|
|
65
|
+
return function onQueryFormatValues() {
|
|
66
|
+
return _ref2.apply(this, arguments);
|
|
67
|
+
};
|
|
68
|
+
}();
|
|
69
|
+
var getCurrentKey = function getCurrentKey() {
|
|
70
|
+
var _chartRenderRef$curre, _chartRenderRef$curre2;
|
|
71
|
+
return (_chartRenderRef$curre = chartRenderRef.current) === null || _chartRenderRef$curre === void 0 ? void 0 : (_chartRenderRef$curre2 = _chartRenderRef$curre.getCurrentKey) === null || _chartRenderRef$curre2 === void 0 ? void 0 : _chartRenderRef$curre2.call(_chartRenderRef$curre);
|
|
72
|
+
};
|
|
73
|
+
var onConfirm = /*#__PURE__*/function () {
|
|
74
|
+
var _ref3 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3() {
|
|
75
|
+
var values;
|
|
76
|
+
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
77
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
78
|
+
case 0:
|
|
79
|
+
_context3.prev = 0;
|
|
80
|
+
_context3.next = 3;
|
|
81
|
+
return onQueryFormatValues();
|
|
47
82
|
case 3:
|
|
48
|
-
|
|
49
|
-
_context.t0 = _context.t1 !== null;
|
|
50
|
-
if (!_context.t0) {
|
|
51
|
-
_context.next = 7;
|
|
52
|
-
break;
|
|
53
|
-
}
|
|
54
|
-
_context.t0 = _yield$formRef$curren !== void 0;
|
|
55
|
-
case 7:
|
|
56
|
-
if (!_context.t0) {
|
|
57
|
-
_context.next = 11;
|
|
58
|
-
break;
|
|
59
|
-
}
|
|
60
|
-
_context.t2 = _yield$formRef$curren;
|
|
61
|
-
_context.next = 12;
|
|
62
|
-
break;
|
|
63
|
-
case 11:
|
|
64
|
-
_context.t2 = {};
|
|
65
|
-
case 12:
|
|
66
|
-
values = _context.t2;
|
|
83
|
+
values = _context3.sent;
|
|
67
84
|
chartRenderRef.current.queryChart(values);
|
|
68
|
-
|
|
85
|
+
_context3.next = 10;
|
|
69
86
|
break;
|
|
70
|
-
case
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
console.error(
|
|
74
|
-
case
|
|
87
|
+
case 7:
|
|
88
|
+
_context3.prev = 7;
|
|
89
|
+
_context3.t0 = _context3["catch"](0);
|
|
90
|
+
console.error(_context3.t0);
|
|
91
|
+
case 10:
|
|
75
92
|
case "end":
|
|
76
|
-
return
|
|
93
|
+
return _context3.stop();
|
|
77
94
|
}
|
|
78
|
-
},
|
|
95
|
+
}, _callee3, null, [[0, 7]]);
|
|
79
96
|
}));
|
|
80
97
|
return function onConfirm() {
|
|
81
|
-
return
|
|
98
|
+
return _ref3.apply(this, arguments);
|
|
82
99
|
};
|
|
83
100
|
}();
|
|
84
101
|
var onLink = function onLink(values) {
|
|
85
|
-
var _chartRenderRef$
|
|
86
|
-
return (_chartRenderRef$
|
|
102
|
+
var _chartRenderRef$curre3, _chartRenderRef$curre4;
|
|
103
|
+
return (_chartRenderRef$curre3 = chartRenderRef.current) === null || _chartRenderRef$curre3 === void 0 ? void 0 : (_chartRenderRef$curre4 = _chartRenderRef$curre3.onLink) === null || _chartRenderRef$curre4 === void 0 ? void 0 : _chartRenderRef$curre4.call(_chartRenderRef$curre3, values);
|
|
87
104
|
};
|
|
88
105
|
(0, _react.useImperativeHandle)(ref, function () {
|
|
89
106
|
return {
|
|
90
|
-
|
|
107
|
+
formRef: formRef,
|
|
108
|
+
onLink: onLink,
|
|
109
|
+
onQueryValues: onQueryValues,
|
|
110
|
+
onQueryFormatValues: onQueryFormatValues,
|
|
111
|
+
getCurrentKey: getCurrentKey
|
|
91
112
|
};
|
|
92
113
|
});
|
|
93
114
|
var formProps = (0, _utils.processFormProps)(querySetting);
|
|
94
|
-
console.log("formProps", formProps);
|
|
95
115
|
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_rcPro.ProFormRender, (0, _extends2["default"])({}, formProps, {
|
|
96
116
|
formRef: formRef,
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
var _ref2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(formatData) {
|
|
117
|
+
onFinish: (/*#__PURE__*/function () {
|
|
118
|
+
var _ref4 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee4(formatData) {
|
|
100
119
|
var _formProps$onFinish;
|
|
101
|
-
return _regenerator["default"].wrap(function
|
|
102
|
-
while (1) switch (
|
|
120
|
+
return _regenerator["default"].wrap(function _callee4$(_context4) {
|
|
121
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
103
122
|
case 0:
|
|
104
|
-
|
|
105
|
-
|
|
123
|
+
_context4.prev = 0;
|
|
124
|
+
_context4.next = 3;
|
|
106
125
|
return (_formProps$onFinish = formProps.onFinish) === null || _formProps$onFinish === void 0 ? void 0 : _formProps$onFinish.call(formProps, formatData);
|
|
107
126
|
case 3:
|
|
108
|
-
|
|
127
|
+
_context4.next = 5;
|
|
109
128
|
return onFinish === null || onFinish === void 0 ? void 0 : onFinish(formatData);
|
|
110
129
|
case 5:
|
|
111
|
-
|
|
130
|
+
_context4.next = 10;
|
|
112
131
|
break;
|
|
113
132
|
case 7:
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
_message2["default"].error(
|
|
133
|
+
_context4.prev = 7;
|
|
134
|
+
_context4.t0 = _context4["catch"](0);
|
|
135
|
+
_message2["default"].error(_context4.t0);
|
|
117
136
|
case 10:
|
|
118
137
|
case "end":
|
|
119
|
-
return
|
|
138
|
+
return _context4.stop();
|
|
120
139
|
}
|
|
121
|
-
},
|
|
140
|
+
}, _callee4, null, [[0, 7]]);
|
|
122
141
|
}));
|
|
123
142
|
return function (_x) {
|
|
124
|
-
return
|
|
143
|
+
return _ref4.apply(this, arguments);
|
|
125
144
|
};
|
|
126
|
-
}()
|
|
145
|
+
}())
|
|
127
146
|
})), /*#__PURE__*/_react["default"].createElement(_chartRenderer["default"], {
|
|
128
147
|
chartSetting: chartSetting,
|
|
148
|
+
tabsSetting: tabsSetting,
|
|
129
149
|
chartRenderRef: chartRenderRef,
|
|
130
150
|
onConfirm: onConfirm
|
|
131
151
|
}));
|
|
132
152
|
});
|
|
133
|
-
var ZTemplatesDataCommonContainer = /*#__PURE__*/function (_React$Component) {
|
|
134
|
-
(0, _inheritsLoose2["default"])(ZTemplatesDataCommonContainer, _React$Component);
|
|
153
|
+
var ZTemplatesDataCommonContainer = exports["default"] = /*#__PURE__*/function (_React$Component) {
|
|
135
154
|
function ZTemplatesDataCommonContainer(props) {
|
|
136
155
|
var _this;
|
|
137
156
|
_this = _React$Component.call(this, props) || this;
|
|
@@ -139,6 +158,7 @@ var ZTemplatesDataCommonContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
139
158
|
_this.chartRef = /*#__PURE__*/_react["default"].createRef();
|
|
140
159
|
return _this;
|
|
141
160
|
}
|
|
161
|
+
(0, _inheritsLoose2["default"])(ZTemplatesDataCommonContainer, _React$Component);
|
|
142
162
|
var _proto = ZTemplatesDataCommonContainer.prototype;
|
|
143
163
|
_proto.render = function render() {
|
|
144
164
|
return /*#__PURE__*/_react["default"].createElement(ZTemplatesDataCommon, (0, _extends2["default"])({}, this.props, {
|
|
@@ -146,5 +166,4 @@ var ZTemplatesDataCommonContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
146
166
|
}));
|
|
147
167
|
};
|
|
148
168
|
return ZTemplatesDataCommonContainer;
|
|
149
|
-
}(_react["default"].Component);
|
|
150
|
-
exports["default"] = ZTemplatesDataCommonContainer;
|
|
169
|
+
}(_react["default"].Component);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import ZTemplatesDataCommon from './data-common';
|
|
2
|
-
export type { TypeZTemplatesDataCommonProps } from './data-common';
|
|
3
|
-
export default ZTemplatesDataCommon;
|
|
1
|
+
import ZTemplatesDataCommon from './data-common';
|
|
2
|
+
export type { TypeZTemplatesDataCommonProps } from './data-common';
|
|
3
|
+
export default ZTemplatesDataCommon;
|
|
@@ -4,5 +4,4 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
exports.__esModule = true;
|
|
5
5
|
exports["default"] = void 0;
|
|
6
6
|
var _dataCommon = _interopRequireDefault(require("./data-common"));
|
|
7
|
-
var _default = _dataCommon["default"];
|
|
8
|
-
exports["default"] = _default;
|
|
7
|
+
var _default = exports["default"] = _dataCommon["default"];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import ZTpl from './tpl';
|
|
2
|
-
export type { RcBasicTpl } from '@ztocwst/rc-pro';
|
|
3
|
-
export default ZTpl;
|
|
1
|
+
import ZTpl from './tpl';
|
|
2
|
+
export type { RcBasicTpl } from '@ztocwst/rc-pro';
|
|
3
|
+
export default ZTpl;
|
|
@@ -4,5 +4,4 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
exports.__esModule = true;
|
|
5
5
|
exports["default"] = void 0;
|
|
6
6
|
var _tpl = _interopRequireDefault(require("./tpl"));
|
|
7
|
-
var _default = _tpl["default"];
|
|
8
|
-
exports["default"] = _default;
|
|
7
|
+
var _default = exports["default"] = _tpl["default"];
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 模板列表
|
|
3
|
-
*/
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
import type { RcPageProps } from '@ztocwst/rc-pro';
|
|
6
|
-
export default class ZTplListContainer extends React.Component<RcPageProps, any> {
|
|
7
|
-
pageRef: any;
|
|
8
|
-
listRef: any;
|
|
9
|
-
tableRef: any;
|
|
10
|
-
listFormRef: any;
|
|
11
|
-
listFormCurrentRef: any;
|
|
12
|
-
billFormRef: any;
|
|
13
|
-
billFormCurrentRef: any;
|
|
14
|
-
constructor(props: any);
|
|
15
|
-
getPageRef: () => any;
|
|
16
|
-
getListRef: () => any;
|
|
17
|
-
getTableRef: () => any;
|
|
18
|
-
getListFormRef: () => any;
|
|
19
|
-
getBillFormRef: () => any;
|
|
20
|
-
getListFormCurrentRef: () => any;
|
|
21
|
-
getBillFormCurrentRef: () => any;
|
|
22
|
-
render():
|
|
23
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* 模板列表
|
|
3
|
+
*/
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import type { RcPageProps } from '@ztocwst/rc-pro';
|
|
6
|
+
export default class ZTplListContainer extends React.Component<RcPageProps, any> {
|
|
7
|
+
pageRef: any;
|
|
8
|
+
listRef: any;
|
|
9
|
+
tableRef: any;
|
|
10
|
+
listFormRef: any;
|
|
11
|
+
listFormCurrentRef: any;
|
|
12
|
+
billFormRef: any;
|
|
13
|
+
billFormCurrentRef: any;
|
|
14
|
+
constructor(props: any);
|
|
15
|
+
getPageRef: () => any;
|
|
16
|
+
getListRef: () => any;
|
|
17
|
+
getTableRef: () => any;
|
|
18
|
+
getListFormRef: () => any;
|
|
19
|
+
getBillFormRef: () => any;
|
|
20
|
+
getListFormCurrentRef: () => any;
|
|
21
|
+
getBillFormCurrentRef: () => any;
|
|
22
|
+
render(): JSX.Element;
|
|
23
|
+
}
|
|
@@ -8,18 +8,17 @@ var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/inh
|
|
|
8
8
|
var React = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _rcPro = require("@ztocwst/rc-pro");
|
|
10
10
|
var _utils = require("../../utils");
|
|
11
|
-
function _getRequireWildcardCache(
|
|
12
|
-
function _interopRequireWildcard(
|
|
13
|
-
/**
|
|
14
|
-
* 模板列表
|
|
11
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
12
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
13
|
+
/**
|
|
14
|
+
* 模板列表
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
var ZTpl = function ZTpl(props) {
|
|
18
18
|
console.log(props, 'tplProps');
|
|
19
19
|
return /*#__PURE__*/React.createElement(_rcPro.RcBasicTpl, props);
|
|
20
20
|
};
|
|
21
|
-
var ZTplListContainer = /*#__PURE__*/function (_React$Component) {
|
|
22
|
-
(0, _inheritsLoose2["default"])(ZTplListContainer, _React$Component);
|
|
21
|
+
var ZTplListContainer = exports["default"] = /*#__PURE__*/function (_React$Component) {
|
|
23
22
|
function ZTplListContainer(props) {
|
|
24
23
|
var _this;
|
|
25
24
|
_this = _React$Component.call(this, props) || this;
|
|
@@ -60,6 +59,7 @@ var ZTplListContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
60
59
|
_this.billFormCurrentRef = /*#__PURE__*/React.createRef();
|
|
61
60
|
return _this;
|
|
62
61
|
}
|
|
62
|
+
(0, _inheritsLoose2["default"])(ZTplListContainer, _React$Component);
|
|
63
63
|
var _proto = ZTplListContainer.prototype;
|
|
64
64
|
_proto.render = function render() {
|
|
65
65
|
var tplProps = (0, _utils.processTplProps)(this.props, {
|
|
@@ -75,5 +75,4 @@ var ZTplListContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
75
75
|
}));
|
|
76
76
|
};
|
|
77
77
|
return ZTplListContainer;
|
|
78
|
-
}(React.Component);
|
|
79
|
-
exports["default"] = ZTplListContainer;
|
|
78
|
+
}(React.Component);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import ZWarehouse from './zWarehouse';
|
|
2
|
-
export default ZWarehouse;
|
|
1
|
+
import ZWarehouse from './zWarehouse';
|
|
2
|
+
export default ZWarehouse;
|
|
@@ -4,5 +4,4 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
exports.__esModule = true;
|
|
5
5
|
exports["default"] = void 0;
|
|
6
6
|
var _zWarehouse = _interopRequireDefault(require("./zWarehouse"));
|
|
7
|
-
var _default = _zWarehouse["default"];
|
|
8
|
-
exports["default"] = _default;
|
|
7
|
+
var _default = exports["default"] = _zWarehouse["default"];
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export default ZWarehouse;
|
|
1
|
+
declare const ZWarehouse: (props: any) => JSX.Element;
|
|
2
|
+
export default ZWarehouse;
|
|
@@ -5,12 +5,11 @@ exports["default"] = void 0;
|
|
|
5
5
|
var React = _interopRequireWildcard(require("react"));
|
|
6
6
|
var _rcPro = require("@ztocwst/rc-pro");
|
|
7
7
|
var _utils = require("../../utils");
|
|
8
|
-
function _getRequireWildcardCache(
|
|
9
|
-
function _interopRequireWildcard(
|
|
8
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
9
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
10
10
|
var ZWarehouse = function ZWarehouse(props) {
|
|
11
11
|
var WarehouseProps = props.WarehouseProps;
|
|
12
12
|
var wareProps = (0, _utils.processWarehouseAndFactoryProps)(WarehouseProps);
|
|
13
13
|
return /*#__PURE__*/React.createElement(_rcPro.SingleWarehouse, wareProps);
|
|
14
14
|
};
|
|
15
|
-
var _default = ZWarehouse;
|
|
16
|
-
exports["default"] = _default;
|
|
15
|
+
var _default = exports["default"] = ZWarehouse;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports["default"] = void 0;
|
|
6
|
+
var _zWatermark = _interopRequireDefault(require("./zWatermark"));
|
|
7
|
+
var _default = exports["default"] = _zWatermark["default"];
|
package/lib/index.d.ts
CHANGED
|
@@ -1,38 +1,44 @@
|
|
|
1
|
-
export type { ProButtonProps } from '@ztocwst/rc-pro/es/components/ProButton';
|
|
2
|
-
export { default as ZButton } from './components/z-button';
|
|
3
|
-
export type { ProFormRenderProps } from '@ztocwst/rc-pro';
|
|
4
|
-
export { default as ZForm } from './components/z-form';
|
|
5
|
-
export type { ProEllipsisProps } from '@ztocwst/rc-pro';
|
|
6
|
-
export { default as ZEllipsis } from './components/z-Ellipsis';
|
|
7
|
-
export type { ProTableProps } from '@ztocwst/rc-pro';
|
|
8
|
-
export { default as ZTable } from './components/z-table';
|
|
9
|
-
export type { ProPreviewProps } from '@ztocwst/rc-pro';
|
|
10
|
-
export { default as ZPreview } from './components/z-preview';
|
|
11
|
-
export type { RcListItem } from '@ztocwst/rc-pro';
|
|
12
|
-
export { default as ZList } from './components/z-list';
|
|
13
|
-
export type { RcPageProps } from '@ztocwst/rc-pro';
|
|
14
|
-
export { default as ZTpl } from './components/z-tpl';
|
|
15
|
-
export type { RcConfigConsumerProps } from '@ztocwst/rc-pro';
|
|
16
|
-
export { default as ZConfigProvider } from './components/z-config-provider';
|
|
17
|
-
export type { TypeZBoxProps } from './components/z-box';
|
|
18
|
-
export { default as ZBox } from './components/z-box';
|
|
19
|
-
export { default as ZDiv } from './components/z-div';
|
|
20
|
-
export type { TypeZStatisticProps } from './components/z-statistic';
|
|
21
|
-
export { default as ZStatistic } from './components/z-statistic';
|
|
22
|
-
export type { TypeZSimpleBarProps } from './components/z-simple-bar';
|
|
23
|
-
export { default as ZSimpleBar } from './components/z-simple-bar';
|
|
24
|
-
export { default as ZRankingList } from './components/z-ranking-list';
|
|
25
|
-
export { default as ZWarehouse } from './components/z-warehouse';
|
|
26
|
-
export { default as ZSingleFactory } from './components/z-singleFactory';
|
|
27
|
-
export { default as ZRcEditTable } from './components/z-editTable';
|
|
28
|
-
export { default as ZAuth } from './components/z-auth';
|
|
29
|
-
export type { TypeAuthProps } from './components/z-auth';
|
|
30
|
-
export { default as ZProProvider } from './components/z-pro-provider';
|
|
31
|
-
export type { TypeZProProviderProps } from './components/z-pro-provider';
|
|
32
|
-
export { default as ZOperationRecords } from './components/z-operation-records';
|
|
33
|
-
export { default as ZPointerBlock } from './components/z-pointer-block';
|
|
34
|
-
export type { TypeZPointerBlockProps } from './components/z-pointer-block';
|
|
35
|
-
export { default as ZAggBlock } from './components/z-agg-block';
|
|
36
|
-
export type { TypeAggBlockProps } from './components/z-agg-block';
|
|
37
|
-
export { default as
|
|
38
|
-
export type {
|
|
1
|
+
export type { ProButtonProps } from '@ztocwst/rc-pro/es/components/ProButton';
|
|
2
|
+
export { default as ZButton } from './components/z-button';
|
|
3
|
+
export type { ProFormRenderProps } from '@ztocwst/rc-pro';
|
|
4
|
+
export { default as ZForm } from './components/z-form';
|
|
5
|
+
export type { ProEllipsisProps } from '@ztocwst/rc-pro';
|
|
6
|
+
export { default as ZEllipsis } from './components/z-Ellipsis';
|
|
7
|
+
export type { ProTableProps } from '@ztocwst/rc-pro';
|
|
8
|
+
export { default as ZTable } from './components/z-table';
|
|
9
|
+
export type { ProPreviewProps } from '@ztocwst/rc-pro';
|
|
10
|
+
export { default as ZPreview } from './components/z-preview';
|
|
11
|
+
export type { RcListItem } from '@ztocwst/rc-pro';
|
|
12
|
+
export { default as ZList } from './components/z-list';
|
|
13
|
+
export type { RcPageProps } from '@ztocwst/rc-pro';
|
|
14
|
+
export { default as ZTpl } from './components/z-tpl';
|
|
15
|
+
export type { RcConfigConsumerProps } from '@ztocwst/rc-pro';
|
|
16
|
+
export { default as ZConfigProvider } from './components/z-config-provider';
|
|
17
|
+
export type { TypeZBoxProps } from './components/z-box';
|
|
18
|
+
export { default as ZBox } from './components/z-box';
|
|
19
|
+
export { default as ZDiv } from './components/z-div';
|
|
20
|
+
export type { TypeZStatisticProps } from './components/z-statistic';
|
|
21
|
+
export { default as ZStatistic } from './components/z-statistic';
|
|
22
|
+
export type { TypeZSimpleBarProps } from './components/z-simple-bar';
|
|
23
|
+
export { default as ZSimpleBar } from './components/z-simple-bar';
|
|
24
|
+
export { default as ZRankingList } from './components/z-ranking-list';
|
|
25
|
+
export { default as ZWarehouse } from './components/z-warehouse';
|
|
26
|
+
export { default as ZSingleFactory } from './components/z-singleFactory';
|
|
27
|
+
export { default as ZRcEditTable } from './components/z-editTable';
|
|
28
|
+
export { default as ZAuth } from './components/z-auth';
|
|
29
|
+
export type { TypeAuthProps } from './components/z-auth';
|
|
30
|
+
export { default as ZProProvider } from './components/z-pro-provider';
|
|
31
|
+
export type { TypeZProProviderProps } from './components/z-pro-provider';
|
|
32
|
+
export { default as ZOperationRecords } from './components/z-operation-records';
|
|
33
|
+
export { default as ZPointerBlock } from './components/z-pointer-block';
|
|
34
|
+
export type { TypeZPointerBlockProps } from './components/z-pointer-block';
|
|
35
|
+
export { default as ZAggBlock } from './components/z-agg-block';
|
|
36
|
+
export type { TypeAggBlockProps } from './components/z-agg-block';
|
|
37
|
+
export { default as ZDataTable } from './components/z-data-table';
|
|
38
|
+
export type { TypeZDataTableProps } from './components/z-data-table';
|
|
39
|
+
export { default as ZTemplatesDataCommon } from './components/z-templates-data-common';
|
|
40
|
+
export type { TypeZTemplatesDataCommonProps } from './components/z-templates-data-common';
|
|
41
|
+
export { default as ZSlick } from './components/z-slick';
|
|
42
|
+
export type { TypeZSlickProps } from './components/z-slick';
|
|
43
|
+
export { default as ZWatermark } from './components/z-watermark';
|
|
44
|
+
export type { TypeWatermarkProps } from './components/z-watermark';
|
package/lib/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
exports.__esModule = true;
|
|
5
|
-
exports.ZWarehouse = exports.ZTpl = exports.ZTemplatesDataCommon = exports.ZTable = exports.ZStatistic = exports.ZSingleFactory = exports.ZSimpleBar = exports.ZRcEditTable = exports.ZRankingList = exports.ZProProvider = exports.ZPreview = exports.ZPointerBlock = exports.ZOperationRecords = exports.ZList = exports.ZForm = exports.ZEllipsis = exports.ZDiv = exports.ZConfigProvider = exports.ZButton = exports.ZBox = exports.ZAuth = exports.ZAggBlock = void 0;
|
|
5
|
+
exports.ZWatermark = exports.ZWarehouse = exports.ZTpl = exports.ZTemplatesDataCommon = exports.ZTable = exports.ZStatistic = exports.ZSlick = exports.ZSingleFactory = exports.ZSimpleBar = exports.ZRcEditTable = exports.ZRankingList = exports.ZProProvider = exports.ZPreview = exports.ZPointerBlock = exports.ZOperationRecords = exports.ZList = exports.ZForm = exports.ZEllipsis = exports.ZDiv = exports.ZDataTable = exports.ZConfigProvider = exports.ZButton = exports.ZBox = exports.ZAuth = exports.ZAggBlock = void 0;
|
|
6
6
|
var _zButton = _interopRequireDefault(require("./components/z-button"));
|
|
7
7
|
exports.ZButton = _zButton["default"];
|
|
8
8
|
var _zForm = _interopRequireDefault(require("./components/z-form"));
|
|
@@ -45,5 +45,11 @@ var _zPointerBlock = _interopRequireDefault(require("./components/z-pointer-bloc
|
|
|
45
45
|
exports.ZPointerBlock = _zPointerBlock["default"];
|
|
46
46
|
var _zAggBlock = _interopRequireDefault(require("./components/z-agg-block"));
|
|
47
47
|
exports.ZAggBlock = _zAggBlock["default"];
|
|
48
|
+
var _zDataTable = _interopRequireDefault(require("./components/z-data-table"));
|
|
49
|
+
exports.ZDataTable = _zDataTable["default"];
|
|
48
50
|
var _zTemplatesDataCommon = _interopRequireDefault(require("./components/z-templates-data-common"));
|
|
49
|
-
exports.ZTemplatesDataCommon = _zTemplatesDataCommon["default"];
|
|
51
|
+
exports.ZTemplatesDataCommon = _zTemplatesDataCommon["default"];
|
|
52
|
+
var _zSlick = _interopRequireDefault(require("./components/z-slick"));
|
|
53
|
+
exports.ZSlick = _zSlick["default"];
|
|
54
|
+
var _zWatermark = _interopRequireDefault(require("./components/z-watermark"));
|
|
55
|
+
exports.ZWatermark = _zWatermark["default"];
|
package/lib/index.scss
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
// @import './components/rc-button/index.scss';
|
|
1
|
+
// @import './components/rc-button/index.scss';
|
package/lib/style.js
CHANGED
|
@@ -8,7 +8,5 @@ require('antd/lib/row/style');
|
|
|
8
8
|
require('antd/lib/col/style');
|
|
9
9
|
require('antd/lib/message/style');
|
|
10
10
|
require('antd/lib/tabs/style');
|
|
11
|
-
require('antd/lib/
|
|
12
|
-
require('antd/lib/radio/style');
|
|
13
|
-
require('antd/lib/spin/style');
|
|
11
|
+
require('antd/lib/carousel/style');
|
|
14
12
|
require('./index.scss');
|
package/lib/utils/hoc.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ComponentType } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* 简单包装,不做任何处理
|
|
4
|
-
* 部分组件ref比较特殊,包一层会解决这个问题
|
|
5
|
-
*/
|
|
6
|
-
export declare function withWrap(Comp: ComponentType<any>): import("react").ForwardRefExoticComponent<Pick<any, string | number | symbol> & import("react").RefAttributes<any>>;
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* 简单包装,不做任何处理
|
|
4
|
+
* 部分组件ref比较特殊,包一层会解决这个问题
|
|
5
|
+
*/
|
|
6
|
+
export declare function withWrap(Comp: ComponentType<any>): import("react").ForwardRefExoticComponent<Pick<any, string | number | symbol> & import("react").RefAttributes<any>>;
|
package/lib/utils/hoc.js
CHANGED
|
@@ -5,9 +5,9 @@ exports.__esModule = true;
|
|
|
5
5
|
exports.withWrap = withWrap;
|
|
6
6
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
7
7
|
var _react = require("react");
|
|
8
|
-
/**
|
|
9
|
-
* 简单包装,不做任何处理
|
|
10
|
-
* 部分组件ref比较特殊,包一层会解决这个问题
|
|
8
|
+
/**
|
|
9
|
+
* 简单包装,不做任何处理
|
|
10
|
+
* 部分组件ref比较特殊,包一层会解决这个问题
|
|
11
11
|
*/
|
|
12
12
|
function withWrap(Comp) {
|
|
13
13
|
return /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
package/lib/utils/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { processButtonProps } from './props/button';
|
|
2
|
-
import { processFormProps } from './props/form';
|
|
3
|
-
import { processListTplProps } from './props/listTpl';
|
|
4
|
-
import { processTplProps } from './props/tpl';
|
|
5
|
-
import { processMicroSwitchProps } from './props/microSwitch';
|
|
6
|
-
import { processMicroModalProps } from './props/microModal';
|
|
7
|
-
import { processWarehouseAndFactoryProps } from './props/warehouseAndFactory';
|
|
8
|
-
import { processEditTableProps } from './props/editTable';
|
|
9
|
-
import { processPreviewProps } from './props/preview';
|
|
10
|
-
import { processModalSelectProps, processModalSelectTablePropsColumns } from './props/modalSelect';
|
|
11
|
-
import { processOperationRecordsProps } from './props/operationRecords';
|
|
12
|
-
declare const processJsonOrFunctionProps: (props: any) => any;
|
|
13
|
-
export { processTplProps, processJsonOrFunctionProps, processFormProps, processListTplProps, processButtonProps, processMicroSwitchProps, processMicroModalProps, processPreviewProps, processWarehouseAndFactoryProps, processEditTableProps, processModalSelectProps, processModalSelectTablePropsColumns, processOperationRecordsProps };
|
|
1
|
+
import { processButtonProps } from './props/button';
|
|
2
|
+
import { processFormProps } from './props/form';
|
|
3
|
+
import { processListTplProps } from './props/listTpl';
|
|
4
|
+
import { processTplProps } from './props/tpl';
|
|
5
|
+
import { processMicroSwitchProps } from './props/microSwitch';
|
|
6
|
+
import { processMicroModalProps } from './props/microModal';
|
|
7
|
+
import { processWarehouseAndFactoryProps } from './props/warehouseAndFactory';
|
|
8
|
+
import { processEditTableProps } from './props/editTable';
|
|
9
|
+
import { processPreviewProps } from './props/preview';
|
|
10
|
+
import { processModalSelectProps, processModalSelectTablePropsColumns } from './props/modalSelect';
|
|
11
|
+
import { processOperationRecordsProps } from './props/operationRecords';
|
|
12
|
+
declare const processJsonOrFunctionProps: (props: any) => any;
|
|
13
|
+
export { processTplProps, processJsonOrFunctionProps, processFormProps, processListTplProps, processButtonProps, processMicroSwitchProps, processMicroModalProps, processPreviewProps, processWarehouseAndFactoryProps, processEditTableProps, processModalSelectProps, processModalSelectTablePropsColumns, processOperationRecordsProps, };
|
package/lib/utils/index.js
CHANGED
|
@@ -25,7 +25,10 @@ exports.processModalSelectProps = _modalSelect.processModalSelectProps;
|
|
|
25
25
|
exports.processModalSelectTablePropsColumns = _modalSelect.processModalSelectTablePropsColumns;
|
|
26
26
|
var _operationRecords = require("./props/operationRecords");
|
|
27
27
|
exports.processOperationRecordsProps = _operationRecords.processOperationRecordsProps;
|
|
28
|
-
var processJsonOrFunctionProps = function processJsonOrFunctionProps(props) {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
var processJsonOrFunctionProps = exports.processJsonOrFunctionProps = function processJsonOrFunctionProps(props) {
|
|
29
|
+
try {
|
|
30
|
+
return typeof props === 'function' ? props === null || props === void 0 ? void 0 : props() : props;
|
|
31
|
+
} catch (error) {
|
|
32
|
+
console.log(error);
|
|
33
|
+
}
|
|
34
|
+
};
|