Memory Materials
🌟 Introduction
Memory Materials is the material library for Memory LowCodeEditor. This template provides a minimal setup to enable React to work with Vite, including HMR (Hot Module Replacement) and some ESLint rules.
✨ Usage Documentation
npm i @cusmoedge/lowcode-materials
🚀 Development Documentation
Install Memory CLI
npm install @cusmoedge/memory-cli -g
Generate Material Template
memory create [materialName]
Material Types
type MaterialType = 'unit' | 'area' | 'special'
Material Configuration
MaterialConfig = {
name: "test",
defaultProps: {},
setter: [],
desc: "test component description",
stylesSetter: [],
dev: {},
prod: {},
events: [],
methods: []
}
Register Materials
MaterialConfigs: {
Container: ContainerConfig,
Button: ButtonConfig,
Page: PageConfig,
Modal: ModalConfig,
Table: TableConfig,
TableColumn: TableColumnConfig,
Form: FormConfig,
FormItem: FormItemConfig,
new: newConfig
}
📦 Rollup Multi-Entry Build Configuration - Memory Materials
This configuration is for multi-entry bundling of the Memory Materials library. It supports UMD and ESM output formats. It also handles TypeScript, CSS, images, and generates TypeScript declaration files.
Key Features