@luck-design-biz/luckda 0.0.25 → 0.0.26-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +18 -27
- 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 +5 -32
- package/es/components/LdTree/index.less +1 -6
- 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 -1
- package/es/lowcode/constants/api-url.js +1 -351
- package/es/lowcode/constants/event-topics.js +1 -14
- package/es/lowcode/constants/index.js +1 -3
- 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 -16
- package/{lib/lowcode/engine/meta/button.props.json → es/lowcode/engine/meta/components/button.json} +103 -126
- package/{lib/lowcode/engine/meta/cardlist.props.json → es/lowcode/engine/meta/components/card-list.json} +142 -142
- package/es/lowcode/engine/meta/{drawer.props.json → components/drawer.json} +142 -142
- package/{lib/lowcode/engine/meta/form.props.json → es/lowcode/engine/meta/components/form.json} +115 -115
- 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/{lib/lowcode/engine/meta/imex.props.json → es/lowcode/engine/meta/components/imex.json} +80 -81
- package/{lib/lowcode/engine/meta/jsx.props.json → es/lowcode/engine/meta/components/jsx.json} +23 -24
- package/es/lowcode/engine/meta/{layout.props.json → components/layout.json} +106 -107
- package/es/lowcode/engine/meta/{link.props.json → components/link.json} +110 -111
- package/{lib/lowcode/engine/meta/dialog.props.json → es/lowcode/engine/meta/components/modal.json} +119 -119
- package/es/lowcode/engine/meta/{section.props.json → components/section.json} +106 -107
- package/{lib/lowcode/engine/meta/split.props.json → es/lowcode/engine/meta/components/split.json} +70 -71
- package/es/lowcode/{view/lc-components/CardList/meta.json → engine/meta/components/table.json} +30 -12
- package/{lib/lowcode/engine/meta/tabs.props.json → es/lowcode/engine/meta/components/tabs.json} +139 -139
- package/{lib/lowcode/engine/meta/text.props.json → es/lowcode/engine/meta/components/text.json} +64 -65
- package/{lib/lowcode/engine/meta/tree.props.json → es/lowcode/engine/meta/components/tree.json} +155 -202
- package/es/lowcode/engine/meta/components-list.json +121 -127
- package/es/lowcode/engine/meta/drawer.props.default.json +9 -16
- package/es/lowcode/engine/meta/form.props.default.json +4 -11
- 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 -45
- package/es/lowcode/engine/meta/tabs.props.default.json +9 -16
- package/es/lowcode/engine/meta/text.props.default.json +3 -11
- package/es/lowcode/engine/meta/tree.props.default.json +8 -21
- package/es/lowcode/engine/provider/ContextProvider.js +164 -0
- package/es/lowcode/engine/provider/EventBusProvider.js +2 -2
- package/es/lowcode/engine/tools/dataProcess.js +8 -85
- package/es/lowcode/engine/tools/helper.js +0 -96
- package/es/lowcode/engine/tools/lcid.js +16 -0
- package/es/lowcode/index.js +1 -3
- package/es/lowcode/painter/Components.js +0 -0
- package/es/lowcode/painter/Design.js +85 -40
- package/es/lowcode/painter/I18n.js +2 -202
- package/es/lowcode/painter/Outline.js +54 -63
- package/es/lowcode/painter/Panel.js +2 -156
- package/es/lowcode/painter/Ribbon.js +55 -61
- package/es/lowcode/painter/components/PanelItem.js +11 -83
- package/es/lowcode/painter/components/RuleInput.js +7 -9
- package/es/lowcode/painter/index.js +3 -33
- package/es/lowcode/painter/panel-section/LayoutRatio.js +49 -57
- 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 -116
- 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 +12 -45
- package/es/lowcode/painter/style/panel.less +0 -93
- 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 +70 -79
- package/es/lowcode/view/Loading.js +0 -0
- package/es/lowcode/view/Page.js +28 -10
- package/es/lowcode/view/index.js +6 -5
- package/es/lowcode/view/lc-components/Box/index.js +8 -41
- package/es/lowcode/view/lc-components/Button/index.js +7 -75
- package/es/lowcode/view/lc-components/CardList/index.js +0 -0
- package/es/lowcode/view/lc-components/Dialog/index.js +11 -20
- package/es/lowcode/view/lc-components/Dialog/index.less +1 -1
- package/es/lowcode/view/lc-components/Drawer/index.js +9 -38
- 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 +11 -451
- 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 +6 -77
- package/es/lowcode/view/lc-components/Wrapper.js +24 -33
- 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 +4 -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 -7
- 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 +17 -26
- 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 +4 -31
- package/lib/components/LdTree/index.less +1 -6
- 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 -8
- package/lib/lowcode/constants/api-url.js +2 -353
- package/lib/lowcode/constants/event-topics.js +2 -15
- package/lib/lowcode/constants/index.js +2 -4
- 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 -16
- package/{es/lowcode/engine/meta/button.props.json → lib/lowcode/engine/meta/components/button.json} +103 -126
- package/{es/lowcode/engine/meta/cardlist.props.json → lib/lowcode/engine/meta/components/card-list.json} +142 -142
- package/lib/lowcode/engine/meta/{drawer.props.json → components/drawer.json} +142 -142
- package/{es/lowcode/engine/meta/form.props.json → lib/lowcode/engine/meta/components/form.json} +115 -115
- 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/{es/lowcode/engine/meta/imex.props.json → lib/lowcode/engine/meta/components/imex.json} +80 -81
- package/{es/lowcode/engine/meta/jsx.props.json → lib/lowcode/engine/meta/components/jsx.json} +23 -24
- package/lib/lowcode/engine/meta/{layout.props.json → components/layout.json} +106 -107
- package/lib/lowcode/engine/meta/{link.props.json → components/link.json} +110 -111
- package/{es/lowcode/engine/meta/dialog.props.json → lib/lowcode/engine/meta/components/modal.json} +119 -119
- package/lib/lowcode/engine/meta/{section.props.json → components/section.json} +106 -107
- package/{es/lowcode/engine/meta/split.props.json → lib/lowcode/engine/meta/components/split.json} +70 -71
- package/lib/lowcode/{view/lc-components/CardList/meta.json → engine/meta/components/table.json} +30 -12
- package/{es/lowcode/engine/meta/tabs.props.json → lib/lowcode/engine/meta/components/tabs.json} +139 -139
- package/{es/lowcode/engine/meta/text.props.json → lib/lowcode/engine/meta/components/text.json} +64 -65
- package/{es/lowcode/engine/meta/tree.props.json → lib/lowcode/engine/meta/components/tree.json} +155 -202
- package/lib/lowcode/engine/meta/components-list.json +121 -127
- package/lib/lowcode/engine/meta/drawer.props.default.json +9 -16
- package/lib/lowcode/engine/meta/form.props.default.json +4 -11
- 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 -45
- package/lib/lowcode/engine/meta/tabs.props.default.json +9 -16
- package/lib/lowcode/engine/meta/text.props.default.json +3 -11
- package/lib/lowcode/engine/meta/tree.props.default.json +8 -21
- package/lib/lowcode/engine/provider/ContextProvider.js +172 -0
- package/lib/lowcode/engine/provider/EventBusProvider.js +2 -2
- package/lib/lowcode/engine/tools/dataProcess.js +8 -86
- package/lib/lowcode/engine/tools/helper.js +0 -101
- package/lib/lowcode/engine/tools/lcid.js +22 -0
- package/lib/lowcode/index.js +1 -5
- package/lib/lowcode/painter/Components.js +0 -0
- package/lib/lowcode/painter/Design.js +84 -39
- package/lib/lowcode/painter/I18n.js +2 -203
- package/lib/lowcode/painter/Outline.js +53 -62
- package/lib/lowcode/painter/Panel.js +2 -156
- package/lib/lowcode/painter/Ribbon.js +64 -63
- package/lib/lowcode/painter/components/PanelItem.js +11 -84
- package/lib/lowcode/painter/components/RuleInput.js +7 -9
- package/lib/lowcode/painter/index.js +3 -35
- package/lib/lowcode/painter/panel-section/LayoutRatio.js +48 -56
- 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 -116
- 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 +12 -45
- package/lib/lowcode/painter/style/panel.less +0 -93
- 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 +75 -84
- package/lib/lowcode/view/Loading.js +0 -0
- package/lib/lowcode/view/Page.js +27 -9
- package/lib/lowcode/view/index.js +6 -5
- package/lib/lowcode/view/lc-components/Box/index.js +7 -39
- package/lib/lowcode/view/lc-components/Button/index.js +8 -76
- package/lib/lowcode/view/lc-components/CardList/index.js +0 -0
- package/lib/lowcode/view/lc-components/Dialog/index.js +11 -20
- package/lib/lowcode/view/lc-components/Dialog/index.less +1 -1
- package/lib/lowcode/view/lc-components/Drawer/index.js +9 -38
- 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 +11 -451
- 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 +6 -77
- package/lib/lowcode/view/lc-components/Wrapper.js +24 -32
- 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 +4 -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 +8 -6
- package/lib/utils/index.js +0 -0
- package/lowcode.js +0 -0
- package/package.json +8 -22
- package/upload.js +0 -0
- package/utils.js +0 -0
- package/es/components/LDActions/index.js +0 -130
- package/es/components/LDActions/index.less +0 -48
- package/es/locales/zh-CN.js +0 -151
- package/es/lowcode/engine/factory/panel-item-factory/CheckboxStrategy.js +0 -32
- 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/NumberStrategy.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 -53
- package/es/lowcode/engine/factory/panel-item-factory/Strategy.js +0 -21
- package/es/lowcode/engine/factory/panel-item-factory/StringStrategy.js +0 -51
- package/es/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +0 -42
- package/es/lowcode/engine/factory/panel-item-factory/index.js +0 -46
- package/es/lowcode/engine/meta/box.props.default.json +0 -10
- package/es/lowcode/engine/meta/box.props.json +0 -40
- package/es/lowcode/engine/meta/dialog.props.default.json +0 -18
- package/es/lowcode/engine/meta/js-editor/auto-complete.json +0 -135
- package/es/lowcode/engine/meta/local/local.zh-cn.js +0 -97
- package/es/lowcode/engine/meta/table.props.json +0 -411
- package/es/lowcode/engine/provider/ContextProvider/index.js +0 -199
- package/es/lowcode/engine/tools/usePromiseState.js +0 -25
- package/es/lowcode/painter/DesignOperator.js +0 -271
- package/es/lowcode/painter/DesignToolbar.js +0 -91
- package/es/lowcode/painter/components/ActionBindModal.js +0 -180
- package/es/lowcode/painter/components/AdvancePanel.js +0 -68
- package/es/lowcode/painter/components/AttrsPanel.js +0 -134
- package/es/lowcode/painter/components/Collapse.js +0 -95
- package/es/lowcode/painter/components/ColorInput.js +0 -125
- package/es/lowcode/painter/components/FieldSelector.js +0 -44
- package/es/lowcode/painter/components/ListEditor.js +0 -91
- package/es/lowcode/painter/components/NumberInput.js +0 -148
- package/es/lowcode/painter/components/PopConfirm.js +0 -30
- package/es/lowcode/painter/components/PopForm.js +0 -71
- package/es/lowcode/painter/components/SortBox.js +0 -92
- package/es/lowcode/painter/components/code-editor/BaseEditor.js +0 -108
- package/es/lowcode/painter/components/code-editor/CssEditor.js +0 -41
- package/es/lowcode/painter/components/code-editor/FullScreenEditor.js +0 -87
- package/es/lowcode/painter/components/code-editor/JSEditor.js +0 -117
- package/es/lowcode/painter/components/code-editor/JsonEditor.js +0 -41
- package/es/lowcode/painter/components/code-editor/index.js +0 -2
- package/es/lowcode/painter/panel-section/ActionsEditor/ActionEditor.js +0 -154
- package/es/lowcode/painter/panel-section/ActionsEditor/index.js +0 -198
- package/es/lowcode/painter/panel-section/ButtonType.js +0 -39
- package/es/lowcode/painter/panel-section/DataSetSelector.js +0 -61
- 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/ImpExp.js +0 -91
- package/es/lowcode/painter/panel-section/JSEditor.js +0 -48
- package/es/lowcode/painter/panel-section/StylePanel/BackGround.js +0 -61
- package/es/lowcode/painter/panel-section/StylePanel/Border.js +0 -150
- package/es/lowcode/painter/panel-section/StylePanel/BorderRadius.js +0 -87
- package/es/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js +0 -66
- package/es/lowcode/painter/panel-section/StylePanel/BorderSelector.js +0 -66
- package/es/lowcode/painter/panel-section/StylePanel/Display.js +0 -296
- package/es/lowcode/painter/panel-section/StylePanel/DisplaySvg.js +0 -543
- package/es/lowcode/painter/panel-section/StylePanel/Font.js +0 -162
- package/es/lowcode/painter/panel-section/StylePanel/FontEditor.js +0 -386
- package/es/lowcode/painter/panel-section/StylePanel/GapSelector.js +0 -78
- package/es/lowcode/painter/panel-section/StylePanel/HighLightPanel.js +0 -23
- package/es/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js +0 -20
- package/es/lowcode/painter/panel-section/StylePanel/HightLightSvg.js +0 -23
- package/es/lowcode/painter/panel-section/StylePanel/MainPanel.js +0 -96
- package/es/lowcode/painter/panel-section/StylePanel/Margin.js +0 -60
- package/es/lowcode/painter/panel-section/StylePanel/Opacity.js +0 -50
- package/es/lowcode/painter/panel-section/StylePanel/Padding.js +0 -61
- package/es/lowcode/painter/panel-section/StylePanel/Pointer.js +0 -41
- package/es/lowcode/painter/panel-section/StylePanel/Shadow.js +0 -216
- package/es/lowcode/painter/panel-section/StylePanel/Size.js +0 -53
- package/es/lowcode/painter/panel-section/StylePanel/StyleContext.js +0 -148
- package/es/lowcode/painter/panel-section/StylePanel/StyleRow.js +0 -16
- package/es/lowcode/painter/panel-section/StylePanel/WidthHeight.js +0 -51
- package/es/lowcode/painter/panel-section/StylePanel/index.js +0 -29
- package/es/lowcode/painter/panel-section/TabItems.js +0 -207
- package/es/lowcode/painter/panel-section/TableTopFilter.js +0 -306
- package/es/lowcode/painter/panel-section/TableZebra.js +0 -14
- package/es/lowcode/painter/panel-section/WidthHeight.js +0 -39
- package/es/lowcode/painter/services/I18n.js +0 -85
- package/es/lowcode/painter/style/action-bind-modal.less +0 -99
- package/es/lowcode/painter/style/actions-editor.less +0 -16
- package/es/lowcode/painter/style/border-editor.less +0 -36
- package/es/lowcode/painter/style/border-radius-selector.less +0 -43
- package/es/lowcode/painter/style/border-selector.less +0 -40
- package/es/lowcode/painter/style/button-type.less +0 -5
- package/es/lowcode/painter/style/collapse.less +0 -22
- package/es/lowcode/painter/style/color-input.less +0 -19
- package/es/lowcode/painter/style/display.less +0 -17
- package/es/lowcode/painter/style/font-editor.less +0 -9
- 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/impexp.less +0 -7
- package/es/lowcode/painter/style/list-editor.less +0 -59
- package/es/lowcode/painter/style/number-input.less +0 -17
- package/es/lowcode/painter/style/panel-attrs.less +0 -43
- package/es/lowcode/painter/style/pop-confirm.less +0 -17
- package/es/lowcode/painter/style/pop-form.less +0 -20
- package/es/lowcode/painter/style/style-panel.less +0 -37
- 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 -14
- package/es/lowcode/view/lc-components/Box/meta.json +0 -40
- 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 -127
- package/es/lowcode/view/lc-components/Button/style.less +0 -3
- 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 -54
- package/es/lowcode/view/lc-components/Dialog/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Dialog/meta.json +0 -120
- package/es/lowcode/view/lc-components/Drawer/FunctionDesign.js +0 -20
- package/es/lowcode/view/lc-components/Drawer/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Drawer/index.less +0 -7
- package/es/lowcode/view/lc-components/Drawer/meta.json +0 -143
- 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 -116
- 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 -72
- 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 -51
- package/es/lowcode/view/lc-components/Table/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Table/components/TopFilter.js +0 -96
- package/es/lowcode/view/lc-components/Table/meta.json +0 -372
- 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 -140
- 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 -54
- package/es/lowcode/view/lc-components/Tree/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Tree/index.less +0 -2
- package/es/lowcode/view/lc-components/Tree/meta.json +0 -199
- package/lib/components/LDActions/index.js +0 -138
- package/lib/components/LDActions/index.less +0 -48
- package/lib/locales/zh-CN.js +0 -157
- package/lib/lowcode/engine/factory/panel-item-factory/CheckboxStrategy.js +0 -38
- 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/NumberStrategy.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 -59
- package/lib/lowcode/engine/factory/panel-item-factory/Strategy.js +0 -27
- package/lib/lowcode/engine/factory/panel-item-factory/StringStrategy.js +0 -57
- package/lib/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +0 -48
- package/lib/lowcode/engine/factory/panel-item-factory/index.js +0 -52
- package/lib/lowcode/engine/meta/box.props.default.json +0 -10
- package/lib/lowcode/engine/meta/box.props.json +0 -40
- package/lib/lowcode/engine/meta/dialog.props.default.json +0 -18
- package/lib/lowcode/engine/meta/js-editor/auto-complete.json +0 -135
- package/lib/lowcode/engine/meta/local/local.zh-cn.js +0 -103
- package/lib/lowcode/engine/meta/table.props.json +0 -411
- package/lib/lowcode/engine/provider/ContextProvider/index.js +0 -207
- package/lib/lowcode/engine/tools/usePromiseState.js +0 -32
- package/lib/lowcode/painter/DesignOperator.js +0 -278
- package/lib/lowcode/painter/DesignToolbar.js +0 -99
- package/lib/lowcode/painter/components/ActionBindModal.js +0 -188
- package/lib/lowcode/painter/components/AdvancePanel.js +0 -76
- package/lib/lowcode/painter/components/AttrsPanel.js +0 -142
- package/lib/lowcode/painter/components/Collapse.js +0 -102
- package/lib/lowcode/painter/components/ColorInput.js +0 -132
- package/lib/lowcode/painter/components/FieldSelector.js +0 -52
- package/lib/lowcode/painter/components/ListEditor.js +0 -97
- package/lib/lowcode/painter/components/NumberInput.js +0 -155
- package/lib/lowcode/painter/components/PopConfirm.js +0 -36
- package/lib/lowcode/painter/components/PopForm.js +0 -77
- package/lib/lowcode/painter/components/SortBox.js +0 -99
- package/lib/lowcode/painter/components/code-editor/BaseEditor.js +0 -115
- package/lib/lowcode/painter/components/code-editor/CssEditor.js +0 -48
- package/lib/lowcode/painter/components/code-editor/FullScreenEditor.js +0 -94
- package/lib/lowcode/painter/components/code-editor/JSEditor.js +0 -128
- package/lib/lowcode/painter/components/code-editor/JsonEditor.js +0 -48
- package/lib/lowcode/painter/components/code-editor/index.js +0 -20
- package/lib/lowcode/painter/panel-section/ActionsEditor/ActionEditor.js +0 -162
- package/lib/lowcode/painter/panel-section/ActionsEditor/index.js +0 -206
- package/lib/lowcode/painter/panel-section/ButtonType.js +0 -46
- package/lib/lowcode/painter/panel-section/DataSetSelector.js +0 -69
- 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/ImpExp.js +0 -98
- package/lib/lowcode/painter/panel-section/JSEditor.js +0 -56
- package/lib/lowcode/painter/panel-section/StylePanel/BackGround.js +0 -68
- package/lib/lowcode/painter/panel-section/StylePanel/Border.js +0 -158
- package/lib/lowcode/painter/panel-section/StylePanel/BorderRadius.js +0 -95
- package/lib/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js +0 -73
- package/lib/lowcode/painter/panel-section/StylePanel/BorderSelector.js +0 -73
- package/lib/lowcode/painter/panel-section/StylePanel/Display.js +0 -303
- package/lib/lowcode/painter/panel-section/StylePanel/DisplaySvg.js +0 -550
- package/lib/lowcode/painter/panel-section/StylePanel/Font.js +0 -170
- package/lib/lowcode/painter/panel-section/StylePanel/FontEditor.js +0 -392
- package/lib/lowcode/painter/panel-section/StylePanel/GapSelector.js +0 -85
- package/lib/lowcode/painter/panel-section/StylePanel/HighLightPanel.js +0 -29
- package/lib/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js +0 -26
- package/lib/lowcode/painter/panel-section/StylePanel/HightLightSvg.js +0 -29
- package/lib/lowcode/painter/panel-section/StylePanel/MainPanel.js +0 -103
- package/lib/lowcode/painter/panel-section/StylePanel/Margin.js +0 -67
- package/lib/lowcode/painter/panel-section/StylePanel/Opacity.js +0 -57
- package/lib/lowcode/painter/panel-section/StylePanel/Padding.js +0 -68
- package/lib/lowcode/painter/panel-section/StylePanel/Pointer.js +0 -48
- package/lib/lowcode/painter/panel-section/StylePanel/Shadow.js +0 -224
- package/lib/lowcode/painter/panel-section/StylePanel/Size.js +0 -59
- package/lib/lowcode/painter/panel-section/StylePanel/StyleContext.js +0 -159
- package/lib/lowcode/painter/panel-section/StylePanel/StyleRow.js +0 -22
- package/lib/lowcode/painter/panel-section/StylePanel/WidthHeight.js +0 -58
- package/lib/lowcode/painter/panel-section/StylePanel/index.js +0 -35
- package/lib/lowcode/painter/panel-section/TabItems.js +0 -215
- package/lib/lowcode/painter/panel-section/TableTopFilter.js +0 -314
- package/lib/lowcode/painter/panel-section/TableZebra.js +0 -21
- package/lib/lowcode/painter/panel-section/WidthHeight.js +0 -46
- package/lib/lowcode/painter/services/I18n.js +0 -95
- package/lib/lowcode/painter/style/action-bind-modal.less +0 -99
- package/lib/lowcode/painter/style/actions-editor.less +0 -16
- package/lib/lowcode/painter/style/border-editor.less +0 -36
- package/lib/lowcode/painter/style/border-radius-selector.less +0 -43
- package/lib/lowcode/painter/style/border-selector.less +0 -40
- package/lib/lowcode/painter/style/button-type.less +0 -5
- package/lib/lowcode/painter/style/collapse.less +0 -22
- package/lib/lowcode/painter/style/color-input.less +0 -19
- package/lib/lowcode/painter/style/display.less +0 -17
- package/lib/lowcode/painter/style/font-editor.less +0 -9
- 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/impexp.less +0 -7
- package/lib/lowcode/painter/style/list-editor.less +0 -59
- package/lib/lowcode/painter/style/number-input.less +0 -17
- package/lib/lowcode/painter/style/panel-attrs.less +0 -43
- package/lib/lowcode/painter/style/pop-confirm.less +0 -17
- package/lib/lowcode/painter/style/pop-form.less +0 -20
- package/lib/lowcode/painter/style/style-panel.less +0 -37
- 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 -14
- package/lib/lowcode/view/lc-components/Box/meta.json +0 -40
- 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 -127
- package/lib/lowcode/view/lc-components/Button/style.less +0 -3
- 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 -62
- package/lib/lowcode/view/lc-components/Dialog/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Dialog/meta.json +0 -120
- package/lib/lowcode/view/lc-components/Drawer/FunctionDesign.js +0 -27
- package/lib/lowcode/view/lc-components/Drawer/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Drawer/index.less +0 -7
- package/lib/lowcode/view/lc-components/Drawer/meta.json +0 -143
- 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 -116
- 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 -79
- 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 -59
- package/lib/lowcode/view/lc-components/Table/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Table/components/TopFilter.js +0 -104
- package/lib/lowcode/view/lc-components/Table/meta.json +0 -372
- 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 -140
- 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 -62
- package/lib/lowcode/view/lc-components/Tree/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Tree/index.less +0 -2
- package/lib/lowcode/view/lc-components/Tree/meta.json +0 -199
|
@@ -1,170 +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 _createForOfIteratorHelper2 = _interopRequireDefault(require("@babel/runtime/helpers/createForOfIteratorHelper"));
|
|
10
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
11
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
12
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
13
|
-
var _utils = require("@luck-design-biz/base/utils");
|
|
14
|
-
var _antd = require("luck-design/antd");
|
|
15
|
-
var _FontEditor = _interopRequireDefault(require("./FontEditor"));
|
|
16
|
-
var _StyleContext = require("./StyleContext");
|
|
17
|
-
var _HighLightPanel = _interopRequireDefault(require("./HighLightPanel"));
|
|
18
|
-
var Option = _antd.Select.Option;
|
|
19
|
-
var textRelatedStyles = ['font-weight', 'font-style', 'color', 'font-size', 'line-height', 'text-align', 'text-decoration'];
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* 文字设置组件
|
|
23
|
-
*/
|
|
24
|
-
function _default() {
|
|
25
|
-
var style = (0, _StyleContext.useStyle)();
|
|
26
|
-
var dispatch = (0, _StyleContext.useStyleDispatch)();
|
|
27
|
-
var _useState = (0, _react.useState)(determineSelected(style)),
|
|
28
|
-
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
29
|
-
curSelected = _useState2[0],
|
|
30
|
-
setCurSelected = _useState2[1];
|
|
31
|
-
var _useState3 = (0, _react.useState)(curSelected !== 'custom'),
|
|
32
|
-
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
33
|
-
collapsed = _useState4[0],
|
|
34
|
-
setCollapsed = _useState4[1];
|
|
35
|
-
var handleChange = function handleChange(value) {
|
|
36
|
-
if (value == 'custom') {
|
|
37
|
-
setCollapsed(false);
|
|
38
|
-
}
|
|
39
|
-
if (value == 'default') {
|
|
40
|
-
textRelatedStyles.forEach(function (item) {
|
|
41
|
-
delete style[item];
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
var newStyle = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, style), presetStyles[value]);
|
|
45
|
-
setCurSelected(value);
|
|
46
|
-
dispatch({
|
|
47
|
-
type: 'new',
|
|
48
|
-
payload: newStyle
|
|
49
|
-
});
|
|
50
|
-
};
|
|
51
|
-
return /*#__PURE__*/_react.default.createElement(_HighLightPanel.default, {
|
|
52
|
-
addon: /*#__PURE__*/_react.default.createElement(_FontEditor.default, null),
|
|
53
|
-
collapsed: collapsed,
|
|
54
|
-
highLightFields: textRelatedStyles,
|
|
55
|
-
label: (0, _utils.formatMessage)({
|
|
56
|
-
id: 'luckda.lowcode.painter.panel-section.style-panel.font',
|
|
57
|
-
label: '文字'
|
|
58
|
-
})
|
|
59
|
-
}, /*#__PURE__*/_react.default.createElement(_antd.Select, {
|
|
60
|
-
size: "small",
|
|
61
|
-
onChange: handleChange,
|
|
62
|
-
value: curSelected
|
|
63
|
-
}, /*#__PURE__*/_react.default.createElement(Option, {
|
|
64
|
-
value: "h1"
|
|
65
|
-
}, (0, _utils.formatMessage)({
|
|
66
|
-
id: 'luckda.lowcode.painter.panel-section.style-panel.font.h1',
|
|
67
|
-
label: '一级标题'
|
|
68
|
-
})), /*#__PURE__*/_react.default.createElement(Option, {
|
|
69
|
-
value: "h2"
|
|
70
|
-
}, (0, _utils.formatMessage)({
|
|
71
|
-
id: 'luckda.lowcode.painter.panel-section.style-panel.font.h2',
|
|
72
|
-
label: '二级标题'
|
|
73
|
-
})), /*#__PURE__*/_react.default.createElement(Option, {
|
|
74
|
-
value: "h3"
|
|
75
|
-
}, (0, _utils.formatMessage)({
|
|
76
|
-
id: 'luckda.lowcode.painter.panel-section.style-panel.font.h3',
|
|
77
|
-
label: '三级标题'
|
|
78
|
-
})), /*#__PURE__*/_react.default.createElement(Option, {
|
|
79
|
-
value: "paragraph"
|
|
80
|
-
}, (0, _utils.formatMessage)({
|
|
81
|
-
id: 'luckda.lowcode.painter.panel-section.style-panel.font.paragraph',
|
|
82
|
-
label: '段落'
|
|
83
|
-
})), /*#__PURE__*/_react.default.createElement(Option, {
|
|
84
|
-
value: "default"
|
|
85
|
-
}, (0, _utils.formatMessage)({
|
|
86
|
-
id: 'luckda.lowcode.painter.panel-section.style-panel.font.default',
|
|
87
|
-
label: '无'
|
|
88
|
-
})), /*#__PURE__*/_react.default.createElement(Option, {
|
|
89
|
-
value: "custom"
|
|
90
|
-
}, (0, _utils.formatMessage)({
|
|
91
|
-
id: 'luckda.lowcode.painter.panel-section.style-panel.font.custom',
|
|
92
|
-
label: '自定义'
|
|
93
|
-
}))));
|
|
94
|
-
}
|
|
95
|
-
var presetStyles = {
|
|
96
|
-
h1: {
|
|
97
|
-
'font-weight': 700,
|
|
98
|
-
'font-size': '20px',
|
|
99
|
-
'line-height': '30px'
|
|
100
|
-
},
|
|
101
|
-
h2: {
|
|
102
|
-
'font-weight': 700,
|
|
103
|
-
'font-size': '16px',
|
|
104
|
-
'line-height': '24px'
|
|
105
|
-
},
|
|
106
|
-
h3: {
|
|
107
|
-
'font-weight': 700,
|
|
108
|
-
'font-size': '14px',
|
|
109
|
-
'line-height': '22px'
|
|
110
|
-
},
|
|
111
|
-
paragraph: {
|
|
112
|
-
'font-weight': 'normal',
|
|
113
|
-
'font-size': '14px',
|
|
114
|
-
'line-height': '22px'
|
|
115
|
-
},
|
|
116
|
-
default: {},
|
|
117
|
-
custom: {}
|
|
118
|
-
};
|
|
119
|
-
function determineSelected(style) {
|
|
120
|
-
// 检查style是否包含任何与文字相关的样式属性
|
|
121
|
-
var styleProps = Object.keys(style);
|
|
122
|
-
var containsTextRelatedProps = styleProps.some(function (prop) {
|
|
123
|
-
return textRelatedStyles.includes(prop);
|
|
124
|
-
});
|
|
125
|
-
if (!containsTextRelatedProps) {
|
|
126
|
-
return 'default';
|
|
127
|
-
}
|
|
128
|
-
var _loop = function _loop() {
|
|
129
|
-
var key = _Object$keys[_i];
|
|
130
|
-
if (key === 'default' || key === 'custom') return 0; // continue
|
|
131
|
-
var preset = presetStyles[key];
|
|
132
|
-
var isPresetMatch = true;
|
|
133
|
-
var _iterator = (0, _createForOfIteratorHelper2.default)(textRelatedStyles),
|
|
134
|
-
_step;
|
|
135
|
-
try {
|
|
136
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
137
|
-
var prop = _step.value;
|
|
138
|
-
// 将两边的值都转换为字符串再比较
|
|
139
|
-
var styleValue = String(style[prop]);
|
|
140
|
-
var presetValue = String(preset[prop]);
|
|
141
|
-
if (style[prop] !== undefined && preset[prop] !== undefined && styleValue !== presetValue) {
|
|
142
|
-
isPresetMatch = false;
|
|
143
|
-
break;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
} catch (err) {
|
|
147
|
-
_iterator.e(err);
|
|
148
|
-
} finally {
|
|
149
|
-
_iterator.f();
|
|
150
|
-
}
|
|
151
|
-
if (isPresetMatch) {
|
|
152
|
-
// 检查style中是否有额外的与文字相关的属性不在当前preset中
|
|
153
|
-
var isExtraPropsInStyle = styleProps.some(function (prop) {
|
|
154
|
-
return textRelatedStyles.includes(prop) && !(prop in preset);
|
|
155
|
-
});
|
|
156
|
-
if (!isExtraPropsInStyle) {
|
|
157
|
-
return {
|
|
158
|
-
v: key
|
|
159
|
-
}; // 找到完全匹配的预设
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
},
|
|
163
|
-
_ret;
|
|
164
|
-
for (var _i = 0, _Object$keys = Object.keys(presetStyles); _i < _Object$keys.length; _i++) {
|
|
165
|
-
_ret = _loop();
|
|
166
|
-
if (_ret === 0) continue;
|
|
167
|
-
if (_ret) return _ret.v;
|
|
168
|
-
}
|
|
169
|
-
return 'custom';
|
|
170
|
-
}
|
|
@@ -1,392 +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 _utils = require("@luck-design-biz/base/utils");
|
|
10
|
-
var _antd = require("luck-design/antd");
|
|
11
|
-
var _StyleContext = require("./StyleContext");
|
|
12
|
-
var _uiDesign = require("@luck-helper/ui-design");
|
|
13
|
-
var _ColorInput = _interopRequireDefault(require("../../components/ColorInput"));
|
|
14
|
-
var _stylePanel = _interopRequireDefault(require("../../style/style-panel.less"));
|
|
15
|
-
var _fontEditor = _interopRequireDefault(require("../../style/font-editor.less"));
|
|
16
|
-
var _StyleRow = _interopRequireDefault(require("./StyleRow"));
|
|
17
|
-
var _Size = _interopRequireDefault(require("./Size"));
|
|
18
|
-
var _HightLightSvg = _interopRequireDefault(require("./HightLightSvg"));
|
|
19
|
-
var Option = _antd.Select.Option;
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* 文字详细编辑组件
|
|
23
|
-
*/
|
|
24
|
-
function _default() {
|
|
25
|
-
var _style$fontWeight;
|
|
26
|
-
var style = (0, _StyleContext.useStyle)();
|
|
27
|
-
var dispatch = (0, _StyleContext.useStyleDispatch)();
|
|
28
|
-
var handleChange = function handleChange(field, value) {
|
|
29
|
-
dispatch({
|
|
30
|
-
type: 'edit',
|
|
31
|
-
payload: {
|
|
32
|
-
id: field,
|
|
33
|
-
value: value
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
};
|
|
37
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
38
|
-
className: _fontEditor.default['lc-painter-panel-section-style-panel-font-edit']
|
|
39
|
-
}, /*#__PURE__*/_react.default.createElement(_StyleRow.default, null, /*#__PURE__*/_react.default.createElement(_antd.Tooltip, {
|
|
40
|
-
placement: "top",
|
|
41
|
-
title: (0, _utils.formatMessage)({
|
|
42
|
-
id: 'luckda.lowcode.painter.panel-section.style-panel.font.weight',
|
|
43
|
-
label: '字重'
|
|
44
|
-
})
|
|
45
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
46
|
-
className: _stylePanel.default['svg-label']
|
|
47
|
-
}, /*#__PURE__*/_react.default.createElement(_HightLightSvg.default, {
|
|
48
|
-
field: "font-weight",
|
|
49
|
-
width: "20",
|
|
50
|
-
height: "20",
|
|
51
|
-
viewBox: "0 0 30 17"
|
|
52
|
-
}, /*#__PURE__*/_react.default.createElement("path", {
|
|
53
|
-
d: "M10.296,10.288 L4.944,10.288 L3.408,14.152 C3.3279996,14.344001 3.288,14.5039994 3.288,14.632 C3.288,14.9680017 3.77599512,15.2079993 4.752,15.352 C4.86400056,15.3680001 4.9399998,15.4119996 4.98,15.484 C5.0200002,15.5560004 5.04,15.6399995 5.04,15.736 C5.04,15.8320005 5.02400016,15.9599992 4.992,16.12 C4.55999784,16.0879998 4.1040024,16.0600001 3.624,16.036 C3.1439976,16.0119999 2.67200232,16 2.208,16 C1.8879984,16 1.56000168,16.0079999 1.224,16.024 C0.88799832,16.0400001 0.53600184,16.0719998 0.168,16.12 C0.13599984,15.9919994 0.12,15.8640006 0.12,15.736 C0.12,15.6239994 0.1399998,15.5280004 0.18,15.448 C0.2200002,15.3679996 0.30399936,15.3200001 0.432,15.304 C0.92800248,15.2239996 1.29999876,15.1240006 1.548,15.004 C1.79600124,14.8839994 1.97599944,14.6960013 2.088,14.44 L7.872,0.52 C7.98400056,0.24799864 8.13599904,0.112 8.328,0.112 C8.39200032,0.112 8.48799936,0.12799984 8.616,0.16 L14.424,14.512 C14.5200005,14.7360011 14.7359983,14.9119994 15.072,15.04 C15.4080017,15.1680006 15.7359984,15.2559998 16.056,15.304 C16.1520005,15.3360002 16.2279997,15.3799997 16.284,15.436 C16.3400003,15.4920003 16.368,15.5919993 16.368,15.736 C16.368,15.8320005 16.3520002,15.9599992 16.32,16.12 C15.8079974,16.0879998 15.3040025,16.0600001 14.808,16.036 C14.3119975,16.0119999 13.8480022,16 13.416,16 C12.9679978,16 12.4560029,16.0119999 11.88,16.036 C11.3039971,16.0600001 10.7840023,16.0879998 10.32,16.12 C10.2879998,15.9599992 10.272,15.8320005 10.272,15.736 C10.272,15.5919993 10.2999997,15.4920003 10.356,15.436 C10.4120003,15.3799997 10.4639998,15.352 10.512,15.352 C10.9280021,15.2719996 11.2639987,15.1800005 11.52,15.076 C11.7760013,14.9719995 11.904,14.816001 11.904,14.608 C11.904,14.5119995 11.8720003,14.3920007 11.808,14.248 L10.296,10.288 Z M9.912,9.304 L7.68,3.424 L5.352,9.304 L9.912,9.304 Z",
|
|
54
|
-
opacity: "0.7"
|
|
55
|
-
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
56
|
-
d: "M16.296,10.288 L10.944,10.288 L9.408,14.152 C9.3279996,14.344001 9.288,14.5039994 9.288,14.632 C9.288,14.9680017 9.77599512,15.2079993 10.752,15.352 C10.8640006,15.3680001 10.9399998,15.4119996 10.98,15.484 C11.0200002,15.5560004 11.04,15.6399995 11.04,15.736 C11.04,15.8320005 11.0240002,15.9599992 10.992,16.12 C10.5599978,16.0879998 10.1040024,16.0600001 9.624,16.036 C9.1439976,16.0119999 8.67200232,16 8.208,16 C7.8879984,16 7.56000168,16.0079999 7.224,16.024 C6.88799832,16.0400001 6.53600184,16.0719998 6.168,16.12 C6.13599984,15.9919994 6.12,15.8640006 6.12,15.736 C6.12,15.6239994 6.1399998,15.5280004 6.18,15.448 C6.2200002,15.3679996 6.30399936,15.3200001 6.432,15.304 C6.92800248,15.2239996 7.29999876,15.1240006 7.548,15.004 C7.79600124,14.8839994 7.97599944,14.6960013 8.088,14.44 L13.872,0.52 C13.9840006,0.24799864 14.135999,0.112 14.328,0.112 C14.3920003,0.112 14.4879994,0.12799984 14.616,0.16 L20.424,14.512 C20.5200005,14.7360011 20.7359983,14.9119994 21.072,15.04 C21.4080017,15.1680006 21.7359984,15.2559998 22.056,15.304 C22.1520005,15.3360002 22.2279997,15.3799997 22.284,15.436 C22.3400003,15.4920003 22.368,15.5919993 22.368,15.736 C22.368,15.8320005 22.3520002,15.9599992 22.32,16.12 C21.8079974,16.0879998 21.3040025,16.0600001 20.808,16.036 C20.3119975,16.0119999 19.8480022,16 19.416,16 C18.9679978,16 18.4560029,16.0119999 17.88,16.036 C17.3039971,16.0600001 16.7840023,16.0879998 16.32,16.12 C16.2879998,15.9599992 16.272,15.8320005 16.272,15.736 C16.272,15.5919993 16.2999997,15.4920003 16.356,15.436 C16.4120003,15.3799997 16.4639998,15.352 16.512,15.352 C16.9280021,15.2719996 17.2639987,15.1800005 17.52,15.076 C17.7760013,14.9719995 17.904,14.816001 17.904,14.608 C17.904,14.5119995 17.8720003,14.3920007 17.808,14.248 L16.296,10.288 Z M15.912,9.304 L13.68,3.424 L11.352,9.304 L15.912,9.304 Z",
|
|
57
|
-
opacity: "0.9"
|
|
58
|
-
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
59
|
-
d: "M22.96,10.72 L17.92,10.72 L16.672,14.056 C16.6239998,14.1360004 16.5920001,14.2239995 16.576,14.32 C16.5599999,14.4160005 16.552,14.4879998 16.552,14.536 C16.552,14.7120009 16.6359992,14.8559994 16.804,14.968 C16.9720008,15.0800006 17.3119974,15.1759996 17.824,15.256 C18.0480011,15.2880002 18.16,15.4399986 18.16,15.712 C18.16,15.8240006 18.1440002,15.9599992 18.112,16.12 C17.6799978,16.0879998 17.2240024,16.0600001 16.744,16.036 C16.2639976,16.0119999 15.7920023,16 15.328,16 C15.0079984,16 14.6720018,16.0079999 14.32,16.024 C13.9679982,16.0400001 13.5760022,16.0719998 13.144,16.12 C13.1119998,16.0559997 13.096,15.9840004 13.096,15.904 L13.096,15.712 C13.096,15.4079985 13.199999,15.2480001 13.408,15.232 C13.9040025,15.1359995 14.2599989,15.0320006 14.476,14.92 C14.6920011,14.8079994 14.8639994,14.6160014 14.992,14.344 L20.776,0.52 C20.9040006,0.24799864 21.0959987,0.112 21.352,0.112 C21.4320004,0.112 21.5119996,0.11599996 21.592,0.124 C21.6720004,0.13200004 21.7599995,0.14399992 21.856,0.16 L27.64,14.416 C27.7360005,14.6560012 27.9199986,14.8359994 28.192,14.956 C28.4640014,15.0760006 28.7599984,15.1599998 29.08,15.208 C29.3200012,15.2560002 29.44,15.4159986 29.44,15.688 C29.44,15.8160006 29.4240002,15.9599992 29.392,16.12 C28.8799974,16.0879998 28.3760025,16.0600001 27.88,16.036 C27.3839975,16.0119999 26.9200022,16 26.488,16 C26.2639989,16 25.9920016,16.004 25.672,16.012 C25.3519984,16.02 25.0240017,16.0319999 24.688,16.048 C24.3519983,16.0640001 24.0200016,16.076 23.692,16.084 C23.3639984,16.092 23.0880011,16.1039999 22.864,16.12 C22.8319998,16.0559997 22.816,15.9840004 22.816,15.904 L22.816,15.712 C22.816,15.5679993 22.8439997,15.4600004 22.9,15.388 C22.9560003,15.3159996 23.0159997,15.2720001 23.08,15.256 C23.4960021,15.1759996 23.803999,15.0840005 24.004,14.98 C24.204001,14.8759995 24.304,14.720001 24.304,14.512 C24.304,14.4159995 24.2800002,14.2960007 24.232,14.152 L22.96,10.72 Z M22.504,9.52 L20.464,4.12 L18.376,9.52 L22.504,9.52 Z"
|
|
60
|
-
})))), /*#__PURE__*/_react.default.createElement(_antd.Select, {
|
|
61
|
-
size: "small",
|
|
62
|
-
style: {
|
|
63
|
-
flex: 1
|
|
64
|
-
},
|
|
65
|
-
onChange: function onChange(value) {
|
|
66
|
-
return handleChange('font-weight', value);
|
|
67
|
-
},
|
|
68
|
-
value: (_style$fontWeight = style['font-weight']) !== null && _style$fontWeight !== void 0 ? _style$fontWeight : 'normal'
|
|
69
|
-
}, /*#__PURE__*/_react.default.createElement(Option, {
|
|
70
|
-
value: "100"
|
|
71
|
-
}, "100 Thin"), /*#__PURE__*/_react.default.createElement(Option, {
|
|
72
|
-
value: "200"
|
|
73
|
-
}, "100 Extra Light"), /*#__PURE__*/_react.default.createElement(Option, {
|
|
74
|
-
value: "300"
|
|
75
|
-
}, "100 Light"), /*#__PURE__*/_react.default.createElement(Option, {
|
|
76
|
-
value: "normal"
|
|
77
|
-
}, "400 Normal"), /*#__PURE__*/_react.default.createElement(Option, {
|
|
78
|
-
value: "500"
|
|
79
|
-
}, "500 Medium"), /*#__PURE__*/_react.default.createElement(Option, {
|
|
80
|
-
value: "600"
|
|
81
|
-
}, "600 Semi Bold"), /*#__PURE__*/_react.default.createElement(Option, {
|
|
82
|
-
value: "bold"
|
|
83
|
-
}, "700 Bold"), /*#__PURE__*/_react.default.createElement(Option, {
|
|
84
|
-
value: "800"
|
|
85
|
-
}, "800 Extra Bold"), /*#__PURE__*/_react.default.createElement(Option, {
|
|
86
|
-
value: "900"
|
|
87
|
-
}, "900 Black"), /*#__PURE__*/_react.default.createElement(Option, {
|
|
88
|
-
value: "lighter"
|
|
89
|
-
}, "Lighter"), /*#__PURE__*/_react.default.createElement(Option, {
|
|
90
|
-
value: "bolder"
|
|
91
|
-
}, "Bolder")), /*#__PURE__*/_react.default.createElement(_antd.Tooltip, {
|
|
92
|
-
placement: "top",
|
|
93
|
-
title: (0, _utils.formatMessage)({
|
|
94
|
-
id: 'luckda.lowcode.painter.panel-section.style-panel.font.style',
|
|
95
|
-
label: '样式'
|
|
96
|
-
})
|
|
97
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
98
|
-
className: _stylePanel.default['svg-label']
|
|
99
|
-
}, /*#__PURE__*/_react.default.createElement(_HightLightSvg.default, {
|
|
100
|
-
field: "font-style",
|
|
101
|
-
width: "20",
|
|
102
|
-
height: "20",
|
|
103
|
-
viewBox: "0 0 29 18"
|
|
104
|
-
}, /*#__PURE__*/_react.default.createElement("path", {
|
|
105
|
-
d: "M16.2109375,16.4257812 L16.0234375,17.1171875 C15.6171855,17.0859373 15.2109395,17.0625001 14.8046875,17.046875 C14.1640593,17.0156248 13.5546904,17 12.9765625,17 C12.0078077,17 10.6953208,17.0390621 9.0390625,17.1171875 L9.1796875,16.4257812 C10.5546944,16.1445298 11.3320304,15.8398454 11.5117188,15.5117188 C11.6132818,15.3476554 11.7187495,14.8750039 11.828125,14.09375 C11.9375005,13.3124961 12.0156248,12.6093781 12.0625,11.984375 C11.1406204,11.9531248 9.99610059,11.9375 8.62890625,11.9375 C8.0195282,11.9375 7.50781457,11.9531248 7.09375,11.984375 C6.99999953,12.1093756 6.93164084,12.1992185 6.88867187,12.2539062 C6.84570291,12.308594 6.78515664,12.3867182 6.70703125,12.4882812 C6.54296793,12.7070323 6.18554963,13.1914025 5.63476562,13.9414062 C5.08398162,14.69141 4.79687512,15.0859373 4.7734375,15.125 C4.51562371,15.4453141 4.38671875,15.6796868 4.38671875,15.828125 C4.38671875,15.9453131 4.4414057,16.0351559 4.55078125,16.0976562 C4.6601568,16.1601566 4.98827852,16.2460932 5.53515625,16.3554688 C5.76953242,16.402344 5.89062496,16.4257812 5.8984375,16.4257812 L5.69921875,17.1171875 C5.4492175,17.1015624 5.02734672,17.0781252 4.43359375,17.046875 C3.8242157,17.0156248 3.32812691,17 2.9453125,17 C2.42968492,17 1.53516262,17.0390621 0.26171875,17.1171875 L0.47265625,16.4257812 C1.2617227,16.2851555 1.80663912,16.1230478 2.10742188,15.9394531 C2.40820463,15.7558585 2.81640367,15.3320346 3.33203125,14.6679688 C3.42578172,14.5351556 3.63085779,14.2675801 3.94726562,13.8652344 C4.26367346,13.4628886 4.54882686,13.0976579 4.80273437,12.7695312 C5.05664189,12.4414046 5.29296766,12.1406264 5.51171875,11.8671875 L7.0703125,9.8984375 C7.80469117,8.97655789 8.34179518,8.3007834 8.68164062,7.87109375 C9.02148607,7.4414041 9.37695127,6.98633053 9.74804688,6.50585938 C10.1191425,6.02538822 10.6230437,5.35742615 11.2597656,4.50195312 C11.8964876,3.6464801 12.7578071,2.48438234 13.84375,1.015625 C13.8984378,0.960937227 13.976562,0.863281953 14.078125,0.72265625 C14.179688,0.582030547 14.2460936,0.488281484 14.2773437,0.44140625 L15.0625,0.44140625 C15.0546875,0.566406875 15.0175785,0.98241834 14.9511719,1.68945312 C14.8847653,2.39648791 14.8281252,3.00390371 14.78125,3.51171875 C14.7265622,3.98828363 14.6640629,4.57421527 14.59375,5.26953125 C14.5234371,5.96484723 14.4687502,6.55663818 14.4296875,7.04492188 C14.3906248,7.53320557 14.3417972,8.17577727 14.2832031,8.97265625 C14.2246091,9.76953523 14.1406255,10.8710867 14.03125,12.2773438 C13.9218745,14.0429776 13.8671875,15.05078 13.8671875,15.3007812 C13.8671875,15.4726571 13.9023434,15.6074214 13.9726562,15.7050781 C14.0429691,15.8027349 14.2324203,15.9062495 14.5410156,16.015625 C14.8496109,16.1250005 15.2968721,16.2382807 15.8828125,16.3554688 C16.1171887,16.402344 16.2265626,16.4257812 16.2109375,16.4257812 L16.2109375,16.4257812 Z M7.9140625,10.859375 L12.1796875,10.859375 L12.90625,4.1796875 L12.859375,4.1328125 L7.9140625,10.859375 Z M27.6132812,14.140625 L28,14.6445312 C27.5312477,15.1132836 27.0175809,15.5624979 26.4589844,15.9921875 C25.9003878,16.4218771 25.4062521,16.7539051 24.9765625,16.9882812 C24.5468729,17.2226574 24.2421884,17.3398438 24.0625,17.3398438 C23.6953107,17.3398438 23.5117188,17.1132835 23.5117188,16.6601562 C23.5117188,16.4414052 23.5761712,16.0800806 23.7050781,15.5761719 C23.833985,15.0722631 23.9218748,14.7851566 23.96875,14.7148438 C24.0390629,14.4335923 24.1171871,14.1640638 24.203125,13.90625 L24.15625,13.859375 C23.4999967,14.6953167 22.7656291,15.4843713 21.953125,16.2265625 C21.1406209,16.9687537 20.4023471,17.3398438 19.7382812,17.3398438 C19.2148411,17.3398438 18.7617207,17.0839869 18.3789062,16.5722656 C17.9960918,16.0605443 17.8046875,15.3164111 17.8046875,14.3398438 C17.8046875,13.3398388 18.0136698,12.3476612 18.4316406,11.3632812 C18.8496115,10.3789013 19.4257776,9.49219145 20.1601562,8.703125 C20.8945349,7.91405855 21.7421827,7.28320549 22.703125,6.81054688 C23.6640673,6.33788826 24.6757759,6.1015625 25.7382812,6.1015625 C25.8632819,6.1015625 26.2441374,6.14062461 26.8808594,6.21875 C27.5175813,6.29687539 27.882812,6.33984371 27.9765625,6.34765625 L28.1171875,6.62890625 C27.6640602,7.56641094 27.2382832,8.63671273 26.8398438,9.83984375 C26.4414043,11.0429748 26.1230481,12.1249952 25.8847656,13.0859375 C25.6464832,14.0468798 25.5273438,14.6171866 25.5273438,14.796875 C25.5273438,15.1171891 25.624999,15.2773438 25.8203125,15.2773438 C26.0703138,15.2773438 26.5820274,14.9726593 27.3554688,14.3632812 C27.4804694,14.2382806 27.566406,14.1640626 27.6132812,14.140625 L27.6132812,14.140625 Z M25.9140625,7.42578125 C25.312497,7.23046777 24.8398455,7.1328125 24.4960938,7.1328125 C23.8554655,7.1328125 23.2460966,7.33007615 22.6679688,7.72460938 C22.0898409,8.1191426 21.5781272,8.6542935 21.1328125,9.33007812 C20.6874978,10.0058628 20.3359388,10.7617146 20.078125,11.5976562 C19.8203112,12.4335979 19.6914062,13.2578084 19.6914062,14.0703125 C19.6914062,14.6875031 19.7949208,15.1425767 20.0019531,15.4355469 C20.2089854,15.7285171 20.4179677,15.875 20.6289062,15.875 C20.9335953,15.875 21.4003875,15.6171901 22.0292969,15.1015625 C22.6582063,14.5859349 23.2421848,13.9218791 23.78125,13.109375 C24.1328143,12.60156 24.4257801,12.0332063 24.6601562,11.4042969 C24.8945324,10.7753875 25.2304666,9.710945 25.6679688,8.2109375 C25.6835938,8.1718748 25.724609,8.04687605 25.7910156,7.8359375 C25.8574222,7.62499895 25.8984374,7.48828156 25.9140625,7.42578125 L25.9140625,7.42578125 Z"
|
|
106
|
-
})))), /*#__PURE__*/_react.default.createElement(_uiDesign.Segmented, {
|
|
107
|
-
options: fontOptions,
|
|
108
|
-
onChange: function onChange(value) {
|
|
109
|
-
return handleChange('font-style', value);
|
|
110
|
-
},
|
|
111
|
-
value: style['font-style']
|
|
112
|
-
})), /*#__PURE__*/_react.default.createElement(_StyleRow.default, null, /*#__PURE__*/_react.default.createElement(_antd.Tooltip, {
|
|
113
|
-
placement: "top",
|
|
114
|
-
title: (0, _utils.formatMessage)({
|
|
115
|
-
id: 'luckda.lowcode.painter.panel-section.style-panel.font.color',
|
|
116
|
-
label: '字体颜色'
|
|
117
|
-
})
|
|
118
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
119
|
-
className: _stylePanel.default['svg-label']
|
|
120
|
-
}, /*#__PURE__*/_react.default.createElement(_HightLightSvg.default, {
|
|
121
|
-
field: "color",
|
|
122
|
-
width: "16px",
|
|
123
|
-
height: "16px",
|
|
124
|
-
viewBox: "0 0 21 17"
|
|
125
|
-
}, /*#__PURE__*/_react.default.createElement("path", {
|
|
126
|
-
d: "M7.057923,6.94048365 C7.04979017,6.90724028 7.03471462,6.87699953 7.01408497,6.85190615 L4.23205608,1.83580276 L3.7688805,1 L3.30530819,1.83558828 L0.506021801,6.88386268 C0.49907913,6.8965166 0.493524987,6.90938501 0.489161015,6.92289683 C0.169202902,7.53478935 0,8.2260371 0,8.92500579 C0,11.1720434 1.69064045,13 3.76907885,13 C5.84712054,13 7.53795938,11.1720434 7.53795938,8.92500579 C7.53795938,8.23268578 7.37212861,7.54808671 7.057923,6.94048365 L7.057923,6.94048365 Z"
|
|
127
|
-
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
128
|
-
d: "M14.296,10.288 L8.944,10.288 L7.408,14.152 C7.3279996,14.344001 7.288,14.5039994 7.288,14.632 C7.288,14.9680017 7.77599512,15.2079993 8.752,15.352 C8.86400056,15.3680001 8.9399998,15.4119996 8.98,15.484 C9.0200002,15.5560004 9.04,15.6399995 9.04,15.736 C9.04,15.8320005 9.02400016,15.9599992 8.992,16.12 C8.55999784,16.0879998 8.1040024,16.0600001 7.624,16.036 C7.1439976,16.0119999 6.67200232,16 6.208,16 C5.8879984,16 5.56000168,16.0079999 5.224,16.024 C4.88799832,16.0400001 4.53600184,16.0719998 4.168,16.12 C4.13599984,15.9919994 4.12,15.8640006 4.12,15.736 C4.12,15.6239994 4.1399998,15.5280004 4.18,15.448 C4.2200002,15.3679996 4.30399936,15.3200001 4.432,15.304 C4.92800248,15.2239996 5.29999876,15.1240006 5.548,15.004 C5.79600124,14.8839994 5.97599944,14.6960013 6.088,14.44 L11.872,0.52 C11.9840006,0.24799864 12.135999,0.112 12.328,0.112 C12.3920003,0.112 12.4879994,0.12799984 12.616,0.16 L18.424,14.512 C18.5200005,14.7360011 18.7359983,14.9119994 19.072,15.04 C19.4080017,15.1680006 19.7359984,15.2559998 20.056,15.304 C20.1520005,15.3360002 20.2279997,15.3799997 20.284,15.436 C20.3400003,15.4920003 20.368,15.5919993 20.368,15.736 C20.368,15.8320005 20.3520002,15.9599992 20.32,16.12 C19.8079974,16.0879998 19.3040025,16.0600001 18.808,16.036 C18.3119975,16.0119999 17.8480022,16 17.416,16 C16.9679978,16 16.4560029,16.0119999 15.88,16.036 C15.3039971,16.0600001 14.7840023,16.0879998 14.32,16.12 C14.2879998,15.9599992 14.272,15.8320005 14.272,15.736 C14.272,15.5919993 14.2999997,15.4920003 14.356,15.436 C14.4120003,15.3799997 14.4639998,15.352 14.512,15.352 C14.9280021,15.2719996 15.2639987,15.1800005 15.52,15.076 C15.7760013,14.9719995 15.904,14.816001 15.904,14.608 C15.904,14.5119995 15.8720003,14.3920007 15.808,14.248 L14.296,10.288 Z M13.912,9.304 L11.68,3.424 L9.352,9.304 L13.912,9.304 Z"
|
|
129
|
-
})))), /*#__PURE__*/_react.default.createElement(_ColorInput.default, {
|
|
130
|
-
wrapperStyle: {
|
|
131
|
-
flex: 1
|
|
132
|
-
},
|
|
133
|
-
value: style['color'],
|
|
134
|
-
onChange: function onChange(value) {
|
|
135
|
-
return handleChange('color', value);
|
|
136
|
-
}
|
|
137
|
-
})), /*#__PURE__*/_react.default.createElement(_StyleRow.default, null, /*#__PURE__*/_react.default.createElement(_antd.Tooltip, {
|
|
138
|
-
placement: "top",
|
|
139
|
-
title: (0, _utils.formatMessage)({
|
|
140
|
-
id: 'luckda.lowcode.painter.panel-section.style-panel.font.size',
|
|
141
|
-
label: '字体大小'
|
|
142
|
-
})
|
|
143
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
144
|
-
className: _stylePanel.default['svg-label']
|
|
145
|
-
}, /*#__PURE__*/_react.default.createElement(_HightLightSvg.default, {
|
|
146
|
-
field: "font-size",
|
|
147
|
-
width: "20",
|
|
148
|
-
height: "20",
|
|
149
|
-
viewBox: "0 0 25 17"
|
|
150
|
-
}, /*#__PURE__*/_react.default.createElement("path", {
|
|
151
|
-
d: "M5.194,7.474 L5.194,14.95 C5.194,15.1646677 5.28266578,15.3163329 5.46,15.405 C5.63733422,15.4936671 5.9359979,15.5613331 6.356,15.608 C6.45866718,15.608 6.51,15.6826659 6.51,15.832 C6.51,15.8973337 6.50066676,15.9766662 6.482,16.07 C6.18333184,16.0513332 5.86833499,16.0350001 5.537,16.021 C5.20566501,16.0069999 4.87200168,16 4.536,16 C4.2093317,16 3.87566837,16.0069999 3.535,16.021 C3.19433163,16.0350001 2.87466816,16.0513332 2.576,16.07 C2.55733324,15.9766662 2.548,15.8973337 2.548,15.832 C2.548,15.7013327 2.5946662,15.6266668 2.688,15.608 C3.1080021,15.5519997 3.4113324,15.4820004 3.598,15.398 C3.7846676,15.3139996 3.878,15.1646677 3.878,14.95 L3.878,7.474 L2.436,7.474 C2.1559986,7.474 1.92033429,7.50199972 1.729,7.558 C1.53766571,7.61400028 1.3720007,7.69799944 1.232,7.81 C1.0919993,7.92200056 0.97066718,8.06666578 0.868,8.244 C0.76533282,8.42133422 0.65800056,8.6266655 0.546,8.86 C0.52733324,8.9066669 0.49700021,8.93933324 0.455,8.958 C0.41299979,8.97666676 0.37333352,8.986 0.336,8.986 C0.23333282,8.986 0.14466704,8.95800028 0.07,8.902 C0.1633338,8.56599832 0.2333331,8.26733464 0.28,8.006 C0.3266669,7.74466536 0.36866648,7.52766753 0.406,7.355 C0.44333352,7.18233247 0.48299979,7.0493338 0.525,6.956 C0.56700021,6.8626662 0.6346662,6.816 0.728,6.816 C0.79333366,6.816 0.88666606,6.82066662 1.008,6.83 C1.12933394,6.83933338 1.25766599,6.84866662 1.393,6.858 C1.52833401,6.86733338 1.6659993,6.87666662 1.806,6.886 C1.9460007,6.89533338 2.07666606,6.9 2.198,6.9 L6.874,6.9 C6.98600056,6.9 7.1119993,6.89533338 7.252,6.886 C7.3920007,6.87666662 7.5319993,6.86733338 7.672,6.858 C7.8120007,6.84866662 7.94033275,6.83933338 8.057,6.83 C8.17366725,6.82066662 8.26933296,6.816 8.344,6.816 C8.4373338,6.816 8.50499979,6.86499951 8.547,6.963 C8.58900021,7.06100049 8.62866648,7.19866578 8.666,7.376 C8.70333352,7.55333422 8.74299979,7.77266536 8.785,8.034 C8.82700021,8.29533464 8.89933282,8.58466508 9.002,8.902 C8.9553331,8.92066676 8.91100021,8.93933324 8.869,8.958 C8.82699979,8.97666676 8.77800028,8.986 8.722,8.986 C8.68466648,8.986 8.6426669,8.97666676 8.596,8.958 C8.5493331,8.93933324 8.51666676,8.9066669 8.498,8.86 C8.39533282,8.6266655 8.29266718,8.42133422 8.19,8.244 C8.08733282,8.06666578 7.96833401,7.92200056 7.833,7.81 C7.69766599,7.69799944 7.53433429,7.61400028 7.343,7.558 C7.15166571,7.50199972 6.9160014,7.474 6.636,7.474 L5.194,7.474 Z M17.962,1.384 L17.962,14.2 C17.962,14.5680018 18.1139985,14.8279992 18.418,14.98 C18.7220015,15.1320008 19.2339964,15.2479996 19.954,15.328 C20.1300009,15.328 20.218,15.4559987 20.218,15.712 C20.218,15.8240006 20.2020002,15.9599992 20.17,16.12 C19.6579974,16.0879998 19.1180028,16.0600001 18.55,16.036 C17.9819972,16.0119999 17.4100029,16 16.834,16 C16.2739972,16 15.7020029,16.0119999 15.118,16.036 C14.5339971,16.0600001 13.9860026,16.0879998 13.474,16.12 C13.4419998,15.9599992 13.426,15.8240006 13.426,15.712 C13.426,15.4879989 13.5059992,15.3600002 13.666,15.328 C14.3860036,15.2319995 14.9059984,15.1120007 15.226,14.968 C15.5460016,14.8239993 15.706,14.5680018 15.706,14.2 L15.706,1.384 L13.234,1.384 C12.7539976,1.384 12.3500016,1.43199952 12.022,1.528 C11.6939984,1.62400048 11.4100012,1.76799904 11.17,1.96 C10.9299988,2.15200096 10.7220009,2.39999848 10.546,2.704 C10.3699991,3.00800152 10.186001,3.359998 9.994,3.76 C9.96199984,3.8400004 9.91000036,3.89599984 9.838,3.928 C9.76599964,3.96000016 9.69800032,3.976 9.634,3.976 C9.45799912,3.976 9.30600064,3.92800048 9.178,3.832 C9.3380008,3.25599712 9.4579996,2.74400224 9.538,2.296 C9.6180004,1.84799776 9.68999968,1.47600148 9.754,1.18 C9.81800032,0.88399852 9.88599964,0.6560008 9.958,0.496 C10.0300004,0.3359992 10.1459992,0.256 10.306,0.256 C10.4180006,0.256 10.577999,0.26399992 10.786,0.28 C10.994001,0.29600008 11.2139988,0.31199992 11.446,0.328 C11.6780012,0.34400008 11.9139988,0.35999992 12.154,0.376 C12.3940012,0.39200008 12.617999,0.4 12.826,0.4 L20.842,0.4 C21.034001,0.4 21.2499988,0.39200008 21.49,0.376 C21.7300012,0.35999992 21.9699988,0.34400008 22.21,0.328 C22.4500012,0.31199992 22.669999,0.29600008 22.87,0.28 C23.070001,0.26399992 23.2339994,0.256 23.362,0.256 C23.5220008,0.256 23.6379996,0.33999916 23.71,0.508 C23.7820004,0.67600084 23.8499997,0.91199848 23.914,1.216 C23.9780003,1.52000152 24.0459996,1.89599776 24.118,2.344 C24.1900004,2.79200224 24.3139991,3.28799728 24.49,3.832 C24.4099996,3.86400016 24.3340004,3.89599984 24.262,3.928 C24.1899996,3.96000016 24.1060005,3.976 24.01,3.976 C23.9459997,3.976 23.8740004,3.96000016 23.794,3.928 C23.7139996,3.89599984 23.6580002,3.8400004 23.626,3.76 C23.4499991,3.359998 23.2740009,3.00800152 23.098,2.704 C22.9219991,2.39999848 22.7180012,2.15200096 22.486,1.96 C22.2539988,1.76799904 21.9740016,1.62400048 21.646,1.528 C21.3179984,1.43199952 20.9140024,1.384 20.434,1.384 L17.962,1.384 Z"
|
|
152
|
-
})))), /*#__PURE__*/_react.default.createElement(_Size.default, {
|
|
153
|
-
field: "font-size",
|
|
154
|
-
style: {
|
|
155
|
-
flex: 1
|
|
156
|
-
},
|
|
157
|
-
placeholder: (0, _utils.formatMessage)({
|
|
158
|
-
id: "luckda.lowcode.painter.panel-section.style-panel.font.size.ph",
|
|
159
|
-
label: '字体大小'
|
|
160
|
-
})
|
|
161
|
-
}), /*#__PURE__*/_react.default.createElement(_antd.Tooltip, {
|
|
162
|
-
placement: "top",
|
|
163
|
-
title: (0, _utils.formatMessage)({
|
|
164
|
-
id: 'luckda.lowcode.painter.panel-section.style-panel.font.size',
|
|
165
|
-
label: '字体大小'
|
|
166
|
-
})
|
|
167
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
168
|
-
className: _stylePanel.default['svg-label']
|
|
169
|
-
}, /*#__PURE__*/_react.default.createElement(_HightLightSvg.default, {
|
|
170
|
-
field: "line-height",
|
|
171
|
-
width: "20",
|
|
172
|
-
height: "20",
|
|
173
|
-
viewBox: "0 0 29 34"
|
|
174
|
-
}, /*#__PURE__*/_react.default.createElement("path", {
|
|
175
|
-
d: "M5,27.8833008 L5,20 L3,20 L3,27.8833008 L0.457763672,27.8833008 L3.96508789,34 L7.47241211,27.8833008 L5,27.8833008 Z M9,14 L29,14 L29,16 L9,16 L9,14 Z M9,32 L29,32 L29,34 L9,34 L9,32 Z M3.96508789,13.8833008 L7.47241211,20 L0.457763672,20 L3.96508789,13.8833008 Z M21.015625,10.6054688 C20.2421836,11.1367214 19.5332063,11.5292956 18.8886719,11.7832031 C18.2441374,12.0371106 17.6406278,12.1640625 17.078125,12.1640625 C16.1484329,12.1640625 15.4042997,11.8828153 14.8457031,11.3203125 C14.2871066,10.7578097 14.0078125,10.0156296 14.0078125,9.09375 C14.0078125,8.07030738 14.4277302,7.26562793 15.2675781,6.6796875 C16.1074261,6.09374707 18.0234225,5.44140984 21.015625,4.72265625 L21.015625,3.9609375 C21.015625,2.95311996 20.8515641,2.2539082 20.5234375,1.86328125 C20.1953109,1.4726543 19.6250041,1.27734375 18.8125,1.27734375 C18.507811,1.27734375 18.2070327,1.30859344 17.9101562,1.37109375 C17.6132798,1.43359406 17.3046891,1.52734313 16.984375,1.65234375 L16.984375,3.66796875 L15.3320312,3.66796875 C15.0429673,3.66796875 14.8457037,3.6152349 14.7402344,3.50976563 C14.6347651,3.40429635 14.5820312,3.21093891 14.5820312,2.9296875 C14.5820312,2.14843359 15.0331986,1.50000258 15.9355469,0.984375 C16.8378951,0.468747422 18.0038991,0.2109375 19.4335938,0.2109375 C20.6914125,0.2109375 21.6054659,0.484372266 22.1757812,1.03125 C22.7460966,1.57812773 23.03125,2.4570252 23.03125,3.66796875 L23.03125,10.6289062 L23.4414062,11.015625 L24.7070312,11.1328125 L24.7070312,12 L21.3320312,12 L21.015625,10.6054688 Z M21.015625,9.796875 L21.015625,5.56640625 C19.0078025,6.12109652 17.6894563,6.62890395 17.0605469,7.08984375 C16.4316375,7.55078355 16.1171875,8.15624625 16.1171875,8.90625 C16.1171875,9.50781551 16.2910139,9.98632635 16.6386719,10.3417969 C16.9863299,10.6972674 17.4531221,10.875 18.0390625,10.875 C18.4140644,10.875 18.8457007,10.7851571 19.3339844,10.6054688 C19.8222681,10.4257804 20.3828093,10.1562518 21.015625,9.796875 Z M21.015625,28.6054688 C20.2421836,29.1367214 19.5332063,29.5292956 18.8886719,29.7832031 C18.2441374,30.0371106 17.6406278,30.1640625 17.078125,30.1640625 C16.1484329,30.1640625 15.4042997,29.8828153 14.8457031,29.3203125 C14.2871066,28.7578097 14.0078125,28.0156296 14.0078125,27.09375 C14.0078125,26.0703074 14.4277302,25.2656279 15.2675781,24.6796875 C16.1074261,24.0937471 18.0234225,23.4414098 21.015625,22.7226562 L21.015625,21.9609375 C21.015625,20.95312 20.8515641,20.2539082 20.5234375,19.8632812 C20.1953109,19.4726543 19.6250041,19.2773438 18.8125,19.2773438 C18.507811,19.2773438 18.2070327,19.3085934 17.9101562,19.3710938 C17.6132798,19.4335941 17.3046891,19.5273431 16.984375,19.6523438 L16.984375,21.6679688 L15.3320312,21.6679688 C15.0429673,21.6679688 14.8457037,21.6152349 14.7402344,21.5097656 C14.6347651,21.4042963 14.5820312,21.2109389 14.5820312,20.9296875 C14.5820312,20.1484336 15.0331986,19.5000026 15.9355469,18.984375 C16.8378951,18.4687474 18.0038991,18.2109375 19.4335938,18.2109375 C20.6914125,18.2109375 21.6054659,18.4843723 22.1757812,19.03125 C22.7460966,19.5781277 23.03125,20.4570252 23.03125,21.6679688 L23.03125,28.6289062 L23.4414062,29.015625 L24.7070312,29.1328125 L24.7070312,30 L21.3320312,30 L21.015625,28.6054688 Z M21.015625,27.796875 L21.015625,23.5664062 C19.0078025,24.1210965 17.6894563,24.6289039 17.0605469,25.0898438 C16.4316375,25.5507836 16.1171875,26.1562462 16.1171875,26.90625 C16.1171875,27.5078155 16.2910139,27.9863263 16.6386719,28.3417969 C16.9863299,28.6972674 17.4531221,28.875 18.0390625,28.875 C18.4140644,28.875 18.8457007,28.7851571 19.3339844,28.6054688 C19.8222681,28.4257804 20.3828093,28.1562518 21.015625,27.796875 Z"
|
|
176
|
-
})))), /*#__PURE__*/_react.default.createElement(_Size.default, {
|
|
177
|
-
field: "line-height",
|
|
178
|
-
style: {
|
|
179
|
-
flex: 1
|
|
180
|
-
},
|
|
181
|
-
placeholder: (0, _utils.formatMessage)({
|
|
182
|
-
id: "luckda.lowcode.painter.panel-section.style-panel.font.line-height.ph",
|
|
183
|
-
label: '行高'
|
|
184
|
-
})
|
|
185
|
-
})), /*#__PURE__*/_react.default.createElement(_StyleRow.default, null, /*#__PURE__*/_react.default.createElement(_antd.Tooltip, {
|
|
186
|
-
placement: "top",
|
|
187
|
-
title: (0, _utils.formatMessage)({
|
|
188
|
-
id: 'luckda.lowcode.painter.panel-section.style-panel.font.align',
|
|
189
|
-
label: '对齐'
|
|
190
|
-
})
|
|
191
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
192
|
-
className: _stylePanel.default['svg-label']
|
|
193
|
-
}, /*#__PURE__*/_react.default.createElement(_HightLightSvg.default, {
|
|
194
|
-
field: "text-align",
|
|
195
|
-
width: "16px",
|
|
196
|
-
height: "16px",
|
|
197
|
-
viewBox: "0 0 32 30"
|
|
198
|
-
}, /*#__PURE__*/_react.default.createElement("path", {
|
|
199
|
-
d: "M0,0 L2,0 L2,30 L0,30 L0,0 Z M4,2 L30,2 L30,4 L4,4 L4,2 Z M4,10 L32,10 L32,12 L4,12 L4,10 Z M4,18 L24,18 L24,20 L4,20 L4,18 Z M10,26 L14,26 L14,28 L10,28 L10,26 Z M4,6 L28,6 L28,8 L4,8 L4,6 Z M4,14 L28,14 L28,16 L4,16 L4,14 Z M3.93811035,27 L10,24 L10,30 L3.93811035,27 Z"
|
|
200
|
-
})))), /*#__PURE__*/_react.default.createElement(_uiDesign.Segmented, {
|
|
201
|
-
style: {
|
|
202
|
-
flex: 1
|
|
203
|
-
},
|
|
204
|
-
options: alignOptions,
|
|
205
|
-
onChange: function onChange(value) {
|
|
206
|
-
return handleChange('text-align', value);
|
|
207
|
-
},
|
|
208
|
-
value: style['text-align']
|
|
209
|
-
})), /*#__PURE__*/_react.default.createElement(_StyleRow.default, null, /*#__PURE__*/_react.default.createElement(_antd.Tooltip, {
|
|
210
|
-
placement: "top",
|
|
211
|
-
title: (0, _utils.formatMessage)({
|
|
212
|
-
id: 'luckda.lowcode.painter.panel-section.style-panel.font.style',
|
|
213
|
-
label: '样式'
|
|
214
|
-
})
|
|
215
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
216
|
-
className: _stylePanel.default['svg-label']
|
|
217
|
-
}, /*#__PURE__*/_react.default.createElement(_HightLightSvg.default, {
|
|
218
|
-
field: "text-decoration",
|
|
219
|
-
width: "16px",
|
|
220
|
-
height: "16px",
|
|
221
|
-
viewBox: "0 0 18 16"
|
|
222
|
-
}, /*#__PURE__*/_react.default.createElement("path", {
|
|
223
|
-
d: "M11.176,10.176 L5.824,10.176 L4.288,14.04 C4.2079996,14.232001 4.168,14.3919994 4.168,14.52 C4.168,14.8560017 4.65599512,15.0959993 5.632,15.24 C5.74400056,15.2560001 5.8199998,15.2999996 5.86,15.372 C5.9000002,15.4440004 5.92,15.5279995 5.92,15.624 C5.92,15.7200005 5.90400016,15.8479992 5.872,16.008 C5.43999784,15.9759998 4.9840024,15.9480001 4.504,15.924 C4.0239976,15.8999999 3.55200232,15.888 3.088,15.888 C2.7679984,15.888 2.44000168,15.8959999 2.104,15.912 C1.76799832,15.9280001 1.41600184,15.9599998 1.048,16.008 C1.01599984,15.8799994 1,15.7520006 1,15.624 C1,15.5119994 1.0199998,15.4160004 1.06,15.336 C1.1000002,15.2559996 1.18399936,15.2080001 1.312,15.192 C1.80800248,15.1119996 2.17999876,15.0120006 2.428,14.892 C2.67600124,14.7719994 2.85599944,14.5840013 2.968,14.328 L8.752,0.408 C8.86400056,0.13599864 9.01599904,0 9.208,0 C9.27200032,0 9.36799936,0.01599984 9.496,0.048 L15.304,14.4 C15.4000005,14.6240011 15.6159983,14.7999994 15.952,14.928 C16.2880017,15.0560006 16.6159984,15.1439998 16.936,15.192 C17.0320005,15.2240002 17.1079997,15.2679997 17.164,15.324 C17.2200003,15.3800003 17.248,15.4799993 17.248,15.624 C17.248,15.7200005 17.2320002,15.8479992 17.2,16.008 C16.6879974,15.9759998 16.1840025,15.9480001 15.688,15.924 C15.1919975,15.8999999 14.7280022,15.888 14.296,15.888 C13.8479978,15.888 13.3360029,15.8999999 12.76,15.924 C12.1839971,15.9480001 11.6640023,15.9759998 11.2,16.008 C11.1679998,15.8479992 11.152,15.7200005 11.152,15.624 C11.152,15.4799993 11.1799997,15.3800003 11.236,15.324 C11.2920003,15.2679997 11.3439998,15.24 11.392,15.24 C11.8080021,15.1599996 12.1439987,15.0680005 12.4,14.964 C12.6560013,14.8599995 12.784,14.704001 12.784,14.496 C12.784,14.3999995 12.7520003,14.2800007 12.688,14.136 L11.176,10.176 Z M10.792,9.192 L8.56,3.312 L6.232,9.192 L10.792,9.192 Z"
|
|
224
|
-
}), /*#__PURE__*/_react.default.createElement("rect", {
|
|
225
|
-
x: "0",
|
|
226
|
-
y: "9",
|
|
227
|
-
width: "18",
|
|
228
|
-
height: "2"
|
|
229
|
-
})))), /*#__PURE__*/_react.default.createElement(_uiDesign.Segmented, {
|
|
230
|
-
style: {
|
|
231
|
-
flex: 1
|
|
232
|
-
},
|
|
233
|
-
options: styleOptions,
|
|
234
|
-
onChange: function onChange(value) {
|
|
235
|
-
return handleChange('text-decoration', value);
|
|
236
|
-
},
|
|
237
|
-
value: style['text-decoration']
|
|
238
|
-
})));
|
|
239
|
-
}
|
|
240
|
-
var fontOptions = [{
|
|
241
|
-
label: /*#__PURE__*/_react.default.createElement(_antd.Tooltip, {
|
|
242
|
-
placement: "top",
|
|
243
|
-
title: "normal"
|
|
244
|
-
}, /*#__PURE__*/_react.default.createElement("svg", {
|
|
245
|
-
fill: "currentColor",
|
|
246
|
-
preserveAspectRatio: "xMidYMid meet",
|
|
247
|
-
width: "12px",
|
|
248
|
-
height: "12px",
|
|
249
|
-
viewBox: "0 0 9 18"
|
|
250
|
-
}, /*#__PURE__*/_react.default.createElement("path", {
|
|
251
|
-
d: "M8.203125,0.5 L8.203125,1.19140625 C7.92968613,1.25390656 7.72656316,1.29687488 7.59375,1.3203125 C6.5546823,1.5000009 5.95312582,1.66992107 5.7890625,1.83007812 C5.62499918,1.99023518 5.54296875,2.34765348 5.54296875,2.90234375 L5.54296875,3.3125 L5.49609375,8.0234375 L5.53125,14.8671875 C5.53125,15.4140652 5.61132732,15.761718 5.77148438,15.9101562 C5.93164143,16.0585945 6.48046406,16.1874995 7.41796875,16.296875 C7.59765715,16.3203126 7.85937328,16.3671871 8.203125,16.4375 L8.203125,17.1289062 C6.94530621,17.0429683 5.73438082,17 4.5703125,17 C3.36718148,17 2.04688219,17.0429683 0.609375,17.1289062 L0.609375,16.4375 C0.835938633,16.3749997 1.00781191,16.3359376 1.125,16.3203125 C2.23438055,16.1406241 2.86913982,15.9746101 3.02929688,15.8222656 C3.18945393,15.6699211 3.26953125,15.2851593 3.26953125,14.6679688 L3.2578125,14.0820312 L3.28125,9.78125 C3.28125,5.35935289 3.27343758,2.91406484 3.2578125,2.4453125 C3.24218742,2.18749871 3.15820389,1.98828195 3.00585938,1.84765625 C2.85351486,1.70703055 2.26172391,1.53906348 1.23046875,1.34375 C1.08984305,1.31249984 0.882813867,1.2617191 0.609375,1.19140625 L0.609375,0.5 C2.30469598,0.58593793 3.62890148,0.62890625 4.58203125,0.62890625 C5.64453656,0.62890625 6.85155574,0.58593793 8.203125,0.5 L8.203125,0.5 Z"
|
|
252
|
-
}))),
|
|
253
|
-
value: 'normal'
|
|
254
|
-
}, {
|
|
255
|
-
label: /*#__PURE__*/_react.default.createElement(_antd.Tooltip, {
|
|
256
|
-
placement: "top",
|
|
257
|
-
title: "italic"
|
|
258
|
-
}, /*#__PURE__*/_react.default.createElement("svg", {
|
|
259
|
-
fill: "currentColor",
|
|
260
|
-
preserveAspectRatio: "xMidYMid meet",
|
|
261
|
-
width: "12px",
|
|
262
|
-
height: "12px",
|
|
263
|
-
viewBox: "0 0 13 18"
|
|
264
|
-
}, /*#__PURE__*/_react.default.createElement("path", {
|
|
265
|
-
d: "M12.2851562,0.78125 L12.0625,1.49609375 C12.0468749,1.50390629 12.0039066,1.51367182 11.9335938,1.52539062 C11.8632809,1.53710943 11.791016,1.54882807 11.7167969,1.56054688 C11.6425778,1.57226568 11.5976563,1.58203121 11.5820312,1.58984375 C10.824215,1.73046945 10.3281262,1.86523373 10.09375,1.99414062 C9.85937383,2.12304752 9.68359434,2.31640496 9.56640625,2.57421875 C9.3554677,3.10547141 9.05664256,3.99022818 8.66992188,5.22851562 C8.28320119,6.46680307 7.8945332,7.7636651 7.50390625,9.11914062 C7.1132793,10.4746162 6.80859484,11.5976518 6.58984375,12.4882812 C6.58203121,12.5273439 6.45312625,13.0390576 6.203125,14.0234375 C5.95312375,15.0078174 5.828125,15.5351559 5.828125,15.6054688 C5.828125,15.7226568 5.87499953,15.8203121 5.96875,15.8984375 C6.03125031,15.9531253 6.60546332,16.1054675 7.69140625,16.3554688 C7.94922004,16.402344 8.078125,16.4257812 8.078125,16.4257812 L7.8671875,17.1171875 C7.49218562,17.0937499 7.02734652,17.0703126 6.47265625,17.046875 C5.70702742,17.0156248 5.00390945,17 4.36328125,17 C3.32421355,17 2.14844406,17.0390621 0.8359375,17.1171875 L1.046875,16.4257812 C1.05468754,16.4257812 1.08203102,16.4199219 1.12890625,16.4082031 C1.17578148,16.3964843 1.23828086,16.3847657 1.31640625,16.3730469 C1.39453164,16.3613281 1.47265586,16.3476563 1.55078125,16.3320312 C2.25390977,16.1992181 2.71093645,16.0820318 2.921875,15.9804688 C3.13281355,15.8789057 3.30859305,15.7304697 3.44921875,15.5351562 C3.62890715,15.2617174 3.98827855,14.2070404 4.52734375,12.3710938 C4.55078137,12.2773433 4.69335807,11.7773483 4.95507812,10.8710938 C5.21679818,9.96483922 5.37890594,9.39843863 5.44140625,9.171875 C5.60546957,8.58593457 5.78320217,7.95898771 5.97460938,7.29101562 C6.16601658,6.62304354 6.30859328,6.10547059 6.40234375,5.73828125 C6.82422086,4.22264867 7.09374941,3.19140898 7.2109375,2.64453125 C7.2500002,2.52734316 7.26953125,2.41796926 7.26953125,2.31640625 C7.26953125,2.16015547 7.20312566,2.05468777 7.0703125,2 C6.99218711,1.9609373 6.68554955,1.87695377 6.15039062,1.74804688 C5.6152317,1.61913998 5.25000098,1.53515645 5.0546875,1.49609375 L5.2421875,0.78125 C6.50781883,0.875000469 7.65233863,0.921875 8.67578125,0.921875 C10.0820383,0.921875 11.2851513,0.875000469 12.2851562,0.78125 L12.2851562,0.78125 Z"
|
|
266
|
-
}))),
|
|
267
|
-
value: 'italic'
|
|
268
|
-
}];
|
|
269
|
-
var alignOptions = [{
|
|
270
|
-
label: /*#__PURE__*/_react.default.createElement(_antd.Tooltip, {
|
|
271
|
-
placement: "top",
|
|
272
|
-
title: (0, _utils.formatMessage)({
|
|
273
|
-
id: 'luckda.lowcode.painter.panel-section.style-panel.font.align.left',
|
|
274
|
-
label: '左对齐'
|
|
275
|
-
})
|
|
276
|
-
}, /*#__PURE__*/_react.default.createElement("svg", {
|
|
277
|
-
fill: "currentColor",
|
|
278
|
-
preserveAspectRatio: "xMidYMid meet",
|
|
279
|
-
width: "10px",
|
|
280
|
-
height: "10px",
|
|
281
|
-
viewBox: "0 0 22 22"
|
|
282
|
-
}, /*#__PURE__*/_react.default.createElement("path", {
|
|
283
|
-
d: "M0,0 L22,0 L22,2 L0,2 L0,0 Z M0,8 L22,8 L22,10 L0,10 L0,8 Z M0,16 L22,16 L22,18 L0,18 L0,16 Z M0,4 L18,4 L18,6 L0,6 L0,4 Z M0,12 L20,12 L20,14 L0,14 L0,12 Z M0,20 L14,20 L14,22 L0,22 L0,20 Z"
|
|
284
|
-
}))),
|
|
285
|
-
value: 'left'
|
|
286
|
-
}, {
|
|
287
|
-
label: /*#__PURE__*/_react.default.createElement(_antd.Tooltip, {
|
|
288
|
-
placement: "top",
|
|
289
|
-
title: (0, _utils.formatMessage)({
|
|
290
|
-
id: 'luckda.lowcode.painter.panel-section.style-panel.font.align.center',
|
|
291
|
-
label: '居中'
|
|
292
|
-
})
|
|
293
|
-
}, /*#__PURE__*/_react.default.createElement("svg", {
|
|
294
|
-
fill: "currentColor",
|
|
295
|
-
preserveAspectRatio: "xMidYMid meet",
|
|
296
|
-
width: "10px",
|
|
297
|
-
height: "10px",
|
|
298
|
-
viewBox: "0 0 26 22"
|
|
299
|
-
}, /*#__PURE__*/_react.default.createElement("path", {
|
|
300
|
-
d: "M0,0 L26,0 L26,2 L0,2 L0,0 Z M2,8 L24,8 L24,10 L2,10 L2,8 Z M4,16 L22,16 L22,18 L4,18 L4,16 Z M4,4 L22,4 L22,6 L4,6 L4,4 Z M0,12 L26,12 L26,14 L0,14 L0,12 Z M2,20 L24,20 L24,22 L2,22 L2,20 Z"
|
|
301
|
-
}))),
|
|
302
|
-
value: 'center'
|
|
303
|
-
}, {
|
|
304
|
-
label: /*#__PURE__*/_react.default.createElement(_antd.Tooltip, {
|
|
305
|
-
placement: "top",
|
|
306
|
-
title: (0, _utils.formatMessage)({
|
|
307
|
-
id: 'luckda.lowcode.painter.panel-section.style-panel.font.align.center',
|
|
308
|
-
label: '右对齐'
|
|
309
|
-
})
|
|
310
|
-
}, /*#__PURE__*/_react.default.createElement("svg", {
|
|
311
|
-
fill: "currentColor",
|
|
312
|
-
preserveAspectRatio: "xMidYMid meet",
|
|
313
|
-
width: "10px",
|
|
314
|
-
height: "10px",
|
|
315
|
-
viewBox: "0 0 22 22"
|
|
316
|
-
}, /*#__PURE__*/_react.default.createElement("path", {
|
|
317
|
-
d: "M0,0 L22,0 L22,2 L0,2 L0,0 Z M0,8 L22,8 L22,10 L0,10 L0,8 Z M0,16 L22,16 L22,18 L0,18 L0,16 Z M0,4 L18,4 L18,6 L0,6 L0,4 Z M0,12 L20,12 L20,14 L0,14 L0,12 Z M0,20 L14,20 L14,22 L0,22 L0,20 Z"
|
|
318
|
-
}))),
|
|
319
|
-
value: 'right'
|
|
320
|
-
}, {
|
|
321
|
-
label: /*#__PURE__*/_react.default.createElement(_antd.Tooltip, {
|
|
322
|
-
placement: "top",
|
|
323
|
-
title: (0, _utils.formatMessage)({
|
|
324
|
-
id: 'luckda.lowcode.painter.panel-section.style-panel.font.align.center',
|
|
325
|
-
label: '自适应'
|
|
326
|
-
})
|
|
327
|
-
}, /*#__PURE__*/_react.default.createElement("svg", {
|
|
328
|
-
fill: "currentColor",
|
|
329
|
-
preserveAspectRatio: "xMidYMid meet",
|
|
330
|
-
width: "10px",
|
|
331
|
-
height: "10px",
|
|
332
|
-
viewBox: "0 0 22 22"
|
|
333
|
-
}, /*#__PURE__*/_react.default.createElement("path", {
|
|
334
|
-
d: "M0,0 L22,0 L22,2 L0,2 L0,0 Z M0,8 L22,8 L22,10 L0,10 L0,8 Z M0,16 L22,16 L22,18 L0,18 L0,16 Z M0,4 L22,4 L22,6 L0,6 L0,4 Z M0,12 L22,12 L22,14 L0,14 L0,12 Z M0,20 L12,20 L12,22 L0,22 L0,20 Z",
|
|
335
|
-
"data-spm-anchor-id": "0.0.0.i45.351440bdEUFuWh"
|
|
336
|
-
}))),
|
|
337
|
-
value: 'justify'
|
|
338
|
-
}];
|
|
339
|
-
var styleOptions = [{
|
|
340
|
-
label: /*#__PURE__*/_react.default.createElement(_antd.Tooltip, {
|
|
341
|
-
placement: "top",
|
|
342
|
-
title: (0, _utils.formatMessage)({
|
|
343
|
-
id: 'luckda.lowcode.painter.panel-section.style-panel.font.style.none',
|
|
344
|
-
label: '无'
|
|
345
|
-
})
|
|
346
|
-
}, /*#__PURE__*/_react.default.createElement("svg", {
|
|
347
|
-
fill: "currentColor",
|
|
348
|
-
preserveAspectRatio: "xMidYMid meet",
|
|
349
|
-
width: "10px",
|
|
350
|
-
height: "10px",
|
|
351
|
-
viewBox: "0 0 1024 1024"
|
|
352
|
-
}, /*#__PURE__*/_react.default.createElement("path", {
|
|
353
|
-
d: "M461.952 746.432l-258.56 0 0-99.776 258.56 0L461.952 746.432z"
|
|
354
|
-
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
355
|
-
d: "M853.056 746.432l-258.56 0 0-99.776 258.56 0L853.056 746.432z"
|
|
356
|
-
}))),
|
|
357
|
-
value: 'none'
|
|
358
|
-
}, {
|
|
359
|
-
label: /*#__PURE__*/_react.default.createElement(_antd.Tooltip, {
|
|
360
|
-
placement: "top",
|
|
361
|
-
title: (0, _utils.formatMessage)({
|
|
362
|
-
id: 'luckda.lowcode.painter.panel-section.style-panel.font.style.underline',
|
|
363
|
-
label: '下划线'
|
|
364
|
-
})
|
|
365
|
-
}, /*#__PURE__*/_react.default.createElement("svg", {
|
|
366
|
-
fill: "currentColor",
|
|
367
|
-
preserveAspectRatio: "xMidYMid meet",
|
|
368
|
-
width: "10px",
|
|
369
|
-
height: "10px",
|
|
370
|
-
viewBox: "0 0 21 26"
|
|
371
|
-
}, /*#__PURE__*/_react.default.createElement("path", {
|
|
372
|
-
d: "M20.972,5.568 L18.208,5.652 C18.133333,4.40132708 18.3446683,4.03666914 18.018,3.542 C17.6913317,3.04733086 17.294669,2.70200098 16.828,2.506 C16.361331,2.30999902 15.8106698,2.212 15.176,2.212 L12.656,2.212 L12.656,18.892 C12.656,19.750671 13.4959916,20.18 15.176,20.18 L15.176,21.804 L5.852,21.804 L5.852,20.18 C7.51334164,20.18 8.344,19.750671 8.344,18.892 L8.344,2.212 L5.796,2.212 C5.16133016,2.212 4.610669,2.30999902 4.144,2.506 C3.677331,2.70200098 3.2806683,3.04733086 2.954,3.542 C2.6273317,4.03666914 2.83866704,4.40132708 2.764,5.652 L0,5.568 L0,0 L20.972,0 L20.972,5.568 Z M0,24 L21,24 L21,26 L0,26 L0,24 Z"
|
|
373
|
-
}))),
|
|
374
|
-
value: 'underline'
|
|
375
|
-
}, {
|
|
376
|
-
label: /*#__PURE__*/_react.default.createElement(_antd.Tooltip, {
|
|
377
|
-
placement: "top",
|
|
378
|
-
title: (0, _utils.formatMessage)({
|
|
379
|
-
id: 'luckda.lowcode.painter.panel-section.style-panel.font.style.line-through',
|
|
380
|
-
label: '中划线'
|
|
381
|
-
})
|
|
382
|
-
}, /*#__PURE__*/_react.default.createElement("svg", {
|
|
383
|
-
fill: "currentColor",
|
|
384
|
-
preserveAspectRatio: "xMidYMid meet",
|
|
385
|
-
width: "10px",
|
|
386
|
-
height: "10px",
|
|
387
|
-
viewBox: "0 0 21 26"
|
|
388
|
-
}, /*#__PURE__*/_react.default.createElement("path", {
|
|
389
|
-
d: "M12.656,12 L12.656,2.212 L15.176,2.212 C15.8106698,2.212 16.361331,2.30999902 16.828,2.506 C17.294669,2.70200098 17.6913317,3.04733086 18.018,3.542 C18.3446683,4.03666914 18.133333,4.40132708 18.208,5.652 L20.972,5.568 L20.972,0 L0,0 L0,5.568 L2.764,5.652 C2.83866704,4.40132708 2.6273317,4.03666914 2.954,3.542 C3.2806683,3.04733086 3.677331,2.70200098 4.144,2.506 C4.610669,2.30999902 5.16133016,2.212 5.796,2.212 L8.344,2.212 L8.344,12 L0,12 L0,14 L8.344,14 L8.344,22.892 C8.344,23.750671 7.51334164,24.18 5.852,24.18 L5.852,25.804 L15.176,25.804 L15.176,24.18 C13.4959916,24.18 12.656,23.750671 12.656,22.892 L12.656,14 L21,14 L21,12 L12.656,12 Z"
|
|
390
|
-
}))),
|
|
391
|
-
value: 'line-through'
|
|
392
|
-
}];
|