@luck-design-biz/luckda 1.0.0-alpha → 1.0.1-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/Builder/index.js +15 -3
- package/es/components/ComplexItem/index.js +65 -49
- package/es/components/LdAutoForm/index.js +6 -4
- package/es/components/LdFormList/index.js +3 -6
- package/es/components/LdGridForm/index.js +2 -1
- package/es/helper/form.js +1 -0
- package/es/helper/ldBuilder.js +8 -3
- package/es/locales/zh-CN.js +41 -4
- package/es/lowcode/constants/event-topics.js +0 -2
- package/es/lowcode/engine/launcher.js +3 -1
- package/es/lowcode/engine/meta/box.props.json +3 -3
- package/es/lowcode/engine/meta/button.props.default.json +1 -1
- package/es/lowcode/engine/meta/button.props.json +2 -2
- package/es/lowcode/engine/meta/cardlist.props.default.json +1 -0
- package/es/lowcode/engine/meta/cardlist.props.json +1 -0
- package/es/lowcode/engine/meta/components-list.json +0 -132
- package/es/lowcode/engine/meta/dialog.props.json +2 -2
- package/es/lowcode/engine/meta/drawer.props.default.json +1 -0
- package/es/lowcode/engine/meta/drawer.props.json +1 -0
- package/es/lowcode/engine/meta/fieldcomplex.props.default.json +1 -0
- package/es/lowcode/engine/meta/fieldcomplex.props.json +7 -0
- package/es/lowcode/engine/meta/fielddate.props.default.json +2 -0
- package/es/lowcode/engine/meta/fielddate.props.json +4 -2
- package/es/lowcode/engine/meta/fieldnumber.props.default.json +1 -0
- package/es/lowcode/engine/meta/fieldnumber.props.json +3 -2
- package/es/lowcode/engine/meta/fielduser.props.default.json +1 -1
- package/es/lowcode/engine/meta/fielduser.props.json +1 -1
- package/es/lowcode/engine/meta/form.props.default.json +13 -4
- package/es/lowcode/engine/meta/form.props.json +51 -13
- package/es/lowcode/engine/meta/iframe.props.default.json +2 -1
- package/es/lowcode/engine/meta/iframe.props.json +2 -1
- package/es/lowcode/engine/meta/image.props.default.json +2 -1
- package/es/lowcode/engine/meta/image.props.json +2 -1
- package/es/lowcode/engine/meta/imex.props.default.json +2 -1
- package/es/lowcode/engine/meta/imex.props.json +26 -5
- package/es/lowcode/engine/meta/js-editor/auto-complete.json +38 -20
- package/es/lowcode/engine/meta/jsx.props.default.json +1 -1
- package/es/lowcode/engine/meta/jsx.props.json +1 -1
- package/es/lowcode/engine/meta/layout.props.default.json +1 -1
- package/es/lowcode/engine/meta/layout.props.json +5 -5
- package/es/lowcode/engine/meta/link.props.default.json +2 -1
- package/es/lowcode/engine/meta/link.props.json +2 -1
- package/es/lowcode/engine/meta/page.props.json +6 -0
- package/es/lowcode/engine/meta/pagelayout.props.default.json +1 -1
- package/es/lowcode/engine/meta/pagelayout.props.json +1 -1
- package/es/lowcode/engine/meta/section.props.json +2 -1
- package/es/lowcode/engine/meta/split.props.default.json +1 -1
- package/es/lowcode/engine/meta/split.props.json +1 -1
- package/es/lowcode/engine/meta/table.props.json +2 -2
- package/es/lowcode/engine/meta/text.props.default.json +4 -2
- package/es/lowcode/engine/meta/text.props.json +8 -6
- package/es/lowcode/engine/provider/ContextProvider/index.js +63 -46
- package/es/lowcode/engine/provider/ContextProvider/router.js +43 -0
- package/es/lowcode/engine/{tools → provider/ContextProvider}/usePageDataStore.js +9 -7
- package/es/lowcode/engine/provider/ContextProvider/usePageVar.js +38 -15
- package/es/lowcode/engine/{tools → provider/ContextProvider}/useTodo.js +5 -7
- package/es/lowcode/engine/provider/ContextProvider/utils.js +157 -0
- package/es/lowcode/engine/provider/RemoteSourceProvider.js +1 -2
- package/es/lowcode/engine/tools/helper.js +7 -2
- package/es/lowcode/engine/tools/initDS.js +263 -0
- package/es/lowcode/engine/tools/useCombinedRefs.js +3 -2
- package/es/lowcode/painter/DesignOperator.js +10 -1
- package/es/lowcode/painter/Panel.js +2 -2
- package/es/lowcode/painter/components/AdvancePanel.js +3 -3
- package/es/lowcode/painter/components/Collapse.js +5 -2
- package/es/lowcode/painter/components/TipIcon.js +16 -0
- package/es/lowcode/painter/components/VarEditor.js +456 -0
- package/es/lowcode/painter/components/code-editor/FullScreenEditor.js +2 -2
- package/es/lowcode/painter/components/code-editor/JSEditor.js +3 -1
- package/es/lowcode/painter/components/code-editor/VisionEditor.js +81 -0
- package/es/lowcode/painter/components/field-setting/SettingUI.js +43 -5
- package/es/lowcode/painter/components/field-setting/index.js +27 -13
- package/es/lowcode/painter/components/field-setting/meta/frontRules.js +2 -1
- package/es/lowcode/painter/index.js +1 -0
- package/es/lowcode/painter/panel-section/BlockEditor/index.js +20 -6
- package/es/lowcode/painter/panel-section/BlocksEditor/index.js +2 -2
- package/es/lowcode/painter/panel-section/ComplexPop.js +242 -0
- package/es/lowcode/painter/panel-section/DataSetSelector.js +8 -0
- package/es/lowcode/painter/panel-section/FieldsSetting.js +30 -4
- package/es/lowcode/painter/panel-section/I18nInput.js +4 -2
- package/es/lowcode/painter/panel-section/Icon.js +9 -4
- package/es/lowcode/painter/panel-section/IconConditionSelector.js +7 -7
- package/es/lowcode/painter/panel-section/IconSelector.js +1 -1
- package/es/lowcode/painter/panel-section/ImpExp.js +1 -27
- package/es/lowcode/painter/panel-section/ImpExpAlone.js +1 -2
- package/es/lowcode/painter/panel-section/LayoutRatio.js +1 -0
- package/es/lowcode/painter/panel-section/PageVars.js +300 -0
- package/es/lowcode/painter/panel-section/StylePanel/StyleContext.js +4 -3
- package/es/lowcode/painter/panel-section/TabItems.js +6 -42
- package/es/lowcode/painter/panel-section/TextContent.js +79 -0
- package/es/lowcode/painter/services/complexPop.js +21 -0
- package/es/lowcode/painter/style/design.less +1 -1
- package/es/lowcode/painter/style/page-vars.less +25 -0
- package/es/lowcode/preview/index.js +1 -0
- package/es/lowcode/view/Canvas.js +24 -22
- package/es/lowcode/view/Loading.js +5 -7
- package/es/lowcode/view/Page.js +37 -15
- package/es/lowcode/view/index.js +1 -0
- package/es/lowcode/view/lc-components/Box/index.js +18 -3
- package/es/lowcode/view/lc-components/Box/meta.json +3 -3
- package/es/lowcode/view/lc-components/Button/index.js +7 -7
- package/es/lowcode/view/lc-components/Button/meta.json +2 -2
- package/es/lowcode/view/lc-components/CardList/meta.json +1 -0
- package/es/lowcode/view/lc-components/Dialog/index.js +6 -7
- package/es/lowcode/view/lc-components/Dialog/meta.json +2 -2
- package/es/lowcode/view/lc-components/Drawer/meta.json +1 -0
- package/es/lowcode/view/lc-components/FieldComplex/meta.json +7 -0
- package/es/lowcode/view/lc-components/FieldDate/meta.json +4 -2
- package/es/lowcode/view/lc-components/FieldNumber/meta.json +3 -2
- package/es/lowcode/view/lc-components/FieldUser/meta.json +1 -1
- package/es/lowcode/view/lc-components/Form/index.js +37 -21
- package/es/lowcode/view/lc-components/Form/meta.json +46 -12
- package/es/lowcode/view/lc-components/Iframe/meta.json +2 -1
- package/es/lowcode/view/lc-components/ImEx/index.js +174 -103
- package/es/lowcode/view/lc-components/ImEx/meta.json +26 -5
- package/es/lowcode/view/lc-components/Image/meta.json +2 -1
- package/es/lowcode/view/lc-components/JSX/meta.json +1 -1
- package/es/lowcode/view/lc-components/Layout/index.js +22 -5
- package/es/lowcode/view/lc-components/Layout/meta.json +5 -5
- package/es/lowcode/view/lc-components/Link/meta.json +2 -1
- package/es/lowcode/view/lc-components/Page/meta.json +6 -0
- package/es/lowcode/view/lc-components/PageLayout/FunctionDesign.js +5 -1
- package/es/lowcode/view/lc-components/PageLayout/meta.json +1 -1
- package/es/lowcode/view/lc-components/Section/index.js +2 -6
- package/es/lowcode/view/lc-components/Section/meta.json +2 -1
- package/es/lowcode/view/lc-components/Split/index.js +19 -4
- package/es/lowcode/view/lc-components/Split/meta.json +1 -1
- package/es/lowcode/view/lc-components/Table/index.js +29 -3
- package/es/lowcode/view/lc-components/Table/meta.json +2 -2
- package/es/lowcode/view/lc-components/Tabs/index.js +19 -16
- package/es/lowcode/view/lc-components/Text/index.js +9 -2
- package/es/lowcode/view/lc-components/Text/meta.json +6 -6
- package/es/lowcode/view/lc-components/Wrapper.js +17 -2
- package/es/lowcode/view/style/loading.less +14 -0
- package/es/services.js +19 -0
- package/es/upload/Form/gridForm.js +17 -7
- package/es/upload/FormItem/index.js +6 -6
- package/es/utils/form.js +4 -4
- package/es/utils/grid.js +2 -1
- package/lib/components/Builder/index.js +13 -1
- package/lib/components/ComplexItem/index.js +62 -47
- package/lib/components/LdAutoForm/index.js +5 -3
- package/lib/components/LdFormList/index.js +5 -8
- package/lib/components/LdGridForm/index.js +2 -1
- package/lib/helper/form.js +1 -0
- package/lib/helper/ldBuilder.js +8 -3
- package/lib/locales/zh-CN.js +41 -4
- package/lib/lowcode/constants/event-topics.js +1 -3
- package/lib/lowcode/engine/launcher.js +3 -1
- package/lib/lowcode/engine/meta/box.props.json +3 -3
- package/lib/lowcode/engine/meta/button.props.default.json +1 -1
- package/lib/lowcode/engine/meta/button.props.json +2 -2
- package/lib/lowcode/engine/meta/cardlist.props.default.json +1 -0
- package/lib/lowcode/engine/meta/cardlist.props.json +1 -0
- package/lib/lowcode/engine/meta/components-list.json +0 -132
- package/lib/lowcode/engine/meta/dialog.props.json +2 -2
- package/lib/lowcode/engine/meta/drawer.props.default.json +1 -0
- package/lib/lowcode/engine/meta/drawer.props.json +1 -0
- package/lib/lowcode/engine/meta/fieldcomplex.props.default.json +1 -0
- package/lib/lowcode/engine/meta/fieldcomplex.props.json +7 -0
- package/lib/lowcode/engine/meta/fielddate.props.default.json +2 -0
- package/lib/lowcode/engine/meta/fielddate.props.json +4 -2
- package/lib/lowcode/engine/meta/fieldnumber.props.default.json +1 -0
- package/lib/lowcode/engine/meta/fieldnumber.props.json +3 -2
- package/lib/lowcode/engine/meta/fielduser.props.default.json +1 -1
- package/lib/lowcode/engine/meta/fielduser.props.json +1 -1
- package/lib/lowcode/engine/meta/form.props.default.json +13 -4
- package/lib/lowcode/engine/meta/form.props.json +51 -13
- package/lib/lowcode/engine/meta/iframe.props.default.json +2 -1
- package/lib/lowcode/engine/meta/iframe.props.json +2 -1
- package/lib/lowcode/engine/meta/image.props.default.json +2 -1
- package/lib/lowcode/engine/meta/image.props.json +2 -1
- package/lib/lowcode/engine/meta/imex.props.default.json +2 -1
- package/lib/lowcode/engine/meta/imex.props.json +26 -5
- package/lib/lowcode/engine/meta/js-editor/auto-complete.json +38 -20
- package/lib/lowcode/engine/meta/jsx.props.default.json +1 -1
- package/lib/lowcode/engine/meta/jsx.props.json +1 -1
- package/lib/lowcode/engine/meta/layout.props.default.json +1 -1
- package/lib/lowcode/engine/meta/layout.props.json +5 -5
- package/lib/lowcode/engine/meta/link.props.default.json +2 -1
- package/lib/lowcode/engine/meta/link.props.json +2 -1
- package/lib/lowcode/engine/meta/page.props.json +6 -0
- package/lib/lowcode/engine/meta/pagelayout.props.default.json +1 -1
- package/lib/lowcode/engine/meta/pagelayout.props.json +1 -1
- package/lib/lowcode/engine/meta/section.props.json +2 -1
- package/lib/lowcode/engine/meta/split.props.default.json +1 -1
- package/lib/lowcode/engine/meta/split.props.json +1 -1
- package/lib/lowcode/engine/meta/table.props.json +2 -2
- package/lib/lowcode/engine/meta/text.props.default.json +4 -2
- package/lib/lowcode/engine/meta/text.props.json +8 -6
- package/lib/lowcode/engine/provider/ContextProvider/index.js +61 -44
- package/lib/lowcode/engine/provider/ContextProvider/router.js +57 -0
- package/lib/lowcode/engine/{tools → provider/ContextProvider}/usePageDataStore.js +9 -7
- package/lib/lowcode/engine/provider/ContextProvider/usePageVar.js +38 -16
- package/lib/lowcode/engine/{tools → provider/ContextProvider}/useTodo.js +5 -7
- package/lib/lowcode/engine/provider/ContextProvider/utils.js +170 -0
- package/lib/lowcode/engine/provider/RemoteSourceProvider.js +2 -3
- package/lib/lowcode/engine/tools/helper.js +7 -2
- package/lib/lowcode/engine/tools/initDS.js +270 -0
- package/lib/lowcode/engine/tools/useCombinedRefs.js +2 -1
- package/lib/lowcode/painter/DesignOperator.js +9 -0
- package/lib/lowcode/painter/Panel.js +2 -2
- package/lib/lowcode/painter/components/AdvancePanel.js +3 -3
- package/lib/lowcode/painter/components/Collapse.js +5 -2
- package/lib/lowcode/painter/components/TipIcon.js +23 -0
- package/lib/lowcode/painter/components/VarEditor.js +463 -0
- package/lib/lowcode/painter/components/code-editor/FullScreenEditor.js +2 -2
- package/lib/lowcode/painter/components/code-editor/JSEditor.js +3 -1
- package/lib/lowcode/painter/components/code-editor/VisionEditor.js +88 -0
- package/lib/lowcode/painter/components/field-setting/SettingUI.js +42 -4
- package/lib/lowcode/painter/components/field-setting/index.js +27 -13
- package/lib/lowcode/painter/components/field-setting/meta/frontRules.js +2 -1
- package/lib/lowcode/painter/index.js +1 -0
- package/lib/lowcode/painter/panel-section/BlockEditor/index.js +19 -5
- package/lib/lowcode/painter/panel-section/BlocksEditor/index.js +2 -2
- package/lib/lowcode/painter/panel-section/ComplexPop.js +250 -0
- package/lib/lowcode/painter/panel-section/DataSetSelector.js +8 -0
- package/lib/lowcode/painter/panel-section/FieldsSetting.js +30 -4
- package/lib/lowcode/painter/panel-section/I18nInput.js +4 -2
- package/lib/lowcode/painter/panel-section/Icon.js +8 -3
- package/lib/lowcode/painter/panel-section/IconConditionSelector.js +6 -6
- package/lib/lowcode/painter/panel-section/IconSelector.js +1 -1
- package/lib/lowcode/painter/panel-section/ImpExp.js +0 -26
- package/lib/lowcode/painter/panel-section/ImpExpAlone.js +0 -1
- package/lib/lowcode/painter/panel-section/LayoutRatio.js +1 -0
- package/lib/lowcode/painter/panel-section/PageVars.js +308 -0
- package/lib/lowcode/painter/panel-section/StylePanel/StyleContext.js +4 -3
- package/lib/lowcode/painter/panel-section/TabItems.js +6 -42
- package/lib/lowcode/painter/panel-section/TextContent.js +87 -0
- package/lib/lowcode/painter/services/complexPop.js +28 -0
- package/lib/lowcode/painter/style/design.less +1 -1
- package/lib/lowcode/painter/style/page-vars.less +25 -0
- package/lib/lowcode/preview/index.js +1 -0
- package/lib/lowcode/view/Canvas.js +24 -22
- package/lib/lowcode/view/Loading.js +5 -7
- package/lib/lowcode/view/Page.js +35 -13
- package/lib/lowcode/view/index.js +1 -0
- package/lib/lowcode/view/lc-components/Box/index.js +17 -2
- package/lib/lowcode/view/lc-components/Box/meta.json +3 -3
- package/lib/lowcode/view/lc-components/Button/index.js +5 -5
- package/lib/lowcode/view/lc-components/Button/meta.json +2 -2
- package/lib/lowcode/view/lc-components/CardList/meta.json +1 -0
- package/lib/lowcode/view/lc-components/Dialog/index.js +6 -7
- package/lib/lowcode/view/lc-components/Dialog/meta.json +2 -2
- package/lib/lowcode/view/lc-components/Drawer/meta.json +1 -0
- package/lib/lowcode/view/lc-components/FieldComplex/meta.json +7 -0
- package/lib/lowcode/view/lc-components/FieldDate/meta.json +4 -2
- package/lib/lowcode/view/lc-components/FieldNumber/meta.json +3 -2
- package/lib/lowcode/view/lc-components/FieldUser/meta.json +1 -1
- package/lib/lowcode/view/lc-components/Form/index.js +36 -20
- package/lib/lowcode/view/lc-components/Form/meta.json +46 -12
- package/lib/lowcode/view/lc-components/Iframe/meta.json +2 -1
- package/lib/lowcode/view/lc-components/ImEx/index.js +172 -101
- package/lib/lowcode/view/lc-components/ImEx/meta.json +26 -5
- package/lib/lowcode/view/lc-components/Image/meta.json +2 -1
- package/lib/lowcode/view/lc-components/JSX/meta.json +1 -1
- package/lib/lowcode/view/lc-components/Layout/index.js +21 -4
- package/lib/lowcode/view/lc-components/Layout/meta.json +5 -5
- package/lib/lowcode/view/lc-components/Link/meta.json +2 -1
- package/lib/lowcode/view/lc-components/Page/meta.json +6 -0
- package/lib/lowcode/view/lc-components/PageLayout/FunctionDesign.js +5 -1
- package/lib/lowcode/view/lc-components/PageLayout/meta.json +1 -1
- package/lib/lowcode/view/lc-components/Section/index.js +2 -6
- package/lib/lowcode/view/lc-components/Section/meta.json +2 -1
- package/lib/lowcode/view/lc-components/Split/index.js +18 -3
- package/lib/lowcode/view/lc-components/Split/meta.json +1 -1
- package/lib/lowcode/view/lc-components/Table/index.js +30 -4
- package/lib/lowcode/view/lc-components/Table/meta.json +2 -2
- package/lib/lowcode/view/lc-components/Tabs/index.js +17 -14
- package/lib/lowcode/view/lc-components/Text/index.js +8 -1
- package/lib/lowcode/view/lc-components/Text/meta.json +6 -6
- package/lib/lowcode/view/lc-components/Wrapper.js +16 -1
- package/lib/lowcode/view/style/loading.less +14 -0
- package/lib/services.js +20 -0
- package/lib/upload/Form/gridForm.js +17 -7
- package/lib/upload/FormItem/index.js +6 -6
- package/lib/utils/form.js +3 -3
- package/lib/utils/grid.js +2 -1
- package/package.json +3 -3
|
@@ -3,18 +3,16 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
|
3
3
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
4
4
|
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
|
5
5
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
6
|
-
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
7
|
-
var _excluded = ["id", "title", "type", "size", "iconFont", "block", "ghost", "css", "className", "onClick", "advance", "impexpSetting"];
|
|
8
6
|
import React, { useRef, useState, useEffect } from 'react';
|
|
9
7
|
import PropTypes from 'prop-types';
|
|
10
|
-
import { useMemoizedFn,
|
|
11
|
-
import { notification,
|
|
8
|
+
import { useMemoizedFn, useRequest } from 'ahooks';
|
|
9
|
+
import { notification, Progress, message } from 'luck-design/antd';
|
|
12
10
|
import { BasicForm, BasicFormItem, PopWindow } from 'luck-design';
|
|
13
11
|
import api from "@/services/ApiConfig";
|
|
14
12
|
import styled from 'styled-components';
|
|
15
13
|
import classNames from 'classnames';
|
|
16
14
|
import styles from "./index.less";
|
|
17
|
-
import { useRemoteSource } from "../../../engine/provider/ContextProvider";
|
|
15
|
+
import { useContext, useRemoteSource } from "../../../engine/provider/ContextProvider";
|
|
18
16
|
import Wrapper from "../Wrapper";
|
|
19
17
|
import { LdButton as Button } from "../../../../components/LdCom";
|
|
20
18
|
import Icon from "../../../../components/IconFont";
|
|
@@ -50,12 +48,18 @@ var LCImex = function LCImex(_ref) {
|
|
|
50
48
|
onClick = _ref.onClick,
|
|
51
49
|
advance = _ref.advance,
|
|
52
50
|
impexpSetting = _ref.impexpSetting,
|
|
53
|
-
|
|
51
|
+
serial = _ref.serial,
|
|
52
|
+
serialEffect = _ref.serialEffect;
|
|
54
53
|
var ref = useRef();
|
|
55
|
-
var
|
|
54
|
+
var ctx = useContext();
|
|
56
55
|
var _useRemoteSource = useRemoteSource(),
|
|
57
|
-
module = _useRemoteSource.module
|
|
58
|
-
|
|
56
|
+
module = _useRemoteSource.module;
|
|
57
|
+
useEffect(function () {
|
|
58
|
+
ctx.doAction(advance.events.onMount);
|
|
59
|
+
return function () {
|
|
60
|
+
return ctx.doAction(advance.events.onUnmount);
|
|
61
|
+
};
|
|
62
|
+
}, []);
|
|
59
63
|
var getTargetDom = useMemoizedFn(function () {
|
|
60
64
|
var _ref$current;
|
|
61
65
|
return (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.buttonNode;
|
|
@@ -76,7 +80,7 @@ var LCImex = function LCImex(_ref) {
|
|
|
76
80
|
var _fetchExcelStateParams = {
|
|
77
81
|
moduleCode: moduleCode,
|
|
78
82
|
behaviorKey: behaviorKey,
|
|
79
|
-
reportType:
|
|
83
|
+
reportType: 'export'
|
|
80
84
|
};
|
|
81
85
|
getFindexcelstate(_fetchExcelStatePrefix, _fetchExcelStateParams).then(function (response) {
|
|
82
86
|
if (response.code === 1) {
|
|
@@ -123,7 +127,7 @@ var LCImex = function LCImex(_ref) {
|
|
|
123
127
|
_exportExcelParams = {
|
|
124
128
|
moduleCode: module.moduleCode,
|
|
125
129
|
behaviorKey: behaviorKey,
|
|
126
|
-
reportType:
|
|
130
|
+
reportType: 'export'
|
|
127
131
|
};
|
|
128
132
|
_exportExcelPrefix = "/".concat(strategy);
|
|
129
133
|
_context.next = 9;
|
|
@@ -151,47 +155,68 @@ var LCImex = function LCImex(_ref) {
|
|
|
151
155
|
};
|
|
152
156
|
}());
|
|
153
157
|
};
|
|
154
|
-
var doExportAll = function
|
|
155
|
-
var
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
158
|
+
var doExportAll = /*#__PURE__*/function () {
|
|
159
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(onExportAll) {
|
|
160
|
+
var key, notificationConfig, process, ret;
|
|
161
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
162
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
163
|
+
case 0:
|
|
164
|
+
key = 'exportAll';
|
|
165
|
+
notificationConfig = {
|
|
166
|
+
key: key,
|
|
167
|
+
duration: null,
|
|
168
|
+
message: '正在导出数据...',
|
|
169
|
+
placement: 'bottomRight',
|
|
170
|
+
closeIcon: /*#__PURE__*/React.createElement("div", null),
|
|
171
|
+
icon: /*#__PURE__*/React.createElement(Icon, {
|
|
172
|
+
type: "cloud-download",
|
|
173
|
+
className: styles.exportTheme
|
|
174
|
+
})
|
|
175
|
+
};
|
|
176
|
+
process = function process(i) {
|
|
177
|
+
notification.open(_objectSpread(_objectSpread({}, notificationConfig), {}, {
|
|
178
|
+
description: /*#__PURE__*/React.createElement(Progress, {
|
|
179
|
+
percent: i
|
|
180
|
+
})
|
|
181
|
+
}));
|
|
182
|
+
};
|
|
183
|
+
notification.open(_objectSpread(_objectSpread({}, notificationConfig), {}, {
|
|
184
|
+
description: /*#__PURE__*/React.createElement(Progress, {
|
|
185
|
+
percent: 0
|
|
186
|
+
})
|
|
187
|
+
}));
|
|
188
|
+
_context2.prev = 4;
|
|
189
|
+
_context2.next = 7;
|
|
190
|
+
return onExportAll(process);
|
|
191
|
+
case 7:
|
|
192
|
+
ret = _context2.sent;
|
|
193
|
+
if (ret) {
|
|
194
|
+
window.location.href = ret;
|
|
195
|
+
}
|
|
196
|
+
notification.close(key);
|
|
197
|
+
_context2.next = 15;
|
|
198
|
+
break;
|
|
199
|
+
case 12:
|
|
200
|
+
_context2.prev = 12;
|
|
201
|
+
_context2.t0 = _context2["catch"](4);
|
|
202
|
+
notification.open(_objectSpread(_objectSpread({}, notificationConfig), {}, {
|
|
203
|
+
icon: /*#__PURE__*/React.createElement(Icon, {
|
|
204
|
+
type: "cloud-download",
|
|
205
|
+
className: styles.exportErrorTheme
|
|
206
|
+
}),
|
|
207
|
+
message: '导出失败',
|
|
208
|
+
duration: 4
|
|
209
|
+
}));
|
|
210
|
+
case 15:
|
|
211
|
+
case "end":
|
|
212
|
+
return _context2.stop();
|
|
213
|
+
}
|
|
214
|
+
}, _callee2, null, [[4, 12]]);
|
|
178
215
|
}));
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
notification.close(key);
|
|
184
|
-
}).catch(function () {
|
|
185
|
-
return notification.open(_objectSpread(_objectSpread({}, notificationConfig), {}, {
|
|
186
|
-
icon: /*#__PURE__*/React.createElement(Icon, {
|
|
187
|
-
type: "cloud-download",
|
|
188
|
-
className: styles.exportErrorTheme
|
|
189
|
-
}),
|
|
190
|
-
message: '导出失败',
|
|
191
|
-
duration: 4
|
|
192
|
-
}));
|
|
193
|
-
});
|
|
194
|
-
};
|
|
216
|
+
return function doExportAll(_x3) {
|
|
217
|
+
return _ref4.apply(this, arguments);
|
|
218
|
+
};
|
|
219
|
+
}();
|
|
195
220
|
|
|
196
221
|
// ========= 导出 ==========
|
|
197
222
|
|
|
@@ -216,18 +241,18 @@ var LCImex = function LCImex(_ref) {
|
|
|
216
241
|
manual: true
|
|
217
242
|
}),
|
|
218
243
|
runAsyncImport = _useRequest2.runAsync;
|
|
219
|
-
var fecthFindExcelState = function fecthFindExcelState(
|
|
220
|
-
var strategy =
|
|
221
|
-
batchNo =
|
|
222
|
-
moduleCode =
|
|
223
|
-
behaviorKey =
|
|
224
|
-
templateId =
|
|
244
|
+
var fecthFindExcelState = function fecthFindExcelState(_ref5, callback) {
|
|
245
|
+
var strategy = _ref5.strategy,
|
|
246
|
+
batchNo = _ref5.batchNo,
|
|
247
|
+
moduleCode = _ref5.moduleCode,
|
|
248
|
+
behaviorKey = _ref5.behaviorKey,
|
|
249
|
+
templateId = _ref5.templateId;
|
|
225
250
|
var _fetchExcelStatePrefix = "/".concat(strategy, "/").concat(batchNo);
|
|
226
251
|
var _fetchExcelStateParams = {
|
|
227
252
|
moduleCode: moduleCode,
|
|
228
253
|
behaviorKey: behaviorKey,
|
|
229
254
|
templateId: templateId,
|
|
230
|
-
reportType:
|
|
255
|
+
reportType: 'import'
|
|
231
256
|
};
|
|
232
257
|
getFindexcelstate(_fetchExcelStatePrefix, _fetchExcelStateParams).then(function (response) {
|
|
233
258
|
if (response.code === 1) {
|
|
@@ -263,13 +288,13 @@ var LCImex = function LCImex(_ref) {
|
|
|
263
288
|
}
|
|
264
289
|
}, [visible]);
|
|
265
290
|
var handleImport = /*#__PURE__*/function () {
|
|
266
|
-
var
|
|
291
|
+
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(err, values) {
|
|
267
292
|
var _importExcelParams, strategy, importParameter, _importExcelPrefix, importExcelResponse;
|
|
268
|
-
return _regeneratorRuntime().wrap(function
|
|
269
|
-
while (1) switch (
|
|
293
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
294
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
270
295
|
case 0:
|
|
271
296
|
if (err) {
|
|
272
|
-
|
|
297
|
+
_context3.next = 14;
|
|
273
298
|
break;
|
|
274
299
|
}
|
|
275
300
|
_importExcelParams = new FormData();
|
|
@@ -287,10 +312,10 @@ var LCImex = function LCImex(_ref) {
|
|
|
287
312
|
};
|
|
288
313
|
_importExcelParams.append('importParameter', JSON.stringify(importParameter));
|
|
289
314
|
_importExcelPrefix = "/".concat(strategy);
|
|
290
|
-
|
|
315
|
+
_context3.next = 9;
|
|
291
316
|
return runAsyncImport(_importExcelPrefix, _importExcelParams);
|
|
292
317
|
case 9:
|
|
293
|
-
importExcelResponse =
|
|
318
|
+
importExcelResponse = _context3.sent;
|
|
294
319
|
setActionStep('uploading');
|
|
295
320
|
fecthFindExcelState(_objectSpread({
|
|
296
321
|
strategy: strategy,
|
|
@@ -298,70 +323,111 @@ var LCImex = function LCImex(_ref) {
|
|
|
298
323
|
}, importParameter), function (result) {
|
|
299
324
|
setUploadResult(result || {});
|
|
300
325
|
});
|
|
301
|
-
|
|
326
|
+
_context3.next = 15;
|
|
302
327
|
break;
|
|
303
328
|
case 14:
|
|
304
329
|
message.info('请选择Excel文件!');
|
|
305
330
|
case 15:
|
|
306
331
|
case "end":
|
|
307
|
-
return
|
|
332
|
+
return _context3.stop();
|
|
308
333
|
}
|
|
309
|
-
},
|
|
334
|
+
}, _callee3);
|
|
310
335
|
}));
|
|
311
|
-
return function handleImport(
|
|
312
|
-
return
|
|
336
|
+
return function handleImport(_x4, _x5) {
|
|
337
|
+
return _ref6.apply(this, arguments);
|
|
313
338
|
};
|
|
314
339
|
}();
|
|
315
340
|
|
|
316
341
|
// ========= 导入 ==========
|
|
317
342
|
|
|
318
343
|
var handleClick = useMemoizedFn( /*#__PURE__*/function () {
|
|
319
|
-
var
|
|
320
|
-
|
|
321
|
-
|
|
344
|
+
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(e) {
|
|
345
|
+
var resault, response;
|
|
346
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
347
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
322
348
|
case 0:
|
|
323
349
|
if (!onClick) {
|
|
324
|
-
|
|
350
|
+
_context4.next = 3;
|
|
325
351
|
break;
|
|
326
352
|
}
|
|
327
353
|
onClick(e);
|
|
328
|
-
return
|
|
354
|
+
return _context4.abrupt("return");
|
|
329
355
|
case 3:
|
|
356
|
+
_context4.next = 5;
|
|
357
|
+
return ctx.doAction(advance.events.beforeExe);
|
|
358
|
+
case 5:
|
|
359
|
+
resault = _context4.sent;
|
|
360
|
+
if (!(resault === false)) {
|
|
361
|
+
_context4.next = 9;
|
|
362
|
+
break;
|
|
363
|
+
}
|
|
364
|
+
ctx.doAction(advance.events.afterExe, {
|
|
365
|
+
success: false
|
|
366
|
+
});
|
|
367
|
+
return _context4.abrupt("return");
|
|
368
|
+
case 9:
|
|
330
369
|
if (!(impexpSetting.type === 'export')) {
|
|
331
|
-
|
|
370
|
+
_context4.next = 20;
|
|
332
371
|
break;
|
|
333
372
|
}
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
} else {
|
|
338
|
-
message.info("\u672A\u914D\u7F6E\u884C\u4E3A\uFF01");
|
|
373
|
+
if (!(isString(impexpSetting.customParam) && impexpSetting.customParam)) {
|
|
374
|
+
_context4.next = 16;
|
|
375
|
+
break;
|
|
339
376
|
}
|
|
340
|
-
|
|
377
|
+
_context4.next = 13;
|
|
378
|
+
return doExportAll(handleExportAll);
|
|
379
|
+
case 13:
|
|
380
|
+
ctx.doAction(advance.events.afterExe, {
|
|
381
|
+
success: true
|
|
382
|
+
});
|
|
383
|
+
_context4.next = 18;
|
|
341
384
|
break;
|
|
342
|
-
case
|
|
385
|
+
case 16:
|
|
386
|
+
message.info("\u672A\u914D\u7F6E\u884C\u4E3A\uFF01");
|
|
387
|
+
ctx.doAction(advance.events.afterExe, {
|
|
388
|
+
success: false
|
|
389
|
+
});
|
|
390
|
+
case 18:
|
|
391
|
+
_context4.next = 29;
|
|
392
|
+
break;
|
|
393
|
+
case 20:
|
|
343
394
|
if (impexpSetting.customParam) {
|
|
344
|
-
|
|
395
|
+
_context4.next = 23;
|
|
345
396
|
break;
|
|
346
397
|
}
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
398
|
+
ctx.doAction(advance.events.afterExe, {
|
|
399
|
+
success: false
|
|
400
|
+
});
|
|
401
|
+
return _context4.abrupt("return", message.info("\u672A\u914D\u7F6E\u6A21\u7248\uFF01"));
|
|
402
|
+
case 23:
|
|
403
|
+
if (impexpSetting.customType) {
|
|
404
|
+
_context4.next = 28;
|
|
405
|
+
break;
|
|
406
|
+
}
|
|
407
|
+
_context4.next = 26;
|
|
408
|
+
return noAuthGetTemplateUrl(impexpSetting.customParam);
|
|
409
|
+
case 26:
|
|
410
|
+
response = _context4.sent;
|
|
411
|
+
if (response.code === 1) {
|
|
412
|
+
setTemplateUrl(response.data);
|
|
413
|
+
ctx.doAction(advance.events.afterExe, {
|
|
414
|
+
success: true
|
|
415
|
+
});
|
|
416
|
+
} else {
|
|
417
|
+
ctx.doAction(advance.events.afterExe, {
|
|
418
|
+
success: false
|
|
354
419
|
});
|
|
355
420
|
}
|
|
421
|
+
case 28:
|
|
356
422
|
setVisible(true);
|
|
357
|
-
case
|
|
423
|
+
case 29:
|
|
358
424
|
case "end":
|
|
359
|
-
return
|
|
425
|
+
return _context4.stop();
|
|
360
426
|
}
|
|
361
|
-
},
|
|
427
|
+
}, _callee4);
|
|
362
428
|
}));
|
|
363
|
-
return function (
|
|
364
|
-
return
|
|
429
|
+
return function (_x6) {
|
|
430
|
+
return _ref7.apply(this, arguments);
|
|
365
431
|
};
|
|
366
432
|
}());
|
|
367
433
|
return /*#__PURE__*/React.createElement(Wrapper, {
|
|
@@ -376,24 +442,29 @@ var LCImex = function LCImex(_ref) {
|
|
|
376
442
|
ghost: ghost,
|
|
377
443
|
$css: css,
|
|
378
444
|
className: classNames(_defineProperty({}, className, !!className)),
|
|
445
|
+
resource: serial,
|
|
446
|
+
serialEffect: serialEffect,
|
|
379
447
|
onClick: handleClick
|
|
380
448
|
}, iconFont ? /*#__PURE__*/React.createElement(Icon, {
|
|
381
449
|
type: iconFont
|
|
382
450
|
}) : null, title || formatMessage({
|
|
383
451
|
id: 'luckda.lowcode.painter.import',
|
|
384
452
|
label: '导入'
|
|
385
|
-
})), /*#__PURE__*/React.createElement(PopWindow,
|
|
453
|
+
})), /*#__PURE__*/React.createElement(PopWindow, {
|
|
386
454
|
visible: visible,
|
|
387
455
|
title: "\u4E0A\u4F20excel\u6587\u4EF6",
|
|
388
456
|
mode: "modal",
|
|
389
|
-
size: "mini"
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
457
|
+
size: "mini",
|
|
458
|
+
destroyOnClose: true,
|
|
459
|
+
footer: actionStep === 'undone' ? function () {
|
|
460
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
461
|
+
} : null,
|
|
462
|
+
onClose: function onClose() {
|
|
463
|
+
if (actionStep !== 'uploading') {
|
|
464
|
+
setVisible(false);
|
|
465
|
+
}
|
|
395
466
|
}
|
|
396
|
-
}
|
|
467
|
+
}, actionStep === 'undone' ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(BasicForm, {
|
|
397
468
|
onSubmit: handleImport,
|
|
398
469
|
layout: "drawer",
|
|
399
470
|
buttonRender: function buttonRender() {
|
|
@@ -80,34 +80,55 @@
|
|
|
80
80
|
]
|
|
81
81
|
},
|
|
82
82
|
"repositioning": true
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"key": "serials",
|
|
86
|
+
"name": "资源串",
|
|
87
|
+
"type": "_SerialsSelector"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"key": "serialEffect",
|
|
91
|
+
"name": "越权效果",
|
|
92
|
+
"type": "segmented",
|
|
93
|
+
"options": [
|
|
94
|
+
{
|
|
95
|
+
"label": "禁用",
|
|
96
|
+
"value": "disable"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"label": "隐藏",
|
|
100
|
+
"value": "hidden"
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
"default": "hidden"
|
|
83
104
|
}
|
|
84
105
|
],
|
|
85
|
-
"css":
|
|
106
|
+
"css": "",
|
|
86
107
|
"advance": {
|
|
87
108
|
"events": [
|
|
88
109
|
{
|
|
89
110
|
"key": "onMount",
|
|
90
111
|
"name": "组件首次渲染时",
|
|
91
112
|
"desc": "在组件首次渲染时,执行方法",
|
|
92
|
-
"func": "(
|
|
113
|
+
"func": "function onMount() {\n\t\n}"
|
|
93
114
|
},
|
|
94
115
|
{
|
|
95
116
|
"key": "onUnmount",
|
|
96
117
|
"name": "组件卸载时",
|
|
97
118
|
"desc": "在组件卸载时,执行方法。",
|
|
98
|
-
"func": "(
|
|
119
|
+
"func": "function onUnmount() {\n\t\n}"
|
|
99
120
|
},
|
|
100
121
|
{
|
|
101
122
|
"key": "beforeExe",
|
|
102
123
|
"name": "操作执行前",
|
|
103
124
|
"desc": "在导入或导出执行前,执行方法,promise反回false截断执行",
|
|
104
|
-
"func": "(
|
|
125
|
+
"func": "function beforeExe() {\n\t\n}"
|
|
105
126
|
},
|
|
106
127
|
{
|
|
107
128
|
"key": "afterExe",
|
|
108
129
|
"name": "操作执行后",
|
|
109
130
|
"desc": "在导入或导出执行后,执行方法",
|
|
110
|
-
"func": "(
|
|
131
|
+
"func": "function afterExe(success) {\n\t\n}"
|
|
111
132
|
}
|
|
112
133
|
]
|
|
113
134
|
}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
"group": "basic",
|
|
6
6
|
"groupName": "基础",
|
|
7
7
|
"desc": "用于显示图像或照片。以便用户可以轻松地创建具有自定义图片样式和布局的界面。",
|
|
8
|
+
"hidden": true,
|
|
8
9
|
"order": 1,
|
|
9
10
|
"props": [
|
|
10
11
|
{
|
|
@@ -88,7 +89,7 @@
|
|
|
88
89
|
"default": false
|
|
89
90
|
}
|
|
90
91
|
],
|
|
91
|
-
"css":
|
|
92
|
+
"css": "",
|
|
92
93
|
"advance": {
|
|
93
94
|
"events": [
|
|
94
95
|
{
|
|
@@ -1,19 +1,35 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
-
import React, { useRef } from 'react';
|
|
2
|
+
import React, { useRef, useEffect } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { useMemoizedFn } from 'ahooks';
|
|
5
|
+
import styled from 'styled-components';
|
|
6
|
+
import { useContext } from "../../../engine/provider/ContextProvider";
|
|
5
7
|
import Wrapper from "../Wrapper";
|
|
6
8
|
import styles from "./index.less";
|
|
7
9
|
import { omitBadProps } from "../../../engine/tools/helper";
|
|
8
10
|
import defaultMeta from "../../../engine/meta/layout.props.default.json";
|
|
11
|
+
var StyledLayout = styled.div.withConfig({
|
|
12
|
+
displayName: "StyledLayout",
|
|
13
|
+
componentId: "luckda-6530__sc-39av4h-0"
|
|
14
|
+
})(["", ""], function (props) {
|
|
15
|
+
return props.$css;
|
|
16
|
+
});
|
|
9
17
|
var LCLayout = function LCLayout(_ref) {
|
|
10
18
|
var id = _ref.id,
|
|
11
19
|
children = _ref.children,
|
|
12
|
-
columnRatio = _ref.columnRatio,
|
|
13
20
|
columnSpacing = _ref.columnSpacing,
|
|
14
21
|
lineSpacing = _ref.lineSpacing,
|
|
15
|
-
style = _ref.style
|
|
22
|
+
style = _ref.style,
|
|
23
|
+
css = _ref.css,
|
|
24
|
+
advance = _ref.advance;
|
|
16
25
|
var ref = useRef();
|
|
26
|
+
var ctx = useContext();
|
|
27
|
+
useEffect(function () {
|
|
28
|
+
ctx.doAction(advance.events.onMount);
|
|
29
|
+
return function () {
|
|
30
|
+
return ctx.doAction(advance.events.onUnmount);
|
|
31
|
+
};
|
|
32
|
+
}, []);
|
|
17
33
|
var getTargetDom = useMemoizedFn(function () {
|
|
18
34
|
return ref.current;
|
|
19
35
|
});
|
|
@@ -21,12 +37,13 @@ var LCLayout = function LCLayout(_ref) {
|
|
|
21
37
|
id: id,
|
|
22
38
|
displayName: "Layout",
|
|
23
39
|
getTargetDom: getTargetDom
|
|
24
|
-
}, /*#__PURE__*/React.createElement(
|
|
40
|
+
}, /*#__PURE__*/React.createElement(StyledLayout, {
|
|
25
41
|
ref: ref,
|
|
26
42
|
className: styles['lc-component-layout'],
|
|
27
43
|
style: _objectSpread(_objectSpread({}, style), {}, {
|
|
28
44
|
gap: "".concat(columnSpacing, "px ").concat(lineSpacing, "px")
|
|
29
|
-
})
|
|
45
|
+
}),
|
|
46
|
+
$css: css
|
|
30
47
|
}, children));
|
|
31
48
|
};
|
|
32
49
|
LCLayout.propTypes = {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
{
|
|
24
24
|
"key": "columnSpacing",
|
|
25
25
|
"name": "列间距",
|
|
26
|
-
"desc": "
|
|
26
|
+
"desc": "表示一行中分栏与分栏之间的间距",
|
|
27
27
|
"type": "select",
|
|
28
28
|
"options": [
|
|
29
29
|
{
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
{
|
|
57
57
|
"key": "lineSpacing",
|
|
58
58
|
"name": "行间距",
|
|
59
|
-
"desc": "
|
|
59
|
+
"desc": "表示每一行之间的间距",
|
|
60
60
|
"type": "select",
|
|
61
61
|
"options": [
|
|
62
62
|
{
|
|
@@ -87,20 +87,20 @@
|
|
|
87
87
|
"default": 16
|
|
88
88
|
}
|
|
89
89
|
],
|
|
90
|
-
"css":
|
|
90
|
+
"css": "background-color: transparent;",
|
|
91
91
|
"advance": {
|
|
92
92
|
"events": [
|
|
93
93
|
{
|
|
94
94
|
"key": "onMount",
|
|
95
95
|
"name": "组件首次渲染时",
|
|
96
96
|
"desc": "在组件首次渲染时,执行方法",
|
|
97
|
-
"func": "function onMount(
|
|
97
|
+
"func": "function onMount() {\n\t\n}"
|
|
98
98
|
},
|
|
99
99
|
{
|
|
100
100
|
"key": "onUnmount",
|
|
101
101
|
"name": "组件卸载时",
|
|
102
102
|
"desc": "在组件卸载时,执行方法。",
|
|
103
|
-
"func": "function onUnmount(
|
|
103
|
+
"func": "function onUnmount() {\n\t\n}"
|
|
104
104
|
}
|
|
105
105
|
]
|
|
106
106
|
}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
"group": "basic",
|
|
6
6
|
"groupName": "基础",
|
|
7
7
|
"desc": "用于创建可点击的链接,以便用户可以跳转到其他页面或访问相关内容。超链组件提供了简单而直观的方式来创建和管理链接。",
|
|
8
|
+
"hidden": true,
|
|
8
9
|
"order": 1,
|
|
9
10
|
"props": [
|
|
10
11
|
{
|
|
@@ -86,7 +87,7 @@
|
|
|
86
87
|
"default": "hidden"
|
|
87
88
|
}
|
|
88
89
|
],
|
|
89
|
-
"css":
|
|
90
|
+
"css": "",
|
|
90
91
|
"advance": {
|
|
91
92
|
"events": [
|
|
92
93
|
{
|
|
@@ -32,7 +32,11 @@ var FunctionDesign = function FunctionDesign(_ref) {
|
|
|
32
32
|
ratioArr.forEach(function (_, i) {
|
|
33
33
|
var _boxId = "box_".concat(suid());
|
|
34
34
|
addNode(id, _boxId, _objectSpread(_objectSpread({}, boxDefaultMeta), {}, {
|
|
35
|
-
buildIn: true
|
|
35
|
+
buildIn: true,
|
|
36
|
+
style: {
|
|
37
|
+
width: 'calc(100% - 32px)',
|
|
38
|
+
height: 'calc(100% - 32px)'
|
|
39
|
+
}
|
|
36
40
|
}));
|
|
37
41
|
if (prevChildren[i]) {
|
|
38
42
|
addNode(_boxId, prevChildren[i][0], prevChildren[i][1]);
|
|
@@ -90,13 +90,9 @@ var LCSection = function LCSection(_ref2) {
|
|
|
90
90
|
_collapseProps = _useCreation._collapseProps,
|
|
91
91
|
_panelProps = _useCreation._panelProps;
|
|
92
92
|
useEffect(function () {
|
|
93
|
-
ctx.doAction(advance.events.onMount
|
|
94
|
-
instance: ref.current
|
|
95
|
-
});
|
|
93
|
+
ctx.doAction(advance.events.onMount);
|
|
96
94
|
return function () {
|
|
97
|
-
ctx.doAction(advance.events.onUnmount
|
|
98
|
-
instance: ref.current
|
|
99
|
-
});
|
|
95
|
+
ctx.doAction(advance.events.onUnmount);
|
|
100
96
|
};
|
|
101
97
|
}, []);
|
|
102
98
|
var getTargetDom = useMemoizedFn(function () {
|