Form.io Bootstrap 模板
此寄存器将更改 formio.js格式的渲染, 以便使用 html 和兼容的类 诱饵3, (中文(简体) ), 诱饵 4,以及 靴子陷阱 5 框架.
正式文件
最新文件、发布资料和指南一律参考本文中提供的官方表格:
使用靴子 3
import bootstrap3 from '@formio/bootstrap/bootstrap3';
import { Formio } from 'formiojs';
Formio.use(bootstrap3);
使用靴子 4
import bootstrap4 from '@formio/bootstrap/bootstrap4';
import { Formio } from 'formiojs';
Formio.use(bootstrap4);
使用靴子 5
import bootstrap5 from '@formio/bootstrap/bootstrap5';
import { Formio } from 'formiojs';
Formio.use(bootstrap5);
脚本
Formio.Templates.framework = 'bootstrap3';
如果图标未显示
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<script>
Formio.icons = "fontawesome"
</script>