@luck-design-biz/luckda 1.0.0-alpha → 1.0.1-10
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 +15 -3
- package/es/components/ComplexItem/index.js +65 -49
- package/es/components/LDActions/index.less +68 -68
- package/es/components/LdAutoForm/index.js +6 -4
- package/es/components/LdFormList/index.js +11 -10
- package/es/components/LdGrid/index.js +4 -4
- package/es/components/LdGridForm/index.js +40 -23
- package/es/components/LdGridForm/index.less +7 -7
- package/es/components/LdTree/index.less +40 -40
- package/es/helper/action.js +6 -6
- package/es/helper/form.js +15 -14
- package/es/helper/index.less +7 -7
- package/es/helper/ldBuilder.js +8 -3
- package/es/locales/zh-CN.js +41 -4
- package/es/lowcode/constants/api-url.js +87 -87
- 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 +2 -1
- package/es/lowcode/engine/meta/components-list.json +6 -126
- package/es/lowcode/engine/meta/dialog.props.default.json +4 -2
- package/es/lowcode/engine/meta/dialog.props.json +76 -20
- package/es/lowcode/engine/meta/drawer.props.default.json +15 -4
- package/es/lowcode/engine/meta/drawer.props.json +144 -24
- 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/fielddatadic.props.default.json +16 -0
- package/es/lowcode/engine/meta/fielddatadic.props.json +73 -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 +14 -4
- package/es/lowcode/engine/meta/form.props.json +53 -14
- package/es/lowcode/engine/meta/grouptree.props.default.json +16 -0
- package/es/lowcode/engine/meta/grouptree.props.json +89 -0
- package/es/lowcode/engine/meta/iframe.props.default.json +2 -1
- package/es/lowcode/engine/meta/iframe.props.json +3 -2
- package/es/lowcode/engine/meta/image.props.default.json +2 -1
- package/es/lowcode/engine/meta/image.props.json +3 -2
- package/es/lowcode/engine/meta/imex.props.default.json +2 -1
- package/es/lowcode/engine/meta/imex.props.json +27 -6
- package/es/lowcode/engine/meta/js-editor/auto-complete.json +65 -42
- 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 +3 -2
- 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 +3 -3
- 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/meta/tree.props.json +2 -2
- package/es/lowcode/engine/provider/ContextProvider/index.js +83 -66
- 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/dataProcess.js +76 -76
- package/es/lowcode/engine/tools/helper.js +28 -2
- package/es/lowcode/engine/tools/initDS.js +263 -0
- package/es/lowcode/engine/tools/useCanvasRender.js +13 -1
- package/es/lowcode/engine/tools/useCombinedRefs.js +3 -2
- package/es/lowcode/painter/Components.js +2 -2
- package/es/lowcode/painter/Design.js +1 -0
- package/es/lowcode/painter/DesignOperator.js +25 -11
- package/es/lowcode/painter/Panel.js +2 -2
- package/es/lowcode/painter/components/AdvancePanel.js +3 -3
- package/es/lowcode/painter/components/Collapse.js +31 -28
- package/es/lowcode/painter/components/ColorInput.js +24 -24
- package/es/lowcode/painter/components/ListEditor.js +24 -24
- package/es/lowcode/painter/components/NumberInput.js +29 -29
- package/es/lowcode/painter/components/PanelItem.js +24 -24
- package/es/lowcode/painter/components/PopConfirm.js +8 -8
- package/es/lowcode/painter/components/PopForm.js +27 -27
- package/es/lowcode/painter/components/RuleInput.js +30 -30
- package/es/lowcode/painter/components/SortBox.js +22 -22
- 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/BaseEditor.js +32 -32
- package/es/lowcode/painter/components/code-editor/CssEditor.js +25 -25
- package/es/lowcode/painter/components/code-editor/FullScreenEditor.js +25 -25
- package/es/lowcode/painter/components/code-editor/JSEditor.js +23 -21
- package/es/lowcode/painter/components/code-editor/JsonEditor.js +25 -25
- package/es/lowcode/painter/components/code-editor/VisionEditor.js +81 -0
- package/es/lowcode/painter/components/field-setting/SettingUI.js +47 -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/GroupClassSelector.js +55 -0
- package/es/lowcode/painter/panel-section/I18nInput.js +4 -2
- package/es/lowcode/painter/panel-section/Icon.js +32 -27
- package/es/lowcode/painter/panel-section/IconConditionSelector.js +7 -7
- package/es/lowcode/painter/panel-section/IconSelector.js +17 -17
- 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 +22 -21
- package/es/lowcode/painter/panel-section/PageVars.js +300 -0
- package/es/lowcode/painter/panel-section/StylePanel/BackGround.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Border.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/BorderRadius.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/BorderSelector.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Display.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Font.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/FontEditor.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/GapSelector.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/HighLightPanel.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/HightLightSvg.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/MainPanel.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Margin.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Opacity.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Padding.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Pointer.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Shadow.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Size.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/StyleContext.js +6 -5
- package/es/lowcode/painter/panel-section/StylePanel/StyleRow.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/WidthHeight.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/index.js +15 -15
- 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/action-bind-modal.less +102 -102
- package/es/lowcode/painter/style/actions-editor.less +15 -15
- package/es/lowcode/painter/style/border-editor.less +36 -36
- package/es/lowcode/painter/style/border-radius-selector.less +42 -42
- package/es/lowcode/painter/style/border-selector.less +39 -39
- package/es/lowcode/painter/style/button-type.less +5 -5
- package/es/lowcode/painter/style/collapse.less +28 -28
- package/es/lowcode/painter/style/color-input.less +19 -19
- package/es/lowcode/painter/style/components.less +91 -91
- package/es/lowcode/painter/style/design.less +166 -160
- package/es/lowcode/painter/style/display.less +17 -17
- package/es/lowcode/painter/style/dragdrop.less +10 -10
- package/es/lowcode/painter/style/fields-setting.less +25 -25
- package/es/lowcode/painter/style/font-editor.less +9 -9
- package/es/lowcode/painter/style/fullscreen-editor.less +17 -17
- package/es/lowcode/painter/style/icon-selector.less +22 -22
- package/es/lowcode/painter/style/icon.less +10 -10
- package/es/lowcode/painter/style/impexp.less +7 -7
- package/es/lowcode/painter/style/index.less +6 -6
- package/es/lowcode/painter/style/layout-ratio.less +51 -51
- package/es/lowcode/painter/style/list-editor.less +95 -95
- package/es/lowcode/painter/style/number-input.less +17 -17
- package/es/lowcode/painter/style/outline.less +28 -28
- package/es/lowcode/painter/style/page-layout-display.less +27 -27
- package/es/lowcode/painter/style/page-vars.less +25 -0
- package/es/lowcode/painter/style/panel-attrs.less +43 -43
- package/es/lowcode/painter/style/panel-item.less +54 -54
- package/es/lowcode/painter/style/panel.less +98 -98
- package/es/lowcode/painter/style/pop-confirm.less +17 -17
- package/es/lowcode/painter/style/pop-form.less +19 -19
- package/es/lowcode/painter/style/radio.less +24 -24
- package/es/lowcode/painter/style/ribbon.less +5 -5
- package/es/lowcode/painter/style/rule-input.less +12 -12
- package/es/lowcode/painter/style/split-display.less +18 -18
- package/es/lowcode/painter/style/style-panel.less +37 -37
- package/es/lowcode/painter/style/tabitems.less +90 -90
- package/es/lowcode/painter/style/treedragdrop.less +19 -19
- 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 +22 -7
- package/es/lowcode/view/lc-components/Box/index.less +14 -14
- package/es/lowcode/view/lc-components/Box/meta.json +40 -40
- package/es/lowcode/view/lc-components/Button/index.js +40 -40
- package/es/lowcode/view/lc-components/Button/meta.json +127 -127
- package/es/lowcode/view/lc-components/Button/style.less +2 -2
- package/es/lowcode/view/lc-components/CardList/meta.json +154 -153
- package/es/lowcode/view/lc-components/Dialog/FunctionDesign.js +14 -6
- package/es/lowcode/view/lc-components/Dialog/index.js +34 -25
- package/es/lowcode/view/lc-components/Dialog/index.less +12 -8
- package/es/lowcode/view/lc-components/Dialog/meta.json +204 -150
- package/es/lowcode/view/lc-components/Drawer/FunctionDesign.js +51 -8
- package/es/lowcode/view/lc-components/Drawer/index.js +149 -34
- package/es/lowcode/view/lc-components/Drawer/index.less +13 -10
- package/es/lowcode/view/lc-components/Drawer/meta.json +242 -131
- package/es/lowcode/view/lc-components/FieldColor/meta.json +157 -157
- package/es/lowcode/view/lc-components/FieldComplex/meta.json +140 -133
- package/es/lowcode/view/lc-components/FieldDate/meta.json +141 -139
- package/es/lowcode/view/lc-components/FieldDict/meta.json +138 -138
- package/es/lowcode/view/lc-components/FieldEditor/meta.json +138 -138
- package/es/lowcode/view/lc-components/FieldGroup/meta.json +167 -167
- package/es/lowcode/view/lc-components/FieldNumber/meta.json +143 -142
- package/es/lowcode/view/lc-components/FieldRadio/meta.json +115 -115
- package/es/lowcode/view/lc-components/FieldRegion/meta.json +121 -121
- package/es/lowcode/view/lc-components/FieldSelect/meta.json +152 -152
- package/es/lowcode/view/lc-components/FieldString/meta.json +152 -152
- package/es/lowcode/view/lc-components/FieldSwitch/meta.json +125 -125
- package/es/lowcode/view/lc-components/FieldTextarea/meta.json +143 -143
- package/es/lowcode/view/lc-components/FieldUpload/meta.json +165 -165
- package/es/lowcode/view/lc-components/FieldUser/meta.json +176 -176
- package/es/lowcode/view/lc-components/FieldYear/meta.json +129 -129
- package/es/lowcode/view/lc-components/Form/FunctionDesign.js +2 -1
- package/es/lowcode/view/lc-components/Form/index.js +76 -51
- package/es/lowcode/view/lc-components/Form/meta.json +645 -610
- package/es/lowcode/view/lc-components/GroupTree/FunctionDesign.js +10 -0
- package/es/lowcode/view/lc-components/GroupTree/FunctionLive.js +10 -0
- package/es/lowcode/view/lc-components/GroupTree/FunctionPreview.js +10 -0
- package/es/lowcode/view/lc-components/GroupTree/index.js +201 -0
- package/es/lowcode/view/lc-components/GroupTree/meta.json +89 -0
- package/es/lowcode/view/lc-components/Iframe/meta.json +33 -32
- package/es/lowcode/view/lc-components/ImEx/index.js +199 -128
- package/es/lowcode/view/lc-components/ImEx/index.less +7 -7
- package/es/lowcode/view/lc-components/ImEx/meta.json +134 -113
- package/es/lowcode/view/lc-components/Image/meta.json +115 -114
- package/es/lowcode/view/lc-components/JSX/RuntimeComp.js +4 -4
- package/es/lowcode/view/lc-components/JSX/meta.json +28 -28
- package/es/lowcode/view/lc-components/Layout/index.js +38 -21
- package/es/lowcode/view/lc-components/Layout/index.less +5 -5
- package/es/lowcode/view/lc-components/Layout/meta.json +107 -107
- package/es/lowcode/view/lc-components/Link/meta.json +113 -112
- package/es/lowcode/view/lc-components/Page/meta.json +61 -55
- package/es/lowcode/view/lc-components/PageContent/meta.json +9 -9
- package/es/lowcode/view/lc-components/PageFooter/meta.json +9 -9
- package/es/lowcode/view/lc-components/PageHeader/meta.json +9 -9
- package/es/lowcode/view/lc-components/PageLayout/FunctionDesign.js +5 -1
- package/es/lowcode/view/lc-components/PageLayout/meta.json +59 -59
- package/es/lowcode/view/lc-components/Section/index.js +2 -6
- package/es/lowcode/view/lc-components/Section/index.less +7 -7
- package/es/lowcode/view/lc-components/Section/meta.json +108 -107
- package/es/lowcode/view/lc-components/Split/index.js +19 -4
- package/es/lowcode/view/lc-components/Split/meta.json +53 -53
- package/es/lowcode/view/lc-components/Table/index.js +175 -148
- package/es/lowcode/view/lc-components/Table/meta.json +450 -450
- package/es/lowcode/view/lc-components/Tabs/index.js +42 -39
- package/es/lowcode/view/lc-components/Tabs/meta.json +113 -113
- package/es/lowcode/view/lc-components/Text/index.js +9 -2
- package/es/lowcode/view/lc-components/Text/meta.json +56 -56
- package/es/lowcode/view/lc-components/Tree/index.js +102 -107
- package/es/lowcode/view/lc-components/Tree/index.less +4 -4
- package/es/lowcode/view/lc-components/Tree/meta.json +357 -357
- package/es/lowcode/view/lc-components/Wrapper.js +17 -2
- package/es/lowcode/view/style/canvas.less +5 -5
- package/es/lowcode/view/style/loading.less +98 -84
- package/es/lowcode/view/style/page.less +7 -7
- package/es/services.js +19 -0
- package/es/upload/FilesWall/index.js +13 -13
- package/es/upload/FilesWall/index.less +74 -74
- package/es/upload/Form/gridForm.js +17 -7
- package/es/upload/Form/index.less +7 -7
- package/es/upload/FormItem/index.js +18 -18
- package/es/utils/form.js +25 -25
- package/es/utils/grid.js +5 -4
- package/lib/components/Builder/index.js +13 -1
- package/lib/components/ComplexItem/index.js +62 -47
- package/lib/components/LDActions/index.less +68 -68
- package/lib/components/LdAutoForm/index.js +5 -3
- package/lib/components/LdFormList/index.js +12 -11
- package/lib/components/LdGrid/index.js +4 -4
- package/lib/components/LdGridForm/index.js +40 -23
- package/lib/components/LdGridForm/index.less +7 -7
- package/lib/components/LdTree/index.less +40 -40
- package/lib/helper/action.js +6 -6
- package/lib/helper/form.js +15 -14
- package/lib/helper/index.less +7 -7
- package/lib/helper/ldBuilder.js +8 -3
- package/lib/locales/zh-CN.js +41 -4
- package/lib/lowcode/constants/api-url.js +87 -87
- 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 +2 -1
- package/lib/lowcode/engine/meta/components-list.json +6 -126
- package/lib/lowcode/engine/meta/dialog.props.default.json +4 -2
- package/lib/lowcode/engine/meta/dialog.props.json +76 -20
- package/lib/lowcode/engine/meta/drawer.props.default.json +15 -4
- package/lib/lowcode/engine/meta/drawer.props.json +144 -24
- 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/fielddatadic.props.default.json +16 -0
- package/lib/lowcode/engine/meta/fielddatadic.props.json +73 -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 +14 -4
- package/lib/lowcode/engine/meta/form.props.json +53 -14
- package/lib/lowcode/engine/meta/grouptree.props.default.json +16 -0
- package/lib/lowcode/engine/meta/grouptree.props.json +89 -0
- package/lib/lowcode/engine/meta/iframe.props.default.json +2 -1
- package/lib/lowcode/engine/meta/iframe.props.json +3 -2
- package/lib/lowcode/engine/meta/image.props.default.json +2 -1
- package/lib/lowcode/engine/meta/image.props.json +3 -2
- package/lib/lowcode/engine/meta/imex.props.default.json +2 -1
- package/lib/lowcode/engine/meta/imex.props.json +27 -6
- package/lib/lowcode/engine/meta/js-editor/auto-complete.json +65 -42
- 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 +3 -2
- 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 +3 -3
- 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/meta/tree.props.json +2 -2
- package/lib/lowcode/engine/provider/ContextProvider/index.js +81 -64
- 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/dataProcess.js +76 -76
- package/lib/lowcode/engine/tools/helper.js +29 -2
- package/lib/lowcode/engine/tools/initDS.js +270 -0
- package/lib/lowcode/engine/tools/useCanvasRender.js +13 -1
- package/lib/lowcode/engine/tools/useCombinedRefs.js +2 -1
- package/lib/lowcode/painter/Components.js +2 -2
- package/lib/lowcode/painter/Design.js +1 -0
- package/lib/lowcode/painter/DesignOperator.js +24 -10
- package/lib/lowcode/painter/Panel.js +2 -2
- package/lib/lowcode/painter/components/AdvancePanel.js +3 -3
- package/lib/lowcode/painter/components/Collapse.js +31 -28
- package/lib/lowcode/painter/components/ColorInput.js +24 -24
- package/lib/lowcode/painter/components/ListEditor.js +24 -24
- package/lib/lowcode/painter/components/NumberInput.js +29 -29
- package/lib/lowcode/painter/components/PanelItem.js +24 -24
- package/lib/lowcode/painter/components/PopConfirm.js +8 -8
- package/lib/lowcode/painter/components/PopForm.js +27 -27
- package/lib/lowcode/painter/components/RuleInput.js +30 -30
- package/lib/lowcode/painter/components/SortBox.js +22 -22
- 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/BaseEditor.js +32 -32
- package/lib/lowcode/painter/components/code-editor/CssEditor.js +25 -25
- package/lib/lowcode/painter/components/code-editor/FullScreenEditor.js +25 -25
- package/lib/lowcode/painter/components/code-editor/JSEditor.js +23 -21
- package/lib/lowcode/painter/components/code-editor/JsonEditor.js +25 -25
- package/lib/lowcode/painter/components/code-editor/VisionEditor.js +88 -0
- package/lib/lowcode/painter/components/field-setting/SettingUI.js +46 -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/GroupClassSelector.js +63 -0
- package/lib/lowcode/painter/panel-section/I18nInput.js +4 -2
- package/lib/lowcode/painter/panel-section/Icon.js +31 -26
- package/lib/lowcode/painter/panel-section/IconConditionSelector.js +6 -6
- package/lib/lowcode/painter/panel-section/IconSelector.js +17 -17
- 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 +22 -21
- package/lib/lowcode/painter/panel-section/PageVars.js +308 -0
- package/lib/lowcode/painter/panel-section/StylePanel/BackGround.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Border.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/BorderRadius.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/BorderSelector.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Display.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Font.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/FontEditor.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/GapSelector.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/HighLightPanel.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/HightLightSvg.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/MainPanel.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Margin.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Opacity.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Padding.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Pointer.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Shadow.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Size.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/StyleContext.js +6 -5
- package/lib/lowcode/painter/panel-section/StylePanel/StyleRow.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/WidthHeight.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/index.js +15 -15
- 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/action-bind-modal.less +102 -102
- package/lib/lowcode/painter/style/actions-editor.less +15 -15
- package/lib/lowcode/painter/style/border-editor.less +36 -36
- package/lib/lowcode/painter/style/border-radius-selector.less +42 -42
- package/lib/lowcode/painter/style/border-selector.less +39 -39
- package/lib/lowcode/painter/style/button-type.less +5 -5
- package/lib/lowcode/painter/style/collapse.less +28 -28
- package/lib/lowcode/painter/style/color-input.less +19 -19
- package/lib/lowcode/painter/style/components.less +91 -91
- package/lib/lowcode/painter/style/design.less +166 -160
- package/lib/lowcode/painter/style/display.less +17 -17
- package/lib/lowcode/painter/style/dragdrop.less +10 -10
- package/lib/lowcode/painter/style/fields-setting.less +25 -25
- package/lib/lowcode/painter/style/font-editor.less +9 -9
- package/lib/lowcode/painter/style/fullscreen-editor.less +17 -17
- package/lib/lowcode/painter/style/icon-selector.less +22 -22
- package/lib/lowcode/painter/style/icon.less +10 -10
- package/lib/lowcode/painter/style/impexp.less +7 -7
- package/lib/lowcode/painter/style/index.less +6 -6
- package/lib/lowcode/painter/style/layout-ratio.less +51 -51
- package/lib/lowcode/painter/style/list-editor.less +95 -95
- package/lib/lowcode/painter/style/number-input.less +17 -17
- package/lib/lowcode/painter/style/outline.less +28 -28
- package/lib/lowcode/painter/style/page-layout-display.less +27 -27
- package/lib/lowcode/painter/style/page-vars.less +25 -0
- package/lib/lowcode/painter/style/panel-attrs.less +43 -43
- package/lib/lowcode/painter/style/panel-item.less +54 -54
- package/lib/lowcode/painter/style/panel.less +98 -98
- package/lib/lowcode/painter/style/pop-confirm.less +17 -17
- package/lib/lowcode/painter/style/pop-form.less +19 -19
- package/lib/lowcode/painter/style/radio.less +24 -24
- package/lib/lowcode/painter/style/ribbon.less +5 -5
- package/lib/lowcode/painter/style/rule-input.less +12 -12
- package/lib/lowcode/painter/style/split-display.less +18 -18
- package/lib/lowcode/painter/style/style-panel.less +37 -37
- package/lib/lowcode/painter/style/tabitems.less +90 -90
- package/lib/lowcode/painter/style/treedragdrop.less +19 -19
- 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 +21 -6
- package/lib/lowcode/view/lc-components/Box/index.less +14 -14
- package/lib/lowcode/view/lc-components/Box/meta.json +40 -40
- package/lib/lowcode/view/lc-components/Button/index.js +38 -38
- package/lib/lowcode/view/lc-components/Button/meta.json +127 -127
- package/lib/lowcode/view/lc-components/Button/style.less +2 -2
- package/lib/lowcode/view/lc-components/CardList/meta.json +154 -153
- package/lib/lowcode/view/lc-components/Dialog/FunctionDesign.js +13 -5
- package/lib/lowcode/view/lc-components/Dialog/index.js +34 -25
- package/lib/lowcode/view/lc-components/Dialog/index.less +12 -8
- package/lib/lowcode/view/lc-components/Dialog/meta.json +204 -150
- package/lib/lowcode/view/lc-components/Drawer/FunctionDesign.js +52 -8
- package/lib/lowcode/view/lc-components/Drawer/index.js +148 -33
- package/lib/lowcode/view/lc-components/Drawer/index.less +13 -10
- package/lib/lowcode/view/lc-components/Drawer/meta.json +242 -131
- package/lib/lowcode/view/lc-components/FieldColor/meta.json +157 -157
- package/lib/lowcode/view/lc-components/FieldComplex/meta.json +140 -133
- package/lib/lowcode/view/lc-components/FieldDate/meta.json +141 -139
- package/lib/lowcode/view/lc-components/FieldDict/meta.json +138 -138
- package/lib/lowcode/view/lc-components/FieldEditor/meta.json +138 -138
- package/lib/lowcode/view/lc-components/FieldGroup/meta.json +167 -167
- package/lib/lowcode/view/lc-components/FieldNumber/meta.json +143 -142
- package/lib/lowcode/view/lc-components/FieldRadio/meta.json +115 -115
- package/lib/lowcode/view/lc-components/FieldRegion/meta.json +121 -121
- package/lib/lowcode/view/lc-components/FieldSelect/meta.json +152 -152
- package/lib/lowcode/view/lc-components/FieldString/meta.json +152 -152
- package/lib/lowcode/view/lc-components/FieldSwitch/meta.json +125 -125
- package/lib/lowcode/view/lc-components/FieldTextarea/meta.json +143 -143
- package/lib/lowcode/view/lc-components/FieldUpload/meta.json +165 -165
- package/lib/lowcode/view/lc-components/FieldUser/meta.json +176 -176
- package/lib/lowcode/view/lc-components/FieldYear/meta.json +129 -129
- package/lib/lowcode/view/lc-components/Form/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/Form/index.js +75 -50
- package/lib/lowcode/view/lc-components/Form/meta.json +645 -610
- package/lib/lowcode/view/lc-components/GroupTree/FunctionDesign.js +17 -0
- package/lib/lowcode/view/lc-components/GroupTree/FunctionLive.js +17 -0
- package/lib/lowcode/view/lc-components/GroupTree/FunctionPreview.js +17 -0
- package/lib/lowcode/view/lc-components/GroupTree/index.js +209 -0
- package/lib/lowcode/view/lc-components/GroupTree/meta.json +89 -0
- package/lib/lowcode/view/lc-components/Iframe/meta.json +33 -32
- package/lib/lowcode/view/lc-components/ImEx/index.js +197 -126
- package/lib/lowcode/view/lc-components/ImEx/index.less +7 -7
- package/lib/lowcode/view/lc-components/ImEx/meta.json +134 -113
- package/lib/lowcode/view/lc-components/Image/meta.json +115 -114
- package/lib/lowcode/view/lc-components/JSX/RuntimeComp.js +4 -4
- package/lib/lowcode/view/lc-components/JSX/meta.json +28 -28
- package/lib/lowcode/view/lc-components/Layout/index.js +37 -20
- package/lib/lowcode/view/lc-components/Layout/index.less +5 -5
- package/lib/lowcode/view/lc-components/Layout/meta.json +107 -107
- package/lib/lowcode/view/lc-components/Link/meta.json +113 -112
- package/lib/lowcode/view/lc-components/Page/meta.json +61 -55
- package/lib/lowcode/view/lc-components/PageContent/meta.json +9 -9
- package/lib/lowcode/view/lc-components/PageFooter/meta.json +9 -9
- package/lib/lowcode/view/lc-components/PageHeader/meta.json +9 -9
- package/lib/lowcode/view/lc-components/PageLayout/FunctionDesign.js +5 -1
- package/lib/lowcode/view/lc-components/PageLayout/meta.json +59 -59
- package/lib/lowcode/view/lc-components/Section/index.js +2 -6
- package/lib/lowcode/view/lc-components/Section/index.less +7 -7
- package/lib/lowcode/view/lc-components/Section/meta.json +108 -107
- package/lib/lowcode/view/lc-components/Split/index.js +18 -3
- package/lib/lowcode/view/lc-components/Split/meta.json +53 -53
- package/lib/lowcode/view/lc-components/Table/index.js +176 -149
- package/lib/lowcode/view/lc-components/Table/meta.json +450 -450
- package/lib/lowcode/view/lc-components/Tabs/index.js +40 -37
- package/lib/lowcode/view/lc-components/Tabs/meta.json +113 -113
- package/lib/lowcode/view/lc-components/Text/index.js +8 -1
- package/lib/lowcode/view/lc-components/Text/meta.json +56 -56
- package/lib/lowcode/view/lc-components/Tree/index.js +102 -107
- package/lib/lowcode/view/lc-components/Tree/index.less +4 -4
- package/lib/lowcode/view/lc-components/Tree/meta.json +357 -357
- package/lib/lowcode/view/lc-components/Wrapper.js +16 -1
- package/lib/lowcode/view/style/canvas.less +5 -5
- package/lib/lowcode/view/style/loading.less +98 -84
- package/lib/lowcode/view/style/page.less +7 -7
- package/lib/services.js +20 -0
- package/lib/upload/FilesWall/index.js +13 -13
- package/lib/upload/FilesWall/index.less +74 -74
- package/lib/upload/Form/gridForm.js +17 -7
- package/lib/upload/Form/index.less +7 -7
- package/lib/upload/FormItem/index.js +18 -18
- package/lib/utils/form.js +24 -24
- package/lib/utils/grid.js +4 -3
- package/lowcode.js +1 -1
- package/package.json +175 -175
- package/upload.js +1 -1
- package/utils.js +1 -1
- package/es/lowcode/view/lc-components/Form/index.less +0 -5
- package/lib/lowcode/view/lc-components/Form/index.less +0 -5
|
@@ -16,27 +16,27 @@ var _PanelItem = _interopRequireDefault(require("../components/PanelItem"));
|
|
|
16
16
|
var _RATIOS_ = ['12', '6:6', '3:9', '9:3', '4:4:4', '3:6:3', '3:3:3:3', '2:2:2:2:2:2'];
|
|
17
17
|
var _DEFAULTRATIO_ = '12:3:9';
|
|
18
18
|
|
|
19
|
-
/**
|
|
20
|
-
* `LayoutRatio`组件提供了一个布局比例选择器,允许用户选择或输入特定的比例配置。
|
|
21
|
-
* 支持的比例配置包括预定义的比例数组`_RATIOS_`,用户还可以通过输入框自定义比例,
|
|
22
|
-
* 自定义比例需要符合一定的规则:是数字或数字与冒号的组合,且数字之和必须等于12。
|
|
23
|
-
* ,
|
|
24
|
-
* 允许父组件获取当前选中的布局比例。
|
|
25
|
-
*
|
|
26
|
-
* @component
|
|
27
|
-
* @example
|
|
28
|
-
* ```jsxsdsdsdsdsdsdsd
|
|
29
|
-
* <LayoutRatio
|
|
30
|
-
* value="6:6"
|
|
31
|
-
* onChange={(option) => console.log(option)}
|
|
32
|
-
* />
|
|
33
|
-
* ```
|
|
34
|
-
*
|
|
35
|
-
* @param {Object} props
|
|
36
|
-
* @param {string} [props.value='12'] 初始化时选中的布局比例,默认为"12"。
|
|
37
|
-
* @param {Function} props.onChange 当用户选择一个新的布局比例时调用的回调函数。
|
|
38
|
-
*
|
|
39
|
-
* @returns {React.Element} 渲染的React元素。
|
|
19
|
+
/**
|
|
20
|
+
* `LayoutRatio`组件提供了一个布局比例选择器,允许用户选择或输入特定的比例配置。
|
|
21
|
+
* 支持的比例配置包括预定义的比例数组`_RATIOS_`,用户还可以通过输入框自定义比例,
|
|
22
|
+
* 自定义比例需要符合一定的规则:是数字或数字与冒号的组合,且数字之和必须等于12。
|
|
23
|
+
* ,
|
|
24
|
+
* 允许父组件获取当前选中的布局比例。
|
|
25
|
+
*
|
|
26
|
+
* @component
|
|
27
|
+
* @example
|
|
28
|
+
* ```jsxsdsdsdsdsdsdsd
|
|
29
|
+
* <LayoutRatio
|
|
30
|
+
* value="6:6"
|
|
31
|
+
* onChange={(option) => console.log(option)}
|
|
32
|
+
* />
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* @param {Object} props
|
|
36
|
+
* @param {string} [props.value='12'] 初始化时选中的布局比例,默认为"12"。
|
|
37
|
+
* @param {Function} props.onChange 当用户选择一个新的布局比例时调用的回调函数。
|
|
38
|
+
*
|
|
39
|
+
* @returns {React.Element} 渲染的React元素。
|
|
40
40
|
*/
|
|
41
41
|
var LayoutRatio = function LayoutRatio(_ref) {
|
|
42
42
|
var defaultValue = _ref.defaultValue,
|
|
@@ -124,6 +124,7 @@ var LayoutRatio = function LayoutRatio(_ref) {
|
|
|
124
124
|
id: 'luckda.lowcode.painter.panel-section.Layoutratio.label',
|
|
125
125
|
label: '列比例'
|
|
126
126
|
}),
|
|
127
|
+
field: "columnRatio",
|
|
127
128
|
suppressPadding: true
|
|
128
129
|
}, /*#__PURE__*/_react.default.createElement(_RuleInput.default, {
|
|
129
130
|
placeholder: (0, _utils.formatMessage)({
|
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
10
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _ahooks = require("ahooks");
|
|
13
|
+
var _antd = require("luck-design/antd");
|
|
14
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
15
|
+
var _lodash = require("lodash");
|
|
16
|
+
var _utils = require("@luck-design-biz/base/utils");
|
|
17
|
+
var _SortBox = require("../components/SortBox");
|
|
18
|
+
var _ListEditor = require("../components/ListEditor");
|
|
19
|
+
var _helper = require("../../engine/tools/helper");
|
|
20
|
+
var _VarEditor = _interopRequireDefault(require("../components/VarEditor"));
|
|
21
|
+
var _TipIcon = _interopRequireDefault(require("../components/TipIcon"));
|
|
22
|
+
var _pageVars = _interopRequireDefault(require("../style/page-vars.less"));
|
|
23
|
+
var _I18N_PREFIX_ = 'luckda.lowcode.painter.pageVars';
|
|
24
|
+
var Wrapper = _styledComponents.default.div.withConfig({
|
|
25
|
+
displayName: "Wrapper",
|
|
26
|
+
componentId: "luckda-6530__sc-1qdz6c5-0"
|
|
27
|
+
})(["padding:0 12px;"]);
|
|
28
|
+
var SearchBar = _styledComponents.default.div.withConfig({
|
|
29
|
+
displayName: "SearchBar",
|
|
30
|
+
componentId: "luckda-6530__sc-1qdz6c5-1"
|
|
31
|
+
})(["display:flex;margin-bottom:8px;"]);
|
|
32
|
+
var ItemWrapper = _styledComponents.default.div.withConfig({
|
|
33
|
+
displayName: "ItemWrapper",
|
|
34
|
+
componentId: "luckda-6530__sc-1qdz6c5-2"
|
|
35
|
+
})(["display:flex;align-items:center;"]);
|
|
36
|
+
var _TYPES_ = {
|
|
37
|
+
var: {
|
|
38
|
+
name: (0, _utils.formatMessage)({
|
|
39
|
+
id: "".concat(_I18N_PREFIX_, ".var"),
|
|
40
|
+
label: '变量'
|
|
41
|
+
}),
|
|
42
|
+
color: '#87d068'
|
|
43
|
+
},
|
|
44
|
+
api: {
|
|
45
|
+
name: (0, _utils.formatMessage)({
|
|
46
|
+
id: "".concat(_I18N_PREFIX_, ".api"),
|
|
47
|
+
label: '远程 API'
|
|
48
|
+
}),
|
|
49
|
+
color: '#108ee9'
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
var _TYPE_KEYS_ = Object.keys(_TYPES_);
|
|
53
|
+
var PageVars = function PageVars(_ref) {
|
|
54
|
+
var _ref$defaultValue = _ref.defaultValue,
|
|
55
|
+
defaultValue = _ref$defaultValue === void 0 ? [] : _ref$defaultValue,
|
|
56
|
+
onChange = _ref.onChange;
|
|
57
|
+
var _useReducer = (0, _react.useReducer)(_helper.listReducer, defaultValue),
|
|
58
|
+
_useReducer2 = (0, _slicedToArray2.default)(_useReducer, 2),
|
|
59
|
+
vars = _useReducer2[0],
|
|
60
|
+
dispatch = _useReducer2[1];
|
|
61
|
+
var _useSetState = (0, _ahooks.useSetState)({}),
|
|
62
|
+
_useSetState2 = (0, _slicedToArray2.default)(_useSetState, 2),
|
|
63
|
+
filter = _useSetState2[0],
|
|
64
|
+
setFilter = _useSetState2[1];
|
|
65
|
+
(0, _ahooks.useUpdateEffect)(function () {
|
|
66
|
+
onChange(vars);
|
|
67
|
+
}, [vars]);
|
|
68
|
+
var _useState = (0, _react.useState)(null),
|
|
69
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
70
|
+
currentItem = _useState2[0],
|
|
71
|
+
setCurrentItem = _useState2[1];
|
|
72
|
+
var handleSortChange = (0, _ahooks.useMemoizedFn)(function (sortItems) {
|
|
73
|
+
dispatch({
|
|
74
|
+
type: 'sort',
|
|
75
|
+
payload: sortItems
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
var handleAdd = (0, _ahooks.useMemoizedFn)(function (_item) {
|
|
79
|
+
dispatch({
|
|
80
|
+
type: 'add',
|
|
81
|
+
payload: _item
|
|
82
|
+
});
|
|
83
|
+
setCurrentItem(_item);
|
|
84
|
+
});
|
|
85
|
+
var _useDebounceFn = (0, _ahooks.useDebounceFn)(function (keyword) {
|
|
86
|
+
return setFilter({
|
|
87
|
+
keyword: (0, _lodash.isNil)(keyword) || keyword === '' ? void 0 : keyword
|
|
88
|
+
});
|
|
89
|
+
}, {
|
|
90
|
+
wait: 400
|
|
91
|
+
}),
|
|
92
|
+
handleSearch = _useDebounceFn.run;
|
|
93
|
+
var renderItemLeft = (0, _ahooks.useMemoizedFn)(function (item) {
|
|
94
|
+
var _TYPES_$item$type = _TYPES_[item.type],
|
|
95
|
+
name = _TYPES_$item$type.name,
|
|
96
|
+
color = _TYPES_$item$type.color;
|
|
97
|
+
return /*#__PURE__*/_react.default.createElement(ItemWrapper, null, /*#__PURE__*/_react.default.createElement("span", {
|
|
98
|
+
style: {
|
|
99
|
+
color: color
|
|
100
|
+
}
|
|
101
|
+
}, name.substring(0, 2)), /*#__PURE__*/_react.default.createElement("span", {
|
|
102
|
+
style: {
|
|
103
|
+
marginLeft: 4,
|
|
104
|
+
fontWeight: 'bold'
|
|
105
|
+
}
|
|
106
|
+
}, item.name));
|
|
107
|
+
});
|
|
108
|
+
var renderItemRight = (0, _ahooks.useMemoizedFn)(function (item) {
|
|
109
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_TipIcon.default, {
|
|
110
|
+
type: "edit",
|
|
111
|
+
onClick: function onClick() {
|
|
112
|
+
return setCurrentItem(item);
|
|
113
|
+
},
|
|
114
|
+
style: {
|
|
115
|
+
marginRight: 4,
|
|
116
|
+
cursor: 'pointer'
|
|
117
|
+
},
|
|
118
|
+
title: (0, _utils.formatMessage)({
|
|
119
|
+
id: "".concat(_I18N_PREFIX_, ".edit"),
|
|
120
|
+
label: '编辑'
|
|
121
|
+
})
|
|
122
|
+
}), /*#__PURE__*/_react.default.createElement(_TipIcon.default, {
|
|
123
|
+
type: "copy",
|
|
124
|
+
onClick: function onClick() {
|
|
125
|
+
return handleAdd((0, _objectSpread2.default)((0, _objectSpread2.default)({}, item), {}, {
|
|
126
|
+
id: (0, _utils.suid)(),
|
|
127
|
+
name: "".concat(item.name, "_copy")
|
|
128
|
+
}));
|
|
129
|
+
},
|
|
130
|
+
style: {
|
|
131
|
+
marginRight: 4,
|
|
132
|
+
cursor: 'pointer'
|
|
133
|
+
},
|
|
134
|
+
title: (0, _utils.formatMessage)({
|
|
135
|
+
id: "".concat(_I18N_PREFIX_, ".copy"),
|
|
136
|
+
label: '拷贝'
|
|
137
|
+
})
|
|
138
|
+
}), /*#__PURE__*/_react.default.createElement(_TipIcon.default, {
|
|
139
|
+
type: "delete",
|
|
140
|
+
onClick: function onClick() {
|
|
141
|
+
return _antd.Modal.confirm({
|
|
142
|
+
title: (0, _utils.formatMessage)({
|
|
143
|
+
id: "".concat(_I18N_PREFIX_, ".confirm.delete"),
|
|
144
|
+
label: "\u786E\u8BA4\u5220\u9664\u5417\uFF1F"
|
|
145
|
+
}),
|
|
146
|
+
onOk: function onOk() {
|
|
147
|
+
if (currentItem.id === item.id) {
|
|
148
|
+
setCurrentItem(null);
|
|
149
|
+
}
|
|
150
|
+
dispatch({
|
|
151
|
+
type: 'delete',
|
|
152
|
+
payload: item.id
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
},
|
|
157
|
+
style: {
|
|
158
|
+
marginRight: 4,
|
|
159
|
+
cursor: 'pointer'
|
|
160
|
+
},
|
|
161
|
+
title: (0, _utils.formatMessage)({
|
|
162
|
+
id: "".concat(_I18N_PREFIX_, ".delete"),
|
|
163
|
+
label: '删除'
|
|
164
|
+
})
|
|
165
|
+
}));
|
|
166
|
+
});
|
|
167
|
+
var menu = (0, _ahooks.useCreation)(function () {
|
|
168
|
+
return /*#__PURE__*/_react.default.createElement(_antd.Menu, {
|
|
169
|
+
onClick: function onClick(_ref2) {
|
|
170
|
+
var key = _ref2.key;
|
|
171
|
+
var id = (0, _utils.suid)();
|
|
172
|
+
handleAdd((0, _objectSpread2.default)({
|
|
173
|
+
id: id,
|
|
174
|
+
type: key,
|
|
175
|
+
name: id
|
|
176
|
+
}, {
|
|
177
|
+
var: {
|
|
178
|
+
data: ''
|
|
179
|
+
},
|
|
180
|
+
api: {
|
|
181
|
+
data: {
|
|
182
|
+
auto: true,
|
|
183
|
+
taskType: 'parallel',
|
|
184
|
+
method: 'get'
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}[key]));
|
|
188
|
+
}
|
|
189
|
+
}, _TYPE_KEYS_.map(function (key) {
|
|
190
|
+
return /*#__PURE__*/_react.default.createElement(_antd.Menu.Item, {
|
|
191
|
+
key: key
|
|
192
|
+
}, _TYPES_[key].name);
|
|
193
|
+
}));
|
|
194
|
+
}, []);
|
|
195
|
+
var _vars = (0, _ahooks.useCreation)(function () {
|
|
196
|
+
var keyword = filter.keyword,
|
|
197
|
+
type = filter.type;
|
|
198
|
+
var _vars = (0, _lodash.isNil)(type) ? vars : vars.filter(function (_item) {
|
|
199
|
+
return _item.type === type;
|
|
200
|
+
});
|
|
201
|
+
if ((0, _lodash.isNil)(keyword) || keyword === '') {
|
|
202
|
+
return _vars;
|
|
203
|
+
}
|
|
204
|
+
return (0, _lodash.reduce)(_vars, function (ret, _item) {
|
|
205
|
+
if (JSON.stringify(_item).includes(keyword)) {
|
|
206
|
+
ret.push(_item);
|
|
207
|
+
}
|
|
208
|
+
return ret;
|
|
209
|
+
}, []);
|
|
210
|
+
}, [filter, vars]);
|
|
211
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(Wrapper, null, /*#__PURE__*/_react.default.createElement(SearchBar, null, /*#__PURE__*/_react.default.createElement(_antd.Select, {
|
|
212
|
+
size: "small",
|
|
213
|
+
defaultValue: "all",
|
|
214
|
+
style: {
|
|
215
|
+
width: 100,
|
|
216
|
+
marginRight: 8
|
|
217
|
+
},
|
|
218
|
+
onSelect: function onSelect(key) {
|
|
219
|
+
return setFilter({
|
|
220
|
+
type: key === 'all' ? void 0 : key
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
}, /*#__PURE__*/_react.default.createElement(_antd.Select.Option, {
|
|
224
|
+
value: "all"
|
|
225
|
+
}, (0, _utils.formatMessage)({
|
|
226
|
+
id: "".concat(_I18N_PREFIX_, ".all"),
|
|
227
|
+
label: '全部'
|
|
228
|
+
})), _TYPE_KEYS_.map(function (key) {
|
|
229
|
+
return /*#__PURE__*/_react.default.createElement(_antd.Select.Option, {
|
|
230
|
+
key: key,
|
|
231
|
+
value: key
|
|
232
|
+
}, _TYPES_[key].name);
|
|
233
|
+
})), /*#__PURE__*/_react.default.createElement(_antd.Input.Search, {
|
|
234
|
+
size: "small",
|
|
235
|
+
allowClear: true,
|
|
236
|
+
style: {
|
|
237
|
+
flex: 1
|
|
238
|
+
},
|
|
239
|
+
placeholder: (0, _utils.formatMessage)({
|
|
240
|
+
id: "".concat(_I18N_PREFIX_, ".placeholder.search"),
|
|
241
|
+
label: '请输入'
|
|
242
|
+
}),
|
|
243
|
+
onChange: function onChange(e) {
|
|
244
|
+
return handleSearch(e.target.value);
|
|
245
|
+
},
|
|
246
|
+
onSearch: handleSearch
|
|
247
|
+
})), /*#__PURE__*/_react.default.createElement(_antd.Dropdown, {
|
|
248
|
+
overlay: menu,
|
|
249
|
+
trigger: ['click'],
|
|
250
|
+
getPopupContainer: function getPopupContainer() {
|
|
251
|
+
return document.getElementById('lc-design-workspace');
|
|
252
|
+
}
|
|
253
|
+
}, /*#__PURE__*/_react.default.createElement(_antd.Button, {
|
|
254
|
+
size: "small",
|
|
255
|
+
type: "primary"
|
|
256
|
+
}, (0, _utils.formatMessage)({
|
|
257
|
+
id: "".concat(_I18N_PREFIX_, ".add"),
|
|
258
|
+
label: '添加'
|
|
259
|
+
}))), /*#__PURE__*/_react.default.createElement(_SortBox.SortBox, {
|
|
260
|
+
datas: vars.map(function (_ref3) {
|
|
261
|
+
var id = _ref3.id;
|
|
262
|
+
return id;
|
|
263
|
+
}),
|
|
264
|
+
onChange: handleSortChange
|
|
265
|
+
}, /*#__PURE__*/_react.default.createElement(_ListEditor.ListEditor, {
|
|
266
|
+
style: {
|
|
267
|
+
marginTop: 8
|
|
268
|
+
},
|
|
269
|
+
suppressAdd: true
|
|
270
|
+
}, _vars.map(function (item) {
|
|
271
|
+
return /*#__PURE__*/_react.default.createElement(_SortBox.SortItem, {
|
|
272
|
+
key: item.id,
|
|
273
|
+
id: item.id
|
|
274
|
+
}, /*#__PURE__*/_react.default.createElement(_ListEditor.ListEditorItem, {
|
|
275
|
+
sortable: (0, _lodash.isNil)(filter.keyword) && (0, _lodash.isNil)(filter.type),
|
|
276
|
+
left: renderItemLeft(item),
|
|
277
|
+
right: renderItemRight(item),
|
|
278
|
+
item: item,
|
|
279
|
+
dispatch: dispatch
|
|
280
|
+
}));
|
|
281
|
+
})))), currentItem ? /*#__PURE__*/_react.default.createElement(_antd.Drawer, {
|
|
282
|
+
visible: true,
|
|
283
|
+
width: 420,
|
|
284
|
+
mask: false,
|
|
285
|
+
onClose: function onClose() {
|
|
286
|
+
return setCurrentItem(null);
|
|
287
|
+
},
|
|
288
|
+
title: (0, _utils.formatMessage)({
|
|
289
|
+
id: "".concat(_I18N_PREFIX_, ".edit"),
|
|
290
|
+
label: '编辑数据源'
|
|
291
|
+
}),
|
|
292
|
+
getContainer: function getContainer() {
|
|
293
|
+
return document.getElementById('lc-design-workspace');
|
|
294
|
+
},
|
|
295
|
+
destroyOnClose: true,
|
|
296
|
+
className: _pageVars.default['lc-painter-panel-page-vars-drawer'],
|
|
297
|
+
style: {
|
|
298
|
+
position: 'absolute',
|
|
299
|
+
transform: 'none',
|
|
300
|
+
right: 320
|
|
301
|
+
}
|
|
302
|
+
}, /*#__PURE__*/_react.default.createElement(_VarEditor.default, {
|
|
303
|
+
key: currentItem.id,
|
|
304
|
+
item: currentItem,
|
|
305
|
+
dispatch: dispatch
|
|
306
|
+
})) : null);
|
|
307
|
+
};
|
|
308
|
+
var _default = exports.default = PageVars;
|
|
@@ -16,8 +16,8 @@ var _HighLightPanel = _interopRequireDefault(require("./HighLightPanel"));
|
|
|
16
16
|
var _HightLightSvg = _interopRequireDefault(require("./HightLightSvg"));
|
|
17
17
|
var textRelatedStyles = ['background-color'];
|
|
18
18
|
|
|
19
|
-
/**
|
|
20
|
-
* 背景设置控件
|
|
19
|
+
/**
|
|
20
|
+
* 背景设置控件
|
|
21
21
|
*/
|
|
22
22
|
function _default() {
|
|
23
23
|
return /*#__PURE__*/_react.default.createElement(_HighLightPanel.default, {
|
|
@@ -19,8 +19,8 @@ var borderMainProps = ['border-radius'];
|
|
|
19
19
|
var borderSideProps = ['border-top-right-radius', 'border-top-left-radius', 'border-bottom-left-radius', 'border-bottom-right-radius'];
|
|
20
20
|
var textRelatedStyles = [].concat(borderMainProps, borderSideProps);
|
|
21
21
|
|
|
22
|
-
/**
|
|
23
|
-
* 圆角样式设置控件
|
|
22
|
+
/**
|
|
23
|
+
* 圆角样式设置控件
|
|
24
24
|
*/
|
|
25
25
|
function _default() {
|
|
26
26
|
return /*#__PURE__*/_react.default.createElement(_HighLightPanel.default, {
|
|
@@ -9,8 +9,8 @@ exports.default = _default;
|
|
|
9
9
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _borderRadiusSelector = _interopRequireDefault(require("../../style/border-radius-selector.less"));
|
|
12
|
-
/**
|
|
13
|
-
* 圆角设置组件
|
|
12
|
+
/**
|
|
13
|
+
* 圆角设置组件
|
|
14
14
|
*/
|
|
15
15
|
function _default(_ref) {
|
|
16
16
|
var onChange = _ref.onChange;
|
|
@@ -9,8 +9,8 @@ exports.default = _default;
|
|
|
9
9
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _borderSelector = _interopRequireDefault(require("../../style/border-selector.less"));
|
|
12
|
-
/**
|
|
13
|
-
* 边框选择组件
|
|
12
|
+
/**
|
|
13
|
+
* 边框选择组件
|
|
14
14
|
*/
|
|
15
15
|
function _default(_ref) {
|
|
16
16
|
var onChange = _ref.onChange;
|
|
@@ -15,8 +15,8 @@ var _StyleContext = require("./StyleContext");
|
|
|
15
15
|
var _HighLightPanel = _interopRequireDefault(require("./HighLightPanel"));
|
|
16
16
|
var textRelatedStyles = ['display', 'flex-direction', 'align-items', 'justify-content'];
|
|
17
17
|
|
|
18
|
-
/**
|
|
19
|
-
* 显示样式设置控件
|
|
18
|
+
/**
|
|
19
|
+
* 显示样式设置控件
|
|
20
20
|
*/
|
|
21
21
|
function _default(_ref) {
|
|
22
22
|
var label = _ref.label;
|
|
@@ -18,8 +18,8 @@ var _HighLightPanel = _interopRequireDefault(require("./HighLightPanel"));
|
|
|
18
18
|
var Option = _antd.Select.Option;
|
|
19
19
|
var textRelatedStyles = ['font-weight', 'font-style', 'color', 'font-size', 'line-height', 'text-align', 'text-decoration'];
|
|
20
20
|
|
|
21
|
-
/**
|
|
22
|
-
* 文字设置组件
|
|
21
|
+
/**
|
|
22
|
+
* 文字设置组件
|
|
23
23
|
*/
|
|
24
24
|
function _default() {
|
|
25
25
|
var style = (0, _StyleContext.useStyle)();
|
|
@@ -18,8 +18,8 @@ var _Size = _interopRequireDefault(require("./Size"));
|
|
|
18
18
|
var _HightLightSvg = _interopRequireDefault(require("./HightLightSvg"));
|
|
19
19
|
var Option = _antd.Select.Option;
|
|
20
20
|
|
|
21
|
-
/**
|
|
22
|
-
* 文字详细编辑组件
|
|
21
|
+
/**
|
|
22
|
+
* 文字详细编辑组件
|
|
23
23
|
*/
|
|
24
24
|
function _default() {
|
|
25
25
|
var _style$fontWeight;
|
|
@@ -11,8 +11,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
11
11
|
var _PanelItem = _interopRequireDefault(require("../../components/PanelItem"));
|
|
12
12
|
var _HighLigthtSpan = _interopRequireDefault(require("./HighLigthtSpan"));
|
|
13
13
|
var _excluded = ["children", "label", "highLightFields", "customStyle"];
|
|
14
|
-
/**
|
|
15
|
-
* 标签自动高亮控件
|
|
14
|
+
/**
|
|
15
|
+
* 标签自动高亮控件
|
|
16
16
|
*/
|
|
17
17
|
function _default(_ref) {
|
|
18
18
|
var children = _ref.children,
|
|
@@ -11,8 +11,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
11
11
|
var _StyleContext = require("./StyleContext");
|
|
12
12
|
var _stylePanel = _interopRequireDefault(require("../../style/style-panel.less"));
|
|
13
13
|
var _excluded = ["children", "highLightFields", "customStyle"];
|
|
14
|
-
/**
|
|
15
|
-
* 标签自动高亮控件
|
|
14
|
+
/**
|
|
15
|
+
* 标签自动高亮控件
|
|
16
16
|
*/
|
|
17
17
|
function _default(_ref) {
|
|
18
18
|
var children = _ref.children,
|
|
@@ -11,8 +11,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
11
11
|
var _StyleContext = require("./StyleContext");
|
|
12
12
|
var _stylePanel = _interopRequireDefault(require("../../style/style-panel.less"));
|
|
13
13
|
var _excluded = ["children", "field", "label", "highLightFields"];
|
|
14
|
-
/**
|
|
15
|
-
* 标签自动高亮SVG
|
|
14
|
+
/**
|
|
15
|
+
* 标签自动高亮SVG
|
|
16
16
|
*/
|
|
17
17
|
function _default(_ref) {
|
|
18
18
|
var children = _ref.children,
|
|
@@ -26,8 +26,8 @@ var _BorderRadius = _interopRequireDefault(require("./BorderRadius"));
|
|
|
26
26
|
var _Shadow = _interopRequireDefault(require("./Shadow"));
|
|
27
27
|
var _Opacity = _interopRequireDefault(require("./Opacity"));
|
|
28
28
|
var _Pointer = _interopRequireDefault(require("./Pointer"));
|
|
29
|
-
/**
|
|
30
|
-
* 主样式面板
|
|
29
|
+
/**
|
|
30
|
+
* 主样式面板
|
|
31
31
|
*/
|
|
32
32
|
var MainPanel = function MainPanel() {
|
|
33
33
|
var style = (0, _StyleContext.useStyle)(true);
|
|
@@ -13,8 +13,8 @@ var _lodash = require("lodash");
|
|
|
13
13
|
var _HighLightPanel = _interopRequireDefault(require("./HighLightPanel"));
|
|
14
14
|
var field = 'opacity';
|
|
15
15
|
|
|
16
|
-
/**
|
|
17
|
-
* 透明度设置组件
|
|
16
|
+
/**
|
|
17
|
+
* 透明度设置组件
|
|
18
18
|
*/
|
|
19
19
|
function _default() {
|
|
20
20
|
var style = (0, _StyleContext.useStyle)();
|
|
@@ -13,8 +13,8 @@ var _HighLightPanel = _interopRequireDefault(require("./HighLightPanel"));
|
|
|
13
13
|
var textRelatedStyles = ['padding', 'padding-top', 'padding-right', 'padding-bottom', 'padding-left'];
|
|
14
14
|
var field = 'padding';
|
|
15
15
|
|
|
16
|
-
/**
|
|
17
|
-
* 间距样式设置组件
|
|
16
|
+
/**
|
|
17
|
+
* 间距样式设置组件
|
|
18
18
|
*/
|
|
19
19
|
function _default() {
|
|
20
20
|
var style = (0, _StyleContext.useStyle)();
|
|
@@ -12,8 +12,8 @@ var _antd = require("luck-design/antd");
|
|
|
12
12
|
var _HighLightPanel = _interopRequireDefault(require("./HighLightPanel"));
|
|
13
13
|
var Option = _antd.Select.Option;
|
|
14
14
|
var field = 'cursor';
|
|
15
|
-
/**
|
|
16
|
-
* 指针样式设置组件
|
|
15
|
+
/**
|
|
16
|
+
* 指针样式设置组件
|
|
17
17
|
*/
|
|
18
18
|
function _default() {
|
|
19
19
|
var _style$field;
|
|
@@ -11,8 +11,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
11
11
|
var _StyleContext = require("./StyleContext");
|
|
12
12
|
var _NumberInput = _interopRequireDefault(require("../../components/NumberInput"));
|
|
13
13
|
var _excluded = ["field", "onChange", "placeholder", "customValue", "customOption"];
|
|
14
|
-
/**
|
|
15
|
-
* Size设置通用组件
|
|
14
|
+
/**
|
|
15
|
+
* Size设置通用组件
|
|
16
16
|
*/
|
|
17
17
|
function _default(_ref) {
|
|
18
18
|
var field = _ref.field,
|
|
@@ -14,6 +14,7 @@ var _createForOfIteratorHelper2 = _interopRequireDefault(require("@babel/runtime
|
|
|
14
14
|
var _regeneratorRuntime2 = _interopRequireDefault(require("@babel/runtime/helpers/regeneratorRuntime"));
|
|
15
15
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
16
16
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
17
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
17
18
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
18
19
|
var _react = _interopRequireWildcard(require("react"));
|
|
19
20
|
var _ahooks = require("ahooks");
|
|
@@ -27,8 +28,8 @@ var StyleContext = /*#__PURE__*/(0, _react.createContext)(null);
|
|
|
27
28
|
var StyleDispatchContext = /*#__PURE__*/(0, _react.createContext)(null);
|
|
28
29
|
var EditorContext = /*#__PURE__*/(0, _react.createContext)(null);
|
|
29
30
|
|
|
30
|
-
/**
|
|
31
|
-
* 样式上下文组件
|
|
31
|
+
/**
|
|
32
|
+
* 样式上下文组件
|
|
32
33
|
*/
|
|
33
34
|
function StyleProvider(_ref) {
|
|
34
35
|
var onChange = _ref.onChange,
|
|
@@ -55,7 +56,7 @@ function StyleProvider(_ref) {
|
|
|
55
56
|
}
|
|
56
57
|
case 'new':
|
|
57
58
|
{
|
|
58
|
-
var _newState = (0,
|
|
59
|
+
var _newState = (0, _defineProperty2.default)({}, _ROOT_KEY_, action.payload);
|
|
59
60
|
if (editorRef.current) {
|
|
60
61
|
styleToEditor(_newState).then(function (css) {
|
|
61
62
|
return editorRef.current.editor.setValue(css);
|
|
@@ -126,7 +127,7 @@ function StyleProvider(_ref) {
|
|
|
126
127
|
}
|
|
127
128
|
function useStyle(full) {
|
|
128
129
|
var _style = (0, _react.useContext)(StyleContext);
|
|
129
|
-
return full ? _style : _style[_ROOT_KEY_];
|
|
130
|
+
return (full ? _style : _style[_ROOT_KEY_]) || {};
|
|
130
131
|
}
|
|
131
132
|
function useStyleDispatch() {
|
|
132
133
|
return (0, _react.useContext)(StyleDispatchContext);
|
|
@@ -186,7 +187,7 @@ var styleToEditor = exports.styleToEditor = /*#__PURE__*/function () {
|
|
|
186
187
|
case 4:
|
|
187
188
|
_yield$postcss$proces2 = _context2.sent;
|
|
188
189
|
css = _yield$postcss$proces2.css;
|
|
189
|
-
return _context2.abrupt("return", css);
|
|
190
|
+
return _context2.abrupt("return", css === '' ? "".concat(_ROOT_KEY_, "{\n\t\n}") : css);
|
|
190
191
|
case 7:
|
|
191
192
|
case "end":
|
|
192
193
|
return _context2.stop();
|
|
@@ -10,8 +10,8 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
var _stylePanel = _interopRequireDefault(require("../../style/style-panel.less"));
|
|
12
12
|
var _excluded = ["children"];
|
|
13
|
-
/**
|
|
14
|
-
* 样式行通用组件
|
|
13
|
+
/**
|
|
14
|
+
* 样式行通用组件
|
|
15
15
|
*/
|
|
16
16
|
function _default(_ref) {
|
|
17
17
|
var children = _ref.children,
|