@ztocwst/rc-pro-materials 0.2.1 → 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
package/es/components/z-templates-data-common/components/table-renderer/table-renderer.helper.js
DELETED
|
@@ -1,220 +0,0 @@
|
|
|
1
|
-
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
|
-
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
|
-
function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
5
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
6
|
-
import { separator, computeWidth, handleDecimal, handleThousand, handlePercent, handleLink, handleCondition, getDimTarget } from "../../data-common.helper";
|
|
7
|
-
export var stringTrim = function stringTrim(str) {
|
|
8
|
-
if (!str) return '';
|
|
9
|
-
return str.replace(/`|'|"/g, '');
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* 维度指标数据源处理
|
|
14
|
-
*/
|
|
15
|
-
export var handleDimTargetFormat = function handleDimTargetFormat(dimTargetSource, result) {
|
|
16
|
-
var _dimJson$data, _indexJson$data;
|
|
17
|
-
var _ref = dimTargetSource || {},
|
|
18
|
-
dimJson = _ref.dimJson,
|
|
19
|
-
indexJson = _ref.indexJson;
|
|
20
|
-
/** chartSetting 传入维度数据源 */
|
|
21
|
-
var dimensionSource = dimJson !== null && dimJson !== void 0 && (_dimJson$data = dimJson.data) !== null && _dimJson$data !== void 0 && _dimJson$data.length ? dimJson === null || dimJson === void 0 ? void 0 : dimJson.data : [];
|
|
22
|
-
/** chartSetting 传入指标数据源 */
|
|
23
|
-
var indexSource = indexJson !== null && indexJson !== void 0 && (_indexJson$data = indexJson.data) !== null && _indexJson$data !== void 0 && _indexJson$data.length ? indexJson === null || indexJson === void 0 ? void 0 : indexJson.data : [];
|
|
24
|
-
var _ref2 = result || {},
|
|
25
|
-
customIndexJson = _ref2.customIndexJson,
|
|
26
|
-
customDimJson = _ref2.customDimJson;
|
|
27
|
-
var rememberCheck = !!customDimJson || !!customIndexJson;
|
|
28
|
-
/** 记住勾选保存的维度;别名容易被修改,保存的是 description 属性 */
|
|
29
|
-
var customDim = customDimJson ? JSON.parse(customDimJson) : [];
|
|
30
|
-
/** 记住勾选保存的指标;别名容易被修改,保存的是 name 属性 */
|
|
31
|
-
var customIndex = customIndexJson ? JSON.parse(customIndexJson) : [];
|
|
32
|
-
/** 维度 */
|
|
33
|
-
var dimension = [];
|
|
34
|
-
/** 指标 */
|
|
35
|
-
var index = [];
|
|
36
|
-
if (dimensionSource.length) {
|
|
37
|
-
for (var _iterator = _createForOfIteratorHelperLoose(dimensionSource), _step; !(_step = _iterator()).done;) {
|
|
38
|
-
var item = _step.value;
|
|
39
|
-
var selected = item === null || item === void 0 ? void 0 : item.checked;
|
|
40
|
-
var alias = item === null || item === void 0 ? void 0 : item.alias;
|
|
41
|
-
var description = stringTrim(item.description);
|
|
42
|
-
if (customDim !== null && customDim !== void 0 && customDim.length) {
|
|
43
|
-
selected = customDim.includes(description);
|
|
44
|
-
}
|
|
45
|
-
if (selected) {
|
|
46
|
-
dimension.push(alias || description);
|
|
47
|
-
}
|
|
48
|
-
item.description = description;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
if (indexSource.length) {
|
|
52
|
-
for (var _iterator2 = _createForOfIteratorHelperLoose(indexSource), _step2; !(_step2 = _iterator2()).done;) {
|
|
53
|
-
var _item = _step2.value;
|
|
54
|
-
var _selected = _item === null || _item === void 0 ? void 0 : _item.checked;
|
|
55
|
-
var _alias = _item === null || _item === void 0 ? void 0 : _item.alias;
|
|
56
|
-
var name = stringTrim(_item.name);
|
|
57
|
-
if (customIndex !== null && customIndex !== void 0 && customIndex.length) {
|
|
58
|
-
_selected = customIndex.includes(name);
|
|
59
|
-
}
|
|
60
|
-
if (_selected) {
|
|
61
|
-
index.push(_alias || name);
|
|
62
|
-
}
|
|
63
|
-
_item.name = name;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/* 维度全选 */
|
|
68
|
-
var dimAll = !!dimensionSource.length && dimensionSource.length === dimension.length;
|
|
69
|
-
/* 维度不确定选中 */
|
|
70
|
-
var dimIndeterminate = dimAll ? false : !!dimension.length;
|
|
71
|
-
|
|
72
|
-
/* 指标全选 */
|
|
73
|
-
var targetAll = !!indexSource.length && indexSource.length === index.length;
|
|
74
|
-
/* 指标不确定选中 */
|
|
75
|
-
var targetsIndeterminate = targetAll ? false : !!index.length;
|
|
76
|
-
return {
|
|
77
|
-
rememberCheck: rememberCheck,
|
|
78
|
-
dims: {
|
|
79
|
-
all: dimAll,
|
|
80
|
-
title: dimJson === null || dimJson === void 0 ? void 0 : dimJson.title,
|
|
81
|
-
indeterminate: dimIndeterminate,
|
|
82
|
-
dimension: dimension,
|
|
83
|
-
dimensionSource: dimensionSource
|
|
84
|
-
},
|
|
85
|
-
targets: {
|
|
86
|
-
all: targetAll,
|
|
87
|
-
title: indexJson === null || indexJson === void 0 ? void 0 : indexJson.title,
|
|
88
|
-
indeterminate: targetsIndeterminate,
|
|
89
|
-
index: index,
|
|
90
|
-
indexSource: indexSource
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* 获取维度指标数据源
|
|
97
|
-
*/
|
|
98
|
-
export var getDimTargetData = /*#__PURE__*/function () {
|
|
99
|
-
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(rcProContext, params, dimTargetSource) {
|
|
100
|
-
var _yield$getDimTarget, success, _yield$getDimTarget$r, result;
|
|
101
|
-
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
102
|
-
while (1) switch (_context.prev = _context.next) {
|
|
103
|
-
case 0:
|
|
104
|
-
if (params !== null && params !== void 0 && params.dataSetName) {
|
|
105
|
-
_context.next = 2;
|
|
106
|
-
break;
|
|
107
|
-
}
|
|
108
|
-
return _context.abrupt("return", handleDimTargetFormat(dimTargetSource));
|
|
109
|
-
case 2:
|
|
110
|
-
_context.prev = 2;
|
|
111
|
-
_context.next = 5;
|
|
112
|
-
return getDimTarget(rcProContext, params);
|
|
113
|
-
case 5:
|
|
114
|
-
_yield$getDimTarget = _context.sent;
|
|
115
|
-
success = _yield$getDimTarget.success;
|
|
116
|
-
_yield$getDimTarget$r = _yield$getDimTarget.result;
|
|
117
|
-
result = _yield$getDimTarget$r === void 0 ? {} : _yield$getDimTarget$r;
|
|
118
|
-
if (!success) {
|
|
119
|
-
_context.next = 11;
|
|
120
|
-
break;
|
|
121
|
-
}
|
|
122
|
-
return _context.abrupt("return", handleDimTargetFormat(dimTargetSource, result));
|
|
123
|
-
case 11:
|
|
124
|
-
_context.next = 16;
|
|
125
|
-
break;
|
|
126
|
-
case 13:
|
|
127
|
-
_context.prev = 13;
|
|
128
|
-
_context.t0 = _context["catch"](2);
|
|
129
|
-
return _context.abrupt("return", Promise.reject(_context.t0));
|
|
130
|
-
case 16:
|
|
131
|
-
case "end":
|
|
132
|
-
return _context.stop();
|
|
133
|
-
}
|
|
134
|
-
}, _callee, null, [[2, 13]]);
|
|
135
|
-
}));
|
|
136
|
-
return function getDimTargetData(_x, _x2, _x3) {
|
|
137
|
-
return _ref3.apply(this, arguments);
|
|
138
|
-
};
|
|
139
|
-
}();
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* 数据渲染格式处理
|
|
143
|
-
*/
|
|
144
|
-
export var handleValueFormat = function handleValueFormat(value, record, find, condition, onLink) {
|
|
145
|
-
var _val;
|
|
146
|
-
var val = value;
|
|
147
|
-
if (typeof value === 'number') {
|
|
148
|
-
if (!(find !== null && find !== void 0 && find.percent) && typeof (find === null || find === void 0 ? void 0 : find.precision) === 'number') {
|
|
149
|
-
val = handleDecimal(val, find.precision);
|
|
150
|
-
}
|
|
151
|
-
if (find !== null && find !== void 0 && find.thousand) {
|
|
152
|
-
val = handleThousand(val);
|
|
153
|
-
}
|
|
154
|
-
if (find !== null && find !== void 0 && find.percent) {
|
|
155
|
-
val = handlePercent(val, find.precision);
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
if (find !== null && find !== void 0 && find.link) {
|
|
159
|
-
val = handleLink(value, onLink);
|
|
160
|
-
}
|
|
161
|
-
if (condition !== null && condition !== void 0 && condition.length) {
|
|
162
|
-
val = handleCondition(value, val, condition);
|
|
163
|
-
}
|
|
164
|
-
return (_val = val) !== null && _val !== void 0 ? _val : "-";
|
|
165
|
-
};
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
* 条件格式
|
|
169
|
-
*/
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* 根据维度指标获取表格列
|
|
173
|
-
*/
|
|
174
|
-
export var handleColumns = function handleColumns(option, expressions, onLink) {
|
|
175
|
-
var dimTarget = [].concat(option.dimension, option.index);
|
|
176
|
-
return dimTarget.map(function (title) {
|
|
177
|
-
var _find3, _find3$link, _find4, _find5, _title$toString;
|
|
178
|
-
var find;
|
|
179
|
-
var dataIndex;
|
|
180
|
-
var condition;
|
|
181
|
-
if (!find) {
|
|
182
|
-
var _option$dimensionSour, _find;
|
|
183
|
-
/* 通过别名或名称 查找当前维度的配置 */
|
|
184
|
-
find = (_option$dimensionSour = option.dimensionSource) === null || _option$dimensionSour === void 0 ? void 0 : _option$dimensionSour.find(function (item) {
|
|
185
|
-
return item.alias === title || item.description === title;
|
|
186
|
-
});
|
|
187
|
-
dataIndex = (_find = find) === null || _find === void 0 ? void 0 : _find.description;
|
|
188
|
-
}
|
|
189
|
-
if (!find) {
|
|
190
|
-
var _option$indexSource, _find2;
|
|
191
|
-
/* 通过别名或名称 查找当前指标的配置 */
|
|
192
|
-
find = (_option$indexSource = option.indexSource) === null || _option$indexSource === void 0 ? void 0 : _option$indexSource.find(function (item) {
|
|
193
|
-
return item.alias === title || item.name === title;
|
|
194
|
-
});
|
|
195
|
-
dataIndex = (_find2 = find) === null || _find2 === void 0 ? void 0 : _find2.name;
|
|
196
|
-
}
|
|
197
|
-
/* 条件格式设置 */
|
|
198
|
-
// if (expressions?.length) {
|
|
199
|
-
// condition = expressions?.filter((item) => item?.index?.includes(find?.name));
|
|
200
|
-
// }
|
|
201
|
-
|
|
202
|
-
var _ref4 = ((_find3 = find) === null || _find3 === void 0 ? void 0 : (_find3$link = _find3.link) === null || _find3$link === void 0 ? void 0 : _find3$link.split(separator)) || [],
|
|
203
|
-
dataSetName = _ref4[0];
|
|
204
|
-
return {
|
|
205
|
-
title: title,
|
|
206
|
-
dataIndex: dataIndex,
|
|
207
|
-
ellipsis: true,
|
|
208
|
-
sorter: (_find4 = find) === null || _find4 === void 0 ? void 0 : _find4.sorted,
|
|
209
|
-
width: ((_find5 = find) === null || _find5 === void 0 ? void 0 : _find5.width) || computeWidth(title === null || title === void 0 ? void 0 : (_title$toString = title.toString()) === null || _title$toString === void 0 ? void 0 : _title$toString.length),
|
|
210
|
-
render: function render(value, record) {
|
|
211
|
-
return handleValueFormat(value, record, find, condition, function () {
|
|
212
|
-
return onLink({
|
|
213
|
-
dataSetName: dataSetName,
|
|
214
|
-
record: record
|
|
215
|
-
});
|
|
216
|
-
});
|
|
217
|
-
}
|
|
218
|
-
};
|
|
219
|
-
});
|
|
220
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { TypeChartSettingProps } from '../../data-common';
|
|
3
|
-
import type { linkParamsType } from '../link-renderer';
|
|
4
|
-
declare const CustomRenderer: (props: TypeChartSettingProps & {
|
|
5
|
-
activeKey: string;
|
|
6
|
-
custom: boolean;
|
|
7
|
-
child: (p: any) => React.ReactNode;
|
|
8
|
-
chartRef?: import("react").Ref<{
|
|
9
|
-
onLink: (v: linkParamsType) => void;
|
|
10
|
-
queryChart: (v: Record<string, any>, d: string | undefined) => void;
|
|
11
|
-
}>;
|
|
12
|
-
}) => import("react").JSX.Element;
|
|
13
|
-
export default CustomRenderer;
|
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
exports.__esModule = true;
|
|
5
|
-
exports["default"] = void 0;
|
|
6
|
-
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
7
|
-
var _spin = _interopRequireDefault(require("antd/lib/spin"));
|
|
8
|
-
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
9
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
-
var _react = require("react");
|
|
11
|
-
var _rcPro = require("@ztocwst/rc-pro");
|
|
12
|
-
var _dataCommon = require("../../data-common.helper");
|
|
13
|
-
var _linkRenderer = _interopRequireDefault(require("../link-renderer"));
|
|
14
|
-
function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
15
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
16
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
17
|
-
var CustomRenderer = function CustomRenderer(props) {
|
|
18
|
-
var _props$child;
|
|
19
|
-
var _ref = props || {},
|
|
20
|
-
activeKey = _ref.activeKey,
|
|
21
|
-
autoLoad = _ref.autoLoad,
|
|
22
|
-
refreshRate = _ref.refreshRate,
|
|
23
|
-
dataSetName = _ref.dataSetName,
|
|
24
|
-
dimJson = _ref.dimJson,
|
|
25
|
-
indexJson = _ref.indexJson,
|
|
26
|
-
linkPage = _ref.linkPage,
|
|
27
|
-
linkPageTitle = _ref.linkPageTitle,
|
|
28
|
-
onConfirm = _ref.onConfirm,
|
|
29
|
-
formatter = _ref.formatter;
|
|
30
|
-
var rcProContext = (0, _react.useContext)(_rcPro.RcConfigContext);
|
|
31
|
-
var _useState = (0, _react.useState)(),
|
|
32
|
-
result = _useState[0],
|
|
33
|
-
setResult = _useState[1];
|
|
34
|
-
var _useState2 = (0, _react.useState)(false),
|
|
35
|
-
loading = _useState2[0],
|
|
36
|
-
setLoading = _useState2[1];
|
|
37
|
-
var _useState3 = (0, _react.useState)(false),
|
|
38
|
-
isLink = _useState3[0],
|
|
39
|
-
setIsLink = _useState3[1];
|
|
40
|
-
var linkChartRef = (0, _react.useRef)();
|
|
41
|
-
var timer = null;
|
|
42
|
-
var onLink = function onLink(values) {
|
|
43
|
-
var _linkChartRef$current, _linkChartRef$current2;
|
|
44
|
-
setIsLink(true);
|
|
45
|
-
(_linkChartRef$current = linkChartRef.current) === null || _linkChartRef$current === void 0 ? void 0 : (_linkChartRef$current2 = _linkChartRef$current.initial) === null || _linkChartRef$current2 === void 0 ? void 0 : _linkChartRef$current2.call(_linkChartRef$current, (0, _extends2["default"])({}, values));
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
// 获取数据源
|
|
49
|
-
var getDataSource = /*#__PURE__*/function () {
|
|
50
|
-
var _ref2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(query) {
|
|
51
|
-
var _indexJson$data, target, _iterator, _step, item, queryParams, data, res;
|
|
52
|
-
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
53
|
-
while (1) switch (_context.prev = _context.next) {
|
|
54
|
-
case 0:
|
|
55
|
-
if (query === void 0) {
|
|
56
|
-
query = {};
|
|
57
|
-
}
|
|
58
|
-
_context.prev = 1;
|
|
59
|
-
target = [];
|
|
60
|
-
if (indexJson !== null && indexJson !== void 0 && (_indexJson$data = indexJson.data) !== null && _indexJson$data !== void 0 && _indexJson$data.length) {
|
|
61
|
-
for (_iterator = _createForOfIteratorHelperLoose(indexJson.data); !(_step = _iterator()).done;) {
|
|
62
|
-
item = _step.value;
|
|
63
|
-
target.push({
|
|
64
|
-
description: item.name
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
queryParams = (0, _dataCommon.handleQueryParams)(query);
|
|
69
|
-
data = {
|
|
70
|
-
target: target,
|
|
71
|
-
queryParams: queryParams,
|
|
72
|
-
dataSetName: dataSetName
|
|
73
|
-
};
|
|
74
|
-
setLoading(true);
|
|
75
|
-
_context.next = 9;
|
|
76
|
-
return (0, _dataCommon.getReportData)(rcProContext, formatter ? formatter === null || formatter === void 0 ? void 0 : formatter(data) : data);
|
|
77
|
-
case 9:
|
|
78
|
-
res = _context.sent;
|
|
79
|
-
setLoading(false);
|
|
80
|
-
if (res !== null && res !== void 0 && res.success) {
|
|
81
|
-
setResult(res === null || res === void 0 ? void 0 : res.result);
|
|
82
|
-
}
|
|
83
|
-
_context.next = 19;
|
|
84
|
-
break;
|
|
85
|
-
case 14:
|
|
86
|
-
_context.prev = 14;
|
|
87
|
-
_context.t0 = _context["catch"](1);
|
|
88
|
-
setLoading(false);
|
|
89
|
-
setResult(null);
|
|
90
|
-
console.error(_context.t0);
|
|
91
|
-
case 19:
|
|
92
|
-
case "end":
|
|
93
|
-
return _context.stop();
|
|
94
|
-
}
|
|
95
|
-
}, _callee, null, [[1, 14]]);
|
|
96
|
-
}));
|
|
97
|
-
return function getDataSource(_x) {
|
|
98
|
-
return _ref2.apply(this, arguments);
|
|
99
|
-
};
|
|
100
|
-
}();
|
|
101
|
-
var queryChart = /*#__PURE__*/function () {
|
|
102
|
-
var _ref3 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(value) {
|
|
103
|
-
var queryParams, _linkChartRef$current3;
|
|
104
|
-
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
105
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
106
|
-
case 0:
|
|
107
|
-
queryParams = value[dataSetName] || value;
|
|
108
|
-
if (isLink) {
|
|
109
|
-
(_linkChartRef$current3 = linkChartRef.current) === null || _linkChartRef$current3 === void 0 ? void 0 : _linkChartRef$current3.queryChart(queryParams);
|
|
110
|
-
} else {
|
|
111
|
-
getDataSource(queryParams);
|
|
112
|
-
}
|
|
113
|
-
case 2:
|
|
114
|
-
case "end":
|
|
115
|
-
return _context2.stop();
|
|
116
|
-
}
|
|
117
|
-
}, _callee2);
|
|
118
|
-
}));
|
|
119
|
-
return function queryChart(_x2) {
|
|
120
|
-
return _ref3.apply(this, arguments);
|
|
121
|
-
};
|
|
122
|
-
}();
|
|
123
|
-
var handleClearInterval = function handleClearInterval() {
|
|
124
|
-
if (timer) {
|
|
125
|
-
clearInterval(timer);
|
|
126
|
-
timer = null;
|
|
127
|
-
}
|
|
128
|
-
};
|
|
129
|
-
(0, _react.useEffect)(function () {
|
|
130
|
-
var _ref4 = (activeKey === null || activeKey === void 0 ? void 0 : activeKey.split(_dataCommon.separator)) || [],
|
|
131
|
-
currentKey = _ref4[0];
|
|
132
|
-
if (currentKey === dataSetName) {
|
|
133
|
-
if (autoLoad) {
|
|
134
|
-
if (refreshRate) {
|
|
135
|
-
handleClearInterval();
|
|
136
|
-
timer = window.setInterval(function () {
|
|
137
|
-
return onConfirm === null || onConfirm === void 0 ? void 0 : onConfirm();
|
|
138
|
-
}, refreshRate * _dataCommon.timeUnit);
|
|
139
|
-
} else {
|
|
140
|
-
onConfirm === null || onConfirm === void 0 ? void 0 : onConfirm();
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
} else {
|
|
144
|
-
handleClearInterval();
|
|
145
|
-
}
|
|
146
|
-
return function () {
|
|
147
|
-
handleClearInterval();
|
|
148
|
-
};
|
|
149
|
-
}, [activeKey, autoLoad]);
|
|
150
|
-
(0, _react.useImperativeHandle)(props.chartRef, function () {
|
|
151
|
-
return {
|
|
152
|
-
onLink: onLink,
|
|
153
|
-
queryChart: queryChart
|
|
154
|
-
};
|
|
155
|
-
});
|
|
156
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
157
|
-
style: {
|
|
158
|
-
display: !isLink ? 'block' : 'none'
|
|
159
|
-
}
|
|
160
|
-
}, /*#__PURE__*/React.createElement(_spin["default"], {
|
|
161
|
-
spinning: loading
|
|
162
|
-
}, (_props$child = props.child) === null || _props$child === void 0 ? void 0 : _props$child.call(props, result))), /*#__PURE__*/React.createElement("div", {
|
|
163
|
-
style: {
|
|
164
|
-
display: isLink ? 'block' : 'none'
|
|
165
|
-
}
|
|
166
|
-
}, /*#__PURE__*/React.createElement(_linkRenderer["default"], {
|
|
167
|
-
chartRef: linkChartRef,
|
|
168
|
-
dimJson: dimJson,
|
|
169
|
-
linkPage: linkPage,
|
|
170
|
-
linkPageTitle: linkPageTitle,
|
|
171
|
-
onConfirm: onConfirm,
|
|
172
|
-
onBack: function onBack() {
|
|
173
|
-
setIsLink(false);
|
|
174
|
-
}
|
|
175
|
-
})));
|
|
176
|
-
};
|
|
177
|
-
var _default = CustomRenderer;
|
|
178
|
-
exports["default"] = _default;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import type { CheckboxValueType } from 'antd/es/checkbox/Group';
|
|
2
|
-
import { TypeTargetProps } from '../../data-common';
|
|
3
|
-
/**
|
|
4
|
-
* 维度状态
|
|
5
|
-
*/
|
|
6
|
-
export interface DimsType {
|
|
7
|
-
title: string;
|
|
8
|
-
all: boolean;
|
|
9
|
-
indeterminate: boolean;
|
|
10
|
-
dimension: CheckboxValueType[];
|
|
11
|
-
dimensionSource: Array<Omit<TypeTargetProps, 'amounted' | 'enName' | 'isFilter'>>;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* 指标状态
|
|
15
|
-
*/
|
|
16
|
-
export interface TargetsType {
|
|
17
|
-
title: string;
|
|
18
|
-
all: boolean;
|
|
19
|
-
indeterminate: boolean;
|
|
20
|
-
index: CheckboxValueType[];
|
|
21
|
-
indexSource: TypeTargetProps[];
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* 维度指标组件初始
|
|
25
|
-
*/
|
|
26
|
-
export interface DimTargetInitialValueType {
|
|
27
|
-
dims: DimsType;
|
|
28
|
-
targets: TargetsType;
|
|
29
|
-
rememberCheck: boolean;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* 维度指标 Change value
|
|
33
|
-
*/
|
|
34
|
-
export interface DimTargetChangeOptionType {
|
|
35
|
-
dimension: CheckboxValueType[];
|
|
36
|
-
dimensionSource: Array<Omit<TypeTargetProps, 'amounted' | 'enName' | 'isFilter'>>;
|
|
37
|
-
index: CheckboxValueType[];
|
|
38
|
-
indexSource: TypeTargetProps[];
|
|
39
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ProButtonItemsProps } from '@ztocwst/rc-pro';
|
|
3
|
-
import type { DimTargetChangeOptionType, DimTargetInitialValueType } from './dim-target.helper';
|
|
4
|
-
import './index.less';
|
|
5
|
-
export interface DimTargetProps {
|
|
6
|
-
value?: DimTargetInitialValueType;
|
|
7
|
-
dataSetName?: string;
|
|
8
|
-
remember?: boolean;
|
|
9
|
-
buttons?: ProButtonItemsProps[];
|
|
10
|
-
dimTargetRef?: React.Ref<{
|
|
11
|
-
getDimTargetValues: () => DimTargetChangeOptionType;
|
|
12
|
-
}>;
|
|
13
|
-
onChange?: (v: DimTargetChangeOptionType) => void;
|
|
14
|
-
}
|
|
15
|
-
declare const DimTarget: ({ value, dataSetName, remember, buttons, dimTargetRef, onChange, }: DimTargetProps) => JSX.Element;
|
|
16
|
-
export default DimTarget;
|