@luck-design-biz/luckda 1.0.2-2 → 1.0.2-20
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 +13 -10
- package/es/components/ComplexItem/index.js +5 -3
- package/es/components/ComplexItem/service.js +6 -3
- package/es/components/LDActions/index.js +1 -0
- package/es/components/LdAutoForm/index.js +5 -4
- package/es/components/LdCard/index.js +10 -8
- package/es/components/LdCom/index.js +3 -2
- package/es/components/LdFormList/index.js +10 -7
- package/es/components/LdGrid/index.js +11 -12
- package/es/components/LdGridForm/index.js +5 -4
- package/es/helper/FromItems.js +64 -5
- package/es/helper/action.js +2 -0
- package/es/helper/ldBuilder.js +5 -4
- package/es/helper/ldComBuild.js +16 -11
- package/es/locales/zh-CN.js +61 -6
- package/es/lowcode/constants/api-url.js +359 -190
- package/es/lowcode/constants/event-topics.js +4 -0
- package/es/lowcode/constants/index.js +5 -4
- package/es/lowcode/engine/meta/box.props.default.json +1 -1
- package/es/lowcode/engine/meta/box.props.json +1 -1
- package/es/lowcode/engine/meta/cardlist.props.json +3 -5
- package/es/lowcode/engine/meta/components-list.json +6 -0
- package/es/lowcode/engine/meta/dialog.props.default.json +4 -1
- package/es/lowcode/engine/meta/dialog.props.json +24 -4
- package/es/lowcode/engine/meta/drawer.props.json +1 -1
- package/es/lowcode/engine/meta/fielddate.props.default.json +1 -0
- package/es/lowcode/engine/meta/fielddate.props.json +48 -1
- package/es/lowcode/engine/meta/fieldeditor.props.json +0 -1
- package/es/lowcode/engine/meta/fieldgroup.props.json +0 -1
- package/es/lowcode/engine/meta/fieldyear.props.json +0 -1
- package/es/lowcode/engine/meta/form.props.json +3 -19
- package/es/lowcode/engine/meta/grouptree.props.json +0 -1
- package/es/lowcode/engine/meta/js-editor/auto-complete.json +5 -0
- package/es/lowcode/engine/meta/jsx.props.default.json +1 -2
- package/es/lowcode/engine/meta/jsx.props.json +4 -3
- package/es/lowcode/engine/meta/layout.props.default.json +1 -1
- package/es/lowcode/engine/meta/layout.props.json +1 -1
- package/es/lowcode/engine/meta/proxy.props.default.json +15 -0
- package/es/lowcode/engine/meta/proxy.props.json +66 -0
- package/es/lowcode/engine/meta/section.props.json +2 -2
- package/es/lowcode/engine/meta/table.props.json +0 -7
- package/es/lowcode/engine/meta/tabs.props.json +1 -1
- package/es/lowcode/engine/meta/tree.props.json +1 -5
- package/es/lowcode/engine/provider/ContextProvider/index.js +45 -9
- package/es/lowcode/engine/provider/ContextProvider/router.js +21 -1
- package/es/lowcode/engine/provider/ContextProvider/usePageDataStore.js +36 -30
- package/es/lowcode/engine/provider/ContextProvider/usePageVar.js +11 -5
- package/es/lowcode/engine/provider/ContextProvider/useTodo.js +2 -4
- package/es/lowcode/engine/provider/EventBusProvider.js +14 -4
- package/es/lowcode/engine/provider/PageProxyProvider.js +95 -0
- package/es/lowcode/engine/provider/RemoteSourceProvider.js +10 -12
- package/es/lowcode/engine/tools/helper.js +25 -1
- package/es/lowcode/engine/tools/initDS.js +4 -4
- package/es/lowcode/painter/Design.js +1 -0
- package/es/lowcode/painter/DesignOperator.js +135 -27
- package/es/lowcode/painter/DesignToolbar.js +102 -188
- package/es/lowcode/painter/History.js +300 -0
- package/es/lowcode/painter/Panel.js +1 -1
- package/es/lowcode/painter/Ribbon.js +37 -1
- package/es/lowcode/painter/components/AdvancePanel.js +55 -51
- package/es/lowcode/painter/components/DragDrop/DragDropContext.js +10 -3
- package/es/lowcode/painter/components/TipIcon.js +12 -4
- package/es/lowcode/painter/components/TreeEditor.js +76 -8
- package/es/lowcode/painter/components/code-editor/BaseEditor.js +10 -6
- package/es/lowcode/painter/components/code-editor/DiffEditor.js +41 -0
- package/es/lowcode/painter/components/field-setting/FieldAttrs.js +2 -2
- package/es/lowcode/painter/components/field-setting/SettingUI.js +56 -5
- package/es/lowcode/painter/components/field-setting/index.js +24 -1
- package/es/lowcode/painter/components/shortcut-modal/KeyIcon.js +11 -0
- package/es/lowcode/painter/components/shortcut-modal/index.js +208 -0
- package/es/lowcode/painter/panel-section/BlockEditor/index.js +10 -19
- package/es/lowcode/painter/panel-section/BlocksEditor/index.js +4 -1
- package/es/lowcode/painter/panel-section/ConditionCheck.js +70 -0
- package/es/lowcode/painter/panel-section/DataSetSelector.js +6 -3
- package/es/lowcode/painter/panel-section/DialogSize.js +76 -0
- package/es/lowcode/painter/panel-section/DialogWidthHeight.js +60 -0
- package/es/lowcode/painter/panel-section/FieldsSetting.js +1 -1
- package/es/lowcode/painter/panel-section/IconConditionSelector.js +2 -2
- package/es/lowcode/painter/panel-section/JSEditor/ToolBar.js +174 -0
- package/es/lowcode/painter/panel-section/JSEditor/index.js +181 -0
- package/es/lowcode/painter/panel-section/JSEditor/index.less +4 -0
- package/es/lowcode/painter/panel-section/PageLayoutDisplay.js +7 -2
- package/es/lowcode/painter/panel-section/ProxyLinker.js +137 -0
- package/es/lowcode/painter/panel-section/ProxyParams.js +28 -0
- package/es/lowcode/painter/panel-section/ProxyParamsSetter.js +240 -0
- package/es/lowcode/painter/panel-section/StylePanel/MainPanel.js +37 -26
- package/es/lowcode/painter/style/action-bind-modal.less +1 -1
- package/es/lowcode/painter/style/components.less +1 -1
- package/es/lowcode/painter/style/history.less +46 -0
- package/es/lowcode/painter/style/outline.less +1 -1
- package/es/lowcode/painter/style/panel-item.less +1 -0
- package/es/lowcode/preview/DebugTool.js +78 -0
- package/es/lowcode/preview/DebugToolDetail.js +103 -0
- package/es/lowcode/preview/index.js +10 -17
- package/es/lowcode/preview/useDebugSettings.js +62 -0
- package/es/lowcode/view/Canvas.js +5 -1
- package/es/lowcode/view/ErrorBoundary.js +80 -0
- package/es/lowcode/view/Page.js +11 -6
- package/es/lowcode/view/lc-components/Box/FunctionDesign.js +4 -2
- package/es/lowcode/view/lc-components/Box/index.less +2 -2
- package/es/lowcode/view/lc-components/Box/meta.json +1 -1
- package/es/lowcode/view/lc-components/CardList/index.js +3 -0
- package/es/lowcode/view/lc-components/CardList/meta.json +3 -5
- package/es/lowcode/view/lc-components/Dialog/index.js +13 -5
- package/es/lowcode/view/lc-components/Dialog/meta.json +24 -4
- package/es/lowcode/view/lc-components/Drawer/index.js +5 -3
- package/es/lowcode/view/lc-components/Drawer/meta.json +1 -1
- package/es/lowcode/view/lc-components/FieldDate/meta.json +48 -1
- package/es/lowcode/view/lc-components/FieldEditor/meta.json +0 -1
- package/es/lowcode/view/lc-components/FieldGroup/meta.json +0 -1
- package/es/lowcode/view/lc-components/FieldYear/meta.json +0 -1
- package/es/lowcode/view/lc-components/Form/index.js +15 -19
- package/es/lowcode/view/lc-components/Form/meta.json +3 -19
- package/es/lowcode/view/lc-components/GroupTree/meta.json +0 -1
- package/es/lowcode/view/lc-components/JSX/RuntimeComp.js +32 -16
- package/es/lowcode/view/lc-components/JSX/meta.json +4 -3
- package/es/lowcode/view/lc-components/Layout/meta.json +1 -1
- package/es/lowcode/view/lc-components/PageLayout/index.js +1 -1
- package/es/lowcode/view/lc-components/Proxy/FunctionDesign.js +17 -0
- package/es/lowcode/view/lc-components/Proxy/FunctionLive.js +23 -0
- package/es/lowcode/view/lc-components/Proxy/FunctionPreview.js +23 -0
- package/es/lowcode/view/lc-components/Proxy/index.js +42 -0
- package/es/lowcode/view/lc-components/Proxy/index.less +5 -0
- package/es/lowcode/view/lc-components/Proxy/meta.json +66 -0
- package/es/lowcode/view/lc-components/Section/meta.json +2 -2
- package/es/lowcode/view/lc-components/Table/components/TopImex.js +16 -13
- package/es/lowcode/view/lc-components/Table/index.js +11 -3
- package/es/lowcode/view/lc-components/Table/meta.json +0 -7
- package/es/lowcode/view/lc-components/Tabs/index.js +6 -2
- package/es/lowcode/view/lc-components/Tabs/meta.json +1 -1
- package/es/lowcode/view/lc-components/Tree/index.js +3 -0
- package/es/lowcode/view/lc-components/Tree/meta.json +1 -5
- package/es/lowcode/view/lc-components/Wrapper.js +9 -1
- package/es/upload/FilesWall/index.js +16 -6
- package/es/upload/Form/gridForm.js +16 -6
- package/es/upload/FormItem/index.js +16 -4
- package/es/utils/action.js +3 -2
- package/es/utils/form.js +4 -3
- package/es/utils/grid.js +10 -2
- package/lib/components/Builder/index.js +13 -10
- package/lib/components/ComplexItem/index.js +5 -3
- package/lib/components/ComplexItem/service.js +6 -3
- package/lib/components/LDActions/index.js +1 -0
- package/lib/components/LdAutoForm/index.js +3 -2
- package/lib/components/LdCard/index.js +10 -8
- package/lib/components/LdCom/index.js +3 -2
- package/lib/components/LdFormList/index.js +9 -6
- package/lib/components/LdGrid/index.js +11 -12
- package/lib/components/LdGridForm/index.js +3 -2
- package/lib/helper/FromItems.js +64 -5
- package/lib/helper/action.js +2 -0
- package/lib/helper/ldBuilder.js +4 -4
- package/lib/helper/ldComBuild.js +14 -9
- package/lib/locales/zh-CN.js +61 -6
- package/lib/lowcode/constants/api-url.js +360 -190
- package/lib/lowcode/constants/event-topics.js +5 -1
- package/lib/lowcode/constants/index.js +6 -5
- package/lib/lowcode/engine/meta/box.props.default.json +1 -1
- package/lib/lowcode/engine/meta/box.props.json +1 -1
- package/lib/lowcode/engine/meta/cardlist.props.json +3 -5
- package/lib/lowcode/engine/meta/components-list.json +6 -0
- package/lib/lowcode/engine/meta/dialog.props.default.json +4 -1
- package/lib/lowcode/engine/meta/dialog.props.json +24 -4
- package/lib/lowcode/engine/meta/drawer.props.json +1 -1
- package/lib/lowcode/engine/meta/fielddate.props.default.json +1 -0
- package/lib/lowcode/engine/meta/fielddate.props.json +48 -1
- package/lib/lowcode/engine/meta/fieldeditor.props.json +0 -1
- package/lib/lowcode/engine/meta/fieldgroup.props.json +0 -1
- package/lib/lowcode/engine/meta/fieldyear.props.json +0 -1
- package/lib/lowcode/engine/meta/form.props.json +3 -19
- package/lib/lowcode/engine/meta/grouptree.props.json +0 -1
- package/lib/lowcode/engine/meta/js-editor/auto-complete.json +5 -0
- package/lib/lowcode/engine/meta/jsx.props.default.json +1 -2
- package/lib/lowcode/engine/meta/jsx.props.json +4 -3
- package/lib/lowcode/engine/meta/layout.props.default.json +1 -1
- package/lib/lowcode/engine/meta/layout.props.json +1 -1
- package/lib/lowcode/engine/meta/proxy.props.default.json +15 -0
- package/lib/lowcode/engine/meta/proxy.props.json +66 -0
- package/lib/lowcode/engine/meta/section.props.json +2 -2
- package/lib/lowcode/engine/meta/table.props.json +0 -7
- package/lib/lowcode/engine/meta/tabs.props.json +1 -1
- package/lib/lowcode/engine/meta/tree.props.json +1 -5
- package/lib/lowcode/engine/provider/ContextProvider/index.js +50 -13
- package/lib/lowcode/engine/provider/ContextProvider/router.js +22 -1
- package/lib/lowcode/engine/provider/ContextProvider/usePageDataStore.js +37 -31
- package/lib/lowcode/engine/provider/ContextProvider/usePageVar.js +10 -4
- package/lib/lowcode/engine/provider/ContextProvider/useTodo.js +1 -3
- package/lib/lowcode/engine/provider/EventBusProvider.js +14 -4
- package/lib/lowcode/engine/provider/PageProxyProvider.js +103 -0
- package/lib/lowcode/engine/provider/RemoteSourceProvider.js +10 -12
- package/lib/lowcode/engine/tools/helper.js +25 -0
- package/lib/lowcode/engine/tools/initDS.js +4 -4
- package/lib/lowcode/painter/Design.js +1 -0
- package/lib/lowcode/painter/DesignOperator.js +132 -24
- package/lib/lowcode/painter/DesignToolbar.js +98 -184
- package/lib/lowcode/painter/History.js +308 -0
- package/lib/lowcode/painter/Panel.js +1 -1
- package/lib/lowcode/painter/Ribbon.js +37 -1
- package/lib/lowcode/painter/components/AdvancePanel.js +53 -49
- package/lib/lowcode/painter/components/DragDrop/DragDropContext.js +10 -3
- package/lib/lowcode/painter/components/TipIcon.js +12 -4
- package/lib/lowcode/painter/components/TreeEditor.js +76 -8
- package/lib/lowcode/painter/components/code-editor/BaseEditor.js +10 -6
- package/lib/lowcode/painter/components/code-editor/DiffEditor.js +49 -0
- package/lib/lowcode/painter/components/field-setting/FieldAttrs.js +2 -2
- package/lib/lowcode/painter/components/field-setting/SettingUI.js +55 -4
- package/lib/lowcode/painter/components/field-setting/index.js +24 -1
- package/lib/lowcode/painter/components/shortcut-modal/KeyIcon.js +18 -0
- package/lib/lowcode/painter/components/shortcut-modal/index.js +215 -0
- package/lib/lowcode/painter/panel-section/BlockEditor/index.js +9 -18
- package/lib/lowcode/painter/panel-section/BlocksEditor/index.js +4 -1
- package/lib/lowcode/painter/panel-section/ConditionCheck.js +78 -0
- package/lib/lowcode/painter/panel-section/DataSetSelector.js +6 -3
- package/lib/lowcode/painter/panel-section/DialogSize.js +83 -0
- package/lib/lowcode/painter/panel-section/DialogWidthHeight.js +67 -0
- package/lib/lowcode/painter/panel-section/FieldsSetting.js +1 -1
- package/lib/lowcode/painter/panel-section/IconConditionSelector.js +2 -2
- package/lib/lowcode/painter/panel-section/JSEditor/ToolBar.js +181 -0
- package/lib/lowcode/painter/panel-section/JSEditor/index.js +189 -0
- package/lib/lowcode/painter/panel-section/JSEditor/index.less +4 -0
- package/lib/lowcode/painter/panel-section/PageLayoutDisplay.js +7 -2
- package/lib/lowcode/painter/panel-section/ProxyLinker.js +145 -0
- package/lib/lowcode/painter/panel-section/ProxyParams.js +35 -0
- package/lib/lowcode/painter/panel-section/ProxyParamsSetter.js +248 -0
- package/lib/lowcode/painter/panel-section/StylePanel/MainPanel.js +37 -26
- package/lib/lowcode/painter/style/action-bind-modal.less +1 -1
- package/lib/lowcode/painter/style/components.less +1 -1
- package/lib/lowcode/painter/style/history.less +46 -0
- package/lib/lowcode/painter/style/outline.less +1 -1
- package/lib/lowcode/painter/style/panel-item.less +1 -0
- package/lib/lowcode/preview/DebugTool.js +86 -0
- package/lib/lowcode/preview/DebugToolDetail.js +111 -0
- package/lib/lowcode/preview/index.js +10 -18
- package/lib/lowcode/preview/useDebugSettings.js +69 -0
- package/lib/lowcode/view/Canvas.js +5 -1
- package/lib/lowcode/view/ErrorBoundary.js +88 -0
- package/lib/lowcode/view/Page.js +12 -7
- package/lib/lowcode/view/lc-components/Box/FunctionDesign.js +4 -2
- package/lib/lowcode/view/lc-components/Box/index.less +2 -2
- package/lib/lowcode/view/lc-components/Box/meta.json +1 -1
- package/lib/lowcode/view/lc-components/CardList/index.js +3 -0
- package/lib/lowcode/view/lc-components/CardList/meta.json +3 -5
- package/lib/lowcode/view/lc-components/Dialog/index.js +11 -3
- package/lib/lowcode/view/lc-components/Dialog/meta.json +24 -4
- package/lib/lowcode/view/lc-components/Drawer/index.js +3 -1
- package/lib/lowcode/view/lc-components/Drawer/meta.json +1 -1
- package/lib/lowcode/view/lc-components/FieldDate/meta.json +48 -1
- package/lib/lowcode/view/lc-components/FieldEditor/meta.json +0 -1
- package/lib/lowcode/view/lc-components/FieldGroup/meta.json +0 -1
- package/lib/lowcode/view/lc-components/FieldYear/meta.json +0 -1
- package/lib/lowcode/view/lc-components/Form/index.js +15 -19
- package/lib/lowcode/view/lc-components/Form/meta.json +3 -19
- package/lib/lowcode/view/lc-components/GroupTree/meta.json +0 -1
- package/lib/lowcode/view/lc-components/JSX/RuntimeComp.js +33 -16
- package/lib/lowcode/view/lc-components/JSX/meta.json +4 -3
- package/lib/lowcode/view/lc-components/Layout/meta.json +1 -1
- package/lib/lowcode/view/lc-components/PageLayout/index.js +1 -1
- package/lib/lowcode/view/lc-components/Proxy/FunctionDesign.js +24 -0
- package/lib/lowcode/view/lc-components/Proxy/FunctionLive.js +30 -0
- package/lib/lowcode/view/lc-components/Proxy/FunctionPreview.js +30 -0
- package/lib/lowcode/view/lc-components/Proxy/index.js +50 -0
- package/lib/lowcode/view/lc-components/Proxy/index.less +5 -0
- package/lib/lowcode/view/lc-components/Proxy/meta.json +66 -0
- package/lib/lowcode/view/lc-components/Section/meta.json +2 -2
- package/lib/lowcode/view/lc-components/Table/components/TopImex.js +16 -13
- package/lib/lowcode/view/lc-components/Table/index.js +11 -3
- package/lib/lowcode/view/lc-components/Table/meta.json +0 -7
- package/lib/lowcode/view/lc-components/Tabs/index.js +5 -1
- package/lib/lowcode/view/lc-components/Tabs/meta.json +1 -1
- package/lib/lowcode/view/lc-components/Tree/index.js +3 -0
- package/lib/lowcode/view/lc-components/Tree/meta.json +1 -5
- package/lib/lowcode/view/lc-components/Wrapper.js +8 -0
- package/lib/upload/FilesWall/index.js +13 -3
- package/lib/upload/Form/gridForm.js +13 -3
- package/lib/upload/FormItem/index.js +15 -3
- package/lib/utils/action.js +6 -0
- package/lib/utils/form.js +3 -2
- package/lib/utils/grid.js +11 -3
- package/package.json +1 -2
- package/es/lowcode/painter/panel-section/JSEditor.js +0 -49
- package/es/lowcode/view/errorBoundary.js +0 -61
- package/lib/lowcode/painter/panel-section/JSEditor.js +0 -57
- package/lib/lowcode/view/errorBoundary.js +0 -69
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.PAGE_LOAD_MOUNT = exports.LANG_SETTING_SELECT = exports.COMPONENT_UNMOUNT = exports.COMPONENT_SETTING_CLICK = exports.COMPONENT_REPOSITIONING = exports.COMPONENT_MOUNT = exports.COMPONENT_MODIFY = exports.COMPONENT_MODAL_TOGGLE = exports.COMPONENT_HOVER = exports.COMPONENT_DRAG_OVER = exports.COMPONENT_DRAG_END = exports.COMPONENT_DELETE = exports.COMPONENT_APPEND = exports.COMPONENT_ACTIVE = void 0;
|
|
6
|
+
exports.PAGE_LOAD_MOUNT = exports.LANG_SETTING_SELECT = exports.DESIGN_SHORTCUT_EMIT = exports.DESIGN_OPERATE_SAVE = exports.COMPONENT_UNMOUNT = exports.COMPONENT_SETTING_CLICK = exports.COMPONENT_REPOSITIONING = exports.COMPONENT_MOUNT = exports.COMPONENT_MODIFY = exports.COMPONENT_MODAL_TOGGLE = exports.COMPONENT_HOVER = exports.COMPONENT_DRAG_OVER = exports.COMPONENT_DRAG_END = exports.COMPONENT_DELETE = exports.COMPONENT_APPEND = exports.COMPONENT_ACTIVE = void 0;
|
|
7
7
|
/******************************** 通用Topic开始 ********************************/
|
|
8
8
|
|
|
9
9
|
var PAGE_LOAD_MOUNT = exports.PAGE_LOAD_MOUNT = 'page-load-mount';
|
|
@@ -36,6 +36,10 @@ var COMPONENT_MODAL_TOGGLE = exports.COMPONENT_MODAL_TOGGLE = 'component-modal-t
|
|
|
36
36
|
var COMPONENT_DRAG_OVER = exports.COMPONENT_DRAG_OVER = 'component-drag-over';
|
|
37
37
|
// 组件拖放完成时的事件
|
|
38
38
|
var COMPONENT_DRAG_END = exports.COMPONENT_DRAG_END = 'component-drag-end';
|
|
39
|
+
// 保存事件
|
|
40
|
+
var DESIGN_OPERATE_SAVE = exports.DESIGN_OPERATE_SAVE = 'design-operate-save';
|
|
41
|
+
// 快捷键触发事件
|
|
42
|
+
var DESIGN_SHORTCUT_EMIT = exports.DESIGN_SHORTCUT_EMIT = 'desdign-shortcut-emit';
|
|
39
43
|
|
|
40
44
|
/******************************* Design Topic结束 *******************************/
|
|
41
45
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.RUNTIME = exports.NO_DROPABLE = exports.NO_DRAGABLE = exports.META_TAG_NAME = exports.LC_RUNTIME_KEY = exports.LC_FORMITEM_UNIT = exports.LC_COMPONENT_UNIT_KEY = exports.LC_COMPONENT_UNIT = exports.LC_BUILDIN_UNIT_KEY_LIST = exports.LC_BUILDIN_UNIT_KEY = exports.FIELD_SCOPES = exports.COOKIE_VIRTUAL_ACCOUNT_KEY = exports.CONTAINER_UNITS = void 0;
|
|
6
|
+
exports.RUNTIME = exports.NO_DROPABLE = exports.NO_DRAGABLE = exports.META_TAG_NAME = exports.LC_RUNTIME_KEY = exports.LC_PAGEPROXY_KEY = exports.LC_FORMITEM_UNIT = exports.LC_COMPONENT_UNIT_KEY = exports.LC_COMPONENT_UNIT = exports.LC_BUILDIN_UNIT_KEY_LIST = exports.LC_BUILDIN_UNIT_KEY = exports.FIELD_SCOPES = exports.COOKIE_VIRTUAL_ACCOUNT_KEY = exports.CONTAINER_UNITS = void 0;
|
|
7
7
|
var RUNTIME = exports.RUNTIME = {
|
|
8
8
|
LIVE: 'live',
|
|
9
9
|
DESIGN: 'design',
|
|
@@ -11,10 +11,11 @@ var RUNTIME = exports.RUNTIME = {
|
|
|
11
11
|
};
|
|
12
12
|
var META_TAG_NAME = exports.META_TAG_NAME = 'luckda-lcpage';
|
|
13
13
|
var COOKIE_VIRTUAL_ACCOUNT_KEY = exports.COOKIE_VIRTUAL_ACCOUNT_KEY = 'Lowcode-Account';
|
|
14
|
-
var LC_RUNTIME_KEY = exports.LC_RUNTIME_KEY = '
|
|
15
|
-
var LC_COMPONENT_UNIT_KEY = exports.LC_COMPONENT_UNIT_KEY = '
|
|
16
|
-
var
|
|
17
|
-
var
|
|
14
|
+
var LC_RUNTIME_KEY = exports.LC_RUNTIME_KEY = 'LD-Runtime';
|
|
15
|
+
var LC_COMPONENT_UNIT_KEY = exports.LC_COMPONENT_UNIT_KEY = 'LD-__unitmark';
|
|
16
|
+
var LC_PAGEPROXY_KEY = exports.LC_PAGEPROXY_KEY = 'LD-__pageproxy';
|
|
17
|
+
var LC_COMPONENT_UNIT = exports.LC_COMPONENT_UNIT = 'LD-__component';
|
|
18
|
+
var LC_FORMITEM_UNIT = exports.LC_FORMITEM_UNIT = 'LD-__formitem';
|
|
18
19
|
var LC_BUILDIN_UNIT_KEY = exports.LC_BUILDIN_UNIT_KEY = {
|
|
19
20
|
PAGE_ROOT: 'page_root',
|
|
20
21
|
PAGE_HEADER: 'page_header',
|
|
@@ -98,7 +98,6 @@
|
|
|
98
98
|
"name": "图标地址",
|
|
99
99
|
"type": "_JSEditor",
|
|
100
100
|
"defaultCode": "function avatarUrl(record) { \n return null; \n}",
|
|
101
|
-
"mustConfirm": true,
|
|
102
101
|
"wrapper": "collapse",
|
|
103
102
|
"wrapperProps": {
|
|
104
103
|
"suppressIcon": true
|
|
@@ -115,7 +114,7 @@
|
|
|
115
114
|
"name": "标题内容",
|
|
116
115
|
"type": "_JSEditor",
|
|
117
116
|
"defaultCode": "function renderTitle(record) { \n return record.sname; \n}",
|
|
118
|
-
"
|
|
117
|
+
"isjsx": true,
|
|
119
118
|
"wrapper": "collapse",
|
|
120
119
|
"wrapperProps": {
|
|
121
120
|
"suppressIcon": true
|
|
@@ -138,7 +137,7 @@
|
|
|
138
137
|
"name": "描述内容",
|
|
139
138
|
"type": "_JSEditor",
|
|
140
139
|
"defaultCode": "function renderDescribe(record) { \n return record.describe; \n}",
|
|
141
|
-
"
|
|
140
|
+
"isjsx": true,
|
|
142
141
|
"wrapper": "collapse",
|
|
143
142
|
"wrapperProps": {
|
|
144
143
|
"suppressIcon": true
|
|
@@ -149,7 +148,7 @@
|
|
|
149
148
|
"name": "自定义",
|
|
150
149
|
"type": "_JSEditor",
|
|
151
150
|
"defaultCode": "function renderContent(record) { \n return null; \n}",
|
|
152
|
-
"
|
|
151
|
+
"isjsx": true,
|
|
153
152
|
"wrapper": "collapse",
|
|
154
153
|
"wrapperProps": {
|
|
155
154
|
"suppressIcon": true
|
|
@@ -232,7 +231,6 @@
|
|
|
232
231
|
"name": "不可选卡片",
|
|
233
232
|
"type": "_JSEditor",
|
|
234
233
|
"defaultCode": "function disabledCheckbox(record) { \n return false; \n}",
|
|
235
|
-
"mustConfirm": true,
|
|
236
234
|
"wrapper": "collapse",
|
|
237
235
|
"wrapperProps": {
|
|
238
236
|
"suppressIcon": true
|
|
@@ -123,6 +123,12 @@
|
|
|
123
123
|
"desc": "用于展示组织维度层级结构的数据。它提供了层级结构、节点展开/折叠、节点选择、节点操作和展示样式等功能。",
|
|
124
124
|
"icon": "icon-tree"
|
|
125
125
|
},
|
|
126
|
+
{
|
|
127
|
+
"component": "Proxy",
|
|
128
|
+
"name": "页面代理",
|
|
129
|
+
"desc": "用于代理其他页面的内容,用于实现已有页面的服用。",
|
|
130
|
+
"icon": "icon-proxy"
|
|
131
|
+
},
|
|
126
132
|
{
|
|
127
133
|
"component": "Table",
|
|
128
134
|
"name": "表格",
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
"groupName": "基础",
|
|
8
8
|
"order": 1,
|
|
9
9
|
"title": "对话框",
|
|
10
|
+
"size": "custom",
|
|
10
11
|
"width": "700px",
|
|
11
12
|
"height": "50vh",
|
|
12
13
|
"padding": 16,
|
|
@@ -14,7 +15,9 @@
|
|
|
14
15
|
"mask": true,
|
|
15
16
|
"closable": true,
|
|
16
17
|
"destroyOnClose": true,
|
|
17
|
-
"footer":
|
|
18
|
+
"footer": {
|
|
19
|
+
"checked": true
|
|
20
|
+
},
|
|
18
21
|
"okText": "确定",
|
|
19
22
|
"cancelText": "取消",
|
|
20
23
|
"btnGroup": {
|
|
@@ -20,10 +20,16 @@
|
|
|
20
20
|
"type": "_I18nInput",
|
|
21
21
|
"default": "对话框"
|
|
22
22
|
},
|
|
23
|
+
{
|
|
24
|
+
"key": "size",
|
|
25
|
+
"name": "#展现尺寸",
|
|
26
|
+
"type": "_DialogSize",
|
|
27
|
+
"default": "custom"
|
|
28
|
+
},
|
|
23
29
|
{
|
|
24
30
|
"key": "width",
|
|
25
31
|
"name": "对话框宽度",
|
|
26
|
-
"type": "
|
|
32
|
+
"type": "_DialogWidthHeight",
|
|
27
33
|
"options": [
|
|
28
34
|
{
|
|
29
35
|
"label": "px",
|
|
@@ -42,12 +48,18 @@
|
|
|
42
48
|
"value": "auto"
|
|
43
49
|
}
|
|
44
50
|
],
|
|
51
|
+
"sizeOptions": {
|
|
52
|
+
"small": "540px",
|
|
53
|
+
"default": "700px",
|
|
54
|
+
"large": "1150px",
|
|
55
|
+
"full": "100vw"
|
|
56
|
+
},
|
|
45
57
|
"default": "700px"
|
|
46
58
|
},
|
|
47
59
|
{
|
|
48
60
|
"key": "height",
|
|
49
61
|
"name": "内容区高度",
|
|
50
|
-
"type": "
|
|
62
|
+
"type": "_DialogWidthHeight",
|
|
51
63
|
"options": [
|
|
52
64
|
{
|
|
53
65
|
"label": "px",
|
|
@@ -62,6 +74,12 @@
|
|
|
62
74
|
"value": "auto"
|
|
63
75
|
}
|
|
64
76
|
],
|
|
77
|
+
"sizeOptions": {
|
|
78
|
+
"small": "40vh",
|
|
79
|
+
"default": "60vh",
|
|
80
|
+
"large": "85vh",
|
|
81
|
+
"full": "100vh"
|
|
82
|
+
},
|
|
65
83
|
"default": "50vh"
|
|
66
84
|
},
|
|
67
85
|
{
|
|
@@ -142,8 +160,10 @@
|
|
|
142
160
|
"key": "footer",
|
|
143
161
|
"name": "显示footer",
|
|
144
162
|
"desc": "是否显示底部按钮区域",
|
|
145
|
-
"type": "
|
|
146
|
-
"default":
|
|
163
|
+
"type": "_ConditionCheck",
|
|
164
|
+
"default": {
|
|
165
|
+
"checked": true
|
|
166
|
+
}
|
|
147
167
|
},
|
|
148
168
|
{
|
|
149
169
|
"key": "okText",
|
|
@@ -29,12 +29,59 @@
|
|
|
29
29
|
"name": "日期格式",
|
|
30
30
|
"type": "string"
|
|
31
31
|
},
|
|
32
|
+
{
|
|
33
|
+
"key": "format",
|
|
34
|
+
"name": "日期格式",
|
|
35
|
+
"type": "select",
|
|
36
|
+
"options": [
|
|
37
|
+
{
|
|
38
|
+
"label": "年-月-日 时:分:秒",
|
|
39
|
+
"value": "YYYY-MM-DD HH:mm:ss"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"label": "年-月-日 时:分",
|
|
43
|
+
"value": "YYYY-MM-DD HH:mm"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"label": "年-月-日 时",
|
|
47
|
+
"value": "YYYY-MM-DD HH"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"label": "年-月-日",
|
|
51
|
+
"value": "YYYY-MM-DD"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"label": "年-月",
|
|
55
|
+
"value": "YYYY-MM"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"label": "年",
|
|
59
|
+
"value": "YYYY"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"label": "时:分:秒",
|
|
63
|
+
"value": "HH:mm:ss"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"label": "时:分",
|
|
67
|
+
"value": "HH:mm"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"label": "分:秒",
|
|
71
|
+
"value": "mm:ss"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"label": "年-周",
|
|
75
|
+
"value": "YYYY-wo"
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"default": 16
|
|
79
|
+
},
|
|
32
80
|
{
|
|
33
81
|
"key": "disabledDate",
|
|
34
82
|
"name": "不可选日期",
|
|
35
83
|
"type": "_JSEditor",
|
|
36
84
|
"defaultCode": "function disabledDate(currentDate) {return true}",
|
|
37
|
-
"mustConfirm": true,
|
|
38
85
|
"wrapper": "collapse",
|
|
39
86
|
"wrapperProps": {
|
|
40
87
|
"suppressIcon": true
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"name": "按钮区域左侧渲染",
|
|
84
84
|
"type": "_JSEditor",
|
|
85
85
|
"defaultCode": "function renderFormLeft() { \n return null; \n}",
|
|
86
|
-
"
|
|
86
|
+
"isjsx": true,
|
|
87
87
|
"wrapper": "collapse",
|
|
88
88
|
"wrapperProps": {
|
|
89
89
|
"suppressIcon": true
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"name": "按钮区域右侧渲染",
|
|
95
95
|
"type": "_JSEditor",
|
|
96
96
|
"defaultCode": "function renderFormRight() { \n return null; \n}",
|
|
97
|
-
"
|
|
97
|
+
"isjsx": true,
|
|
98
98
|
"wrapper": "collapse",
|
|
99
99
|
"wrapperProps": {
|
|
100
100
|
"suppressIcon": true
|
|
@@ -273,7 +273,6 @@
|
|
|
273
273
|
"desc": "格式化新增时默认数据",
|
|
274
274
|
"type": "_JSEditor",
|
|
275
275
|
"defaultCode": "function defaultDataSourceFormat(defaultValues) { \n return {}; \n}",
|
|
276
|
-
"mustConfirm": true,
|
|
277
276
|
"wrapper": "collapse",
|
|
278
277
|
"wrapperProps": {
|
|
279
278
|
"suppressIcon": true
|
|
@@ -285,7 +284,6 @@
|
|
|
285
284
|
"desc": "格式化单表提交数据",
|
|
286
285
|
"type": "_JSEditor",
|
|
287
286
|
"defaultCode": "function dataSourceFormat(dataSetKey, values, submitData) { \n return { [dataSetKey]: submitData }; \n}",
|
|
288
|
-
"mustConfirm": true,
|
|
289
287
|
"wrapper": "collapse",
|
|
290
288
|
"wrapperProps": {
|
|
291
289
|
"suppressIcon": true
|
|
@@ -390,7 +388,6 @@
|
|
|
390
388
|
"desc": "重写操列",
|
|
391
389
|
"type": "_JSEditor",
|
|
392
390
|
"defaultCode": "function actionsColumnReset(data, index, actions, params) { \n \t \n}",
|
|
393
|
-
"mustConfirm": true,
|
|
394
391
|
"wrapper": "collapse",
|
|
395
392
|
"wrapperProps": {
|
|
396
393
|
"suppressIcon": true
|
|
@@ -404,7 +401,6 @@
|
|
|
404
401
|
"desc": "格式化新增时默认数据",
|
|
405
402
|
"type": "_JSEditor",
|
|
406
403
|
"defaultCode": "function defaultDataSourceFormat(defaultValues) { \n return {}; \n}",
|
|
407
|
-
"mustConfirm": true,
|
|
408
404
|
"wrapper": "collapse",
|
|
409
405
|
"wrapperProps": {
|
|
410
406
|
"suppressIcon": true
|
|
@@ -416,7 +412,6 @@
|
|
|
416
412
|
"desc": "格式化单表提交数据",
|
|
417
413
|
"type": "_JSEditor",
|
|
418
414
|
"defaultCode": "function dataSourceFormat(dataSetKey, values, submitData, behaviorKey) { \n return { [dataSetKey]: { [`${behaviorKey}List`]: submitData } }; \n}",
|
|
419
|
-
"mustConfirm": true,
|
|
420
415
|
"wrapper": "collapse",
|
|
421
416
|
"wrapperProps": {
|
|
422
417
|
"suppressIcon": true
|
|
@@ -428,7 +423,6 @@
|
|
|
428
423
|
"desc": "重置表格列",
|
|
429
424
|
"type": "_JSEditor",
|
|
430
425
|
"defaultCode": "function columnsReset(columns) { \n return columns; \n}",
|
|
431
|
-
"mustConfirm": true,
|
|
432
426
|
"wrapper": "collapse",
|
|
433
427
|
"wrapperProps": {
|
|
434
428
|
"suppressIcon": true
|
|
@@ -440,7 +434,6 @@
|
|
|
440
434
|
"desc": "加载完成回调",
|
|
441
435
|
"type": "_JSEditor",
|
|
442
436
|
"defaultCode": "function onGridFormReady(ref, params, gridForm) { \n\t\n}",
|
|
443
|
-
"mustConfirm": true,
|
|
444
437
|
"wrapper": "collapse",
|
|
445
438
|
"wrapperProps": {
|
|
446
439
|
"suppressIcon": true
|
|
@@ -516,7 +509,6 @@
|
|
|
516
509
|
"desc": "重写操作列",
|
|
517
510
|
"type": "_JSEditor",
|
|
518
511
|
"defaultCode": "function actionsColumnReset(data, index, actions, params) { \n \t \n}",
|
|
519
|
-
"mustConfirm": true,
|
|
520
512
|
"wrapper": "collapse",
|
|
521
513
|
"wrapperProps": {
|
|
522
514
|
"suppressIcon": true
|
|
@@ -530,7 +522,6 @@
|
|
|
530
522
|
"desc": "格式化新增时默认数据",
|
|
531
523
|
"type": "_JSEditor",
|
|
532
524
|
"defaultCode": "function defaultDataSourceFormat(defaultValues) { \n return {}; \n}",
|
|
533
|
-
"mustConfirm": true,
|
|
534
525
|
"wrapper": "collapse",
|
|
535
526
|
"wrapperProps": {
|
|
536
527
|
"suppressIcon": true
|
|
@@ -542,7 +533,6 @@
|
|
|
542
533
|
"desc": "格式化单表提交数据",
|
|
543
534
|
"type": "_JSEditor",
|
|
544
535
|
"defaultCode": "function dataSourceFormat(dataSetKey, values, submitData, behaviorKey) { \n return { [dataSetKey]: { [`${behaviorKey}List`]: submitData } }; \n}",
|
|
545
|
-
"mustConfirm": true,
|
|
546
536
|
"wrapper": "collapse",
|
|
547
537
|
"wrapperProps": {
|
|
548
538
|
"suppressIcon": true
|
|
@@ -554,7 +544,6 @@
|
|
|
554
544
|
"desc": "重置表格列",
|
|
555
545
|
"type": "_JSEditor",
|
|
556
546
|
"defaultCode": "function columnsReset(columns) { \n return columns; \n}",
|
|
557
|
-
"mustConfirm": true,
|
|
558
547
|
"wrapper": "collapse",
|
|
559
548
|
"wrapperProps": {
|
|
560
549
|
"suppressIcon": true
|
|
@@ -566,7 +555,6 @@
|
|
|
566
555
|
"desc": "加载完成回调",
|
|
567
556
|
"type": "_JSEditor",
|
|
568
557
|
"defaultCode": "function onGridFormReady(ref, params, gridForm) { \n\t\n}",
|
|
569
|
-
"mustConfirm": true,
|
|
570
558
|
"wrapper": "collapse",
|
|
571
559
|
"wrapperProps": {
|
|
572
560
|
"suppressIcon": true
|
|
@@ -620,7 +608,6 @@
|
|
|
620
608
|
"name": "自定义操作列",
|
|
621
609
|
"type": "_JSEditor",
|
|
622
610
|
"defaultCode": "function resetActions(data, index, actionList, params) { \n return actionList; \n}",
|
|
623
|
-
"mustConfirm": true,
|
|
624
611
|
"wrapper": "collapse",
|
|
625
612
|
"wrapperProps": {
|
|
626
613
|
"suppressIcon": true
|
|
@@ -631,7 +618,6 @@
|
|
|
631
618
|
"name": "禁止上传类型",
|
|
632
619
|
"type": "_JSEditor",
|
|
633
620
|
"defaultCode": "function forbiddenTypes() { \n return []; \n}",
|
|
634
|
-
"mustConfirm": true,
|
|
635
621
|
"wrapper": "collapse",
|
|
636
622
|
"wrapperProps": {
|
|
637
623
|
"suppressIcon": true
|
|
@@ -642,7 +628,6 @@
|
|
|
642
628
|
"name": "上传前置事件",
|
|
643
629
|
"type": "_JSEditor",
|
|
644
630
|
"defaultCode": "function beforeUpload(file, fileList) { \n return true; \n}",
|
|
645
|
-
"mustConfirm": true,
|
|
646
631
|
"wrapper": "collapse",
|
|
647
632
|
"wrapperProps": {
|
|
648
633
|
"suppressIcon": true
|
|
@@ -653,7 +638,6 @@
|
|
|
653
638
|
"name": "上传事件回调",
|
|
654
639
|
"type": "_JSEditor",
|
|
655
640
|
"defaultCode": "function onUploadChange(event) { \n\t\n}",
|
|
656
|
-
"mustConfirm": true,
|
|
657
641
|
"wrapper": "collapse",
|
|
658
642
|
"wrapperProps": {
|
|
659
643
|
"suppressIcon": true
|
|
@@ -677,7 +661,7 @@
|
|
|
677
661
|
"key": "beforeSave",
|
|
678
662
|
"name": "保存前置事件",
|
|
679
663
|
"desc": "保存前置事件,promise,返回false取消执行",
|
|
680
|
-
"func": "function beforeSave(values, data) {\n return values; \n}"
|
|
664
|
+
"func": "function beforeSave(values, data) {\n return new Promise(resolve=>resolve(values)); \n}"
|
|
681
665
|
},
|
|
682
666
|
{
|
|
683
667
|
"key": "onSaveCallback",
|
|
@@ -18,12 +18,13 @@
|
|
|
18
18
|
"name": "编辑jsx代码",
|
|
19
19
|
"desc": "编写可执行的完整jsx组件代码",
|
|
20
20
|
"type": "_JSEditor",
|
|
21
|
-
"
|
|
22
|
-
"
|
|
21
|
+
"defaultCode": "function Component() {\n\treturn(\n\t\t<div>\n\t\t\t此为自定义代码组件,请使用 JSX 语法\n\t\t</div>\n\t)\n}",
|
|
22
|
+
"isjsx": true,
|
|
23
23
|
"wrapper": "collapse",
|
|
24
24
|
"wrapperProps": {
|
|
25
25
|
"suppressIcon": true
|
|
26
|
-
}
|
|
26
|
+
},
|
|
27
|
+
"repositioning": true
|
|
27
28
|
}
|
|
28
29
|
],
|
|
29
30
|
"css": ""
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"groupName": "布局",
|
|
7
7
|
"desc": "布局容器是一种提供列比例、列间距、行间距和样式等配置选项的元素,用于创建灵活的页面布局。它使用户能够轻松组织和排列组件,并实现各种复杂的布局需求。",
|
|
8
8
|
"order": 1,
|
|
9
|
-
"css": "background-color: transparent;",
|
|
9
|
+
"css": "height:auto; background-color: transparent;",
|
|
10
10
|
"columnRatio": "12:3:9",
|
|
11
11
|
"columnSpacing": 16,
|
|
12
12
|
"lineSpacing": 16,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"component": "Proxy",
|
|
3
|
+
"name": "页面代理",
|
|
4
|
+
"desc": "用于代理其他页面的内容,用于实现已有页面的服用。",
|
|
5
|
+
"icon": "icon-proxy",
|
|
6
|
+
"group": "advance",
|
|
7
|
+
"groupName": "高级",
|
|
8
|
+
"order": 6,
|
|
9
|
+
"css": "width: 100%; height: 100%; background-color: transparent;",
|
|
10
|
+
"destroyOnUnmount": false,
|
|
11
|
+
"proxyParams": [],
|
|
12
|
+
"advance": {
|
|
13
|
+
"events": {}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"component": "Proxy",
|
|
3
|
+
"name": "页面代理",
|
|
4
|
+
"desc": "用于代理其他页面的内容,用于实现已有页面的服用。",
|
|
5
|
+
"icon": "icon-proxy",
|
|
6
|
+
"group": "advance",
|
|
7
|
+
"groupName": "高级",
|
|
8
|
+
"order": 6,
|
|
9
|
+
"props": [
|
|
10
|
+
{
|
|
11
|
+
"key": "id",
|
|
12
|
+
"name": "唯一标识",
|
|
13
|
+
"type": "string",
|
|
14
|
+
"disabled": true
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"key": "destroyOnUnmount",
|
|
18
|
+
"name": "卸载时销毁",
|
|
19
|
+
"type": "switch",
|
|
20
|
+
"default": false
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"key": "proxyCode",
|
|
24
|
+
"name": "页面编码",
|
|
25
|
+
"type": "_ProxyLinker"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"key": "proxyParams",
|
|
29
|
+
"name": "页面参数",
|
|
30
|
+
"type": "_ProxyParams",
|
|
31
|
+
"wrapper": "collapse",
|
|
32
|
+
"wrapperProps": {
|
|
33
|
+
"suppressIcon": true
|
|
34
|
+
},
|
|
35
|
+
"next": {
|
|
36
|
+
"name": "页面参数对象",
|
|
37
|
+
"autoClose": true,
|
|
38
|
+
"props": [
|
|
39
|
+
{
|
|
40
|
+
"key": "proxyParams",
|
|
41
|
+
"name": "#页面参数对象",
|
|
42
|
+
"type": "_ProxyParamsSetter",
|
|
43
|
+
"default": []
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"css": "width: 100%; height: 100%; background-color: transparent;",
|
|
50
|
+
"advance": {
|
|
51
|
+
"events": [
|
|
52
|
+
{
|
|
53
|
+
"key": "onMount",
|
|
54
|
+
"name": "组件首次渲染完成",
|
|
55
|
+
"desc": "在组件首次渲染完成时,执行方法",
|
|
56
|
+
"func": "function onPageMount(){\n\t\n}"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"key": "onUnmount",
|
|
60
|
+
"name": "组件卸载时",
|
|
61
|
+
"desc": "在组件卸载时,执行方法。",
|
|
62
|
+
"func": "function onPageUnmount(){\n\t\n}"
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"desc": "分组副标题的插槽内容",
|
|
74
74
|
"type": "_JSEditor",
|
|
75
75
|
"defaultCode": "function Component() { \n return <span>subtitle</span>; \n}",
|
|
76
|
-
"
|
|
76
|
+
"isjsx": true,
|
|
77
77
|
"wrapper": "collapse",
|
|
78
78
|
"wrapperProps": {
|
|
79
79
|
"suppressIcon": true
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"desc": "分组扩展区域的插槽内容",
|
|
86
86
|
"type": "_JSEditor",
|
|
87
87
|
"defaultCode": "function Component() { \n return <div>extra</div>; \n}",
|
|
88
|
-
"
|
|
88
|
+
"isjsx": true,
|
|
89
89
|
"wrapper": "collapse",
|
|
90
90
|
"wrapperProps": {
|
|
91
91
|
"suppressIcon": true
|