amis2/examples/components/Form/RichText.jsx
2019-04-30 11:11:25 +08:00

22 lines
547 B
JavaScript

import * as React from 'react';
export default {
$schema: "http://amis.baidu.com/v2/schemas/page.json#",
title: "富文本编辑器",
body: [
{
type: "form",
api: "/api/mock2/saveForm?waitSeconds=2",
title: "Form elements",
controls: [
{
name: "html",
type: "rich-text",
label: "富文本",
value: "<p>Just do <code>IT</code></p>"
}
]
}
]
};