Inula在线编辑器。
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 |
openinula-repl
“读取-求值-输出”循环(英語:Read-Eval-Print Loop,简称REPL),也被称做交互式顶层构件
本组件是提供一个 关于openinula的 交互式编程环境组件
Installation
npm i openinula-repl
Usage
function App() {
return (
<Repl
name="inula-playground"
split={{ split: 'vertical' }}
>
<Editor />
<Viewer />
</Repl>
);
}
API
| 属性 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| name | repl的名称 | string | |
| split | 设置编辑器和查看器的布局 | SplitPaneProps | |
| className | 自定义类名 | string | |
| code | 初始代码 | string | |
| defaultCode | 默认代码 | string | |
| importMap | import map配置 | string | |
| placeHolder | 编辑器placeholder | string | |
| enableStorage | 是否启用本地存储 | boolean | |
| children | 子组件 | InulaNode | Editor 和 Viewer |