@luck-design-biz/luckda 0.0.22-4 → 0.0.22-5
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/LICENSE +21 -21
- package/README.md +40 -40
- package/es/components/Builder/index.js +1 -1
- package/es/components/LdGrid/index.js +4 -4
- package/es/components/LdGridForm/index.less +7 -7
- package/es/components/LdRuntimeCom/index.js +42 -0
- package/es/components/LdTree/index.less +36 -36
- package/es/helper/action.js +6 -6
- package/es/helper/form.js +14 -14
- package/es/helper/index.less +7 -7
- package/es/index.js +1 -0
- package/es/lowcode/constants/api-url.js +3 -0
- package/es/lowcode/constants/event-topics.js +31 -0
- package/es/lowcode/constants/index.js +12 -0
- package/es/lowcode/engine/factory/DataFactory.js +1 -0
- package/es/lowcode/engine/factory/panel-item-factory/DynamicStrategy.js +60 -0
- package/es/lowcode/engine/factory/panel-item-factory/SegmentedStrategy.js +32 -0
- package/es/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +32 -0
- package/es/lowcode/engine/factory/panel-item-factory/Strategy.js +21 -0
- package/es/lowcode/engine/factory/panel-item-factory/StringStrategy.js +32 -0
- package/es/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +32 -0
- package/es/lowcode/engine/factory/panel-item-factory/index.js +40 -0
- package/es/lowcode/engine/meta/box.props.default.json +10 -0
- package/es/lowcode/engine/meta/box.props.json +40 -0
- package/es/lowcode/engine/meta/button.props.default.json +16 -0
- package/es/lowcode/engine/meta/button.props.json +117 -0
- package/es/lowcode/engine/meta/cardlist.props.default.json +18 -0
- package/es/lowcode/engine/meta/cardlist.props.json +144 -0
- package/es/lowcode/engine/meta/components-list.json +128 -0
- package/es/lowcode/engine/meta/dialog.props.default.json +19 -0
- package/es/lowcode/engine/meta/dialog.props.json +121 -0
- package/es/lowcode/engine/meta/drawer.props.default.json +18 -0
- package/es/lowcode/engine/meta/drawer.props.json +144 -0
- package/es/lowcode/engine/meta/form.props.default.json +13 -0
- package/es/lowcode/engine/meta/form.props.json +117 -0
- package/es/lowcode/engine/meta/iframe.props.default.json +11 -0
- package/es/lowcode/engine/meta/iframe.props.json +32 -0
- package/es/lowcode/engine/meta/image.props.default.json +16 -0
- package/es/lowcode/engine/meta/image.props.json +114 -0
- package/es/lowcode/engine/meta/imex.props.default.json +12 -0
- package/es/lowcode/engine/meta/imex.props.json +82 -0
- package/es/lowcode/engine/meta/js-editor/auto-complete.json +29 -0
- package/es/lowcode/engine/meta/jsx.props.default.json +10 -0
- package/es/lowcode/engine/meta/jsx.props.json +25 -0
- package/es/lowcode/engine/meta/layout.props.default.json +13 -0
- package/es/lowcode/engine/meta/layout.props.json +108 -0
- package/es/lowcode/engine/meta/link.props.default.json +14 -0
- package/es/lowcode/engine/meta/link.props.json +112 -0
- package/es/lowcode/engine/meta/section.props.default.json +17 -0
- package/es/lowcode/engine/meta/section.props.json +108 -0
- package/es/lowcode/engine/meta/split.props.default.json +13 -0
- package/es/lowcode/engine/meta/split.props.json +72 -0
- package/es/lowcode/engine/meta/table.props.default.json +18 -0
- package/es/lowcode/engine/meta/table.props.json +162 -0
- package/es/lowcode/engine/meta/tabs.props.default.json +18 -0
- package/es/lowcode/engine/meta/tabs.props.json +141 -0
- package/es/lowcode/engine/meta/text.props.default.json +12 -0
- package/es/lowcode/engine/meta/text.props.json +66 -0
- package/es/lowcode/engine/meta/tree.props.default.json +17 -0
- package/es/lowcode/engine/meta/tree.props.json +157 -0
- package/es/lowcode/engine/provider/ContextProvider.js +165 -0
- package/es/lowcode/engine/provider/EventBusProvider.js +120 -0
- package/es/lowcode/engine/tools/dataProcess.js +263 -0
- package/es/lowcode/engine/tools/helper.js +4 -0
- package/es/lowcode/engine/tools/lcid.js +16 -0
- package/es/lowcode/index.js +3 -0
- package/es/lowcode/painter/Components.js +104 -0
- package/es/lowcode/painter/Design.js +210 -0
- package/es/lowcode/painter/I18n.js +202 -0
- package/es/lowcode/painter/Outline.js +208 -0
- package/es/lowcode/painter/Panel.js +195 -0
- package/es/lowcode/painter/Ribbon.js +142 -0
- package/es/lowcode/painter/components/PanelItem.js +35 -0
- package/es/lowcode/painter/components/PopConfirm.js +20 -0
- package/es/lowcode/painter/components/PopForm.js +71 -0
- package/es/lowcode/painter/components/RuleInput.js +105 -0
- package/es/lowcode/painter/components/SortBox.js +92 -0
- package/es/lowcode/painter/components/TabEditor.js +88 -0
- package/es/lowcode/painter/components/code-editor/BaseEditor.js +49 -0
- package/es/lowcode/painter/components/code-editor/JSEditor.js +77 -0
- package/es/lowcode/painter/components/code-editor/index.js +2 -0
- package/es/lowcode/painter/index.js +45 -0
- package/es/lowcode/painter/panel-section/Icon.js +48 -0
- package/es/lowcode/painter/panel-section/IconSelector.js +139 -0
- package/es/lowcode/painter/panel-section/LayoutRatio.js +140 -0
- package/es/lowcode/painter/panel-section/TabItems.js +238 -0
- package/es/lowcode/painter/services/I18n.js +85 -0
- package/es/lowcode/painter/style/components.less +90 -0
- package/es/lowcode/painter/style/design.less +82 -0
- package/es/lowcode/painter/style/icon-selector.less +22 -0
- package/es/lowcode/painter/style/icon.less +11 -0
- package/es/lowcode/painter/style/index.less +6 -0
- package/es/lowcode/painter/style/layout-ratio.less +51 -0
- package/es/lowcode/painter/style/outline.less +28 -0
- package/es/lowcode/painter/style/panel-item.less +22 -0
- package/es/lowcode/painter/style/panel.less +119 -0
- package/es/lowcode/painter/style/pop-confirm.less +10 -0
- package/es/lowcode/painter/style/pop-form.less +20 -0
- package/es/lowcode/painter/style/radio.less +24 -0
- package/es/lowcode/painter/style/ribbon.less +5 -0
- package/es/lowcode/painter/style/rule-input.less +13 -0
- package/es/lowcode/painter/style/tabeditor.less +90 -0
- package/es/lowcode/painter/style/tabitems.less +90 -0
- package/es/lowcode/view/Canvas.js +135 -0
- package/es/lowcode/view/Loading.js +23 -0
- package/es/lowcode/view/Page.js +251 -0
- package/es/lowcode/view/index.js +18 -0
- package/es/lowcode/view/lc-components/Box/index.js +24 -0
- package/es/lowcode/view/lc-components/Box/meta.json +40 -0
- package/es/lowcode/view/lc-components/Button/index.js +37 -0
- package/es/lowcode/view/lc-components/Button/meta.json +117 -0
- package/es/lowcode/view/lc-components/CardList/index.js +20 -0
- package/es/lowcode/view/lc-components/CardList/meta.json +144 -0
- package/es/lowcode/view/lc-components/Dialog/index.js +61 -0
- package/es/lowcode/view/lc-components/Dialog/index.less +3 -0
- package/es/lowcode/view/lc-components/Dialog/meta.json +121 -0
- package/es/lowcode/view/lc-components/Drawer/index.js +62 -0
- package/es/lowcode/view/lc-components/Drawer/meta.json +144 -0
- package/es/lowcode/view/lc-components/Drawer/style.less +7 -0
- package/es/lowcode/view/lc-components/Form/index.js +20 -0
- package/es/lowcode/view/lc-components/Form/meta.json +117 -0
- package/es/lowcode/view/lc-components/Iframe/index.js +20 -0
- package/es/lowcode/view/lc-components/Iframe/meta.json +32 -0
- package/es/lowcode/view/lc-components/ImEx/index.js +20 -0
- package/es/lowcode/view/lc-components/ImEx/meta.json +82 -0
- package/es/lowcode/view/lc-components/Image/index.js +20 -0
- package/es/lowcode/view/lc-components/Image/meta.json +114 -0
- package/es/lowcode/view/lc-components/JSX/index.js +20 -0
- package/es/lowcode/view/lc-components/JSX/meta.json +25 -0
- package/es/lowcode/view/lc-components/Layout/index.js +98 -0
- package/es/lowcode/view/lc-components/Layout/index.less +9 -0
- package/es/lowcode/view/lc-components/Layout/meta.json +108 -0
- package/es/lowcode/view/lc-components/Link/index.js +20 -0
- package/es/lowcode/view/lc-components/Link/meta.json +112 -0
- package/es/lowcode/view/lc-components/Section/index.js +34 -0
- package/es/lowcode/view/lc-components/Section/meta.json +108 -0
- package/es/lowcode/view/lc-components/Split/index.js +21 -0
- package/es/lowcode/view/lc-components/Split/meta.json +72 -0
- package/es/lowcode/view/lc-components/Table/index.js +23 -0
- package/es/lowcode/view/lc-components/Table/meta.json +162 -0
- package/es/lowcode/view/lc-components/Tabs/index.js +21 -0
- package/es/lowcode/view/lc-components/Tabs/meta.json +141 -0
- package/es/lowcode/view/lc-components/Text/index.js +23 -0
- package/es/lowcode/view/lc-components/Text/meta.json +66 -0
- package/es/lowcode/view/lc-components/Tree/index.js +20 -0
- package/es/lowcode/view/lc-components/Tree/meta.json +157 -0
- package/es/lowcode/view/lc-components/Wrapper.js +52 -0
- package/es/lowcode/view/style/canvas.less +5 -0
- package/es/lowcode/view/style/loading.less +84 -0
- package/es/lowcode/view/style/page.less +5 -0
- package/es/upload/Form/index.less +7 -7
- package/es/upload/FormItem/index.js +15 -15
- package/es/utils/form.js +22 -22
- package/es/utils/grid.js +2 -2
- package/lib/components/Builder/index.js +1 -1
- package/lib/components/LdGrid/index.js +4 -4
- package/lib/components/LdGridForm/index.less +7 -7
- package/lib/components/LdRuntimeCom/index.js +49 -0
- package/lib/components/LdTree/index.less +36 -36
- package/lib/helper/action.js +6 -6
- package/lib/helper/form.js +14 -14
- package/lib/helper/index.less +7 -7
- package/lib/index.js +9 -1
- package/lib/lowcode/constants/api-url.js +9 -0
- package/lib/lowcode/constants/event-topics.js +37 -0
- package/lib/lowcode/constants/index.js +18 -0
- package/lib/lowcode/engine/factory/DataFactory.js +3 -0
- package/lib/lowcode/engine/factory/panel-item-factory/DynamicStrategy.js +73 -0
- package/lib/lowcode/engine/factory/panel-item-factory/SegmentedStrategy.js +38 -0
- package/lib/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +38 -0
- package/lib/lowcode/engine/factory/panel-item-factory/Strategy.js +27 -0
- package/lib/lowcode/engine/factory/panel-item-factory/StringStrategy.js +38 -0
- package/lib/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +38 -0
- package/lib/lowcode/engine/factory/panel-item-factory/index.js +46 -0
- package/lib/lowcode/engine/meta/box.props.default.json +10 -0
- package/lib/lowcode/engine/meta/box.props.json +40 -0
- package/lib/lowcode/engine/meta/button.props.default.json +16 -0
- package/lib/lowcode/engine/meta/button.props.json +117 -0
- package/lib/lowcode/engine/meta/cardlist.props.default.json +18 -0
- package/lib/lowcode/engine/meta/cardlist.props.json +144 -0
- package/lib/lowcode/engine/meta/components-list.json +128 -0
- package/lib/lowcode/engine/meta/dialog.props.default.json +19 -0
- package/lib/lowcode/engine/meta/dialog.props.json +121 -0
- package/lib/lowcode/engine/meta/drawer.props.default.json +18 -0
- package/lib/lowcode/engine/meta/drawer.props.json +144 -0
- package/lib/lowcode/engine/meta/form.props.default.json +13 -0
- package/lib/lowcode/engine/meta/form.props.json +117 -0
- package/lib/lowcode/engine/meta/iframe.props.default.json +11 -0
- package/lib/lowcode/engine/meta/iframe.props.json +32 -0
- package/lib/lowcode/engine/meta/image.props.default.json +16 -0
- package/lib/lowcode/engine/meta/image.props.json +114 -0
- package/lib/lowcode/engine/meta/imex.props.default.json +12 -0
- package/lib/lowcode/engine/meta/imex.props.json +82 -0
- package/lib/lowcode/engine/meta/js-editor/auto-complete.json +29 -0
- package/lib/lowcode/engine/meta/jsx.props.default.json +10 -0
- package/lib/lowcode/engine/meta/jsx.props.json +25 -0
- package/lib/lowcode/engine/meta/layout.props.default.json +13 -0
- package/lib/lowcode/engine/meta/layout.props.json +108 -0
- package/lib/lowcode/engine/meta/link.props.default.json +14 -0
- package/lib/lowcode/engine/meta/link.props.json +112 -0
- package/lib/lowcode/engine/meta/section.props.default.json +17 -0
- package/lib/lowcode/engine/meta/section.props.json +108 -0
- package/lib/lowcode/engine/meta/split.props.default.json +13 -0
- package/lib/lowcode/engine/meta/split.props.json +72 -0
- package/lib/lowcode/engine/meta/table.props.default.json +18 -0
- package/lib/lowcode/engine/meta/table.props.json +162 -0
- package/lib/lowcode/engine/meta/tabs.props.default.json +18 -0
- package/lib/lowcode/engine/meta/tabs.props.json +141 -0
- package/lib/lowcode/engine/meta/text.props.default.json +12 -0
- package/lib/lowcode/engine/meta/text.props.json +66 -0
- package/lib/lowcode/engine/meta/tree.props.default.json +17 -0
- package/lib/lowcode/engine/meta/tree.props.json +157 -0
- package/lib/lowcode/engine/provider/ContextProvider.js +173 -0
- package/lib/lowcode/engine/provider/EventBusProvider.js +128 -0
- package/lib/lowcode/engine/tools/dataProcess.js +277 -0
- package/lib/lowcode/engine/tools/helper.js +11 -0
- package/lib/lowcode/engine/tools/lcid.js +22 -0
- package/lib/lowcode/index.js +20 -0
- package/lib/lowcode/painter/Components.js +112 -0
- package/lib/lowcode/painter/Design.js +218 -0
- package/lib/lowcode/painter/I18n.js +209 -0
- package/lib/lowcode/painter/Outline.js +216 -0
- package/lib/lowcode/painter/Panel.js +203 -0
- package/lib/lowcode/painter/Ribbon.js +150 -0
- package/lib/lowcode/painter/components/PanelItem.js +41 -0
- package/lib/lowcode/painter/components/PopConfirm.js +26 -0
- package/lib/lowcode/painter/components/PopForm.js +77 -0
- package/lib/lowcode/painter/components/RuleInput.js +112 -0
- package/lib/lowcode/painter/components/SortBox.js +99 -0
- package/lib/lowcode/painter/components/TabEditor.js +94 -0
- package/lib/lowcode/painter/components/code-editor/BaseEditor.js +57 -0
- package/lib/lowcode/painter/components/code-editor/JSEditor.js +88 -0
- package/lib/lowcode/painter/components/code-editor/index.js +20 -0
- package/lib/lowcode/painter/index.js +54 -0
- package/lib/lowcode/painter/panel-section/Icon.js +54 -0
- package/lib/lowcode/painter/panel-section/IconSelector.js +146 -0
- package/lib/lowcode/painter/panel-section/LayoutRatio.js +148 -0
- package/lib/lowcode/painter/panel-section/TabItems.js +246 -0
- package/lib/lowcode/painter/services/I18n.js +95 -0
- package/lib/lowcode/painter/style/components.less +90 -0
- package/lib/lowcode/painter/style/design.less +82 -0
- package/lib/lowcode/painter/style/icon-selector.less +22 -0
- package/lib/lowcode/painter/style/icon.less +11 -0
- package/lib/lowcode/painter/style/index.less +6 -0
- package/lib/lowcode/painter/style/layout-ratio.less +51 -0
- package/lib/lowcode/painter/style/outline.less +28 -0
- package/lib/lowcode/painter/style/panel-item.less +22 -0
- package/lib/lowcode/painter/style/panel.less +119 -0
- package/lib/lowcode/painter/style/pop-confirm.less +10 -0
- package/lib/lowcode/painter/style/pop-form.less +20 -0
- package/lib/lowcode/painter/style/radio.less +24 -0
- package/lib/lowcode/painter/style/ribbon.less +5 -0
- package/lib/lowcode/painter/style/rule-input.less +13 -0
- package/lib/lowcode/painter/style/tabeditor.less +90 -0
- package/lib/lowcode/painter/style/tabitems.less +90 -0
- package/lib/lowcode/view/Canvas.js +150 -0
- package/lib/lowcode/view/Loading.js +30 -0
- package/lib/lowcode/view/Page.js +259 -0
- package/lib/lowcode/view/index.js +25 -0
- package/lib/lowcode/view/lc-components/Box/index.js +32 -0
- package/lib/lowcode/view/lc-components/Box/meta.json +40 -0
- package/lib/lowcode/view/lc-components/Button/index.js +45 -0
- package/lib/lowcode/view/lc-components/Button/meta.json +117 -0
- package/lib/lowcode/view/lc-components/CardList/index.js +28 -0
- package/lib/lowcode/view/lc-components/CardList/meta.json +144 -0
- package/lib/lowcode/view/lc-components/Dialog/index.js +69 -0
- package/lib/lowcode/view/lc-components/Dialog/index.less +3 -0
- package/lib/lowcode/view/lc-components/Dialog/meta.json +121 -0
- package/lib/lowcode/view/lc-components/Drawer/index.js +70 -0
- package/lib/lowcode/view/lc-components/Drawer/meta.json +144 -0
- package/lib/lowcode/view/lc-components/Drawer/style.less +7 -0
- package/lib/lowcode/view/lc-components/Form/index.js +28 -0
- package/lib/lowcode/view/lc-components/Form/meta.json +117 -0
- package/lib/lowcode/view/lc-components/Iframe/index.js +28 -0
- package/lib/lowcode/view/lc-components/Iframe/meta.json +32 -0
- package/lib/lowcode/view/lc-components/ImEx/index.js +28 -0
- package/lib/lowcode/view/lc-components/ImEx/meta.json +82 -0
- package/lib/lowcode/view/lc-components/Image/index.js +28 -0
- package/lib/lowcode/view/lc-components/Image/meta.json +114 -0
- package/lib/lowcode/view/lc-components/JSX/index.js +28 -0
- package/lib/lowcode/view/lc-components/JSX/meta.json +25 -0
- package/lib/lowcode/view/lc-components/Layout/index.js +106 -0
- package/lib/lowcode/view/lc-components/Layout/index.less +9 -0
- package/lib/lowcode/view/lc-components/Layout/meta.json +108 -0
- package/lib/lowcode/view/lc-components/Link/index.js +28 -0
- package/lib/lowcode/view/lc-components/Link/meta.json +112 -0
- package/lib/lowcode/view/lc-components/Section/index.js +42 -0
- package/lib/lowcode/view/lc-components/Section/meta.json +108 -0
- package/lib/lowcode/view/lc-components/Split/index.js +29 -0
- package/lib/lowcode/view/lc-components/Split/meta.json +72 -0
- package/lib/lowcode/view/lc-components/Table/index.js +31 -0
- package/lib/lowcode/view/lc-components/Table/meta.json +162 -0
- package/lib/lowcode/view/lc-components/Tabs/index.js +29 -0
- package/lib/lowcode/view/lc-components/Tabs/meta.json +141 -0
- package/lib/lowcode/view/lc-components/Text/index.js +31 -0
- package/lib/lowcode/view/lc-components/Text/meta.json +66 -0
- package/lib/lowcode/view/lc-components/Tree/index.js +28 -0
- package/lib/lowcode/view/lc-components/Tree/meta.json +157 -0
- package/lib/lowcode/view/lc-components/Wrapper.js +59 -0
- package/lib/lowcode/view/style/canvas.less +5 -0
- package/lib/lowcode/view/style/loading.less +84 -0
- package/lib/lowcode/view/style/page.less +5 -0
- package/lib/upload/Form/index.less +7 -7
- package/lib/upload/FormItem/index.js +15 -15
- package/lib/utils/form.js +22 -22
- package/lib/utils/grid.js +2 -2
- package/lowcode.js +1 -0
- package/package.json +163 -151
- package/upload.js +1 -1
- package/utils.js +1 -1
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
12
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
13
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
14
|
+
var _ahooks = require("ahooks");
|
|
15
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
16
|
+
var _ContextProvider = require("../engine/provider/ContextProvider");
|
|
17
|
+
var _Loading = _interopRequireDefault(require("./Loading"));
|
|
18
|
+
var _Wrapper = _interopRequireDefault(require("./lc-components/Wrapper"));
|
|
19
|
+
var _Canvas = _interopRequireDefault(require("./Canvas"));
|
|
20
|
+
var _dataProcess = require("../engine/tools/dataProcess");
|
|
21
|
+
var _constants = require("../constants");
|
|
22
|
+
var _page = _interopRequireDefault(require("./style/page.less"));
|
|
23
|
+
var _excluded = ["pageCode", "className"];
|
|
24
|
+
var mock = function mock(_pageCode) {
|
|
25
|
+
return new Promise(function (resolve) {
|
|
26
|
+
setTimeout(function () {
|
|
27
|
+
var data = 'ᯡࠣ䂼྆ڑÙ⁅䁆䞠䌣䰪ぞ婈Ø䀦䉑Ŝ持䀥ດ⠦榠⍼Ⲉᗣᠱ嵜䐠׆Ⱐॼ哘ᄳࡠ֕惂ᬠ౪Ӕ沥尡㸴Ƭ䎰嫀䗠ވ䀻▯ἰ湬⥒ᓡᰀ᪡㱲璻䞠ೣⰊ焥⍂へ僸簠ⷌ)䔠ԂࠡⰠಢ㍬[婿ԯဧデ匒<̰N䁞椌狲⎣℁ࡈ琤ᶡ桎睑砢◛㶤ს㕍Ʃ䅌欫㊓㢛粠᙭⃀㤠ȉᑤզ愕ۦ厁䷅ᜧ㱯䀦密䭋氠㞘㵵朞礒⺛㺕婐㰵占マ១犚弐x㙁䘸㮱劐ش೮䈈J毟䈦Ⳙీฺ㐠槬⁽Ჰ栰帿٠䂠㐳楂唏៣爭ᡘℼ撘䑼㴷ᨀ᭖䶀㠤嫯䐢䌵n皹᪑ᣬ䭅曢冪富ધ䤲瘠೯嗰ᾕ㍿䎋㪣⣷⟕䃎䌪㟨媽⽸㝐墎㲂暘抮ⴳ₂†ٳõᶢ㹕ㄢà㵠g❌L檪䠨晴⸨ⶱ淛္≢曈廳ܥ䁀⊸ᱥႫ帲墛ᷯ猦↕埄㩀磫ῠ琉Ẁ崆㴮梌棖巶翖㈈䏕䒒⪭掩犕唹䠽䊗ࣾᅡ爌䩛㓧ⲑ㲥Ꮸ®㏾❰僷戦熂濛紎玈㋻్羜㺗㸌᠁猑℄畛㶋泧₀¥毗䚼⬦Сღ䀮劶☔⟫㢯㵏Ⰺ渍װ爊㱏ᘇ給㮄̋ᐆ͈䇑෫˅ࠢ⑰樼↫⦉ࡋᖃ䌍ࠤ效✿䃫༼䂁ߏ籈涎㑽ᗎ甥ᙉ抸咈ǰ䪠ˢᛦ儏ⰲ㐹浦☉Ȱ䗁䤘ⲇ沞ⵑ梾䣡炕߄哾ߢ^ສࣀ旔▨॒⍨夿ᠷ䦩焲╨ᥖ❒囓恦 ⊱ᯮ㥝ဤ羊}璀̰塎㎥⥸ᗸၠ㢿⨾⋠㮾≴璺碠⋄喵哵䃝礔۔垵䫚囵棜ゥ᠙⣖䞮ွ⌵哄ω䀵Ⳇ捜䐯䤪ㅦ⡊㕦欐硤娪Ф⥪㥥⢊㽸䔙ᓯચɳ嫬怷ʚ橔²ᵼ嚻৷剛䆃塯彁Ⱟ䈕㺿啴૰˻磡ᠯ㻿喀亾䮲眝囕ົṖ⛘䵕曍ᐠ';
|
|
28
|
+
resolve(data);
|
|
29
|
+
}, 400);
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
var d = {
|
|
33
|
+
props: {
|
|
34
|
+
id: 'page_root',
|
|
35
|
+
group: 'build-in',
|
|
36
|
+
component: 'Page',
|
|
37
|
+
name: '页面',
|
|
38
|
+
hasHeder: true,
|
|
39
|
+
hasFooter: true
|
|
40
|
+
},
|
|
41
|
+
children: ['page_header', 'page_content', 'page_footer', 'dialog_ms2o9hj0', 'drawer_ou79jw8c'],
|
|
42
|
+
page_header: {
|
|
43
|
+
props: {
|
|
44
|
+
id: 'page_header',
|
|
45
|
+
parentId: 'page_root',
|
|
46
|
+
group: 'build-in',
|
|
47
|
+
component: 'PageHeader',
|
|
48
|
+
name: '页面头',
|
|
49
|
+
fixed: false
|
|
50
|
+
},
|
|
51
|
+
children: ['text_kju78bvs'],
|
|
52
|
+
text_kju78bvs: {
|
|
53
|
+
props: {
|
|
54
|
+
id: 'text_kju78bvs',
|
|
55
|
+
parentId: 'page_header',
|
|
56
|
+
group: 'basic',
|
|
57
|
+
component: 'Text',
|
|
58
|
+
name: '文本'
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
page_content: {
|
|
63
|
+
props: {
|
|
64
|
+
id: 'page_content',
|
|
65
|
+
parentId: 'page_root',
|
|
66
|
+
group: 'build-in',
|
|
67
|
+
component: 'PageContent',
|
|
68
|
+
name: '页面内容'
|
|
69
|
+
},
|
|
70
|
+
children: ['layout_OL4gi6mr'],
|
|
71
|
+
layout_OL4gi6mr: {
|
|
72
|
+
props: {
|
|
73
|
+
component: 'Layout',
|
|
74
|
+
name: '布局容器',
|
|
75
|
+
icon: 'icon-layout',
|
|
76
|
+
group: 'container',
|
|
77
|
+
groupName: '布局',
|
|
78
|
+
desc: '布局容器是一种提供列比例、列间距、行间距和样式等配置选项的元素,用于创建灵活的页面布局。它使用户能够轻松组织和排列组件,并实现各种复杂的布局需求。',
|
|
79
|
+
order: 1,
|
|
80
|
+
style: {},
|
|
81
|
+
columnRatio: '12:3:9',
|
|
82
|
+
columnSpacing: 16,
|
|
83
|
+
lineSpacing: 16,
|
|
84
|
+
id: 'layout_OL4gi6mr'
|
|
85
|
+
},
|
|
86
|
+
children: ['box_xFuKLKBI', 'box_jeVHiHZV', 'box_5KLx4rGb'],
|
|
87
|
+
box_xFuKLKBI: {
|
|
88
|
+
props: {
|
|
89
|
+
component: 'Box',
|
|
90
|
+
name: '容器',
|
|
91
|
+
desc: '盒子是一个用于包裹其他组件的包装器,是一个单纯的容器组件,可以对其设置样式达到想要的效果。',
|
|
92
|
+
icon: 'icon-box',
|
|
93
|
+
group: 'container',
|
|
94
|
+
groupName: '布局',
|
|
95
|
+
order: 3,
|
|
96
|
+
className: 'lc-component-layout-item',
|
|
97
|
+
style: {
|
|
98
|
+
gridColumn: 'span 12',
|
|
99
|
+
height: 'auto'
|
|
100
|
+
},
|
|
101
|
+
id: 'box_xFuKLKBI'
|
|
102
|
+
},
|
|
103
|
+
children: ['button_okj2n87x', 'text_nmu9wqqw'],
|
|
104
|
+
button_okj2n87x: {
|
|
105
|
+
props: {
|
|
106
|
+
id: 'button_okj2n87x',
|
|
107
|
+
parentId: 'box_ihj2n8cv',
|
|
108
|
+
group: 'basic',
|
|
109
|
+
component: 'Button',
|
|
110
|
+
name: '按钮'
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
text_nmu9wqqw: {
|
|
114
|
+
props: {
|
|
115
|
+
id: 'text_nmu9wqqw',
|
|
116
|
+
parentId: 'box_ihj2n8cv',
|
|
117
|
+
group: 'basic',
|
|
118
|
+
component: 'Text',
|
|
119
|
+
name: '文本'
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
box_jeVHiHZV: {
|
|
124
|
+
props: {
|
|
125
|
+
component: 'Box',
|
|
126
|
+
name: '容器',
|
|
127
|
+
desc: '盒子是一个用于包裹其他组件的包装器,是一个单纯的容器组件,可以对其设置样式达到想要的效果。',
|
|
128
|
+
icon: 'icon-box',
|
|
129
|
+
group: 'container',
|
|
130
|
+
groupName: '布局',
|
|
131
|
+
order: 3,
|
|
132
|
+
className: 'lc-component-layout-item',
|
|
133
|
+
style: {
|
|
134
|
+
gridColumn: 'span 3',
|
|
135
|
+
height: '60px'
|
|
136
|
+
},
|
|
137
|
+
id: 'box_jeVHiHZV'
|
|
138
|
+
},
|
|
139
|
+
children: ['text_hh2b87qs'],
|
|
140
|
+
text_hh2b87qs: {
|
|
141
|
+
props: {
|
|
142
|
+
id: 'text_hh2b87qs',
|
|
143
|
+
parentId: 'box_diam9dis',
|
|
144
|
+
group: 'basic',
|
|
145
|
+
component: 'Text',
|
|
146
|
+
name: '文本'
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
box_5KLx4rGb: {
|
|
151
|
+
props: {
|
|
152
|
+
component: 'Box',
|
|
153
|
+
name: '容器',
|
|
154
|
+
desc: '盒子是一个用于包裹其他组件的包装器,是一个单纯的容器组件,可以对其设置样式达到想要的效果。',
|
|
155
|
+
icon: 'icon-box',
|
|
156
|
+
group: 'container',
|
|
157
|
+
groupName: '布局',
|
|
158
|
+
order: 3,
|
|
159
|
+
className: 'lc-component-layout-item',
|
|
160
|
+
style: {
|
|
161
|
+
gridColumn: 'span 9',
|
|
162
|
+
height: '60px'
|
|
163
|
+
},
|
|
164
|
+
id: 'box_5KLx4rGb'
|
|
165
|
+
},
|
|
166
|
+
children: ['table_diam9dis'],
|
|
167
|
+
table_diam9dis: {
|
|
168
|
+
props: {
|
|
169
|
+
id: 'table_diam9dis',
|
|
170
|
+
parentId: 'box_s0j3j08t',
|
|
171
|
+
group: 'advance',
|
|
172
|
+
component: 'Table',
|
|
173
|
+
name: '列表'
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
page_footer: {
|
|
180
|
+
props: {
|
|
181
|
+
id: 'page_footer',
|
|
182
|
+
parentId: 'page_root',
|
|
183
|
+
group: 'build-in',
|
|
184
|
+
component: 'PageFooter',
|
|
185
|
+
name: '页面尾'
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
dialog_ms2o9hj0: {
|
|
189
|
+
props: {
|
|
190
|
+
id: 'dialog_ms2o9hj0',
|
|
191
|
+
parentId: 'page_root',
|
|
192
|
+
group: 'basic',
|
|
193
|
+
component: 'Dialog',
|
|
194
|
+
name: '对话框'
|
|
195
|
+
},
|
|
196
|
+
children: ['form_gyusku8j'],
|
|
197
|
+
form_gyusku8j: {
|
|
198
|
+
props: {
|
|
199
|
+
id: 'form_gyusku8j',
|
|
200
|
+
parentId: 'dialog_ms2o9hj0',
|
|
201
|
+
group: 'advance',
|
|
202
|
+
component: 'Form',
|
|
203
|
+
name: '表单'
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
drawer_ou79jw8c: {
|
|
208
|
+
props: {
|
|
209
|
+
id: 'drawer_ou79jw8c',
|
|
210
|
+
parentId: 'page_root',
|
|
211
|
+
group: 'basic',
|
|
212
|
+
component: 'Drawer',
|
|
213
|
+
name: '抽屉'
|
|
214
|
+
},
|
|
215
|
+
children: ['form_jknbjkun'],
|
|
216
|
+
form_jknbjkun: {
|
|
217
|
+
props: {
|
|
218
|
+
id: 'form_jknbjkun',
|
|
219
|
+
parentId: 'drawer_ou79jw8c',
|
|
220
|
+
group: 'advance',
|
|
221
|
+
component: 'Form',
|
|
222
|
+
name: '表单'
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
};
|
|
227
|
+
var LCPage = /*#__PURE__*/(0, _react.forwardRef)(function (_ref2, ref) {
|
|
228
|
+
var pageCode = _ref2.pageCode,
|
|
229
|
+
className = _ref2.className,
|
|
230
|
+
props = (0, _objectWithoutProperties2.default)(_ref2, _excluded);
|
|
231
|
+
var _ref = (0, _react.useRef)(null);
|
|
232
|
+
var _rootRef = ref || _ref;
|
|
233
|
+
var context = (0, _ContextProvider.useLDContext)();
|
|
234
|
+
var _useBoolean = (0, _ahooks.useBoolean)(true),
|
|
235
|
+
_useBoolean2 = (0, _slicedToArray2.default)(_useBoolean, 2),
|
|
236
|
+
loading = _useBoolean2[0],
|
|
237
|
+
setFalse = _useBoolean2[1].setFalse;
|
|
238
|
+
(0, _react.useEffect)(function () {
|
|
239
|
+
context._pageCode.current = pageCode;
|
|
240
|
+
mock(pageCode).then(function (pageData) {
|
|
241
|
+
// context._setPageData(decompress(pageData));
|
|
242
|
+
context._setPageData(d);
|
|
243
|
+
setFalse();
|
|
244
|
+
});
|
|
245
|
+
}, []);
|
|
246
|
+
var getTargetDom = (0, _ahooks.useMemoizedFn)(function () {
|
|
247
|
+
return _rootRef.current;
|
|
248
|
+
});
|
|
249
|
+
return /*#__PURE__*/_react.default.createElement(_Wrapper.default, {
|
|
250
|
+
id: _constants.CELL_KEY.PAGE_ROOT,
|
|
251
|
+
getTargetDom: getTargetDom
|
|
252
|
+
}, /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({
|
|
253
|
+
ref: _rootRef,
|
|
254
|
+
className: (0, _classnames.default)(_page.default['lc-view-page'], (0, _defineProperty2.default)({}, className, !!className))
|
|
255
|
+
}, props), loading ? /*#__PURE__*/_react.default.createElement(_Loading.default, null) : /*#__PURE__*/_react.default.createElement(_Canvas.default, {
|
|
256
|
+
dataSource: context.pageData
|
|
257
|
+
})));
|
|
258
|
+
});
|
|
259
|
+
var _default = exports.default = LCPage;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
var _EventBusProvider = _interopRequireDefault(require("../engine/provider/EventBusProvider"));
|
|
12
|
+
var _ContextProvider = _interopRequireDefault(require("../engine/provider/ContextProvider"));
|
|
13
|
+
var _Page = _interopRequireDefault(require("./Page"));
|
|
14
|
+
var _index = require("../constants/index");
|
|
15
|
+
var _excluded = ["pageCode"];
|
|
16
|
+
var View = function View(_ref) {
|
|
17
|
+
var pageCode = _ref.pageCode,
|
|
18
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
19
|
+
return /*#__PURE__*/_react.default.createElement(_EventBusProvider.default, {
|
|
20
|
+
runtime: _index.RUNTIME.LIVE
|
|
21
|
+
}, /*#__PURE__*/_react.default.createElement(_ContextProvider.default, null, /*#__PURE__*/_react.default.createElement(_Page.default, (0, _extends2.default)({
|
|
22
|
+
pageCode: pageCode
|
|
23
|
+
}, props))));
|
|
24
|
+
};
|
|
25
|
+
var _default = exports.default = View;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _ahooks = require("ahooks");
|
|
13
|
+
var _Wrapper = _interopRequireDefault(require("../Wrapper"));
|
|
14
|
+
var _excluded = ["id", "children"];
|
|
15
|
+
var LCBox = function LCBox(_ref) {
|
|
16
|
+
var id = _ref.id,
|
|
17
|
+
children = _ref.children,
|
|
18
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
19
|
+
var ref = (0, _react.useRef)();
|
|
20
|
+
var getTargetDom = (0, _ahooks.useMemoizedFn)(function () {
|
|
21
|
+
return ref.current;
|
|
22
|
+
});
|
|
23
|
+
return /*#__PURE__*/_react.default.createElement(_Wrapper.default, {
|
|
24
|
+
id: id,
|
|
25
|
+
getTargetDom: getTargetDom
|
|
26
|
+
}, /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({
|
|
27
|
+
ref: ref
|
|
28
|
+
}, props, {
|
|
29
|
+
name: "box"
|
|
30
|
+
}), children));
|
|
31
|
+
};
|
|
32
|
+
var _default = exports.default = LCBox;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"component": "Box",
|
|
3
|
+
"name": "容器",
|
|
4
|
+
"desc": "盒子是一个用于包裹其他组件的包装器,是一个单纯的容器组件,可以对其设置样式达到想要的效果。",
|
|
5
|
+
"icon": "icon-box",
|
|
6
|
+
"group": "container",
|
|
7
|
+
"groupName": "布局",
|
|
8
|
+
"order": 3,
|
|
9
|
+
"props": [
|
|
10
|
+
{
|
|
11
|
+
"key": "id",
|
|
12
|
+
"desc": "唯一标识",
|
|
13
|
+
"type": "string",
|
|
14
|
+
"disabled": true
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"style": {},
|
|
18
|
+
"advance": {
|
|
19
|
+
"events": [
|
|
20
|
+
{
|
|
21
|
+
"key": "onMount",
|
|
22
|
+
"name": "组件首次渲染时",
|
|
23
|
+
"desc": "在组件首次渲染时,执行方法",
|
|
24
|
+
"func": "(params)=>{\n\t\n}"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"key": "onUnmount",
|
|
28
|
+
"name": "组件卸载时",
|
|
29
|
+
"desc": "在组件卸载时,执行方法。",
|
|
30
|
+
"func": "(params)=>{\n\t\n}"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"key": "onClick",
|
|
34
|
+
"name": "点击事件",
|
|
35
|
+
"desc": "点击文本时,执行方法",
|
|
36
|
+
"func": "(e)=>{\n\t\n}"
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _ahooks = require("ahooks");
|
|
13
|
+
var _ContextProvider = require("../../../engine/provider/ContextProvider");
|
|
14
|
+
var _antd = require("luck-design/antd");
|
|
15
|
+
var _Wrapper = _interopRequireDefault(require("../Wrapper"));
|
|
16
|
+
var _constants = require("../../../constants");
|
|
17
|
+
var _excluded = ["id", "children"];
|
|
18
|
+
var LCButton = function LCButton(_ref) {
|
|
19
|
+
var id = _ref.id,
|
|
20
|
+
children = _ref.children,
|
|
21
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
22
|
+
var context = (0, _ContextProvider.useLDContext)();
|
|
23
|
+
var ref = (0, _react.useRef)();
|
|
24
|
+
var getTargetDom = (0, _ahooks.useMemoizedFn)(function () {
|
|
25
|
+
return ref.current.buttonNode;
|
|
26
|
+
});
|
|
27
|
+
var handleClick = (0, _ahooks.useMemoizedFn)(function (e) {
|
|
28
|
+
if (context.runtime !== _constants.RUNTIME.LIVE) {
|
|
29
|
+
e.preventDefault();
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
console.log('click', context);
|
|
33
|
+
context.$publisher(context.topics.COMPONENT_MOUNT, {
|
|
34
|
+
id: id
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
return /*#__PURE__*/_react.default.createElement(_Wrapper.default, {
|
|
38
|
+
id: id,
|
|
39
|
+
getTargetDom: getTargetDom
|
|
40
|
+
}, /*#__PURE__*/_react.default.createElement(_antd.Button, (0, _extends2.default)({
|
|
41
|
+
ref: ref,
|
|
42
|
+
onClick: handleClick
|
|
43
|
+
}, props), "LCButton-", id));
|
|
44
|
+
};
|
|
45
|
+
var _default = exports.default = LCButton;
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
{
|
|
2
|
+
"component": "Button",
|
|
3
|
+
"name": "按钮",
|
|
4
|
+
"desc": "用于触发特定的操作或动作,以便用户可以轻松地创建具有自定义样式和行为的界面。",
|
|
5
|
+
"icon": "icon-button",
|
|
6
|
+
"group": "basic",
|
|
7
|
+
"groupName": "基础",
|
|
8
|
+
"order": 1,
|
|
9
|
+
"props": [
|
|
10
|
+
{
|
|
11
|
+
"key": "id",
|
|
12
|
+
"name": "唯一标识",
|
|
13
|
+
"desc": "唯一标识",
|
|
14
|
+
"type": "string",
|
|
15
|
+
"disabled": true
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"key": "title",
|
|
19
|
+
"name": "标题",
|
|
20
|
+
"desc": "按钮上显示的文字",
|
|
21
|
+
"type": "string",
|
|
22
|
+
"default": "按钮"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"key": "type",
|
|
26
|
+
"name": "按钮类型",
|
|
27
|
+
"desc": "按钮类型",
|
|
28
|
+
"type": "_ButtonType",
|
|
29
|
+
"default": {
|
|
30
|
+
"key": "primary"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"key": "size",
|
|
35
|
+
"name": "按钮",
|
|
36
|
+
"desc": "按钮的大小尺寸",
|
|
37
|
+
"type": "segmented",
|
|
38
|
+
"options": [
|
|
39
|
+
{
|
|
40
|
+
"label": "小",
|
|
41
|
+
"value": "small"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"label": "中",
|
|
45
|
+
"value": "middle"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"label": "大",
|
|
49
|
+
"value": "large"
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"default": "middle"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"key": "icon",
|
|
56
|
+
"name": "图标",
|
|
57
|
+
"desc": "按钮标题前的图标",
|
|
58
|
+
"type": "_Icon",
|
|
59
|
+
"next": {
|
|
60
|
+
"name": "选择图标",
|
|
61
|
+
"props": [
|
|
62
|
+
{
|
|
63
|
+
"key": "icon",
|
|
64
|
+
"name": "#图标选择起",
|
|
65
|
+
"type": "_IconSelector"
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"key": "serials",
|
|
72
|
+
"name": "资源串",
|
|
73
|
+
"desc": "挂接模块资源串",
|
|
74
|
+
"type": "string"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"key": "effect",
|
|
78
|
+
"name": "资源串效果",
|
|
79
|
+
"desc": "当资源串条件生效时按钮的效果",
|
|
80
|
+
"type": "_SerialsEffect",
|
|
81
|
+
"options": [
|
|
82
|
+
{
|
|
83
|
+
"label": "禁用",
|
|
84
|
+
"value": "disable"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"label": "隐藏",
|
|
88
|
+
"value": "hidden"
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"default": "hidden"
|
|
92
|
+
}
|
|
93
|
+
],
|
|
94
|
+
"style": {},
|
|
95
|
+
"advance": {
|
|
96
|
+
"events": [
|
|
97
|
+
{
|
|
98
|
+
"key": "onMount",
|
|
99
|
+
"name": "组件首次渲染时",
|
|
100
|
+
"desc": "在组件首次渲染时,执行方法",
|
|
101
|
+
"func": "(params)=>{\n\t\n}"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"key": "onUnmount",
|
|
105
|
+
"name": "组件卸载时",
|
|
106
|
+
"desc": "在组件卸载时,执行方法。",
|
|
107
|
+
"func": "(params)=>{\n\t\n}"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"key": "onClick",
|
|
111
|
+
"name": "点击事件",
|
|
112
|
+
"desc": "点击文本时,执行方法",
|
|
113
|
+
"func": "(e)=>{\n\t\n}"
|
|
114
|
+
}
|
|
115
|
+
]
|
|
116
|
+
}
|
|
117
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
var _ahooks = require("ahooks");
|
|
12
|
+
var _Wrapper = _interopRequireDefault(require("../Wrapper"));
|
|
13
|
+
var _excluded = ["id"];
|
|
14
|
+
var LCCardList = function LCCardList(_ref) {
|
|
15
|
+
var id = _ref.id,
|
|
16
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
17
|
+
var ref = (0, _react.useRef)();
|
|
18
|
+
var getTargetDom = (0, _ahooks.useMemoizedFn)(function () {
|
|
19
|
+
return ref.current;
|
|
20
|
+
});
|
|
21
|
+
return /*#__PURE__*/_react.default.createElement(_Wrapper.default, {
|
|
22
|
+
id: id,
|
|
23
|
+
getTargetDom: getTargetDom
|
|
24
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
25
|
+
ref: ref
|
|
26
|
+
}, "LCCardList"));
|
|
27
|
+
};
|
|
28
|
+
var _default = exports.default = LCCardList;
|