smalljs$mol搜索⌘ K文档演练场对比生态系统关于ZH
项目mam/├── .meta.tree├── mol/└── my/ ├── my.meta.tree └── demo/ ├── index.html ├── demo.view.tree ├── demo.view.ts └── demo.view.css.ts这些文件在 MAM 工作区里的位置view.treeview.tsview.css.ts计数器view.tree$my_demo $mol_view count_text \0 inc? null sub / <= Value $mol_view sub / <= count_text <= Button $mol_button_major click? <=> inc? sub / <= button_label @ \Count up view.tsclass $my_demo extends $.$my_demo { @ $mol_mem count( next?: number ) { return next ?? 0 } @ $mol_action inc() { this.count( this.count() + 1 ) } count_text() { return String( this.count() ) } } view.css.tsnamespace $ { $mol_style_define( $my_demo, { flex: { direction: 'column' }, gap: '1rem', padding: '1.5rem', Value: { font: { size: '2rem', weight: 700 }, color: '#0088ff', padding: { bottom: '0.5rem' }, }, } ) } 预览控制台0Count up控制台Not translated to "zh": $bog_theme_switch_light_hintNot translated to "zh": $bog_theme_switch_system_hintNot translated to "zh": $bog_theme_switch_dark_hintNot translated to "zh": $mol_link_source_hint
Type to search the documentation.