@luck-design-biz/luckda 0.0.26 → 0.0.27-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 +0 -0
- package/es/components/LdAutoForm/index.js +0 -0
- 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 +0 -0
- package/es/components/LdFormList/model.js +0 -0
- package/es/components/LdGrid/index.js +0 -0
- package/es/components/LdGrid/model.js +0 -0
- package/es/components/LdGridForm/index.js +0 -0
- 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 +0 -0
- package/es/helper/index.less +0 -0
- package/es/helper/ldBuilder.js +0 -0
- package/es/helper/ldComBuild.js +0 -0
- package/es/index.js +0 -0
- package/es/locales/zh-CN.js +236 -0
- package/es/lowcode/constants/api-url.js +0 -0
- package/es/lowcode/constants/event-topics.js +0 -0
- package/es/lowcode/constants/index.js +0 -0
- package/es/lowcode/engine/factory/DataFactory.js +0 -0
- package/es/lowcode/engine/meta/box.props.default.json +13 -0
- package/es/lowcode/engine/meta/box.props.json +40 -0
- package/es/lowcode/engine/meta/button.props.default.json +0 -0
- package/es/lowcode/engine/meta/button.props.json +127 -0
- package/es/lowcode/engine/meta/cardlist.props.default.json +0 -0
- package/es/lowcode/engine/meta/cardlist.props.json +153 -0
- package/es/lowcode/engine/meta/components/button.json +0 -0
- package/es/lowcode/engine/meta/components/card-list.json +0 -0
- package/es/lowcode/engine/meta/components/drawer.json +0 -0
- package/es/lowcode/engine/meta/components/form.json +0 -0
- package/es/lowcode/engine/meta/components/iframe.json +0 -0
- package/es/lowcode/engine/meta/components/image.json +0 -0
- package/es/lowcode/engine/meta/components/imex.json +0 -0
- package/es/lowcode/engine/meta/components/jsx.json +0 -0
- package/es/lowcode/engine/meta/components/layout.json +0 -0
- package/es/lowcode/engine/meta/components/link.json +0 -0
- package/es/lowcode/engine/meta/components/modal.json +0 -0
- package/es/lowcode/engine/meta/components/section.json +0 -0
- package/es/lowcode/engine/meta/components/split.json +0 -0
- package/es/lowcode/engine/meta/components/table.json +0 -0
- package/es/lowcode/engine/meta/components/tabs.json +0 -0
- package/es/lowcode/engine/meta/components/text.json +0 -0
- package/es/lowcode/engine/meta/components/tree.json +0 -0
- package/es/lowcode/engine/meta/components-list.json +0 -0
- package/es/lowcode/engine/meta/dialog.props.default.json +27 -0
- package/es/lowcode/engine/meta/dialog.props.json +157 -0
- package/es/lowcode/engine/meta/drawer.props.default.json +0 -0
- package/es/lowcode/engine/meta/drawer.props.json +131 -0
- package/es/lowcode/engine/meta/fieldcolor.props.default.json +19 -0
- package/es/lowcode/engine/meta/fieldcolor.props.json +159 -0
- package/es/lowcode/engine/meta/fieldcomplex.props.default.json +13 -0
- package/es/lowcode/engine/meta/fieldcomplex.props.json +39 -0
- package/es/lowcode/engine/meta/fielddatadic.props.default.json +16 -0
- package/es/lowcode/engine/meta/fielddatadic.props.json +73 -0
- package/es/lowcode/engine/meta/fielddate.props.default.json +12 -0
- package/es/lowcode/engine/meta/fielddate.props.json +47 -0
- package/es/lowcode/engine/meta/fielddict.props.default.json +19 -0
- package/es/lowcode/engine/meta/fielddict.props.json +140 -0
- package/es/lowcode/engine/meta/fieldeditor.props.default.json +13 -0
- package/es/lowcode/engine/meta/fieldeditor.props.json +44 -0
- package/es/lowcode/engine/meta/fieldgroup.props.default.json +15 -0
- package/es/lowcode/engine/meta/fieldgroup.props.json +73 -0
- package/es/lowcode/engine/meta/fieldnumber.props.default.json +20 -0
- package/es/lowcode/engine/meta/fieldnumber.props.json +145 -0
- package/es/lowcode/engine/meta/fieldradio.props.default.json +12 -0
- package/es/lowcode/engine/meta/fieldradio.props.json +20 -0
- package/es/lowcode/engine/meta/fieldregion.props.default.json +12 -0
- package/es/lowcode/engine/meta/fieldregion.props.json +26 -0
- package/es/lowcode/engine/meta/fieldselect.props.default.json +14 -0
- package/es/lowcode/engine/meta/fieldselect.props.json +58 -0
- package/es/lowcode/engine/meta/fieldstring.props.default.json +17 -0
- package/es/lowcode/engine/meta/fieldstring.props.json +154 -0
- package/es/lowcode/engine/meta/fieldswitch.props.default.json +17 -0
- package/es/lowcode/engine/meta/fieldswitch.props.json +127 -0
- package/es/lowcode/engine/meta/fieldtextarea.props.default.json +18 -0
- package/es/lowcode/engine/meta/fieldtextarea.props.json +145 -0
- package/es/lowcode/engine/meta/fieldupload.props.default.json +15 -0
- package/es/lowcode/engine/meta/fieldupload.props.json +71 -0
- package/es/lowcode/engine/meta/fielduser.props.default.json +16 -0
- package/es/lowcode/engine/meta/fielduser.props.json +82 -0
- package/es/lowcode/engine/meta/fieldyear.props.default.json +12 -0
- package/es/lowcode/engine/meta/fieldyear.props.json +37 -0
- package/es/lowcode/engine/meta/form.props.default.json +0 -0
- package/es/lowcode/engine/meta/form.props.json +650 -0
- package/es/lowcode/engine/meta/iframe.props.default.json +0 -0
- package/es/lowcode/engine/meta/iframe.props.json +32 -0
- package/es/lowcode/engine/meta/image.props.default.json +0 -0
- package/es/lowcode/engine/meta/image.props.json +114 -0
- package/es/lowcode/engine/meta/imex.props.default.json +0 -0
- package/es/lowcode/engine/meta/imex.props.json +114 -0
- package/es/lowcode/engine/meta/js-editor/auto-complete.json +205 -0
- package/es/lowcode/engine/meta/jsx.props.default.json +0 -0
- package/es/lowcode/engine/meta/jsx.props.json +30 -0
- package/es/lowcode/engine/meta/layout.props.default.json +0 -0
- package/es/lowcode/engine/meta/layout.props.json +107 -0
- package/es/lowcode/engine/meta/link.props.default.json +0 -0
- package/es/lowcode/engine/meta/link.props.json +112 -0
- package/es/lowcode/engine/meta/modal.props.default.json +0 -0
- package/es/lowcode/engine/meta/page.props.default.json +12 -0
- package/es/lowcode/engine/meta/page.props.json +49 -0
- package/es/lowcode/engine/meta/pagecontent.props.default.json +6 -0
- package/es/lowcode/engine/meta/pagecontent.props.json +7 -0
- package/es/lowcode/engine/meta/pagefooter.props.default.json +6 -0
- package/es/lowcode/engine/meta/pagefooter.props.json +7 -0
- package/es/lowcode/engine/meta/pageheader.props.default.json +6 -0
- package/es/lowcode/engine/meta/pageheader.props.json +7 -0
- package/es/lowcode/engine/meta/pagelayout.props.default.json +14 -0
- package/es/lowcode/engine/meta/pagelayout.props.json +47 -0
- package/es/lowcode/engine/meta/section.props.default.json +0 -0
- package/es/lowcode/engine/meta/section.props.json +111 -0
- package/es/lowcode/engine/meta/split.props.default.json +0 -0
- package/es/lowcode/engine/meta/split.props.json +57 -0
- package/es/lowcode/engine/meta/table.props.default.json +0 -0
- package/es/lowcode/engine/meta/table.props.json +444 -0
- package/es/lowcode/engine/meta/tabs.props.default.json +0 -0
- package/es/lowcode/engine/meta/tabs.props.json +117 -0
- package/es/lowcode/engine/meta/text.props.default.json +0 -0
- package/es/lowcode/engine/meta/text.props.json +66 -0
- package/es/lowcode/engine/meta/tree.props.default.json +0 -0
- package/es/lowcode/engine/meta/tree.props.json +366 -0
- package/es/lowcode/engine/provider/ContextProvider.js +0 -0
- package/es/lowcode/engine/provider/EventBusProvider.js +0 -0
- package/es/lowcode/engine/tools/dataProcess.js +0 -0
- package/es/lowcode/engine/tools/helper.js +0 -0
- package/es/lowcode/engine/tools/lcid.js +0 -0
- package/es/lowcode/index.js +0 -0
- package/es/lowcode/painter/Components.js +0 -0
- package/es/lowcode/painter/Design.js +0 -0
- package/es/lowcode/painter/I18n.js +0 -0
- package/es/lowcode/painter/Outline.js +0 -0
- package/es/lowcode/painter/Panel.js +0 -0
- package/es/lowcode/painter/Ribbon.js +0 -0
- package/es/lowcode/painter/components/PanelItem.js +0 -0
- package/es/lowcode/painter/components/RuleInput.js +0 -0
- package/es/lowcode/painter/index.js +0 -0
- package/es/lowcode/painter/panel-section/LayoutRatio.js +0 -0
- package/es/lowcode/painter/panel-section/Radio.js +0 -0
- package/es/lowcode/painter/style/components.less +0 -0
- package/es/lowcode/painter/style/design.less +0 -0
- package/es/lowcode/painter/style/index.less +0 -0
- package/es/lowcode/painter/style/layout-ratio.less +0 -0
- package/es/lowcode/painter/style/outline.less +0 -0
- package/es/lowcode/painter/style/panel-item.less +0 -0
- package/es/lowcode/painter/style/panel.less +0 -0
- package/es/lowcode/painter/style/radio.less +0 -0
- package/es/lowcode/painter/style/ribbon.less +0 -0
- package/es/lowcode/painter/style/rule-input.less +0 -0
- package/es/lowcode/view/Canvas.js +0 -0
- package/es/lowcode/view/Loading.js +0 -0
- package/es/lowcode/view/Page.js +0 -0
- package/es/lowcode/view/index.js +0 -0
- package/es/lowcode/view/lc-components/Box/index.js +0 -0
- package/es/lowcode/view/lc-components/Button/index.js +0 -0
- package/es/lowcode/view/lc-components/CardList/index.js +0 -0
- package/es/lowcode/view/lc-components/Dialog/index.js +0 -0
- package/es/lowcode/view/lc-components/Dialog/index.less +0 -0
- package/es/lowcode/view/lc-components/Drawer/index.js +0 -0
- 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 +0 -0
- 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 +0 -0
- 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 +0 -0
- 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 +0 -0
- package/es/services.js +0 -0
- package/es/upload/Form/gridForm.js +17 -2
- package/es/upload/Form/index.js +11 -0
- package/es/upload/Form/index.less +0 -0
- package/es/upload/FormItem/index.js +5 -6
- 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 +7 -7
- package/es/utils/grid.js +9 -3
- package/es/utils/index.js +0 -0
- package/lib/components/Builder/index.js +0 -0
- package/lib/components/LdAutoForm/index.js +0 -0
- 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 +0 -0
- package/lib/components/LdFormList/model.js +0 -0
- package/lib/components/LdGrid/index.js +0 -0
- package/lib/components/LdGrid/model.js +0 -0
- package/lib/components/LdGridForm/index.js +0 -0
- 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 +0 -0
- package/lib/helper/index.less +0 -0
- package/lib/helper/ldBuilder.js +0 -0
- package/lib/helper/ldComBuild.js +0 -0
- package/lib/index.js +0 -0
- package/lib/locales/zh-CN.js +242 -0
- package/lib/lowcode/constants/api-url.js +0 -0
- package/lib/lowcode/constants/event-topics.js +0 -0
- package/lib/lowcode/constants/index.js +0 -0
- package/lib/lowcode/engine/factory/DataFactory.js +0 -0
- package/lib/lowcode/engine/meta/box.props.default.json +13 -0
- package/lib/lowcode/engine/meta/box.props.json +40 -0
- package/lib/lowcode/engine/meta/button.props.default.json +0 -0
- package/lib/lowcode/engine/meta/button.props.json +127 -0
- package/lib/lowcode/engine/meta/cardlist.props.default.json +0 -0
- package/lib/lowcode/engine/meta/cardlist.props.json +153 -0
- package/lib/lowcode/engine/meta/components/button.json +0 -0
- package/lib/lowcode/engine/meta/components/card-list.json +0 -0
- package/lib/lowcode/engine/meta/components/drawer.json +0 -0
- package/lib/lowcode/engine/meta/components/form.json +0 -0
- package/lib/lowcode/engine/meta/components/iframe.json +0 -0
- package/lib/lowcode/engine/meta/components/image.json +0 -0
- package/lib/lowcode/engine/meta/components/imex.json +0 -0
- package/lib/lowcode/engine/meta/components/jsx.json +0 -0
- package/lib/lowcode/engine/meta/components/layout.json +0 -0
- package/lib/lowcode/engine/meta/components/link.json +0 -0
- package/lib/lowcode/engine/meta/components/modal.json +0 -0
- package/lib/lowcode/engine/meta/components/section.json +0 -0
- package/lib/lowcode/engine/meta/components/split.json +0 -0
- package/lib/lowcode/engine/meta/components/table.json +0 -0
- package/lib/lowcode/engine/meta/components/tabs.json +0 -0
- package/lib/lowcode/engine/meta/components/text.json +0 -0
- package/lib/lowcode/engine/meta/components/tree.json +0 -0
- package/lib/lowcode/engine/meta/components-list.json +0 -0
- package/lib/lowcode/engine/meta/dialog.props.default.json +27 -0
- package/lib/lowcode/engine/meta/dialog.props.json +157 -0
- package/lib/lowcode/engine/meta/drawer.props.default.json +0 -0
- package/lib/lowcode/engine/meta/drawer.props.json +131 -0
- package/lib/lowcode/engine/meta/fieldcolor.props.default.json +19 -0
- package/lib/lowcode/engine/meta/fieldcolor.props.json +159 -0
- package/lib/lowcode/engine/meta/fieldcomplex.props.default.json +13 -0
- package/lib/lowcode/engine/meta/fieldcomplex.props.json +39 -0
- package/lib/lowcode/engine/meta/fielddatadic.props.default.json +16 -0
- package/lib/lowcode/engine/meta/fielddatadic.props.json +73 -0
- package/lib/lowcode/engine/meta/fielddate.props.default.json +12 -0
- package/lib/lowcode/engine/meta/fielddate.props.json +47 -0
- package/lib/lowcode/engine/meta/fielddict.props.default.json +19 -0
- package/lib/lowcode/engine/meta/fielddict.props.json +140 -0
- package/lib/lowcode/engine/meta/fieldeditor.props.default.json +13 -0
- package/lib/lowcode/engine/meta/fieldeditor.props.json +44 -0
- package/lib/lowcode/engine/meta/fieldgroup.props.default.json +15 -0
- package/lib/lowcode/engine/meta/fieldgroup.props.json +73 -0
- package/lib/lowcode/engine/meta/fieldnumber.props.default.json +20 -0
- package/lib/lowcode/engine/meta/fieldnumber.props.json +145 -0
- package/lib/lowcode/engine/meta/fieldradio.props.default.json +12 -0
- package/lib/lowcode/engine/meta/fieldradio.props.json +20 -0
- package/lib/lowcode/engine/meta/fieldregion.props.default.json +12 -0
- package/lib/lowcode/engine/meta/fieldregion.props.json +26 -0
- package/lib/lowcode/engine/meta/fieldselect.props.default.json +14 -0
- package/lib/lowcode/engine/meta/fieldselect.props.json +58 -0
- package/lib/lowcode/engine/meta/fieldstring.props.default.json +17 -0
- package/lib/lowcode/engine/meta/fieldstring.props.json +154 -0
- package/lib/lowcode/engine/meta/fieldswitch.props.default.json +17 -0
- package/lib/lowcode/engine/meta/fieldswitch.props.json +127 -0
- package/lib/lowcode/engine/meta/fieldtextarea.props.default.json +18 -0
- package/lib/lowcode/engine/meta/fieldtextarea.props.json +145 -0
- package/lib/lowcode/engine/meta/fieldupload.props.default.json +15 -0
- package/lib/lowcode/engine/meta/fieldupload.props.json +71 -0
- package/lib/lowcode/engine/meta/fielduser.props.default.json +16 -0
- package/lib/lowcode/engine/meta/fielduser.props.json +82 -0
- package/lib/lowcode/engine/meta/fieldyear.props.default.json +12 -0
- package/lib/lowcode/engine/meta/fieldyear.props.json +37 -0
- package/lib/lowcode/engine/meta/form.props.default.json +0 -0
- package/lib/lowcode/engine/meta/form.props.json +650 -0
- package/lib/lowcode/engine/meta/iframe.props.default.json +0 -0
- package/lib/lowcode/engine/meta/iframe.props.json +32 -0
- package/lib/lowcode/engine/meta/image.props.default.json +0 -0
- package/lib/lowcode/engine/meta/image.props.json +114 -0
- package/lib/lowcode/engine/meta/imex.props.default.json +0 -0
- package/lib/lowcode/engine/meta/imex.props.json +114 -0
- package/lib/lowcode/engine/meta/js-editor/auto-complete.json +205 -0
- package/lib/lowcode/engine/meta/jsx.props.default.json +0 -0
- package/lib/lowcode/engine/meta/jsx.props.json +30 -0
- package/lib/lowcode/engine/meta/layout.props.default.json +0 -0
- package/lib/lowcode/engine/meta/layout.props.json +107 -0
- package/lib/lowcode/engine/meta/link.props.default.json +0 -0
- package/lib/lowcode/engine/meta/link.props.json +112 -0
- package/lib/lowcode/engine/meta/modal.props.default.json +0 -0
- package/lib/lowcode/engine/meta/page.props.default.json +12 -0
- package/lib/lowcode/engine/meta/page.props.json +49 -0
- package/lib/lowcode/engine/meta/pagecontent.props.default.json +6 -0
- package/lib/lowcode/engine/meta/pagecontent.props.json +7 -0
- package/lib/lowcode/engine/meta/pagefooter.props.default.json +6 -0
- package/lib/lowcode/engine/meta/pagefooter.props.json +7 -0
- package/lib/lowcode/engine/meta/pageheader.props.default.json +6 -0
- package/lib/lowcode/engine/meta/pageheader.props.json +7 -0
- package/lib/lowcode/engine/meta/pagelayout.props.default.json +14 -0
- package/lib/lowcode/engine/meta/pagelayout.props.json +47 -0
- package/lib/lowcode/engine/meta/section.props.default.json +0 -0
- package/lib/lowcode/engine/meta/section.props.json +111 -0
- package/lib/lowcode/engine/meta/split.props.default.json +0 -0
- package/lib/lowcode/engine/meta/split.props.json +57 -0
- package/lib/lowcode/engine/meta/table.props.default.json +0 -0
- package/lib/lowcode/engine/meta/table.props.json +444 -0
- package/lib/lowcode/engine/meta/tabs.props.default.json +0 -0
- package/lib/lowcode/engine/meta/tabs.props.json +117 -0
- package/lib/lowcode/engine/meta/text.props.default.json +0 -0
- package/lib/lowcode/engine/meta/text.props.json +66 -0
- package/lib/lowcode/engine/meta/tree.props.default.json +0 -0
- package/lib/lowcode/engine/meta/tree.props.json +366 -0
- package/lib/lowcode/engine/provider/ContextProvider.js +0 -0
- package/lib/lowcode/engine/provider/EventBusProvider.js +0 -0
- package/lib/lowcode/engine/tools/dataProcess.js +0 -0
- package/lib/lowcode/engine/tools/helper.js +0 -0
- package/lib/lowcode/engine/tools/lcid.js +0 -0
- package/lib/lowcode/index.js +0 -0
- package/lib/lowcode/painter/Components.js +0 -0
- package/lib/lowcode/painter/Design.js +0 -0
- package/lib/lowcode/painter/I18n.js +0 -0
- package/lib/lowcode/painter/Outline.js +0 -0
- package/lib/lowcode/painter/Panel.js +0 -0
- package/lib/lowcode/painter/Ribbon.js +0 -0
- package/lib/lowcode/painter/components/PanelItem.js +0 -0
- package/lib/lowcode/painter/components/RuleInput.js +0 -0
- package/lib/lowcode/painter/index.js +0 -0
- package/lib/lowcode/painter/panel-section/LayoutRatio.js +0 -0
- package/lib/lowcode/painter/panel-section/Radio.js +0 -0
- package/lib/lowcode/painter/style/components.less +0 -0
- package/lib/lowcode/painter/style/design.less +0 -0
- package/lib/lowcode/painter/style/index.less +0 -0
- package/lib/lowcode/painter/style/layout-ratio.less +0 -0
- package/lib/lowcode/painter/style/outline.less +0 -0
- package/lib/lowcode/painter/style/panel-item.less +0 -0
- package/lib/lowcode/painter/style/panel.less +0 -0
- package/lib/lowcode/painter/style/radio.less +0 -0
- package/lib/lowcode/painter/style/ribbon.less +0 -0
- package/lib/lowcode/painter/style/rule-input.less +0 -0
- package/lib/lowcode/view/Canvas.js +0 -0
- package/lib/lowcode/view/Loading.js +0 -0
- package/lib/lowcode/view/Page.js +0 -0
- package/lib/lowcode/view/index.js +0 -0
- package/lib/lowcode/view/lc-components/Box/index.js +0 -0
- package/lib/lowcode/view/lc-components/Button/index.js +0 -0
- package/lib/lowcode/view/lc-components/CardList/index.js +0 -0
- package/lib/lowcode/view/lc-components/Dialog/index.js +0 -0
- package/lib/lowcode/view/lc-components/Dialog/index.less +0 -0
- package/lib/lowcode/view/lc-components/Drawer/index.js +0 -0
- 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 +0 -0
- 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 +0 -0
- 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 +0 -0
- 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 +0 -0
- package/lib/services.js +0 -0
- package/lib/upload/Form/gridForm.js +17 -2
- package/lib/upload/Form/index.js +11 -0
- package/lib/upload/Form/index.less +0 -0
- package/lib/upload/FormItem/index.js +5 -6
- 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 +5 -5
- package/lib/utils/grid.js +10 -4
- package/lib/utils/index.js +0 -0
- package/lowcode.js +0 -0
- package/package.json +1 -1
- package/upload.js +0 -0
- package/utils.js +0 -0
|
@@ -0,0 +1,444 @@
|
|
|
1
|
+
{
|
|
2
|
+
"component": "Table",
|
|
3
|
+
"name": "表格",
|
|
4
|
+
"desc": "用于展示和管理数据,实现数据的可视化和交互。用户可以根据配置数据集和表格属性,快速构建表格。",
|
|
5
|
+
"icon": "icon-table",
|
|
6
|
+
"group": "advance",
|
|
7
|
+
"groupName": "高级",
|
|
8
|
+
"order": 1,
|
|
9
|
+
"props": [
|
|
10
|
+
{
|
|
11
|
+
"key": "id",
|
|
12
|
+
"name": "唯一标识",
|
|
13
|
+
"type": "string",
|
|
14
|
+
"disabled": true
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"key": "dataset",
|
|
18
|
+
"name": "数据集",
|
|
19
|
+
"type": "_DataSetSelector",
|
|
20
|
+
"component": "table",
|
|
21
|
+
"next": {
|
|
22
|
+
"name": "字段配置",
|
|
23
|
+
"props": [
|
|
24
|
+
{
|
|
25
|
+
"key": "fields",
|
|
26
|
+
"name": "#字段配置器",
|
|
27
|
+
"type": "_FieldsSetting"
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"key": "autoLoad",
|
|
34
|
+
"name": "自动加载",
|
|
35
|
+
"desc": "首次数据是否自动加载,若存在必须带搜索条件再加载的情况,需要关闭",
|
|
36
|
+
"type": "switch",
|
|
37
|
+
"default": true
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"key": "readOnly",
|
|
41
|
+
"name": "只读",
|
|
42
|
+
"type": "switch",
|
|
43
|
+
"default": false
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"key": "draggable",
|
|
47
|
+
"name": "拖拽排序",
|
|
48
|
+
"type": "switch",
|
|
49
|
+
"default": false
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"key": "topSetting",
|
|
53
|
+
"name": "顶部操作",
|
|
54
|
+
"type": "group",
|
|
55
|
+
"default": true,
|
|
56
|
+
"next": {
|
|
57
|
+
"name": "顶部操作",
|
|
58
|
+
"props": [
|
|
59
|
+
{
|
|
60
|
+
"key": "topActionGroup",
|
|
61
|
+
"name": "顶部按钮组",
|
|
62
|
+
"type": "_ActionsEditor",
|
|
63
|
+
"default": {
|
|
64
|
+
"display": "button",
|
|
65
|
+
"max": 2,
|
|
66
|
+
"moreText": "操作",
|
|
67
|
+
"todoList": []
|
|
68
|
+
},
|
|
69
|
+
"defaultCode": "function todo() { \n \n}",
|
|
70
|
+
"wrapper": "collapse"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"key": "topFilter",
|
|
74
|
+
"name": "顶部过滤器",
|
|
75
|
+
"type": "_TableTopFilter",
|
|
76
|
+
"wrapper": "collapse"
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"key": "actionsColumn",
|
|
83
|
+
"name": "操作列",
|
|
84
|
+
"type": "group",
|
|
85
|
+
"default": true,
|
|
86
|
+
"next": {
|
|
87
|
+
"name": "操作列",
|
|
88
|
+
"props": [
|
|
89
|
+
{
|
|
90
|
+
"key": "suppressActions",
|
|
91
|
+
"name": "隐藏操作列",
|
|
92
|
+
"type": "switch",
|
|
93
|
+
"default": false
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"key": "actionsColumnWidth",
|
|
97
|
+
"name": "列宽",
|
|
98
|
+
"type": "_WidthHeight",
|
|
99
|
+
"options": [
|
|
100
|
+
{
|
|
101
|
+
"label": "px",
|
|
102
|
+
"value": "px"
|
|
103
|
+
}
|
|
104
|
+
],
|
|
105
|
+
"convertInt": true,
|
|
106
|
+
"default": 160
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"key": "actions",
|
|
110
|
+
"name": "表格操作项",
|
|
111
|
+
"type": "_ActionsEditor",
|
|
112
|
+
"default": {
|
|
113
|
+
"display": "text",
|
|
114
|
+
"max": 2,
|
|
115
|
+
"moreText": "更多操作",
|
|
116
|
+
"todoList": []
|
|
117
|
+
},
|
|
118
|
+
"defaultCode": "function onActionClick(data, rowIndex, params) {\n\n}",
|
|
119
|
+
"wrapper": "collapse",
|
|
120
|
+
"wrapperProps": {
|
|
121
|
+
"suppressIcon": true
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"key": "rowSelectionSetting",
|
|
129
|
+
"name": "行选择器",
|
|
130
|
+
"type": "group",
|
|
131
|
+
"default": true,
|
|
132
|
+
"next": {
|
|
133
|
+
"name": "行选择器",
|
|
134
|
+
"props": [
|
|
135
|
+
{
|
|
136
|
+
"key": "rowSelection",
|
|
137
|
+
"name": "开启行选择器",
|
|
138
|
+
"type": "switch",
|
|
139
|
+
"default": false
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"key": "suppressRowSelectionPagination",
|
|
143
|
+
"name": "停用分页多选",
|
|
144
|
+
"desc": "停用分页多选后,选择器将不记录跨页的行选择,而只记录当前页的行选择",
|
|
145
|
+
"type": "switch",
|
|
146
|
+
"default": false
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"key": "rowSelectionMode",
|
|
150
|
+
"name": "选择器模式",
|
|
151
|
+
"type": "segmented",
|
|
152
|
+
"options": [
|
|
153
|
+
{
|
|
154
|
+
"label": "复选",
|
|
155
|
+
"value": "multiple"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"label": "单选",
|
|
159
|
+
"value": "single"
|
|
160
|
+
}
|
|
161
|
+
],
|
|
162
|
+
"default": "multiple"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"key": "bantchActions",
|
|
166
|
+
"name": "批量操作",
|
|
167
|
+
"type": "_ActionsEditor",
|
|
168
|
+
"default": {
|
|
169
|
+
"todoList": []
|
|
170
|
+
},
|
|
171
|
+
"defaultCode": "function onBatchOperationsClick(key, selectedRows) {\n\n}",
|
|
172
|
+
"suppressDisplay": true,
|
|
173
|
+
"suppressMax": true,
|
|
174
|
+
"suppressMore": true,
|
|
175
|
+
"wrapper": "collapse",
|
|
176
|
+
"wrapperProps": {
|
|
177
|
+
"suppressIcon": true
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"key": "defaultRowSelectedCode",
|
|
182
|
+
"name": "默认选中行",
|
|
183
|
+
"type": "_JSEditor",
|
|
184
|
+
"defaultCode": "function getRowDefaultSelected(data, node) { \n return false; \n}",
|
|
185
|
+
"mustConfirm": true,
|
|
186
|
+
"wrapper": "collapse",
|
|
187
|
+
"wrapperProps": {
|
|
188
|
+
"suppressIcon": true
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"key": "rowSelectableCode",
|
|
193
|
+
"name": "行是否可选",
|
|
194
|
+
"type": "_JSEditor",
|
|
195
|
+
"defaultCode": "function getRowSelectable(data, node) { \n return true; \n}",
|
|
196
|
+
"mustConfirm": true,
|
|
197
|
+
"wrapper": "collapse",
|
|
198
|
+
"wrapperProps": {
|
|
199
|
+
"suppressIcon": true
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
]
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"key": "impexpSetting",
|
|
207
|
+
"name": "导入导出",
|
|
208
|
+
"type": "group",
|
|
209
|
+
"props": [
|
|
210
|
+
{
|
|
211
|
+
"key": "impexp",
|
|
212
|
+
"name": "#导入导出",
|
|
213
|
+
"type": "_ImpExp",
|
|
214
|
+
"default": {
|
|
215
|
+
"export": true
|
|
216
|
+
},
|
|
217
|
+
"wrapperProps": {
|
|
218
|
+
"suppressIcon": true
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
]
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"key": "styleSetting",
|
|
225
|
+
"name": "风格和样式",
|
|
226
|
+
"type": "group",
|
|
227
|
+
"props": [
|
|
228
|
+
{
|
|
229
|
+
"key": "width",
|
|
230
|
+
"name": "宽度",
|
|
231
|
+
"type": "_WidthHeight",
|
|
232
|
+
"default": "100%"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"key": "height",
|
|
236
|
+
"name": "高度",
|
|
237
|
+
"type": "_WidthHeight",
|
|
238
|
+
"default": "100%"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"key": "zebra",
|
|
242
|
+
"name": "斑马纹",
|
|
243
|
+
"desc": "设置条件后按条件显示斑马纹,未设置条件按偶数行显示斑马纹,删除色码将不显示斑马纹",
|
|
244
|
+
"type": "_TableZebra",
|
|
245
|
+
"default": false
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"key": "suppressPreset",
|
|
249
|
+
"name": "关闭预设",
|
|
250
|
+
"type": "switch",
|
|
251
|
+
"default": false
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"key": "bordered",
|
|
255
|
+
"name": "边框线",
|
|
256
|
+
"type": "switch",
|
|
257
|
+
"default": false
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"key": "renderIndex",
|
|
261
|
+
"name": "显示序号",
|
|
262
|
+
"type": "switch",
|
|
263
|
+
"default": true
|
|
264
|
+
}
|
|
265
|
+
]
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"key": "paginationSetting",
|
|
269
|
+
"name": "分页设置",
|
|
270
|
+
"type": "group",
|
|
271
|
+
"props": [
|
|
272
|
+
{
|
|
273
|
+
"key": "pagination",
|
|
274
|
+
"name": "开启分页",
|
|
275
|
+
"type": "switch",
|
|
276
|
+
"default": true
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"key": "showSizeChanger",
|
|
280
|
+
"name": "pageSize选择",
|
|
281
|
+
"type": "switch",
|
|
282
|
+
"default": true
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"key": "showQuickJumper",
|
|
286
|
+
"name": "快速跳转",
|
|
287
|
+
"type": "switch",
|
|
288
|
+
"default": true
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"key": "hideOnSinglePage",
|
|
292
|
+
"name": "单页无分页器",
|
|
293
|
+
"desc": "只有一页时隐藏分页器",
|
|
294
|
+
"type": "switch",
|
|
295
|
+
"default": false
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"key": "paginationSimple",
|
|
299
|
+
"name": "简单分页",
|
|
300
|
+
"type": "switch",
|
|
301
|
+
"default": false
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"key": "pageSize",
|
|
305
|
+
"name": "每页条数",
|
|
306
|
+
"type": "number",
|
|
307
|
+
"default": 30
|
|
308
|
+
}
|
|
309
|
+
]
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"key": "advance",
|
|
313
|
+
"name": "高级设置",
|
|
314
|
+
"type": "group",
|
|
315
|
+
"default": true,
|
|
316
|
+
"next": {
|
|
317
|
+
"name": "高级设置",
|
|
318
|
+
"props": [
|
|
319
|
+
{
|
|
320
|
+
"key": "formatDataSource",
|
|
321
|
+
"name": "格式化数据",
|
|
322
|
+
"type": "_JSEditor",
|
|
323
|
+
"defaultCode": "function formatDataSource(list, detail) { \n return []; \n}",
|
|
324
|
+
"mustConfirm": true,
|
|
325
|
+
"wrapper": "collapse",
|
|
326
|
+
"wrapperProps": {
|
|
327
|
+
"suppressIcon": true
|
|
328
|
+
}
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"key": "getDataPath",
|
|
332
|
+
"name": "构建树层级",
|
|
333
|
+
"type": "_JSEditor",
|
|
334
|
+
"defaultCode": "function getDataPath(data) { \n return []; \n}",
|
|
335
|
+
"mustConfirm": true,
|
|
336
|
+
"wrapper": "collapse",
|
|
337
|
+
"wrapperProps": {
|
|
338
|
+
"suppressIcon": true
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"key": "columnsRewrite",
|
|
343
|
+
"name": "重写表格列",
|
|
344
|
+
"desc": "自定义某些表格列",
|
|
345
|
+
"type": "_JSEditor",
|
|
346
|
+
"defaultCode": "function columnsRewrite(columns) { \n return columns; \n}",
|
|
347
|
+
"mustConfirm": true,
|
|
348
|
+
"wrapper": "collapse",
|
|
349
|
+
"wrapperProps": {
|
|
350
|
+
"suppressIcon": true
|
|
351
|
+
}
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"key": "columnsReset",
|
|
355
|
+
"name": "重置表格列",
|
|
356
|
+
"desc": "完全自定义所有表格列,优先级大于columnsRewrite",
|
|
357
|
+
"type": "_JSEditor",
|
|
358
|
+
"defaultCode": "function columnsReset(columns) { \n return columns; \n}",
|
|
359
|
+
"mustConfirm": true,
|
|
360
|
+
"wrapper": "collapse",
|
|
361
|
+
"wrapperProps": {
|
|
362
|
+
"suppressIcon": true
|
|
363
|
+
}
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
"key": "modelParams",
|
|
367
|
+
"name": "model参数",
|
|
368
|
+
"type": "_JSEditor",
|
|
369
|
+
"defaultCode": "function getModelParams() { \n return {}; \n}",
|
|
370
|
+
"mustConfirm": true,
|
|
371
|
+
"wrapper": "collapse",
|
|
372
|
+
"wrapperProps": {
|
|
373
|
+
"suppressIcon": true
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
]
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
],
|
|
380
|
+
"advance": {
|
|
381
|
+
"events": [
|
|
382
|
+
{
|
|
383
|
+
"key": "onMount",
|
|
384
|
+
"name": "组件首次渲染时",
|
|
385
|
+
"desc": "在组件首次渲染时,执行方法",
|
|
386
|
+
"func": "function onMount(params) {\n\t\n}"
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
"key": "onUnmount",
|
|
390
|
+
"name": "组件卸载时",
|
|
391
|
+
"desc": "在组件卸载时,执行方法。",
|
|
392
|
+
"func": "function onUnmount() {\n\t\n}"
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
"key": "onRowClick",
|
|
396
|
+
"name": "行单击",
|
|
397
|
+
"desc": "单击表格行时,执行方法",
|
|
398
|
+
"func": "function onRowClick(data, rowIndex, params) {\n\t\n}"
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
"key": "onRowDoubleClick",
|
|
402
|
+
"name": "行双击",
|
|
403
|
+
"desc": "双击表格行时,执行方法",
|
|
404
|
+
"func": "function onRowDoubleClick(data, rowIndex, params) {\n\t\n}"
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"key": "onRowSelected",
|
|
408
|
+
"name": "行选择",
|
|
409
|
+
"desc": "选中行时,执行方法",
|
|
410
|
+
"func": "function onRowSelected(data, isSelected, SelectedRows, params) {\n\t\n}"
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
"key": "onRowSelectChange",
|
|
414
|
+
"name": "行选择变化",
|
|
415
|
+
"desc": "行选中发生变化时,执行方法",
|
|
416
|
+
"func": "function onRowSelectChange(rows, nodes, params) {\n\t\n}"
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
"key": "onRowDragged",
|
|
420
|
+
"name": "行拖拽后",
|
|
421
|
+
"desc": "拖拽行使其顺序发生变化后,执行方法",
|
|
422
|
+
"func": "function onRowDragged(toId, fromId, params) {\n\t\n}"
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
"key": "onPagePublicResourceChanged",
|
|
426
|
+
"name": "页面共享资源变化后",
|
|
427
|
+
"desc": "当页面共享资源发生变化后(pagePublicResourceChanged),执行方法",
|
|
428
|
+
"func": "function onPagePublicResourceChanged(resource, prevResource, instance) {\n\t\n}"
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
"key": "afterInit",
|
|
432
|
+
"name": "初始化后的回调",
|
|
433
|
+
"desc": "组件及数据加载完成后,执行方法",
|
|
434
|
+
"func": "function afterInit(res, dispatch, props) {\n\t\n}"
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
"key": "afterQuery",
|
|
438
|
+
"name": "数据读取回调",
|
|
439
|
+
"desc": "读取数据源后执行方法,返回接口中原始数据",
|
|
440
|
+
"func": "function afterQuery(res) {\n\t\n}"
|
|
441
|
+
}
|
|
442
|
+
]
|
|
443
|
+
}
|
|
444
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
{
|
|
2
|
+
"component": "Tabs",
|
|
3
|
+
"name": "选项卡",
|
|
4
|
+
"icon": "icon-tabs",
|
|
5
|
+
"group": "container",
|
|
6
|
+
"groupName": "布局",
|
|
7
|
+
"desc": "用于显示多个相关内容并提供切换功能。它包含了标签项、形态、大小等配置选项,使用户能够创建具有选项卡切换功能的界面,并根据需要自定义选项卡的外观和尺寸。",
|
|
8
|
+
"order": 1,
|
|
9
|
+
"props": [
|
|
10
|
+
{
|
|
11
|
+
"key": "id",
|
|
12
|
+
"name": "唯一标识",
|
|
13
|
+
"type": "string",
|
|
14
|
+
"disabled": true
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"key": "items",
|
|
18
|
+
"name": "标签项",
|
|
19
|
+
"desc": "表示标签项或选项卡的集合",
|
|
20
|
+
"type": "_TabItems",
|
|
21
|
+
"default": [
|
|
22
|
+
{
|
|
23
|
+
"id": "tab_lvwdncx1",
|
|
24
|
+
"name": "标签项",
|
|
25
|
+
"active": true,
|
|
26
|
+
"destory": false,
|
|
27
|
+
"serial": null,
|
|
28
|
+
"serialEffect": "hidden"
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"wrapper": "collapse",
|
|
32
|
+
"wrapperProps": {
|
|
33
|
+
"suppressIcon": true
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"key": "type",
|
|
38
|
+
"name": "基本样式",
|
|
39
|
+
"type": "segmented",
|
|
40
|
+
"options": [
|
|
41
|
+
{
|
|
42
|
+
"label": "线条式",
|
|
43
|
+
"value": "line"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"label": "卡片式",
|
|
47
|
+
"value": "card"
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"default": "line"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"key": "tabPosition",
|
|
54
|
+
"name": "页签位置",
|
|
55
|
+
"type": "segmented",
|
|
56
|
+
"repositioning": true,
|
|
57
|
+
"options": [
|
|
58
|
+
{
|
|
59
|
+
"label": "上",
|
|
60
|
+
"value": "top"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"label": "右",
|
|
64
|
+
"value": "right"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"label": "下",
|
|
68
|
+
"value": "bottom"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"label": "左",
|
|
72
|
+
"value": "left"
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
"default": "top"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"key": "tabBarGutter",
|
|
79
|
+
"name": "Tab间隙",
|
|
80
|
+
"type": "number"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"key": "tabBarExtraContent",
|
|
84
|
+
"name": "tab bar 上额外的元素",
|
|
85
|
+
"type": "_JSEditor",
|
|
86
|
+
"defaultCode": "function Component() { \n return <div>extra</div>; \n}",
|
|
87
|
+
"mustConfirm": true,
|
|
88
|
+
"wrapper": "collapse",
|
|
89
|
+
"wrapperProps": {
|
|
90
|
+
"suppressIcon": true
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
],
|
|
94
|
+
"css": "width: 100%; height: 100%;",
|
|
95
|
+
"advance": {
|
|
96
|
+
"events": [
|
|
97
|
+
{
|
|
98
|
+
"key": "onMount",
|
|
99
|
+
"name": "组件首次渲染时",
|
|
100
|
+
"desc": "在组件首次渲染时,执行方法",
|
|
101
|
+
"func": "function onMount() {\n\t\n}"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"key": "onUnmount",
|
|
105
|
+
"name": "组件卸载时",
|
|
106
|
+
"desc": "在组件卸载时,执行方法。",
|
|
107
|
+
"func": "function onUnmount() {\n\t\n}"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"key": "onTabClick",
|
|
111
|
+
"name": "tab被点击的回调",
|
|
112
|
+
"desc": "当tab被点击时, 执行方法",
|
|
113
|
+
"func": "function onTabClick(tabKey, e) {\n\t\n}"
|
|
114
|
+
}
|
|
115
|
+
]
|
|
116
|
+
}
|
|
117
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"component": "Text",
|
|
3
|
+
"name": "文本",
|
|
4
|
+
"icon": "icon-text",
|
|
5
|
+
"group": "basic",
|
|
6
|
+
"groupName": "基础",
|
|
7
|
+
"desc": "文本组件用于显示文本内容。",
|
|
8
|
+
"order": 1,
|
|
9
|
+
"props": [
|
|
10
|
+
{
|
|
11
|
+
"key": "id",
|
|
12
|
+
"desc": "唯一标识",
|
|
13
|
+
"type": "string",
|
|
14
|
+
"disabled": true
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"key": "content",
|
|
18
|
+
"name": "内容",
|
|
19
|
+
"desc": "文本内容设置",
|
|
20
|
+
"type": "_I18nInput"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"key": "showTitle",
|
|
24
|
+
"name": "显示标题",
|
|
25
|
+
"desc": "是否显示标题",
|
|
26
|
+
"type": "boolean",
|
|
27
|
+
"default": false
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"key": "title",
|
|
31
|
+
"name": "自定义标题",
|
|
32
|
+
"desc": "显示标题时配置。自定义标题内容",
|
|
33
|
+
"type": "_I18nInput"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"key": "maxLine",
|
|
37
|
+
"name": "最大行数",
|
|
38
|
+
"desc": "超出时自动省略号展示",
|
|
39
|
+
"type": "number",
|
|
40
|
+
"default": 0
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"css": {},
|
|
44
|
+
"advance": {
|
|
45
|
+
"events": [
|
|
46
|
+
{
|
|
47
|
+
"key": "onMount",
|
|
48
|
+
"name": "组件首次渲染时",
|
|
49
|
+
"desc": "在组件首次渲染时,执行方法",
|
|
50
|
+
"func": "(params)=>{\n\t\n}"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"key": "onUnmount",
|
|
54
|
+
"name": "组件卸载时",
|
|
55
|
+
"desc": "在组件卸载时,执行方法。",
|
|
56
|
+
"func": "(params)=>{\n\t\n}"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"key": "onClick",
|
|
60
|
+
"name": "点击事件",
|
|
61
|
+
"desc": "点击文本时,执行方法",
|
|
62
|
+
"func": "(e)=>{\n\t\n}"
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
}
|
|
File without changes
|