@luck-design-biz/luckda 0.0.24-1 → 0.0.24-3
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 +0 -0
- package/README.md +0 -0
- package/es/components/Builder/index.js +24 -17
- package/es/components/LdAutoForm/index.js +15 -5
- package/es/components/LdCard/index.js +0 -0
- package/es/components/LdCard/model.js +0 -0
- package/es/components/LdCom/index.js +0 -0
- package/es/components/LdFormList/index.js +4 -1
- package/es/components/LdFormList/model.js +0 -0
- package/es/components/LdGrid/index.js +13 -7
- package/es/components/LdGrid/model.js +0 -0
- package/es/components/LdGridForm/index.js +12 -4
- package/es/components/LdGridForm/index.less +0 -0
- package/es/components/LdInfoPanel/index.js +0 -0
- package/es/components/LdPop/index.js +0 -0
- package/es/components/LdRuntimeCom/index.js +0 -0
- package/es/components/LdTree/index.js +0 -0
- package/es/components/LdTree/index.less +0 -0
- package/es/helper/FromItems.js +0 -0
- package/es/helper/action.js +0 -0
- package/es/helper/form.js +8 -2
- package/es/helper/index.less +0 -0
- package/es/helper/ldBuilder.js +4 -1
- package/es/helper/ldComBuild.js +0 -0
- package/es/index.js +0 -0
- package/es/lowcode/constants/api-url.js +1 -2
- package/es/lowcode/constants/event-topics.js +1 -14
- package/es/lowcode/constants/index.js +0 -0
- package/es/lowcode/engine/factory/DataFactory.js +0 -0
- package/es/lowcode/engine/meta/button.props.default.json +7 -15
- package/es/lowcode/engine/meta/cardlist.props.default.json +9 -17
- package/es/lowcode/engine/meta/{button.props.json → components/button.json} +103 -121
- package/es/lowcode/engine/meta/{cardlist.props.json → components/card-list.json} +142 -143
- package/es/lowcode/engine/meta/{drawer.props.json → components/drawer.json} +142 -143
- package/es/lowcode/engine/meta/{form.props.json → components/form.json} +115 -116
- package/{lib/lowcode/engine/meta/iframe.props.json → es/lowcode/engine/meta/components/iframe.json} +30 -31
- package/{lib/lowcode/engine/meta/image.props.json → es/lowcode/engine/meta/components/image.json} +112 -113
- package/es/lowcode/engine/meta/{imex.props.json → components/imex.json} +80 -81
- package/es/lowcode/engine/meta/{jsx.props.json → components/jsx.json} +23 -24
- package/{lib/lowcode/engine/meta/layout.props.json → es/lowcode/engine/meta/components/layout.json} +106 -107
- package/{lib/lowcode/engine/meta/link.props.json → es/lowcode/engine/meta/components/link.json} +110 -111
- package/{lib/lowcode/engine/meta/dialog.props.json → es/lowcode/engine/meta/components/modal.json} +119 -120
- package/{lib/lowcode/engine/meta/section.props.json → es/lowcode/engine/meta/components/section.json} +106 -107
- package/es/lowcode/engine/meta/{split.props.json → components/split.json} +70 -71
- package/es/lowcode/{view/lc-components/CardList/meta.json → engine/meta/components/table.json} +28 -11
- package/{lib/lowcode/engine/meta/tabs.props.json → es/lowcode/engine/meta/components/tabs.json} +139 -140
- package/{lib/lowcode/engine/meta/text.props.json → es/lowcode/engine/meta/components/text.json} +64 -65
- package/es/lowcode/engine/meta/{tree.props.json → components/tree.json} +155 -156
- package/es/lowcode/engine/meta/components-list.json +121 -127
- package/es/lowcode/engine/meta/drawer.props.default.json +9 -17
- package/es/lowcode/engine/meta/form.props.default.json +4 -12
- package/es/lowcode/engine/meta/iframe.props.default.json +2 -10
- package/es/lowcode/engine/meta/image.props.default.json +7 -15
- package/es/lowcode/engine/meta/imex.props.default.json +3 -11
- package/es/lowcode/engine/meta/jsx.props.default.json +1 -10
- package/es/lowcode/engine/meta/layout.props.default.json +4 -12
- package/es/lowcode/engine/meta/link.props.default.json +5 -13
- package/es/lowcode/engine/meta/modal.props.default.json +11 -0
- package/es/lowcode/engine/meta/section.props.default.json +8 -16
- package/es/lowcode/engine/meta/split.props.default.json +4 -12
- package/es/lowcode/engine/meta/table.props.default.json +9 -11
- package/es/lowcode/engine/meta/tabs.props.default.json +9 -17
- package/es/lowcode/engine/meta/text.props.default.json +3 -11
- package/es/lowcode/engine/meta/tree.props.default.json +8 -16
- package/es/lowcode/engine/provider/ContextProvider.js +17 -10
- package/es/lowcode/engine/provider/EventBusProvider.js +2 -2
- package/es/lowcode/engine/tools/dataProcess.js +5 -80
- package/es/lowcode/engine/tools/helper.js +0 -0
- package/es/lowcode/engine/tools/lcid.js +16 -0
- package/es/lowcode/index.js +0 -0
- package/es/lowcode/painter/Components.js +0 -0
- package/es/lowcode/painter/Design.js +42 -274
- package/es/lowcode/painter/I18n.js +2 -202
- package/es/lowcode/painter/Outline.js +28 -33
- package/es/lowcode/painter/Panel.js +2 -201
- package/es/lowcode/painter/Ribbon.js +55 -61
- package/es/lowcode/painter/components/PanelItem.js +9 -52
- package/es/lowcode/painter/components/RuleInput.js +4 -4
- package/es/lowcode/painter/index.js +1 -27
- package/es/lowcode/painter/panel-section/LayoutRatio.js +49 -56
- package/es/lowcode/painter/panel-section/Radio.js +58 -0
- package/es/lowcode/painter/style/components.less +0 -0
- package/es/lowcode/painter/style/design.less +5 -109
- package/es/lowcode/painter/style/index.less +1 -0
- package/es/lowcode/painter/style/layout-ratio.less +1 -1
- package/es/lowcode/painter/style/outline.less +0 -2
- package/es/lowcode/painter/style/panel-item.less +15 -38
- package/es/lowcode/painter/style/panel.less +0 -137
- package/es/lowcode/painter/style/radio.less +0 -0
- package/es/lowcode/painter/style/ribbon.less +0 -1
- package/es/lowcode/painter/style/rule-input.less +0 -0
- package/es/lowcode/view/Canvas.js +55 -63
- package/es/lowcode/view/Loading.js +0 -0
- package/es/lowcode/view/Page.js +2 -199
- package/es/lowcode/view/index.js +0 -0
- package/es/lowcode/view/lc-components/Box/index.js +5 -22
- package/es/lowcode/view/lc-components/Button/index.js +7 -72
- package/es/lowcode/view/lc-components/CardList/index.js +0 -0
- package/es/lowcode/view/lc-components/Dialog/index.js +1 -12
- package/es/lowcode/view/lc-components/Dialog/index.less +0 -0
- package/es/lowcode/view/lc-components/Drawer/index.js +3 -19
- package/es/lowcode/view/lc-components/Form/index.js +0 -0
- package/es/lowcode/view/lc-components/Iframe/index.js +0 -0
- package/es/lowcode/view/lc-components/ImEx/index.js +0 -0
- package/es/lowcode/view/lc-components/Image/index.js +0 -0
- package/es/lowcode/view/lc-components/JSX/index.js +0 -0
- package/es/lowcode/view/lc-components/Layout/index.js +7 -40
- package/es/lowcode/view/lc-components/Link/index.js +0 -0
- package/es/lowcode/view/lc-components/Section/index.js +0 -0
- package/es/lowcode/view/lc-components/Split/index.js +0 -0
- package/es/lowcode/view/lc-components/Table/index.js +8 -138
- package/es/lowcode/view/lc-components/Tabs/index.js +0 -0
- package/es/lowcode/view/lc-components/Text/index.js +0 -0
- package/es/lowcode/view/lc-components/Tree/index.js +0 -0
- package/es/lowcode/view/lc-components/Wrapper.js +23 -32
- package/es/lowcode/view/style/canvas.less +0 -0
- package/es/lowcode/view/style/loading.less +0 -0
- package/es/lowcode/view/style/page.less +1 -0
- package/es/services.js +24 -7
- package/es/upload/Form/gridForm.js +5 -4
- package/es/upload/Form/index.js +0 -0
- package/es/upload/Form/index.less +0 -0
- package/es/upload/FormItem/index.js +4 -3
- package/es/upload/GridCell/index.js +0 -0
- package/es/upload/index.js +0 -0
- package/es/utils/action.js +0 -0
- package/es/utils/form.js +37 -3
- package/es/utils/grid.js +9 -8
- package/es/utils/index.js +0 -0
- package/lib/components/Builder/index.js +22 -15
- package/lib/components/LdAutoForm/index.js +14 -4
- package/lib/components/LdCard/index.js +0 -0
- package/lib/components/LdCard/model.js +0 -0
- package/lib/components/LdCom/index.js +0 -0
- package/lib/components/LdFormList/index.js +5 -1
- package/lib/components/LdFormList/model.js +0 -0
- package/lib/components/LdGrid/index.js +13 -7
- package/lib/components/LdGrid/model.js +0 -0
- package/lib/components/LdGridForm/index.js +11 -3
- package/lib/components/LdGridForm/index.less +0 -0
- package/lib/components/LdInfoPanel/index.js +0 -0
- package/lib/components/LdPop/index.js +0 -0
- package/lib/components/LdRuntimeCom/index.js +0 -0
- package/lib/components/LdTree/index.js +0 -0
- package/lib/components/LdTree/index.less +0 -0
- package/lib/helper/FromItems.js +0 -0
- package/lib/helper/action.js +0 -0
- package/lib/helper/form.js +8 -2
- package/lib/helper/index.less +0 -0
- package/lib/helper/ldBuilder.js +4 -1
- package/lib/helper/ldComBuild.js +0 -0
- package/lib/index.js +0 -0
- package/lib/lowcode/constants/api-url.js +2 -3
- package/lib/lowcode/constants/event-topics.js +2 -15
- package/lib/lowcode/constants/index.js +0 -0
- package/lib/lowcode/engine/factory/DataFactory.js +0 -0
- package/lib/lowcode/engine/meta/button.props.default.json +7 -15
- package/lib/lowcode/engine/meta/cardlist.props.default.json +9 -17
- package/lib/lowcode/engine/meta/{button.props.json → components/button.json} +103 -121
- package/lib/lowcode/engine/meta/{cardlist.props.json → components/card-list.json} +142 -143
- package/lib/lowcode/engine/meta/{drawer.props.json → components/drawer.json} +142 -143
- package/lib/lowcode/engine/meta/{form.props.json → components/form.json} +115 -116
- package/{es/lowcode/engine/meta/iframe.props.json → lib/lowcode/engine/meta/components/iframe.json} +30 -31
- package/{es/lowcode/engine/meta/image.props.json → lib/lowcode/engine/meta/components/image.json} +112 -113
- package/lib/lowcode/engine/meta/{imex.props.json → components/imex.json} +80 -81
- package/lib/lowcode/engine/meta/{jsx.props.json → components/jsx.json} +23 -24
- package/{es/lowcode/engine/meta/layout.props.json → lib/lowcode/engine/meta/components/layout.json} +106 -107
- package/{es/lowcode/engine/meta/link.props.json → lib/lowcode/engine/meta/components/link.json} +110 -111
- package/{es/lowcode/engine/meta/dialog.props.json → lib/lowcode/engine/meta/components/modal.json} +119 -120
- package/{es/lowcode/engine/meta/section.props.json → lib/lowcode/engine/meta/components/section.json} +106 -107
- package/lib/lowcode/engine/meta/{split.props.json → components/split.json} +70 -71
- package/lib/lowcode/{view/lc-components/CardList/meta.json → engine/meta/components/table.json} +28 -11
- package/{es/lowcode/engine/meta/tabs.props.json → lib/lowcode/engine/meta/components/tabs.json} +139 -140
- package/{es/lowcode/engine/meta/text.props.json → lib/lowcode/engine/meta/components/text.json} +64 -65
- package/lib/lowcode/engine/meta/{tree.props.json → components/tree.json} +155 -156
- package/lib/lowcode/engine/meta/components-list.json +121 -127
- package/lib/lowcode/engine/meta/drawer.props.default.json +9 -17
- package/lib/lowcode/engine/meta/form.props.default.json +4 -12
- package/lib/lowcode/engine/meta/iframe.props.default.json +2 -10
- package/lib/lowcode/engine/meta/image.props.default.json +7 -15
- package/lib/lowcode/engine/meta/imex.props.default.json +3 -11
- package/lib/lowcode/engine/meta/jsx.props.default.json +1 -10
- package/lib/lowcode/engine/meta/layout.props.default.json +4 -12
- package/lib/lowcode/engine/meta/link.props.default.json +5 -13
- package/lib/lowcode/engine/meta/modal.props.default.json +11 -0
- package/lib/lowcode/engine/meta/section.props.default.json +8 -16
- package/lib/lowcode/engine/meta/split.props.default.json +4 -12
- package/lib/lowcode/engine/meta/table.props.default.json +9 -11
- package/lib/lowcode/engine/meta/tabs.props.default.json +9 -17
- package/lib/lowcode/engine/meta/text.props.default.json +3 -11
- package/lib/lowcode/engine/meta/tree.props.default.json +8 -16
- package/lib/lowcode/engine/provider/ContextProvider.js +16 -9
- package/lib/lowcode/engine/provider/EventBusProvider.js +2 -2
- package/lib/lowcode/engine/tools/dataProcess.js +5 -81
- package/lib/lowcode/engine/tools/helper.js +0 -0
- package/lib/lowcode/engine/tools/lcid.js +22 -0
- package/lib/lowcode/index.js +0 -0
- package/lib/lowcode/painter/Components.js +0 -0
- package/lib/lowcode/painter/Design.js +40 -271
- package/lib/lowcode/painter/I18n.js +2 -203
- package/lib/lowcode/painter/Outline.js +27 -32
- package/lib/lowcode/painter/Panel.js +2 -201
- package/lib/lowcode/painter/Ribbon.js +64 -63
- package/lib/lowcode/painter/components/PanelItem.js +9 -53
- package/lib/lowcode/painter/components/RuleInput.js +4 -4
- package/lib/lowcode/painter/index.js +1 -29
- package/lib/lowcode/painter/panel-section/LayoutRatio.js +48 -55
- package/lib/lowcode/painter/panel-section/Radio.js +65 -0
- package/lib/lowcode/painter/style/components.less +0 -0
- package/lib/lowcode/painter/style/design.less +5 -109
- package/lib/lowcode/painter/style/index.less +1 -0
- package/lib/lowcode/painter/style/layout-ratio.less +1 -1
- package/lib/lowcode/painter/style/outline.less +0 -2
- package/lib/lowcode/painter/style/panel-item.less +15 -38
- package/lib/lowcode/painter/style/panel.less +0 -137
- package/lib/lowcode/painter/style/radio.less +0 -0
- package/lib/lowcode/painter/style/ribbon.less +0 -1
- package/lib/lowcode/painter/style/rule-input.less +0 -0
- package/lib/lowcode/view/Canvas.js +60 -68
- package/lib/lowcode/view/Loading.js +0 -0
- package/lib/lowcode/view/Page.js +1 -198
- package/lib/lowcode/view/index.js +0 -0
- package/lib/lowcode/view/lc-components/Box/index.js +6 -23
- package/lib/lowcode/view/lc-components/Button/index.js +8 -73
- package/lib/lowcode/view/lc-components/CardList/index.js +0 -0
- package/lib/lowcode/view/lc-components/Dialog/index.js +0 -11
- package/lib/lowcode/view/lc-components/Dialog/index.less +0 -0
- package/lib/lowcode/view/lc-components/Drawer/index.js +2 -18
- package/lib/lowcode/view/lc-components/Form/index.js +0 -0
- package/lib/lowcode/view/lc-components/Iframe/index.js +0 -0
- package/lib/lowcode/view/lc-components/ImEx/index.js +0 -0
- package/lib/lowcode/view/lc-components/Image/index.js +0 -0
- package/lib/lowcode/view/lc-components/JSX/index.js +0 -0
- package/lib/lowcode/view/lc-components/Layout/index.js +8 -41
- package/lib/lowcode/view/lc-components/Link/index.js +0 -0
- package/lib/lowcode/view/lc-components/Section/index.js +0 -0
- package/lib/lowcode/view/lc-components/Split/index.js +0 -0
- package/lib/lowcode/view/lc-components/Table/index.js +8 -138
- package/lib/lowcode/view/lc-components/Tabs/index.js +0 -0
- package/lib/lowcode/view/lc-components/Text/index.js +0 -0
- package/lib/lowcode/view/lc-components/Tree/index.js +0 -0
- package/lib/lowcode/view/lc-components/Wrapper.js +21 -30
- package/lib/lowcode/view/style/canvas.less +0 -0
- package/lib/lowcode/view/style/loading.less +0 -0
- package/lib/lowcode/view/style/page.less +1 -0
- package/lib/services.js +25 -7
- package/lib/upload/Form/gridForm.js +5 -4
- package/lib/upload/Form/index.js +0 -0
- package/lib/upload/Form/index.less +0 -0
- package/lib/upload/FormItem/index.js +4 -3
- package/lib/upload/GridCell/index.js +0 -0
- package/lib/upload/index.js +0 -0
- package/lib/utils/action.js +0 -0
- package/lib/utils/form.js +38 -3
- package/lib/utils/grid.js +11 -10
- package/lib/utils/index.js +0 -0
- package/lowcode.js +0 -0
- package/package.json +5 -12
- package/upload.js +0 -0
- package/utils.js +0 -0
- package/es/lowcode/engine/factory/panel-item-factory/DynamicStrategy.js +0 -60
- package/es/lowcode/engine/factory/panel-item-factory/GroupStrategy.js +0 -32
- package/es/lowcode/engine/factory/panel-item-factory/SegmentedStrategy.js +0 -32
- package/es/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +0 -50
- package/es/lowcode/engine/factory/panel-item-factory/Strategy.js +0 -21
- package/es/lowcode/engine/factory/panel-item-factory/StringStrategy.js +0 -50
- package/es/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +0 -32
- package/es/lowcode/engine/factory/panel-item-factory/index.js +0 -42
- package/es/lowcode/engine/meta/box.props.default.json +0 -12
- package/es/lowcode/engine/meta/box.props.json +0 -42
- package/es/lowcode/engine/meta/dialog.props.default.json +0 -19
- package/es/lowcode/engine/meta/js-editor/auto-complete.json +0 -29
- package/es/lowcode/engine/meta/table.props.json +0 -174
- package/es/lowcode/engine/tools/usePromiseState.js +0 -24
- package/es/lowcode/painter/components/Collapse.js +0 -31
- package/es/lowcode/painter/components/NumberInput.js +0 -93
- package/es/lowcode/painter/components/PopConfirm.js +0 -20
- package/es/lowcode/painter/components/PopForm.js +0 -71
- package/es/lowcode/painter/components/SortBox.js +0 -92
- package/es/lowcode/painter/components/TabEditor.js +0 -88
- package/es/lowcode/painter/components/code-editor/BaseEditor.js +0 -118
- package/es/lowcode/painter/components/code-editor/CssEditor.js +0 -14
- package/es/lowcode/painter/components/code-editor/FullScreenEditor.js +0 -64
- package/es/lowcode/painter/components/code-editor/JSEditor.js +0 -84
- package/es/lowcode/painter/components/code-editor/index.js +0 -2
- package/es/lowcode/painter/panel-section/ButtonType.js +0 -39
- package/es/lowcode/painter/panel-section/Icon.js +0 -48
- package/es/lowcode/painter/panel-section/IconSelector.js +0 -134
- package/es/lowcode/painter/panel-section/StylePanel/Display.js +0 -292
- package/es/lowcode/painter/panel-section/StylePanel/DisplaySvg.js +0 -543
- package/es/lowcode/painter/panel-section/StylePanel/Height.js +0 -48
- package/es/lowcode/painter/panel-section/StylePanel/MainPanel.js +0 -64
- package/es/lowcode/painter/panel-section/StylePanel/StyleContext.js +0 -101
- package/es/lowcode/painter/panel-section/StylePanel/Width.js +0 -48
- package/es/lowcode/painter/panel-section/StylePanel/index.js +0 -12
- package/es/lowcode/painter/panel-section/TabItems.js +0 -237
- package/es/lowcode/painter/services/I18n.js +0 -85
- package/es/lowcode/painter/style/button-type.less +0 -5
- package/es/lowcode/painter/style/collapse.less +0 -21
- package/es/lowcode/painter/style/display.less +0 -17
- package/es/lowcode/painter/style/fullscreen-editor.less +0 -17
- package/es/lowcode/painter/style/icon-selector.less +0 -22
- package/es/lowcode/painter/style/icon.less +0 -11
- package/es/lowcode/painter/style/number-input.less +0 -17
- package/es/lowcode/painter/style/pop-confirm.less +0 -10
- package/es/lowcode/painter/style/pop-form.less +0 -20
- package/es/lowcode/painter/style/style-panel.less +0 -5
- package/es/lowcode/painter/style/tabeditor.less +0 -90
- package/es/lowcode/painter/style/tabitems.less +0 -90
- package/es/lowcode/view/lc-components/Box/FunctionDesign.js +0 -20
- package/es/lowcode/view/lc-components/Box/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Box/index.less +0 -15
- package/es/lowcode/view/lc-components/Box/meta.json +0 -42
- package/es/lowcode/view/lc-components/Button/FunctionDesign.js +0 -21
- package/es/lowcode/view/lc-components/Button/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Button/meta.json +0 -122
- package/es/lowcode/view/lc-components/CardList/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/CardList/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Dialog/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/Dialog/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Dialog/meta.json +0 -121
- package/es/lowcode/view/lc-components/Drawer/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/Drawer/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Drawer/meta.json +0 -144
- package/es/lowcode/view/lc-components/Drawer/style.less +0 -7
- package/es/lowcode/view/lc-components/Form/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/Form/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Form/meta.json +0 -117
- package/es/lowcode/view/lc-components/Iframe/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/Iframe/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Iframe/meta.json +0 -32
- package/es/lowcode/view/lc-components/ImEx/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/ImEx/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/ImEx/meta.json +0 -82
- package/es/lowcode/view/lc-components/Image/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/Image/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Image/meta.json +0 -114
- package/es/lowcode/view/lc-components/JSX/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/JSX/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/JSX/meta.json +0 -25
- package/es/lowcode/view/lc-components/Layout/FunctionDesign.js +0 -75
- package/es/lowcode/view/lc-components/Layout/FunctionLive.js +0 -15
- package/es/lowcode/view/lc-components/Layout/index.less +0 -5
- package/es/lowcode/view/lc-components/Layout/meta.json +0 -108
- package/es/lowcode/view/lc-components/Link/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/Link/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Link/meta.json +0 -112
- package/es/lowcode/view/lc-components/Section/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/Section/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Section/meta.json +0 -108
- package/es/lowcode/view/lc-components/Split/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/Split/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Split/meta.json +0 -72
- package/es/lowcode/view/lc-components/Table/FunctionDesign.js +0 -16
- package/es/lowcode/view/lc-components/Table/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Table/meta.json +0 -174
- package/es/lowcode/view/lc-components/Tabs/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/Tabs/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Tabs/meta.json +0 -141
- package/es/lowcode/view/lc-components/Text/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/Text/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Text/meta.json +0 -66
- package/es/lowcode/view/lc-components/Tree/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/Tree/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Tree/meta.json +0 -157
- package/lib/lowcode/engine/factory/panel-item-factory/DynamicStrategy.js +0 -73
- package/lib/lowcode/engine/factory/panel-item-factory/GroupStrategy.js +0 -38
- package/lib/lowcode/engine/factory/panel-item-factory/SegmentedStrategy.js +0 -38
- package/lib/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +0 -56
- package/lib/lowcode/engine/factory/panel-item-factory/Strategy.js +0 -27
- package/lib/lowcode/engine/factory/panel-item-factory/StringStrategy.js +0 -56
- package/lib/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +0 -38
- package/lib/lowcode/engine/factory/panel-item-factory/index.js +0 -48
- package/lib/lowcode/engine/meta/box.props.default.json +0 -12
- package/lib/lowcode/engine/meta/box.props.json +0 -42
- package/lib/lowcode/engine/meta/dialog.props.default.json +0 -19
- package/lib/lowcode/engine/meta/js-editor/auto-complete.json +0 -29
- package/lib/lowcode/engine/meta/table.props.json +0 -174
- package/lib/lowcode/engine/tools/usePromiseState.js +0 -31
- package/lib/lowcode/painter/components/Collapse.js +0 -39
- package/lib/lowcode/painter/components/NumberInput.js +0 -101
- package/lib/lowcode/painter/components/PopConfirm.js +0 -26
- package/lib/lowcode/painter/components/PopForm.js +0 -77
- package/lib/lowcode/painter/components/SortBox.js +0 -99
- package/lib/lowcode/painter/components/TabEditor.js +0 -94
- package/lib/lowcode/painter/components/code-editor/BaseEditor.js +0 -126
- package/lib/lowcode/painter/components/code-editor/CssEditor.js +0 -22
- package/lib/lowcode/painter/components/code-editor/FullScreenEditor.js +0 -72
- package/lib/lowcode/painter/components/code-editor/JSEditor.js +0 -95
- package/lib/lowcode/painter/components/code-editor/index.js +0 -20
- package/lib/lowcode/painter/panel-section/ButtonType.js +0 -46
- package/lib/lowcode/painter/panel-section/Icon.js +0 -54
- package/lib/lowcode/painter/panel-section/IconSelector.js +0 -141
- package/lib/lowcode/painter/panel-section/StylePanel/Display.js +0 -299
- package/lib/lowcode/painter/panel-section/StylePanel/DisplaySvg.js +0 -550
- package/lib/lowcode/painter/panel-section/StylePanel/Height.js +0 -55
- package/lib/lowcode/painter/panel-section/StylePanel/MainPanel.js +0 -72
- package/lib/lowcode/painter/panel-section/StylePanel/StyleContext.js +0 -112
- package/lib/lowcode/painter/panel-section/StylePanel/Width.js +0 -55
- package/lib/lowcode/painter/panel-section/StylePanel/index.js +0 -19
- package/lib/lowcode/painter/panel-section/TabItems.js +0 -245
- package/lib/lowcode/painter/services/I18n.js +0 -95
- package/lib/lowcode/painter/style/button-type.less +0 -5
- package/lib/lowcode/painter/style/collapse.less +0 -21
- package/lib/lowcode/painter/style/display.less +0 -17
- package/lib/lowcode/painter/style/fullscreen-editor.less +0 -17
- package/lib/lowcode/painter/style/icon-selector.less +0 -22
- package/lib/lowcode/painter/style/icon.less +0 -11
- package/lib/lowcode/painter/style/number-input.less +0 -17
- package/lib/lowcode/painter/style/pop-confirm.less +0 -10
- package/lib/lowcode/painter/style/pop-form.less +0 -20
- package/lib/lowcode/painter/style/style-panel.less +0 -5
- package/lib/lowcode/painter/style/tabeditor.less +0 -90
- package/lib/lowcode/painter/style/tabitems.less +0 -90
- package/lib/lowcode/view/lc-components/Box/FunctionDesign.js +0 -27
- package/lib/lowcode/view/lc-components/Box/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Box/index.less +0 -15
- package/lib/lowcode/view/lc-components/Box/meta.json +0 -42
- package/lib/lowcode/view/lc-components/Button/FunctionDesign.js +0 -28
- package/lib/lowcode/view/lc-components/Button/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Button/meta.json +0 -122
- package/lib/lowcode/view/lc-components/CardList/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/CardList/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Dialog/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/Dialog/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Dialog/meta.json +0 -121
- package/lib/lowcode/view/lc-components/Drawer/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/Drawer/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Drawer/meta.json +0 -144
- package/lib/lowcode/view/lc-components/Drawer/style.less +0 -7
- package/lib/lowcode/view/lc-components/Form/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/Form/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Form/meta.json +0 -117
- package/lib/lowcode/view/lc-components/Iframe/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/Iframe/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Iframe/meta.json +0 -32
- package/lib/lowcode/view/lc-components/ImEx/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/ImEx/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/ImEx/meta.json +0 -82
- package/lib/lowcode/view/lc-components/Image/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/Image/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Image/meta.json +0 -114
- package/lib/lowcode/view/lc-components/JSX/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/JSX/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/JSX/meta.json +0 -25
- package/lib/lowcode/view/lc-components/Layout/FunctionDesign.js +0 -82
- package/lib/lowcode/view/lc-components/Layout/FunctionLive.js +0 -22
- package/lib/lowcode/view/lc-components/Layout/index.less +0 -5
- package/lib/lowcode/view/lc-components/Layout/meta.json +0 -108
- package/lib/lowcode/view/lc-components/Link/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/Link/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Link/meta.json +0 -112
- package/lib/lowcode/view/lc-components/Section/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/Section/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Section/meta.json +0 -108
- package/lib/lowcode/view/lc-components/Split/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/Split/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Split/meta.json +0 -72
- package/lib/lowcode/view/lc-components/Table/FunctionDesign.js +0 -23
- package/lib/lowcode/view/lc-components/Table/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Table/meta.json +0 -174
- package/lib/lowcode/view/lc-components/Tabs/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/Tabs/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Tabs/meta.json +0 -141
- package/lib/lowcode/view/lc-components/Text/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/Text/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Text/meta.json +0 -66
- package/lib/lowcode/view/lc-components/Tree/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/Tree/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Tree/meta.json +0 -157
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
var _interopRequireWildcard3 = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = void 0;
|
|
9
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
-
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
|
-
var _regeneratorRuntime2 = _interopRequireDefault(require("@babel/runtime/helpers/regeneratorRuntime"));
|
|
12
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
13
|
-
var _interopRequireWildcard2 = _interopRequireDefault(require("@babel/runtime/helpers/interopRequireWildcard"));
|
|
14
|
-
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
15
|
-
var _react = _interopRequireWildcard3(require("react"));
|
|
16
|
-
var _BaseEditor = _interopRequireDefault(require("./BaseEditor"));
|
|
17
|
-
var monaco = _interopRequireWildcard3(require("monaco-editor"));
|
|
18
|
-
var _excluded = ["children"];
|
|
19
|
-
var _provideCompletionItems = function provideCompletionItems(monaco, model, position, module) {
|
|
20
|
-
var textUntilPosition = model.getValueInRange({
|
|
21
|
-
startLineNumber: position.lineNumber,
|
|
22
|
-
startColumn: 1,
|
|
23
|
-
endLineNumber: position.lineNumber,
|
|
24
|
-
endColumn: position.column
|
|
25
|
-
});
|
|
26
|
-
if (textUntilPosition.endsWith(module.triggerWord + '.')) {
|
|
27
|
-
var word = model.getWordUntilPosition(position);
|
|
28
|
-
var range = {
|
|
29
|
-
startLineNumber: position.lineNumber,
|
|
30
|
-
endLineNumber: position.lineNumber,
|
|
31
|
-
startColumn: word.startColumn,
|
|
32
|
-
endColumn: word.endColumn
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
// 从模块中调用 completions 函数获取补全项数组
|
|
36
|
-
// 并动态转换 kind 字段
|
|
37
|
-
return module.completions.map(function (completion) {
|
|
38
|
-
return Object.assign({}, completion, {
|
|
39
|
-
range: range,
|
|
40
|
-
// 动态转换 kind 字段
|
|
41
|
-
kind: monaco.languages.CompletionItemKind[completion.kind]
|
|
42
|
-
});
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
return [];
|
|
46
|
-
};
|
|
47
|
-
var setupAutocomplete = /*#__PURE__*/function () {
|
|
48
|
-
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee(monaco) {
|
|
49
|
-
var autoCompleteModules;
|
|
50
|
-
return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {
|
|
51
|
-
while (1) switch (_context.prev = _context.next) {
|
|
52
|
-
case 0:
|
|
53
|
-
_context.next = 2;
|
|
54
|
-
return Promise.resolve().then(function () {
|
|
55
|
-
return (0, _interopRequireWildcard2.default)(require("../../../engine/meta/js-editor/auto-complete.json"));
|
|
56
|
-
});
|
|
57
|
-
case 2:
|
|
58
|
-
autoCompleteModules = _context.sent;
|
|
59
|
-
console.log('autoCompleteModules', autoCompleteModules);
|
|
60
|
-
monaco.languages.registerCompletionItemProvider('javascript', (0, _defineProperty2.default)({
|
|
61
|
-
triggerCharacters: ['.'],
|
|
62
|
-
provideCompletionItems: function provideCompletionItems(model, position) {
|
|
63
|
-
var allCompletionItems = [];
|
|
64
|
-
|
|
65
|
-
// 从所有模块收集补全项
|
|
66
|
-
autoCompleteModules.default.forEach(function (module) {
|
|
67
|
-
var items = _provideCompletionItems(monaco, model, position, module);
|
|
68
|
-
allCompletionItems = allCompletionItems.concat(items);
|
|
69
|
-
});
|
|
70
|
-
return {
|
|
71
|
-
suggestions: allCompletionItems
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
}, "triggerCharacters", ['.']));
|
|
75
|
-
case 5:
|
|
76
|
-
case "end":
|
|
77
|
-
return _context.stop();
|
|
78
|
-
}
|
|
79
|
-
}, _callee);
|
|
80
|
-
}));
|
|
81
|
-
return function setupAutocomplete(_x) {
|
|
82
|
-
return _ref.apply(this, arguments);
|
|
83
|
-
};
|
|
84
|
-
}();
|
|
85
|
-
var JSEditor = /*#__PURE__*/(0, _react.forwardRef)(function (_ref2, ref) {
|
|
86
|
-
var children = _ref2.children,
|
|
87
|
-
rest = (0, _objectWithoutProperties2.default)(_ref2, _excluded);
|
|
88
|
-
(0, _react.useEffect)(function () {
|
|
89
|
-
setupAutocomplete(monaco);
|
|
90
|
-
}, []);
|
|
91
|
-
return /*#__PURE__*/_react.default.createElement(_BaseEditor.default, (0, _extends2.default)({
|
|
92
|
-
ref: ref
|
|
93
|
-
}, rest));
|
|
94
|
-
});
|
|
95
|
-
var _default = exports.default = /*#__PURE__*/_react.default.memo(JSEditor);
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
Object.defineProperty(exports, "BaseEditor", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function get() {
|
|
10
|
-
return _BaseEditor.default;
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
Object.defineProperty(exports, "JSEditor", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function get() {
|
|
16
|
-
return _JSEditor.default;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
var _BaseEditor = _interopRequireDefault(require("./BaseEditor"));
|
|
20
|
-
var _JSEditor = _interopRequireDefault(require("./JSEditor"));
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = void 0;
|
|
8
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
-
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
|
-
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
var _antd = require("luck-design/antd");
|
|
12
|
-
var _buttonType = _interopRequireDefault(require("../style/button-type.less"));
|
|
13
|
-
var _excluded = ["onChange"];
|
|
14
|
-
var ButtonType = function ButtonType(_ref) {
|
|
15
|
-
var onChange = _ref.onChange,
|
|
16
|
-
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
17
|
-
return /*#__PURE__*/_react.default.createElement(_antd.Select, (0, _extends2.default)({}, props, {
|
|
18
|
-
onChange: onChange,
|
|
19
|
-
className: _buttonType.default['lc-painter-panel-section-components-buttontype']
|
|
20
|
-
}), /*#__PURE__*/_react.default.createElement(_antd.Select.Option, {
|
|
21
|
-
value: "primary"
|
|
22
|
-
}, /*#__PURE__*/_react.default.createElement(_antd.Button, {
|
|
23
|
-
type: "primary",
|
|
24
|
-
size: "small",
|
|
25
|
-
className: _buttonType.default['lc-painter-panel-section-components-buttontype-option']
|
|
26
|
-
}, "primary")), /*#__PURE__*/_react.default.createElement(_antd.Select.Option, {
|
|
27
|
-
value: "default"
|
|
28
|
-
}, /*#__PURE__*/_react.default.createElement(_antd.Button, {
|
|
29
|
-
type: "default",
|
|
30
|
-
size: "small",
|
|
31
|
-
className: _buttonType.default['lc-painter-panel-section-components-buttontype-option']
|
|
32
|
-
}, "default")), /*#__PURE__*/_react.default.createElement(_antd.Select.Option, {
|
|
33
|
-
value: "dashed"
|
|
34
|
-
}, /*#__PURE__*/_react.default.createElement(_antd.Button, {
|
|
35
|
-
type: "dashed",
|
|
36
|
-
size: "small",
|
|
37
|
-
className: _buttonType.default['lc-painter-panel-section-components-buttontype-option']
|
|
38
|
-
}, "dashed")), /*#__PURE__*/_react.default.createElement(_antd.Select.Option, {
|
|
39
|
-
value: "danger"
|
|
40
|
-
}, /*#__PURE__*/_react.default.createElement(_antd.Button, {
|
|
41
|
-
type: "danger",
|
|
42
|
-
size: "small",
|
|
43
|
-
className: _buttonType.default['lc-painter-panel-section-components-buttontype-option']
|
|
44
|
-
}, "danger")));
|
|
45
|
-
};
|
|
46
|
-
var _default = exports.default = ButtonType;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = _default;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _antd = require("luck-design/antd");
|
|
10
|
-
var _icon = _interopRequireDefault(require("../style/icon.less"));
|
|
11
|
-
var _apiUrl = require("../../constants/api-url");
|
|
12
|
-
/**
|
|
13
|
-
* 一个简单的图标选择器组件,展示了一个图标并允许用户点击选择。
|
|
14
|
-
* 该组件使用了`Icon.createFromIconfontCN`来创建一个可以从Iconfont.cn加载图标的`IconFont`组件。
|
|
15
|
-
* 当图标被点击时,会调用`onSelect`回调函数,并传递一个对象,其中包含了`field`字段。
|
|
16
|
-
*
|
|
17
|
-
* @component
|
|
18
|
-
* @example
|
|
19
|
-
* ```jsx
|
|
20
|
-
* <IconSelector
|
|
21
|
-
* field="iconField"
|
|
22
|
-
* onSelect={({ field }) => console.log(`Selected icon field: ${field}`)}
|
|
23
|
-
* value="icon-example"
|
|
24
|
-
* />
|
|
25
|
-
* ```
|
|
26
|
-
*
|
|
27
|
-
* @param {Object} props 组件的props
|
|
28
|
-
* @param {string} props.field 用于识别选择的图标字段的标识符。
|
|
29
|
-
* @param {Function} props.onSelect 当图标被点击时触发的回调函数。
|
|
30
|
-
* 接收一个对象参数,该对象包含`field`字段。
|
|
31
|
-
* @param {string} [props.value='iconyingyongguanli'] 初始化时图标的类型,
|
|
32
|
-
* 默认为'iconyingyongguanli'。
|
|
33
|
-
*
|
|
34
|
-
* @returns {React.Element} 渲染的React元素。
|
|
35
|
-
*/
|
|
36
|
-
function _default(_ref) {
|
|
37
|
-
var field = _ref.field,
|
|
38
|
-
onSelect = _ref.onSelect,
|
|
39
|
-
value = _ref.value,
|
|
40
|
-
next = _ref.next;
|
|
41
|
-
var IconFont = _antd.Icon.createFromIconfontCN({
|
|
42
|
-
scriptUrl: _apiUrl.ICONLIST_JS
|
|
43
|
-
});
|
|
44
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
45
|
-
className: _icon.default['lc-painter-panel-section-icon'],
|
|
46
|
-
onClick: function onClick() {
|
|
47
|
-
return next();
|
|
48
|
-
}
|
|
49
|
-
}, /*#__PURE__*/_react.default.createElement(IconFont, {
|
|
50
|
-
type: value !== null && value !== void 0 ? value : 'iconyingyongguanli'
|
|
51
|
-
}), /*#__PURE__*/_react.default.createElement("span", {
|
|
52
|
-
className: _icon.default['selecor']
|
|
53
|
-
}, "\u8BF7\u9009\u62E9 >"));
|
|
54
|
-
}
|
|
@@ -1,141 +0,0 @@
|
|
|
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 = _default;
|
|
9
|
-
var _regeneratorRuntime2 = _interopRequireDefault(require("@babel/runtime/helpers/regeneratorRuntime"));
|
|
10
|
-
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
11
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
12
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
13
|
-
var _antd = require("luck-design/antd");
|
|
14
|
-
var _ahooks = require("ahooks");
|
|
15
|
-
var _iconSelector = _interopRequireDefault(require("../style/icon-selector.less"));
|
|
16
|
-
var _utils = require("@luck-design-biz/base/utils");
|
|
17
|
-
var _apiUrl = require("../../constants/api-url");
|
|
18
|
-
var Search = _antd.Input.Search;
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* 一个用于选择图标的组件,提供了图标的搜索和选择功能。
|
|
22
|
-
*
|
|
23
|
-
* 该组件首先从预定义的URL加载图标列表,然后显示这些图标。用户可以通过输入框搜索图标,
|
|
24
|
-
* 点击图标时,会通过 `onChange` 回调将选中的图标信息返回给父组件。
|
|
25
|
-
*
|
|
26
|
-
* @component
|
|
27
|
-
* @example
|
|
28
|
-
* ```jsx
|
|
29
|
-
* <IconSelector
|
|
30
|
-
* onChange={(selectedIcon) => console.log(selectedIcon)}
|
|
31
|
-
* />
|
|
32
|
-
* ```
|
|
33
|
-
*
|
|
34
|
-
* @param {Object} props 组件接受的props
|
|
35
|
-
* @param {Function} props.onChange 当图标被选中时触发的回调函数,接受选中图标的信息作为参数
|
|
36
|
-
*/
|
|
37
|
-
function _default(_ref) {
|
|
38
|
-
var onChange = _ref.onChange;
|
|
39
|
-
var _useState = (0, _react.useState)(null),
|
|
40
|
-
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
41
|
-
iconData = _useState2[0],
|
|
42
|
-
setIconData = _useState2[1];
|
|
43
|
-
var _useState3 = (0, _react.useState)(''),
|
|
44
|
-
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
45
|
-
searchTerm = _useState4[0],
|
|
46
|
-
setSearchTerm = _useState4[1];
|
|
47
|
-
var IconFont = _antd.Icon.createFromIconfontCN({
|
|
48
|
-
scriptUrl: _apiUrl.ICONLIST_JS
|
|
49
|
-
});
|
|
50
|
-
function getIconList() {
|
|
51
|
-
return _getIconList.apply(this, arguments);
|
|
52
|
-
}
|
|
53
|
-
function _getIconList() {
|
|
54
|
-
_getIconList = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2() {
|
|
55
|
-
return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {
|
|
56
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
57
|
-
case 0:
|
|
58
|
-
return _context2.abrupt("return", (0, _utils.request)(_apiUrl.ICONLIST_URL, {
|
|
59
|
-
method: 'get'
|
|
60
|
-
}));
|
|
61
|
-
case 1:
|
|
62
|
-
case "end":
|
|
63
|
-
return _context2.stop();
|
|
64
|
-
}
|
|
65
|
-
}, _callee2);
|
|
66
|
-
}));
|
|
67
|
-
return _getIconList.apply(this, arguments);
|
|
68
|
-
}
|
|
69
|
-
(0, _react.useEffect)(function () {
|
|
70
|
-
var fetchData = /*#__PURE__*/function () {
|
|
71
|
-
var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {
|
|
72
|
-
var data;
|
|
73
|
-
return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {
|
|
74
|
-
while (1) switch (_context.prev = _context.next) {
|
|
75
|
-
case 0:
|
|
76
|
-
_context.prev = 0;
|
|
77
|
-
_context.next = 3;
|
|
78
|
-
return getIconList();
|
|
79
|
-
case 3:
|
|
80
|
-
data = _context.sent;
|
|
81
|
-
setIconData(data);
|
|
82
|
-
_context.next = 10;
|
|
83
|
-
break;
|
|
84
|
-
case 7:
|
|
85
|
-
_context.prev = 7;
|
|
86
|
-
_context.t0 = _context["catch"](0);
|
|
87
|
-
console.error('获取数据失败', _context.t0);
|
|
88
|
-
case 10:
|
|
89
|
-
case "end":
|
|
90
|
-
return _context.stop();
|
|
91
|
-
}
|
|
92
|
-
}, _callee, null, [[0, 7]]);
|
|
93
|
-
}));
|
|
94
|
-
return function fetchData() {
|
|
95
|
-
return _ref2.apply(this, arguments);
|
|
96
|
-
};
|
|
97
|
-
}();
|
|
98
|
-
fetchData();
|
|
99
|
-
}, []);
|
|
100
|
-
var handleSearch = (0, _react.useCallback)(function (e) {
|
|
101
|
-
setSearchTerm(e.target.value.toLowerCase());
|
|
102
|
-
}, []);
|
|
103
|
-
var filteredData = (0, _react.useMemo)(function () {
|
|
104
|
-
if (iconData && iconData.glyphs) {
|
|
105
|
-
return iconData.glyphs.filter(function (item) {
|
|
106
|
-
return item.name.toLowerCase().includes(searchTerm) || item.font_class.toLowerCase().includes(searchTerm);
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
return [];
|
|
110
|
-
}, [iconData, searchTerm]);
|
|
111
|
-
var handleClick = (0, _ahooks.useMemoizedFn)(function (icon) {
|
|
112
|
-
onChange === null || onChange === void 0 || onChange(icon);
|
|
113
|
-
});
|
|
114
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
115
|
-
className: _iconSelector.default['lc-painter-panel-section-iconselector']
|
|
116
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
117
|
-
className: _iconSelector.default['components-search']
|
|
118
|
-
}, /*#__PURE__*/_react.default.createElement(Search, {
|
|
119
|
-
placeholder: (0, _utils.formatMessage)({
|
|
120
|
-
id: 'luckda.lowcode.painter.components.search',
|
|
121
|
-
label: '搜索组件'
|
|
122
|
-
}),
|
|
123
|
-
onChange: handleSearch
|
|
124
|
-
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
125
|
-
className: _iconSelector.default['icon-warp']
|
|
126
|
-
}, filteredData && filteredData.length > 0 && filteredData.map(function (iconItem) {
|
|
127
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
128
|
-
key: iconItem.font_class,
|
|
129
|
-
className: _iconSelector.default['icon-box'],
|
|
130
|
-
onClick: function onClick() {
|
|
131
|
-
return handleClick(iconItem);
|
|
132
|
-
}
|
|
133
|
-
}, /*#__PURE__*/_react.default.createElement(_antd.Tooltip, {
|
|
134
|
-
placement: "top",
|
|
135
|
-
title: iconItem.name
|
|
136
|
-
}, /*#__PURE__*/_react.default.createElement(IconFont, {
|
|
137
|
-
className: _iconSelector.default['icon-item'],
|
|
138
|
-
type: "".concat(iconData.css_prefix_text).concat(iconItem.font_class)
|
|
139
|
-
})));
|
|
140
|
-
})));
|
|
141
|
-
}
|
|
@@ -1,299 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = _default;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _PanelItem = _interopRequireDefault(require("../../components/PanelItem"));
|
|
10
|
-
var _uiDesign = require("@luck-helper/ui-design");
|
|
11
|
-
var _utils = require("@luck-design-biz/base/utils");
|
|
12
|
-
var _antd = require("luck-design/antd");
|
|
13
|
-
var _display = _interopRequireDefault(require("../../style/display.less"));
|
|
14
|
-
var _DisplaySvg = _interopRequireDefault(require("./DisplaySvg"));
|
|
15
|
-
var _StyleContext = require("./StyleContext");
|
|
16
|
-
function _default() {
|
|
17
|
-
var style = (0, _StyleContext.useStyle)();
|
|
18
|
-
var dispatch = (0, _StyleContext.useStyleDispatch)();
|
|
19
|
-
var handleDisplayChange = function handleDisplayChange(id, value) {
|
|
20
|
-
dispatch({
|
|
21
|
-
type: 'edit',
|
|
22
|
-
payload: {
|
|
23
|
-
id: id,
|
|
24
|
-
value: value
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
};
|
|
28
|
-
return /*#__PURE__*/_react.default.createElement(_PanelItem.default, {
|
|
29
|
-
label: (0, _utils.formatMessage)({
|
|
30
|
-
id: 'luckda.lowcode.painter.panel-section.style-panel.display',
|
|
31
|
-
label: '显示'
|
|
32
|
-
}),
|
|
33
|
-
collapsed: style.display != 'flex',
|
|
34
|
-
addon: style.display == 'flex' ? /*#__PURE__*/_react.default.createElement(FlexTypeSelector, {
|
|
35
|
-
dispatch: dispatch
|
|
36
|
-
}) : null
|
|
37
|
-
}, /*#__PURE__*/_react.default.createElement(_uiDesign.Segmented, {
|
|
38
|
-
options: options,
|
|
39
|
-
onChange: function onChange(value) {
|
|
40
|
-
return handleDisplayChange('display', value);
|
|
41
|
-
},
|
|
42
|
-
value: style.display
|
|
43
|
-
}));
|
|
44
|
-
}
|
|
45
|
-
var FlexTypeSelector = function FlexTypeSelector() {
|
|
46
|
-
var style = (0, _StyleContext.useStyle)();
|
|
47
|
-
var dispatch = (0, _StyleContext.useStyleDispatch)();
|
|
48
|
-
var handleChange = function handleChange(id, value) {
|
|
49
|
-
dispatch({
|
|
50
|
-
type: 'edit',
|
|
51
|
-
payload: {
|
|
52
|
-
id: id,
|
|
53
|
-
value: value
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
};
|
|
57
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
58
|
-
className: _display.default['lc-painter-panel-section-style-panel-display']
|
|
59
|
-
}, /*#__PURE__*/_react.default.createElement(_uiDesign.Segmented, {
|
|
60
|
-
options: directOptions,
|
|
61
|
-
onChange: function onChange(value) {
|
|
62
|
-
return handleChange('flex-direction', value);
|
|
63
|
-
},
|
|
64
|
-
value: style['flex-direction']
|
|
65
|
-
}), /*#__PURE__*/_react.default.createElement(_uiDesign.Segmented, {
|
|
66
|
-
options: alignOptions,
|
|
67
|
-
onChange: function onChange(value) {
|
|
68
|
-
return handleChange('align-items', value);
|
|
69
|
-
},
|
|
70
|
-
value: style['align-items']
|
|
71
|
-
}), /*#__PURE__*/_react.default.createElement(_uiDesign.Segmented, {
|
|
72
|
-
options: justifyOptions,
|
|
73
|
-
onChange: function onChange(value) {
|
|
74
|
-
return handleChange('justify-content', value);
|
|
75
|
-
},
|
|
76
|
-
value: style['justify-content']
|
|
77
|
-
}));
|
|
78
|
-
};
|
|
79
|
-
var options = [{
|
|
80
|
-
label: /*#__PURE__*/_react.default.createElement(_antd.Tooltip, {
|
|
81
|
-
placement: "top",
|
|
82
|
-
title: "block"
|
|
83
|
-
}, (0, _utils.formatMessage)({
|
|
84
|
-
id: 'luckda.lowcode.painter.panel-section.style-panel.display.block',
|
|
85
|
-
label: '块'
|
|
86
|
-
})),
|
|
87
|
-
value: 'block'
|
|
88
|
-
}, {
|
|
89
|
-
label: /*#__PURE__*/_react.default.createElement(_antd.Tooltip, {
|
|
90
|
-
placement: "top",
|
|
91
|
-
title: "inline-block"
|
|
92
|
-
}, (0, _utils.formatMessage)({
|
|
93
|
-
id: 'luckda.lowcode.painter.panel-section.style-panel.display.inline-block',
|
|
94
|
-
label: '行内块'
|
|
95
|
-
})),
|
|
96
|
-
value: 'inline-block'
|
|
97
|
-
}, {
|
|
98
|
-
label: /*#__PURE__*/_react.default.createElement(_antd.Tooltip, {
|
|
99
|
-
placement: "top",
|
|
100
|
-
title: "inline"
|
|
101
|
-
}, (0, _utils.formatMessage)({
|
|
102
|
-
id: 'luckda.lowcode.painter.panel-section.style-panel.display.inline',
|
|
103
|
-
label: '行内'
|
|
104
|
-
})),
|
|
105
|
-
value: 'inline'
|
|
106
|
-
}, {
|
|
107
|
-
label: /*#__PURE__*/_react.default.createElement(_antd.Tooltip, {
|
|
108
|
-
placement: "top",
|
|
109
|
-
title: "flex"
|
|
110
|
-
}, (0, _utils.formatMessage)({
|
|
111
|
-
id: 'luckda.lowcode.painter.panel-section.style-panel.display.flex',
|
|
112
|
-
label: '弹性'
|
|
113
|
-
})),
|
|
114
|
-
value: 'flex'
|
|
115
|
-
}];
|
|
116
|
-
function parseDirection(input) {
|
|
117
|
-
var parts = input.split('-');
|
|
118
|
-
var type = parts[0];
|
|
119
|
-
var isReverse = parts.length > 1 && parts[1] === 'reverse';
|
|
120
|
-
return {
|
|
121
|
-
type: type,
|
|
122
|
-
isReverse: isReverse
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
var SvgLabel = function SvgLabel(_ref) {
|
|
126
|
-
var name = _ref.name,
|
|
127
|
-
tip = _ref.tip,
|
|
128
|
-
pre = _ref.pre;
|
|
129
|
-
var style = (0, _StyleContext.useStyle)();
|
|
130
|
-
var direct = null;
|
|
131
|
-
var SvgComponent = null;
|
|
132
|
-
var className = null;
|
|
133
|
-
if (pre) {
|
|
134
|
-
var _style$flexDirection;
|
|
135
|
-
direct = parseDirection((_style$flexDirection = style['flex-direction']) !== null && _style$flexDirection !== void 0 ? _style$flexDirection : 'row');
|
|
136
|
-
SvgComponent = _DisplaySvg.default["".concat(direct.type, "-").concat(pre, "-").concat(name)];
|
|
137
|
-
} else {
|
|
138
|
-
direct = parseDirection(name);
|
|
139
|
-
SvgComponent = _DisplaySvg.default[name];
|
|
140
|
-
}
|
|
141
|
-
if (direct.isReverse) {
|
|
142
|
-
className = direct.type == 'row' ? _display.default['revert-h'] : _display.default['revert-v'];
|
|
143
|
-
}
|
|
144
|
-
return SvgComponent ? /*#__PURE__*/_react.default.createElement(_antd.Tooltip, {
|
|
145
|
-
placement: "top",
|
|
146
|
-
title: tip
|
|
147
|
-
}, /*#__PURE__*/_react.default.createElement("span", null, /*#__PURE__*/_react.default.createElement(SvgComponent, {
|
|
148
|
-
className: className
|
|
149
|
-
}))) : null;
|
|
150
|
-
};
|
|
151
|
-
var directOptions = [{
|
|
152
|
-
label: /*#__PURE__*/_react.default.createElement(SvgLabel, {
|
|
153
|
-
name: "row",
|
|
154
|
-
tip: (0, _utils.formatMessage)({
|
|
155
|
-
id: 'luckda.lowcode.painter.panel-section.style-panel.display.direct.row',
|
|
156
|
-
label: '方向:横向'
|
|
157
|
-
})
|
|
158
|
-
}),
|
|
159
|
-
value: 'row'
|
|
160
|
-
}, {
|
|
161
|
-
label: /*#__PURE__*/_react.default.createElement(SvgLabel, {
|
|
162
|
-
name: "column",
|
|
163
|
-
tip: (0, _utils.formatMessage)({
|
|
164
|
-
id: 'luckda.lowcode.painter.panel-section.style-panel.display.direct.column',
|
|
165
|
-
label: '方向:纵向'
|
|
166
|
-
})
|
|
167
|
-
}),
|
|
168
|
-
value: 'column'
|
|
169
|
-
}, {
|
|
170
|
-
label: /*#__PURE__*/_react.default.createElement(SvgLabel, {
|
|
171
|
-
name: "row-reverse",
|
|
172
|
-
tip: (0, _utils.formatMessage)({
|
|
173
|
-
id: 'luckda.lowcode.painter.panel-section.style-panel.display.direct.column',
|
|
174
|
-
label: '方向:横向反转'
|
|
175
|
-
})
|
|
176
|
-
}),
|
|
177
|
-
value: 'row-reverse'
|
|
178
|
-
}, {
|
|
179
|
-
label: /*#__PURE__*/_react.default.createElement(SvgLabel, {
|
|
180
|
-
name: "column-reverse",
|
|
181
|
-
tip: (0, _utils.formatMessage)({
|
|
182
|
-
id: 'luckda.lowcode.painter.panel-section.style-panel.display.direct.column',
|
|
183
|
-
label: '方向:纵向反转'
|
|
184
|
-
})
|
|
185
|
-
}),
|
|
186
|
-
value: 'column-reverse'
|
|
187
|
-
}];
|
|
188
|
-
var alignOptions = [{
|
|
189
|
-
label: /*#__PURE__*/_react.default.createElement(SvgLabel, {
|
|
190
|
-
name: "flex-start",
|
|
191
|
-
pre: "align",
|
|
192
|
-
tip: (0, _utils.formatMessage)({
|
|
193
|
-
id: 'luckda.lowcode.painter.panel-section.style-panel.display.align-items.flex-start',
|
|
194
|
-
label: '交叉轴:起始对齐'
|
|
195
|
-
})
|
|
196
|
-
}),
|
|
197
|
-
value: 'flex-start'
|
|
198
|
-
}, {
|
|
199
|
-
label: /*#__PURE__*/_react.default.createElement(SvgLabel, {
|
|
200
|
-
name: "center",
|
|
201
|
-
pre: "align",
|
|
202
|
-
tip: (0, _utils.formatMessage)({
|
|
203
|
-
id: 'luckda.lowcode.painter.panel-section.style-panel.display.align-items.center',
|
|
204
|
-
label: '交叉轴:居中'
|
|
205
|
-
})
|
|
206
|
-
}),
|
|
207
|
-
value: 'center'
|
|
208
|
-
}, {
|
|
209
|
-
label: /*#__PURE__*/_react.default.createElement(SvgLabel, {
|
|
210
|
-
name: "flex-end",
|
|
211
|
-
pre: "align",
|
|
212
|
-
tip: (0, _utils.formatMessage)({
|
|
213
|
-
id: 'luckda.lowcode.painter.panel-section.style-panel.display.align-items.flex-end',
|
|
214
|
-
label: '交叉轴:终点对齐'
|
|
215
|
-
})
|
|
216
|
-
}),
|
|
217
|
-
value: 'flex-end'
|
|
218
|
-
}, {
|
|
219
|
-
label: /*#__PURE__*/_react.default.createElement(SvgLabel, {
|
|
220
|
-
name: "stretch",
|
|
221
|
-
pre: "align",
|
|
222
|
-
top: (0, _utils.formatMessage)({
|
|
223
|
-
id: 'luckda.lowcode.painter.panel-section.style-panel.display.align-items.stretch',
|
|
224
|
-
label: '交叉轴:拉伸'
|
|
225
|
-
})
|
|
226
|
-
}),
|
|
227
|
-
value: 'stretch'
|
|
228
|
-
}, {
|
|
229
|
-
label: /*#__PURE__*/_react.default.createElement(SvgLabel, {
|
|
230
|
-
name: "baseline",
|
|
231
|
-
pre: "align",
|
|
232
|
-
tip: (0, _utils.formatMessage)({
|
|
233
|
-
id: 'luckda.lowcode.painter.panel-section.style-panel.display.align-items.baseline',
|
|
234
|
-
label: '交叉轴:基线'
|
|
235
|
-
})
|
|
236
|
-
}),
|
|
237
|
-
value: 'baseline'
|
|
238
|
-
}];
|
|
239
|
-
var justifyOptions = [{
|
|
240
|
-
label: /*#__PURE__*/_react.default.createElement(SvgLabel, {
|
|
241
|
-
name: "flex-start",
|
|
242
|
-
pre: "justify",
|
|
243
|
-
tip: (0, _utils.formatMessage)({
|
|
244
|
-
id: 'luckda.lowcode.painter.panel-section.style-panel.display.justify.flex-start',
|
|
245
|
-
label: '水平轴:起始对齐'
|
|
246
|
-
})
|
|
247
|
-
}),
|
|
248
|
-
value: 'flex-start'
|
|
249
|
-
}, {
|
|
250
|
-
label: /*#__PURE__*/_react.default.createElement(SvgLabel, {
|
|
251
|
-
name: "center",
|
|
252
|
-
pre: "justify",
|
|
253
|
-
tip: (0, _utils.formatMessage)({
|
|
254
|
-
id: 'luckda.lowcode.painter.panel-section.style-panel.display.justify.center',
|
|
255
|
-
label: '水平轴:居中对齐'
|
|
256
|
-
})
|
|
257
|
-
}),
|
|
258
|
-
value: 'center'
|
|
259
|
-
}, {
|
|
260
|
-
label: /*#__PURE__*/_react.default.createElement(SvgLabel, {
|
|
261
|
-
name: "flex-end",
|
|
262
|
-
pre: "justify",
|
|
263
|
-
tip: (0, _utils.formatMessage)({
|
|
264
|
-
id: 'luckda.lowcode.painter.panel-section.style-panel.display.justify.flex-end',
|
|
265
|
-
label: '水平轴:结束对齐'
|
|
266
|
-
})
|
|
267
|
-
}),
|
|
268
|
-
value: 'flex-end'
|
|
269
|
-
}, {
|
|
270
|
-
label: /*#__PURE__*/_react.default.createElement(SvgLabel, {
|
|
271
|
-
name: "space-between",
|
|
272
|
-
pre: "justify",
|
|
273
|
-
tip: (0, _utils.formatMessage)({
|
|
274
|
-
id: 'luckda.lowcode.painter.panel-section.style-panel.display.justify.space-between',
|
|
275
|
-
label: '水平轴:两端对齐'
|
|
276
|
-
})
|
|
277
|
-
}),
|
|
278
|
-
value: 'space-between'
|
|
279
|
-
}, {
|
|
280
|
-
label: /*#__PURE__*/_react.default.createElement(SvgLabel, {
|
|
281
|
-
name: "space-around",
|
|
282
|
-
pre: "justify",
|
|
283
|
-
tip: (0, _utils.formatMessage)({
|
|
284
|
-
id: 'luckda.lowcode.painter.panel-section.style-panel.display.justify.space-around',
|
|
285
|
-
label: '水平轴:均匀对齐,项目周围间隔相等'
|
|
286
|
-
})
|
|
287
|
-
}),
|
|
288
|
-
value: 'space-around'
|
|
289
|
-
}, {
|
|
290
|
-
label: /*#__PURE__*/_react.default.createElement(SvgLabel, {
|
|
291
|
-
name: "space-evenly",
|
|
292
|
-
pre: "justify",
|
|
293
|
-
tip: (0, _utils.formatMessage)({
|
|
294
|
-
id: 'luckda.lowcode.painter.panel-section.style-panel.display.justify.space-evenly',
|
|
295
|
-
label: '水平轴:均匀分布,所有项目与容器边缘的间隔相等'
|
|
296
|
-
})
|
|
297
|
-
}),
|
|
298
|
-
value: 'space-evenly'
|
|
299
|
-
}];
|